@mescius/spread-sheets-tablesheet 19.1.0 → 19.1.1
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 19.1.
|
|
3
|
+
* SpreadJS Library 19.1.1
|
|
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(t){!function(){"use strict";var n,i={117:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h=this&&this.mJr||function(){return h=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},h.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.YQe=n.AcceptExtensionsValueType=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(6018),a=i(591),s=e.mt,l=s.En,function(t){t.txt=".txt",t.all="",t.pdf=".pdf",t.image=".jpg, .png, .gif",t.excel=".xls, .xlsx, .ppt, .pptx, .doc, .docx"}(f=n.AcceptExtensionsValueType||(n.AcceptExtensionsValueType={})),d=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.WQe=(0,e.GC$)(l("div"));return n.addClass("gc-defined-column-attachment-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.WQe,i=t.LEt;return t.cb=new u.Kze({inputId:"attachment-file-type",items:[{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.all,value:f.all},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.txt,value:f.txt},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.image,value:f.image},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.pdf,value:f.pdf},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.excel,value:f.excel}],label:{text:(0,o.getSR)().columnTypeAttachmentAccept},onChange:function(){t.JQe()}}),t.cb.create().appendTo(n),t.cb.setValue(i.fileType||""),t.XQe=new c.AZe({inputId:"attachment-size-limit",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentMaxSize},onChange:function(){t.JQe()}}),t.XQe.create().appendTo(n),t.XQe.setValue(i.maxSize||2048),t.KQe=new r.Rze({label:{text:(0,o.getSR)().columnTypeAttachmentIsPreviewEnabled},onChange:function(){t.JQe()}}),t.KQe.create().appendTo(n),t.KQe.setValue(!!i.preview||(0,a.isNullOrUndefined)(i.preview)),t.$Qe=new r.Rze({label:{text:(0,o.getSR)().columnTypeAttachmentIsDownloadEnabled},onChange:function(){t.JQe()}}),t.$Qe.create().appendTo(n),t.$Qe.setValue(!!i.download||(0,a.isNullOrUndefined)(i.download)),t.d5=new r.Rze({label:{text:(0,o.getSR)().columnTypeAttachmentIsClearEnabled},onChange:function(){t.JQe()}}),t.d5.create().appendTo(n),t.d5.setValue(!!i.clear||(0,a.isNullOrUndefined)(i.clear)),n},t.prototype.JQe=function(){var t,n,i,e,o,r=this;this.LEt.onChange({fileType:null===(t=r.cb)||void 0===t?void 0:t.value,maxSize:null===(n=r.XQe)||void 0===n?void 0:n.value,preview:null===(i=r.KQe)||void 0===i?void 0:i.value,download:null===(e=r.$Qe)||void 0===e?void 0:e.value,clear:null===(o=r.d5)||void 0===o?void 0:o.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=h(h({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.WQe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.WQe=a.keyword_null},t.prototype.L0=function(){var t=this;t.cb&&t.cb.dispose(),t.cb=a.keyword_null,t.XQe&&t.XQe.dispose(),t.XQe=a.keyword_null,t.KQe&&t.KQe.dispose(),t.KQe=a.keyword_null,t.$Qe&&t.$Qe.dispose(),t.$Qe=a.keyword_null,t.d5&&t.d5.dispose(),t.d5=a.keyword_null},t}(),n.YQe=d},419:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C=this&&this.vJr||(x=function(t,n){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},x(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}x(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),y=this&&this.mJr||function(){return y=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},y.apply(this,arguments)},x;function A(t){return t<=0?0:D*String(t).length}function T(t){return{field:t.rYt,ascending:t.ascending,compare:t.compareFunction}}function j(t){return{index:t.index,ascending:t.ascending,compareFunction:t.compare}}function p(t){var n,i,e,o=b(w);for(n=0,i=o;n<i.length;n++)e=i[n],w[e].call(t)}function z(t){var n=t.Mf;n.hA=o.ClipboardPasteOptions.values,n.lF=o.CopyToOptions.value,n.JT=!1,n.UB=!1}function L(t,n,i,e,r,u){var c,a,s,l,f,d,h,v,g,I,b,N=t.NMi;return N.isAlternatingRowStyleColumn(i)?(c=N.FDi(i),N&&(M(e)||e===o.SheetArea.viewport)&&!t.oNi&&!c&&n>=0&&i>=0&&(a=N.options.alternatingRowOptions)&&(s=a.step||[1,1],l=M(s[0])?1:s[0],f=M(s[1])?1:s[1],d=a.style,!M(d)&&l>=0&&f>=0&&l+f!==0&&(h=void 0,v=void 0,Array.isArray(d)?(h=d[0],v=d[1]):h=d,u=!0,g=l+f,b=void 0,(b=(I=Math.floor(n%g))<l?h:v)&&(r.h5(b,!1,45),(0,o.composeParentStyle)(b,r,t,!1,45,!0)))),u):u}function S(t,n,i,e,o,r,u){var c=(o=o||16)/16;t.save(),t.translate(n,i),e&&(t.translate(0,o),t.scale(1,-1)),t.scale(c,c),u=u||1.5,t.lineWidth=u/c,Math.abs(u-1)<.001&&t.translate(.5/c,.5/c),t.strokeStyle=r||"#666666",t.beginPath(),t.moveTo(3,2),t.lineTo(3,11),t.moveTo(1.5,9.5),t.lineTo(3,12.5),t.lineTo(4.5,9.5),t.stroke(),t.beginPath(),t.moveTo(6,3),t.lineTo(14,3),t.moveTo(6,6),t.lineTo(12,6),t.moveTo(6,9),t.lineTo(10,9),t.moveTo(6,12),t.lineTo(8,12),t.stroke(),t.restore()}function O(t,n,i,e){var o,r;if(!t)return N;for(o=0;o<t.length;o++)if((r=t[o]).row===n&&r.col===i&&r.sheetArea===e)return r;return N}Object.defineProperty(n,"__esModule",{value:!0}),n.overrideProperties=n.overrideMethods=n.ColumnHeaderStateRule=n.SR=void 0,e=i(7234),o=i(1376),r=i(8333),u=i(447),c=i(8301),a=i(1434),s=i(7929),l=i(7669),f=i(2221),d=i(4036),n.SR={en:c},h=new e.Common.ResourceManager(n.SR,"TableSheet"),v=h.getResource.bind(h),g=e.Common.lt,M=g.ht,I=g.q8,b=Object.keys,N=null,D=7,m=function(t){function n(n,i,e){var r=t.call(this,n,i,e,[new o.Range(-1,-1,-1,-1)])||this;return r.nT=o.SheetArea.colHeader,Object.defineProperty(r,"sheetArea",{get:function(){return r.nT}}),r}return C(n,t),n}(r.StateRule),n.ColumnHeaderStateRule=m,w={aL:function(){var t=this,n=t.Mf,i=new s.GroupHideRowFilter(new o.Range(-1,-1,-1,-1),this);i.filterDialogVisibleInfo({sortByValue:!0,sortByColor:!1,filterByColor:!1,filterByValue:!0,listFilterArea:!0}),n.rowFilter(i)},ROo:function(){var t=this;t.ROo=function(){var n,i,e,o=t.Mf,r=t.getDataView();r&&(i=null!==(n=r.kLt)&&void 0!==n?n:[],e=o.rowFilter(),i.map((function(n){var i=n.field,o=t.bze(i),r=j(y(y({},n),{index:o}));e.setSortInfo(r)})))}},OTi:function(){var t=this,n=t.Mf;n.sortRangeOriginal=n.sortRange,n.sortRange=function(i,e,o,r,u,c,a,s,l){var d,h,v,g=this,M=g.getDataSource();return!!M&&(h=(d=n.rowFilter()).Dze(),v=c.map((function(n){return d.setSortInfo(n),n.rYt=t.dDi(n.index),T(n)})),d.jFt()&&(v=d.sIo().map((function(n){return n.rYt=t.dDi(n.index),T(n)}))),M.sort(v),this.qni.addUndoChanges({type:f.TableSheetUndoType.SortMapChanged,oldData:h}),!0)},n.MIo=function(i,e){var o,r,u,c,a=this,s=a.getDataSource();return!(!s||!t.options.allowSorts)&&(t.bIo(),r=(o=n.rowFilter()).Dze(),o.addToMultiSort(i,e),c=(u=o.jFt()?o.sIo():o.lIo()).map((function(n){return n.rYt=t.dDi(n.index),T(n)})),s.sort(c),this.qni.addUndoChanges({type:f.TableSheetUndoType.SortMapChanged,oldData:r}),t.NIo(i),!0)},n.IIo=function(i){var e,o,r,u,c=this,a=c.getDataSource();return!(!a||!t.options.allowSorts)&&(t.bIo(),o=(e=n.rowFilter()).Dze(),e.removeFromMultiSort(i),u=(r=e.jFt()?e.sIo():e.lIo()).map((function(n){return n.rYt=t.dDi(n.index),T(n)})),a.sort(u),this.qni.addUndoChanges({type:f.TableSheetUndoType.SortMapChanged,oldData:o}),t.NIo(i),!0)},n.cAo=function(t,n,i){var e,o,r,u=this.NMi;if(!u||!u.options||!1===u.options.allowSorts)return!1;try{if((o=(e=u.getDataView())&&e.kve(n,!0))&&!1===o.allowSort)return!1}catch(t){}return!!((r=this.rowFilter())&&"function"==typeof r.oIo&&r.oIo()&&r.rn(t,n,i))&&0!==r.rIo(n)},n.fAo=function(t){var n,i,e=this.rowFilter();return e?(n=e.getMultiSortCount())<=1?18:16+A(i=e.getMultiSortSequence(t))+1+2:0}},ETi:function(){var t,n=this,i=this,e=i.Mf;e.onItemRemoved=function(t){this.zw()},e.onItemGotten=function(t,n,e){var o;return t&&t.isGroup&&!M(t.OFt)?i.keo()===u.GroupLayoutMode.tabular&&i.DMi(t.OFt,n)?e:N:i.VDi(n)?e:void 0},e.TF=function(){return n},e.hP=function(){var t=this.parent;return!t||t.getActiveSheetTab()===this.NMi},e.FT=function(){return v().Exp_InvalidOperationInProtectForTableSheet},M(e.UTi)&&(e.UTi=e.jT,e.jT=function(){var t,n,i=[];for(t=0;t<arguments.length;t++)i[t]=arguments[t];this.sw?(n=this.C6(this.sw.rowViewportIndex,this.sw.colViewportIndex))!==o.SheetArea.rowHeader&&n!==o.SheetArea.corner&&e.UTi.apply(e,i):e.UTi.apply(e,i)}),e.Ci=function(t,n,r){var u;return r===o.SheetArea.rowHeader&&i.CDi(t,n)?u=i.ODi(t):(u=e.CP(t,n,r),M(u)&&!M(t)&&r===o.SheetArea.rowHeader&&(u=e.CP(-1,n,r))),u},t=e.AO.bind(e),e.AO=function(){var n=i.getDataView(),e;return(n&&n.length()||0)>0?t():[]}},GTi:function(){var t=this,n=this.Mf;n.getCompositeStyle=function(i,e,r,u,c,a,s){var f,d,h,v,g,b,D,m;if(void 0===s&&(s={}),M(r)&&(r=3),d=this,h=new o.Style,v=!1,g=t.nIe(i,e,r),0!==r){if(v=d.IL(i,e,r,h,v,u),s.hasTableStyle)return h;v=d.xL(i,e,r,h,v,s.table,s.isForFilter),v=(f=d.NL(i,e,r,h,v,s.pivotTable,s.isForFilter,s.pivotTableStyle)).changed,h=f.destInfo,v=d.kL(i,r,h,v,c),(b=1===r&&i<n.Ut.getFreeAreaRowCount(r))||g||(v=d.DL(e,r,h,v,a)),D=I(s.rowSpacingIndex),g||D||(v=L(d,i,e,r,h,v))}return d._L(r,h,v,s.ignoreSheet),(0,l.setInsertedRowCrossStyle)(t,i,e,h,r),g&&(h.cellButtons=[],h.locked=!0),3===r&&t.iDi(i,e)&&(h.locked=!0),3!==r||!t.zDi(i)||M(a)||M(a.formatter)||(m=void 0,(m="string"==typeof a.formatter?a.formatter:a.formatter.formatCached)&&m.indexOf("=")>-1&&(h.formatter=N)),h}},l0t:function(){var t,n=this,i=n.Mf,e=i._1,r=e.getStateMethods;r[4]=function(t,i,e,r,u){if(e)return!1;if(u===o.SheetArea.colHeader){if(!(0,a.nMi)(this,t,i))return!1;var c=(0,l.getColumnInfo)(n,i);if(c)return c.readonly}return n.pNi(i)},r[1024]=function(t,n,e,r,u){return!e&&u===o.SheetArea.colHeader&&(!!(0,a.nMi)(this,t,n)&&n<i.frozenColumnCount())},r[2048]=function(t,i,e,r,u){if(e||u!==o.SheetArea.colHeader)return!1;if(!(0,a.nMi)(this,t,i))return!1;var c=(0,l.getColumnInfo)(n,i);return!!c&&c.isPrimaryKey},r[4096]=function(t,i,e,r,u){var c,s;return!e&&u===o.SheetArea.colHeader&&(!!(0,a.nMi)(this,t,i)&&(!!(c=(0,l.getColumnInfo)(n,i))&&((s=!(c.isPrimaryKey||c.readonly))&&c.required)))},r[o.RowColumnStates.dirty]=function(t,i,e){var o=n.getDataView();return!(!e||!o)&&(o.isUpdated(t)||o.isInserted(t))},r[o.RowColumnStates.inserted]=function(t){var i=n.getDataView();return i&&i.isInserted(t)},r[256]=function(t){var i=n.getDataView();return i&&i.isUpdated(t)},t=r[o.RowColumnStates.selected],r[o.RowColumnStates.selected]=function(i,o,r,u){if("function"==typeof t)return t.call(e.context,i,o,r,u)||n.aDi(i)}}},n.overrideMethods=p,n.overrideProperties=z,o.CellTypes.Base.ch("tableSheetSortIndicator",{beforePaintText:function(t){var n,i,e,r,u,c,a,s,l,f,h,v,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L=t.context.sheet,k=L.NMi;if(k&&k.options&&!1!==k.options.allowSorts&&!t.context.isPrinting){n=t.context.col;try{if((e=(i=k.getDataView())&&i.kve(n,!0))&&!1===e.allowSort)return}catch(t){}(r=L.rowFilter())&&"function"==typeof r.oIo&&r.oIo()&&(u=t.context.row,c=t.context.sheetArea,a=L,L.dataRanges&&c===o.SheetArea.viewport&&(s=L.dataRanges.getByPosition(u,n))&&(l=s.convertContext({sheet:L,row:u,col:n,sheetArea:c}))&&l.sheet!==L&&(a=l.sheet,u=l.row,n=l.col,c=l.sheetArea),(f=a.AO())&&(h=O(f,u,n,c))&&0!==(v=r.rIo(n))&&(g=t.ctx,M=t.rect,I=g.fillStyle,b=r.getMultiSortCount(),N=r.getMultiSortSequence(n),D=t.context.columnHeaderFitMode,m=t.context.cellRect||M,t.context.cornerX&&0!==D&&(w=t.context.cornerX-m.x),C=new d.rut(h.rowFilter,h.row,h.col,h.sheetArea,m.x,m.y,m.width,m.height),y=L.an(new o.Rect(C.x,C.y,C.width,C.height),h.sheetArea,{cellWidth:w,columnHeaderFitMode:D}),x=Math.min(y.height-2,16),j=(T=b>1&&N>0?A(N):0)>0?x+T+1:x,p=y.x-j-2,z=y.y+y.height-x-1,g.save(),g.rect(m.x,m.y,m.width,m.height),g.clip(),g.beginPath(),S(g,p,z,1===v,x,I),b>1&&N>0&&(g.font="10px "+t.style.fontFamily,g.fillStyle=I,g.textAlign="left",g.textBaseline="bottom",g.fillText(String(N),p+x+1,z+x)),g.restore()))}}})},447:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.CustomSheetTab=n.GroupLayoutMode=n.GroupOutlinePosition=n.TriggerWhenType=n.ColumnTypes=void 0,e=i(1376),o=e.util.Z0,r=e.util.V0,function(t){t.Number="Number",t.Text="Text",t.Formula="Formula",t.Checkbox="Checkbox",t.Date="Date",t.Currency="Currency",t.Percent="Percent",t.Phone="Phone",t.Email="Email",t.URL="URL",t.Lookup="Lookup",t.CreatedTime="CreatedTime",t.ModifiedTime="ModifiedTime",t.Attachment="Attachment",t.Select="Select",t.Barcode="Barcode"}(u=n.ColumnTypes||(n.ColumnTypes={})),function(t){t.onNew="onNew",t.onNewAndUpdate="onNewAndUpdate"}(c=n.TriggerWhenType||(n.TriggerWhenType={})),function(t){t[t.none=0]="none",t[t.groupCell=1]="groupCell",t[t.rowHeader=2]="rowHeader",t[t.groupCellAll=3]="groupCellAll"}(a=n.GroupOutlinePosition||(n.GroupOutlinePosition={})),function(t){t[t.tabular=0]="tabular",t[t.outline=1]="outline",t[t.condensed=2]="condensed"}(s=n.GroupLayoutMode||(n.GroupLayoutMode={})),l=function(){function t(t){this.Hc(t)}return t.prototype.Hc=function(t){this.Zc=t,this.jft=e.SheetTabVisible.visible,this._gi=e.SheetType.customSheetTab},t.prototype.hg=function(t){this.onSetHost(t)},t.prototype.onSetHost=function(t){},t.prototype.L0=function(t,n){this.onDispose(t,n)},t.prototype.onDispose=function(t,n){},t.prototype.Zg=function(t){},t.prototype.pM=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.name=function(t){if(0===arguments.length)return this.Zc;this.Zc=t},t.prototype.visible=function(t){if(0===arguments.length)return this.jft;this.jft=!0===t?e.SheetTabVisible.visible:!1===t?e.SheetTabVisible.hidden:t},t.prototype.b2=function(t,n){if(0===arguments.length)return this.ni;this.ni=t},t.prototype.ow=function(){},t.prototype.tw=function(){},t.prototype.aw=function(){},t.prototype.$C=function(t){},t.prototype.Wb=function(t,n){},t.prototype.Kb=function(t){},t.prototype.Fb=function(t,n){},t.prototype.onHorizontalDockScroll=function(t,n){},t.prototype.Gb=function(t){},t.prototype.WC=function(t,n,i){this.parent._hScrollbar.w4()},t.prototype.QC=function(t,n,i){this.parent._vScrollbar.w4()},t.prototype.Cg=function(){this.onDoResize()},t.prototype.onDoResize=function(){},t.prototype.suspendPaint=function(){},t.prototype.resumePaint=function(){},t.prototype.isPaintSuspended=function(){return!1},t.prototype.bind=function(t,n,i){},t.prototype.unbind=function(t,n){},t.prototype.unbindAll=function(){},t.prototype.D3=function(t,n,i){},t.prototype._3=function(t,n){},t.prototype.E3=function(){},t.prototype.suspendEvent=function(){},t.prototype.resumeEvent=function(){},t.prototype.isEventSuspended=function(){return!1},t.prototype.bC=function(){},t.prototype.ki=function(t,n,i){},t.prototype.isEditing=function(){return!1},t.prototype.ol=function(t,n,i,e){return!0},t.prototype.currentTheme=function(t){},t.prototype.FM=function(){},t.prototype.toJSON=function(t){},t.prototype.fromJSON=function(t,n,i,e,o){},t.prototype.uw=function(){return{top:0,left:0}},t.prototype.ot=function(){return new e.Rect(0,0,0,0)},t.prototype.hitTest=function(t,n,i,e){return null},t.prototype.e1e=function(){},t.prototype.parameter=function(t){var n,i,e,u;if(0===arguments.length){for(e in i={},n=this.o1e)n.hasOwnProperty(e)&&(i[e]=r(n[e]));return i}if(t){for(e in u={},t)t.hasOwnProperty(e)&&(u[e]=o(t[e]));this.o1e=u}},t}(),n.CustomSheetTab=l},591:function(t,n,i){var e,o,r,u;function c(t){return"boolean"==typeof t}function a(t){return"string"==typeof t}function s(t){return t&&"="===t[0]}function l(t){return t&&t.indexOf(".")>-1}function f(t){return"number"==typeof t}function d(t){return e.Common.ct.W0(t)}function h(t){return"function"==typeof t}function v(t,n){var i=t.get(0);M(i)?i.aer():i.dispatchEvent(new Event(n))}function g(t){return t&&t.indexOf("sjs-")>-1}function M(t){return g(t.nodeName.toLowerCase())}function I(t){var n=t.get(0);return M(n)?n.shadowRoot&&n.shadowRoot.querySelector("input"):n}function b(t,i){var e,r,u=(0,o.GC$)(t,i);return M(t)&&(u.bur=function(t){u.get(0).bur(t)},u.focus=function(){u.get(0).ZS()},u.setItems=function(t){t&&t.length>0&&u.attr("items",JSON.stringify(t));try{u.get(0).Cor(t)}catch(t){}},u.val=function(t){var i=u.get(0);if(!arguments.length)return i.Sl();try{!(0,n.isNullOrUndefined)(i.getAttribute("value"))||i.shadowRoot&&!(0,n.isNullOrUndefined)(i.shadowRoot.innerHTML)&&""!==i.shadowRoot.innerHTML?i.Kbt(t):i.y4=t}catch(t){}(0,n.isNullOrUndefined)(t)||i.setAttribute("value","string"==typeof t?t:""+t)},e=u.bind.bind(u),u.bind=function(t,i,o){void 0===o&&(o=i,i=n.keyword_undefined),"input"!==t?e(t,i,o):e(t="sjs-value-change",i,(function(t){var i=!1,e,r=!1;(0,n.isNullOrUndefined)(t.target)?(i=!0,t.target={value:t.detail}):t.target.value!==t.detail&&(r=!0,e=t.target.value,t.target.value=t.detail),o(t),r&&(t.target.value=e),i&&delete t.target}))},r=u.unbind.bind(u),u.unbind=function(t){"input"===t&&(t="sjs-value-change"),r(t)}),u}function N(t){return b(u(t))}function D(t){return w(t,!0)}function m(t){return w(t,!1)}function w(t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},e=new RegExp("(?:&|<|>|\"|'|`)","g"),o={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},r=new RegExp("(?:&|<|>|"|'|`)","g"),u=n?e:r,c=n?i:o;return u.test(t)?t.replace(u,(function(t){return c[t]})):t}Object.defineProperty(n,"__esModule",{value:!0}),n.dI=n.j0=n.createDCElement=n.DC$=n.getSJSInput=n.isSJSElem=n.isSJSComponent=n.triggerEvent=n.isFunction=n.isDate=n.isNumber=n.isRelation=n.isFormula=n.isString=n.isBoolean=n.keyword_undefined=n.keyword_null=n.cloneObject=n.isNullOrUndefined=n.DOCUMENT=void 0,e=i(7234),o=i(1376),n.DOCUMENT=document,r=e.Common.lt,u=o.mt.En,n.isNullOrUndefined=r.ht,n.cloneObject=r.tv,n.keyword_null=null,n.keyword_undefined=void 0,n.isBoolean=c,n.isString=a,n.isFormula=s,n.isRelation=l,n.isNumber=f,n.isDate=d,n.isFunction=h,n.triggerEvent=v,n.isSJSComponent=g,n.isSJSElem=M,n.getSJSInput=I,n.DC$=b,n.createDCElement=N,n.j0=D,n.dI=m},605:function(n){n.exports=t.Spread.Sheets.StatusBar},806:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M=this&&this.vJr||(b=function(t,n){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},b(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}b(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),I=this&&this.mJr||function(){return I=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},I.apply(this,arguments)},b;function N(t){return"number"==typeof t}function D(t){return"string"==typeof t}function m(t){return t instanceof Function}function w(t){return"object"==typeof t&&!a(t)}function C(t){return t instanceof Array}function y(t){return"boolean"==typeof t}function x(t){return D(t)?"ROWACTION_".concat(t):t}function A(t,n){w(n)?(t.imageType=n.imageType,t.imageSrc=n.imageSrc,t.imageSize=n.imageSize):(t.imageType=l,t.imageSrc=l,t.imageSize=l)}function T(t,n,i,e,r,u,c){var s=S(t,n,i,e,c);if(!a(s))return r[u]=new o.Rect(s.x,s.y,s.width,s.height),r[u].offsetX=s.x-c.x,r[u].offsetY=s.y-c.y,r[u]}function j(t,n,i,e,o,r){p(t,n.x,n.y,n.width,n.height,i,e,o,r)}function p(t,n,i,e,o,u,c,a,s){var l,f;t.save(),t.rect(n,i,e,o),t.clip(),t.beginPath(),(f=Q(u,(l=a.dataRange?a.dataRange.convertContext(a):a).row))&&z(t,u,n,i,e,o,f,a,s,r.middleCenter),t.restore()}function z(t,n,i,e,r,u,c,a,s,l){var f,d,h,g,M,I,b,N,D,m,w,C,y;t.save(),t.rect(i,e,r,u),t.clip(),t.beginPath(),(d=(f=a.sheet).BO()).getState(c)?d.qh(c)&&(h=f.zoom(),g=new o.Rect(i,e,r,u),M=Z(n),I=U(n),N=L(l,g,b=new o.Rect(0,0,M*h,I*h)),m=(D=d.getImage(c)).width,w=D.height,o.mt.Tt.msie&&n.imageType&&(n.imageType===o.ButtonImageType.custom?(v[c]||(D.style.position="absolute",D.style.left="-10000px",D.style.top="-100000px",document.body.appendChild(D),v[c]={width:D.width,height:D.height},document.body.removeChild(D)),m=v[c].width,w=v[c].height):(m=12,w=12)),s&&o.mt.Tt.msie&&N.x+N.width>s.x+s.width?(C=s.x+s.width-N.x)>0&&(y=m/(M*h),t.drawImage(D,0,0,C*y,w,N.x,N.y,C,I*h)):t.drawImage(D,0,0,m,w,N.x,N.y,M*h,I*h)):d.addImage(c,"anonymous"),t.restore()}function L(t,n,i){var e=Math.max(0,(n.width-i.width)/2),u=Math.max(0,(n.height-i.height)/2);return t===r.leftCenter&&(e=0),new o.Rect(n.x+e,n.y+u,Math.min(i.width,n.width),Math.min(i.height,n.height))}function S(t,n,i,e,r){if(!(t+i<r.x||t>r.x+r.width||n+e<r.y||n>r.y+r.height))return t+i>r.x+r.width&&(i=r.x+r.width-t),n+e>r.y+r.height&&(e=r.y+r.height-n),t<r.x&&(t=r.x),n<r.y&&(n=r.y),new o.Rect(t,n,i,e)}function O(t,n){return N(t)?{imageType:t,imageSize:k(n)}:D(t)?{imageType:o.ButtonImageType.custom,imageSrc:t,imageSize:k(n)}:l}function k(t){return N(t)?{width:t,height:t}:t}function E(t,n,i,e){var o,r;return void 0===e&&(e=!0),o=i.sheet.zoom(),a(t.width)?(r=Z(t),e?r*o:r):(r=f(1,t.width),isNaN(r)&&(r=1),e?r*o:r)}function Z(t){var n;return t.imageSize&&("string"==typeof t.imageSize.width&&(n=d(t.imageSize.width)),"number"==typeof t.imageSize.width&&(n=t.imageSize.width)),(n===s||isNaN(n)||n<0)&&(n=12),n}function U(t){var n;return t.imageSize&&("string"==typeof t.imageSize.height&&(n=d(t.imageSize.height)),"number"==typeof t.imageSize.height&&(n=t.imageSize.height)),(n===s||isNaN(n)||n<0)&&(n=12),n}function G(t,n,i,e,o){var r=t.Ut.getValueForKey(n,i,h,e);return a(r)&&B(t,n,i,e,r={layout:{}}),r}function B(t,n,i,e,o){t.Ut.setValueForKey(n,i,h,o,e)}function R(t,n,i,e,o){var r;delete G(n,i,e,o).layout[t]}function P(t,n,i){var e,o,r=n.BO();for(e=0;e<t.length;e++)D(o=Q(t[e].option,i))&&r.addImage(o,"anonymous")}function Q(t,n){var i,e,r=null,u=t.imageType;if(a(t.imageType))return null;switch(e=(i=Y(t.enabled,n))||a(i),u){case o.ButtonImageType.dropdown:r=e?"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDU1ICg3ODA3NikgLSBodHRwczovL3NrZXRjaGFwcC5jb20gLS0+CiAgICA8dGl0bGU+ZHJvcGRvd248L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iZHJvcGRvd24iIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwb2x5Z29uIGZpbGw9IiM2RTZFNkUiIHBvaW50cz0iMyA0IDEwIDQgNi41IDkiPjwvcG9seWdvbj4KICAgIDwvZz4KPC9zdmc+":"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzI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IHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICM2ZTZlNmU7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=":"data:image/svg+xml;PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJleHBhbmQiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiPgogICAgICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiIHJ4PSI0cHgiIHJ5PSI0cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7IGZpbGw6IG5vbmU7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjJweCIgeTE9IjZweCIgeDI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=";break;case o.ButtonImageType.custom:r=t.imageSrc}return r}function Y(t,n){return"function"==typeof t?t(n):t}Object.defineProperty(n,"__esModule",{value:!0}),n.paintImage=n.RowAction=n.ImagePosition=void 0,e=i(7234),o=i(1376),function(t){t[t.leftTop=0]="leftTop",t[t.leftCenter=1]="leftCenter",t[t.leftBottom=2]="leftBottom",t[t.middleTop=3]="middleTop",t[t.middleCenter=4]="middleCenter",t[t.middleBottom=5]="middleBottom",t[t.rightTop=6]="rightTop",t[t.rightCenter=7]="rightCenter",t[t.rightBottom=8]="rightBottom"}(r=n.ImagePosition||(n.ImagePosition={})),u=e.Common.lt,c=o.CellTypes.RowHeader,a=u.ht,s=null,l=void 0,f=Math.max,d=parseInt,h="rowActionParam",v={},g=function(t){function n(n,i){var e=t.call(this)||this;return e.Wgi=[],e.MU=n,e.DJ=i,e}return M(n,t),n.prototype.toJSON=function(){var n=t.prototype.toJSON.call(this);return delete n.MU,delete n.Wgi,delete n.DJ,n},n.prototype.build=function(t){this.Wgi=this.Hgi(t)},n.prototype.iIe=function(t,n){return t.NMi.tIe(n)?this.Wgi:[]},n.prototype.Hgi=function(t){var n=this,i=n.MU,e=n.MU.subActionOptions;return t=C(t.subActionOptions)?t.subActionOptions:[t],(C(e)?e:[i]).map((function(n,i){return I({rowActionOption:n,command:x(n.command),visible:!0},t[i])}))},n.prototype.Vgi=function(t,n){var i=-1;return y(t)?1===n.length?i=t?0:-1:n.length>1&&(i=t?1:0):N(t)&&(i=t),i},n.prototype.Fgi=function(t,n){var i=t.icons,e=void 0===i?[]:i,o=t.iconSelector,r=t.iLi,u=t.iconSize,c=this,a=c.DJ,s=c.Vgi(o?o(a.getDataItem(n),n,a):!r||r(l,n,a),e),f=e[s];return O(f,u)},n.prototype.Jgi=function(t){var n,i,e,o,r=this,u=t.dataRange?t.dataRange.convertContext(t):t,c=r.iIe(u.sheet,u.row),s=[];for(n=0;n<c.length;n++)e=(i=c[n]).visible,a(e)||m(e)&&e(u.row)||y(e)&&e?(o=r.Fgi(i.rowActionOption,u.row),a(o)?R(n,u.sheet,u.row,u.col,u.sheetArea):(s.push({index:n,width:0,option:i}),A(i,o))):R(n,u.sheet,u.row,u.col,u.sheetArea);return s},n.prototype.Xgi=function(t,n,i,e){var o,r,u=0;for(o=0;o<t.length;o++)r=E(t[o].option,i,e),t[o].width=r,u+=r;return n/2-u/2},n.prototype.Kgi=function(t,n,i,e,r,u,c,s){var l,f,d,h,v,g,M=this,I=s.sheet,b=s.row,N=s.col,D=s.sheetArea,m=new o.Rect(i,e,r,u),w=s.dataRange?s.dataRange.convertContext(s):s,C=M.Jgi(s);if(C.length>0){for(P(C,I,w.row),t.save(),t.rect(m.x,m.y,m.width,m.height),t.clip(),t.beginPath(),l=m.x+M.Xgi(C,m.width,c,s),d=(f=G(I,b,N,D)).layout,h=0;h<C.length;h++)v=C[h],g=T(l,m.y,v.width,m.height,d,v.index,m),a(g)||(j(t,g,v.option,c,s,f),l+=g.width);t.restore()}},n.prototype.paint=function(n,i,e,o,r,u,c,a){n&&(t.prototype.paint.call(this,n,i,e,o,r,u,c,a),this.Kgi(n,i,e,o,r,u,c,a))},n.prototype.getHitInfo=function(t,n,i,e,r){var u,c,a,s,l,f,d,h={x:t,y:n,row:r.row,col:r.col,cellRect:e,cellStyle:i,sheetArea:r.sheetArea,sheet:r.sheet,context:r,isRowAction:!0},v=r.dataRange?r.dataRange.convertContext(r):r,g=G(h.sheet,h.row,h.col,h.sheetArea,!0),M=this.iIe(v.sheet,v.row);if(!g||0===M.length)return null;for(l in u=g.layout,c=-1,a=h.x,s=h.y,u)if(u.hasOwnProperty(l)&&(f=void 0,d=u[l],(f=new o.Rect(e.x+d.offsetX,e.y+d.offsetY,d.width,d.height))&&f.contains(a,s))){c=+l;break}return-1!==c&&(h.actionHitInfo={index:c,option:M[c]}),h},n.prototype.processMouseUp=function(t){var n,i,e,r,u,c,l,f,d,h,v,g,M,I,b,N,w;return!!t&&(n=t.sheet,i=t.row,e=t.col,r=t.cellRect,u=t.sheetArea,c=t.actionHitInfo,f=(l=n.getSelections()).length>1||1===l.length&&l[0].rowCount>1,d=t.isShift,h=t.isCtrl,!(d||h||f||!(i===n.ui&&e===n.ci||u!==o.SheetArea.rowHeader||n.endEdit()))&&(g=(v=t.context.dataRange)?t.context.dataRange.convertContext(t.context):t.context,N=(M=this).MU,a(c)?(I=x(N.command),b=!0):(I=(w=c.option).command,b=Y(w.enabled,g.row)),!(!n||a(I)||!b&&!a(b))&&(n.getActiveRowIndex()===i&&n.getActiveColumnIndex()===e||n.eR(i,-1,1,-1,2),D(I)?n.getParent().commandManager().execute({cmd:I,row:g.row,col:g.col,sheetName:g.sheet.name(),sheetArea:g.sheetArea,isDataRange:v}):m(I)&&I.call(s,g.sheet,g.row,g.col,g.sheetArea),t.isReservedLocation=!0,n.repaint(r),!0)))},n.prototype.processMouseMove=function(t){var n,i,e,o,r,u,c,s;return!!t&&(n=this,i=t.actionHitInfo,o=n.MU,u=(r=t.context.dataRange?t.context.dataRange.convertContext(t.context):t.context).sheet.Ut.Ci(r.row,r.col,r.sheetArea),c=r.sheet.Ut.Ci(-1,r.col,r.sheetArea),!D(u)&&(e=a(i)?o.tooltip:(s=i.option).rowActionOption.tooltip,!(!r.sheet||e===c)&&(r.sheet.Ut.$n(-1,r.col,e,r.sheetArea),!0)))},n}(c),n.RowAction=g,n.paintImage=z},808:function(t,n,i){var e=this&&this.hJr||(Object.create?function(t,n,i,e){void 0===e&&(e=i);var o=Object.getOwnPropertyDescriptor(n,i);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,e,o)}:function(t,n,i,e){void 0===e&&(e=i),t[e]=n[i]}),o=this&&this.dJr||function(t,n){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(n,i)||e(n,t,i)};Object.defineProperty(n,"__esModule",{value:!0}),o(i(447),n),i(8680),i(4488),o(i(6277),n),i(6602),o(i(6114),n),o(i(2742),n),i(3889),i(1850),o(i(419),n),o(i(7621),n)},1090:function(t,n,i){var e,o,r,u,c,a,s=this&&this.vJr||(l=function(t,n){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},l(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}l(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),l;Object.defineProperty(n,"__esModule",{value:!0}),n.leo=void 0,e=i(1376),o=i(8057),r=i(9846),u=e.mt,c=u.En,a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.ZX=function(){var t,n,i=this,o=(0,e.GC$)(c("div"));return o.addClass("gc-defined-column-barcode-options-container"),t=[],i.ato(o,"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(i){var e=i.value;"ECC140"===e?(n.isDisable()&&n.resetDisable(),t.forEach((function(t){t.isDisable()||t.resetDisable()}))):"ECC200"===e?(t.forEach((function(t){t.isDisable()&&t.resetDisable()})),n.isDisable()||n.resetDisable()):(t.forEach((function(t){t.isDisable()||t.resetDisable()})),n.isDisable()||n.resetDisable())})),t.push(i.cto(o,"structureAppend",!1)),t.push(i.ato(o,"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)),t.push(i.ato(o,"structureNumber",(0,r.getItems)(15,!1,!0),!1)),t.push(i.ato(o,"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)),t.push(i.teo(o,"fileIdentifier",0,254,!1)),n=i.ato(o,"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),o},n}(o.Meo),n.leo=a},1163:function(t,n,i){var e,o,r,u,c,a,s,l,f,d;function h(t){var n,i=t.match(c);if(i&&i[0])return n=i[0],-1!==f.indexOf(n)?-1:parseInt(n.split("-")[1],16)}function v(t){return t.replace(c,(function(t,n){var i="[$";return n.length>0&&"-"!==n[0]&&(i+="$"),i+="-409]"}))}function g(t,n){if(!t)return t;var i=t.split(";");return(i=i.map((function(t,e){return 4===i.length&&2===e?t.replace(new RegExp("\\?{"+n+"}"),""):t.replace(u,"")}))).join(";")}function M(t){var n=e.Common.CultureManager.getCultureInfoDict(),i=(0,o.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,u=(0,o.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat,c={category:4,index:-1};if(t=t.replace(l,""),u.indexOf(t)>-1?(c.index=u.indexOf(t),c.locale="ja-jp",c.calendarType="JER",1===c.index&&(c.numberSystem=1)):i.indexOf(t)>-1?(c.index=i.indexOf(t),c.locale="ja-jp",c.calendarType="JER"):Object.keys(n).forEach((function(i){var e,o,u,s,l;if(!(c.index>-1)&&"invariant"!==i){if(e=i,o=t,!n[i].predefinedFormats||!n[i].predefinedFormats.Date){if(u=h(t),!(0,r.isNullOrUndefined)(u)&&u!==n[i].id)return;e=a,o=v(t)}(l=(s=n[e].predefinedFormats.Date).indexOf(o))>-1&&(c.index=l,c.locale=i,c.calendarType="western")}})),c.index>-1)return c}function I(t){var n=e.Common.CultureManager.getCultureInfoDict(),i={category:5,index:-1};if(Object.keys(n).forEach((function(e){var o,u,c,s,l;if(!(i.index>-1)&&"invariant"!==e){if(o=e,u=t,!n[e].predefinedFormats||!n[e].predefinedFormats.Time){if(c=h(t),!(0,r.isNullOrUndefined)(c)&&c!==n[e].id)return;o=a,u=v(t)}(l=(s=n[o].predefinedFormats.Time).indexOf(u))>-1&&(i.index=l,i.locale=e)}})),i.index>=0)return i}function b(t,n){var i,u=e.Common.CultureManager.getCultureInfoDict(),c={category:3,index:-1};if(t&&(i=g(t,n).replace(l,""),Object.keys(u).forEach((function(t,e){var s,l;if(!(c.index>-1)&&"invariant"!==t){if(s=t,!u[t].predefinedFormats||!u[t].predefinedFormats.Accounting&&!u[s].predefinedFormats.Comma){if(l=h(i),!(0,r.isNullOrUndefined)(l)&&l!==u[t].id)return;s=a,i=v(i)}g(u[s].predefinedFormats.Accounting,2)===i?(c.decimalPlaces=n,c.locale=t,c.index=e):g(u[s].predefinedFormats.Comma,2)===i&&(c.decimalPlaces=n,c.locale=(0,o.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],c.index=e)}}))),c.index>-1)return c}function N(t,n){var i,e,r;if(t&&(i=(0,o.getSR)().columnTypeNumberFormatting.percentageFormats,e=null,e=t,0!==n&&(r="\\"+t.substring(t.indexOf("."),t.indexOf(".")+n+1),e=t.replace(new RegExp(r,"g"),"")),e===i[0]))return{decimalPlaces:n,category:6,index:0}}function D(t,n){var i,e,r,u,c={category:1,index:-1};if(t)for(i=(0,o.getSR)().columnTypeNumberFormatting.numberCategoryFormats,e=t,0!==n&&(r="\\"+t.substring(t.indexOf("."),t.indexOf(".")+n+1),e=t.replace(new RegExp(r,"g"),"")),e=e.replace(l,""),u=0;u<i.length;u++)if(e===i[u])return c.decimalPlaces=n,-1!==t.indexOf("#,")&&(c.useThousand=!0),c.index=u%(i.length/2),c}function m(t,n){var i=e.Common.CultureManager.getCultureInfoDict(),c={category:2,index:-1},s=t;if(t&&(s=t.replace(u,"").replace(l,""),(0,o.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(s)>-1?(c.decimalPlaces=n,c.locale=(0,o.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],c.index=(0,o.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(s)):Object.keys(i).forEach((function(t){var e,o,l;if(!(c.index>-1)&&"invariant"!==t){if(e=i[t].predefinedFormats.Currency,!i[t].predefinedFormats||!i[t].predefinedFormats.Currency){if(o=h(s),!(0,r.isNullOrUndefined)(o)&&o!==i[t].id)return;s=v(s),e=i[a].predefinedFormats.Currency}if(e&&e.length>0){if(c.index>-1)return;(l=(e=e.map((function(t){return t.replace(u,"")}))).indexOf(s))>=0&&(c.decimalPlaces=n,c.locale=t,c.index=l)}}})),c.index>-1))return c}function w(t,n){var i="\u200e",e=n.id,o=d.hasOwnProperty(e);return t.replace(c,(function(t,e,r,u,c,a){var s="[$";return u.length>0&&"$"===u[0]&&(s+=n.NumberFormat.currencySymbol?n.NumberFormat.currencySymbol:"$"),s+=(o?i:"")+"-"+n.id.toString(16)+"]",o?e+r+c+s+a:e+r+s+c+a}))}function C(t,n){var i,r,u,c,a,s=e.Common.CultureManager.getCultureInfo(t);if(s)return!(r=(i=s.predefinedFormats&&s.predefinedFormats[n])instanceof Array)&&i||r&&i.length>0?i:(u=e.Common.CultureManager.culture(),(i=(a=(c=e.Common.CultureManager.getCultureInfo(u)).predefinedFormats)[n]||(0,o.getSR)().columnTypeNumberFormatting.commonFormats[n]&&(0,o.getSR)().columnTypeNumberFormatting.commonFormats[n].format)instanceof Array?i=i.map((function(t){var n=t.split(";");return(n=n.map((function(t){return w(t,s)}))).join(";")})):"object"==typeof i?{}:i.split(";").map((function(t){return w(t,s)})).join(";"))}function y(t){var n,i,e="";if(t)for(n=0;n<t.length;n++)t[n]&&(i=t[n].match(c))&&i[0]&&(e=i[0],t[n]=t[n].replace(c,"[$]"));return e}function x(t,n){var i,e;if(n)for(i=0;i<t.length;i++)t[i]&&(e=t[i].indexOf("[$]"))>-1&&(t[i]=t[i].slice(0,e)+n+t[i].slice(e+3))}function A(t,n){var i,o=e.Common.CultureManager.getCultureInfoDict(),r=[];return n&&(r=r.concat(n)),i=e.Common.CultureManager.culture(),Object.keys(o).sort((function(t,n){return t===i?-1:1})).forEach((function(n){if("invariant"!==n){var i=o[n];2===t||3===t?r.push({text:i.NumberFormat.currencySymbol+" "+i.displayName,value:n}):r.push({text:i.displayName,value:n})}})),r}function T(t){var n,i,e,o;if(!t||"General"===t)return{category:0,index:0};if("@"===t)return{category:9,index:0};if(n=M(t)||I(t))return n;if(i=0,t&&-1!==t.indexOf("."))for(o=(e=t.indexOf("."))+1;o<t.length&&"0"===t.substring(o,o+1);o++)i++;return(n=b(t,i)||N(t,i)||D(t,i)||m(t,i))||{category:11,index:0}}Object.defineProperty(n,"__esModule",{value:!0}),n.parseFormat=n.getListItems=n.afterAdjustFormatString=n.beforeAdjustFormatString=n.getPredefinedFormats=n.formatCategories=n.decimalPlacesWithZeroDotReg=void 0,e=i(7234),o=i(6114),r=i(591),u=/\.0*/g,n.decimalPlacesWithZeroDotReg=/(0)(\.?(0*)?)/g,c=/\[\$(.?-.*?)\]/g,a="en-us",l=new RegExp(s="\\\\","g"),f=["[$\u20ac-1]","[$\u20ac-2]"],n.formatCategories=["General","Number","Currency","Accounting","Date","Time","Percentage","Fraction","Scientific","Text","Special","Custom"],d={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},n.getPredefinedFormats=C,n.beforeAdjustFormatString=y,n.afterAdjustFormatString=x,n.getListItems=A,n.parseFormat=T},1376:function(n){n.exports=t.Spread.Sheets},1434:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z=this&&this.vJr||(G=function(t,n){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},G(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}G(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),U=this&&this.mJr||function(){return U=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},U.apply(this,arguments)},G;function B(t){return void 0===t}function R(t,n){return d(t)&&(t=Number.MIN_VALUE),d(n)&&(n=Number.MIN_VALUE),l(t,n)}function P(t){return Q(t)||Y(t)}function Q(t){return t===o.GroupLayoutMode.outline}function Y(t){return t===o.GroupLayoutMode.condensed}function H(t,n){var i,e;return t?(e=t.headerStyle&&!!t.headerStyle.formatter,i=q(t.headerStyle,n),e||(i.formatter=a)):(i=n.clone()).formatter=a,i}function W(t,n){return t?q(t.style,n):n}function V(t){var n=new e.Style;return B(t.backColor)||(n.backColor=t.backColor),B(t.foreColor)||(n.foreColor=t.foreColor),B(t.font)||(n.font=t.font),B(t.themeFont)||(n.themeFont=t.themeFont),B(t.cellPadding)||(n.cellPadding=t.cellPadding),n}function F(t){return J(t.value,t.caption)}function J(t,n){return d(t)?a:n?"".concat(n).concat((0,c.getSR)().TextColon," ").concat(t):""+t}function _(t){return X(t.value,t.field)}function X(t,n){return d(t)?""+n:"".concat(n).concat((0,c.getSR)().TextColon," ").concat(t)}function K(t,n,i){var o;return B((o=t instanceof e.Style?t.clone():new e.Style(t)).foreColor)&&i&&!B(i.foreColor)&&(o.foreColor=i.foreColor),n&&o.v5(n),o}function q(t,n){if(t){var i=K(t);n&&i.compose(n),n=i}return n&&(delete n.cellButtons,delete n.dropDowns),n}function $(t,n){return t.hAlign===e.HorizontalAlign.general||d(t.hAlign)?n:t.hAlign}function tt(t,n,i){var e,o;for(o in t||(t={}),e=n[i])e.hasOwnProperty(o)&&d(t[o])&&(t[o]=U(U({},e[o]),{value:n.value}));return t}function nt(t,n,i){var e,o,r;for(o in t)t.hasOwnProperty(o)&&((r=t[o])[n]&&(e=tt(e,r,n)),i&&(e=tt(e,r)));return e}function it(t,n){var i,e,o,r,u,c;for(i in t)"parent"!==i&&"children"!==i&&(n[i]=t[i]);for(n.children=[],o=0,r=e=t.children;o<r.length;o++)u=r[o],c={},n.children.push(c),it(u,c)}function et(t){var n,i,e,o=t.children;for(n=0,i=o;n<i.length;n++)(e=i[n]).parent=t,et(e)}function ot(t,n){var i,e,o,r,u=!0,c=t.start===n.start&&t.end===n.end,a=t.children.length===n.children.length;if(c&&a)for(i=t.children.length,e=0;e<i&&!1!==(u=ot(o=t.children[e],r=n.children[e]));e++);else u=!1;return u}function rt(t){return t&&t.row&&"number"==typeof t.row&&t.row>0?t.row:a}function ut(t){var n,i,e,o=0,r=null===(e=null===(i=null===(n=null==t?void 0:t.cellNode)||void 0===n?void 0:n.field)||void 0===i?void 0:i.extra)||void 0===e?void 0:e.spacing;return r&&(o=rt(r)),o}function ct(t){if(t.dataRange)return t.dataRange.convertContext({sheet:t.sheet,row:t.row,col:t.col,sheetArea:t.sheetArea})}function at(t){return!d(t)&&""!==t}function st(t,n,i,e){return at(n)&&at(e)?"".concat(t," ").concat(n," | ").concat(i," ").concat(e):at(n)?"".concat(t," ").concat(n):at(e)?"".concat(i," ").concat(e):void 0}function lt(t,n,i){var o,r,u,c,a=t.getRowCount(e.SheetArea.colHeader);for(u=a-1;u>=0;u--)if(c=t.getValue(u,i,e.SheetArea.colHeader),d(o))o=c,r=u;else{if(o!==c)break;r=u}return n===r}Object.defineProperty(n,"__esModule",{value:!0}),n.Grouping=n.nMi=n.getHorizontalAlign=n.getGroupHeaderValueFromCondensed=n.getValueFromCondensed=n.composeValueStyle=n.composeHeaderStyle=n.isGroupCondensedLayout=n.isGroupOutlineLayout=n.isGroupOutlineCondensedLayout=void 0,e=i(1376),o=i(447),r=i(7234),u=i(8966),c=i(6114),a=void 0,s=Math.round,l=Math.max,f=Math.ceil,d=r.Common.lt.ht,h=e.I.fl,g=(v="gc-group")+"-box",M={position:"header"},n.isGroupOutlineCondensedLayout=P,n.isGroupOutlineLayout=Q,n.isGroupCondensedLayout=Y,n.composeHeaderStyle=H,n.composeValueStyle=W,n.getValueFromCondensed=F,n.getGroupHeaderValueFromCondensed=_,n.getHorizontalAlign=$,I=function(){function t(){}return t.prototype.Hc=function(t,n){var i={level:-1,collapsed:!1,children:[],parent:a,start:0,end:n},e=0,o=0;this.eMi(t,e,o,i),this.oMi&&this.wno(this.oMi,i),this.oMi=i},t.prototype.eMi=function(t,n,i,e){var o,r,u,c,a,s,l=e.children,f=t.childrenArray&&t.childrenArray[0]||[],d=0;for(o=0,r=f;o<r.length;o++)c=(u=r[o]).recordRowNumbers,u.childrenArray&&u.childrenArray[0]&&0!==u.childrenArray[0].length?u.childrenArray&&u.childrenArray[0]&&u.childrenArray[0].length&&(a={level:i,value:u.value,collapsed:!1,children:[],parent:e,start:n,end:0,spacingIndex:u.spacingIndex},s=this.eMi(u,n,i+1,a),a.end=n+s-1,l.push(a),n+=s,d+=s):(l.push({start:n,end:n+c.length-1,level:i,collapsed:!1,children:[],parent:e,spacingIndex:u.spacingIndex,value:u.value}),n+=c.length,d+=c.length);return d},t.prototype.wno=function(t,n){var i,e,o,r,u,c,a=t.children,s=n.children;for(i=0,e=s;i<e.length;i++)for(o=e[i],r=0,u=a;r<u.length;r++)if(c=u[r],o.value===c.value){o.collapsed=c.collapsed,this.wno(c,o);break}},t.prototype.uMi=function(t,n,i,e){for(var o=0;o<t.length;o++)if(t[o].field===n){this.cMi(this.oMi,o,i,e);break}},t.prototype.cMi=function(t,n,i,e){var o,r,u,c=t.children;for(o=0,r=c;o<r.length;o++)u=r[o],this.rMi(u,n,i,e)},t.prototype.rMi=function(t,n,i,e){var o,r,u,c,a;if(t.level===n)o=!i,t.collapsed!==o&&(t.collapsed=o,e&&e(t.level,t.start));else for(u=0,c=r=t.children;u<c.length;u++)a=c[u],this.rMi(a,n,i,e)},t.prototype.aMi=function(t,n,i,e){var o,r,u,c,a,s=this.oMi,l=!i;if(s&&s.start<=n&&n<=s.end)for(o=s.children;o.length>0;){for(r=!0,u=0,c=o;u<c.length;u++)if((a=c[u]).start<=n&&n<=a.end){if(a.level===t)return a.collapsed!==l&&e(!a.collapsed),void(a.collapsed=l);o=a.children,r=!1;break}if(r)break}},t.prototype.Xto=function(t){for(t=t.parent;t;){if(t.collapsed)return!0;t=t.parent}return!1},t.prototype.sMi=function(t,n,i,e,o){var r,u,c,a,s,l,f,d=-1,h=this.oMi,v="number"==typeof e;if(h&&h.start+i<=t&&t<=h.end){if(r=h.collapsed,v&&!o&&(r=h.spacingIndex===e&&h.parent&&this.Xto(h)),d<n&&r)return!1;for(u=h.children,d++;u.length>0;){for(c=!0,a=0,s=u;a<s.length;a++)if((l=s[a]).start+i<=t&&t<=l.end){if(f=l.collapsed,v&&!o&&(f=l.spacingIndex===e&&l.parent&&this.Xto(l)),d<n&&f)return!1;u=l.children,d++,c=!1;break}if(c)break}}return!0},t.prototype.MMi=function(t){var n,i,e,o,r,u=[],c=this.oMi;if(c&&c.start<=t&&t<=c.end)for(n=c.children;n.length>0;){for(i=!0,e=0,o=n;e<o.length;e++)if((r=o[e]).start<=t&&t<=r.end){u.push(r),n=r.children,i=!1;break}if(i)break}return u},t.prototype.IMi=function(t,n){var i,e,o,r,u,c=this.oMi;if(c&&c.start<=t&&t<=c.end)for(i=c.children;i.length>0;){for(e=!0,o=0,r=i;o<r.length;o++)if((u=r[o]).start<=t&&t<=u.end){if(u.level===n)return u;i=u.children,e=!1;break}if(e)break}},t.prototype.gMi=function(t){var n,i,e,o,r,u,c,a,s,l,f,d=this.oMi;if(!d)return!1;for(n=d.children.slice(0),i=0;i<t;){for(e=[],o=0,r=n;o<r.length;o++)for(c=0,a=(u=r[o]).children;c<a.length;c++)s=a[c],e.push(s);n=e,i++}for(l=0,f=n;l<f.length;l++)if(!(u=f[l]).collapsed)return!1;return!0},t.prototype.L0=function(){this.oMi=a},t.prototype.toJSON=function(){if(this.oMi){var t={};return it(this.oMi,t),t}return this.oMi},t.prototype.fromJSON=function(t,n){var i=this.oMi;(n||i&&t&&ot(this.oMi,t))&&(et(t),this.oMi=t)},t}(),b=40,D=(N=16)/4,m=2.5,w=2.5,C=5,y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Z(n,t),n.prototype.paint=function(n,i,e,o,r,u,c,l){var f,d,v,M,I,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,Q=l.sheet,Y=l.row;if(l.dataRange&&(f=ct(l))&&(Q=f.sheet,Y=f.row),d=l.sheet.zoom(),v=N*d,M=D*d,I=m*d,w=Q.NMi)for(C=l.visualState,l.visualState=a,this.wm(n,e,o,r,u,c,l),l.visualState=C,A=!(x=P(y=w.keo())),j=(T=w.MMi(Y)).length,p=(b*j-N*j)/(j+1)*d,t.prototype.paintValue.call(this,n,i,e,o,r,u,c,l),z=0;z<j;z++)L=T[z],(z!==w.lMi.length-1||w.detailColumnsVisible())&&w.DMi(z,Y)&&(n.save(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,O=(S=e+p)+v/2,k=o+u,E=o+u/2,(Z=L.start===Y)&&A?(U=s(S)-.5,G=s(S+v)-.5,B=s(E-v/2)-.5,R=s(E-v/2+v)-.5,n.moveTo(U,B),n.lineTo(G,B),n.lineTo(G,R),n.lineTo(U,R),n.lineTo(U,B),n.moveTo(s(O-M)-.5,s(E)-.5),n.lineTo(s(O+M)-.5,s(E)-.5),L.collapsed?(n.moveTo(s(O)-.5,s(E-M)-.5),n.lineTo(s(O)-.5,s(E+M)-.5)):(n.moveTo(s(O)-.5,s(E+v/2)-.5),n.lineTo(s(O)-.5,s(k)-.5))):L.start<Y&&Y<L.end||Z&&x||L.end===Y&&this.Eeo(Q,Y,z)?(n.moveTo(s(O)-.5,s(o)-.5),n.lineTo(s(O)-.5,s(k)-.5)):L.end===Y&&(n.moveTo(s(O)-.5,s(o)-.5),n.lineTo(s(O)-.5,s(k-I)-.5),n.lineTo(s(O+M)-.5,s(k-I)-.5)),n.stroke(),n.restore(),e+=p+v)},n.prototype.fMi=function(t,n,i,e,o,r){var u,c,l,f,d,h,v,g,M,I,D,m,w,C=t.x,y=r.sheet.zoom(),x=N*y,A=e.NMi;if(A){if(c=P(u=A.keo()))return a;for(f=(l=A.MMi(o)).length,d=(b*f-N*f)/(f+1)*y,h=0;h<f;h++)if(v=l[h],(h!==A.lMi.length-1||A.detailColumnsVisible())&&A.DMi(h,o)){if(g=C+d,M=t.y+t.height/2,v.start===o&&(I=s(g)-.5,D=s(g+x)-.5,m=s(M-x/2)-.5,w=s(M-x/2+x)-.5,I<=n&&n<=D&&m<=i&&i<=w))return{level:h,index:o,collapsed:v.collapsed};C+=d+x}}},n.prototype.getHitInfo=function(t,n,i,e,o){var r,u,c,a,s,l;if(o&&(r=o.sheet,u=o.row,c=o.col,a=o.sheetArea,o.dataRange&&(s=ct(o))&&(r=s.sheet,u=s.row,c=s.col,a=s.sheetArea),2===a&&(l=this.fMi(e,t,n,r,u,o))))return{x:t,y:n,row:u,col:c,cellRect:e,sheetArea:2,isReservedLocation:!0,sheet:r,level:l.level,index:l.index,collapsed:l.collapsed}},n.prototype.processMouseDown=function(t){var n,i,e,o;return!(!t||!(n=t.sheet.NMi))&&(i=t.level,e=t.index,o=t.collapsed,n.zA({cmd:u.EXPAND_GROUP_ITEM,level:i,index:e,expand:o}),!0)},n.prototype.Eeo=function(t,n,i,e){void 0===e&&(e=0);var o=t.ncr&&t.ncr(n,e,-1,!0);return!(!o||o.isSpacing)&&i<=o.level},n.prototype.Zeo=function(t,n,i,e,o){var r,u=this;return!!o&&((r=function(e){return u.Eeo(t,n,i,e)})(e)&&r(e+1))},n}(e.CellTypes.RowHeader),x=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Z(n,t),n.prototype.paint=function(n,i,e,o,r,u,c,l){var f,d,v,M,I,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P=l.row,Q=l.sheet,Y=l.rowSpacingIndex,H=l.isAfterRowSpacing;if(l.dataRange&&(f=ct(l))&&(Q=f.sheet,P=f.row,Y=f.rowSpacingIndex,H=f.isAfterRowSpacing),d=l.sheet.zoom(),v=N*d,M=D*d,I=m*d,w=Q.NMi){if(C=l.visualState,l.visualState=a,this.wm(n,e,o,r,u,c,l),l.visualState=C,y=!H,!(x=Q.ncr&&Q.ncr(P,Y,-1,H)))return;for(A=x.level,T=x.isSpacing,p=(j=w.MMi(P)).length,z=(b*p-N*p)/(p+1)*d,t.prototype.paintValue.call(this,n,i,e,o,r,u,c,l),L=0;L<p;L++)L>A||(S=j[L],(L!==w.lMi.length-1||w.detailColumnsVisible())&&w.DMi(L,P)&&(n.save(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,k=(O=e+z)+v/2,E=o+u,Z=o+u/2,S.start===P&&L===A&&y?(U=s(O)-.5,G=s(O+v)-.5,B=s(Z-v/2)-.5,R=s(Z-v/2+v)-.5,n.moveTo(U,B),n.lineTo(G,B),n.lineTo(G,R),n.lineTo(U,R),n.lineTo(U,B),n.moveTo(s(k-M)-.5,s(Z)-.5),n.lineTo(s(k+M)-.5,s(Z)-.5),S.collapsed?(n.moveTo(s(k)-.5,s(Z-M)-.5),n.lineTo(s(k)-.5,s(Z+M)-.5)):(n.moveTo(s(k)-.5,s(Z+v/2)-.5),n.lineTo(s(k)-.5,s(E)-.5))):S.start<P&&P<S.end||L<A&&(y||this.Zeo(Q,P,L,Y,H))?(n.moveTo(s(k)-.5,s(o)-.5),n.lineTo(s(k)-.5,s(E)-.5)):S.end!==P||T||(n.moveTo(s(k)-.5,s(o)-.5),n.lineTo(s(k)-.5,s(E-I)-.5),n.lineTo(s(k+M)-.5,s(E-I)-.5)),n.stroke(),n.restore(),e+=z+v))}},n.prototype.fMi=function(t,n,i,e,o,r){var u,c,a,l,f,d,h,v,g,M,I,D,m,w,C,y,x,A=t.x,T=r.sheet.zoom(),j=N*T,p=e.NMi;if(p){if(u=r.rowSpacingIndex,c=r.isAfterRowSpacing,r.dataRange&&(a=ct(r))&&(u=a.rowSpacingIndex,c=a.isAfterRowSpacing),l=!c,!(f=e.ncr&&e.ncr(o,u,-1)))return;for(d=f.level,v=(h=p.MMi(o)).length,g=(b*v-N*v)/(v+1)*T,M=0;M<v;M++)if(!(M>d&&l)&&(I=h[M],(M!==p.lMi.length-1||p.detailColumnsVisible())&&p.DMi(M,o))){if(D=A+g,m=t.y+t.height/2,I.start===o&&M===d&&l&&(w=s(D)-.5,C=s(D+j)-.5,y=s(m-j/2)-.5,x=s(m-j/2+j)-.5,w<=n&&n<=C&&y<=i&&i<=x))return{level:M,index:o,collapsed:I.collapsed};A+=g+j}}},n}(y),A=2.5,n.nMi=lt,T=function(t){function n(n){var i=t.call(this)||this;return i.Tno=n,i.typeName="98",i}return Z(n,t),n.prototype.dMi=function(t,n){for(var i=0;i<n;i++)if(t.gMi(i))return!1;return!0},n.prototype.Sno=function(t,n,i,e,o,r){var u,c,a,s,l,f,d=o.sheet;return o.dataRange&&(u=ct(o))&&(d=u.sheet),c=o.sheet.zoom(),a=(N+2*w)*c,s=parseFloat(d.getDefaultStyle().cellPadding)*c,{x:l=r?t-a+s:t+a,y:n,w:f=i-a,h:e}},n.prototype.paint=function(n,i,e,o,r,u,c,a){if(t.prototype.paint.call(this,n,i,e,o,r,u,c,a),this.Tno){var s=this.Sno(e,o,r,u,a);this.Tno.paint(n,i,s.x,s.y,s.w,s.h,c,a)}},n.prototype.paintContent=function(n,i,e,r,u,c,a,l){var f,d,v,M,I,b,m,w,C,y,x,T,j,p,z,L,S,O,k,E=l.sheet,Z=l.row,U=l.col;l.dataRange&&(f=ct(l))&&(E=f.sheet,Z=f.row,U=f.col),d=l.sheet.zoom(),v=this.Sno(e,r,u,c,l),this.Tno||t.prototype.paintContent.call(this,n,i,v.x,v.y,v.w,v.h,a,l),M=N*d,I=D*d,b=E.NMi,m=E.getDataSource(),b&&b.lMi&&b.lMi.length>0&&m&<(E,Z,U)&&((w=b.groupOutlinePosition())!==o.GroupOutlinePosition.groupCell&&w!==o.GroupOutlinePosition.groupCellAll||!(y=(C=m.kve(U).OFt)===b.lMi.length-1&&!b.detailColumnsVisible())&&this.dMi(b,C)&&(x=b.gMi(C),T=A*d,n.save(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,p=(j=e+T)+M/2,z=r+c/2,L=s(j)-.5,S=s(j+M)-.5,O=s(z-M/2)-.5,k=s(z-M/2+M)-.5,n.moveTo(L,O),n.lineTo(S,O),n.lineTo(S,k),n.lineTo(L,k),n.lineTo(L,O),n.moveTo(s(p-I)-.5,s(z)-.5),n.lineTo(s(p+I)-.5,s(z)-.5),x&&(n.moveTo(s(p)-.5,s(z-I)-.5),n.lineTo(s(p)-.5,s(z+I)-.5)),n.stroke(),n.restore()))},n.prototype.fMi=function(t,n,i,e,r,u,c){var a,l,f,d,h,v,g,M,I,b,D,m,w=t.x,C=c.sheet.zoom(),y=N*C,x=e.NMi,T=e.getDataSource();if(x&&T&<(e,r,u)&&((a=x.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||a===o.GroupOutlinePosition.groupCellAll)&&!(f=(l=T.kve(u).OFt)===x.lMi.length-1&&!x.detailColumnsVisible())&&this.dMi(x,l)&&(d=x.lMi[l].field,h=x.gMi(l),g=w+(v=A*C),M=t.y+t.height/2,I=s(g)-.5,b=s(g+y)-.5,D=s(M-y/2)-.5,m=s(M-y/2+y)-.5,I<=n&&n<=b&&D<=i&&i<=m))return{field:d,level:l,collapsed:h}},n.prototype.getHitInfo=function(t,n,i,e,o){var r,u,c,s,l,f,d,h;if(o&&(r=o.sheet,u=o.row,c=o.col,s=o.sheetArea,o.dataRange&&(l=ct(o))&&(r=l.sheet,u=l.row,c=l.col,s=l.sheetArea),1===s)){if(e=this.An(e,i,o.sheet.zoom()),f=this.fMi(e,t,n,r,u,c,o))return{x:t,y:n,row:u,col:c,cellRect:e,sheetArea:1,isReservedLocation:!0,sheet:r,field:f.field,level:f.level,collapsed:f.collapsed};if(this.Tno&&(d=this.Sno(t,n,a,a,o,!0),h=this.Tno.getHitInfo&&this.Tno.getHitInfo(d.x,n,i,e,o)))return h.Drt=!0,h}},n.prototype.processMouseDown=function(t){var n,i,e;if(t&&(n=t.sheet.NMi)){if(!t.Drt)return i=t.field,e=t.collapsed,n.zA({cmd:u.EXPAND_GROUP,field:i,expand:e}),!0;if(this.Tno)return this.Tno.processMouseDown&&this.Tno.processMouseDown(t)}return!1},n.prototype.processMouseUp=function(t){return!!this.Tno&&(this.Tno.processMouseUp&&this.Tno.processMouseUp(t))},n.prototype.processMouseMove=function(t){return!!this.Tno&&(this.Tno.processMouseMove&&this.Tno.processMouseMove(t))},n.prototype.processMouseEnter=function(t){return!!this.Tno&&(this.Tno.processMouseEnter&&this.Tno.processMouseEnter(t))},n.prototype.processMouseLeave=function(t){return!!this.Tno&&(this.Tno.processMouseLeave&&this.Tno.processMouseLeave(t))},n.prototype.isReservedKey=function(t,n){return!!this.Tno&&(this.Tno.isReservedKey&&this.Tno.isReservedKey(t,n))},n.prototype.processKeyDown=function(t,n){return!!this.Tno&&(this.Tno.processKeyDown&&this.Tno.processKeyDown(t,n))},n.prototype.processKeyUp=function(t,n){return!!this.Tno&&(this.Tno.processKeyUp&&this.Tno.processKeyUp(t,n))},n.prototype.getAutoFitWidth=function(n,i,e,o,r){var u;return u=this.Tno&&this.Tno.getAutoFitWidth?this.Tno.getAutoFitWidth(n,i,e,o,r):t.prototype.getAutoFitHeight.call(this,n,i,e,o,r)},n.prototype.format=function(n,i,e,o){return this.Tno&&this.Tno.format?this.Tno.format(n,i,e,o):t.prototype.format.call(this,n,i,e,o)},n}(e.CellTypes.ColumnHeader),e.CellTypes.ti[98]=T,p=function(t){function n(n){var i=t.call(this)||this;return i.Tno=n,i}return Z(n,t),n.prototype.Sno=function(t,n,i,e,o,r){var u,c,a,s,l,f,d,h,v,g,M=o.sheet,I=o.row,b=o.col,D=o.rowSpacingIndex;return o.dataRange&&(u=ct(o))&&(M=u.sheet,I=u.row,b=u.col,D=u.rowSpacingIndex),c=o.sheet.zoom(),a=(N+2*w)*c,s=parseFloat(M.getDefaultStyle().cellPadding)*c,v=r?t-a+s:t+a,(d=P(f=(l=M.NMi).keo()))&&l.Mf.ncr&&(h=l.Mf.ncr(I,D,b),v=r?t-a*(h+1)+s:t+a*(h+1)),{x:v,y:n,w:g=i-a,h:e}},n.prototype.getHitInfo=function(t,n,i,e,o){var r,u,c,s,l,f,h,v,g,M;if(o&&(r=o.sheet,u=o.row,c=o.col,s=o.sheetArea,l=o.rowSpacingIndex,f=o.isAfterRowSpacing,o.dataRange&&(h=ct(o))&&(r=h.sheet,u=h.row,c=h.col,l=h.rowSpacingIndex,f=h.isAfterRowSpacing),3===s||d(s))){if(e=this.An(e,i,o.sheet.zoom()),v=this.fMi(e,t,n,r,u,c,l,o))return{x:t,y:n,row:u,col:c,cellRect:e,sheetArea:3,isReservedLocation:!0,sheet:r,level:v.level,index:v.index,collapsed:v.collapsed,rowSpacingIndex:l,isAfterRowSpacing:f};if(this.Tno&&(g=this.Sno(t,n,a,a,o,!0),M=this.Tno.getHitInfo&&this.Tno.getHitInfo(g.x,n,i,e,o)))return M.Drt=!0,M}},n.prototype.processMouseDown=function(t){var n,i,e,o;if(t&&(n=t.sheet.NMi)){if(!t.Drt)return i=t.level,e=t.index,o=t.collapsed,n.zA({cmd:u.EXPAND_GROUP_ITEM,level:i,index:e,expand:o}),!0;if(this.Tno)return this.Tno.processMouseDown&&this.Tno.processMouseDown(t)}return!1},n}(j=function(t){function n(n){var i=t.call(this)||this;return i.Tno=n,i}return Z(n,t),n.prototype.Sno=function(t,n,i,e,o,r){return{x:t,y:n,w:i,h:e}},n.prototype.paint=function(n,i,o,r,u,c,a,s){var l,f;t.prototype.paint.call(this,n,i,o,r,u,c,a,s),this.Tno&&(this.Tn&&this.An&&(l=new e.Rect(o,r,u,c),o=(l=this.An(l,a,(0,e.isPrintZoomFactorExist)(s)?s.printZoomFactor:s.sheet.zoom())).x,u=l.width),f=this.Sno(o,r,u,c,s),this.Tno.paint(n,i,f.x,f.y,f.w,f.h,a,s))},n.prototype.processMouseDown=function(t){return!!this.Tno&&(this.Tno.processMouseDown&&this.Tno.processMouseDown(t))},n.prototype.processMouseUp=function(t){return!!this.Tno&&(this.Tno.processMouseUp&&this.Tno.processMouseUp(t))},n.prototype.processMouseMove=function(t){return!!this.Tno&&(this.Tno.processMouseMove&&this.Tno.processMouseMove(t))},n.prototype.processMouseEnter=function(t){return!!this.Tno&&(this.Tno.processMouseEnter&&this.Tno.processMouseEnter(t))},n.prototype.processMouseLeave=function(t){return!!this.Tno&&(this.Tno.processMouseLeave&&this.Tno.processMouseLeave(t))},n.prototype.isReservedKey=function(t,n){return!!this.Tno&&(this.Tno.isReservedKey&&this.Tno.isReservedKey(t,n))},n.prototype.processKeyDown=function(t,n){return!!this.Tno&&(this.Tno.processKeyDown&&this.Tno.processKeyDown(t,n))},n.prototype.processKeyUp=function(t,n){return!!this.Tno&&(this.Tno.processKeyUp&&this.Tno.processKeyUp(t,n))},n.prototype.getAutoFitWidth=function(n,i,e,o,r){var u;return u=this.Tno&&this.Tno.getAutoFitWidth?this.Tno.getAutoFitWidth(n,i,e,o,r):t.prototype.getAutoFitHeight.call(this,n,i,e,o,r)},n.prototype.format=function(n,i,e,o){return this.Tno&&this.Tno.format?this.Tno.format(n,i,e,o):t.prototype.format.call(this,n,i,e,o)},n}(e.CellTypes.Text)),z=function(t){function n(n){var i=t.call(this,n)||this;return i.typeName="99",i}return Z(n,t),n.prototype.Ueo=function(t,n,i,e,r){return!!n&&(t.keo()===o.GroupLayoutMode.tabular?n.start===i:!("number"!=typeof r||!t.Mf.ncr)&&"number"==typeof t.Mf.ncr(i,r,e));var u},n.prototype.paintValue=function(n,i,e,r,u,c,a,l){var f,v,M,I,b,m,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,Q,Y,H,W,V=l.sheet,F=l.row,J=l.col;l.dataRange&&(f=ct(l))&&(V=f.sheet,F=f.row,J=f.col),v=l.sheet.zoom(),M=(N+2*w)*v,I=V.NMi,b=V.getDataSource(),m=N*v,y=D*v,x=l.rowSpacingIndex,T=P(A=I.keo()),!d(j=i)&&T&&"number"==typeof x&&(j="".concat(i)),T&&I.Mf.ncr&&(p=I.Mf.ncr(F,l.rowSpacingIndex,J)),z=this.Sno(e,r,u,c,l),this.Tno||t.prototype.paintValue.call(this,n,j,z.x,z.y,z.w,z.h,a,l),I&&b&&I.lMi&&I.lMi.length>0&&((L=I.groupOutlinePosition())!==o.GroupOutlinePosition.groupCell&&L!==o.GroupOutlinePosition.groupCellAll||(T||(p=b.kve(J).OFt),!(S=p===I.lMi.length-1&&!I.detailColumnsVisible())&&I.DMi(p,l.row)&&(O=w*v,k=C*v,E=I.IMi(F,p),(Z=this.Ueo(I,E,F,J,x))&&(n.save(),n.beginPath(),n.rect(e,r,u,c),n.clip(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,U=e+O,P(A)&&(U+=M*p),G=U+m/2,R=(B=r+k)+m/2,Q=s(U)-.5,Y=s(U+m)-.5,H=s(B)-.5,W=s(B+m)-.5,n.moveTo(Q,H),n.lineTo(Y,H),n.lineTo(Y,W),n.lineTo(Q,W),n.lineTo(Q,H),n.moveTo(s(G-y)-.5,s(R)-.5),n.lineTo(s(G+y)-.5,s(R)-.5),E.collapsed&&(n.moveTo(s(G)-.5,s(R-y)-.5),n.lineTo(s(G)-.5,s(R+y)-.5)),n.stroke(),n.restore()))))},n.prototype.fMi=function(t,n,i,e,r,u,c,a){var l,f,d,h,v,g,M,I,b,D,m,y,x,A,T,j=a?a.sheet.zoom():e.zoom(),p=N*j,z=e.NMi,L=e.getDataSource();if(z&&L&&((l=z.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||l===o.GroupOutlinePosition.groupCellAll)&&(d=P(f=z.keo())&&z.Mf.ncr?z.Mf.ncr(r,c,u):L.kve(u).OFt,h=(N+2*w)*j,!(v=d===z.lMi.length-1&&!z.detailColumnsVisible())&&z.DMi(d,r)&&(g=w*j,M=C*j,I=z.IMi(r,d),(b=this.Ueo(z,I,r,u,c))&&(D=t.x+g,P(f)&&(D+=h*d),m=t.y+M,y=s(D)-.5,x=s(D+p)-.5,A=s(m)-.5,T=s(m+p)-.5,y<=n&&n<=x&&A<=i&&i<=T))))return{level:I.level,index:r,collapsed:I.collapsed}},n.prototype.Ln=function(n,i,e,o,r){var u,c,a,s=r.sheet,l=r.col;return r.dataRange&&(u=ct(r))&&(s=u.sheet,l=u.col),c=s.NMi,a=t.prototype.Ln.call(this,n,i,e,o,r),c&&c.hMi(l)&&(a+=(N+2*w)*o),a},n}(p),e.CellTypes.ti[99]=z,L=function(t){function n(n){var i=t.call(this,n)||this;return i.typeName="108",i}return Z(n,t),n.prototype.getHitInfo=function(n,i,e,o,r){return this.Tno&&this.Tno.getHitInfo?this.Tno.getHitInfo(n,i,e,o,r):t.prototype.getHitInfo.call(this,n,i,e,o,r)},n.prototype.paintValue=function(n,i,e,o,r,u,c,a){var s,l,f,d,h,v,g,M,I,b;this.Tno||(s=a.sheet,l=a.isAfterRowSpacing,a.dataRange&&(f=ct(a))&&(s=f.sheet,l=f.isAfterRowSpacing),d=a.sheet.zoom(),h=(N+2*w)*d,v=s.NMi,g=-1,!l&&v.lMi&&(g=v.lMi.length-1),I=e+(M=h*(g+2)),b=r-M,t.prototype.paintValue.call(this,n,i,I,o,b,u,c,a))},n}(j),e.CellTypes.ti[108]=L,S=function(t){function n(){var n=t.call(this)||this;return n.zeo=o.GroupLayoutMode.outline,n.Leo=!1,n.typeName="109",n}return Z(n,t),n.prototype.getValueInOneCell=function(t){var n,i,o,r=t.sheet,u=t.row,a=t.col,s=t.rowSpacingIndex,l=t.isAfterRowSpacing;if(P(this.zeo))return n=r.getValue(u,a,e.SheetArea.viewport,void 0,{rowSpacingIndex:s,isAfterRowSpacing:l}),o=(i=r.ncr&&r.ncr(u,s,a,l))&&i.caption,st("","",o="".concat(o).concat((0,c.getSR)().TextColon),n)},n.prototype.paint=function(n,i,o,r,u,s,l,f){var h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k=this,E=f.row,Z=f.col,U=f.sheet,G=f.rowSpacingIndex,B=f.isAfterRowSpacing;f.dataRange&&(h=ct(f))&&(U=h.sheet,E=h.row,Z=h.col,G=h.rowSpacingIndex,B=h.isAfterRowSpacing),v=f.sheet.zoom(),M=(g=U.NMi).currentTheme(),I=l.backColor,f.parentBackColor!==I&&(0,e.cellTypeContext_paintBackground)(n,o,r,u,s,f.imageLoader,l,i,f),l.backColor=void 0,l.backgroundImage=void 0,b=new e.Rect(o,r,u,s),D=(N=U.ncr&&U.ncr(E,G,Z,B))&&N.caption,m=V(l),w=U.getDefaultStyle(),(y=(C=N&&N.headerStyle)?K(C,M,w):m.clone()).hAlign=$(y,e.HorizontalAlign.right),(x=Y(this.zeo))?(A=2*v,T=U.getDefaultStyle().cellPadding+" 0 0 0",(p=(j=N&&N.style)?K(j,M,w):m.clone()).cellPadding=T,p.hAlign=$(p,e.HorizontalAlign.right),f.fontInfo=e.W.x2e(p,j?v:1),p.font=f.fontInfo.font,f.cellStyle=p,t.prototype.paint.call(this,n,i,o,r,u,s,p,f),z=f.ysr,D&&(D="".concat(D).concat((0,c.getSR)().TextColon),L=u-z-A,y.cellPadding=T,y.hAlign=$(y,e.HorizontalAlign.right),f.fontInfo=e.W.x2e(y,C?v:1),y.font=f.fontInfo.font,f.cellStyle=y,t.prototype.paint.call(this,n,D,o,r,L,s,y,f))):(S=k.An(b,l,(0,e.isPrintZoomFactorExist)(f)?f.printZoomFactor:f.sheet.zoom()),O=new e.Rect(o,r,u,s-S.height),D&&((!C||C&&d(C.cellPadding))&&(y.cellPadding=a),f.cellStyle=y,f.fontInfo=e.W.x2e(y,C?v:1),y.font=f.fontInfo.font,f.lineHeight=e.mt.vt(f.fontInfo.font,!1,e.mt.pt(D)),t.prototype.paint.call(this,n,D,o,O.y,u,O.height,y,f)),(p=(j=N&&N.style)?K(j,M,w):m.clone()).cellPadding=a,p.hAlign=$(p,e.HorizontalAlign.right),f.cellStyle=p,f.fontInfo=e.W.x2e(p,j?v:1),p.font=f.fontInfo.font,f.lineHeight=e.mt.vt(f.fontInfo.font,!1,e.mt.pt(i)),t.prototype.paint.call(this,n,i,o,S.y,u,S.height,p,f))},n.prototype.Ln=function(n,i,o,r,u){var s,l,f,h,v,g,M,I,b,N,D,m,w,C,y=0,x=u.row,A=u.col,T=u.sheet,j=u.rowSpacingIndex,p=u.isAfterRowSpacing;return u.dataRange&&(s=ct(u))&&(T=s.sheet,x=s.row,A=s.col,j=s.rowSpacingIndex,p=s.isAfterRowSpacing),f=(l=T.NMi).currentTheme(),(v=(h=T.ncr&&T.ncr(x,j,A,p))&&h.caption)&&(v="".concat(v).concat((0,c.getSR)().TextColon)),g=V(o),M=T.getDefaultStyle(),Y(this.zeo)?(I=2,b=T.getDefaultStyle().cellPadding+" 0 0 0",d(n)||((D=(N=h&&h.style)?K(N,f,M):g.clone()).cellPadding=b,D.hAlign=$(D,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(D,N?r:1),D.font=u.fontInfo.font,u.cellStyle=D,y+=t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,D,T),D,r,u)+I),d(v)||((w=(m=h&&h.headerStyle)?K(m,f,M):g.clone()).cellPadding=b,w.hAlign=$(w,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(w,m?r:1),w.font=u.fontInfo.font,u.cellStyle=w,y+=t.prototype.Ln.call(this,v,v,w,r,u)+I)):(d(n)||((D=(N=h&&h.style)?K(N,f,M):g.clone()).cellPadding=a,D.hAlign=$(D,e.HorizontalAlign.right),u.cellStyle=D,u.fontInfo=e.W.x2e(D,N?r:1),D.font=u.fontInfo.font,y=t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,D,T),D,r,u)),d(v)||(w=(m=h&&h.headerStyle)?K(m,f,M):g.clone(),(!m||m&&d(m.cellPadding))&&(w.cellPadding=a),u.cellStyle=w,u.fontInfo=e.W.x2e(w,m?r:1),w.font=u.fontInfo.font,(C=t.prototype.Ln.call(this,v,v,w,r,u))>y&&(y=C))),y},n}(e.CellTypes.Text),e.CellTypes.ti[109]=S,O=function(t){function n(){var n=t.call(this)||this;return n.zeo=o.GroupLayoutMode.outline,n.typeName="110",n}return Z(n,t),n.prototype.getValueInOneCell=function(t){var n,i,o,r,u,a,s,l,f,d,h,v,g,M,I,b,N=t.sheet,D=t.row,m=t.col,w=t.rowSpacingIndex,C=t.isAfterRowSpacing;if(P(this.zeo))return n=N.getActualStyle(D,m,e.SheetArea.viewport,void 0,{rowSpacingIndex:w,isAfterRowSpacing:C}),i=N.getValue(D,m,e.SheetArea.viewport,void 0,{rowSpacingIndex:w,isAfterRowSpacing:C}),o=N.NMi,u=(r=N.ncr&&N.ncr(D,w,-1)).field,a=r.value,s=r.groupLevelOptions,l="".concat(u).concat((0,c.getSR)().TextColon),a=e.mt.V0(a),d=(f=N.getDefaultStyle()).cellPadding+" 0 0 0",h=o.currentTheme(),v=V(n),(g=s.style?K(s.style,h,f):v.clone()).cellPadding=d,g.hAlign=$(g,e.HorizontalAlign.left),M=(0,e.C0r)(this,a,g,N),b=(I=N.ncr&&N.ncr(D,w,m,C))&&I.caption,st(l,M,b="".concat(b).concat((0,c.getSR)().TextColon),i)},n.prototype.paint=function(n,i,r,u,l,d,v,M){var I,b,m,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,Q,H,W,F,J,_,X,q,tt,nt,it,et,ot,rt,ut,at,st,lt,ft,dt,ht,vt,gt,Mt,It,bt,Nt,Dt,mt,wt,Ct,yt,xt,At,Tt,jt,pt,zt,Lt,St,Ot,kt,Et=this,Zt=M.row,Ut=M.sheet,Gt=M.col,Bt=M.rowSpacingIndex,Rt=M.isAfterRowSpacing;if(M.dataRange&&(I=ct(M))&&(Ut=I.sheet,Zt=I.row,Gt=I.col,Bt=I.rowSpacingIndex,Rt=I.isAfterRowSpacing),b=Ut.NMi,m=Ut.getDataSource(),C=M.sheet.zoom(),y=b.currentTheme(),x=v.backColor,M.parentBackColor!==x&&(0,e.cellTypeContext_paintBackground)(n,r,u,l,d,M.imageLoader,v,i,M),v.backColor=void 0,v.backgroundImage=void 0,A=new e.Rect(r,u,l,d),T=Ut.ncr&&Ut.ncr(Zt,Bt,-1)){if(j=(N+2*w)*C,p=N*C,z=D*C,L=b.keo(),S=T.level,O=T.field,k=T.value,E=T.groupLevelOptions,k=e.mt.V0(k),b&&m&&b.lMi&&b.lMi.length>0&&((Z=b.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||Z===o.GroupOutlinePosition.groupCellAll)&&!(U=S===b.lMi.length-1&&!b.detailColumnsVisible())&&b.DMi(S,Zt)){if(G=w*C,!(Q=b.IMi(Zt,S)))return;n.save(),n.beginPath(),n.rect(r,u,l,d),n.clip(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,H=r+G,P(L)&&(H+=j*S),W=H+p/2,J=(F=u+(d-p)/2)+p/2,_=s(H)-.5,X=s(H+p)-.5,q=s(F)-.5,tt=s(F+p)-.5,n.moveTo(_,q),n.lineTo(X,q),n.lineTo(X,tt),n.lineTo(_,tt),n.lineTo(_,q),n.moveTo(s(W-z)-.5,s(J)-.5),n.lineTo(s(W+z)-.5,s(J)-.5),Q.collapsed&&(n.moveTo(s(W)-.5,s(J-z)-.5),n.lineTo(s(W)-.5,s(J+z)-.5)),n.stroke(),n.restore()}nt=0,et=r+(it=j*(S+1)),ot=l-it,rt=4*C,ut=V(v),at=Ut.getDefaultStyle(),st=Ut.defaults.rowHeight,ft=(lt=Ut.ncr&&Ut.ncr(Zt,Bt,Gt,Rt))&<.caption,(ht=(dt=lt&<.headerStyle)?K(dt,y,at):ut.clone()).hAlign=e.HorizontalAlign.right,(vt=Y(this.zeo))?(gt=2*C,Mt=Ut.getDefaultStyle().cellPadding+" 0 0 0",(It=E.headerStyle?K(E.headerStyle,y,at):ut.clone()).cellPadding=Mt,It.hAlign=$(It,e.HorizontalAlign.left),M.fontInfo=e.W.x2e(It,E.headerStyle?C:1),It.font=M.fontInfo.font,M.cellStyle=It,bt="".concat(O).concat((0,c.getSR)().TextColon),Nt=f(e.mt.Mt(n,It.font,(0,e.y0r)(this,n,bt,ot,d,It,M))+gt),t.prototype.paint.call(this,n,bt,et,u,Nt,d,It,M),et+=Nt,(Dt=E.style?K(E.style,y,at):ut.clone()).cellPadding=Mt,Dt.hAlign=$(Dt,e.HorizontalAlign.left),M.fontInfo=e.W.x2e(Dt,E.style?C:1),Dt.font=M.fontInfo.font,M.cellStyle=Dt,mt=(0,e.C0r)(this,k,Dt,Ut),wt=f(e.mt.Mt(n,Dt.font,(0,e.y0r)(this,n,mt,ot,d,Dt,M))+gt),Dt.formatter=a,t.prototype.paint.call(this,n,mt,et,u,wt,d,Dt,M),et+=wt,et+=rt,Ct=ot-Nt-wt-rt,(xt=(yt=lt&<.style)?K(yt,y,at):ut.clone()).cellPadding=Mt,xt.hAlign=$(xt,e.HorizontalAlign.right),M.fontInfo=e.W.x2e(xt,yt?C:1),xt.font=M.fontInfo.font,M.cellStyle=xt,t.prototype.paint.call(this,n,i,et,u,Ct,d,xt,M),At=M.ysr,ft&&(ft="".concat(ft).concat((0,c.getSR)().TextColon),Tt=Ct-At-gt,ht.cellPadding=Mt,ht.hAlign=$(ht,e.HorizontalAlign.right),M.fontInfo=e.W.x2e(ht,dt?C:1),ht.font=M.fontInfo.font,M.cellStyle=ht,t.prototype.paint.call(this,n,ft,et,u,Tt,d,ht,M))):(jt=Et.An(A,v,(0,e.isPrintZoomFactorExist)(M)?M.printZoomFactor:M.sheet.zoom()),pt=new e.Rect(r,u,l,d-jt.height),(Dt=E.style?K(E.style,y,at):ut.clone()).hAlign=$(Dt,e.HorizontalAlign.left),zt=E.headerStyle?K(E.headerStyle,y,at):ut.clone(),(!E.headerStyle||E.headerStyle&&B(E.headerStyle.cellPadding))&&(zt.cellPadding=a),zt.hAlign=$(zt,e.HorizontalAlign.left),M.cellStyle=zt,M.fontInfo=e.W.x2e(zt,E.headerStyle?C:1),zt.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(O)),t.prototype.paint.call(this,n,O,et,pt.y,ot,pt.height,zt,M),nt=R(nt,M.ysr),Dt.cellPadding=a,M.cellStyle=Dt,M.fontInfo=e.W.x2e(Dt,E.style?C:1),Dt.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(k)),t.prototype.paint.call(this,n,k,et,jt.y,ot,jt.height,Dt,M),Lt=et+(nt=R(nt,M.ysr))+rt,St=ot-nt-rt,xt=(yt=lt&<.style)?K(yt,y,at):ut.clone(),(!yt||yt&&B(yt.cellPadding))&&(xt.cellPadding=st+" 0 0 0"),Ot=Et.An(A,xt,(0,e.isPrintZoomFactorExist)(M)?M.printZoomFactor:M.sheet.zoom()),ft&&(kt=new e.Rect(r,u,l,d-Ot.height),(!dt||dt&&B(dt.cellPadding))&&(ht.cellPadding=a),M.cellStyle=ht,M.fontInfo=e.W.x2e(ht,lt&<.headerStyle?C:1),ht.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(ft)),t.prototype.paint.call(this,n,ft,Lt,kt.y,St,kt.height,ht,M)),xt.cellPadding=a,xt.hAlign=e.HorizontalAlign.right,M.cellStyle=xt,M.fontInfo=e.W.x2e(xt,yt?C:1),xt.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(i)),t.prototype.paint.call(this,n,i,Lt,Ot.y,St,Ot.height,xt,M))}},n.prototype.Ln=function(n,i,o,r,u){var s,f,h,v,g,M,I,b,D,m,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,R,P,Q=0,H=u.row,W=u.sheet,F=u.col,J=u.rowSpacingIndex,_=u.isAfterRowSpacing;return u.dataRange&&(s=ct(u))&&(W=s.sheet,H=s.row,F=s.col,J=s.rowSpacingIndex,_=s.isAfterRowSpacing),h=(f=W.NMi).currentTheme(),v=N+2*w,g=W.ncr&&W.ncr(H,J,-1),M=Y(this.zeo),g&&(I=V(o),b=W.getDefaultStyle(),D=g.level,m=g.field,C=g.value,y=g.groupLevelOptions,Q=x=v*(D+1),T=(A=W.ncr&&W.ncr(H,J,F,_))&&A.caption,j=4,M?(T&&(T="".concat(T).concat((0,c.getSR)().TextColon)),m&&(m="".concat(m).concat((0,c.getSR)().TextColon)),p=2,z=W.getDefaultStyle().cellPadding+" 0 0 0",d(m)||((L=y.headerStyle?K(y.headerStyle,h,b):I.clone()).cellPadding=z,L.hAlign=$(L,e.HorizontalAlign.left),u.fontInfo=e.W.x2e(L,y.headerStyle?r:1),L.font=u.fontInfo.font,u.cellStyle=L,Q+=t.prototype.Ln.call(this,m,m,L,r,u)+p),d(C)||((S=y.style?K(y.style,h,b):I.clone()).cellPadding=z,S.hAlign=$(S,e.HorizontalAlign.left),u.fontInfo=e.W.x2e(S,y.style?r:1),S.font=u.fontInfo.font,u.cellStyle=S,O=(0,e.C0r)(this,C,S,W),Q+=t.prototype.Ln.call(this,O,O,S,r,u)+p),A&&(Q+=j,d(n)||((E=(k=A.style)?K(k,h,b):I.clone()).cellPadding=z,E.hAlign=$(E,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(E,k?r:1),E.font=u.fontInfo.font,u.cellStyle=E,Q+=t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,E,W),E,r,u)+p),d(T)||((U=(Z=A.headerStyle)?K(Z,h,b):I.clone()).cellPadding=z,U.hAlign=$(U,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(U,Z?r:1),U.font=u.fontInfo.font,u.cellStyle=U,Q+=t.prototype.Ln.call(this,T,T,U,r,u)+p))):(G=0,d(m)||(R=y.headerStyle?K(y.headerStyle,h,b):I.clone(),(!y.headerStyle||y.headerStyle&&B(y.headerStyle.cellPadding))&&(R.cellPadding=a),R.hAlign=$(R,e.HorizontalAlign.left),u.cellStyle=R,u.fontInfo=e.W.x2e(R,y.headerStyle?r:1),R.font=u.fontInfo.font,G=l(t.prototype.Ln.call(this,m,m,R,r,u),G)),d(C)||((S=y.style?K(y.style,h,b):I.clone()).hAlign=$(S,e.HorizontalAlign.left),S.cellPadding=a,u.cellStyle=S,u.fontInfo=e.W.x2e(S,y.style?r:1),S.font=u.fontInfo.font,G=l(t.prototype.Ln.call(this,C,(0,e.C0r)(this,C,S,W),S,r,u),G)),Q+=G,P=0,d(T)||(U=(Z=A&&A.headerStyle)?K(Z,h,b):I.clone(),(!Z||Z&&B(Z.cellPadding))&&(U.cellPadding=a),u.cellStyle=U,u.fontInfo=e.W.x2e(U,A&&A.headerStyle?r:1),U.font=u.fontInfo.font,P=l(t.prototype.Ln.call(this,T,T,U,r,u),P)),d(n)||((E=(k=A.style)?K(k,h,b):I.clone()).cellPadding=a,E.hAlign=e.HorizontalAlign.right,u.cellStyle=E,u.fontInfo=e.W.x2e(E,k?r:1),E.font=u.fontInfo.font,P=l(t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,E,W),E,r,u),P)),Q+=P,P>0&&(Q+=j))),Q},n.prototype.getCellAndPaddingHitInfo=function(n,i,e,o,r){var u,c=e.cellPadding;return e.cellPadding=void 0,u=t.prototype.getCellAndPaddingHitInfo.call(this,n,i,e,o,r),e.cellPadding=c,u},n.prototype.fMi=function(t,n,i,e,r,u,c,a){var l,f,d,h,v,g,M,I,b,D,m,C,y,x=a?a.sheet.zoom():e.zoom(),A=N*x,T=e.NMi,j=e.getDataSource();if(T&&j&&((l=T.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||l===o.GroupOutlinePosition.groupCellAll)&&(f=e.ncr&&e.ncr(r,c,-1))&&(d=f.level,h=(N+2*w)*x,!(v=d===T.lMi.length-1&&!T.detailColumnsVisible())&&T.DMi(d,r))){if(g=w*x,!(M=T.IMi(r,d)))return;if(I=t.x+g+h*d,b=t.y+(t.height-A)/2,D=s(I)-.5,m=s(I+A)-.5,C=s(b)-.5,y=s(b+A)-.5,D<=n&&n<=m&&C<=i&&i<=y)return{level:M.level,index:r,collapsed:M.collapsed}}},n}(p),e.CellTypes.ti[110]=O,k=function(){function t(){this.tMi=o.GroupOutlinePosition.groupCell,this.GY=o.GroupLayoutMode.tabular,this.Oeo=M}return t.prototype.Hc=function(t,n,i){var r,u=new e.Style;u.cellType=new y,t.setStyle(-1,0,u,e.SheetArea.rowHeader),t.setColumnWidth(0,n*b,e.SheetArea.rowHeader),(r=this.tMi)!==o.GroupOutlinePosition.rowHeader&&r!==o.GroupOutlinePosition.groupCellAll||t.setColumnVisible(0,!0,e.SheetArea.rowHeader),this.Beo(t,i)},t.prototype.Beo=function(t,n){var i;P(this.GY)?(this.Geo(t),this.Reo(t),this.Peo(t,n)):this.Qeo(t,n)},t.prototype.Qeo=function(t,n){var i,o,r,u,c,s,l;for(i=0;i<n.length;i++)n[i].DFt&&((o=n[i].headerStyle&&n[i].headerStyle.cellType)&&(o="98"===o.typeName?a:(0,e.createCellType)(o)),r=new T(o),t.setCellType(-1,i,r,e.SheetArea.colHeader),(u=n[i].headerStyle)||(u=n[i].headerStyle={}),u.cellType=r,(c=n[i].style&&n[i].style.cellType)&&(c="99"===c.typeName?a:(0,e.createCellType)(c)),s=new z(c),t.setCellType(-1,i,s),(l=n[i].style)||(l=n[i].style={}),l.cellType=s)},t.prototype.Peo=function(t,n){var i,o,r,u,c,s,l,f,h,v,g,M,I,b,N,D,m,w,C,y,A,T,j,p,z,k,E,Z,U=t.NMi,G=t.getRowCount(),R=n.length,P=t.k9(e.SheetArea.viewport),Y=t.NMi.currentTheme();if(!d(P)){if(o=t.defaults.rowHeight,r=t.Csr)for(u=0;u<G;u++){for(c=t.Rsr(u),s=0;s<c;s++){for(f=null==(l=t.ncr(u,s,-1))?void 0:l.field,h=0;h<R;h++)(M=new(g=(v=h===P)?O:S)).zeo=this.GY,(b=W(I=v&&l&&l.groupLevelOptions?l.groupLevelOptions:t.ncr(u,s,h)))||(b=new e.Style),b.cellType=M,t.tcr(u,s,h,b);l&&(D=B((N=K(l.groupLevelOptions&&l.groupLevelOptions.style||{},Y)).cellPadding),Q(this.GY)&&D&&(N.cellPadding=o+" 0 0 0"),t.tcr(u,s,-1,N)),(m=new e.Style).cellType=new x,t.tcr(u,s,0,m,!1,e.SheetArea.rowHeader),Q(this.GY)&&(w=U.getGroupingHeaderHeight(f,o),t.qsr(u,s,w))}for(C=t.Rsr(u,!0),s=0;s<C;s++)if(f=null===(i=null==(l=t.ncr(u,s,-1,!0))?void 0:l.groupLevelOptions)||void 0===i?void 0:i.field,l&&l.isSpacing)(y=new e.Style).cellType=new x,t.tcr(u,s,0,y,!0,e.SheetArea.rowHeader),t.qsr(u,s,l.spacingRow,!0);else{for(h=0;h<R;h++)(A=new S).zeo=this.GY,A.Leo=!0,(T=W(I=t.ncr(u,s,h,!0)))||(T=new e.Style),T.cellType=A,t.tcr(u,s,h,T,!0);l&&(D=B((N=K(l.groupLevelOptions&&l.groupLevelOptions.style||{},Y)).cellPadding),Q(this.GY)&&D&&(N.cellPadding=o+" 0 0 0"),t.tcr(u,s,-1,N,!0)),(j=new e.Style).cellType=new x,t.tcr(u,s,0,j,!0,e.SheetArea.rowHeader),Q(this.GY)&&(p=U.getGroupingFooterHeight(f,o),t.qsr(u,s,p,!0))}}for(u=0,z=R;u<z;u++)t.$go(-1,u)instanceof L&&t.setCellType(-1,u,a);(E=(k=n[P].style)&&k.cellType)&&(E="108"===E.typeName?a:(0,e.createCellType)(E)),Z=new L(E),t.setCellType(-1,P,Z),n[P].zno=Z}},t.prototype.Geo=function(t,n,i,o,r,u){var a,s,l,f,h,v,g,M,I,b,N,D,m,w,C,y,x,A;if(t.Csr&&(s=(a=t.NMi).getDataView(),l=this.Yeo(),f=a.groupBy(),h=P(l),d(n)&&(n=s.FFt.childrenArray[0]),d(i)&&(i=a.INi.Weo()),n.length===i.length&&(d(o)&&(o=0),d(r)&&(r=0),d(u)&&(u=0),n&&n.length>0)))for(v=0;v<n.length;v++)g=n[v],M=i[v],I=g.recordRowNumbers,b=g.value,D=(N=g.cellNode).field.extra&&!d(N.field.extra.caption)?N.field.extra.caption:N.field.fieldValue,Array.isArray(D)&&(D=(0,c.tIi)(D)),m=I.length,w=t.Rsr(o),t.Ksr(o,w,1),t.ecr(o,r,-1,{groupLevelOptions:f[M.level],level:M.level,field:D,value:e.mt.Z0(b)}),M.spacingIndex=r,h&&(C=g.summaryResults)&&(y=nt(C,"header",a.Heo()))&&this.Veo(t,o,r,y),x=g.childrenArray[0],A=M.children,x&&x.length>0&&this.Geo(t,x,A,o,r+1,u),o+=m,r=0},t.prototype.Reo=function(t,n,i,e,o){var r,u,c,a,s,l,f,h,v,g,M,I,b,N;if(t.Csr&&(u=(r=t.NMi).getDataView(),d(n)&&(n=u.FFt.childrenArray[0]),d(i)&&(i=r.INi.Weo()),n.length===i.length&&(d(e)&&(e=0),d(o)&&(o=0),n&&n.length>0)))for(c=r.groupBy(),a=0;a<n.length;a++)s=n[a],l=i[a],f=s.recordRowNumbers,h=s.summaryResults,g=e+(v=f.length)-1,(M=ut(s))>0&&a<n.length-1&&(t.Ksr(g,0,1,!0),t.ecr(g,0,-1,{level:l.level,spacingRow:M,isSpacing:!0},!0)),h&&(I=nt(h,"footer"))&&(t.Ksr(g,0,1,!0),t.ecr(g,0,-1,{groupLevelOptions:c[l.level],level:l.level},!0),this._eo(t,g,0,I)),b=s.childrenArray[0],N=l.children,b&&b.length>0&&this.Reo(t,b,N,e,o),e+=v},t.prototype.Veo=function(t,n,i,e){var o,r,u,c,a,s;if(t.Csr)for(r=(o=t.NMi.getDataView()).getColumnInfos(),u=0;u<r.length;u++)(s=e[a=(c=r[u]).value])&&(t.$sr(n,i,u,s.value),t.ecr(n,i,u,s))},t.prototype._eo=function(t,n,i,e){var o,r,u,c,a,s;if(t.Csr)for(r=(o=t.NMi.getDataView()).getColumnInfos(),u=0;u<r.length;u++)(s=e[a=(c=r[u]).value])&&(t.$sr(n,i,u,s.value,!0),t.ecr(n,i,u,s,!0))},t.prototype.TMi=function(t,n){var i,r;if(0===arguments.length)return this.tMi;this.tMi=n,(i=t.NMi)&&i.lMi&&(r=n===o.GroupOutlinePosition.rowHeader||n===o.GroupOutlinePosition.groupCellAll,t.setColumnVisible(0,r,e.SheetArea.rowHeader))},t.prototype.Yeo=function(t){if(d(t))return this.GY;this.GY=t},t.prototype.Jeo=function(t){if(d(t))return this.Oeo;this.Oeo=U(U({},this.Oeo),t)},t.prototype.L0=function(t){t.setColumnVisible(0,!1,e.SheetArea.rowHeader);for(var n=0,i=t.getColumnCount();n<i;n++)t.$go(-1,n,e.SheetArea.colHeader)instanceof T&&t.setCellType(-1,n,a,e.SheetArea.colHeader),t.$go(-1,n)instanceof z&&t.setCellType(-1,n,a),t.$go(-1,n)instanceof L&&t.setCellType(-1,n,a)},t.prototype.toJSON=function(){return this.tMi},t.prototype.fromJSON=function(t,n){this.TMi(t,n)},t}(),E=function(){function t(){this._data=new I,this._ui=new k}return t.prototype.Weo=function(){return this._data.oMi.children},t.prototype.Hc=function(t,n,i,e,o){o||this._data.Hc(t,n);var r=i.getDataSource();this._ui.Hc(i,e.length,r&&r.getColumnInfos())},t.prototype.TMi=function(t,n){if(0===arguments.length)return this._ui.TMi();this._ui.TMi(t,n)},t.prototype.uMi=function(t,n,i,e){this._data.uMi(t,n,i,e)},t.prototype.aMi=function(t,n,i,e){this._data.aMi(t,n,i,e)},t.prototype.sMi=function(t,n,i,e,o){return this._data.sMi(t,n,i,e,o)},t.prototype.MMi=function(t){return this._data.MMi(t)},t.prototype.IMi=function(t,n){return this._data.IMi(t,n)},t.prototype.gMi=function(t){return this._data.gMi(t)},t.prototype.Yeo=function(t){return this._ui.Yeo(t)},t.prototype.Jeo=function(t){return this._ui.Jeo(t)},t.prototype.L0=function(t){this._data.L0(),this._ui.L0(t)},t.prototype.Beo=function(t,n){this._ui.Beo(t,n)},t.prototype.toJSON=function(){return{outlinePosition:this._ui.toJSON(),tree:this._data.toJSON()}},t.prototype.fromJSON=function(t,n,i){(null==n?void 0:n.outlinePosition)&&(this._ui.fromJSON(t,n.outlinePosition),this._data.fromJSON(n.tree,i))},t}(),n.Grouping=E},1633:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.reo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"grouping"),t.rto(n,"groupNo"),t.oeo(n),n},n}(o.Meo),n.reo=c},1649:function(t,n,i){var e,o,r,u,c,a,s=this&&this.vJr||(l=function(t,n){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},l(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}l(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),l;Object.defineProperty(n,"__esModule",{value:!0}),n.geo=void 0,e=i(1376),o=i(8057),r=i(9846),u=e.mt,c=u.En,a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(c("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ato(n,"errorCorrectionLevel",(0,r.getItems)(8,!0,!0)),t.ato(n,"columns",(0,r.getItems)(30,!0)),t.ato(n,"rows",(0,r.getItems)(90,!0)),t.cto(n,"compact"),n},n}(o.Meo),n.geo=a},1850:function(t,n,i){var e,o,r,u,c,a=this&&this.mJr||function(){return a=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},a.apply(this,arguments)};function s(t){return"string"==typeof t}function l(t){return t.reduce((function(t,n){return t.push(n),c(n.subActionOptions)?t.concat(n.subActionOptions):t}),[])}function f(t){return s(t)?t.toUpperCase().charCodeAt(0):t}function d(t){return"ROWACTION_".concat(t)}function h(t){var n=d(t);return o.Commands[n]={canUndo:!1,execute:function(n,i){var e=n.commandManager(),o=n.Ofe(i.sheetName),r=o.Mf,u=i.isDataRange?i.row:r.getActiveRowIndex(),c=r.getDataItem(u);return e.execute(a(a({},i),{cmd:t,index:u,item:c,tableSheet:o})),!0}},n}Object.defineProperty(n,"__esModule",{value:!0}),e=i(7234),o=i(1376),r=i(8966),u=e.Common.lt,c=u.Nh,o.Commands.uri=function(t){var n=o.mt.Qf(),i=!n,e=n;t.register(r.SAVE_ALL,o.Commands[r.SAVE_ALL],"S".charCodeAt(0),i,!0,!1,e),t.register(r.EXPAND_GROUP_ITEM,o.Commands[r.EXPAND_GROUP_ITEM]),t.register(r.EXPAND_GROUP,o.Commands[r.EXPAND_GROUP]),t.register(r.REMOVE_COLUMN_TO_TABLE,o.Commands[r.REMOVE_COLUMN_TO_TABLE]),t.register(r.MODIFY_COLUMN_TO_TABLE,o.Commands[r.MODIFY_COLUMN_TO_TABLE]),t.register(r.DEFINE_COLUMN_TO_TABLE,o.Commands[r.DEFINE_COLUMN_TO_TABLE]),t.register(r.VIEW_REMOVE_COLUMN_INFO,o.Commands[r.VIEW_REMOVE_COLUMN_INFO]),t.register(r.VIEW_UPDATE_COLUMN_INFO,o.Commands[r.VIEW_UPDATE_COLUMN_INFO]),t.register(r.VIEW_Add_COLUMN_INFO,o.Commands[r.VIEW_Add_COLUMN_INFO]),t.register(r.VIEW_MOVE_COLUMN,o.Commands[r.VIEW_MOVE_COLUMN]),t.register(r.VIEW_MOVE_COLUMN_FOR_PANEL,o.Commands[r.VIEW_MOVE_COLUMN_FOR_PANEL]),t.register(r.GROUP_OPTIONS,o.Commands[r.GROUP_OPTIONS]),t.register(r.RESET_NEW_VIEW,o.Commands[r.RESET_NEW_VIEW]),t.register(r.REMOVE_CROSS_COLUMN,o.Commands[r.REMOVE_CROSS_COLUMN]),t.register(r.ADD_TO_MULTI_SORT,o.Commands[r.ADD_TO_MULTI_SORT]),t.register(r.REMOVE_FROM_MULTI_SORT,o.Commands[r.REMOVE_FROM_MULTI_SORT]),t.register(r.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET,o.Commands[r.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET])},o.Commands.iMi=function(t,n){var i=t;l(n).forEach((function(t){var n,e,r,u,c=t.command,a=t.shortcutKey,l=void 0===a?{}:a,d=l.key,v=l.ctrl,g=l.shift,M=l.alt,I=l.meta;s(c)&&(n=h(c),e=i.getCommand(n),r=i.getCommand(c),u=f(d),r?s(r.shortcutKey)&&i.setShortcutKey(c,null,!1,!1,!1,!1):i.register(c,o.Commands[c]),e?e.shortcutKey!==i.getShortcutKey(u,v,g,M,I)&&i.setShortcutKey(n,u,v,g,M,I):i.register(n,o.Commands[n],u,v,g,M,I))}))}},1859:function(t,n,i){var e,o,r,u,c;Object.defineProperty(n,"__esModule",{value:!0}),n.dZe=void 0,e=i(1376),o=i(591),r=e.mt,u=r.En,c=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.gZe()},t.prototype.gZe=function(){var t,n=this,i=(0,e.GC$)(u("div"));return i.addClass("gc-defined-column-divider-container"),i.attr("role","separator"),(t=n._text=(0,e.GC$)(u("div"))).appendTo(i),t.addClass("gc-defined-column-divider-inner-text"),n.LEt.text?t.text(n.LEt.text):t.hide(),i},t.prototype.setText=function(t){var n;this._text.text(t)},t.prototype.dispose=function(){var t;this._text=o.keyword_null},t}(),n.dZe=c},2121:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z=this&&this.vJr||(L=function(t,n){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},L(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}L(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),L;function S(t){return t&&t._gi===o.SheetType.tableSheet}function O(t){return t&&t._gi===o.SheetType.ganttSheet}function k(t){var n=t.getActiveSheetTab();if(S(n)||O(n))return n}function E(t){return t.b3t}function Z(t,n){return(-1===t.row||-1===n.row||n.row<t.row+t.rowCount&&t.row<n.row+n.rowCount)&&(-1===t.col||-1===n.col||n.col<t.col+t.colCount&&t.col<n.col+n.colCount)}function U(t,n,i,e){return{row:t,col:n,rowCount:i,colCount:e}}function G(t,n){var i=s(t.row,n.row),e=s(t.col,n.col),o=l(t.row+t.rowCount-1,n.row+n.rowCount-1),r=l(t.col+t.colCount-1,n.col+n.colCount-1);return i>=0&&e>=0?U(i,e,o-i+1,r-e+1):i>=0?U(i,-1,o-i+1,-1):e>=0?U(-1,e,-1,r-e+1):U(-1,-1,-1,-1)}function B(t){var n,i,e,o=[];for(i=0;i<t.length;i++){for(n=t[i],e=0;e<t.length;e++)n!==t[e]&&Z(n,t[e])&&(n=G(n,t[e]),i=e);o.push(n)}return o}function R(t){var n,i,e=0;for(t.sort((function(t,n){return t.row-n.row})),n=B(t),i=0;i<n.length;i++)e+=n[i].rowCount;return e}function P(t){var n,i=E(t),e=k(t);a(i)||(a(e)?i.qgi&&(i.qgi=!1,W(i)):(n=e.qgi,i.qgi!==e.qgi&&(n?H(i):W(i),i.qgi=n)))}function Q(t,n){var i=n.hitTestType,e=0===i,o=1===i,r=2===i,u=3===i;a(t)||(a(t.$gi)&&Y(t),!e&&!r||t.qgi?(u||o)&&t.qgi&&(t.qgi=!1,W(t)):(t.qgi=!0,H(t)),t.DJ.getActiveSheetTab().qgi=t.qgi)}function Y(t){var n,i,e,o,r,u=t.all(),c=[];for(n=0;n<u.length;n++)for(i=u[n],e=0;e<N.length;e++)i.name===N[e]&&c.push({pos:n,item:i});for(t.$gi=c,o=[],n=0;n<j.length;n++)r=V(j[n]),o.push(r);t.iNi=o}function H(t){var n,i,e,o;for(n=0;n<N.length;n++)t.remove(N[n]);if(i=t.$gi&&t.$gi.length>0?t.$gi[0].pos:0,e=t.iNi)for(n=0;n<e.length;n++)o=e[n],t.add(o,n+i)}function W(t){var n,i,e;for(n=0;n<j.length;n++)t.remove(j[n]);if(i=t.$gi)for(n=0;n<i.length;n++)e=i[n],t.add(e.item,e.pos)}function V(t){if(t===y)return new p}Object.defineProperty(n,"__esModule",{value:!0}),n.processStatusBarOnMouseDown=n.updateStatusBarOnActiveSheetChanged=void 0,e=i(7234),o=i(1376),r=i(605),u=i(419),c=e.Common.lt,a=c.ht,s=Math.min,l=Math.max,f=null,d=".statusbar",N=[h="average",v="count",g="numericalCount",M="min",I="max",b="sum"],D="none",m="inline-block",w=new e.Common.ResourceManager(u.SR,"TableSheet"),C=w.getResource.bind(w),x="menuRowCount",A="tooltipRowCount",T="right",j=[y="rowCount"],p=function(t){function n(){var n,i=t.call(this,y)||this;return i.c3t=": ",i.s3t=d+i.name,n=C().StatusBarRowCount,i.menuContent=n,i.vit=n,i.align=T,i.tipText=C().StatusBarToolTipRowCount,i.visible=!0,i.e4t=x,i.i4t=A,i}return z(n,t),n.prototype.rLi=function(){return k(this.DJ)},n.prototype.nNi=function(){return E(this.DJ)},n.prototype.onBind=function(t){var n=this;n.DJ=t,t.bind(o.Events.SelectionChanging+n.s3t,(function(t,i){n.x3t(i)})),t.bind(o.Events.SelectionChanged+n.s3t,(function(t,i){n.x3t(i)})),t.bind(o.Events.ActiveSheetChanged+n.s3t,(function(){n.onUpdate()}))},n.prototype.x3t=function(t){var n=this,i=t.newSelections;n.eNi(i)},n.prototype.eNi=function(t){var n,i,e,o,r,u,c,s,l=this,d=l.rLi();if(d&&(n=d.getDataView(),i=0,e=f,o=!1,r=[],!a(n))){for(i=n.getColumnInfos().length,u=0;u<t.length;u++){if(-1===(c=t[u]).col&&-1===c.row){o=!0;break}-1===c.row||-1!==c.colCount&&c.colCount!==i||r.push(c)}o?e=n.visibleLength():(s=R(r))>0&&(e=s),l.A3t(e)}},n.prototype.E3t=function(t){this.u3t&&(this.u3t.style.display=t?m:D)},n.prototype.A3t=function(t){var n=this.c3t,i=this.I3t,e=this.vit,o=this.visible,r=!1;this.value=t,i.innerText=e+n+t,!a(t)&&o&&(r=!0),this.E3t(r)},n.prototype.onUpdate=function(){t.prototype.onUpdate.call(this);var n=this,i=n.rLi();a(i)||n.eNi(i.Mf.getSelections())},n.prototype.FM=function(t){if(t){var n=t.menuContent,i=t.tipText;this.menuContent=n,this.vit=n,this.tipText=i,this.u3t.title=i}},n.prototype.onUnbind=function(){var t=this.DJ,n=this.s3t;t&&(t.unbind(o.Events.SelectionChanging+n),t.unbind(o.Events.SelectionChanged+n),t.unbind(o.Events.ActiveSheetChanged+n),this.DJ=f)},n}(r.StatusItem),n.updateStatusBarOnActiveSheetChanged=P,n.processStatusBarOnMouseDown=Q},2221:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.pJr||function(t,n,i,e){function o(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,r){function u(t){try{a(e.next(t))}catch(t){r(t)}}function c(t){try{a(e.throw(t))}catch(t){r(t)}}function a(t){t.done?i(t.value):o(t.value).then(u,c)}a((e=e.apply(t,n||[])).next())}))},d=this&&this.gJr||function(t,n){var i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},e,o,r,u;return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(t){return function(n){return a([t,n])}}function a(c){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(e=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(t,i)}catch(t){c=[6,t],o=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},h=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function v(t){return(null==t?void 0:t.sourceType)===s.Combo}function g(t,n,i,e){return{sheet:t,sheetName:t.name(),col:n,filterValues:i,conditionInfo:i&&0===i.length&&e?e.toJSON():void 0}}Object.defineProperty(n,"__esModule",{value:!0}),n.UndoHelper=n.TableSheetUndoSourceType=n.TableSheetUndoType=void 0,e=i(7234),o=i(1376),r=void 0,u=e.Common.lt,c=u.ht,function(t){t.RowAction="rowAction",t.GroupOptions="groupOptions",t.GroupOutlinePosition="groupOutlinePosition",t.ExpandGroupByLevel="expandGroupBylevel",t.ExpandGroupItem="expandGroupItem",t.OptionChanged="optionChanged",t.ThemeChanged="themeChanged",t.PinnedRowsChanged="pinnedRowsChanged",t.PinnedColumnsChanged="pinnedColumnsChanged",t.DefaultRowHeightChanged="defaultRowHeightChanged",t.ApplyFreeHeaderChanged="applyFreeHeaderChanged",t.ResetViewChanged="resetViewChanged",t.UpdateFilterOnMoved="updateFilterOnMoved",t.FilterColumn="filterColumn",t.SetFilterItemMap="setFilterItemMap",t.RemoveCrosRowFilterInfo="removeCrosRowFilterInfo",t.RemoveRow="removeRow",t.SetDataView="setDataView",t.RemoveColumns="removeColumns",t.AddColumns="addColumns",t.ResetGroupOutline="resetGroupOutline",t.SortMapChanged="sortMapChanged",t.StoreTreeData="storeTreeData",t.ApplyTreeData="applyTreeData",t.ChangeCollapse="changeCollapse"}(a=n.TableSheetUndoType||(n.TableSheetUndoType={})),function(t){t[t.TableSheet=1]="TableSheet",t[t.DataManager=2]="DataManager",t[t.Combo=3]="Combo"}(s=n.TableSheetUndoSourceType||(n.TableSheetUndoSourceType={})),l=function(){function t(t){this.host=t,this.G8=[],this.P8=0,this.Jpi=0,this.DKi=[]}return t.prototype.startTransaction=function(){var t;this.P8++,null===(t=this.view)||void 0===t||t.vCn()},t.prototype.endTransaction=function(){var t,n;return this.P8=Math.max(this.P8-1,0),null===(t=this.view)||void 0===t||t.FCn(),0===this.P8?(n=this.getUndoChanges(),this.TKi(),n):[]},t.prototype.startAddComboChanges=function(){var t={sourceType:s.Combo,changes:[]};this.xKi(t),this.DKi.push(t),this.Jpi++},t.prototype.endAddComboChanges=function(){this.Jpi=Math.max(this.Jpi-1,0),this.DKi.pop()},t.prototype.addUndoChanges=function(t){this.lM()&&(this.PKi(),this.xKi({sourceType:s.TableSheet,changeData:t}))},t.prototype.getUndoChanges=function(){return this.PKi(),this.G8},t.prototype.undo=function(t,n){var i;return void 0===n&&(n=!0),f(this,void 0,void 0,(function(){var e,o,r,u,c,c;return d(this,(function(a){switch(a.label){case 0:this.host.suspendPaint(),e=n?h([],t,!0).reverse():h([],t,!0),o=!0,r=0,a.label=1;case 1:return r<e.length?(u=e[r]).sourceType!==s.DataManager?[3,4]:(c=null===(i=this.view)||void 0===i?void 0:i.Mtt(u.changeData),o=!1,c?[4,c]:[3,3]):[3,6];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:u.sourceType===s.TableSheet?(c=this.Yqi(u.changeData),o&&!1===c&&(o=c)):u.sourceType===s.Combo&&this.undo(u.changes,!1),a.label=5;case 5:return r++,[3,1];case 6:return this.$qi(o),[2]}}))}))},t.prototype.$qi=function(t){this.host.refreshBindColumns(),this.host.WDi(r,r,t),this.host.tze(),this.host.resumePaint()},t.prototype.xKi=function(t){var n=this.DKi[this.DKi.length-1];n&&this.Jpi>0&&v(n)?n.changes.push(t):this.G8.push(t)},Object.defineProperty(t.prototype,"view",{get:function(){return this.host.getDataView()},enumerable:!1,configurable:!0}),t.prototype.TKi=function(){var t;null===(t=this.view)||void 0===t||t.PEe(),this.G8=[],this.DKi=[],this.P8=0},t.prototype.lM=function(){return this.P8>0},t.prototype.Yqi=function(t){var n,i,e,o,r,u,c,s,l,f,d,h,v,g,M,I=this,b=!0;return t.type===a.RemoveCrosRowFilterInfo||t.type===a.UpdateFilterOnMoved||t.type===a.FilterColumn||t.type===a.SetFilterItemMap?this.ize(t):t.type===a.RowAction?this.host.rowActionOptions(t.oldData):t.type===a.GroupOptions?((n=t.oldData)?this.host.groupBy(n):this.host.removeGroupBy(),b=!1):t.type===a.GroupOutlinePosition?this.host.groupOutlinePosition(t.oldData):t.type===a.ExpandGroupByLevel?(i=t.oldData,e=i.level,o=i.indexs,r=i.expand,o.forEach((function(t){I.host.expandGroupItem(e,t,r)}))):t.type===a.ExpandGroupItem?(c=(u=t.oldData).level,s=u.index,l=u.expand,this.host.expandGroupItem(c,s,l)):t.type===a.OptionChanged?(f=t.key,n=t.oldData,this.host.options[f]=n):t.type===a.ThemeChanged?this.host.applyTableTheme(t.oldData):t.type===a.PinnedRowsChanged?this.host.tze():t.type===a.PinnedColumnsChanged?this.host.nze(t.oldData.oldFilterColumnsMap,t.oldData.oldSortColumnsMap):t.type===a.DefaultRowHeightChanged?this.host.setDefaultRowHeight(t.oldData.size,t.oldData.sheetArea):t.type===a.ApplyFreeHeaderChanged?this.host.applyFreeHeaderArea(t.oldData):t.type===a.ResetViewChanged?(h=(d=t.oldData).columnInfoOptions,v=d.includeDefaultColumns,g=d.options,M=d.oldViewId,this.host.resetNewView(h,v,g,M)):t.type===a.RemoveRow?(this.host.eze(),b=!1):t.type===a.RemoveColumns?this.host.Cze(t.oldCol,t.oldCount):t.type===a.AddColumns?this.host.beo(t.oldCol,t.oldCount):t.type===a.ResetGroupOutline?(this.host.refreshBindColumns(),this.host.WDi()):t.type===a.SortMapChanged?(this.lze(t),b=!1):t.type===a.StoreTreeData||t.type===a.ApplyTreeData?(this.dze(t),b=!1):t.type===a.ChangeCollapse?this.host.vze(t.oldData):t.type===a.SetDataView&&this.host.kTi(this.view),b},t.prototype.dze=function(t){var n=t.type;n===a.ApplyTreeData?this.host.nDi():n===a.StoreTreeData&&this.host.uDi()},t.prototype.lze=function(t){var n=t.oldData,i=this.host.Mf.rowFilter();i.Nze(n)},t.prototype.ize=function(t){var n,i,e,r,u,s,l,f;t.type===a.RemoveCrosRowFilterInfo?this.host.Mf.rowFilter().oze(t.changedData):t.type===a.UpdateFilterOnMoved?(e=t.changedData.map((function(t){return{oldIndex:t.newIndex,newIndex:t.oldIndex}})),this.host.Mf.rowFilter().nTi(e)):t.type===a.FilterColumn?(r=this.host.bze(t.changedData.columnName),c(r)||(this.host.Mf.vCn(),this.host.zA({cmd:"clearFilter",cmdOption:{colIndex:r}}),this.host.Mf.FCn())):t.type===a.SetFilterItemMap&&(s=(u=t.changedData).columnName,l=u.checkedValues,null!==(f=this.host.bze(s))&&(this.host.Mf.ki(o.Events.RangeFiltering,g(this.host.Mf,f,l,null)),this.host.Mf.IB.removeFilterItems(f),(null===(i=null===(n=this.host.Mf)||void 0===n?void 0:n.IB)||void 0===i?void 0:i.setFilterItemMap)&&this.host.Mf.IB.setFilterItemMap(f,l),this.host.Mf.IB.filter(f),this.host.Mf.ki(o.Events.RangeFiltered,g(this.host.Mf,f,l,null))))},t.prototype.PKi=function(){var t,n,i,e=this,o=null!==(n=null===(t=this.view)||void 0===t?void 0:t.LEe())&&void 0!==n?n:[];o.forEach((function(t){e.xKi({sourceType:s.DataManager,changeData:t})})),null===(i=this.view)||void 0===i||i.PEe()},t}(),n.UndoHelper=l},2227:function(n){n.exports=t.Spread.Sheets.CellTypes},2364:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k=this&&this.vJr||(Z=function(t,n){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Z(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}Z(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),E=this&&this.mJr||function(){return E=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},E.apply(this,arguments)},Z;Object.defineProperty(n,"__esModule",{value:!0}),n.Uze=void 0,e=i(1376),o=i(6114),r=i(447),u=i(3180),c=i(6406),a=i(9756),s=i(5981),l=i(5530),f=i(7879),d=i(7973),h=i(117),v=i(3632),g=i(2611),M=i(9571),I=i(8026),b=i(6656),N=i(8565),D=i(7373),m=i(591),w=i(5168),C=i(7446),y=i(9846),x=i(5203),A=i(2227),T=i(9807),j=i(6423),p=i(7127),z="keydown.definedColumn.gcSheet",L=e.mt,S=L.En,O=function(t){function n(n,i,e){var o,r=t.call(this,n,i)||this;return r.xT=[],(o=r).LEt=e,o.mUe=e.column,o.jUe={},o.Wc=o.Xc(),o._hidden(),r}return k(n,t),n.prototype.LF=function(){var t=this,n=t.Wc;n.css(["box-shadow","width","box-sizing","overflow-y"],["rgba(0, 0, 0, 0.15) 2px 4px 5px","400px","content-box","auto"]),n.addClass("gc-defined-column-container"),n.appendTo(t.qc()),t.CUe(),(0,e.GC$)(m.DOCUMENT).bind(z,(function(n){27===n.keyCode&&t.close()}))},n.prototype.lf=function(n){var i,o=this;return o.jUe.type===r.ColumnTypes.Formula&&(null===(i=(0,e.GC$)(n).attr("class"))||void 0===i?void 0:i.indexOf("gcsj-func-ac"))>-1||t.prototype.lf.call(this,n)},n.prototype.wUe=function(t,n){var i=new c.mZe(t),e=i.create();return(0,m.isNullOrUndefined)(n)||i.setValue(n),{input:i,elem:e}},n.prototype.TUe=function(t,n){var i=this.wUe(t,n),e=i.input,o=i.elem;return this.xT.push(e),o},n.prototype.CUe=function(){var t,n=this,i=n.Wc,u=(0,e.GC$)(S("div"));u.addClass("gc-defined-column-content-container"),u.appendTo(i),n.TUe({inputId:"value",placeholder:(0,o.getSR)().defineColumnValue,validate:{validating:function(t){var i,e,u=n.jUe.type,c=u===r.ColumnTypes.Formula;return!!c||((0,D.isNullOrEmpty)(t)?{success:!1,errorMessage:(0,o.getSR)().defineColumnRequired}:(i=n.LEt.getColumnBy(t),(e=0!==Object.keys(n.mUe).length&&t===n.mUe.value||(!i||!1===i.visible))?!(!c&&(0,m.isFormula)(t)&&u!==r.ColumnTypes.Lookup&&((0,m.isRelation)(t)||n.LEt.isRelationship(t))):{success:!1,errorMessage:(0,o.getSR)().defineColumnExisted}))}},onBlur:function(){n.jUe.type===r.ColumnTypes.Barcode&&n.Sto(n.t())},onChange:function(t){n.jUe.value=t}},n.mUe.value).appendTo(u),n.TUe({inputId:"caption",placeholder:(0,o.getSR)().defineColumnCaption,onChange:function(t){n.jUe.caption=t}},n.mUe.caption).appendTo(u),t=n.AUe(),n.yUe().appendTo(u),t.appendTo(u),n.zUe().appendTo(i)},n.prototype.yUe=function(){var t,n=this,i=new u.pUe({items:n.LEt.columnTypeItems,onChange:function(t){var i,e=n.xT[0],o=e.isDisable();o?(e.resetDisable(),(i=e.value)&&n.LEt.isRelationship(i)&&(e.setValue(m.keyword_null),n.jUe.value=m.keyword_null)):t.name===r.ColumnTypes.Lookup&&n.mUe.value&&n.LEt.isRelationship(n.mUe.value)&&(e.setValue(n.mUe.value),n.jUe.value=n.mUe.value),n.jUe={value:n.jUe.value,caption:n.jUe.caption,type:t.name},n.xUe(t)}}),e=i.create();return(0,m.isNullOrUndefined)(n.mUe.type)?Object.keys(n.mUe).length>0&&("number"===n.mUe.dataType?i.setValue(r.ColumnTypes.Number):"date"===n.mUe.dataType?i.setValue(r.ColumnTypes.Date):"boolean"===n.mUe.dataType?i.setValue(r.ColumnTypes.Checkbox):(0,m.isFormula)(n.mUe.formula)?i.setValue(r.ColumnTypes.Formula):n.LEt.isRelationship(n.mUe.value)?i.setValue(r.ColumnTypes.Lookup):(t=n.LEt.getSampleValue(n.mUe),(0,m.isNumber)(t)?i.setValue(r.ColumnTypes.Number):(0,m.isDate)(t)?i.setValue(r.ColumnTypes.Date):(0,m.isString)(t)?i.setValue(r.ColumnTypes.Text):(0,m.isBoolean)(t)&&i.setValue(r.ColumnTypes.Checkbox))):i.setValue(n.mUe.type),n.xT.push(i),e},n.prototype.Ue=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.formatter?t.jUe.style.formatter:t.mUe&&t.mUe.style&&t.mUe.style.formatter?t.mUe.style.formatter:m.keyword_null},n.prototype.Lto=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.cellType?t.jUe.style.cellType:t.mUe&&t.mUe.style&&t.mUe.style.cellType?t.mUe.style.cellType:m.keyword_null},n.prototype.SUe=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.dropDowns?t.jUe.style.dropDowns[0].option:t.mUe&&t.mUe.style&&t.mUe.style.dropDowns?t.mUe.style.dropDowns[0].option:m.keyword_null},n.prototype.Neo=function(){var t=this;return t.jUe&&t.jUe.trigger&&t.jUe.trigger.fields?t.jUe.trigger.fields:t.mUe&&t.mUe.trigger&&t.mUe.trigger.fields?t.mUe.trigger.fields:m.keyword_null},n.prototype.ono=function(){var t=this,n=t.jUe,i=t.mUe;return Object.keys(i).length>0&&!(0,D.isNullOrEmpty)(i.type)&&i.type!==n.type},n.prototype.uno=function(t){var n,i,e=this;if(e.ono())e.jUe.style=t;else{for(i in(0,m.isNullOrUndefined)(e.jUe.style)&&(e.jUe.style={}),n=e.mUe.style)n.hasOwnProperty(i)&&(e.jUe.style[i]=(0,m.cloneObject)(n[i]));for(i in t)t.hasOwnProperty(i)&&(e.jUe.style[i]=t[i])}},n.prototype.xUe=function(t){var n=this;switch(n.LUe.xT=n.YZe(n.LUe.xT),n.LUe.empty(),t.name){case r.ColumnTypes.Text:n.jUe.dataType="string",n.OUe().appendTo(n.LUe);break;case r.ColumnTypes.Number:n.IZe(1);break;case r.ColumnTypes.Percent:n.IZe(6,r.ColumnTypes.Percent.toLowerCase());break;case r.ColumnTypes.Currency:n.IZe(2,r.ColumnTypes.Currency.toLowerCase());break;case r.ColumnTypes.Lookup:n.ZUe();break;case r.ColumnTypes.Formula:n.kUe();break;case r.ColumnTypes.Phone:n.EUe();break;case r.ColumnTypes.Email:n.UUe();break;case r.ColumnTypes.URL:n.Oto();break;case r.ColumnTypes.Date:n.NZe(4,r.ColumnTypes.Date.toLowerCase());break;case r.ColumnTypes.CreatedTime:n.NZe(4,r.ColumnTypes.CreatedTime.toLowerCase());break;case r.ColumnTypes.ModifiedTime:n.NZe(4,r.ColumnTypes.ModifiedTime.toLowerCase());break;case r.ColumnTypes.Barcode:n.kto();break;case r.ColumnTypes.Attachment:n.Zto();break;case r.ColumnTypes.Checkbox:n.Eto();break;case r.ColumnTypes.Select:n.Uto()}},n.prototype.IZe=function(t,n){var i=this;n=n?"-"+n:"",i.jUe.dataType="number",i.GUe([{typeId:"number-formatting"+n,title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(n){var e=new s.bZe({type:t,formatter:i.Ue(),onChange:function(t){i.uno({mask:{pattern:"[-]{0,1}0{0,}[.]{0,1}0{0,}"},formatter:t})}});e.create().appendTo(n),i.LUe.xT.push(e)}},{typeId:"number-default"+n,title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(t){i.OUe().appendTo(t)}}]).appendTo(i.LUe)},n.prototype.ZUe=function(){var t,n,i=this,e=i.xT[0];e.resetDisable(),t={formattingSelect:m.keyword_null},n=i.BUe(t,"value"),i.GUe([{typeId:"lookup",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(o){var r=new I.RZe({getLookup:function(t){return i.LEt.getLookup(t)},onChange:function(o){t.formattingSelect&&(e.setValue(o),i.jUe.value=o,n())}});r.create(i.jUe.value||i.mUe.value).appendTo(o),i.LUe.xT.push(r)}},{typeId:"lookup-formatting",title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(e){t.formattingSelect=new b.MZe({formatter:i.Ue(),onChange:function(t){i.uno({formatter:t})}}),t.formattingSelect.create().appendTo(e),n(),i.LUe.xT.push(t.formattingSelect)}}]).appendTo(i.LUe)},n.prototype.BUe=function(t,n){var i=this,e=i.LUe.xT,o=e.length,r=function(t){t===e[o].isDisable(1)&&e[o].resetDisable(1)},u=function(){var e=E(E({},i.mUe),i.jUe),o=e[n]&&i.LEt.getSampleValue(e),u=t.formattingSelect&&t.formattingSelect.createFormatting(o);r(u)};return u},n.prototype.kUe=function(){var t,n,i=this;i.jUe.dataType="formula",t={formattingSelect:m.keyword_null},n=i.BUe(t,"formula"),i.GUe([{typeId:"formula",title:(0,o.getSR)().defineColumnFormula,onInitPanel:function(e){var r=new N.vZe({validate:{validating:function(t){return!(0,D.isNullOrEmpty)(t)&&"="!==t||{success:!1,errorMessage:(0,o.getSR)().defineColumnRequired}}},getColumnFields:function(){return i.LEt.getColumnFields()},onChange:function(e){t.formattingSelect&&(i.jUe.formula=e,n())}});r.create().appendTo(e),r.setValue(i.jUe.formula||i.mUe.formula),i.LUe.xT.push(r)}},{typeId:"formula-formatting",title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(e){t.formattingSelect=new b.MZe({formatter:i.Ue(),onChange:function(t){i.uno({formatter:t})}}),t.formattingSelect.create().appendTo(e),n(),i.LUe.xT.push(t.formattingSelect)}}]).appendTo(i.LUe)},n.prototype.Oto=function(){var t,n,i,e=this;e.jUe.dataType="string",(t=e.Lto())&&"hyperlink"===t.type&&(n=t.linkColor,i=t.visitedLinkColor),e.GUe([{typeId:"url",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(o){var r=new p.Gto({linkColor:n,visitedLinkColor:i,onChange:function(n){e.uno({cellType:{type:"hyperlink",linkColor:n.linkColor,visitedLinkColor:n.visitedLinkColor,target:null==t?void 0:t.target}})}});r.create().appendTo(o),e.LUe.xT.push(r)}},{typeId:"url-default",title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(t){e.OUe().appendTo(t)}}]).appendTo(e.LUe)},n.prototype.EUe=function(){this.RUe("phone","1 \\(0{3}\\) 0{3}-0{4}")},n.prototype.UUe=function(){this.RUe("email","[a0._\\-]{1,}@[a0._\\-]{1,}.(com|cn|gov|edu)")},n.prototype.RUe=function(t,n){var i,e=this;e.jUe.dataType="string",i=e.QUe(),e.GUe([{typeId:t,title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(t){var o,r=new w.JZe({pattern:null!==(o=i.pattern)&&void 0!==o?o:n,placeholder:i.placeholder,excludeLiteral:i.excludeLiteral,excludePlaceholder:i.excludePlaceholder,onChange:function(t){e.uno({mask:t})}});r.create().appendTo(t),e.LUe.xT.push(r)}},{typeId:t+"-default",title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(t){e.OUe().appendTo(t)}}]).appendTo(e.LUe)},n.prototype.QUe=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.mask?t.jUe.style.mask:t.mUe&&t.mUe.style&&t.mUe.style.mask?t.mUe.style.mask:{}},n.prototype.NZe=function(t,n){var i=this;i.GUe(i.PUe(t,n)).appendTo(i.LUe)},n.prototype.PUe=function(t,n){var i,u,c=this,a=n?"-"+n:"";return c.jUe.dataType="date",n!==r.ColumnTypes.CreatedTime.toLowerCase()&&n!==r.ColumnTypes.ModifiedTime.toLowerCase()||(c.jUe.readonly=!0,c.jUe.trigger={formula:"=NOW()",when:n===r.ColumnTypes.CreatedTime.toLowerCase()?"onNew":"onNewAndUpdate"}),n===r.ColumnTypes.CreatedTime.toLowerCase()&&(c.jUe.defaultValue="=NOW()"),i=[],n===r.ColumnTypes.Date.toLowerCase()?(u=c.SUe(),i.push({typeId:"date-time-piker"+a,title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(n){var i=new f.cZe({type:t,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){c.uno({cellButtons:[{imageType:e.ButtonImageType[e.ButtonImageType.dropdown],command:"openDateTimePicker",useButtonStyle:!1,visibility:e.ButtonVisibility[e.ButtonVisibility.always],buttonBackColor:"transparent"}],dropDowns:[{type:e.DropDownType[e.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}}]})}});i.create().appendTo(n),c.LUe.xT.push(i)}})):n===r.ColumnTypes.ModifiedTime.toLowerCase()&&i.push({typeId:"modified-fields"+a,title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(t){var n=new d.KZe({fields:c.Neo(),getTriggerFields:function(){return c.LEt.getTriggerFields()},onChange:function(t){c.jUe.trigger.fields=t.fields}});n.create().appendTo(t),c.LUe.xT.push(n)}}),i.push({typeId:"date-formatting"+a,title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(t){var n=new l.Wze({formatter:c.Ue(),onChange:function(t){c.uno({formatter:t.formatter})}});n.create().appendTo(t),c.LUe.xT.push(n)}}),i},n.prototype.t=function(){var t=this,n=t.Ue(),i,e=t.jUe.value||t.mUe.value;return i=n?(0,y.parseBarCodeOptions)(t.LEt.getSheet(),n):(0,y.getDefaultBarcodeOptions)(e)},n.prototype.Sto=function(t){var n=this;t.value=(0,y.getFieldRef)(n.jUe.value||n.mUe.value),n.uno({formatter:(0,y.createBarcodeFormula)(n.LEt.getSheet(),t)})},n.prototype.kto=function(){var t=this,n=t.t(),i={container:m.keyword_null};t.Ue()||t.Sto(n),t.GUe([{typeId:"barcode-base",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(e){var o=new C.Ieo({option:n,onChange:function(n,e){t.Sto(n),e&&i.container.reset()}});o.create().appendTo(e),t.LUe.xT.push(o)}},{typeId:"barcode-options",title:(0,o.getSR)().defineColumnOthers,onInitPanel:function(e){var o=i.container=new x.nto({panel:e,option:n,onChange:function(n){t.Sto(n)}});o.create(),t.LUe.xT.push(o)}},{typeId:"barcode-default",title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(n){t.OUe().appendTo(n)}}]).appendTo(t.LUe)},n.prototype.Zto=function(){var t=this,n={type:"fileUpload"},i=t.Lto();t.GUe([{typeId:"attachment",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(o){var r=new h.YQe({fileType:null==i?void 0:i.accept,maxSize:null==i?void 0:i.maxSize,preview:null==i?void 0:i.isPreviewEnabled,download:null==i?void 0:i.isDownloadEnabled,clear:null==i?void 0:i.isClearEnabled,onChange:function(i){n.accept=i.fileType,n.maxSize=i.maxSize,n.isPreviewEnabled=!!i.preview,n.isDownloadEnabled=!!i.download,n.isClearEnabled=!!i.clear,t.uno({hAlign:e.HorizontalAlign[e.HorizontalAlign.center],vAlign:e.VerticalAlign[e.VerticalAlign.center],cellType:n})}});r.create().appendTo(o),t.LUe.xT.push(r)}},{typeId:"attachment-margin",title:(0,o.getSR)().columnTypeAttachmentMarginGroup,onInitPanel:function(e){var o=new v.zQe({marginLeft:null==i?void 0:i.marginLeft,marginRight:null==i?void 0:i.marginRight,marginTop:null==i?void 0:i.marginTop,marginBottom:null==i?void 0:i.marginBottom,onChange:function(t){n.marginLeft=t.marginLeft,n.marginRight=t.marginRight,n.marginTop=t.marginTop,n.marginBottom=t.marginBottom}});o.create().appendTo(e),t.LUe.xT.push(o)}}]).appendTo(t.LUe)},n.prototype.Eto=function(){var t,n=this,i={type:"checkbox"};n.jUe.dataType="boolean",t=n.Lto(),n.GUe([{typeId:"checkbox",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(e){var o=new g.Mto({caption:null==t?void 0:t.caption,boxSize:null==t?void 0:t.boxSize,autoBoxSize:"auto"===(null==t?void 0:t.boxSize),onChange:function(t){i.caption=t.caption,i.boxSize=t.boxSize,t.autoBoxSize&&(i.boxSize="auto"),n.uno({cellType:i})}});o.create().appendTo(e),n.LUe.xT.push(o)}},{typeId:"checkbox-text",title:(0,o.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(e){var o=new M.sto({isThreeState:null==t?void 0:t.isThreeState,checkboxTrue:null==t?void 0:t.textTrue,checkboxFalse:null==t?void 0:t.textFalse,checkboxIndeterminate:null==t?void 0:t.textIndeterminate,checkboxAlign:t?M.CheckBoxTextAlign[t.textAlign]:m.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]}});o.create().appendTo(e),n.LUe.xT.push(o)}}]).appendTo(n.LUe)},n.prototype.Uto=function(){var t=this,n={type:"combobox"},i=t.Lto();t.GUe([{typeId:"combobox",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(e){var o=new T.wto({items:null==i?void 0:i.items,onChange:function(i){n.items=i.items,t.uno({cellType:n})}});o.create().appendTo(e),t.LUe.xT.push(o)}},{typeId:"combobox-text",title:(0,o.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(e){var o=new j.vto({editorValueType:i?A.EditorValueType[i.editorValueType]:m.keyword_null,itemHeight:null==i?void 0:i.itemHeight,editable:null==i?void 0:i.editable,onChange:function(t){n.editorValueType=A.EditorValueType[t.editorValueType],n.itemHeight=t.itemHeight,n.editable=t.editable}});o.create().appendTo(e),t.LUe.xT.push(o)}}]).appendTo(t.LUe)},n.prototype.GUe=function(t){var n=new a.YUe({items:t});return this.LUe.xT.push(n),n.create()},n.prototype.OUe=function(){var t=this,n=t.wUe({inputId:"defaultValue",placeholder:(0,o.getSR)().defineColumnDefaultValue,onChange:function(n){if("string"!==t.jUe.dataType&&!(0,m.isFormula)(n)&&!(0,D.isNullOrEmpty)(n)){var i=Number(n);Number.isNaN(i)||(n=i)}t.jUe.defaultValue=n}},t.mUe.defaultValue),i=n.input,e=n.elem;return t.LUe.xT.push(i),e},n.prototype.AUe=function(){var t=this,n=t.LUe=(0,e.GC$)(S("div"));return n.xT=[],n.addClass("gc-defined-column-type-config-container"),n},n.prototype.Aoe=function(){var t=this,n=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)if((e=i[n]).validate&&!e.validate())return e.setFocus&&e.setFocus(),!1;return!0};return!!n(t.xT)&&!!n(t.LUe.xT)},n.prototype.zUe=function(){var t,n,i,u,c,a=this,s=(0,e.GC$)(S("div"));return s.addClass("gc-defined-column-footer-container"),(t=(0,e.GC$)(S("div"))).addClass("gc-defined-column-footer-container-buttons"),t.appendTo(s),(n=(0,e.GC$)(S("button"))).addClass("gc-defined-column-footer-container-button ui-button ui-state-default ui-corner-all btn btn-default"),(i=(0,e.GC$)(S("span"))).appendTo(n),i.text((0,o.getSR)().cancel),n.bind("click",(function(){a.close()})),a.xT.push(n),(u=(0,e.GC$)(S("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"),u.appendTo(t),n.appendTo(t),(c=(0,e.GC$)(S("span"))).appendTo(u),c.text((0,o.getSR)().submit),u.bind("click",(function(){var t,n,i,e,u,c=E({},a.jUe);if(a.Aoe()){if(t=c.type===r.ColumnTypes.Formula){if(!(0,D.isNullOrEmpty)(c.value)&&(c.name=c.value,(0,m.isFormula)(c.value)))return;c.value=c.formula,(0,D.isNullOrEmpty)(c.name)&&delete c.dataType,delete c.formula}if((i=(n=Object.keys(a.mUe)).length>0)&&(a.mUe.value===c.value||(0,D.isNullOrEmpty)(c.value))||(e=a.LEt.getColumnBy(c.value))&&!1===e.visible&&(a.mUe=E({},e),a.mUe.visible=!0,i=(n=Object.keys(a.mUe)).length>0),i){if(t&&(0,D.isNullOrEmpty)(c.value)&&(c.value=a.mUe.formula),c.value=c.value||a.mUe.value,c.type=c.type||a.mUe.type,c.caption=c.caption||a.mUe.caption,u=E({},a.mUe),(0,D.isNullOrEmpty)(u.formula)||(u.value=u.formula,delete u.formula),t&&(0,D.isNullOrEmpty)(c.name)&&"formula"===c.dataType&&!(0,D.isNullOrEmpty)(u.name)&&"formula"===u.dataType)return;(0,o.copyOriginalColumnPropertiesToCurrentColumn)(c,u,n),a.LEt.onSaving({cmd:"ModifyColumn",originalColumn:u,column:c})}else c.value&&a.LEt.onSaving({cmd:"DefineColumn",column:c})}})),a.xT.push(u),n.bind("mouseover",(function(){u.addClass("ui-state-hover")})).bind("mouseout",(function(){u.removeClass("ui-state-hover")})),u.bind("mouseover",(function(){u.addClass("ui-state-hover")})).bind("mouseout",(function(){u.removeClass("ui-state-hover")})),s},n.prototype._hidden=function(){var t,n;this.Wc.css(["visibility","display"],["hidden","block"])},n.prototype.$c=function(n){var i,e;this.Wc.css(["visibility"],["visible"]),t.prototype.$c.call(this,n)},n.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&(e.unbind("click"),e.unbind("mouseover"),e.unbind("mouseout"));return[]},n.prototype.L0=function(){var t=this;t.xT=t.YZe(t.xT),t.LUe.xT=t.YZe(t.LUe.xT),t.LUe.empty(),t.LUe=m.keyword_null,(0,e.GC$)(m.DOCUMENT).unbind(z)},n.prototype.close=function(){var n=this;n._hidden(),n.L0(),t.prototype.close.call(this),n.LEt.onClosed()},n.prototype.rQ=function(t,n){var i=this,e=i.Wc;i.LF(),e.css(["left","top"],[t,n]),e.css("max-height",Math.min(window.innerHeight,window.innerHeight-n)+"px"),i.LEt.onOpening(),i.$c(),i.if(),setTimeout((function(){i.Wc.focus(),i.xT[0].setFocus()})),i.LEt.onOpened()},n}(e.zc),n.Uze=O},2611:function(t,n,i){var e,o,r,u,c,a,s,l,f,d=this&&this.mJr||function(){return d=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},d.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Mto=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(6018),c=i(6406),a=i(591),s=e.mt,l=s.En,f=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Qze=(0,e.GC$)(l("div"));return n.addClass("gc-defined-column-column-type-checkbox-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.Qze,i=t.LEt;return t._caption=new c.mZe({inputId:"placeholder",label:{text:(0,o.getSR)().columnTypeCheckboxCaption},placeholder:"",onChange:function(n){t.Ito()}}),t._caption.create().appendTo(n),t._caption.setValue(i.caption),t._boxSize=new u.AZe({inputId:"checkbox-size-limit",minValue:0,label:{text:(0,o.getSR)().columnTypeCheckboxBoxSize},onChange:function(){t.Ito()}}),t._boxSize.create().appendTo(n),t._boxSize.setValue(i.boxSize||12),t.bto=new r.Rze({label:{text:(0,o.getSR)().columnTypeCheckboxAuto},onChange:function(n){n?t._boxSize.isDisable()||t._boxSize.resetDisable():t._boxSize.isDisable()&&t._boxSize.resetDisable(),t.Ito()}}),t.bto.create().appendTo(n),t.bto.setValue(i.autoBoxSize),n},t.prototype.Ito=function(){var t,n,i,e=this;this.LEt.onChange({caption:null===(t=e._caption)||void 0===t?void 0:t.value,boxSize:null===(n=e._boxSize)||void 0===n?void 0:n.value,autoBoxSize:null===(i=e.bto)||void 0===i?void 0:i.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=d(d({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Qze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Qze=a.keyword_null},t.prototype.L0=function(){var t=this;t._caption&&t._caption.dispose(),t._caption=a.keyword_null,t._boxSize&&t._boxSize.dispose(),t._boxSize=a.keyword_null,t.bto&&t.bto.dispose(),t.bto=a.keyword_null},t}(),n.Mto=f},2648:function(n){n.exports=t.Spread.Sheets.FormulaTextBox},2742:function(t,n,i){var e,o,r,u,c,a,s,l,f,d=this&&this.mJr||function(){return d=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},d.apply(this,arguments)},h=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function v(t,n,i,e){if(!n||0===i&&0===e)return n;try{var r=(0,o.formulaToExpression)(t,n,0,0);if(r)return(0,o.expressionToFormula)(t,r,i,e)}catch(t){}return n}function g(t,n,i,e){return A(n)?"="+v(t,n.substring(1),i,e):n}function M(t,n,i,e){var o,r,u,c;if(n&&"object"==typeof n){for(o=0;o<f.length;o++)void 0!==n[r=f[o]]&&(n[r]=g(t,n[r],i,e));if(u=n.iconCriteria,Array.isArray(u))for(o=0;o<u.length;o++)(c=u[o])&&void 0!==c.iconValue&&(c.iconValue=g(t,c.iconValue,i,e))}}function I(t,n,i,o){if(n.formula&&(n.formula=v(t,n.formula,i,o)),void 0!==n.value1&&(n.value1=g(t,n.value1,i,o)),void 0!==n.value2&&(n.value2=g(t,n.value2,i,o)),M(t,n,i,o),n.condition&&b(t,n.condition,i,o),n.sparklineOptions){var r=(0,e.adjustSparklineRuleOptions)(t,n.sparklineOptions,i,o);void 0!==r&&(n.sparklineOptions=r)}}function b(t,n,i,e){n&&(n.formula&&(n.formula=v(t,n.formula,i,e)),n.item1&&b(t,n.item1,i,e),n.item2&&b(t,n.item2,i,e))}function N(t){var n,i,o;if(!t)return t;for(i in n={},t)if(t.hasOwnProperty(i))switch(o=t[i],i){case"hAlign":n.hAlign=e.HorizontalAlign[o];break;case"vAlign":n.vAlign=e.VerticalAlign[o];break;case"backgroundImageLayout":n.backgroundImageLayout=e.ImageLayout[o];break;case"imeMode":n.imeMode=e.ImeMode[o];break;case"textDecoration":"number"==typeof o?o===(e.TextDecorationType.lineThrough|e.TextDecorationType.underline)?n.textDecoration="lineThroughUnderline":o===(e.TextDecorationType.lineThrough|e.TextDecorationType.doubleUnderline)?n.textDecoration="lineThroughDoubleUnderline":n.textDecoration=e.TextDecorationType[o]:n.textDecoration=o;break;case"borderLeft":case"borderTop":case"borderRight":case"borderBottom":case"diagonalDown":case"diagonalUp":n[i]=o?{color:o.color,style:e.LineStyle[o.style]}:o;break;case"backColor":o&&o.type&&!o.stops?n.backColor={type:e.PatternType[o.type],patternColor:o.patternColor,backgroundColor:o.backgroundColor}:n.backColor=o;break;case"cellButtons":n.cellButtons=Array.isArray(o)?o.map(D):o;break;case"dropDowns":n.dropDowns=Array.isArray(o)?o.map(m):o;break;case"labelOptions":n.labelOptions=o?d(d({},o),{alignment:null!==o.alignment?e.LabelAlignment[o.alignment]:o.alignment,visibility:null!==o.visibility?e.LabelVisibility[o.visibility]:o.visibility}):o;break;case"decoration":n.decoration=o?w(o):o;break;default:n[i]=o}return n}function D(t){return{position:null!==t.position?e.ButtonPosition[t.position]:t.position,imageType:null!==t.imageType?e.ButtonImageType[t.imageType]:t.imageType,visibility:null!==t.visibility?e.ButtonVisibility[t.visibility]:t.visibility,captionAlign:null!==t.captionAlign?e.CaptionAlignment[t.captionAlign]:t.captionAlign,useButtonStyle:t.useButtonStyle,enabled:t.enabled,width:t.width,caption:t.caption,imageSrc:t.imageSrc,imageSize:t.imageSize,command:t.command,hoverBackColor:t.hoverBackColor,buttonBackColor:t.buttonBackColor}}function m(t){return{type:null!==t.type?e.DropDownType[t.type]:t.type,option:t.option?C(t.option):t.option,submitCommand:t.submitCommand}}function w(t){var n={};return t.cornerFold&&(n.cornerFold=d({},t.cornerFold),null!==t.cornerFold.position&&(n.cornerFold.position=e.CornerPosition[t.cornerFold.position])),Array.isArray(t.icons)&&(n.icons=t.icons.map((function(t){return d(d({},t),{position:null!==t.position?e.IconPosition[t.position]:t.position})}))),n}function C(t){var n,i,o,r,u={};for(n in t)t.hasOwnProperty(n)&&(u[n]=t[n]);if(null!==(i=t).calendarPage&&(u.calendarPage=e.CalendarPage[i.calendarPage]),null!==i.startDay&&(u.startDay=e.CalendarStartDay[i.startDay]),(o=t).layout){for(n in u.layout={},o.layout)o.layout.hasOwnProperty(n)&&(u.layout[n]=o.layout[n]);null!==o.layout.direction&&(u.layout.direction=e.LayoutDirection[o.layout.direction]),null!==o.layout.displayAs&&(u.layout.displayAs=e.LayoutDisplayAs[o.layout.displayAs])}return null!==o.valueType&&(u.valueType=e.DropdownListValue[o.valueType]),null!==(r=t).direction&&(u.direction=e.LayoutDirection[r.direction]),u}function y(t){var n,i,e={},o=t.ruleType(),u=t.style();switch(u&&(e.style=N(u.toJSON())),o){case r.RuleType.cellValueRule:e.ruleType="cellValueRule",e.comparisonOperator=r.ComparisonOperators[t.operator()],e.value1=t.value1(),e.value2=t.value2();break;case r.RuleType.specificTextRule:e.ruleType="specificTextRule",e.comparisonOperator=r.TextComparisonOperators[t.operator()],e.text=t.text();break;case r.RuleType.formulaRule:e.ruleType="formulaRule",e.formula=t.formula();break;case r.RuleType.dateOccurringRule:e.ruleType="dateOccurringRule",e.type=r.DateOccurringType[t.type()];break;case r.RuleType.top10Rule:e.ruleType="top10Rule",e.type=r.Top10ConditionType[t.type()],e.rank=t.rank(),e.isPercent=t.isPercent();break;case r.RuleType.uniqueRule:e.ruleType="uniqueRule";break;case r.RuleType.duplicateRule:e.ruleType="duplicateRule";break;case r.RuleType.averageRule:e.ruleType="averageRule",e.type=r.AverageConditionType[t.type()];break;case r.RuleType.twoScaleRule:e.ruleType="twoScaleRule",e.minType=r.ScaleValueType[t.minType()],e.minValue=t.minValue(),e.minColor=t.minColor(),e.maxType=r.ScaleValueType[t.maxType()],e.maxValue=t.maxValue(),e.maxColor=t.maxColor();break;case r.RuleType.threeScaleRule:e.ruleType="threeScaleRule",e.minType=r.ScaleValueType[t.minType()],e.minValue=t.minValue(),e.minColor=t.minColor(),e.midType=r.ScaleValueType[t.midType()],e.midValue=t.midValue(),e.midColor=t.midColor(),e.maxType=r.ScaleValueType[t.maxType()],e.maxValue=t.maxValue(),e.maxColor=t.maxColor();break;case r.RuleType.dataBarRule:e.ruleType="dataBarRule",e.minType=r.ScaleValueType[t.minType()],e.minValue=t.minValue(),e.maxType=r.ScaleValueType[t.maxType()],e.maxValue=t.maxValue(),e.color=t.color(),e.gradient=t.gradient(),e.showBarOnly=t.showBarOnly(),e.showBorder=t.showBorder(),e.borderColor=t.borderColor(),e.barDirection=r.BarDirection[t.dataBarDirection()],e.negativeData={negativeFillColor:t.negativeFillColor(),useNegativeFillColor:t.useNegativeFillColor(),negativeBorderColor:t.negativeBorderColor(),useNegativeBorderColor:t.useNegativeBorderColor(),axisColor:t.axisColor(),axisPosition:r.DataBarAxisPosition[t.axisPosition()]};break;case r.RuleType.iconSetRule:e.ruleType="iconSetRule",e.iconSetType=r.IconSetType[t.iconSetType()],e.reverseIconOrder=t.reverseIconOrder(),e.showIconOnly=t.showIconOnly(),(n=t.icons())&&(e.icons=n.map((function(t){return{iconSetType:r.IconSetType[t.iconSetType],iconIndex:t.iconIndex}}))),(i=t.iconCriteria())&&(e.iconCriteria=i.map((function(t){return{isGreaterThanOrEqualTo:t.isGreaterThanOrEqualTo,iconValueType:r.IconValueType[t.iconValueType],iconValue:t.iconValue}})));break;case r.RuleType.sparklineRule:e.ruleType="sparklineRule",e.sparklineType=t.sparklineType(),e.sparklineOptions=p(t.sparklineOptions()),e.showSparklineOnly=t.showSparklineOnly()}return e.stopIfTrue=t.stopIfTrue(),e.priority=t.priority(),e}function x(t){var n,i,e,o={},c=t.type(),a=t.value1(0,0),s=t.value2(0,0);switch(c){case u.CriteriaType.wholeNumber:o.type="number",o.value1=A(a)?a:Number(a),o.value2=A(s)?s:Number(s),o.isIntegerValue=!0;break;case u.CriteriaType.decimalValues:o.type="number",o.value1=A(a)?a:Number(a),o.value2=A(s)?s:Number(s),o.isIntegerValue=!1;break;case u.CriteriaType.date:o.type="date",o.value1=A(a)?a:new Date(a),o.value2=A(s)?s:new Date(s);break;case u.CriteriaType.time:o.type="time",o.value1=A(a)?a:new Date(a),o.value2=A(s)?s:new Date(s);break;case u.CriteriaType.textLength:o.type="textLength",o.value1=A(a)?a:Number(a),o.value2=A(s)?s:Number(s);break;case u.CriteriaType.custom:o.type="formula",o.formula=a;break;case u.CriteriaType.list:A(a)?(o.type="formulaList",o.formula=a):(o.type="list",o.source=a)}return n=t.comparisonOperator(),l(n)||(o.comparisonOperator=r.ComparisonOperators[n]),i=t.errorStyle(),l(i)||(o.errorStyle=u.ErrorStyle[i]),(e=t.highlightStyle())&&(o.highlightStyle={type:u.HighlightType[e.type],color:e.color,position:u.HighlightPosition[e.position],image:e.image}),o.ignoreBlank=t.ignoreBlank(),o.inCellDropdown=t.inCellDropdown(),o.showInputMessage=t.showInputMessage(),o.inputTitle=t.inputTitle(),o.inputMessage=t.inputMessage(),o.showErrorMessage=t.showErrorMessage(),o.errorTitle=t.errorTitle(),o.errorMessage=t.errorMessage(),o}function A(t){return"string"==typeof t&&t.length>1&&"="===t.charAt(0)}function T(t){var n=null==t?void 0:t.ruleType;return!!n&&(n===r.RuleType.rowStateRule||n===r.RuleType.columnStateRule)}function j(t){if(!t)return t;if("function"==typeof t.toJSON)return t.toJSON();try{return JSON.parse(JSON.stringify(t))}catch(n){return t}}function p(t){if(l(t))return t;try{return JSON.parse(JSON.stringify(t))}catch(n){return t}}function z(t){return t===r.RuleType.rowStateRule?c.StateRuleDirection.row:t===r.RuleType.columnStateRule?c.StateRuleDirection.column:void 0}function L(t,n){return l(n)?t===c.RowColumnStates.pin||t===c.RowColumnStates.primaryKey||t===c.RowColumnStates.required?c.ViewArea.colHeader:c.ViewArea.viewport:n}function S(t){return t===c.RowColumnStates.hover||t===c.RowColumnStates.active||t===c.RowColumnStates.selected||t===c.RowColumnStates.dirty||t===c.RowColumnStates.inserted||t===c.RowColumnStates.updated}function O(t){return t===c.RowColumnStates.hover||t===c.RowColumnStates.readonly||t===c.RowColumnStates.active||t===c.RowColumnStates.selected}function k(t){return t===c.RowColumnStates.readonly||t===c.RowColumnStates.pin||t===c.RowColumnStates.primaryKey||t===c.RowColumnStates.required}function E(t,n,i){if(t===c.StateRuleDirection.row)return i===c.ViewArea.viewport&&S(n);if(t===c.StateRuleDirection.column){if(i===c.ViewArea.viewport)return O(n);if(i===c.ViewArea.colHeader)return k(n)}return!1}function Z(t){switch(t){case c.RowColumnStates.hover:return"hover";case c.RowColumnStates.readonly:return"readonly";case c.RowColumnStates.active:return"active";case c.RowColumnStates.selected:return"selected";case c.RowColumnStates.dirty:return"dirty";case c.RowColumnStates.inserted:return"inserted";case c.RowColumnStates.updated:return"updated";case c.RowColumnStates.pin:return"pin";case c.RowColumnStates.primaryKey:return"primaryKey";case c.RowColumnStates.required:return"required";default:return"".concat(t)}}function U(t){switch(t){case c.StateRuleDirection.row:return"row";case c.StateRuleDirection.column:return"column";case c.StateRuleDirection.both:return"both";default:return"none"}}function G(t,n,i){return n===c.StateRuleDirection.column&&i===c.ViewArea.colHeader&&k(t)?Z(t):"".concat(Z(t),"-").concat(U(n),"-style")}function B(t){var n,i,e,o,r,u,c,a;if(!Array.isArray(t)||0===t.length)return[];for(n=[],i=0,e=t;i<e.length;i++)T(o=e[i])&&(r=z(o.ruleType),u=null==o?void 0:o.state,c=j(null==o?void 0:o.style),l(r)||l(u)||!c||E(r,u,a=L(u,null==o?void 0:o.area))&&n.push({name:G(u,r,a),style:c,rule:{direction:r,state:u,area:a}}));return n}function R(t,n,i){var o,r,u,c,a,s,l,f,d=t.conditionalFormats;if(!d||!Array.isArray(i)||0===i.length)return{options:[],rules:[]};for(o=[],r=[],u=[new e.Range(-1,n,-1,1)],c=0,a=i;c<a.length;c++)if((s=a[c])&&!T(s))try{I(t,l=JSON.parse(JSON.stringify(s)),0,n),l.ranges=u,(f=d.pJ(l,t))&&(o.push(y(f)),r.push(f))}catch(t){}return{options:o,rules:r}}function P(t,n,i){var e,o;if(!Array.isArray(i)||!i.length||!t.b8)return{option:null,validator:null};try{if((e=JSON.parse(JSON.stringify(i[0]))).condition&&b(t,e.condition,0,n),e.highlightStyle&&"string"!=typeof e.highlightStyle&&(e.highlightStyle=JSON.stringify(e.highlightStyle)),o=t.b8.yAo(e,t))return{option:x(o),validator:o}}catch(t){}return{option:null,validator:null}}function Q(t,n){var i=Array.isArray(t)?t:[],e=Array.isArray(n)?n:[];return i.length?e.length?h(h([],i,!0),e,!0):i:e}function Y(t,n){var i,e,o=n;return"string"==typeof o&&(i=t.getParent(),o=(e=t.getNamedStyle(o)||(i?i.getNamedStyle(o):null))?e.toJSON():null),o?N(o):null}function H(t,n,i){var e,o,r,u,c,a,s={};return t&&i?(r=l(n)?0:n,i.style&&(u=Y(t,i.style))&&(s.style=u),(null===(e=i.conditionalFormats)||void 0===e?void 0:e.length)&&(c=R(t,r,i.conditionalFormats).options).length>0&&(s.conditionalFormats=c),(null===(o=i.dataValidations)||void 0===o?void 0:o.length)&&(a=P(t,r,i.dataValidations).option)&&(s.validator=a),s):s}function W(t,n,i){var e,o,r,u,c,a,s=t.conditionalFormats;if(!s)return[];for(o=(e=R(t,n,i)).options,u=0,c=r=e.rules;u<c.length;u++)a=c[u],s.addRule(a);return o}function V(t,n,i){var e=P(t,n,i),o=e.option,r=e.validator;return r?(t.setDataValidator(-1,n,r),o):null}Object.defineProperty(n,"__esModule",{value:!0}),n.resolveAndApplyValidator=n.resolveAndApplyConditionalFormats=n.convertNamedCellTemplateToColumnInfo=n.resolveStyleOptions=n.mergeConditionalFormats=n.resolveTemplateStateStyleRules=n.convertStyleJSONToOptions=void 0,e=i(1376),o=i(3789),r=i(8333),u=i(4133),c=i(7373),s=(a=i(7234)).Common.lt,l=s.ht,f=["minValue","midValue","maxValue"],n.convertStyleJSONToOptions=N,n.resolveTemplateStateStyleRules=B,n.mergeConditionalFormats=Q,n.resolveStyleOptions=Y,n.convertNamedCellTemplateToColumnInfo=H,n.resolveAndApplyConditionalFormats=W,n.resolveAndApplyValidator=V},2778:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.ceo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"labelWithStartAndStopCharacter"),t.cto(n,"checkDigit"),t.ato(n,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.cto(n,"fullASCII"),t.oeo(n),n},n}(o.Meo),n.ceo=c},3180:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.pUe=void 0,e=i(1376),o=i(6406),r=i(6114),u=i(7373),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){this.itemContainers=[];var n=this;n.LEt=t,n.jrt=n.ano=c.keyword_null}return t.prototype.WUe=function(t){var n=this;return{inputId:"type-select",type:"text",placeholder:(0,r.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){(n.jrt||n.ano)&&(0,u.isNullOrEmpty)(n.XKt)?(n.jrt=n.jrt||n.ano,n.VUe(n.jrt,t)):n.FUe.setValue()}},onChange:t?c.keyword_null:function(t){n.JUe(t)},onClick:t?function(t){n.FUe.setOptions(n.WUe()),n.FUe.setValue(),n.ano=n.jrt,n.jrt=c.keyword_null,n.LEt.onChange({name:c.keyword_null},t)}:c.keyword_null}},t.prototype.create=function(){var t,n=this,i=n.LEt.items,r=(0,e.GC$)(s("div"));return r.addClass("gc-defined-column-type-select-container"),r.attr("role","combobox"),r.attr("aria-expanded","true"),r.attr("aria-autocomplete","list"),r.attr("aria-controls","gc-defined-column-types-container"),n.FUe=new o.mZe(n.WUe()),n.FUe.create().appendTo(r),(0,c.isNullOrUndefined)(n.jrt)&&i&&i.length>0&&n.XUe().appendTo(r),(t=(0,e.GC$)(s("div"))).addClass("gc-defined-column-field-label-validation-container"),t.appendTo(r),r},t.prototype.XUe=function(){var t=this,n=t.LEt.items,i=t._Ue=(0,e.GC$)(s("div"));return i.addClass("gc-defined-column-types-container"),i.attr("id","gc-defined-column-types-container"),i.attr("role","listbox"),t.tyn(n),i},t.prototype.tyn=function(t){var n,i,o,r,u=this,a=u._Ue;for(null==a||a.parent().attr("aria-expanded",t.length>0?"true":"false"),n=function(t){var n,i,o=(0,e.GC$)(s("div"));u.itemContainers.push(o),o.addClass("gc-defined-column-field-type-container"),o.attr("role","option"),(0,c.isFunction)(u.LEt.onChange)&&o.bind("click",(function(n){u.jrt=t,u.VUe(t,n)})),(n=(0,e.GC$)(s("div"))).addClass("gc-defined-column-field-type-icon "+t.iconClass),n.appendTo(o),(i=(0,e.GC$)(s("div"))).addClass("gc-defined-column-field-type-text"),i.text(t.text||t.name),i.appendTo(o),o.appendTo(a)},i=0,o=t;i<o.length;i++)n(r=o[i])},t.prototype.setValue=function(t){var n,i=this;if(!(0,c.isNullOrUndefined)(t)&&(n=i.LEt.items.find((function(n){return n.name===t}))))return i.jrt=n,void i.VUe(n);i.FUe.setValue()},t.prototype.VUe=function(t,n){var i=this;i.isValid()||i.resetValid(i.validate()),i.FUe.setOptions(i.WUe(t.iconClass)),i.FUe.setValue(t.text||t.name),i.d5(),i.LEt.onChange(t,n)},t.prototype.d5=function(){var t,n,i,e=this;if(e._Ue.empty(),(0,c.isFunction)(e.LEt.onChange))for(t=0,n=e.itemContainers;t<n.length;t++)(i=n[t]).unbind("click")},t.prototype.JUe=function(t){var n,i=this,e=i.LEt.items;i.XKt=t,i.d5(),(0,c.isNullOrUndefined)(t)||""===t?i.tyn(e):(t=t.toLowerCase(),n=e.filter((function(n){return(n.text||n.name).toLowerCase().indexOf(t)>-1})),i.tyn(n))},t.prototype.validate=function(){var t=this;return(0,c.isNullOrUndefined)(t.jrt)?(t.resetValid(!1,{required:!1}),!1):(t.resetValid(!0),!0)},t.prototype.resetValid=function(t,n){var i,o,u,c=this,a=null===(i=c._Ue)||void 0===i?void 0:i.parent();a&&(o=a.find(".gc-defined-column-field-label-validation-container"),u=(0,e.GC$)(o[o.length-1]),t?(a.removeClass("gc-define-column-invalid"),a.attr("aria-invalid","false"),u.hide(),u.empty()):a.hasClass("gc-define-column-invalid")||(a.addClass("gc-define-column-invalid"),a.attr("aria-invalid","true"),!1===n.required&&u.html((0,r.getSR)().defineColumnRequired),u.show()))},t.prototype.isValid=function(){var t,n=this,i=null===(t=n._Ue)||void 0===t?void 0:t.parent();return i&&!i.hasClass("gc-define-column-invalid")},t.prototype.setFocus=function(){this.FUe.setFocus()},t.prototype.dispose=function(){var t=this;t.FUe.dispose(),t.FUe=c.keyword_null,t.d5(),t._Ue=c.keyword_null},t}(),n.pUe=l},3182:function(t,n,i){var e,o,r=this&&this.vJr||(a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},a(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),u=this&&this.pJr||function(t,n,i,e){function o(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,r){function u(t){try{a(e.next(t))}catch(t){r(t)}}function c(t){try{a(e.throw(t))}catch(t){r(t)}}function a(t){t.done?i(t.value):o(t.value).then(u,c)}a((e=e.apply(t,n||[])).next())}))},c=this&&this.gJr||function(t,n){var i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},e,o,r,u;return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(t){return function(n){return a([t,n])}}function a(c){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(e=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(t,i)}catch(t){c=[6,t],o=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},a;function s(t){return void 0===t}Object.defineProperty(n,"__esModule",{value:!0}),n.OverWriteWorkSheet=void 0,o=function(t){function n(n,i,e){var o=t.call(this,n)||this;return o.NMi=i,o.qni=e,o}return r(n,t),n.prototype.Mtt=function(n){return u(this,void 0,void 0,(function(){return c(this,(function(i){switch(i.label){case 0:return this.Ldi(n)?(this.Boo(),[4,this.qni.undo(n)]):[3,2];case 1:return i.sent(),this.zoo(),[3,3];case 2:t.prototype.Mtt.call(this,n),i.label=3;case 3:return[2]}}))}))},n.prototype.vCn=function(){t.prototype.vCn.call(this),this.qni.startTransaction()},n.prototype.FCn=function(){var n=t.prototype.FCn.call(this),i=this.qni.endTransaction();return(null==i?void 0:i.length)>0?i:n},n.prototype.Mno=function(){return!s(this.Ino)},n.prototype.mno=function(){this.Ino={}},n.prototype.Nno=function(){this.Dno(),this.Ino=void 0},n.prototype.jno=function(t){s(this.Ino[t])&&(this.Ino[t]=!0)},n.prototype.Dno=function(){if(this.Ino)for(var t in this.Ino)this.Ino[t]&&this.NMi.iM(void 0,t)},n.prototype.hP=function(){var t=this.parent;return!t||t.getActiveSheetTab()===this.NMi},n.prototype.resumePaint=function(){t.prototype.resumePaint.call(this),this.My<=0&&this.NMi.refreshDataProvider()},n.prototype.repaint=function(){t.prototype.repaint.call(this),this.My<=0&&this.NMi.refreshDataProvider()},n.prototype.Boo=function(){var t,n;null===(n=null===(t=this.parent)||void 0===t?void 0:t.collaboration)||void 0===n||n.suspendOp()},n.prototype.zoo=function(){var t,n;null===(n=null===(t=this.parent)||void 0===t?void 0:t.collaboration)||void 0===n||n.resumeOp()},n.prototype.Ldi=function(t){var n=null==t?void 0:t[0];return!!(null==n?void 0:n.sourceType)},n}((e=i(1376)).Worksheet),n.OverWriteWorkSheet=o},3382:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.seo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"checkDigit"),t.cto(n,"fullASCII"),t.oeo(n),n},n}(o.Meo),n.seo=c},3632:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.zQe=void 0,e=i(1376),o=i(6114),r=i(591),u=i(6018),c=e.mt,a=c.En,s=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.ZQe=(0,e.GC$)(a("div"));return n.addClass("gc-defined-column-attachment-margins-container"),t.ZX()},t.prototype.ZX=function(){var t,n,i,e,r=this,c=r.ZQe,a=r.LEt;return r._marginLeft=new u.AZe({inputId:"attachment-margin-left",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentLeft},onChange:function(){r.QQe()}}),r._marginLeft.create().appendTo(c),r._marginLeft.setValue(null!==(t=a.marginLeft)&&void 0!==t?t:2),r._marginRight=new u.AZe({inputId:"attachment-margin-right",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentRight},onChange:function(){r.QQe()}}),r._marginRight.create().appendTo(c),r._marginRight.setValue(null!==(n=a.marginRight)&&void 0!==n?n:2),r._marginTop=new u.AZe({inputId:"attachment-margin-top",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentTop},onChange:function(){r.QQe()}}),r._marginTop.create().appendTo(c),r._marginTop.setValue(null!==(i=a.marginTop)&&void 0!==i?i:2),r._marginBottom=new u.AZe({inputId:"attachment-margin-bottom",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentBottom},onChange:function(){r.QQe()}}),r._marginBottom.create().appendTo(c),r._marginBottom.setValue(null!==(e=a.marginBottom)&&void 0!==e?e:2),c},t.prototype.QQe=function(){var t,n,i,e,o=this;this.LEt.onChange({marginLeft:null===(t=o._marginLeft)||void 0===t?void 0:t.value,marginRight:null===(n=o._marginRight)||void 0===n?void 0:n.value,marginTop:null===(i=o._marginTop)||void 0===i?void 0:i.value,marginBottom:null===(e=o._marginBottom)||void 0===e?void 0:e.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=l(l({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.ZQe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.ZQe=r.keyword_null},t.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},t}(),n.zQe=s},3789:function(n){n.exports=t.Spread.Sheets.CalcEngine},3827:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.feo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.rto(n,"addOn"),t.ato(n,"addOnLabelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}]),t.oeo(n),n},n}(o.Meo),n.feo=c},3889:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j=this&&this.vJr||(p=function(t,n){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},p(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}p(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),p;function z(t,n){var i,e,o=n.getDataView();o&&(i=n.Mf.rowFilter(),(e=n.TLt(o,t,t))&&(n.EPt(),i.UIi()),n.Mf.rowFilter().VIi(t),o.hRe(t),e&&(i.QIi(),n.jPt()),n.restoreView(n.getDataView()))}Object.defineProperty(n,"__esModule",{value:!0}),n.ApplyNamedCellTemplateToTableSheetAction=n.RemoveFromMultiSortAction=n.AddToMultiSortAction=n.TableSheetRemoveColumnInfoAction=n.TableSheetResertViewAction=n.ViewGroupOptionsAction=n.ViewMoveColumnForPanelAction=n.ViewMoveColumnAction=n.ViewAddColumnInfoAction=n.ViewRemoveColumnInfoAction=n.ViewUpdateColumnInfoAction=n.DefineColumnToTableAction=n.RemoveColumnToTableAction=n.ModifyColumnToTableAction=n.ExpandGroupItemAction=n.ExpandGroupAction=n.RemoveRowAction=n.PinRowAction=n.ResetRowAction=n.TableSheetActionBase=void 0,e=i(1376),o=i(7234),r=o.Common.lt.ht,u=e.Commands.ActionBase,c=function(){},a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),Object.defineProperty(n.prototype,"sheet",{get:function(){return this.Mf},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sheetTab",{get:function(){return this.sheet.NMi},enumerable:!1,configurable:!0}),n.prototype.execute=function(){var t,n,i=this,o=!1;if(i.canExecute()){n=(t=i.sheet).parent.i4(),e.Commands.II(n),i.X5(t,!0);try{"boolean"!=typeof(o=this.kdi())&&(o=!0)}finally{i.q5(t,!0),e.Commands.xI(n,i.tT)}}return o},n.prototype.undo=function(){var t,n=this,i=n.sheet,o=!1;if(n.canUndo()){n.X5(i,!0);try{t=i.parent.i4(),n.mze(),e.Commands.NI(t,n.tT),this.rbi(),o=!0}finally{n.q5(i,!0)}}return o},n.prototype.mze=function(){},n.prototype.rbi=function(){},n}(u),n.TableSheetActionBase=a,s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this.tT,n=t.tableSheet,i=t.index;n.Mf.ki(e.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:2,row:i}),n.resetRow(i)},n}(a),n.ResetRowAction=s,l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this.tT,n=t.tableSheet,i=t.index;n.togglePinnedRows([i])},n}(a),n.PinRowAction=l,f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.execute=function(){var t,n,i=this,o=!1;if(i.canExecute()){t=i.sheet,n=t.parent.i4(),e.Commands.II(n),i.X5(t,!0);try{this.kdi(),o=!0}finally{i.q5(t,!0),setTimeout((function(){e.Commands.xI(n,i.tT)}),0)}}return o},n.prototype.kdi=function(){var t=this.tT,n=t.tableSheet,i=t.index;n.Mf.ki(e.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:0,row:i}),n.removeRow(i).catch(c)},n}(a),n.RemoveRowAction=f,d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.field,o=n.expand;i.expandGroup(e,o)},n}(a),n.ExpandGroupAction=d,h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.level,o=n.index,r=n.expand;i.expandGroupItem(e,o,r)},n}(a),n.ExpandGroupItemAction=h,v=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.column,o=n.originalColumn,r=n.col;return i.JEe(r,e,o)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ModifyColumnToTableAction=v,g=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.column,o=n.col;return i.iGe(o,e)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.RemoveColumnToTableAction=g,M=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.column,o=n.col;return i.qFe(o,e)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.DefineColumnToTableAction=M,I=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.columnInfos,o=i.getDataView(),r=o.getColumnInfos(),u=i.Teo(!0)&&e.some((function(t){var n,i=!1!==t.visible,e=r.find((function(n){return n.value===t.value}));return!(!e||i===(n=!1!==e.visible))}));u&&i.qni.startAddComboChanges(),e.forEach((function(t){o.updateColumn(t)})),i.refreshBindColumns(),u&&(i.Seo(),i.qni.endAddComboChanges())},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ViewUpdateColumnInfoAction=I,b=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.value,o=i.getDataView();i.qni.startAddComboChanges(),o.removeColumn(e),i.refreshBindColumns(),i.Seo(),i.qni.endAddComboChanges()},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ViewRemoveColumnInfoAction=b,N=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.columnInfo,o=i.getDataView();o.addColumn(e),i.refreshBindColumns(),i.afterAddViewColumn(e)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ViewAddColumnInfoAction=N,D=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.fromColumnOptionIndex,o=n.toColumnOptionIndex,u=n.fromColumnIndex,c=n.toColumnIndex,a=n.count,s=!0;r(e)||r(o)||(s=!i.DPt(e,o)),!s||r(u)||r(c)||r(a)||i.OPt(u,c,a)},n}(a),n.ViewMoveColumnAction=D,m=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t,n,i=this,e=i.tT,o=i.sheetTab,u=e.fromColumnOptionIndex,c=e.toColumnOptionIndex,a=e.fromColumnIndex,s=e.toColumnIndex,l=e.count,f=!0;r(u)||r(c)||(f=!o.DPt(u,c)),!f||r(a)||r(s)||r(l)||o.OPt(a,s,l),o&&(t=o.getDataView(),n=o.Mf.rowFilter(),o.suspendPaint(),o.EPt(),"function"==typeof n.UIi&&n.UIi(),o.resetNewView(t.ILt,t.aPt,t.LEt),"function"==typeof n.QIi&&n.QIi(),o.jPt(),o.resumePaint())},n}(a),n.ViewMoveColumnForPanelAction=m,w=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.groupOptions;(null==e?void 0:e.length)>0?i.groupBy(e):i.removeGroupBy()},n}(a),n.ViewGroupOptionsAction=w,C=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.newConfig,o=e.columnInfoOptions,r=e.includeDefaultColumns,u=e.options;i.resetNewView(o,r,u)},n}(a),n.TableSheetResertViewAction=C,y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.index;z(e,i)},n.prototype.rbi=function(){var t=this.sheetTab;t.restoreView(t.getDataView())},n}(a),n.TableSheetRemoveColumnInfoAction=y,x=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheet,e=n.col,o=n.ascending;return i.MIo(e,o)},n}(a),n.AddToMultiSortAction=x,A=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheet,e=n.col;return i.IIo(e)},n}(a),n.RemoveFromMultiSortAction=A,T=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this.tT,n=this.sheetTab;n.applyNamedCellTemplate(t.templateName,t.fieldNames)},n}(a),n.ApplyNamedCellTemplateToTableSheetAction=T},4036:function(n){n.exports=t.Spread.Sheets.Filter},4133:function(n){n.exports=t.Spread.Sheets.DataValidation},4475:function(n){n.exports=t.Spread.Sheets.AutoMerge},4488:function(t,n,i){var e,o,r;Object.defineProperty(n,"__esModule",{value:!0}),o="CONVERTARRAY",(e=i(5035)).Functions.findGlobalFunction(o)||((r=new e.Functions.Function(o,1,255)).evaluate=function(){var t=[].slice.apply(arguments);return new e.CalcArray([t])},e.Functions.defineGlobalCustomFunction(o,r))},4900:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};function f(){var t=Date.now().toString(),n=Math.floor(1e3*Math.random()).toString().padStart(3,"0");return t+n}Object.defineProperty(n,"__esModule",{value:!0}),n.Kze=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(591),c=e.mt,a=c.En,s=function(){function t(t){var n=this;n.LEt=t,n.KUe=u.keyword_null,n.$Ue="select-input-"+t.inputId||0}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.KUe)||void 0===t?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var t=this;return this.EE().findIndex((function(n){return n.value===t.value}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.KUe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.EE=function(){var t,n=this.LEt,i=n.stickItem,e=n.items;return i?[i].concat(e):e},t.prototype.create=function(){var t,n,i,o,c,s,l,f=this,d=f.LEt,h=f.yZe=(0,e.GC$)(a("div"));return h.addClass("gc-defined-column-field-item-container gc-defined-column-select-box-container"),d.label&&d.label.text&&((n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-field-label-container"),n.appendTo(h),(i=(0,e.GC$)(a("label"))).addClass("gc-defined-column-field-label-container-label-text"),i.attr("for","gc-defined-column-input-"+f.$Ue),i.appendTo(n),i.text(d.label.text)),(o=(0,e.GC$)(a("div"))).addClass("gc-defined-column-select-container"),f.isDisable()&&o.addClass("gc-defined-column-disabled"),f.isVisible()||h.addClass("gc-defined-column-hide"),o.appendTo(h),(c=f.peo=(0,u.createDCElement)("sjs-select")).attr("disabled",f.isDisable()),c.attr("id","gc-defined-column-input-"+d.inputId),c.attr("ariaLabel",null===(t=d.label)||void 0===t?void 0:t.text),(0,u.isNullOrUndefined)(d.defaultValue)||c.attr("value",d.defaultValue),f.LEt.enableSearch&&c.attr("editable",!0),c.attr("no-result-tip",(0,r.getSR)().defineColumnNoResults),(s=f.EE())&&s.length>0&&c.attr("items",JSON.stringify(f.EE().map((function(t){return{value:t.value,label:t.text||t.value}})))),c.bind("input",(function(t){var n,i=t.target.value;(0,u.isNullOrUndefined)(t.target.value)&&(i=u.keyword_null),n=f.EE().find((function(t){return((0,u.isNullOrUndefined)(t.value)?u.keyword_null:t.value)===i})),f.KUe=n,f.LEt.onChange(f.KUe),f.isValid()||f.resetValid(f.validate())})),c.appendTo(o),(l=(0,e.GC$)(a("div"))).addClass("gc-defined-column-field-label-validation-container"),l.appendTo(h),l.hide(),h},t.prototype.setValue=function(t,n){var i=this;i.setIndex(i.EE().findIndex((function(n){return n.value===t})),n)},t.prototype.setIndex=function(t,n){var i,e=this;if(!(0,u.isNullOrUndefined)(t)&&t>-1&&(i=e.EE()[t]))return e.KUe=i,void e.qUe(i,null==n||n);e.qUe(u.keyword_null)},t.prototype.setOptions=function(t){var n=this,i=n.LEt.items!==t.items;n.LEt=l(l({},n.LEt),t),i&&n.peo.setItems(n.EE().map((function(t){return{value:t.value,label:t.text||t.value}}))),n.setValue()},t.prototype.qUe=function(t,n){var i=this;t?i.peo.val(t.value):(i.KUe=u.keyword_null,i.peo.val(u.keyword_null)),n&&i.LEt.onChange(t)},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.peo.parent();t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),t.peo.bur(!n)},t.prototype.isVisible=function(){return!0!==this.LEt.hide},t.prototype.resetVisible=function(){var t=this,n=t.isVisible(),i=t.yZe;t.LEt.hide=n,n?i.addClass("gc-defined-column-hide"):i.removeClass("gc-defined-column-hide"),i.attr("aria-hidden",n?"true":"false")},t.prototype.validate=function(){var t,n=this,i=n.LEt.validate,e=!n.isDisable();if(i&&e){if(i.required&&(0,o.isNullOrEmpty)(n.value))return n.resetValid(!1,{required:!1}),!1;if(i.validating)if("boolean"==typeof(t=i.validating(n.value))){if(!t)return n.resetValid(!1),!1}else if(!t.success)return n.resetValid(!1,t),!1}return n.resetValid(!0),!0},t.prototype.resetValid=function(t,n){var i=this,o=i.peo,u=o.parent(),c=(0,e.GC$)(i.yZe.find(".gc-defined-column-field-label-validation-container")[0]);t?(u.removeClass("gc-define-column-invalid"),o.removeClass("gc-define-column-invalid"),o.attr("aria-invalid","false"),c.hide(),c.empty()):u.hasClass("gc-define-column-invalid")||(u.addClass("gc-define-column-invalid"),o.addClass("gc-define-column-invalid"),o.attr("aria-invalid","true"),!1===n.required?c.html((0,r.getSR)().defineColumnRequired):n.errorMessage&&c.html(n.errorMessage),n&&c.show())},t.prototype.isValid=function(){var t,n;return!this.peo.parent().hasClass("gc-define-column-invalid")},t.prototype.dispose=function(t){var n=this;n.peo.unbind("input"),n.peo=u.keyword_null,t&&n.yZe.remove(),n.yZe=u.keyword_null},t}(),n.Kze=s},5035:function(n){n.exports=t.Spread.CalcEngine},5065:function(n){n.exports=t.Spread.Sheets.Print},5168:function(t,n,i){var e,o,r,u,c,a,s,l,f,d=this&&this.mJr||function(){return d=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},d.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.JZe=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(7553),c=i(6406),a=null,s=e.mt,l=s.En,f=function(){function t(t){var n=this;n.LEt=t,n.y4={pattern:t.pattern,placeholder:t.placeholder,excludeLiteral:t.excludeLiteral,excludePlaceholder:t.excludePlaceholder}}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i,s,f,h=this,v=h.LEt,g=v.onChange,M=(0,e.GC$)(l("div"));return M.addClass("gc-defined-column-mask-container"),(t=h.XZe=new c.mZe({inputId:"pattern",label:{text:(0,r.getSR)().columnTypeMask.pattern},onChange:function(t){h.y4.pattern=(0,o.isNullOrEmpty)(t)?v.pattern:t,g&&g(d({},h.y4))}})).create().appendTo(M),v.pattern&&t.setValue(v.pattern),(n=h._Ze=new c.mZe({inputId:"placeholder",maxLength:1,label:{text:(0,r.getSR)().columnTypeMask.placeholder},onChange:function(t){h.y4.placeholder=(0,o.isNullOrEmpty)(t)?a:t,g&&g(d({},h.y4))}})).create().appendTo(M),v.placeholder&&n.setValue(v.placeholder),(i=(0,e.GC$)(l("div"))).addClass("gc-defined-column-mask-exclude-container"),i.appendTo(M),(s=h.Lse=new u.Rze({label:{text:(0,r.getSR)().columnTypeMask.excludeLiteral},onChange:function(t){h.y4.excludeLiteral=t,g&&g(d({},h.y4))}})).create().appendTo(i),v.excludeLiteral&&s.setValue(v.excludeLiteral),(f=h.Fse=new u.Rze({label:{text:(0,r.getSR)().columnTypeMask.excludePlaceholder},onChange:function(t){h.y4.excludePlaceholder=t,g&&g(d({},h.y4))}})).create().appendTo(i),v.excludePlaceholder&&f.setValue(v.excludePlaceholder),M},t.prototype.dispose=function(){var t=this;t.XZe.dispose(),t.XZe=a,t._Ze.dispose(),t._Ze=a,t.Lse.dispose(),t.Lse=a,t.Fse.dispose(),t.Fse=a},t}(),n.JZe=f},5203:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v;Object.defineProperty(n,"__esModule",{value:!0}),n.nto=void 0,e=i(8033),o=i(3827),r=i(5947),u=i(6153),c=i(2778),a=i(1633),s=i(3382),l=i(1090),f=i(6944),d=i(1649),h=i(6045),v=function(){function t(t){var n=this;n.LEt=t,n.xT=[]}return t.prototype.create=function(){var t;this.ZX()},t.prototype.ZX=function(){var t;this.ito()},t.prototype.oto=function(t){var n=this,i=n.LEt.option,e=n.LEt.panel,o=new t({option:i,onChange:function(t){n.Z_i(t)}});o.create().appendTo(e),n.xT.push(o)},t.prototype.ito=function(){var t=this,n,i;switch(t.LEt.option.barcodeType){case"QRCODE":t.oto(h.uto);break;case"EAN13":t.oto(o.feo);break;case"EAN8":t.oto(r.deo);break;case"CODABAR":t.oto(e.ueo);break;case"CODE39":t.oto(c.ceo);break;case"CODE93":t.oto(s.seo);break;case"CODE128":t.oto(u.aeo);break;case"GS1_128":t.oto(f.heo);break;case"CODE49":t.oto(a.reo);break;case"PDF417":t.oto(d.geo);break;case"DATAMATRIX":t.oto(l.leo)}},t.prototype.Z_i=function(t){var n,i=this.LEt.onChange;i&&i(t)},t.prototype.reset=function(){var t=this;t.d5(),t.ZX()},t.prototype.d5=function(){var t=this;t.LEt.panel.empty(),t.xT=t.YZe(t.xT)},t.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&e.unbind("click");return[]},t.prototype.dispose=function(){var t=this;t.xT=t.YZe(t.xT)},t}(),n.nto=v},5530:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I=this&&this.mJr||function(){return I=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},I.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Wze=void 0,e=i(7234),o=i(1376),r=i(6114),u=i(7553),c=i(7324),a=i(1163),s=i(9266),l=i(4900),f=i(591),d=o.mt,h=d.En,v="3/14/2001 13:30:00",g=e.Common.CultureManager,M=function(){function t(t){var n;this.Hze=g.getCultureInfo(1041),this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Vze=(0,o.GC$)(h("div"));return n.addClass("gc-defined-column-date-formatting-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.LEt,i=t.Vze,e=(0,a.parseFormat)(n.formatter);return t.Fze=new c.Jze({label:{text:(0,r.getSR)().columnTypeDateType},items:[],onChange:function(){t.Xze()}}),t.Fze.create().appendTo(i),t.Fze.setIndex(e.index||0),t._ze=new l.Kze({inputId:"date-locale",items:(0,a.getListItems)(4),label:{text:(0,r.getSR)().columnTypeDateLocale},onChange:function(){t.$ze(),t.qze(),t.tZe()}}),t._ze.create().appendTo(i),e.locale?t._ze.setValue(e.locale):t._ze.setIndex(0),t.nZe=new l.Kze({inputId:"date-locale",hide:"ja-jp"!==e.locale,items:[{text:(0,r.getSR)().columnTypeCalendarType.western,value:"western"},{text:(0,r.getSR)().columnTypeCalendarType.JER,value:"JER"}],label:{text:(0,r.getSR)().columnTypeCalendar},onChange:function(){t.qze(),t.tZe()}}),t.nZe.create().appendTo(i),t.nZe.setValue(e.calendarType||"western"),t.iZe=new u.Rze({hide:"JER"!==e.calendarType,label:{text:(0,r.getSR)().columnTypeShowEraFirstYear},onChange:function(){t.tZe()}}),t.iZe.create().appendTo(i),t.iZe.setValue(1===e.numberSystem),t.eZe().appendTo(i),t.tZe(),i},t.prototype.tZe=function(){var t,n,i,e,o,u,c,s,l=null===(t=this._ze)||void 0===t?void 0:t.value,f=null===(n=this.nZe)||void 0===n?void 0:n.value,d=new Date(v),h=[],g=[],M=[];if(l&&f&&(M=(0,a.getPredefinedFormats)(l,a.formatCategories[4])),l===this.Hze.name().toLowerCase()&&"JER"===f)for(i=(0,r.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,e=0;e<i.length;e++)o=this.iZe&&this.iZe.value,1===e&&o?(h.push(this.Re(d,(0,r.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[e])),g.push((0,r.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[e])):(h.push(this.Re(d,i[e])),g.push(i[e]));else for(e=0;e<M.length;e++)u=this.Re(d,M[e]),h.push(u),g.push(M[e]);for(c=[],e=0;e<h.length;e++)c.push({text:h[e],value:g[e]});s=this.Fze.index,this.Fze.setOptions({items:c}),this.Fze.setIndex(Math.max(s,0))},t.prototype.Xze=function(){var t=this,n=t.oZe();t.LEt.onChange({formatter:n})},t.prototype.$ze=function(){var t,n,i,e,o,r=this,u=(null===(t=this._ze)||void 0===t?void 0:t.value)===this.Hze.name().toLowerCase();u?(null===(n=r.nZe)||void 0===n?void 0:n.isVisible())||null===(i=r.nZe)||void 0===i||i.resetVisible():(null===(e=r.nZe)||void 0===e?void 0:e.isVisible())&&(null===(o=r.nZe)||void 0===o||o.resetVisible())},t.prototype.qze=function(){var t,n,i,e,o,r,u,c,a=this,s=(null===(t=this._ze)||void 0===t?void 0:t.value)===this.Hze.name().toLowerCase(),l="JER"===(null===(n=this.nZe)||void 0===n?void 0:n.value);s?l?(null===(i=a.iZe)||void 0===i?void 0:i.isVisible())||null===(e=a.iZe)||void 0===e||e.resetVisible():(null===(o=a.iZe)||void 0===o?void 0:o.isVisible())&&(null===(r=a.iZe)||void 0===r||r.resetVisible()):(null===(u=a.iZe)||void 0===u?void 0:u.isVisible())&&(null===(c=a.iZe)||void 0===c||c.resetVisible())},t.prototype.oZe=function(){var t,n=this,i=this.Fze.value,e=new Date(v);return null===(t=n.uZe)||void 0===t||t.setText(n.Re(e,i)),i},t.prototype.eZe=function(){var t=this,n=t.uZe=new s.rZe;return n.create()},t.prototype.Re=function(t,n){var i;return new e.Formatter.GeneralFormatter(n).format(t)},t.prototype.setOptions=function(t){var n=this;n.LEt=I(I({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Vze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Vze=f.keyword_null},t.prototype.L0=function(){var t=this;t.Fze&&t.Fze.dispose(),t.Fze=f.keyword_null,t._ze&&t._ze.dispose(),t._ze=f.keyword_null,t.nZe&&t.nZe.dispose(),t.nZe=f.keyword_null,t.iZe&&t.iZe.dispose(),t.iZe=f.keyword_null,t.uZe.dispose(),t.uZe=f.keyword_null},t}(),n.Wze=M},5947:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.deo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.oeo(n),n},n}(o.Meo),n.deo=c},5981:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b=this&&this.mJr||function(){return b=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},b.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.bZe=void 0,e=i(7234),o=i(1376),r=i(6114),u=i(6018),c=i(7553),a=i(7324),s=i(1163),l=i(9266),f=i(4900),d=i(591),h=e.Formatter&&e.Formatter.GeneralFormatter,v=o.mt,g=v.En,M=v.St,I=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.fUe=(0,o.GC$)(g("div"));return n.addClass("gc-defined-column-number-formatting-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.LEt,i=t.fUe,e=(0,s.parseFormat)(n.formatter),o=n.type||e.category;return t.dUe=new u.AZe({inputId:"number-formatting-decimal-places",maxValue:16,label:{text:(0,r.getSR)().columnTypeNumberFormattingDecimalPlaces},onChange:function(){6!==o&&t.gUe.setOptions({items:t.MUe()}),t.Xze()}}),t.dUe.create().appendTo(i),6===o?(t.eZe().appendTo(i),t.dUe.setValue((0,d.isNullOrUndefined)(e.decimalPlaces)?2:e.decimalPlaces),i):(2===o?((0,d.isNullOrUndefined)(e.locale)&&n.formatter&&1===e.category&&(e.locale=(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]),t.oUt=new f.Kze({inputId:"number-formatting-symbol",items:(0,s.getListItems)(2,[{text:(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],value:(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]}]),label:{text:(0,r.getSR)().columnTypeNumberFormattingSymbol},onChange:function(){t.gUe.setOptions({items:t.MUe()}),t.Xze()}}),t.oUt.create().appendTo(i)):(t.hUe=new c.Rze({label:{text:(0,r.getSR)().columnTypeNumberFormattingThousandSeparator},onChange:function(){t.gUe.setOptions({items:t.MUe()}),t.Xze()}}),t.hUe.create().appendTo(i)),t.gUe=new a.Jze({label:{text:(0,r.getSR)().columnTypeNumberFormattingNegativeNumbers},items:t.MUe(),onChange:function(){t.Xze()}}),t.gUe.create().appendTo(i),t.eZe().appendTo(i),t.gUe.setIndex(0),t.dUe.setValue((0,d.isNullOrUndefined)(e.decimalPlaces)?2:e.decimalPlaces),2===o?e.locale?t.oUt.setValue(e.locale):t.oUt.setIndex(1):t.hUe.setValue(e.useThousand||!1),t.gUe.setIndex((0,d.isNullOrUndefined)(e.index)?0:e.index),i)},t.prototype.Xze=function(){var t=this,n=t.oZe();t.LEt.onChange(n)},t.prototype.oZe=function(){var t,n,i=this;return t=6===i.LEt.type?i.IUe(i.dUe.value):2===i.LEt.type?i.bUe(i.gUe.value):i.NUe(i.gUe.index,i.dUe.value,i.hUe.value),n=i.Re("12345",t),i.uZe.setText(n),t},t.prototype.IUe=function(t){var n,i,e="";if(t>0){for(i=0;i<t;i++)e+="0";n="0."+e+"%"}else n="0%";return n},t.prototype.bUe=function(t){return t},t.prototype.NUe=function(t,n,i){var e,o,u=(0,r.getSR)().columnTypeNumberFormatting.numberCategoryFormats,c=u.length/2,a=u[t];if(i&&(a=u[t+c]),n>0){for(e="",o=0;o<n;o++)e+="0";a=a.replace(/0/g,"0."+e)}return a},t.prototype.MUe=function(){var t=this,n;return 2===t.LEt.type?t.vUe():t.DUe()},t.prototype.DUe=function(){var t,n,i,e,o,u,c,a,s,l,f,h="1234.10",v=this.dUe.value,g=this.hUe&&this.hUe.value;if(v>0){for(t="",n=0;n<v;n++)t=(n%10).toString()+t.substring(0);h=h.substring(0,h.indexOf(".")+1)+t}else h=h.substring(0,h.indexOf("."));for(g&&(i=h.indexOf("1"),h=h.substring(0,i+1)+","+h.substring(i+1)),e=[],o=(0,r.getSR)().columnTypeNumberFormatting.negativeNumbers,u=0,c=Object.keys(o);u<c.length;u++)s=h,-1!==(l=o[a=c[u]]).indexOf("-")&&(s="-"+s),-1!==l.indexOf(")")&&(s="("+s+")"),-1!==l.indexOf("\u25b3")&&(s="\u25b3"+s),-1!==l.indexOf("\u25b2")&&(s="\u25b2"+s),f={text:s,value:a,class:d.keyword_null},-1!==a.indexOf("red")&&(f.class="gc-defined-column-number-formatting-negative-item"),e.push(f);return e},t.prototype.vUe=function(){var t,n,i,o,u,c,a,l,f,h,v,g,M,I,b,N=this.dUe.value,D=this.oUt.value,m=[],w="-1234",C="",y="";if(N>0){for(y="."+Array(N).fill(0).join(""),t=Array(N),n=0;n<N;)t[n]=n%10,n++;t.reverse(),C=t.join("")}for(o=parseFloat(i=w+"."+C),u=(0,d.isNullOrUndefined)(D)||D===(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]?(0,r.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol:(0,s.getPredefinedFormats)(D,s.formatCategories[2]),c=/(\[[^\$^\]]+\])?(\[\$[^\]]+\])?(.*)(0)([^\[]*)(\[\$[^\]]+\])?/,a=0,l=u.length;a<l;a++)h=(f=u[a]).split(";"),v=(0,s.beforeAdjustFormatString)(h),h=h.map((function(t){return t.replace(c,(function(){var t,n,i=[];for(t=1;t<7;t++)n=arguments[t],(0,d.isNullOrUndefined)(n)||(2!==t&&6!==t&&(n=n.replace(s.decimalPlacesWithZeroDotReg,"0"+y)),i.push(n));return i.join("")}))})),(0,s.afterAdjustFormatString)(h,v),f=h.join(";"),g={},b={text:I=(M=new e.Formatter.GeneralFormatter(f)).format(o,g),value:f},(g.conditionalForeColor&&"red"===g.conditionalForeColor.toLowerCase()||"#FF0000"===g.conditionalForeColor)&&(b.class="gc-defined-column-number-formatting-negative-item"),m.push(b);return m},t.prototype.eZe=function(){var t=this,n=t.uZe=new l.rZe;return n.create()},t.prototype.Re=function(t,n){var i,e;return M(n)?(i=(0,d.isNullOrUndefined)(t)?0:t,n.replace(/@/g,i)):(e=new h(n)).format(t)},t.prototype.setOptions=function(t){var n=this;n.LEt=b(b({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.fUe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.fUe=d.keyword_null},t.prototype.L0=function(){var t=this;t.dUe.dispose(),t.dUe=d.keyword_null,t.hUe&&t.hUe.dispose(),t.hUe=d.keyword_null,t.gUe&&t.gUe.dispose(),t.gUe=d.keyword_null,t.oUt&&t.oUt.dispose(),t.oUt=d.keyword_null,t.uZe.dispose(),t.uZe=d.keyword_null},t}(),n.bZe=I},6018:function(t,n,i){var e,o,r,u,c=this&&this.mJr||function(){return c=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},c.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.AZe=void 0,e=i(1376),o=i(591),r=e.mt.En,u=function(){function t(t){var n;this.LEt=t}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.DZe)||void 0===t?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i,u,c=this,a=c.LEt,s=c.yZe=(0,e.GC$)(r("div"));return s.addClass("gc-defined-column-field-item-container gc-defined-column-input-number"),a.label&&a.label.text&&((t=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-label-container"),t.appendTo(s),(n=(0,e.GC$)(r("label"))).addClass("gc-defined-column-field-label-container-label-text"),n.attr("for","gc-defined-column-input-"+a.inputId),n.appendTo(t),i=a.label.useRawContent?a.label.text:(0,o.j0)(a.label.text),n.html(i)),(u=c.zZe=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-container"),u.appendTo(s),c.ZX(),s},t.prototype.ZX=function(){var t,n,i,u=this,c=u.LEt;!1===c.visible?u.yZe.hide():u.yZe.show(),t=u.zZe,u.isDisable()&&t.addClass("gc-defined-column-disabled"),(n=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-input-container"),n.appendTo(t),(i=u.DZe=(0,o.createDCElement)("sjs-number-editor")).attr("id","gc-defined-column-input-"+c.inputId),i.attr("type","text"),i.attr("aria-disabled",u.isDisable()?"true":"false"),u.isDisable()?i.attr("disabled","true"):i.removeAttr("disabled"),c.placeholder&&i.attr("placeholder",c.placeholder),(c.label&&c.label.text||c.placeholder)&&i.attr("aria-label",c.label&&c.label.text||c.placeholder),(0,o.isNullOrUndefined)(c.defaultValue)||i.val(c.defaultValue),i.attr("min",u.yeo()),(0,o.isNumber)(c.maxValue)&&i.attr("max",c.maxValue),c.allowMinNull&&(i.attr("allow-empty",!0),i.attr("empty-value",u.yeo())),i.bind("input",(function(t){var n=t.target.value;u.isDisable()||c.onChange&&c.onChange(n,t)})),i.appendTo(n)},t.prototype.setFocus=function(){var t;this.DZe.focus()},t.prototype.setOptions=function(t){var n=this;n.L0(),n.LEt=c(c({},n.LEt),t),n.ZX()},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.zZe;t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),t.DZe.attr("aria-disabled",n?"false":"true"),n?t.DZe.removeAttr("disabled"):t.DZe.attr("disabled","true")},t.prototype.yeo=function(){var t=this;return(0,o.isNumber)(t.LEt.minValue)?t.LEt.minValue:0},t.prototype.setValue=function(t){var n=this;n.DZe.val((0,o.isNumber)(t)?t:n.yeo()),(0,o.triggerEvent)(n.DZe,"input")},t.prototype.dispose=function(){var t=this;t.L0(),t.zZe=o.keyword_null,t.yZe=o.keyword_null},t.prototype.L0=function(){var t=this;t.DZe.unbind("input"),t.DZe=o.keyword_null,t.zZe.empty()},t}(),n.AZe=u},6045:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.uto=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ato(n,"errorCorrectionLevel",[{text:"L",value:"L"},{text:"M",value:"M"},{text:"Q",value:"Q"},{text:"H",value:"H"}]),t.cto(n,"connection"),t.ato(n,"model",[{text:"2",value:2},{text:"1",value:1}]),t.ato(n,"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.ato(n,"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.rto(n,"charCode"),t.ato(n,"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.ato(n,"charset",[{text:"UTF-8",value:"UTF-8"},{text:"Shift_JIS",value:"Shift_JIS"}]),n},n}(o.Meo),n.uto=c},6114:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P,Q,Y,H,W,V,F,J,_,X,K,q,$,tt,nt,it,et,ot,rt,ut,ct,at,st,lt=this&&this.mJr||function(){return lt=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},lt.apply(this,arguments)},ft=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function dt(t,n){return Array.isArray(t)?n?t.toString():vt(t):t}function ht(t,n){return t?gt(n?"["+t+"]":t):t}function vt(t){var n=t;return Array.isArray(t)&&(n="["+t.toString()+"]"),n}function gt(t){var n=t;return t&&"["===t[0]&&"]"===t[t.length-1]&&(n=t.substring(1,t.length-1).split(",")),n}function Mt(t,n,i){var e,o,r;t.value=t.value||n.value,t.type=t.type||n.type,t.caption=t.caption||n.caption,e=t.type!==n.type,o=n.type===u.ColumnTypes.CreatedTime||n.type===u.ColumnTypes.ModifiedTime,r=t.type===u.ColumnTypes.Formula,(i=i||Object.keys(n)).forEach((function(i){if(!t.hasOwnProperty(i)){if(e){if("defaultValue"===i||"dataType"===i||"style"===i||"_"===i[0])return;if(o&&("trigger"===i||"readonly"===i))return;if(!r&&"name"===i)return}t[i]=n[i]}}))}function It(t){return A(t)||t!==u.GroupLayoutMode.outline&&t!==u.GroupLayoutMode.condensed?u.GroupLayoutMode.tabular:t}function bt(t){return"header"===t||"footer"===t?t:_}function Nt(t,n,i){Object.defineProperty(t,n,{get:function(){return this["_"+n]},set:function(t){var e,o,r,u=this["_"+n];if(u!==t){if(i)return o=(e=i(n,t,u))[0],r=e[1],this["_"+n]=o,void(r&&r());this["_"+n]=t}},configurable:!0})}function Dt(t){return"gc-defined-column-type-icon-".concat(t.toLowerCase())}function mt(t){return t&&"="===t[0]}function wt(t){return t&&t.indexOf(".")>-1}function Ct(t){return"number"==typeof t}function yt(t){return"string"==typeof t}function xt(t){return"boolean"==typeof t}function At(t,n){return Ct(t[n])}function Tt(t){return t instanceof Function}function jt(t,n){var i,e,o,r,u;if(t.collapsed)for(i=t.start+1;i<=t.end;i++)(e=n[i])?e.visible=!1:n[i]={visible:!1};else if(t.children)for(o=0,r=t.children;o<r.length;o++)jt(u=r[o],n)}function pt(t,n){var i,e,o,r,u,c=n&&n.grouping&&n.grouping.tree;if(c)for((i=t.rows)||(i=t.rows=[]),o=0,r=e=c.children;o<r.length;o++)jt(u=r[o],i)}function zt(t){var n,i,e,o,r,u;if(t)return n=t.step||[1,1],i=t.style,e=A(n[0])?1:n[0],o=A(n[1])?1:n[1],i?(r=void 0,u=void 0,Array.isArray(i)?(r=i[0],u=i[1]):r=i,{fillRowStep:e,fillRowStyle:r,blankRowStep:o,blankRowStyle:u}):void 0}function Lt(t,n,i,e){var o,r;t[n]||(t[n]={}),(o=t[n])[i]||(o[i]={}),(r=o[i]).style=e}function St(t,n,i,e){var o,r,u,c,a,s=t.JS(n,e),l=s.row,f=s.col;for(o=0,r=s.rowCount;o<r;o++)for(u=0,c=s.colCount;u<c;u++)a=t.getActualStyle(l+o,f+u,e).toJSON(),T(a)||Lt(i,l+o,f+u,a)}function Ot(t,n,i){n&&(t.oNi=!0,n.rules.forEach((function(n){n.ranges.forEach((function(n){St(t,n,i)}))})),t.oNi=!1)}function kt(t){return!!((null==t?void 0:t.gp)||(null==t?void 0:t.cb)===o.OpenSaveFileType.excel&&(null==t?void 0:t.saveAsView)&&!1!==(null==t?void 0:t.includeBindingSource))}function Et(t,n){var i,e,o,r,u,c,a,s,l,f,d,h,v,g=n.data;if(g&&(i=t.getDataView())&&(e=t.Mf,o=g.dataTable||(g.dataTable={}),r=e.getRowCount(),c=(u=i.getColumnInfos()).map((function(t,n){var i=!A(null==t?void 0:t.showNullAs),e=!A(null==t?void 0:t.showEmptyAs);return i||e?{col:n,showNullAs:i?""+t.showNullAs:_,showEmptyAs:e?""+t.showEmptyAs:_}:_})).filter((function(t){return!!t})),0!==c.length))for(a=0;a<r;a++)if(!t.zDi(a))for(s=0,l=c;s<l.length;s++)f=l[s],d=e.getValue(a,f.col),h=void 0,A(d)?h=f.showNullAs:""===d&&(h=f.showEmptyAs),A(h)||(o[a]||(o[a]={}),(v=o[a][f.col]||(o[a][f.col]={})).value=h)}function Zt(t){return t.NMi}function Ut(t,n,i){return function(n){t.repaint(),i&&i()}}function Gt(t){var n,i,e,o,r,u,c=t.type,a=t.comparisonOperator;switch(At(l.ComparisonOperators,a)&&(a=l.ComparisonOperators[a]),c){case"number":i=t.value1,e=t.value2,o=t.isIntegerValue,n=(0,s.createNumberValidator)(a,i,e,o);break;case"date":i=t.value1,e=t.value2,n=(0,s.createDateValidator)(a,i,e);break;case"time":i=t.value1,e=t.value2,n=(0,s.createTimeValidator)(a,i,e);break;case"textLength":i=t.value1,e=t.value2,n=(0,s.createTextLengthValidator)(a,i,e);break;case"formula":r=t.formula,n=(0,s.createFormulaValidator)(r);break;case"formulaList":r=t.formula,n=(0,s.createFormulaListValidator)(r);break;case"list":u=t.source,n=(0,s.createListValidator)(u)}return n}function Bt(t,n){var i,e=n.errorMessage,o=n.errorStyle,r=n.errorTitle,u=n.highlightStyle,c=n.ignoreBlank,a=n.inCellDropdown,l=n.inputMessage,f=n.inputTitle,d=n.showErrorMessage,h=n.showInputMessage;A(e)||t.errorMessage(e),At(s.ErrorStyle,o)&&t.errorStyle(s.ErrorStyle[o]),A(r)||t.errorTitle(r),A(u)||(i={},At(s.HighlightType,u.type)&&(i.type=s.HighlightType[u.type]),A(u.color)||(i.color=u.color),At(s.HighlightPosition,u.position)&&(i.position=s.HighlightPosition[u.position]),A(u.image)||(i.image=u.image),t.highlightStyle(i)),A(c)||t.ignoreBlank(c),A(a)||t.inCellDropdown(a),A(l)||t.inputMessage(l),A(f)||t.inputTitle(f),A(d)||t.showErrorMessage(d),A(h)||t.showInputMessage(h)}function Rt(t){var n=Gt(t);return Bt(n,t),n}function Pt(t,n,i){var e,r,u,c,a,s,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P,Q,Y,H,W,V,F,J,_,X,K,q,$,tt,nt,it,et,ot=n.ruleType,rt=n.style,ut=rt;switch(rt&&(rt instanceof o.Style||(ut=new o.Style(rt))),ot){case"cellValueRule":r=n.comparisonOperator,u=n.value1,c=n.value2,a=n.comparisionOperator,A(r)&&(r=a),At(l.ComparisonOperators,r)&&(r=l.ComparisonOperators[r]),e=t.addCellValueRule(r,u,c,ut,i);break;case"specificTextRule":r=n.comparisonOperator,s=n.text,a=n.comparisionOperator,A(r)&&(r=a),At(l.TextComparisonOperators,r)&&(r=l.TextComparisonOperators[r]),e=t.addSpecificTextRule(r,s,ut,i);break;case"formulaRule":f=n.formula,e=t.addFormulaRule(f,ut,i);break;case"dateOccurringRule":d=n.type,At(l.DateOccurringType,d)&&(d=l.DateOccurringType[d]),e=t.addDateOccurringRule(d,ut,i);break;case"top10Rule":d=n.type,h=n.rank,v=n.isPercent,At(l.Top10ConditionType,d)&&(d=l.Top10ConditionType[d]),e=t.addTop10Rule(d,h,ut,i,v);break;case"uniqueRule":e=t.addUniqueRule(ut,i);break;case"duplicateRule":e=t.addDuplicateRule(ut,i);break;case"averageRule":d=n.type,At(l.AverageConditionType,d)&&(d=l.AverageConditionType[d]),e=t.addAverageRule(d,ut,i);break;case"twoScaleRule":g=n.minType,M=n.minValue,I=n.minColor,b=n.maxType,N=n.maxValue,D=n.maxColor,At(l.ScaleValueType,g)&&(g=l.ScaleValueType[g]),At(l.ScaleValueType,b)&&(b=l.ScaleValueType[b]),e=t.add2ScaleRule(g,M,I,b,N,D,i);break;case"threeScaleRule":g=n.minType,M=n.minValue,I=n.minColor,m=n.midType,w=n.midValue,C=n.midColor,b=n.maxType,N=n.maxValue,D=n.maxColor,At(l.ScaleValueType,g)&&(g=l.ScaleValueType[g]),At(l.ScaleValueType,m)&&(m=l.ScaleValueType[m]),At(l.ScaleValueType,b)&&(b=l.ScaleValueType[b]),e=t.add3ScaleRule(g,M,I,m,w,C,b,N,D,i);break;case"dataBarRule":g=n.minType,M=n.minValue,b=n.maxType,N=n.maxValue,y=n.color,x=n.gradient,T=n.showBarOnly,j=n.showBorder,p=n.borderColor,z=n.barDirection,L=n.negativeData,At(l.ScaleValueType,g)&&(g=l.ScaleValueType[g]),At(l.ScaleValueType,b)&&(b=l.ScaleValueType[b]),e=t.addDataBarRule(g,M,b,N,y,i),xt(x)&&e.gradient(x),xt(T)&&e.showBarOnly(T),xt(j)&&e.showBorder(j),yt(p)&&e.borderColor(p),At(l.BarDirection,z)&&e.dataBarDirection(l.BarDirection[z]),L&&(S=L.negativeFillColor,O=L.useNegativeFillColor,k=L.negativeBorderColor,E=L.useNegativeBorderColor,Z=L.axisColor,U=L.axisPosition,yt(S)&&e.negativeFillColor(S),xt(O)&&e.useNegativeFillColor(O),yt(k)&&e.negativeBorderColor(k),xt(E)&&e.useNegativeBorderColor(E),yt(Z)&&e.axisColor(Z),At(l.DataBarAxisPosition,U)&&e.axisPosition(l.DataBarAxisPosition[U]));break;case"iconSetRule":if(G=n.iconSetType,B=n.reverseIconOrder,R=n.showIconOnly,P=n.icons,Q=n.iconCriteria,At(l.IconSetType,G)&&(G=l.IconSetType[G]),e=t.addIconSetRule(G,i),xt(B)&&e.reverseIconOrder(B),xt(R)&&e.showIconOnly(R),P){for(Y=e.icons(),H=0;H<P.length;H++)V=(W=P[H]).iconSetType,F=W.iconIndex,At(l.IconSetType,V)&&(V=l.IconSetType[V]),Y[H]={iconSetType:V,iconIndex:F};e.icons(Y)}if(Q){for(J=e.iconCriteria(),H=0;H<Q.length;H++)X=(_=Q[H]).isGreaterThanOrEqualTo,K=_.iconValueType,q=_.iconValue,At(l.IconValueType,K)&&(K=l.IconValueType[K]),J[H]=new l.IconCriterion(X,K,q);e.iconCriteria(J)}break;case"sparklineRule":$=n.sparklineType,tt=n.sparklineOptions,nt=n.showSparklineOnly,(e=t.addSparklineRule($,tt,i))&&xt(nt)&&e.showSparklineOnly(nt)}e&&(it=n.priority,et=n.stopIfTrue,Ct(it)&&e.priority(it),xt(et)&&e.stopIfTrue(et))}function Qt(t,n){return t.filter((function(t){return t.name===n}))[0]}function Yt(t){return!A(t)&&!A(t.icons)&&t.icons.length>0}function Ht(t){for(var n=[];t>0;)n[t-=1]=t;return n}function Wt(t,n){var i,e,o,r;if(A(t))return!1;for(L(t)||(t=[t]),i=0;i<t.length;i++)for(e=t[i],o=0;o<n.length;o++)if(r=n[o],e.field===r.value&&r.isGroup)return!0;return!1}function Vt(t){["columnStart","columnEnd","rowStart","rowEnd","repeatColumnStart","repeatColumnEnd","repeatRowStart","repeatRowEnd"].forEach((function(n){t[n]=function(){return-1}}))}function Ft(t,n){!1===n?n=o.SheetTabVisible.hidden:!0===n&&(n=o.SheetTabVisible.visible),void 0!==n&&t.visible(n)}function Jt(t){return t instanceof st}function _t(t){return t.ctrlKey}function Xt(t){return t.shiftKey}function Kt(t){return t.metaKey}function qt(t){var n,i=o.mt.Qf()?Kt(t):_t(t),e=Xt(t);return{isCtrl:i&&!e,isShift:e&&!i}}function $t(t,n,i){return i.isPinnedRow(n)}function tn(t,n,i){return i.isNewRow(n)?0:i.isInsertedRow(n)?1:i.isUpdatedRow(n)?2:-1}function nn(t,n,i){return i.hasWarning(n)}function en(){var t="TableSheet"+st._ID;return st._ID++,t}function on(t){for(var n=en(),i=0;i<t.length;)t[i].name()!==n?i++:(n=en(),i=0);return n}Object.defineProperty(n,"__esModule",{value:!0}),n.BuiltInRowActions=n.TableSheet=n.ActionType=n.copyOriginalColumnPropertiesToCurrentColumn=n.hze=n.tIi=n.getSR=void 0,e=i(7234),o=i(1376),r=i(9131),u=i(447),c=i(6277),a=i(419),s=i(4133),l=i(8333),f=i(7373),d=i(806),h=i(4475),v=i(1434),g=i(7621),M=i(2121),I=i(3789),b=i(2742),N=i(3182),D=i(2221),m=i(2364),w=new e.Common.ResourceManager(a.SR,"TableSheet"),n.getSR=w.getResource.bind(w),C=e.Common.lt.tv,y=e.Common.lt,x=o.mt.j,A=y.ht,T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R0aD0iMjRweCIgZmlsbD0iIzAwMDAwMCI+PGcgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6Ii8+PHBhdGggZD0iTTAgMGgyNHYyNEgwVjB6IiBvcGFjaXR5PSIuODciLz48L2c+PHBhdGggZD0iTTIwIDhoLTNWNi4yMWMwLTIuNjEtMS45MS00Ljk0LTQuNTEtNS4xOUM5LjUxLjc0IDcgMy4wOCA3IDZ2Mkg0djE0aDE2Vjh6bS04IDljLTEuMSAwLTItLjktMi0ycy45LTIgMi0yIDIgLjkgMiAyLS45IDItMiAyek05IDhWNmMwLTEuNjYgMS4zNC0zIDMtM3MzIDEuMzQgMyAzdjJIOXoiLz48L3N2Zz4=",J="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTExLjY1IDQ0IDMuMjUtMTQuMDVMNCAyMC41bDE0LjQtMS4yNUwyNCA2bDUuNiAxMy4yNUw0NCAyMC41bC0xMC45IDkuNDVMMzYuMzUgNDQgMjQgMzYuNTVaIi8+PC9zdmc+",_=void 0,X=null,$=(q=".gcSheetInternal")+(K=".tableSheet"),tt="gc.spread.contextMenu.defineColumn",nt="gc.spread.contextMenu.insertColumns",it="gc.spread.defineColumn.submit",et=o.util.Z0,ot=o.util.V0,n.tIi=dt,n.hze=ht,n.copyOriginalColumnPropertiesToCurrentColumn=Mt,rt=function(){},ut={},n.BuiltInRowActions=ut,ct={name:O,icons:[R,Q,Y,H,P]},o.Events.RowOperation="RowOperation",function(t){t[t.remove=0]="remove",t[t.save=1]="save",t[t.reset=2]="reset",t[t.addNewEmptyRow=3]="addNewEmptyRow"}(at=n.ActionType||(n.ActionType={})),st=function(){function t(t,n,i){this.X$={},this._gi=o.SheetType.tableSheet,this.uNi=0,this.jIi=0,this.cNi=[[]],this.x0r=this.getColumnIndexInTable;var e=this;e.assignId(),this.qni=new D.UndoHelper(this),e.Mf=new N.OverWriteWorkSheet(t||en(),this,this.qni),e.Hc(n,i)}return t.prototype.Iwt=function(t,n,i){var e,o,r,u,c=n.abt.getDataView(),a=c&&c.gLt,s=this.getColumnIndexInTable(n.ubt),l=s,f=c.getColumnInfos();for(n.sbt&&(l=this.getColumnIndexInTable(n.sbt)),e=s;e<=l;e++)o=-1===e?"*":f[e].value,a._Et(t,o,i);if(r=this.rNi,i)this.rNi.push(n);else for(u=0;u<r.length;u++)r[u]===n&&(r.splice(u,1),u--)},t.prototype.startRow=function(){return 0},t.prototype.startColumn=function(){return 0},t.prototype.endRow=function(){return this.Mf.getRowCount()-(this.options.allowAddNew?2:1)},t.prototype.endColumn=function(){return this.Mf.getColumnCount()-1},t.prototype.hasTotalsRow=function(){return!1},t.prototype.hasHeadersRow=function(){return!1},t.prototype.tableName=function(){return this.name()},t.prototype.source=function(){return this.Mf.Uw()},t.prototype.getColumnName=function(t,n){var i=this.Mf,e=i.getDataSource(),o=e.kve(t);return o?dt(o.caption,n)||o.value:null},t.prototype.getColumnIndexInTable=function(t){var n,i=this.Mf,e=i.getDataSource(),o=e.getColumnInfos();for(n=o.length-1;n>=0;n--)if(t===this.getColumnName(n)||t===this.getColumnName(n,!0))return n;return-1},t.prototype.showFooter=function(t){return!1},t.prototype.dataRange=function(){var t=this,n=this.Mf.getRowCount();return t.options.allowAddNew&&n--,(0,o.Ec)(0,0,n,t.endColumn()+1)},t.prototype.headerIndex=function(){return 0},t.prototype.cSt=function(t,n){var i,e;for(null!==t&&(t=x(t)),i=0;i<this.Tx;i++)if(i!==n&&t===(e=this.getColumnName(i)))return!0;return!1},t.prototype.Hc=function(t,n){var i=this,e=i.Mf;e.$L.push({tF:function(t,n){var o,r,u,c,a,s;return void 0===n&&(n={}),o=1,r=i.keo(),u=n.spacingIndex,c=n.isAfter,(0,v.isGroupOutlineCondensedLayout)(r)&&(o=0),a=S,c&&(s=e.ncr&&e.ncr(t,u,-1,c))&&"number"==typeof s.level&&(a=s.level+1),i.sMi(t,a,o,u,c)}}),i.rNi=[],this.suspendPaint(),i.aNi(),i.setDefaultRowHeight(30),i.setDefaultRowHeight(30,o.SheetArea.colHeader),e.setRowCount(0),e.setColumnCount(0),e.zwt("@","=A1",0,0,!0),e.zwt("AutoId","=MAX(OFFSET($A$1,0,COLUMN()-1,ROW()-1,1))+1",0,0,!0),(0,a.overrideProperties)(i),(0,a.overrideMethods)(i),i.v7(),t&&e.setDataSource(t),i.Zp(n),i.sNi(),i.MNi(),i.INi=new v.Grouping,i.rowActionOptions(i.gNi),i.applyTableTheme(r.TableThemes.light2),i.leV(),this.resumePaint()},t.prototype.leV=function(){},t.prototype.reset=function(){var t,n,i=this,e=i.Mf,o=i.UMi;i.Boo(),(n=i.getDataView())&&(null===(t=n.PEe)||void 0===t||t.call(n),i.rze()),e&&(e.sF(),e.zw()),o&&o.detach(),i.E3(),i.Hc(),i.lMi=_,i.jFt=_,i.jIi=0,i.uNi=0,i.zoo(),i.$Dr({type:"setTableSheetJSON"})},t.prototype.hg=function(t){this.Mf.hg(t)},t.prototype.L0=function(t,n){var i,e,o=this.Mf;if(t&&this.z2i(!0),this.wze&&this.wze.close(),o.L0(t,n),t)for(i in this.E3(),this.UMi&&this.UMi.detach(),this.X$)this.X$[i]&&(e=this.X$[i]).onDestroy(!0)},t.prototype.Zg=function(t){this.Mf.Zg(t)},t.prototype.setAccessibilityPrefixSuffixContent=function(t,n){this.Mf.setAccessibilityPrefixSuffixContent(t,n)},t.prototype.pM=function(t){this.Mf.pM(t),this.NNi()},t.prototype.getParent=function(){return this.Mf.getParent()},t.prototype.name=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.name();return null===(i=null===(n=this.getParent())||void 0===n?void 0:n.suspendOp)||void 0===i||i.call(n),r=c.name.apply(c,arguments),null===(o=null===(e=this.getParent())||void 0===e?void 0:e.resumeOp)||void 0===o||o.call(e),a!==(u=c.name())&&this.$Dr({type:"setSheetTabName",value:u}),r},t.prototype.visible=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.visible();return null===(i=null===(n=this.getParent())||void 0===n?void 0:n.suspendOp)||void 0===i||i.call(n),r=c.visible.apply(c,arguments),null===(o=null===(e=this.getParent())||void 0===e?void 0:e.resumeOp)||void 0===o||o.call(e),a!==(u=c.visible())&&this.$Dr({type:"setSheetTabVisible",visible:u}),r},t.prototype.b2=function(t,n){var i,e,o,r,u,c,a;return A(t)?this.Mf.b2():(c=(u=this.Mf.b2())!==t,null===(e=null===(i=this.getParent())||void 0===i?void 0:i.suspendOp)||void 0===e||e.call(i),a=this.Mf.b2(t,n),null===(r=null===(o=this.getParent())||void 0===o?void 0:o.resumeOp)||void 0===r||r.call(o),c&&this.$Dr({type:"setSheetTabSelected",value:t}),a)},t.prototype.ow=function(){this.Mf.ow()},t.prototype.aw=function(){this.Mf.aw()},t.prototype.tw=function(){this.Mf.tw()},t.prototype.Wb=function(t,n){this.Mf.Wb(t,n)},t.prototype.Kb=function(t){this.Mf.Kb(t)},t.prototype.Fb=function(t,n){this.Mf.Fb(t,n)},t.prototype.onHorizontalDockScroll=function(t,n){this.Mf.onHorizontalDockScroll(t,n)},t.prototype.Gb=function(t){this.Mf.Gb(t)},t.prototype.WC=function(t,n,i){this.Mf.WC(t,n,i)},t.prototype.$C=function(t){this.Mf.$C(t)},t.prototype.QC=function(t,n,i){this.Mf.QC(t,n,i)},t.prototype.Cg=function(){this.Mf.Cg()},t.prototype.suspendPaint=function(){this.Mf.suspendPaint()},t.prototype.resumePaint=function(){this.BOo(),this.Mf.resumePaint()},t.prototype.isPaintSuspended=function(){return this.Mf.isPaintSuspended()},t.prototype.bind=function(t,n,i){this.Mf.bind(t,n,i)},t.prototype.unbind=function(t,n){this.Mf.unbind(t,n)},t.prototype.unbindAll=function(){this.Mf.unbindAll()},t.prototype.BOo=function(){var t=this.Mf.getDataSource();t&&this.lNi(t.visibleLength())},t.prototype.D3=function(t,n,i){this.Mf.D3(t+$,n,i)},t.prototype._3=function(t,n){this.Mf._3(t+$,n)},t.prototype.E3=function(){this.Mf.E3(),this.Mf.unbind($)},t.prototype.suspendEvent=function(){this.Mf.suspendEvent()},t.prototype.resumeEvent=function(){this.Mf.resumeEvent()},t.prototype.isEventSuspended=function(){return this.Mf.isEventSuspended()},t.prototype.bC=function(){this.Mf.bC()},t.prototype.ki=function(t,n,i){this.Mf.ki(t,n,i)},t.prototype.isEditing=function(){return this.Mf.isEditing()},t.prototype.ol=function(t,n,i,e){return this.Mf.ol(t,n,i,e)},t.prototype.currentTheme=function(t){var n,i,e=this.Mf,o=this;return 0===arguments.length?e.currentTheme():(n=o.THr({type:"setCurrentTheme"}),i=e.currentTheme.apply(e,arguments),o.$Dr({type:"setCurrentTheme",currentTheme:e.currentTheme()},n),i)},t.prototype.FM=function(){(0,n.getSR)(),this.Mf.FM()},t.prototype.DNi=function(t){var n,i=t||this.gNi;return z(i).map((function(t){return delete t.subActionOptions,t}))},t.prototype.fNi=function(t,n){var i,e,o,r,u,c,a,s=[O,k,E,Z,U,G,B],l=[R,P,Q,Y,H],f=["ROW_ACTION_PIN_ROW","ROW_ACTION_WARNING_INFO","ROW_ACTION_NEW_ROW","ROW_ACTION_INSERTED_ROW","ROW_ACTION_UPDATED_ROW"],d=n?f:l,h=n?l:f;if(L(t))for(i=0;i<t.length;i++)if(o=(e=t[i]).name,r=e.icons,s.indexOf(o)>-1&&r)for(u=0;u<r.length;u++)"string"==typeof(c=r[u])&&(a=d.indexOf(c))>-1&&(r[u]=h[a]);return t},t.prototype.dNi=function(t,n){var i,e,r,u,c,a,s,l=this,f=l.Mf;return t&&t.saveAsView?(n.colHeaderData.dataTable||(n.colHeaderData.dataTable={}),St(f,(0,o.Ec)(0,0,f.getRowCount(1),f.getColumnCount(1)),n.colHeaderData.dataTable,1),l.iAi(n),n.data.dataTable||(n.data.dataTable={}),Ot(f,n.conditionalFormats,n.data.dataTable),delete n.conditionalFormats,delete n.validations):A(n)||l.iAi(n),i={},e=l.getDataView(),r=t&&t.gp,e&&(i.dataView={name:e.name,tableName:e.gLt.name},i.grouping=l.INi.toJSON(),r&&(i.grouping.groupInfos=C(l.lMi))),u=f.rowFilter(),i.rowFilter=u.toJSON(),r&&pt(n,i),i.options=l.kOo(t),i.rowActionOptions=l.fNi(l.DNi()),l.hl&&(i.currentTheme=l.hl.toJSON()),t&&t.cb===o.OpenSaveFileType.excel&&n&&(c=zt(i.options.alternatingRowOptions),(a=i.currentTheme)&&(a.tKr=!0,(!c||c.fillRowStep<=0&&c.blankRowStep<=0)&&(c.fillRowStep=X,c.fillRowStyle=X,c.blankRowStep=X,c.blankRowStyle=X),a.firstRowStripSize=c.fillRowStep,a.firstRowStripStyle=c.fillRowStyle,a.secondRowStripSize=c.blankRowStep,a.secondRowStripStyle=c.blankRowStyle)),s=f.defaults,i.defaults={rowHeight:s.rowHeight,colHeaderRowHeight:s.colHeaderRowHeight},i.printInfo=f.printInfo&&f.printInfo().toJSON(),i.freeHeaderArea=l.hNi,n&&(n.sheetType=l._gi),i.parameter=l.o1e,i},t.prototype.toJSON=function(t){var n,i,e,r=this,u=r.Mf;return u.options.sheetTabColor=this.options.sheetTabColor,t&&t.cb===o.OpenSaveFileType.excel&&(r.lno=!0),i=(null==t?void 0:t.cb)===o.FileType.excel&&(null===(n=null==t?void 0:t.gMo)||void 0===n?void 0:n.saveAsView)?lt(lt({},t),{saveAsView:t.gMo.saveAsView}):t,e=u.toJSON(i),kt(t)&&Et(r,e),e.addition=r.dNi(t,e),(e=r.Keo(e,t)).sheetType=this._gi,t&&t.cb===o.OpenSaveFileType.excel&&(r.lno=_),(null==t?void 0:t.isServer)&&(e.__ID__=r.jKe()),e},t.prototype.kOo=function(t){var n,i,e,o,r,u,c=this,a=!0===(null==t?void 0:t.isServer),s=c.options,l={};return l.allowAddNew=s.allowAddNew,s.hasOwnProperty("defaultStackRowHeight")&&(l.defaultStackRowHeight=s.defaultStackRowHeight),s.hasOwnProperty("menuItemVisibility")&&(l.menuItemVisibility=s.menuItemVisibility),l.sheetTabColor=s.sheetTabColor,(n=s.alternatingRowOptions)?(i=n.style,e=void 0,Array.isArray(i)?e=[o=i[0]&&i[0].toJSON(),r=i[1]&&i[1].toJSON()]:i&&(e=i.toJSON()),l.alternatingRowOptions={step:n.step,style:e}):null===n&&(l.alternatingRowOptions=null),s.hasOwnProperty("isDesignMode")&&!a&&(l.isDesignMode=s.isDesignMode),s.hasOwnProperty("showRowNumber")&&(l.showRowNumber=s.showRowNumber),s.hasOwnProperty("enableDefineColumn")&&(l.enableDefineColumn=s.enableDefineColumn),s.hasOwnProperty("defineColumnCommand")&&(l.defineColumnCommand=s.defineColumnCommand),s.hasOwnProperty("submitDefineColumnCommand")&&(l.submitDefineColumnCommand=s.submitDefineColumnCommand),s.hasOwnProperty("columnTypeItems")&&(l.columnTypeItems=s.columnTypeItems),s.hasOwnProperty("groupLayout")&&(u=s.groupLayout)&&["mode","position"].forEach((function(t){var n=u[t];u.hasOwnProperty(t)&&(l.groupLayout||(l.groupLayout={}),l.groupLayout[t]=n)})),s.hasOwnProperty("allowSorts")&&(l.allowSorts=s.allowSorts),l},t.prototype.TOo=function(t){var n,i=this,e=i.getDefaultOptions();i.options.allowAddNew=t.allowAddNew,i.options.defaultStackRowHeight=t.defaultStackRowHeight,i.options.menuItemVisibility=t.menuItemVisibility,i.options.isDesignMode=null!==(n=t.isDesignMode)&&void 0!==n?n:i.options.isDesignMode,i.options.sheetTabColor=t.sheetTabColor,i.options.showRowNumber=t.showRowNumber,i.options.enableDefineColumn=t.enableDefineColumn,i.options.defineColumnCommand=A(t.defineColumnCommand)?e.defineColumnCommand:t.defineColumnCommand,i.options.submitDefineColumnCommand=A(t.submitDefineColumnCommand)?e.submitDefineColumnCommand:t.submitDefineColumnCommand,i.options.columnTypeItems=A(t.columnTypeItems)?e.columnTypeItems:t.columnTypeItems,i.options.groupLayout=A(t.groupLayout)?e.groupLayout:t.groupLayout,i.options.allowSorts=A(t.allowSorts)?e.allowSorts:t.allowSorts,i.bNi(t.alternatingRowOptions,t.alternatingRowStyles)},t.prototype.Keo=function(t,n){var i,e,u,c=this,a=c.Mf;return n&&n.cb===o.OpenSaveFileType.excel&&c.Teo(!0)?(i=new o.Worksheet(c.Mf.name()),(e=t.addition)&&!A(e.currentTheme)&&((u=new r.TableTheme).fromJSON(e.currentTheme),i.suspendPaint(),c.qeo(i,C(c.options.alternatingRowOptions),u),i.resumeEvent()),delete t.spacing,i.fromJSON(t,!1,_,_,!0),c.$eo()?c.Qto(i,a):c.Yto(i,a),c.Wto(i),(t=i.toJSON(n)).addition=e,t):t},t.prototype.Wto=function(t){var n,i,e,o=this,r=o.getDataView().getColumnInfos();for(n=0;n<r.length;n++)if(!1!==(i=r[n]).visible){(e=t.getStyle(-1,n)).textIndent=o.lMi.length,t.setStyle(-1,n,e);break}},t.prototype.Hto=function(t){var n,i,e,r=this,u=r.getDataView(),c=u.getColumnInfos(),a=new o.Style;return a.backColor="white",i=(n=t.Ut.Vsr).Ysr,{columnInfos:c,spacingStyle:a,rows:e=Object.keys(i).reverse()}},t.prototype.Yto=function(t,n){var i,e,r,u,c,a,s,l,f,d,h,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L,S,O,k,E,Z,U;if(t.Csr)for(r=(e=(i=this).Hto(n)).columnInfos,u=e.spacingStyle,a=0,s=c=e.rows;a<s.length;a++){if(l=s[a],f=Number(l),(d=2*n.Rsr(f,!0))>0)for(t.addRows(f+1,d),h=0;h<d;h+=2)if(g=Math.floor(h/2),I=(M=f+h+1)+1,b=n.Xsr(f,h,!0)/2,t.setRowHeight(M,b),t.setRowHeight(I,b),N=n.ncr(f,g,-1,!0),!A(N))if(D={rowSpacingIndex:g,isAfterRowSpacing:!0},N.isSpacing){for(m=n.getActualStyle(f,-1,_,_,D),u.borderTop=m.borderTop,w=0;w<r.length;w++)t.setStyle(M,w,u);t.setRowHeight(M,2*b),t.deleteRows(I,1)}else for(m=n.getActualStyle(f,-1,_,_,D),w=0;w<r.length;w++)(C=m.clone()).borderBottom=X,t.setStyle(M,w,C),(y=m.clone()).borderTop=X,t.setStyle(I,w,y),x=n.ncr(f,g,w,!0),A(x)||(T=n.Jt.qt(f,w,_,_,D),(j=(0,v.composeHeaderStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(j,o.HorizontalAlign.right),p=x.caption,A(p)||(j.borderBottom=X,t.setStyle(M,w,j),t.setValue(M,w,x.caption)),(z=(0,v.composeValueStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(z,o.HorizontalAlign.right),L=x.value,A(L)||(z.borderTop=X,t.setStyle(I,w,z),t.setValue(I,w,x.value)));if((d=2*n.Rsr(f))>0)for(t.addRows(f,d),h=0;h<d;h+=2)if(g=Math.floor(h/2),I=(M=f+h)+1,b=n.Xsr(f,g)/2,t.setRowHeight(M,b),t.setRowHeight(I,b),N=n.ncr(f,g,-1))for(D={rowSpacingIndex:g,isAfterRowSpacing:!1},m=n.getActualStyle(f,-1,_,_,D),S=!1,w=0;w<r.length;w++)(C=m.clone()).borderBottom=X,t.setStyle(M,w,C),(y=m.clone()).borderTop=X,t.setStyle(I,w,y),O=!S&&!1!==r[w].visible,T=n.Jt.qt(f,w,_,_,D),z=void 0,O&&(S=!0,j=(0,v.composeHeaderStyle)(N.groupLevelOptions,T),k=N.field,A(k)||(j.textIndent=N.level,j.borderBottom=X,t.setStyle(M,w,j),t.setValue(M,w,N.field)),z=(0,v.composeValueStyle)(N.groupLevelOptions,T),E=N.value,A(E)||(z.textIndent=N.level,z.borderTop=X,t.setStyle(I,w,z),t.setValue(I,w,N.value))),x=n.ncr(f,g,w),A(x)||O||((Z=(0,v.composeHeaderStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(Z,o.HorizontalAlign.right),p=x.caption,A(p)||(Z.borderBottom=X,t.setStyle(M,w,Z),t.setValue(M,w,x.caption)),(U=(0,v.composeValueStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(U,o.HorizontalAlign.right),L=x.value,A(L)||(U.borderTop=X,t.setStyle(I,w,U),t.setValue(I,w,x.value)))}},t.prototype.Qto=function(t,n){var i,e,r,u,c,a,s,l,f,d,h,g,M,I,b,N,D,m,w,C,y,x,T,j,p;if(t.Csr)for(r=(e=(i=this).Hto(n)).columnInfos,u=e.spacingStyle,a=0,s=c=e.rows;a<s.length;a++){if(l=s[a],f=Number(l),(d=n.Rsr(f,!0))>0)for(t.addRows(f+1,d),h=0;h<d;h++)if(g=f+h+1,M=n.Xsr(f,h,!0),t.setRowHeight(g,M),I=n.ncr(f,h,-1,!0),!A(I))if(b={rowSpacingIndex:h,isAfterRowSpacing:!0},I.isSpacing)for(N=n.getActualStyle(f,-1,_,_,b),u.borderTop=N.borderTop,D=0;D<r.length;D++)t.setStyle(g,D,u);else for(N=n.getActualStyle(f,-1,_,_,b),D=0;D<r.length;D++)t.setStyle(g,D,N),m=n.ncr(f,h,D,!0),A(m)||(w=n.Jt.qt(f,D,_,_,b),(C=(0,v.composeValueStyle)(m,w)).hAlign=(0,v.getHorizontalAlign)(C,o.HorizontalAlign.right),y=(0,v.getValueFromCondensed)(m),A(y)||(t.setStyle(g,D,C),t.setValue(g,D,y)));if((d=n.Rsr(f))>0)for(t.addRows(f,d),h=0;h<d;h++)if(g=f+h,M=n.Xsr(f,h),t.setRowHeight(g,M),I=n.ncr(f,h,-1))for(b={rowSpacingIndex:h,isAfterRowSpacing:!1},N=n.getActualStyle(f,-1,_,_,b),x=!1,D=0;D<r.length;D++)t.setStyle(g,D,N),T=!x&&!1!==r[D].visible,w=n.Jt.qt(f,D,_,_,b),C=void 0,T&&(x=!0,C=(0,v.composeValueStyle)(I.groupLevelOptions,w),j=(0,v.getGroupHeaderValueFromCondensed)(I),A(j)||(C&&(C.textIndent=I.level,t.setStyle(g,D,C)),t.setValue(g,D,j))),m=n.ncr(f,h,D),A(m)||T||((p=(0,v.composeValueStyle)(m,w)).hAlign=(0,v.getHorizontalAlign)(p,o.HorizontalAlign.right),y=(0,v.getValueFromCondensed)(m),A(y)||(t.setStyle(g,D,p),t.setValue(g,D,y)))}},t.prototype.TNi=function(t){var n,i,e,o,u,c,a,s,l,f,d;if(t){if(i=(n=this).Mf,e=t.options,A(t.currentTheme)||((o=new r.TableTheme).fromJSON(t.currentTheme),n.applyTableTheme(o)),n.TOo(e),A(t.actionColumn)||n.actionColumn.fromJSON(t.actionColumn),n.rowActionOptions(n.fNi(t.rowActionOptions,!0)),u=i.defaults,(c=t.defaults)&&(u.rowHeight=c.rowHeight,u.colHeaderRowHeight=c.colHeaderRowHeight),n.DOo(t.printInfo),a=t.stateRules)for(s=0,l=a;s<l.length;s++)(f=l[s]).isRow?n.addRowStateRule(f.state,f.style):n.addColumnStateRule(f.state,f.style);(d=t.freeHeaderArea)&&n.applyFreeHeaderArea(d),n.o1e=t.parameter}},t.prototype.IMo=function(t,n){var i,e,r,u,c,a,s,l=this.Mf;t.theme&&("string"!=typeof(i=t.theme)&&i?(e=n&&n.noSchema,r="_themeColor",u="_name",(c=i.themeColor||i[r])&&((a=new o.ColorScheme(c.name||c[u])).fromJSON(c,e),s=i.font,i=new o.Theme(i.name||i.Zc,a,i.headingFont||i.Aee,i.bodyFont||i.See),s&&i.font().fromJSON(s)),l.currentTheme(i)):"string"==typeof i&&l.currentTheme(i))},t.prototype.DOo=function(t){var n,e,o=this,r=o.Mf;r.printInfo&&t&&((e=new((n=i(5065)).PrintInfo)).fromJSON(t),r.printInfo(e))},t.prototype.fromJSON=function(t,n,i,e,u){var c,a,s,l,f,d,h,v,g,M,I,b,N=this,D=N.Mf;t.__ID__&&this.UKn(t.__ID__),c=e&&e.gp,a=e&&e.sb,s=e&&e.cb,f=(l=t.addition).options,c||a&&s===o.OpenSaveFileType.excel?(a&&s===o.OpenSaveFileType.excel&&(A(l.currentTheme)||((d=new r.TableTheme).fromJSON(l.currentTheme),N.applyTableTheme(d)),f&&(N.options.sheetTabColor=f.sheetTabColor)),c&&(A(l.currentTheme)||((d=new r.TableTheme).fromJSON(l.currentTheme),N.applyTableTheme(d)),N.options||(N.options={}),N.bNi(f.alternatingRowOptions,f.alternatingRowStyles),l.grouping&&(l.grouping.tree&&N.INi.fromJSON(D,l.grouping,!0),l.grouping.groupInfos&&N.Vto(l.grouping.groupInfos)),f.groupLayout&&N.Fto(f.groupLayout),N.options.allowAddNew=!1),t.rowFilter=_,D.fromJSON(t,n,i,e,u),c&&(l.options.showRowNumber?(h=1,D.setColumnCount(h,o.SheetArea.rowHeader),D.setColumnVisible(0,!0,o.SheetArea.rowHeader),D.setColumnWidth(0,D.defaults.rowHeaderColWidth,o.SheetArea.rowHeader)):(D.setColumnCount(0,o.SheetArea.rowHeader),1!==(v=D.printInfo()).showRowHeader()&&v.showRowHeader(1)))):a&&s===o.OpenSaveFileType.sjs?(D.ub(t.name+"",!0),D.b2(t.isSelected),D.g8(t.zoomFactor||1),N.IMo(t,i),N.TNi(l),N.ANi(l)):(D.ub(t.name+"",!0),D.b2(t.isSelected),D.g8(t.zoomFactor||1),Ft(D,t.visible),N.IMo(t,i),N.TNi(l),g=l&&l.dataView,M=D.parent&&D.parent.dataManager(),(b=(I=g&&M.tables[g.tableName])&&I.views[g.name])&&N.kTi(b,!1))},t.prototype.ANi=function(t,n){var i=this,e=i.Mf,o=t.dataView,r=e.parent,u=r.dataManager(),c=o&&u.tables[o.tableName],a=c&&c.views[o.name];i.fromJSONAfterViewFetchedImp(t,a,n)},t.prototype.fromJSONAfterViewFetchedImp=function(t,n,i){var e,o,r;n&&(o=(e=this).Mf,e.suspendPaint(),e.restoreView(n,i),e.INi.fromJSON(e.Mf,t.grouping),r=o.rowFilter(),t.rowFilter&&r.fromJSON(t.rowFilter),e.vNi(e.options.isDesignMode),e.resumePaint())},t.prototype.fromJSONForDesignerSetDataView=function(t,n){this.Boo(),this.fromJSON(t),this.fromJSONAfterViewFetchedImp(t.addition,n),this.zoo(),this.$Dr({type:"setTableSheetJSON"})},t.prototype.resetNewView=function(t,n,i,e){var o,r=this.getDataView(),u=r.gLt,c=r.name,a=r.ILt,s=r.includeDefaultColumns,l=r.LEt,f=r.SRe(),d=r.toJSON(),h={columnInfoOptions:a,includeDefaultColumns:s,options:l,oldViewId:r.__ID__};u.removeView(c),o=u.addView(c,t,n,i),e&&o.UKn(e),o.fromJSON(d),o.ARe(f),this.qni.addUndoChanges({type:D.TableSheetUndoType.ResetViewChanged,oldData:h}),this.restoreView(o)},t.prototype.restoreView=function(t,n){var i,e,o,r,u,c,a,s,l=this,f=l.Mf;for(i=0;i<t.lFt.length;i++)t.lFt[i]>=t.length()&&(t.lFt.splice(i,1),i--);l.suspendPaint(),t.visibleLength()!==t.length()&&(t.gFt(),t.nPt(void 0,!0)),(e=t.getColumnInfos()).some((function(t){return t.isGroup}))&&(e=e.filter((function(t){return!t.isGroup})),t.setColumnInfos(e)),n?(l.Ski(t),l.refreshBindColumns(_,t)):l.kTi(t),o=t.DLt&&t.DLt.length>0,r=t._Lt&&t._Lt.length>0,o&&(t.isHierarchy()?t.KFt(t.DLt):t.JFt(t.DLt)),c=Wt(u=t.NLt,e),u&&!c&&t.filter(u),(a=t.lFt.length)>0&&(f.frozenRowCount(a),l.uNi=a),(s=t.CLt.length)>0&&(f.frozenColumnCount(s),l.jIi=s),t.MFt&&(l.groupBy(t.MFt),u&&c&&t.filter(u),r&&t.HFt(t._Lt)),l.resumePaint()},t.prototype.bNi=function(t,n){t?this.options.alternatingRowOptions={step:t.step,style:this.jNi(t.style)}:n?this.options.alternatingRowOptions={step:[1,1],style:this.jNi(n)}:null!==t&&null!==n||(this.options.alternatingRowOptions=null)},t.prototype.Vto=function(t){this.lMi=t},t.prototype.Fto=function(t){this.options.groupLayout=t},t.prototype.jNi=function(t){var n,i,e;return Array.isArray(t)?(i=new o.Style,e=new o.Style,t[0]&&i.fromJSON(t[0],!1,null),t[1]&&e.fromJSON(t[1],!1,null),n=[i,e]):((i=new o.Style).fromJSON(t,!1,null),n=i),n},t.prototype.wh=function(t,n,i){var e,r=this,u=r.Mf;return i&&i.fileType===o.OpenSaveFileType.excel?(u.options.sheetTabColor=r.options.sheetTabColor,u.wh(t,n,i)):((e=u.wh(t,n,i)).lossless.addition=r.dNi(i,null),e)},t.prototype.yh=function(t,n,i,e){var r,u,c,a,s,l,f,d,h,v,g,M,I=this,b=I.Mf,N=t.lossless.addition;e||((r=!i||!1!==i.includeStyles)&&(c=(u=t.lossless)&&u.theme||n.theme)&&((a=new o.Theme(void 0)).yh(c),b.currentTheme(a)),(s=o.util.o1(t,"sheetViews&sheetView"))&&(s.zoomScale&&b.zoom(s.zoomScale/100),"1"===s.tabSelected&&b.b2(!0,!1)),I.TNi(N)),l=N&&N.dataView,f=b.parent&&b.parent.dataManager(),(h=(d=l&&f.tables[l.tableName])&&d.views[l.name])&&I.kTi(h,e),e||(M=(g=(v=b.parent)&&v.v2)&&g.sheetsState)&&(M[b.name()]=2)},t.prototype.uw=function(){return this.Mf.uw()},t.prototype.ot=function(){return this.Mf.ot()},t.prototype.hitTest=function(t,n,i,e){return this.Mf.hitTest(t,n,i,e)},t.prototype.getSheet=function(){return this.Mf},t.prototype.getSelections=function(t){return t===o.SheetArea.colHeader?this.Mf.Ut.getSelections(1):this.Mf.getSelections()},t.prototype.zoom=function(t){var n,i;return 0===arguments.length?this.Mf.zoom():(n=this.Mf.zoom(),i=this.Mf.zoom(t),this.$Dr({type:"updateZoom",value:t,oldValue:n}),i)},t.prototype.autoFitRow=function(t){this.Mf.autoFitRow(t)},t.prototype.getColumnWidth=function(t,n,i){return this.Mf.getColumnWidth(t,n,i)},t.prototype.getRowHeight=function(t,n,i){return this.Mf.getRowHeight(t,n,i)},t.prototype.getColumnCount=function(t){return this.Mf.getColumnCount(t)},t.prototype.getRowCount=function(t){return this.Mf.getRowCount(t)},t.prototype.setDataView=function(t){this.kTi(t)},t.prototype.afterAddViewColumn=function(t){},t.prototype.uLi=function(t){var n=this.Mf,i=t||this.getDataView();i&&n.setRowCount(t.visibleLength()+(this.options.allowAddNew?1:0))},t.prototype.Ski=function(t){var n=this.Mf;t&&(n.setColumnCount(t.getColumnInfos().length),this.uLi(t))},t.prototype.rze=function(){this.Mf.parent.Wp.clear()},t.prototype.kTi=function(t,n){var i,e,o,r,u,c,a,s=this.Mf;s.xT||(this.suspendPaint(),s.suspendCalcService(),r=this.getDataView(),u=this.THr({type:"updateTableSheetDataView",viewId:null==r?void 0:r.jKe(),tableId:null===(i=null==t?void 0:t.gLt)||void 0===i?void 0:i.jKe()}),c=(null==r?void 0:r.name)===(null==t?void 0:t.name),t&&this.z2i(!c),!c&&r&&(null===(e=r.PEe)||void 0===e||e.call(r),this.rze()),this.MNo(),this.beforeSetDataView(t),s.autoGenerateColumns=!1,s.setDataSource(t),this.$Dr({type:"updateTableSheetDataView",viewId:null==t?void 0:t.jKe(),tableId:null===(o=null==t?void 0:t.gLt)||void 0===o?void 0:o.jKe()},u),this.Ski(t),t&&(this.refreshBindColumns(),n||(this.actionColumn.options().visible&&this.zNi(),a=t.iRt&&t.iRt.length,this.options.allowAddNew&&a===s.getRowCount()&&this.CNi(),this.wNi(),this.yNi())),this.afterSetDataView(t),s.resumeCalcService(!1),this.resumePaint())},t.prototype.beforeSetDataView=function(t){},t.prototype.afterSetDataView=function(t){},t.prototype.yNi=function(){var t=this,n=t.getDataView();t.G2i=function(n,i){t.mNi(i.row)},t.U2i=function(n,i){t.LNi(i.row,i.changingFields)},t.B2i=function(n,i){t.xNi(i.row)},t.Q2i=function(n,i){t.SNi(i.row)},t.R2i=function(n,i){var e=t.getDataView(),o=e.tableName;i.tableName===o&&t.ZNi(i.row)},t.Y2i=function(n,i){t.ONi(i.row,i.reason,i.type)},t.H2i=function(n,i){t.ENi()},t.W2i=function(i,e){t.GNi(n,e.isDataLengthChanged,e.isDataRowOrderChanged,e.isColumnCountChanged)},n.bind(f.Events.ItemInserted,t.G2i),n.bind(f.Events.ItemUpdated,t.U2i),n.bind(f.Events.ItemReset,t.B2i),n.bind(f.Events.ItemSaved,t.Q2i),n.bind(f.Events.ItemRemoved,t.R2i),n.bind(f.Events.ChangesSubmittedRowFailed,t.Y2i),n.bind(f.Events.ChangesSubmitted,t.H2i),n.bind(f.Events.ChangesCancelled,t.W2i)},t.prototype.z2i=function(t){var n=this,i=n.getDataView();i&&i.gLt&&(n.G2i&&i.unbind(f.Events.ItemInserted,n.G2i),n.U2i&&i.unbind(f.Events.ItemUpdated,n.U2i),n.B2i&&i.unbind(f.Events.ItemReset,n.B2i),n.Q2i&&i.unbind(f.Events.ItemSaved,n.Q2i),n.R2i&&i.unbind(f.Events.ItemRemoved,n.R2i),n.Y2i&&i.unbind(f.Events.ChangesSubmittedRowFailed,n.Y2i),n.H2i&&i.unbind(f.Events.ChangesSubmitted,n.H2i),n.W2i&&i.unbind(f.Events.ChangesCancelled,n.W2i),t&&i.wpt())},t.prototype.pNi=function(t){var n=this.Mf,i=n.getDataSource(),e=i.kve(t)||{},o="string"==typeof e.value&&!i.GPt(e.value)&&!e.isCross;return!!(e.readonly||e.isGroup||e.isPrimaryKey||o)},t.prototype.jOt=function(t){var n=this.Mf,i=n.getDataSource(),e=i.kve(t)||{};return e.isPrimaryKey},t.prototype.kNi=function(t){var n,i,e,o=1;for(n=0;n<t.length;n++)(i=t[n].caption)&&o<(e="string"==typeof i?1:i.length)&&(o=e);return o},t.prototype.UNi=function(){var t=0,n=this.hNi;return n&&(t=n.rowCount),t},t.prototype.QNi=function(t,n,i){var e=this.Mf,r=e.getRowCount(o.SheetArea.colHeader),u=t+i;r!==u&&(e.setRowCount(t+i,o.SheetArea.colHeader),e.ki(o.Events.TableSheetColHeaderRowCountChanged,null,!0)),e.setColumnCount(n,o.SheetArea.colHeader)},t.prototype.RNi=function(t){var n,i,e=this.Mf,r=e.getRowCount(o.SheetArea.colHeader),u=e.getColumnCount(o.SheetArea.colHeader);for(e.clear(0,0,r,u,o.SheetArea.colHeader,o.StorageType.data|o.StorageType.style),e.Cb.clear(o.SheetArea.colHeader),n=0;n<r;n++)if(e.setCellType(n,-1,void 0,o.SheetArea.colHeader),t)for(i=0;i<u;i++)this.wDi(n,i,null,_,o.SheetArea.colHeader)},t.prototype.PNi=function(){var t,n,i,e,r,u,c,a,s,l,f,d,h,v,g=this.hNi,M=this.Mf;if(g){for(t=M.Ut,n=o.SheetArea.colHeader,i=M.Z_(-1,-1,n),t.W_(n).fromJSON(g.data,!0,{}),M.setStyle(-1,-1,i,n),t.Q_(!0,n).fromJSON(g.rows),r=(e=t.K_(n)).spans,g.spans&&g.spans.length?e.fromJSON(g.spans):r&&r.length&&e.removeSpan(0,r.length),(u=g.data.dataTable)&&(M.Xbt=g.sharedFormulas,(0,I.dMt)(M,u,M.getRowCount(n),M.getColumnCount(n),n)),(c=new o.CellTypes.Text).isImeAware=function(){return!1},a=0;a<g.rowCount;a++)M.getCell(a,-1,n).cellType(c).locked(!1);for(s=this.UNi(),l=t.getColumnCount(),t.setFreeAreaRowCount(s,n),t.setFreeAreaColumnCount(l,n),g.columnCount=l,f=0;f<l;f++)if(d=M.Z_(-1,f,n))for(a=0;a<s;a++)(h=M.Z_(a,f,n))?((v=new o.Style).h5(d),v.h5(h),t.setStyle(a,f,v,n)):t.setStyle(a,f,d,n)}else t=M.Ut,n=o.SheetArea.colHeader,t.setFreeAreaRowCount(0,n)},t.prototype.YNi=function(t,n,i,e){var o,r,u,c,a,s=this.hNi;s&&(o=this.THr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi}),(r=s.data)||(r=s.data={}),(u=r.dataTable)||(u=r.dataTable={}),(c=u[t])||(c=u[t]={}),(a=c[n])||(a=c[n]={}),a[i]=e,this.$Dr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi},o))},t.prototype.WNi=function(t,n){var i,e=this.rNi;for(L(t)&&(t=t.join(",")),L(n)&&(n=n.join(",")),i=0;i<e.length;i++)e[i].ubt===t&&(e[i].ubt=n),e[i].sbt===t&&(e[i].sbt=n)},t.prototype.HNi=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.getDataSource();if(a&&(n=a.kve(t))){for(i=[],e=1,o=c.Ut.getFreeAreaRowCount(e),r=c.getRowCount(e);o<r;o++)i.push(c.getText(o,t,e));this.WNi(n.caption,i),u=i.every((function(t,n,i){return 0===n||t===i[0]})),n.caption=u?i[0]:i}},t.prototype.VNi=function(t,n,i){var e,r,u,c,a,s,l,f,d=this;if(t>1){for(r=(e=this.Mf).getRowCount(o.SheetArea.colHeader),u=function(t){return"string"==typeof t&&mt(t)?d.Nuo(t):t},c=0;c<i.length;c++)if(a=i[c].caption||u(i[c].value)){for(s="string"==typeof a?[a]:a,l=0;l<s.length;l++)e.setValue(n+l,c,s[l],o.SheetArea.colHeader);for(f=s[l-1];l<r;l++)e.setValue(n+l,c,f,o.SheetArea.colHeader)}e.autoMerge(new o.Range(n,-1,t,-1),h.AutoMergeDirection.rowColumn,h.AutoMergeMode.restricted,o.SheetArea.colHeader)}},t.prototype.getFilterButtonVisibleFromColumnInfo=function(t,n,i){var o,r=n[t],u=!1!==r.allowSort||!1!==r.allowFilterByValue||!1!==r.allowFilterByList;return A(r.allowSort)&&A(r.allowFilterByValue)&&A(r.allowFilterByList)&&(o=i.getValue(0,t))&&"object"==typeof o&&!e.Common.ct.W0(o)&&A(o._error||o._code)&&(u=!1),u},t.prototype.yze=function(t){var n,i,e=this.Mf.rowFilter();return e&&e.Dit(t)},t.prototype.zze=function(t){var n=this,i=n.Mf,e={tableName:_,colIndex:t};i.Qy().execute({cmd:"clearFilter",sheetName:i.name(),cmdOption:e})},t.prototype.pze=function(t){var n=this,i=n.Mf,e=i.rowFilter(),r=e&&e.rIo?e.rIo(t):e&&e.getSortState(t);return void 0!==r&&r!==o.SortState.none},t.prototype.xze=function(t,n){var i,e,o=this,r=o.Mf,u=r.rowFilter();return u.Sze(t),i=o.getDataView(),e=n||i.kve(t),i.UGe(),i.PGe(e)},t.prototype.Lze=function(t){var n=this,i=n.fDi(t),e=n.getDataView();return i&&(i.GFt||e.$Lt(e.ife(i),!0))},t.prototype.Oze=function(t){var n,i=this.getDataView();return i.uii(i.kve(t))},t.prototype.iGe=function(t,n){var i=this,e=i.getDataView();return!e.UFe(t)&&(n=n||e.kve(t),i.suspendPaint(),e.iUe(n,(function(){var o,r,u,c,a,s,l=e.Dit();i.yze(t)&&i.zze(t),o=!l||!e.Dit(),r=!1,u=!1,i.pze(t)&&(u=!0,r=i.xze(t,n),o||!r||l||(o=!0)),c=!1,i.Lze(t)&&(c=i.Oze(t)),u&&e.Dit()&&(e.dFt(),e.vFt(!0)),o&&u&&e.gFt(),c?(a=e.autoSort,e.autoSort=!0,i.removeGroupBy(),e.autoSort=a):(e.VGe(!0),i.groupBy(e.groupBy()),e.zGe(!0)),i.Zze(t)?(i.togglePinnedColumns([t]),s=i.bze(i.tDi(n)),i.fno(s)):i.fno(t)}),(function(){i.refreshBindColumns(),i.Seo(),i.kze(t)})),i.resumePaint(),!0)},t.prototype.fno=function(t,n,i){void 0===n&&(n=1);var e=this;e.Mf.KBe(t,n,_,i),!1!==i&&e.qni.addUndoChanges({type:D.TableSheetUndoType.RemoveColumns,oldCol:t,oldCount:n})},t.prototype.JEe=function(t,n,i){var e=this,o=e.getDataView();return(i=i||o.getColumn(t))&&n&&Mt(n,i),!(o.UFe(t)||!e.Ceo(n,i))&&(e.suspendPaint(),o.aUe(i,n,(function(n){n.isFilterUpdated?(e.zze(t),o.VGe(!0),e.groupBy(o.groupBy()),o.zGe(!0)):n.isSortUpdated?(o.VGe(!0),e.groupBy(o.groupBy()),o.zGe(!0)):n.isGroupUpdated&&(o.VGe(!0),o.zGe(!0))}),(function(){e.refreshBindColumns()})),e.resumePaint(),!0)},t.prototype.qFe=function(t,n){var i,e,o,r=this;return!!r.Ceo(n)&&(i=r.getDataView(),r.suspendPaint(),e=i.hur(t),o=r.Mf.getColumnCount()>e,i.JGe(t,n,(function(){o&&r.dno(e)}),(function(){r.refreshBindColumns(),o&&r.Seo()})),r.resumePaint(),!0)},t.prototype.dno=function(t,n,i){void 0===n&&(n=1);var e=this;e.Mf.WBe(t,n,_,{clearUndoNotInCommand:i}),!1!==i&&e.qni.addUndoChanges({type:D.TableSheetUndoType.AddColumns,oldCol:t,oldCount:n})},t.prototype.FPt=function(t){var n;return null===(n=this.getDataView())||void 0===n?void 0:n.FPt(t,!0)},t.prototype.Ceo=function(t,n){var i,e,o,r,u=this,c=(0,f.isNullOrEmpty)(t.type);return!!(!c||n&&(0,f.isNullOrEmpty)(n.type))&&(i="Formula"===t.type&&!mt(t.value),e="Formula"!==t.type&&mt(t.value),o="Lookup"===t.type&&!u.FPt(t.value),r="Lookup"!==t.type&&!mt(t.value)&&(wt(t.value)||u.FPt(t.value)),!(i||e||o||r)&&(!n||u.getDataView().Zcr(n,t)))},t.prototype.isDisableDefineColumn=function(t){return this.UFe(t)},t.prototype.UFe=function(t){var n=this,i=n.getDataView();return i.UFe(t)},t.prototype.Iuo=function(t,n){return t&&mt(t)?this.getDataView().getTable().getFormulaWithoutCulture(t,n):t},t.prototype.getFormulaWithCulture=function(t,n){return this.Nuo(t,n)},t.prototype.Nuo=function(t,n){return t&&mt(t)?this.getDataView().getTable().getFormulaWithCulture(t,n):t},t.prototype.refreshBindColumns=function(t,n){var i,e,r,u,c,a,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L,S,O=this.Mf,k=n||O.getDataSource();if(k){for(O.suspendPaint(),O.suspendEvent(),(i=O.conditionalFormats)&&i.clearRule(),O.b8&&O.b8.d5(),e=k.getColumnInfos(),r=this.kNi(e),u=this.UNi(),this.QNi(r,e.length,u),this.RNi(t),this.PNi(),this.VNi(r,u,e),c=O.rowFilter(),this.cno(O,c,e),a=[[]],f=O.k9(o.SheetArea.viewport),d=e.some((function(t,n){return O.Lt(n)!==o.ColumnHeaderFitMode.normal&&(!A(t.headerFit)&&"normal"===t.headerFit||!1===t.visible&&!1!==O.getColumnVisible(n))})),h=0;h<e.length;h++){if(M=void 0,I=void 0,b=void 0,"string"==typeof(g=(v=e[h]).value)?mt(g)?I=g:M=g:"function"==typeof g&&(b=g.name),N={name:M||I||b},D=v.caption,1===r&&D?N.displayName=dt(D):I&&!D&&(N.displayName=this.Nuo(I)),A(v.width)||(N.width=v.width),A(v.visible)||(N.visible=v.visible),O.bindColumn(h,N),this.JNi(-1,h,v.headerStyle,o.SheetArea.colHeader),m=v.style,this.Teo(!0)&&h===f&&(w=v.zno)&&((m=this.Lno(m)).cellType=w),this.JNi(-1,h,m),O.qgt.nM=k.gLt,O.qgt.getField=k.gLt.POt.getField,v.validator&&(C=v.validator instanceof s.DefaultDataValidator?v.validator:Rt(v.validator),O.setDataValidator(-1,h,C)),(y=v.conditionalFormats)&&i)for(x=[new o.Range(-1,h,-1,1)],T=0,j=y;T<j.length;T++)(p=j[T])instanceof l.ConditionRuleBase?(p.ranges([new o.Range(-1,h,-1,1)]),O.conditionalFormats.addRule(p)):Pt(i,p,x);z=this.pNi(h),O.getRange(-1,h,-1,1).locked(z),O.getRange(-1,h,-1,1,o.SheetArea.colHeader).locked(!1),L=this.getFilterButtonVisibleFromColumnInfo(h,e,O),c.filterButtonVisible(h,L),v.isCross?a[0].push(h):a[0].length>0&&a.unshift([])}for(h=0;h<e.length;h++)v=e[h],A(v.headerFit)||this.FNi(h,v.headerFit);d&&(S=this.zuo())&&(O.defaults.colHeaderRowHeight=S),this.XNi(),this.tLi(),O.resumeEvent(),O.resumePaint(),this.KNi(a),this.UMi&&this.UMi.updatePanelLayout(),this.applyStyleRules()}},t.prototype.zuo=function(){var t,n,i,e,r,u,c,a,s,l=this.Mf,f=l.Ut.Q_(!1,o.SheetArea.colHeader);if(f&&(t=f.infos)&&t.length){for(n=t.filter((function(t){return t&&!1!==t.visible})).map((function(t){var n;return null!==(n=t.columnHeaderFitMode)&&void 0!==n?n:o.ColumnHeaderFitMode.normal})),i=!1,e=1,r=0,u=0;u<n.length;u++)(c=n[u])===o.ColumnHeaderFitMode.normal||c===o.ColumnHeaderFitMode.vertical?(i=i||c===o.ColumnHeaderFitMode.vertical,r>0&&(e=Math.max(e,r+1),r=0)):c===o.ColumnHeaderFitMode.stack&&r++;return r>0&&(e=Math.max(e,r)),a=30,s=i?2*a:a,Math.max(s,e*a,this.Tts())}},t.prototype.pno=function(){var t,n,i,e,r=this.Mf,u=r.getDataSource();if(u&&u.tdr){for(r.suspendPaint(),t=u.tdr.length-1;t>-1;t--)(n=u.tdr[t]).K1r&&r.KBe(t,1,o.SheetArea.viewport,!1);for(u.tdr=_,t=(i=u.getColumnInfos()).length-1;t>-1;t--)(e=i[t]).ume&&r.WBe(t,1,o.SheetArea.viewport,{clearUndoNotInCommand:!1});r.resumePaint()}},t.prototype.cno=function(t,n,i){n.Fct((0,o.Ec)(-1,0,-1,i.length)),t.lct=X},t.prototype._Ni=function(t){var n,i,e,o,r=this;return r.qNi()&&(n=r.getDataView(),Ct(e=(i=r.Mf.rowFilter()).tAi[t])&&(o=n.getHierarchyNode(e,!0),!A(o)))?o.level:0},t.prototype.$Ni=function(){return this.getDataView().getHierarchyColumnIndex(!0)},t.prototype.isShowHierarchyOutlineColumn=function(t){return this.qNi(t)},t.prototype.qNi=function(t){var n,i=this.getDataView();return!A(i)&&!A(i.getTable())&&i.hasHierarchyColumn(t)},t.prototype.isHierarchyParent=function(){var t,n=this.getDataView();return n&&n.isHierarchy()&&"Parent"===n.gLt.getHierarchyType()},t.prototype.iDi=function(t,n){var i,e,o=this,r=o.getDataView();if(!A(r)&&!A(n)&&(i=r.kve(n),!A(i)))return e=o.tDi(i),!A(r.h7t(e,t))},t.prototype.wNi=function(){var t,n,i=this,e=i.Mf;i.qNi()&&(n=(t=i.getDataView().SPt(!0)).options,i.suspendPaint(),e.outlineColumn.options(lt(lt({columnIndex:t.index,showIndicator:!0},n),{collapseIndicator:n&&n.collapseIndicator?n.collapseIndicator:g.ARROW_RIGHT,expandIndicator:n&&n.expandIndicator?n.expandIndicator:g.ARROW_DOWN})),e.showRowOutline(!1),e.rowOutlines.KMi=!0,i.resumePaint())},t.prototype.MNo=function(){var t,n=this,i=n.Mf;n.qNi()||(t=i.outlineColumn.options())&&!A(t.columnIndex)&&(n.suspendEvent(),n.Rno(t.columnIndex),i.outlineColumn.reset(),n.resumeEvent())},t.prototype.Rno=function(t){var n,i,e=this,o=e.Mf,r=e.getDataView();if(r){for(n=r.visibleLength(),e.suspendPaint(),e.options.allowAddNew&&o.getCell(n,t).textIndent(_),i=0;i<n;i++)o.getCell(i,t).textIndent(_);e.resumePaint()}},t.prototype.bIo=function(){this.nDi()},t.prototype.NIo=function(t){(this.FDi(t)||this.JDi(t))&&(this.WDi(_,!1),this.HDi()),this.uDi()},t.prototype.nDi=function(){var t,n,i,e,o,r=this,u=r.Mf;if(r.qNi()){for(n=(t=r.getDataView()).visibleLength(),i=!1,e=0;e<n;e++)u.outlineColumn.getCollapsed(e)&&((o=t.getHierarchyNode(e)).eDi=!0,i=!0);return i}},t.prototype.jze=function(){var t,n,i,e,o=this,r=o.Mf;if(!o.qNi())return{};for(t={},i=(n=o.getDataView()).visibleLength(),e=0;e<i;e++)t[e]=r.rowOutlines.getCollapsed(e);return t},t.prototype.vze=function(t){var n,i,e,o=this,r=o.Mf;if(o.qNi())for(i=(n=o.getDataView()).visibleLength(),o.expandAllHierarchyLevels(),o.XNi(),e=0;e<i;e++)r.outlineColumn.setCollapsed(e,t[e])},t.prototype.oDi=function(){var t,n,i,e,o=this,r=o.Mf;if(o.qNi())for(n=(t=o.getDataView()).visibleLength(),i=0;i<n;i++)(e=t.getHierarchyNode(i)).eDi&&(e.eDi=!1,r.outlineColumn.setCollapsed(i,!0))},t.prototype.uDi=function(t){var n=this;n.qNi()&&(n.suspendPaint(),!1!==t&&n.expandAllHierarchyLevels(),n.XNi(),!1!==t&&n.oDi(),n.resumePaint())},t.prototype.XNi=function(){var t,n,i,e,o,r,u,c,a,s=this,l=s.Mf;if(s.qNi()){for(t=s.getDataView(),n=s.$Ni(),s.suspendPaint(),i=t.visibleLength(),(e=l.outlineColumn.options())&&!A(e.columnIndex)&&s.Rno(e.columnIndex),s.options.allowAddNew&&l.getCell(i,n).textIndent(_),o=0;o<i;o++)r=t.getHierarchyNode(o),u=A(r)?_:r.level,l.getCell(o,n).textIndent(u);if(l.outlineColumn.refresh(),(c=t.SPt())&&c.options&&c.options.showCheckBox){for(o=0;o<i;o++)r=t.getHierarchyNode(o),a=!A(r)&&r.cDi,l.outlineColumn.ect(o,a);l.outlineColumn.refresh()}s.resumePaint()}},t.prototype.j_r=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.startBatchOp()},t.prototype.D_r=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.endBatchOp()},t.prototype.Boo=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.suspendOp()},t.prototype.zoo=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.resumeOp()},t.prototype.rDi=function(t){var n=this;n.suspendPaint(),n.uDi(!!t),n.resumePaint()},t.prototype.aDi=function(t){var n=this;return!(!n.qNi()||!Ct(t))&&n.Mf.outlineColumn.getCheckStatus(t)},t.prototype.sDi=function(){var t,n,i,e,o=this;if(o.qNi())for(t=o.Mf,i=0,e=(n=o.getDataView()).visibleLength();i<e;i++)n.getHierarchyNode(i).cDi=t.outlineColumn.getCheckStatus(i)},t.prototype.getHierarchyMaxLevel=function(){return this.MDi()},t.prototype.MDi=function(){var t,n,i=this,e=i.getDataView(),o=e.visibleLength(),r=-1;for(t=0;t<o;t++)(n=e.getHierarchyNode(t).level)>r&&(r=n);return r},t.prototype.showHierarchyItems=function(t){this.IDi(t,!1)},t.prototype.hideHierarchyItems=function(t){this.IDi(t,!0)},t.prototype.IDi=function(t,n){var i=this,e=i.Mf;i.qNi()&&(e.suspendPaint(),t.forEach((function(t){i.gDi(t)&&e.outlineColumn.setCollapsed(t,n)})),e.outlineColumn.refresh(),e.resumePaint())},t.prototype.NDi=function(t){var n,i,e,o=this;if(o.qNi()){for(n=o.Mf,i=o.lDi(),n.suspendPaint(),e=0;e<i;e++)n.outlineColumn.setCollapsed(e,t);n.outlineColumn.refresh(),n.resumePaint()}},t.prototype.expandAllHierarchyLevels=function(){this.NDi(!1)},t.prototype.collapseAllHierarchyLevels=function(){this.NDi(!0)},t.prototype.lDi=function(){var t,n,i;return this.getDataView().visibleLength()},t.prototype.gDi=function(t){return t<this.lDi()},t.prototype.expandHierarchyLevel=function(t){var n,i,e,o,r,u=this;if(u.qNi()){for(n=u.Mf,i=u.getDataView(),e=u.lDi(),u.suspendPaint(),o=0;o<e;o++)(r=i.getHierarchyNode(o).level)<t?n.outlineColumn.setCollapsed(o,!1):n.outlineColumn.setCollapsed(o,!0);n.outlineColumn.refresh(),u.resumePaint()}},t.prototype.promoteHierarchyLevel=function(t){var n=this;n.qNi()&&(n.j_r(),n.getDataView().promoteHierarchyLevel(t),n.rDi(),n.D_r())},t.prototype.demoteHierarchyLevel=function(t,n){var i=this;i.qNi()&&(i.j_r(),i.getDataView().demoteHierarchyLevel(t,n),i.rDi(),i.D_r())},t.prototype.moveUp=function(t){var n,i=this,e=i.getDataView();e.hasHierarchyRowOrder()&&(i.j_r(),i.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),n=i.nDi(),e.moveUp(t),i.rDi(n),i.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),i.D_r())},t.prototype.moveDown=function(t){var n,i=this,e=i.getDataView();e.hasHierarchyRowOrder()&&(i.j_r(),i.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),n=i.nDi(),e.moveDown(t),i.rDi(n),i.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),i.D_r())},t.prototype.hasHierarchyRowOrder=function(){return this.qX()},t.prototype.qX=function(){var t,n;return this.getDataView().hasHierarchyRowOrder()},t.prototype.addHierarchyItemBefore=function(t,n){var i,e=this,o=e.Mf,r=e.getDataView();r.hasHierarchyRowOrder()&&(e.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=e.nDi(),o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),r.addHierarchyItemBefore(t,n||{}),e.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),e.D_r())},t.prototype.addHierarchyItemAfter=function(t,n){var i,e,o=this,r=o.Mf,u=o.getDataView();u.hasHierarchyRowOrder()&&(o.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=o.nDi(),e=u.addHierarchyItemAfter(t,n||{}),r.ffe(t+e,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),o.D_r())},t.prototype.addHierarchyItemAbove=function(t,n){var i,e=this,o=e.Mf,r=e.getDataView();r.hasHierarchyRowOrder()&&(e.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=e.nDi(),o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),r.addHierarchyItemAbove(t,n||{}),e.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),e.D_r())},t.prototype.addHierarchyItemBelow=function(t,n){var i,e,o=this,r=o.Mf,u=o.getDataView();u.hasHierarchyRowOrder()&&(o.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=o.nDi(),e=u.addHierarchyItemBelow(t,n||{}),r.ffe(t+e,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),o.D_r())},t.prototype.KNi=function(t){var n,i,e,r=this.Mf,u=this.cNi||[[]];for(r.suspendPaint(),n=0;n<u.length;n++)(i=u[n]).length>0&&r.cellStates.getCollection(o.CellStatesType.readonly)&&(e=new o.Range(-1,i[0],-1,i.length),r.cellStates.remove(e,o.CellStatesType.readonly));for(this.cNi=t,n=0;n<t.length;n++)(i=t[n]).length>0&&r.cellStates.add(new o.Range(-1,i[0],-1,i.length),o.CellStatesType.readonly,new o.Style({backColor:"#e6e6e6"}));r.resumePaint()},t.prototype.applyStyleRules=function(){var t,n,i,e,r,u,c,a,s,l,f,d,h=this.Mf,v=h.getDataSource(),g=v.getStyleRules();if(g)for(n in t=h.conditionalFormats,this.clearStyleRuleConditionalFormats(),g)if(g[n]&&(e=(i=g[n]).style,r=i.rule,e&&r))if(u=void 0,u=e instanceof o.Style?e:new o.Style(e),c=r.formula,a=r.state,s=r.direction,l=r.area,f=[new o.Range(-1,-1,-1,-1)],d={},c)Pt(t,d={ruleType:"formulaRule",formula:c,style:u},f);else if(Ct(a)&&Ct(s)){if(1!==s&&3!==s||this.addRowStateRule(a,u),2===s&&l===o.SheetArea.colHeader){this.addColumnHeaderStateRule(a,u);continue}2!==s&&3!==s||this.addColumnStateRule(a,u)}},t.prototype.applyNamedCellTemplate=function(t,n){var i,e,o,r,u,c,a=this.Mf,s=a.getParent();if(s&&t&&"string"==typeof t&&(e=null===(i=s.namedCellTemplates)||void 0===i?void 0:i.get(t))&&Array.isArray(n)&&0!==n.length&&a.getDataSource()){a.suspendPaint(),a.suspendEvent();try{for(e.conditionalFormats&&this.mIo(e.conditionalFormats),o=0;o<n.length;o++)(r=this.CIo(n[o]))&&(u=r.colIndex,c=r.columnInfo,this.Zts(e,u,c));this.refreshBindColumns()}finally{a.resumeEvent(),a.resumePaint()}}},t.prototype.Zts=function(t,n,i){var e,o,r,u,c,a=this.Mf,s=a.getDataSource(),f={};t.style&&(o=this.Xts(t.style,n,i))&&(f.style=o,this.JNi(-1,n,o)),t.conditionalFormats&&(r=t.conditionalFormats.filter((function(t){return t.ruleType!==l.RuleType.rowStateRule&&t.ruleType!==l.RuleType.columnStateRule}))).length>0&&(u=(0,b.resolveAndApplyConditionalFormats)(a,n,r))&&u.length>0&&(f.conditionalFormats=(0,b.mergeConditionalFormats)(null==i?void 0:i.conditionalFormats,u)),t.dataValidations&&t.dataValidations.length>0&&(c=(0,b.resolveAndApplyValidator)(a,n,t.dataValidations))&&(f.validator=c),t.cellStates,Object.keys(f).length>0&&s&&(s.JEe(lt(lt({},i),f)),null===(e=s.MSo)||void 0===e||e.call(s))},t.prototype.mIo=function(t){var n,i,e,o,r,u,c,a=this.getDataView();if(a)for(i=0,e=n=(0,b.resolveTemplateStateStyleRules)(t);i<e.length;i++)r=(o=e[i]).name,u=o.style,c=o.rule,a.addStyleRule(r,u,c)},t.prototype.Xts=function(t,n,i){return(0,b.resolveStyleOptions)(this.Mf,t)},t.prototype.DDi=function(t){var n,i,e,o,r,u,c,a,s,f;if(t&&(i=(n=this.Mf).conditionalFormats))for(o=(e=i.getRules()).length-1;o>=0;o--)u=(r=e[o]).ruleType(),a=(c=r.ranges())[0],s=u===l.RuleType.rowStateRule||u===l.RuleType.columnStateRule,f=u===l.RuleType.formulaRule&&-1===a.col&&-1===a.colCount,(s||f)&&t(r,i)},t.prototype.clearStyleRuleConditionalFormats=function(){this.DDi((function(t,n){n.removeRule(t)}))},t.prototype.refreshStyleRuleCache=function(){this.DDi((function(t,n){n.RX(t),n.fE(t)}))},t.prototype.fDi=function(t,n){var i,e=this.Mf,o=e.getDataSource();return o&&(i=o.kve(t,!0,n))||null},t.prototype.bze=function(t){var n,i,e=this,o=e.endColumn();for(i=0;i<o+1;i++)if((null===(n=e.fDi(i))||void 0===n?void 0:n.name)===t)return i;return null},t.prototype.CIo=function(t){var n,i,e=this.endColumn();for(n=0;n<e+1;n++)if((i=this.fDi(n))&&this.tDi(i)===t)return{colIndex:n,columnInfo:i};return null},t.prototype.dDi=function(t){return this.tDi(this.fDi(t))},t.prototype.tDi=function(t){if(t){var n=t.value;if("string"==typeof n)return n;if("function"==typeof n)return n.name}},t.prototype.Lno=function(t){var n,i=new o.Style;return t&&(this.hDi(t.dropDowns),n=t instanceof o.Style?t:new o.Style(t),i.h5(n,!0),this.Deo(i)&&this.jeo(i)),i},t.prototype.JNi=function(t,n,i,e){var r,u,c,a,s,l,f,d,h=this.Mf;if(A(e)||e===o.SheetArea.viewport?e=3:i&&(i.cellType&&"98"!==i.cellType.typeName&&"107"!==i.cellType.typeName&&delete i.cellType,delete i.tabStop,delete i.imeMode,delete i.cellButtons,delete i.dropDowns,delete i.mask),(r=this.Lno(i)).dropDowns&&r.dropDowns.length>0)for(c=0,a=(u=r.dropDowns).length;c<a;c++)(s=u[c].option)&&s.dataSource&&"string"==typeof s.dataSource&&(l=this.getParent(),f=s.dataSource,(d=l&&l.yC)&&d.addUsedCustomName&&d.getCustomName(f)&&d.addUsedCustomName(f));h.setStyle(t,n,r,e)},t.prototype.Ywt=function(t,n,i){var e,o=this.getDataView();return o&&o.Ywt(t,n,i)},t.prototype.nMt=function(t,n){var i,e=this.getDataView();return e&&e.nMt(t,n)},t.prototype.hDi=function(t){var n=this,i=n.Mf,e=i.parent,o=e.dataManager();t&&t.forEach((function(t){var n,i,e,r=t.option;r&&r.dataSource&&(n=r.dataSource,r.dataSource instanceof f.View&&(n=r.dataSource={datamanagerTable:n.tableName,columns:n.deleteColumnsProperties(n.yLt)}),n.datamanagerTable&&(i=o.tables[n.datamanagerTable],n.viewName=n.datamanagerTable+Math.random().toString(16).substring(1,8),e=i.GRt(n.viewName,n.columns),n.columns=e.deleteColumnsProperties(n.columns),e.fetch()))}))},t.prototype.enablePinRow=function(){var t,n,i,e,o,r=this,u=r.Mf,c=10,a=r.groupBy(),s=a&&Array.isArray(a)&&a.length>0,l=r.qNi(),f=r.getDataView(),d=f.lFt,h=u.getSelections(),v=d&&d.length,g=0,M=0;for(t=0,n=h;t<n.length;t++)(i=n[t])&&(e=i.row,M+=o=i.rowCount,(e=-1===e?0:e)<v&&(g+=Math.min(o+e,v)-e));return!(s||l||v-g+(M-g)>c)},t.prototype.enablePinColumn=function(){var t,n,i,e,o,r=this,u=r.Mf,c=10,a=r.groupBy(),s=a&&Array.isArray(a)&&a.length>0,l=u.getActiveColumnIndex(),f=r.getDataView(),d=f&&f.kve(l),h=f.CLt,v=u.getSelections(),g=h&&h.length,M=0,I=0;for(t=0,n=v;t<n.length;t++)(i=n[t])&&(e=i.col,I+=o=i.colCount,(e=-1===e?0:e)<g&&(M+=Math.min(o+e,g)-e));return!(s||d&&d.isCross||g-M+(I-M)>c)},t.prototype.FNi=function(t,n){var i,e,r=this.Mf;switch(n){case"vertical":i=o.ColumnHeaderFitMode.vertical;break;case"stack":i=o.ColumnHeaderFitMode.stack;break;default:i=o.ColumnHeaderFitMode.normal}e=r.defaults.colHeaderRowHeight,r.GB(t,i),e!==r.defaults.colHeaderRowHeight&&this.qni.addUndoChanges({type:D.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:e,sheetArea:o.SheetArea.colHeader},newData:{size:r.defaults.colHeaderRowHeight,sheetArea:o.SheetArea.colHeader}})},t.prototype.getDataView=function(){return this.Mf.getDataSource()},t.prototype.setDefaultRowHeight=function(t,n){var i=this.Mf.defaults,e=i.rowHeight,r=this.THr({type:"updateTableSheetDefaults"});n===o.SheetArea.colHeader?(e=i.colHeaderRowHeight,i.colHeaderRowHeight=t):i.rowHeight=t,e!==t&&this.qni.addUndoChanges({type:D.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:e,sheetArea:n},newData:{size:t,sheetArea:n}}),this.$Dr({type:"updateTableSheetDefaults",defaults:{rowHeight:i.rowHeight,colHeaderRowHeight:i.colHeaderRowHeight},changingContext:r})},t.prototype.getDefaultRowHeight=function(t){var n=this.Mf.defaults;return A(t)&&(t=3),t===o.SheetArea.corner||t===o.SheetArea.colHeader?n.colHeaderRowHeight:n.rowHeight},t.prototype.Tts=function(){return 30},t.prototype.MNi=function(){var t;this.gNi=[ct]},t.prototype.rowActionOptions=function(t){var n,i,e=this;return L(t)&&(n=this.THr({type:"updateTableSheetRowActionOptions"}),i=ft([],this.gNi,!0),e.clearRowActions(),e.gNi=e.DNi(t),e.rebuildRowActionOptions(),e.NNi(),e.bDi(),this.qni.addUndoChanges({type:D.TableSheetUndoType.RowAction,oldData:i,newData:this.gNi}),this.$Dr({type:"updateTableSheetRowActionOptions"},n)),e.DNi()},t.prototype.rebuildRowActionOptions=function(){var t,n,i,e=this,o=e.gNi,r=Qt(o,O);Yt(r)&&(t=ut[k],n=ut[E],i=ut[Z],t.icons=r.icons.slice(0,1),(t=z(t)).command=r.command,n.icons=r.icons.slice(1,4),i.icons=r.icons.slice(4,5),r.subActionOptions=[e.nLi(t),e.nLi(n),e.nLi(i)],A(r.iconSize)||r.subActionOptions.forEach((function(t){t.iconSize=z(r.iconSize)})))},t.prototype.NNi=function(){var t=this,n=t.gNi;A(t.getParent())||o.Commands.iMi(t.getParent().commandManager(),n)},t.prototype.tLi=function(){var t,n,i,e=this,o=e.getDataView();if(o)for(e.eLi={},t=o.getColumn(),n=function(n){var i=t[n],r=i.value;if("string"!=typeof r||e.eLi.hasOwnProperty(r))return"continue";Object.defineProperty(e.eLi,r,{get:function(){return o.Nve(e.eLi.oLi,i)}})},i=0;i<t.length;i++)n(i)},t.prototype.nLi=function(t){return t.name===k?t.iLi=$t:t.name===E?t.iLi=tn:t.name===Z&&(t.iLi=nn),t},t.prototype.bDi=function(){var t,n,i,e,r,c,a=this,s=a.Mf,l=a.gNi,f=l.length,h=a.options.showRowNumber?1:0,v=1;for(s.suspendPaint(),s.setColumnCount(v+f+h,o.SheetArea.rowHeader),t=a.groupOutlinePosition(),s.setColumnVisible(0,t===u.GroupOutlinePosition.rowHeader||t===u.GroupOutlinePosition.groupCellAll,o.SheetArea.rowHeader),a.tLi(),n={isPinnedRow:function(t){return a.ADi(t)},isInsertedRow:function(t){return a.vDi(t)},isUpdatedRow:function(t){return a.jDi(t)},isNewRow:function(t){return a.zDi(t)},hasWarning:function(t){return a.CDi(t)},getDataItem:function(t){return a.eLi.oLi=t,a.eLi}},i=0;i<f;i++)r=v+i,yt((e=l[i]).tooltip)&&a.wDi(-1,r,e.tooltip),a.nLi(e),(c=new d.RowAction(e,n)).build(a.yDi(e)),s.setCellType(-1,r,c,o.SheetArea.rowHeader);s.resumePaint()},t.prototype.clearRowActions=function(){var t,n,i,e=this,r=e.Mf,u=e.gNi,c=u.length,a=1;for(r.suspendPaint(),t=0;t<c;t++)i=a+t,(n=u[t]).tooltip&&e.wDi(-1,i,null),r.setStyle(-1,i,null,o.SheetArea.rowHeader);r.resumePaint()},t.prototype.yDi=function(t){var n=this,i=t.name===E||t.name===O,e=t.name===G||t.name===B,o=n.mDi.bind(n),r=n.LDi.bind(n);return i?{enabled:o}:e?{enabled:r,visible:o}:{enabled:o,visible:o}},t.prototype.tIe=function(t){var n;return!this.jFt||this.VDi(t)},t.prototype.Zze=function(t){var n,i;return t<this.Mf.frozenColumnCount()},t.prototype.ADi=function(t){var n,i;return t<this.Mf.frozenRowCount()},t.prototype.xDi=function(t){for(var n=this,i=n.gNi,e=1,o=0;o<i.length&&i[o].name!==t;o++);return o===i.length?-1:e+o},t.prototype.SDi=function(){var t=this,n=t.xDi(Z);return-1===n&&(n=t.xDi(O)),n},t.prototype.zA=function(t){return t.sheetName=this.name(),this.getParent().commandManager().execute(t)},t.prototype.CDi=function(t,n){var i,e=this;if(Ct(t))return(i=e.SDi())===(n=Ct(n)?n:i)&&!A(e.ZDi(t))},t.prototype.ZDi=function(t){var n,i=this.getDataView();return i&&i.getErrorInfo(t)},t.prototype.ODi=function(t){var n,i=this.ZDi(t);if(!A(i))return i.reason},t.prototype.wDi=function(t,n,i,e,r){void 0===r&&(r=o.SheetArea.rowHeader);var u,c=this.Mf;e&&c.getCell(t,n,r).tag(i),c.Ut.$n(t,n,i,r)},t.prototype.Deo=function(t){return t&&t.cellType&&"8"===t.cellType.typeName},t.prototype.jeo=function(t){var n=t.cellType;n.Bto=!0,n.AQe=!0,n._Qe=function(t,n,i){var e=this,o=t.NMi.getDataView(),r=o&&o.BQe(n,i);return r?{id:e._id,visited:r.visited}:X},n.DQe=function(t,n,i){var e=t.NMi.getDataView();e&&e.GQe(n,i,{visited:!0})}},t.prototype.Aeo=function(t){var n,i=this,e=i.getDataView();if(e){if(yt(t)&&(t=i.bze(t),A(t)))return;if(n=e.kve(t,!0,!0),A(n))return;return(n=lt({},n)).caption=dt(n.caption),mt(n.value)&&(n.formula=n.value,"formula"!==n.dataType||(0,f.isNullOrEmpty)(n.name)||mt(n.name)?n.value=X:n.value=n.name),n}},t.prototype.Eze=function(t,n,i){var e,r,u=this,c=u.getParent();c.iy(),u.wze&&u.wze.close(),e=Ct(i)&&u.getDataView()?u.Aeo(i):{},t-=(r=c.uC()).left,n-=r.top,u.wze=new m.Uze(c.j2(),o.util.gi(c&&c.Ti),{columnTypeItems:u.options.columnTypeItems,column:e,getSheet:function(){return u.Mf},getLookup:function(t){var n;return(null===(n=u.getDataView())||void 0===n?void 0:n.jGe(t))||[]},getSampleValue:function(t){var n,i,e,o,r,c=u.getDataView();if(c){if(mt(i=t.formula||t.value))return u.aji(i);if(o=function(){for(var i=0,e=c.visibleLength();i<e&&(n=c.ufe(t,i),A(n));i++);},(e=wt(t.value))&&(o(),!A(n)))return n;if("number"===(r=t.dataType||c.OGe(t)))return 0;if("date"===r)return new Date;!e&&o()}return n},getColumnBy:function(t){return u.Aeo(t)},getColumnFields:function(){var t,n,i,e,o,r=u.getDataView(),c=[];if(r)for(n=0,i=t=r.getColumnInfos(!0,!0);n<i.length;n++)(o=(e=i[n]).value)&&"string"==typeof o&&-1===o.indexOf("=")&&!e.cross&&c.push(o);return c},getTriggerFields:function(){var t,n,i,e,o,r=u.getDataView(),c=[];if(r)for(n=0,i=t=r.getColumnInfos(!0,!0);n<i.length;n++)!(o=(e=i[n]).value)||"string"!=typeof o||-1!==o.indexOf("=")||-1!==o.indexOf(".")||e.cross||e.isRelationship||c.push(o);return c},isRelationship:function(t){var n=u.getDataView();return n&&n.FPt(t,!0)},onOpening:function(){c.focus(!1)},onOpened:function(){u.getSheet().rt.u2()},onSaving:function(t){var n,e;t.column&&(t.column.caption=ht(t.column.caption)),t.originalColumn&&(t.originalColumn.caption=ht(t.originalColumn.caption)),t.col=i,u.options.submitDefineColumnCommand===it?!1!==(n=u.zA(t))&&u.wze.close():(t.command=t.cmd,t.cmd=u.options.submitDefineColumnCommand,n=u.zA(t),"function"==typeof t.onCompleted?(e=t.onCompleted,delete t.onCompleted,e((function(n){n&&n.success&&(t.cmd=t.command,u.zA(t)),u.wze&&u.wze.close()}))):!1!==n&&u.wze.close())},onClosed:function(){u.wze=X,c.focus()}}),u.wze.rQ(t,n)},t.prototype.getChanges=function(){var t=this.Mf,n=t.getDataSource();if(n)return n.getChanges()},t.prototype.submitChanges=function(){var t=this,n=this.Mf,i=n.getDataSource();return i?(t.beforeSubmitChanges(),new Promise((function(n){i.submitChanges((function(n,i,e){t.ONi(n,i,e)})).then((function(i){t.ENi(i),n()}))}))):Promise.resolve()},t.prototype.beforeSubmitChanges=function(){},t.prototype.ONi=function(t,n,i){var e=this,o=e.Mf;"delete"===i&&o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},t.prototype.ENi=function(t){var n=this,i=n.Mf,e=i.getDataSource(),o=e.visibleLength()+(n.options.allowAddNew?1:0);i.setRowCount(o),i.repaint()},t.prototype.cancelChanges=function(){var t,n,i,e=this.Mf,o=e.getDataSource();o&&(n=(t=o.isDataLengthChanged())||o.isDataRowOrderChanged(),i=(this.getChanges()||[]).some((function(t){return"addColumn"===t.type||"removeColumn"===t.type})),this.beforeCancelChanges(),o.cancelChanges(),this.GNi(o,t,n,i))},t.prototype.beforeCancelChanges=function(){},t.prototype.GNi=function(t,n,i,e){var r,u,c,a=this.Mf;this.suspendPaint(),u=(r=a.getRowCount())-1,c=a.getColumnCount(),a.Ut.clear(0,0,u,c,o.StorageType.data,[]),a.clearPendingChanges({row:0,col:0,rowCount:u,colCount:c,clearType:o.ClearPendingChangeType.dirty|o.ClearPendingChangeType.insert|o.ClearPendingChangeType.delete}),n?(this.uLi(t),this.EDi()):i&&this.EDi(),e?this.refreshBindColumns():this.qNi()&&this.rDi(),this.Teo()&&this.WDi(),this.resumePaint()},t.prototype.EDi=function(){var t,n,i,e,o=this.getDataView(),r=o.autoFilter;if(!r){for(n=(t=this.Mf).rowFilter().Mct.slice(),t.suspendPaint(),i=0;i<n.length;i++)e=n[i],t.Qy().execute({cmd:"clearFilter",sheetName:t.name(),cmdOption:{colIndex:e}});t.resumePaint()}},t.prototype.yy=function(t,n){var i,e=this.Mf;e.getParent().ib.yy(e,t||0,n||0),e.tw()},t.prototype.GDi=function(t){var n=this,i=n.Mf,e=n.uNi;t<e&&e===i.getViewportTopRow(1)&&n.yy(t)},t.prototype.wy=function(t,n){var i,e=this.Mf;e.getParent().ib.wy(e,t||0,n||0),e.ow()},t.prototype.pDi=function(t){var n=this,i=n.Mf,e=n.jIi;t<e&&e===i.getViewportLeftColumn(1)&&n.wy(t)},t.prototype.togglePinnedRows=function(t){var n,i=this.Mf,e=i.getDataSource();if(e&&!this.jFt&&!this.qNi())return this.j_r(),this.qni.startAddComboChanges(),n=e.togglePinnedRows(t),this.qni.addUndoChanges({type:D.TableSheetUndoType.PinnedRowsChanged}),this.tze(),this.qni.endAddComboChanges(),this.D_r(),n},t.prototype.tze=function(){var t=this.Mf,i=this.Mf.getDataSource().togglePinnedRows();if(-1===i)throw(0,n.getSR)().EXP_TooManyPinRecords;i!==this.uNi&&(this.suspendPaint(),t.frozenRowCount(i),this.GDi(i),this.resumePaint(),this.uNi=i)},t.prototype.togglePinnedColumns=function(t){var n,i,e,o,r,u,c,a=this.Mf,s=a.getDataSource();if(s&&!this.jFt)return n=this.kDi(),(i=t.indexOf(n))>=0&&t.splice(i,1),e=this.UDi(),o=a.rowFilter().BDi(),this.j_r(),this.qni.startAddComboChanges(),r=s.togglePinnedColumns(t),this.nze(e,o,r),u=this.UDi(),c=a.rowFilter().BDi(),this.qni.addUndoChanges({type:D.TableSheetUndoType.PinnedColumnsChanged,oldData:{oldFilterColumnsMap:C(u),oldSortColumnsMap:C(c)}}),this.qni.endAddComboChanges(),this.D_r(),r},t.prototype.nze=function(t,i,e){var o=null!=e?e:this.Mf.getDataSource().togglePinnedColumns(),r=this.Mf;if(-1===o)throw(0,n.getSR)().EXP_TooManyPinRecords;this.QDi(t),r.rowFilter().RDi(i),this.suspendPaint(),this.refreshBindColumns(),r.frozenColumnCount(o),this.kze(),this.pDi(o),this.resumePaint(),this.jIi=o},t.prototype.UDi=function(){var t,n,i,e,o=this.Mf,r=o.getDataSource(),u=r.oPt,c=o.rowFilter(),a=c&&c.Mct,s={};if(a&&a.length)for(t=-1,n=0,i=a;n<i.length;n++)e=i[n],s[t=u&&u.length?u[e]:e]=e;return s},t.prototype.QDi=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.getDataSource(),s=a.oPt,l=c.rowFilter(),f=l&&l.Mct,d=l&&l.rrt,h={};for(n in t)t.hasOwnProperty(n)&&(e=t[i=+n],(o=s&&s.length>0?s.indexOf(i):i)!==e&&(f[f.indexOf(e)]=o,r=d[e],delete d[e],h[o]=r));for(u in h)h.hasOwnProperty(u)&&(d[u]=h[u])},t.prototype.PDi=function(){var t=this.uNi,n=this.jIi;this.suspendPaint(),t>0&&this.togglePinnedRows(Ht(t)),n>0&&this.togglePinnedColumns(Ht(n)),this.resumePaint()},t.prototype.nPt=function(){var t,n,i;this.Mf.getDataSource().nPt()},t.prototype.nDe=function(){var t,n,i=this,e=i.Mf,o=i.getDataView(),r=e.H3,u=[];if(u=r.J$?Object.keys(r.J$).reduce((function(t,n){var i,e=null!==(i=r.J$[n])&&void 0!==i?i:{},o=e.name||e.dataField;return o&&t.push(o),t}),[]):Object.keys(r.Pq).map((function(t){return r.Pq[t]})),t=o.getColumnInfos().map((function(t){return o.ife(t)})),u.length!==t.length)i.eDe();else for(n=0;n<u.length;n++)if(u[n]!==t[n])return void i.eDe()},t.prototype.WDi=function(t,n,i){var e=this.Mf,o=this.jFt,r=this.lMi,u=e.getDataSource();o&&u.lde(t)&&(this.suspendPaint(),!1!==n&&this.nDe(),this.Mf.icr&&this.Mf.icr(),this.INi.Yeo(this.options.groupLayout.mode),this.INi.Jeo(this.options.groupLayout),this.INi.Hc(u.FFt,e.getRowCount()-1-(this.options.allowAddNew?1:0),e,r,i),this.resumePaint())},t.prototype.groupBy=function(t){var n,i,e=this.Mf,o=e.getDataSource();if(!o||0===arguments.length||!L(t)||this.qNi())return C(o&&o.groupBy());this.suspendPaint(),e.suspendCalcService(),this.PDi(),this.jFt=!0,n=C(this.lMi),this.lMi=C(t),(i=e.rowFilter())&&i.fIo&&i.fIo(),o.Agr(!this.Teo()),o.groupBy(this.lMi),this.WDi(_,!1),this.eDe(),i&&i.Gze(),e.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.qni.addUndoChanges({type:D.TableSheetUndoType.GroupOptions,oldData:n,newData:this.lMi})},t.prototype.eDe=function(t,n){var i,e,r,c,a;void 0===t&&(t=u.GroupLayoutMode.tabular),c=(r=(e=(i=this.Mf).getDataSource()).getColumnInfos()).length,a=r.filter((function(t){return t.isGroup})).length,this.pno(),i.setColumnCount(c),this.refreshBindColumns(n),a>0?(i.Cb.clear(o.SheetArea.viewport),t===u.GroupLayoutMode.tabular&&i.autoMerge((0,o.Ec)(-1,0,-1,a),h.AutoMergeDirection.column,h.AutoMergeMode.restricted)):this.Teo()&&i.Cb.clear(o.SheetArea.viewport)},t.prototype.removeGroupBy=function(){var t,n,i,e,r,u=this.Mf,c=u.getDataSource();c&&!this.qNi()&&(i=C(this.lMi),this.jFt=!1,this.lMi=_,this.suspendPaint(),u.suspendCalcService(),this.detailColumnsVisible(!0),(e=u.rowFilter())&&e.fIo&&e.fIo(),c.removeGroupBy(),r=c.getColumnInfos().length,u.setColumnCount(r),this.refreshBindColumns(),u.Cb.clear(o.SheetArea.viewport),null===(n=(t=this.Mf).icr)||void 0===n||n.call(t),this.INi.L0(u),e&&e.Gze(),u.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.qni.addUndoChanges({type:D.TableSheetUndoType.GroupOptions,oldData:i}))},t.prototype.detailColumnsVisible=function(t){var n,i,e,o,r=this.Mf,u=r.getDataSource();if(u){if(n=u.detailColumnsVisible(),0===arguments.length)return n;if((t===n||t||!this.Teo(!0))&&(u.detailColumnsVisible(t),u.BFt)){for(this.suspendPaint(),i=u.getColumnInfos(),e=0;e<i.length;e++)(o=i[e]).isGroup||r.setColumnVisible(e,o.visible);this.HDi(),this.resumePaint()}}},t.prototype.HDi=function(){var t=this.lMi,n=this.detailColumnsVisible();t&&!n&&this.expandGroup(t[t.length-1].field,!1)},t.prototype.groupOutlinePosition=function(t){var n,i;if(0===arguments.length)return this.INi.TMi();n=this.INi.TMi(),i=this.Mf,this.suspendPaint(),this.INi.TMi(i,t),this.resumePaint(),this.qni.addUndoChanges({type:D.TableSheetUndoType.GroupOutlinePosition,oldData:n,newData:t})},t.prototype.Beo=function(t,n){var i,e,o;this.jFt&&(e=(i=this.options.groupLayout).mode,(o=this.getDataView())&&(this.suspendPaint(),t&&(e===u.GroupLayoutMode.tabular?(o.Agr(!0),this.hno()):(0,v.isGroupOutlineCondensedLayout)(e)&&(this.gno(),o.Agr(!1),this.detailColumnsVisible()||this.detailColumnsVisible(!0))),this.WDi(_,!1,n),this.eDe(e,t),this.resumePaint()))},t.prototype.bno=function(){var t,n,i=this.getDataView(),e=0;if(i)for(t=i.getColumn();e<t.length&&(n=t[e]).isGroup;e++);return e},t.prototype.gno=function(){var t=this;t.fno(0,t.bno(),!1)},t.prototype.hno=function(){var t=this;t.dno(0,t.bno(),!1)},t.prototype.Seo=function(){this.Teo(!0)&&(this.WDi(),this.qni.addUndoChanges({type:D.TableSheetUndoType.ResetGroupOutline}))},t.prototype._to=function(){return this.options.groupLayout},t.prototype.Teo=function(t){return(!t||this.jFt)&&(0,v.isGroupOutlineCondensedLayout)(this.keo())},t.prototype.$eo=function(){return(0,v.isGroupCondensedLayout)(this.keo())},t.prototype.keo=function(){var t=this._to();return t&&It(t.mode)},t.prototype.Jto=function(){var t=this._to();return t&&bt(t.position)},t.prototype.Heo=function(){return"footer"!==this.Jto()},t.prototype.expandGroup=function(t,n){var i,e,o=this.lMi;o&&((i=n&&t===o[o.length-1].field&&!this.detailColumnsVisible())||(this.suspendPaint(),e={expand:!n,indexs:[]},this.INi.uMi(o,t,n,(function(t,n){e.level=t,e.indexs.push(n)})),this.qni.addUndoChanges({type:D.TableSheetUndoType.ExpandGroupByLevel,oldData:e,newData:{field:t,expand:n}}),this.resumePaint()))},t.prototype.expandGroupItem=function(t,n,i){var e,o,r=this,u=this.lMi;u&&((e=i&&t===u.length-1&&!this.detailColumnsVisible())||(this.suspendPaint(),o={index:n,level:t},this.INi.aMi(t,n,i,(function(e){o.expand=e,r.qni.addUndoChanges({type:D.TableSheetUndoType.ExpandGroupItem,oldData:o,newData:{index:n,level:t,expand:i}})})),this.resumePaint()))},t.prototype.VDi=function(t){return this.sMi(t,S,0)},t.prototype.DMi=function(t,n){return!(t>-1)||this.sMi(n,t,0)},t.prototype.sMi=function(t,n,i,e,o){return this.lno||this.INi.sMi(t,n,i,e,o)},t.prototype.nIe=function(t,n,i){var e,r,u=this;return!(!u.jFt||i!==o.SheetArea.viewport||!(e=u.Mf.getDataSource()))&&((r=e.kve(n))&&r.isGroup?!u.DMi(r.OFt,t):!u.VDi(t))},t.prototype.MMi=function(t){return this.INi.MMi(t)},t.prototype.IMi=function(t,n){return this.INi.IMi(t,n)},t.prototype.gMi=function(t){return this.INi.gMi(t)},t.prototype.FDi=function(t){var n,i=this.Mf.getDataSource();return!!i&&((n=i.kve(t))&&n.isGroup)},t.prototype.hMi=function(t){var n,i=this.Mf.getDataSource();return!!i&&((n=i.kve(t))&&n.DFt)},t.prototype.JDi=function(t){var n,i=this.Mf.getDataSource();return!!i&&((n=i.kve(t))&&n.GFt)},t.prototype.applyTableTheme=function(t){var n,i=this.Mf,e=this.hl,o=this.THr({type:"updateTableSheetCurrentTheme"});this.hl=t,n=C(this.options.alternatingRowOptions),this.suspendPaint(),this.qeo(i,n,t),this.options.alternatingRowOptions=n,this.resumePaint(),this.qni.addUndoChanges({type:D.TableSheetUndoType.ThemeChanged,oldData:e,newData:this.hl}),this.$Dr({type:"updateTableSheetCurrentTheme",theme:this.hl},o)},t.prototype.getTableTheme=function(){return this.hl},t.prototype.qeo=function(t,n,i){var e,r,u,c,a,s=new o.Style,l=new o.Style,f=i&&i.headerRowStyle();f&&l.h5(f),(e=i&&i.wholeTableStyle())&&(s.h5(e),l.h5(e)),s.cellPadding===_&&(s.cellPadding="5"),t.setDefaultStyle(s),l.showEllipsis===_&&(l.showEllipsis=!0),l.cellPadding===_&&(l.cellPadding="5"),t.setDefaultStyle(l,o.SheetArea.colHeader),(n=n||C(this.options.alternatingRowOptions))&&(n.style=[],n.step=[],r=i&&i.firstRowStripStyle(),n.style[0]=r?this.XDi(r):_,u=i&&i.firstRowStripSize(),n.step[0]=A(u)?1:u,c=i&&i.secondRowStripStyle(),n.style[1]=c?this.XDi(c):_,a=i&&i.secondRowStripSize(),n.step[1]=A(a)?1:a)},t.prototype.XDi=function(t){var n=new o.Style;return A(t.backColor)||(n.backColor=t.backColor),A(t.foreColor)||(n.foreColor=t.foreColor),A(t.font)||(n.font=t.font),A(t.borderLeft)||(n.borderLeft=t.borderLeft),A(t.borderTop)||(n.borderTop=t.borderTop),A(t.borderRight)||(n.borderRight=t.borderRight),A(t.borderBottom)||(n.borderBottom=t.borderBottom),A(t.textDecoration)||(n.textDecoration=t.textDecoration),n},t.prototype.applyFreeHeaderArea=function(t){if(0===arguments.length)return this.hNi;this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyFreeHeaderChanged,oldData:this.hNi,newData:t});var n=this.THr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi});this.hNi=t,this.refreshBindColumns(),this.$Dr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi},n)},t.prototype.printInfo=function(t){var n,i=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)),(n=i.printInfo&&i.printInfo.apply(i,arguments))&&Vt(n),t&&i.printInfo&&this.$Dr({type:"updateTableSheetPrintInfo",printInfo:i.printInfo()}),n},t.prototype.addRow=function(t){var n,i=this,e=this.Mf,o=e.getRowCount();return i.options.allowAddNew&&(o-=1),n=this.getDataView(),new Promise((function(r,u){n.insertItem(o,t,(function(){n.saveItem(o,(function(){i.mNi(o),r()}),Ut(e,o,u))}),Ut(e,o,u))}))},t.prototype.iM=function(t,n){var i=this;i.suspendPaint(),i.WDi(n),i.XNi(),i.resumePaint()},t.prototype.iDe=function(t){var n,i;this.Mf.gL(t,-1)},t.prototype.removeRow=function(t){var n,i=this,e=this.Mf;return i.zDi(t)?Promise.resolve():(n=this.jze(),this.qni.addUndoChanges({type:D.TableSheetUndoType.ChangeCollapse,oldData:n}),this.qni.addUndoChanges({type:D.TableSheetUndoType.RemoveRow}),new Promise((function(n,o){i.getDataView().removeRowData(t,1,(function(e){i.ZNi(t,e.removedCount),i.qni.addUndoChanges({type:D.TableSheetUndoType.PinnedRowsChanged}),n()}),Ut(e,t,o))})))},t.prototype.eze=function(){var t=this,n=t.Mf.getRowCount(),i=t.getDataView().length(),e=this.options.allowAddNew;t.suspendPaint(),t.Mf.ffe(n,i-n+(e?1:0),3,{rowExpand:!1,clearUndoNotInCommand:!1}),t.WDi(),t.uDi(),t.resumePaint()},t.prototype.Cze=function(t,n){var i=this;i.Mf.WBe(t,n||1,o.SheetArea.viewport,{clearUndoNotInCommand:!1}),i.kze(t)},t.prototype.beo=function(t,n){var i=this;i.Mf.KBe(t,n||1,o.SheetArea.viewport,!1),i.kze(t)},t.prototype.kze=function(t){var n,i=this;i.isShowHierarchyOutlineColumn()&&(n=i.Mf.outlineColumn.options().columnIndex,(A(t)?i.$Ni()!==n:t<n)&&i.wNi())},t.prototype.KDi=function(t,n){var i,e=this.Mf;e.QBe(t,n||1,3,!1),t<(i=e.frozenRowCount())&&e.frozenRowCount(i-1)},t.prototype.ZNi=function(t,n){var i=this;i.suspendPaint(),i.KDi(t,n),i.WDi(),i.XNi(),i.resumePaint()},t.prototype.saveRow=function(t){var n=this;return n.zDi(t)?Promise.resolve():new Promise((function(i,e){var o=n.Mf;n.getDataView().saveItem(t,(function(){n.SNi(t),i()}),Ut(o,t,e))}))},t.prototype.SNi=function(t){var n=this;n.suspendPaint(),n.resumePaint()},t.prototype.resetRow=function(t){var n=this;n.zDi(t)||n.getDataView().resetItem(t,(function(){n.xNi(t)}))},t.prototype.xNi=function(t){var n=this;n.iDe(t),n.iM(t)},t.prototype.addRowStateRule=function(t,n){var i,e,r,u;t!==o.RowColumnStates.invalid&&4!==t&&t!==o.RowColumnStates.edit&&(r=(e=(i=this).Mf).conditionalFormats)&&(u=[new o.Range(-1,-1,-1,-1)],r.addRowStateRule(t,n,u))},t.prototype.addColumnStateRule=function(t,n){var i,e,r,u;t!==o.RowColumnStates.invalid&&t!==o.RowColumnStates.dirty&&t!==o.RowColumnStates.edit&&(r=(e=(i=this).Mf).conditionalFormats)&&(u=[new o.Range(-1,-1,-1,-1)],r.addColumnStateRule(t,n,u))},t.prototype.addColumnHeaderStateRule=function(t,n){var i,e,o,r,u;if((4===t||1024===t||2048===t||4096===t)&&(o=(e=(i=this).Mf).conditionalFormats)){switch(r=function(t){n.decoration&&n.decoration.icons&&1===n.decoration.icons.length&&""===n.decoration.icons[0].src&&(n.decoration.icons[0].src=t)},t){case 4:r(F);break;case 1024:r(W);break;case 2048:r(V);break;case 4096:r(J)}return u=new a.ColumnHeaderStateRule(l.RuleType.columnStateRule,t,n),o.addRule(u)}},t.prototype.iAi=function(t){var n=t.conditionalFormats;n&&n.rules&&(n.rules=n.rules.filter((function(t){var n=[4,1024,2048,4096];return!(15===t.ruleType&&n.indexOf(t.state)>-1)})))},t.prototype.removeRowStateRule=function(t){t!==o.RowColumnStates.invalid&&4!==t&&t!==o.RowColumnStates.edit&&this._Di(t,!0)},t.prototype.removeColumnStateRule=function(t){t!==o.RowColumnStates.invalid&&t!==o.RowColumnStates.dirty&&t!==o.RowColumnStates.edit&&this._Di(t,!1)},t.prototype._Di=function(t,n){var i,e,o,r,u=this,c=u.Mf,a=c.conditionalFormats;if(a)for(e=0,o=i=a.getRules();e<o.length;e++)!(r=o[e]).isStateRule()||r.isRow()!==n||t&&t!==r.state()||a.removeRule(r)},t.prototype.getStateRules=function(){var t,n=this.Mf.conditionalFormats;return n?(t=n.getRules()).filter((function(t){var n=t.ruleType();return n===l.RuleType.rowStateRule||n===l.RuleType.columnStateRule})):[]},t.prototype.clearStateRules=function(){var t,n,i,e,o=this.Mf.conditionalFormats;if(o)for(n=(t=o.getRules()).length-1;n>=0;n--)(e=(i=t[n]).ruleType())!==l.RuleType.rowStateRule&&e!==l.RuleType.columnStateRule||o.removeRule(i)},t.prototype.qDi=function(){return this.Mf._1},t.prototype.hasRowState=function(t,n){var i=this.qDi().getState(n,0,t,!0,[{row:-1,rowCount:-1,col:-1,colCount:-1}]);return Ct(i)&&i===t},t.prototype.$Di=function(t,n,i,e){var o=this,r=this.getDataView(),u=this.Mf,c={};c[n]=i,r.updateItem(t,c,(function(i){e&&e.hasAddNewRowData&&!o.jFt||o.LNi(t,n)}),Ut(u,t),e)},t.prototype.LNi=function(t,n){var i=this,e=i.Mf;e.Mno()?e.jno(n):i.iM(t,n)},t.prototype.iTi=function(t,n,i){var e,o,r=this.getDataView();r&&(e=this.Mf,(o=r.getColumnInfos()).forEach((function(o,u){var c,a,s=o.defaultValue,l=i&&i[r.ife(o)];A(l)&&!A(s)&&(l=Tt(s)?s():s,s&&"="===s[0]&&((c=e.Uw()).DJ=r.length(),a=e.Lp.parse(c,s,0,0),l=e.Lp.evaluateExpression(c,a,{row:t,col:u}))),n(l,u,o)})))},t.prototype.aji=function(t){var n,i=this,e=i.getDataView();return e&&(n=e.nMt(e.Ywt(t),0)),n},t.prototype.TLt=function(t,n,i){return t.TLt(n,i)},t.prototype.EPt=function(){var t=this,n=t.jIi,i=t.getDataView();n>0&&(t.tTi=i.EPt(),t.togglePinnedColumns(Ht(n)))},t.prototype.jPt=function(){var t=this,n=t.tTi,i=t.getDataView(),e=i.jPt(n);e.length>0&&t.togglePinnedColumns(e),delete t.tTi},t.prototype.DPt=function(t,n){var i=this.getDataView();if(i)return i.DPt(t,n)},t.prototype.OPt=function(t,n,i){var e,o,r=this.getDataView();r&&(this.qni.startAddComboChanges(),e=r.OPt(t,n,i),(o=this.Mf.rowFilter())&&"function"==typeof o.nTi&&o.nTi(e),this.kTi(r),this.qni.addUndoChanges({type:D.TableSheetUndoType.SetDataView}),this.Teo(!0)&&this.qni.addUndoChanges({type:D.TableSheetUndoType.ResetGroupOutline}),this.qni.endAddComboChanges())},t.prototype.eTi=function(t,n){var i,e={},o;return this.iTi(t,(function(t,n,i){Tt(o=i.value instanceof Function?i.value.name:i.value)||mt(o)||wt(o)||(e[o]=t)}),n),e},t.prototype.oTi=function(t,n,i){var e=this,o=this.getDataView(),r=this.Mf,u=e.eTi(t,n);o.insertItem(t,u,(function(){}),Ut(r,t,i))},t.prototype.mNi=function(t){var n=this,i=n.Mf.getRowCount();n.Mf.ffe(i<1?t:t-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),n.refreshStyleRuleCache(),n.iM(t)},t.prototype.vDi=function(t){var n;return this.qDi().getState(t,-1,o.RowColumnStates.inserted)>0},t.prototype.jDi=function(t){var n;return this.qDi().getState(t,-1,256)>0},t.prototype.zNi=function(){var t,n=this,i=n.Mf;i.suspendPaint(),t=i.getColumnCount(),i.WBe(t,1,3,{clearUndoNotInCommand:!1}),n.uTi(!0,""),i.rowFilter().filterButtonVisible(t,!1),i.resumePaint()},t.prototype.cTi=function(){var t,n=this,i=n.Mf;i.suspendPaint(),t=n.kDi(),i.getValue(0,t,o.SheetArea.colHeader)===n.actionColumn.options().title&&i.KBe(t,1,3,!1),i.resumePaint()},t.prototype.uTi=function(t,n){var i,e,r,u,c,a,s,l,f,d,h=this,v=h.Mf;v.suspendPaint(),i=h.kDi(),(t||v.getValue(0,i,o.SheetArea.colHeader)===n)&&(e=new o.Style,r=[],(a=(c=(u=h.actionColumn.options()).actionButtons.remove)&&c.visible)&&r.push({useButtonStyle:!0,caption:c.title,imageType:c.icon,enabled:h.mDi.bind(h),visible:"auto"!==a||h.mDi.bind(h),position:o.ButtonPosition.left,command:function(t,n,i,e){h.Mf.ki(o.Events.RowOperation,{sheet:h,sheetName:h.name(),actionType:at.remove,row:n}),h.removeRow(n).catch(rt)}}),(l=(s=u.actionButtons.save)&&s.visible)&&r.push({useButtonStyle:!0,caption:s.title,imageType:s.icon,enabled:h.LDi.bind(h),visible:"auto"!==l||h.LDi.bind(h),position:o.ButtonPosition.left,command:function(t,n,i,e){h.Mf.ki(o.Events.RowOperation,{sheet:h,sheetName:h.name(),actionType:at.save,row:n}),h.saveRow(n).catch(rt)}}),(d=(f=u.actionButtons.reset)&&f.visible)&&r.push({useButtonStyle:!0,caption:f.title,imageType:f.icon,enabled:h.LDi.bind(h),visible:"auto"!==d||h.LDi.bind(h),position:o.ButtonPosition.left,command:function(t,n,i,e){h.Mf.ki(o.Events.RowOperation,{sheet:h,sheetName:h.name(),actionType:at.reset,row:n}),h.resetRow(n)}}),r.length>0&&(e.cellButtons=r),e.locked=!1,v.setStyle(-1,i,e),h.JNi(-1,i,u.headerStyle,o.SheetArea.colHeader),v.setValue(0,i,u.title,o.SheetArea.colHeader),v.setColumnWidth(i,u.width)),v.resumePaint()},t.prototype.mDi=function(t){return!this.zDi(t)},t.prototype.LDi=function(t){var n=this,i=n.jDi(t),e=n.vDi(t),o=n.zDi(t);return i||e&&!o},t.prototype.CNi=function(){var t=this.Mf,n=t.getRowCount();n=n<2?n:n-2,t.ffe(n,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},t.prototype.rTi=function(){var t=this.Mf;t.QBe(t.getRowCount()-1,1,3,!1)},t.prototype.aNi=function(){var t,n=this.Mf;n.suspendDirty(),n.options.allowCellOverflow=!1,n.options.rowHeaderAutoText=o.HeaderAutoText.blank,n.options.clipBoardOptions=o.ClipboardPasteOptions.values,n.options.isProtected=!0,(t=n.options.protectionOptions).allowSort=!0,t.allowFilter=!0,t.allowResizeColumns=!0,t.allowDragInsertColumns=!0,t.allowOutlineRows=!0},t.prototype.lNi=function(t){var n,i,e=this,o=e.Mf;if(e.options.allowAddNew&&t++,t!==o.getRowCount())for(n in o.Ut.cj(t),o.Ww=!0,this.X$)this.X$[n]&&(i=this.X$[n]).xts()},t.prototype.aTi=function(t,n){var i=this,e=i.getDataView(),r=e&&e.iRt&&e.iRt.length,u=i.Mf.getRowCount();i.zDi(t)&&u!==r+1&&(i.Mf.ki(o.Events.RowOperation,{sheet:i,sheetName:i.name(),actionType:at.addNewEmptyRow,row:t+1}),i.CNi(),i.WDi(),i.XNi())},t.prototype.pTi=function(t,n){var i=this,e=t.value;return!("string"==typeof e&&e.indexOf(".")>-1)||(e=e.split(".")[0],!A(i.getDataView().ufe({value:e},n)))},t.prototype.Gno=function(){var t,n,i,e=this,o=e.Mf,r=e.getDataView(),u=r.visibleLength(),c=e.Bno;for(t in c)c.hasOwnProperty(t)&&(n=c[t],i=Number(t),e.zDi(i)||i>=u?e.oTi(i,n):r.updateItem(i,n,(function(){}),Ut(o,i)));e.Bno=_},t.prototype.tDe=function(){var t=this,n=t.Mf,i=n.getRowCount()-(t.options.allowAddNew?1:0),e=t.getDataView().visibleLength();i<=e?(n.setRowCount(e-(t.options.allowAddNew?0:1)),n.ffe(i-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})):(n.setRowCount(e),t.options.allowAddNew&&n.ffe(e,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}))},t.prototype.v7=function(){var t=this,n=t.Mf;function i(i,e){if(t.nPt(),t.WDi(),t.HDi(),t.XNi(),t.getParent().options.calcOnDemand){var o=t.getDataView().gLt;o&&o.o_t(_,!0)}else setTimeout((function(){var i,e=null===(i=t.getDataView())||void 0===i?void 0:i.gLt;e&&(n.suspendCalcService(),e.o_t(_,!0),n.resumeCalcService(!1))}),10)}n.D3(o.Events.EditStarting+$,(function(n,i){i.col===t.kDi()&&(i.cancel=!0)})),n.D3(o.Events.EditEnded+$,(function(n,i){var e,o=i.row,r=i.ignoreValueChange;if(!r){if((0,f.isNullOrEmpty)(i.editingText)&&t.zDi(o)){if(e=t.fDi(i.col),A(e.defaultValue)||!t.pTi(e,o))return;t.oTi(o)}t.aTi(o,!0)}})),n.D3(o.Events.ClipboardPasting+$,(function(n,i){var e=i.cellRange,o=e.col,r=e.col+e.colCount-1,u=t.kDi(),c;o<=u&&u<=r&&(i.cancel=!0),i.cancel||(t.Bno={},t.getDataView().mme())})),n.D3(o.Events.ClipboardPasted+$,(function(n,i){t.Gno();var e=i.cellRange,o=e.row+e.rowCount-1;t.aTi(o),t.getDataView().gme(),t.iM(o)})),n.D3(o.Events.DragFillBlock+$,(function(n,i){var e,o,r=i.fillRange,u=i.fillDirection,c=r.col+r.colCount-1;0===u&&(-1!==r.row&&-1!==r.rowCount&&(c+=1),o=(e=i.sheet.getSelections()[0]).col+e.colCount-1,c=Math.max(c,o)),c===t.kDi()&&(i.cancel=!0),i.cancel||(t.Bno={},t.getDataView().mme())})),n.D3(o.Events.DragFillBlockCompleted+$,(function(n,i){t.Gno();var e=i.fillRange,o=e.row+e.rowCount-1;t.aTi(o),t.getDataView().gme(),t.iM(o)})),n.D3(o.Events.DragDropBlock+$,(function(i,e){var o,r,u=e.fromCol,c=e.toCol,a=e.colCount,s=e.insert,l=e.fromRow,f=e.toRow,d=u+a-1,h=c+a-1,v=t.kDi();d===v||h===v?e.cancel=!0:s&&-1===l&&-1===f&&(o=u<c?c-1:c,t.OPt(u,o,a),t.UMi&&t.UMi.updatePanelLayout(),r=u<c?c-a:c,n.setSelection(-1,r,-1,a),e.cancel=!0),e.cancel||(t.Bno={},t.getDataView().mme())})),n.D3(o.Events.DragDropBlockCompleted+$,(function(n,i){t.Gno();var e=i.toRow+i.rowCount-1;t.aTi(e),t.getDataView().gme(),t.iM(e)})),n.D3(o.Events.ValueChanged+$,(function(n,i){t.aTi(i.row)})),n.D3(o.Events.CellChanged+$,(function(i,e){var r,u=e.row,c=e.col,a=e.sheetArea,s=e.newValue;a===o.SheetArea.colHeader&&(r=u<n.Ut.getFreeAreaRowCount(a),"value"===e.propertyName?r?t.YNi(u,c,"value",s):t.HNi(c):"formula"===e.propertyName&&r&&t.YNi(u,c,"formula",s))})),n.D3(o.Events.RangeChanged+$,(function(i,e){var r,u,c,a,s,l,f,d;if(6===e.action)for(u=0,c=r=e.changedCells;u<c.length;u++)s=(a=c[u]).row,l=a.col,(f=a.sheetArea)===o.SheetArea.colHeader&&((d=s<n.Ut.getFreeAreaRowCount(f))?t.YNi(s,l,"value",n.getValue(s,l,f)):t.HNi(l))})),n.D3(o.Events.ColumnWidthChanged+$,(function(t,i){var e=n.getDataSource(),o=e.getColumnInfos();!i.header&&!A(o)&&o.length>0&&i.colList.forEach((function(t){var i=o[t]&<({},o[t]);A(i)||(i.width=n.Do(t,1),e.JEe(i))}))})),n.D3(o.Events.ColumnChanged+$,(function(i,e){var r,u,c,a;"isVisible"!==e.propertyName||1!==e.sheetArea&&3!==e.sheetArea||(r=n.getDataSource())&&(u=r.kve(e.col))&&(t.qni.startAddComboChanges(),c=!1!==u.visible,r.JEe(lt(lt({},u),{visible:e.newValue})),c!==e.newValue&&t.Teo(!0)&&(a=n.k9(o.SheetArea.viewport),(e.newValue?e.col===a:e.col<a)&&t.Seo()),t.qni.endAddComboChanges())})),n.D3(o.Events.RangeFiltering+$,(function(){t.yno=!0})),n.D3(o.Events.RangeFiltered+$,(function(n,e){t.yno=!1,i(n,e)})),n.D3(o.Events.RangeFilterClearing+$,(function(){t.nAi=!0})),n.D3(o.Events.RangeFilterCleared+$,(function(n,e){t.nAi=!1,i(n,e)})),n.D3(o.Events.RangeSorting+$,(function(){t.bIo()})),n.D3(o.Events.RangeSorted+$,(function(n,i){t.NIo(i.col)})),n.D3(o.Events.OutlineColumnCheckStatusChanged+$,(function(n,i){t.sDi()}))},t.prototype.Ob=function(t,i,e,r){var c,a,s,l,f,d,h,v,g,M,I,b,N=this;if("allowAddNew"===t)!0===i&&!1===e?N.CNi():!1===i&&!0===e&&N.rTi();else if("alternatingRowOptions"===t)N.Mf.repaint();else if("defaultStackRowHeight"===t)N.Mf.zw();else if("isDesignMode"===t)N.vNi(i);else if("sheetTabColor"===t)c=N.getParent(),A(c.getHost())||c.AC(!1);else if("enableDefineColumn"===t)N.Mf.suspendPaint(),N.Mf.options.addColumnButtonOption=i?{visible:!0,width:X,command:N.options.defineColumnCommand,style:X,tooltip:(0,n.getSR)().defineColumn}:{visible:!1,width:X,command:nt,style:X,tooltip:X},N.Mf.resumePaint();else if("defineColumnCommand"===t)N.Mf.suspendPaint(),N.Mf.options.addColumnButtonOption?N.Mf.options.addColumnButtonOption.command=i:N.Mf.options.addColumnButtonOption={visible:!0,width:X,command:N.options.defineColumnCommand,style:X,tooltip:(0,n.getSR)().defineColumn},N.Mf.resumePaint();else if("showRowNumber"===t)N.Mf.suspendPaint(),i?(N.Mf.setColumnCount(N.Mf.getColumnCount(o.SheetArea.rowHeader)+1,o.SheetArea.rowHeader),N.Mf.options.rowHeaderAutoText=o.HeaderAutoText.numbers):(N.Mf.setColumnCount(N.Mf.getColumnCount(o.SheetArea.rowHeader)-1,o.SheetArea.rowHeader),N.Mf.options.rowHeaderAutoText=o.HeaderAutoText.blank),N.Mf.resumePaint();else if("groupLayout"===t)N.Mf.suspendPaint(),i?(a=It(i.mode),s=i.position,l={mode:a},s&&bt(s)&&(l.position=s),f=function(t,n,i){var e,o;return"mode"===t?(e=It(n))!==i&&(o=!0):"position"===t&&(e=bt(n)?n:_),[e,function(){N.Beo(o,!0)}]},d=N.options.groupLayout,["mode","position"].forEach((function(t){var n=l[t];Nt(d,t,f),d["_"+t]=n})),N.Beo(i.mode!==(e&&e.mode),!0)):N.options.groupLayout=r&&r.groupLayout?lt({},r.groupLayout):{mode:u.GroupLayoutMode.tabular},N.Mf.resumePaint();else if("allowSorts"===t){if(N.Mf.suspendPaint(),!1===i)(h=N.Mf.rowFilter())&&h.getMultiSortCount&&h.getMultiSortCount()>0&&(h.jFt&&h.jFt()?(h.dIo(),h.vIo(),(v=N.Mf.getDataSource())&&(g=h.sIo().map((function(t){return{field:N.dDi(t.index),ascending:t.ascending,compare:t.compareFunction}})),v.sort(g))):(M=h.lIo(),h.clearAllMultiSorts(),M.length>0&&(I=M[0],h.setSortInfo({index:I.index,ascending:I.ascending}),(v=N.Mf.getDataSource())&&(g=h.xno().map((function(t){return{field:N.dDi(t.index),ascending:t.ascending,compare:t.compareFunction}})),v.sort(g)))));else if(!0===i&&(h=N.Mf.rowFilter())&&h.xno&&0===h.getMultiSortCount())for(g=h.xno(),b=0;b<g.length;b++)h.iIo.push(g[b].index);N.Mf.resumePaint()}this.qni.addUndoChanges({type:D.TableSheetUndoType.OptionChanged,oldData:e,newData:i,key:t})},t.prototype.vNi=function(t){var n,i=this.Mf;i.suspendPaint(),i.suspendEvent(),t&&((n=new o.CellTypes.Text).isImeAware=function(){return!1}),i.setCellType(-1,-1,n,o.SheetArea.colHeader),i.resumeEvent(),i.resumePaint()},t.prototype.getDefaultOptions=function(){return{allowAddNew:!0,allowSorts:!0,alternatingRowOptions:{step:[1,1],style:new o.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:tt,submitDefineColumnCommand:it,enableDefineColumn:!1,groupLayout:{mode:u.GroupLayoutMode.tabular},columnTypeItems:[{name:u.ColumnTypes.Number,text:(0,n.getSR)().columnTypeNumber,iconClass:Dt(u.ColumnTypes.Number)},{name:u.ColumnTypes.Text,text:(0,n.getSR)().columnTypeText,iconClass:Dt(u.ColumnTypes.Text)},{name:u.ColumnTypes.Formula,text:(0,n.getSR)().columnTypeFormula,iconClass:Dt(u.ColumnTypes.Formula)},{name:u.ColumnTypes.Lookup,text:(0,n.getSR)().columnTypeLookup,iconClass:Dt(u.ColumnTypes.Lookup)},{name:u.ColumnTypes.Date,text:(0,n.getSR)().columnTypeDate,iconClass:Dt(u.ColumnTypes.Date)},{name:u.ColumnTypes.Checkbox,text:(0,n.getSR)().columnTypeCheckbox,iconClass:Dt(u.ColumnTypes.Checkbox)},{name:u.ColumnTypes.Select,text:(0,n.getSR)().columnTypeSelect,iconClass:Dt(u.ColumnTypes.Select)},{name:u.ColumnTypes.Currency,text:(0,n.getSR)().columnTypeCurrency,iconClass:Dt(u.ColumnTypes.Currency)},{name:u.ColumnTypes.Percent,text:(0,n.getSR)().columnTypePercent,iconClass:Dt(u.ColumnTypes.Percent)},{name:u.ColumnTypes.Phone,text:(0,n.getSR)().columnTypePhone,iconClass:Dt(u.ColumnTypes.Phone)},{name:u.ColumnTypes.Email,text:(0,n.getSR)().columnTypeEmail,iconClass:Dt(u.ColumnTypes.Email)},{name:u.ColumnTypes.URL,text:(0,n.getSR)().columnTypeURL,iconClass:Dt(u.ColumnTypes.URL)},{name:u.ColumnTypes.CreatedTime,text:(0,n.getSR)().columnTypeCreatedTime,iconClass:Dt(u.ColumnTypes.CreatedTime)},{name:u.ColumnTypes.ModifiedTime,text:(0,n.getSR)().columnTypeModifiedTime,iconClass:Dt(u.ColumnTypes.ModifiedTime)},{name:u.ColumnTypes.Attachment,text:(0,n.getSR)().columnTypeAttachment,iconClass:Dt(u.ColumnTypes.Attachment)},{name:u.ColumnTypes.Barcode,text:(0,n.getSR)().columnTypeBarcode,iconClass:Dt(u.ColumnTypes.Barcode)}]}},t.prototype.Zp=function(t){var n,i,e,r=this,u=r.getDefaultOptions();r.options=o.mt.b0(u,(function(t,i,e){r.Ob(t,i,e,u),r.$Dr({type:"updateTableSheetOptions",options:r.options},n)}),(function(){return n=r.THr({type:"updateTableSheetOptions"}),!0})),i=r.options,e=j(!0,{},u,e=t||{}),p(e,(function(t,n){i.hasOwnProperty(t)&&(i[t]=n)}))},t.prototype.sNi=function(){var t=this;t.actionColumn=new c.ActionColumn((function(n,i){var e;t.getDataView()&&(n.visible&&!i.visible?t.cTi():!n.visible&&i.visible?t.zNi():n.visible&&i.visible&&t.uTi(!1,n.title))}))},t.prototype.zDi=function(t){var n=this;return n.options.allowAddNew&&t===n.Mf.getRowCount()-1},t.prototype.kTo=function(t,n,i){var e,o,r,u,c,a=this;return a.zDi(t)?_:(e=a.getDataView())&&(o=e.getColumn(n))?(r=A(i),u=""===i,c=function(t){return r&&!A(t.showNullAs)?""+t.showNullAs:u&&!A(t.showEmptyAs)?""+t.showEmptyAs:_},(r||u)&&a.Mf&&a.Mf.isEditing()?i:c(o)):_},t.prototype.kDi=function(){var t=this,n=t.Mf;return t.actionColumn.options().visible?n.getColumnCount()-1:-1},t.prototype.id=function(){return this.getDataView().getDirtyIndexes()},t.prototype.e1e=function(){return this.options.sheetTabColor},t.prototype.parameter=function(t){var n,i,e,o;if(0===arguments.length){for(e in i={},n=this.o1e)n.hasOwnProperty(e)&&(i[e]=ot(n[e]));return i}if(t){for(e in o={},t)t.hasOwnProperty(e)&&(o[e]=et(t[e]));this.o1e=o}},t.prototype.isAlternatingRowStyleColumn=function(t){return!0},t.prototype.getGroupingHeaderHeight=function(t,n){var i=this.options.groupLayout.mode;return i===u.GroupLayoutMode.outline?2*this.Mf.defaults.rowHeight:i===u.GroupLayoutMode.condensed?this.Mf.defaults.rowHeight:0},t.prototype.getGroupingFooterHeight=function(t,n){return this.getGroupingHeaderHeight(t,n)},t.prototype.refreshDataProvider=function(){var t,n;for(t in this.X$)this.X$[t]&&(n=this.X$[t],this.Mf.Cb.IP(),n.clearCache(),n.updateSticky(),n.updateRange(),n.repaintHost())},t.prototype.getValueInOneCell=function(t){var n=t.row,i=t.col,e=t.rowSpacingIndex,r=t.isAfterRowSpacing,u=this.Mf.$go(n,i,o.SheetArea.viewport,{rowSpacingIndex:e,isAfterRowSpacing:r});if(u&&u.getValueInOneCell)return u.getValueInOneCell(Object.assign({sheet:this.Mf},t))},t.prototype.isNewRow=function(t){return this.zDi(t)},t.prototype.onNewRowChanged=function(t,n){this.aTi(t,n)},t.prototype.isGroup=function(){return this.jFt},t.prototype.isGroupOutlineCondensedLayout=function(t){return this.Teo(t)},t.prototype.registerDataProvider=function(t,n){this.X$||(this.X$={}),this.X$[t]=n},t.prototype.unregisterDataProvider=function(t){this.X$[t]&&delete this.X$[t]},t.prototype.notChangeActiveSheetWhenUndo=function(){return Object.keys(this.X$).length>0},t.prototype.$Dr=function(t,n){var i=this.getParent();i&&(t.tableSheetId=this.jKe(),n&&(t.changingContext=n),i.$Dr(t))},t.prototype.THr=function(t){var n=this.getParent();return n&&(t.tableSheetId=this.jKe(),t.changingContext={},n.THr(t)),t.changingContext},t._ID=1,t}(),n.TableSheet=st,(0,o.qDr)(st),o.Workbook.ch("tableSheet",{init:function(){var t=this;o.Commands.uri(t.commandManager()),t.bind(o.Events.ActiveSheetChanged+K,(function(){(0,M.updateStatusBarOnActiveSheetChanged)(t)}))},onCultureChanged:function(){(0,n.getSR)()},createSheetTab:function(t){t.type===o.SheetType.tableSheet?(t.name||(t.name=on(this.qv())),t.sheetTab=new st(t.name)):t.type===o.SheetType.customSheetTab&&(t.sheetTab=new u.CustomSheetTab(t.name))},getAdditionalWorksheetToSJSFormat:function(t){var n,i,e;if(t.fileType===o.OpenSaveFileType.excel)for(n=0,i=this.mp;n<i.length;n++)(e=i[n])._gi===o.SheetType.tableSheet&&t.sheets.push(e.getSheet())},preFromJson:function(t,n,i){st._ID=1},preFromSJSFormat:function(t,n,i){st._ID=1},dispose:function(){this.unbind(o.Events.ActiveSheetChanged+K)}}),o.Worksheet.ch("tableSheet",{processKeyDown:function(t){var n=this.rt,i=this.NMi;i&&i.options.isDesignMode&&n.q9&&(t.r=!0)},processMouseDown:function(t){var n,i=t.hitInfo.cellTypeHitInfo;i&&i.isRowAction&&(n=qt(t.e),i.isShift=n.isShift,i.isCtrl=n.isCtrl),A(Zt(this))||(0,M.processStatusBarOnMouseDown)(Zt(this).getParent().b3t,t.hitInfo)}}),o.Y8.ch("tablesheet",{priority:7e3,setValue:function(t){var n,i,e,r,u,c,a,s,l=t.row,d=t.col,h=t.value,v=t.sheetArea,g=this.Mf,M=g.H3,I=Zt(g);if(v===o.SheetArea.viewport&&M&&M.getSource()&&Jt(I)){if(n=!1,i=void 0,r=!1,u=I.fDi(d,!0),I.options.allowAddNew&&M.getRowCount()===l&&(!I.Bno||A(I.Bno[l]))){if((0,f.isNullOrEmpty)(h)&&A(u.defaultValue)||!I.pTi(u,l))return void(t.isValueSet=!0);if((e=I.getDataView()).mme(),(r=e.K3e()&&!I.Bno)&&(I.Bno={}),I.Bno)I.Bno[l]={};else if(c=!1,I.oTi(l,_,(function(){c=!0,t.isValueSet=!0,e.gme()})),c)return;n=!0,i=e.length()-1}(a=g.Ut.q_(!1,o.SheetArea.colHeader,d)).name&&(h=o.util.V0(h),I.Bno?((s=I.Bno[l])||(I.Bno[l]=s={}),s[a.name]=h):I.$Di(l,a.name,h,{hasAddNewRowData:n,currentModelIndex:i}),t.isValueSet=!0),n&&(r&&(I.oTi(l,I.Bno[l]),I.Bno=_),e.gme())}}}),ut[k]={name:k,icons:[R],command:"PinRow"},ut[E]={name:E,icons:[Q,Y,H]},ut[Z]={name:Z,icons:[P]},ut[U]={name:U,icons:[o.ButtonImageType.minus],command:"RemoveRow"},ut[G]={name:G,icons:[o.ButtonImageType.ok],command:"SaveRow"},ut[B]={name:B,icons:[o.ButtonImageType.clear],command:"ResetRow"}},6153:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.aeo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.ato(n,"codeSet",[{text:"auto",value:"auto"},{text:"A",value:"A"},{text:"B",value:"B"},{text:"C",value:"C"}]),t.neo(n),t.oeo(n),n},n}(o.Meo),n.aeo=c},6277:function(t,n,i){var e,o;Object.defineProperty(n,"__esModule",{value:!0}),n.ActionColumn=void 0,e=i(1376),o=function(){function t(t){this.LEt={visible:!1,title:"Actions",width:210,actionButtons:{remove:{visible:!0,title:"Remove",icon:e.ButtonImageType.minus},save:{visible:!0,title:"Save",icon:e.ButtonImageType.ok},reset:{visible:!0,title:"Reset",icon:e.ButtonImageType.clear}},headerStyle:null},this.hce=t}return t.prototype.options=function(t){if(t){var n=this.LEt;return this.LEt=t,void this.hce(n,t)}return this.LEt},t.prototype.toJSON=function(){return this.LEt},t.prototype.fromJSON=function(t){this.LEt=t},t}(),n.ActionColumn=o},6406:function(t,n,i){var e,o,r,u,c,a;Object.defineProperty(n,"__esModule",{value:!0}),n.mZe=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(591),c=e.mt.En,a=function(){function t(t){var n;this.LEt=t}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.DZe)||void 0===t?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i,o,r=this,u=r.LEt,a=r.yZe=(0,e.GC$)(c("div"));return a.addClass("gc-defined-column-field-item-container gc-defined-column-input"+(u.className?" "+u.className:"")),u.label&&u.label.text&&((t=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),t.appendTo(a),(n=(0,e.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label-text"),n.attr("for","gc-defined-column-input-"+u.inputId),n.appendTo(t),n.text(u.label.text)),(i=r.zZe=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-container"),i.appendTo(a),r.isVisible()||a.addClass("gc-defined-column-hide"),a.attr("aria-hidden",r.isVisible()?"false":"true"),r.ZX(),(o=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-validation-container"),o.appendTo(a),a},t.prototype.ZX=function(){var t,n,i,r,a=this,s=a.LEt,l=a.zZe;a.isDisable()&&l.addClass("gc-defined-column-disabled"),a.SZe()&&(l.addClass("gc-defined-column-click"),l.bind("click",(function(t){if(!a.isDisable())return s.onClick(t),!1}))),s.label&&((t=a.LZe=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),(0,u.isFunction)(s.label.onClick)&&t.bind("click",(function(t){if(!a.isDisable())return s.label.onClick(t),!1})),t.appendTo(l),(n=(0,e.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label "+s.label.iconClass),n.attr("for","gc-defined-column-input-"+s.inputId),n.appendTo(t),(0,o.isNullOrEmpty)(s.label.iconClass)&&n.hide()),(i=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-input-container"),i.appendTo(l),"color"===s.type?s.tag="sjs-color-picker":(0,u.isNullOrUndefined)(s.type)&&(s.tag="sjs-text-editor"),r=a.DZe=s.tag?(0,u.createDCElement)(s.tag):(0,e.GC$)(c("input")),!s.tag&&r.addClass("gc-defined-column-field-input-container-input"),r.attr("id","gc-defined-column-input-"+s.inputId),!s.tag&&r.attr("type",s.type||"text"),r.attr("aria-disabled",a.isDisable()?"true":"false"),a.isDisable()?r.attr("disabled","true"):r.removeAttr("disabled"),s.placeholder&&r.attr("placeholder",s.placeholder),(s.label&&s.label.text||s.placeholder)&&r.attr(s.tag?"ariaLabel":"aria-label",s.label&&s.label.text||s.placeholder),(0,u.isNullOrUndefined)(s.defaultValue)||(r.attr("value",s.defaultValue),r.val(s.defaultValue)),s.isReadOnly&&r.attr("readonly","true"),s.maxLength&&r.attr("maxlength",s.maxLength),a.v7(),r.appendTo(i),s.label&&s.label.suffixIconClass&&((t=a.kZe=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),(0,u.isFunction)(s.label.onSuffixClick)&&(t.addClass("gc-defined-column-click-quieter"),t.bind("click",(function(t){if(!a.isDisable())return s.label.onSuffixClick(t),!1}))),t.appendTo(l),(n=(0,e.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label "+s.label.suffixIconClass),n.appendTo(t))},t.prototype.v7=function(){var t=this,n=t.LEt,i=t.DZe,e=function(i){return function(e){t.isValid()||t.resetValid(t.validate()),t.isDisable()||(n.maxLength&&e.target.value&&n.maxLength<e.target.value.length?t.setValue(e.target.value.slice(0,n.maxLength)):i&&i(e))}};t.OZe()&&i.bind("blur",e((function(t){n.onBlur&&n.onBlur(t.target.value,t)}))),t.ZZe()&&i.bind("input",e((function(t){n.onChange(t.target.value,t)})))},t.prototype.setFocus=function(){var t;this.DZe.focus()},t.prototype.setOptions=function(t){var n=this;n.L0(),n.LEt=t,n.ZX()},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.zZe;t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),t.DZe.attr("aria-disabled",n?"false":"true"),n?t.DZe.removeAttr("disabled"):t.DZe.attr("disabled","true")},t.prototype.validate=function(){var t,n=this,i=n.LEt.validate,e=!n.isDisable();if(i&&e){if(i.required&&(0,o.isNullOrEmpty)(n.value))return n.resetValid(!1,{required:!1}),!1;if(i.validating)if("boolean"==typeof(t=i.validating(n.value))){if(!t)return n.resetValid(!1),!1}else if(!t.success)return n.resetValid(!1,t),!1}return n.resetValid(!0),!0},t.prototype.resetValid=function(t,n){var i=this,o=i.DZe,u=i.zZe,c=(0,e.GC$)(i.yZe.find(".gc-defined-column-field-label-validation-container")[0]);t?(u.removeClass("gc-define-column-invalid"),o.removeClass("gc-define-column-invalid"),o.attr("aria-invalid","false"),c.hide(),c.empty()):u.hasClass("gc-define-column-invalid")||(u.addClass("gc-define-column-invalid"),o.addClass("gc-define-column-invalid"),o.attr("aria-invalid","true"),!1===n.required?c.html((0,r.getSR)().defineColumnRequired):n.errorMessage&&c.html(n.errorMessage),n&&c.show())},t.prototype.isValid=function(){var t,n;return!this.zZe.hasClass("gc-define-column-invalid")},t.prototype.OZe=function(){var t=this,n=t.LEt;return!n.isReadOnly&&!t.isDisable()&&n.validate&&(n.validate.required||(0,u.isFunction)(n.validate.validating))},t.prototype.isVisible=function(){return!0!==this.LEt.hide},t.prototype.resetVisible=function(){var t=this,n=t.isVisible(),i=t.yZe;t.LEt.hide=n,n?i.addClass("gc-defined-column-hide"):i.removeClass("gc-defined-column-hide"),t.DZe.attr("aria-hidden",n?"true":"false")},t.prototype.ZZe=function(){var t,n=this.LEt;return!n.isReadOnly&&(0,u.isFunction)(n.onChange)},t.prototype.SZe=function(){var t,n=this.LEt;return n.isReadOnly&&(0,u.isFunction)(n.onClick)},t.prototype.setValue=function(t,n){var i=this;i.DZe.val(t),!1!==n&&(0,u.triggerEvent)(i.DZe,"input")},t.prototype.getInputElement=function(){return(0,u.getSJSInput)(this.DZe)},t.prototype.bind=function(t,n){return this.DZe.bind(t,n),this},t.prototype.unbind=function(t){return this.DZe.unbind(t),this},t.prototype.dispose=function(){var t=this;t.L0(),t.zZe=u.keyword_null},t.prototype.L0=function(){var t=this;t.ZZe()&&t.DZe.unbind("input"),t.OZe()&&t.DZe.unbind("blur"),"sjs-text-editor"===t.LEt.tag&&t.DZe.unbind("sjs-mounted"),t.SZe()&&(t.zZe.removeClass("gc-defined-column-click"),t.zZe.unbind("click")),t.LZe&&(0,u.isFunction)(t.LEt.label.onClick)&&t.LZe.unbind("click"),t.kZe&&(0,u.isFunction)(t.LEt.label.onSuffixClick)&&t.kZe.unbind("click"),t.LZe=u.keyword_null,t.kZe=u.keyword_null,t.DZe=u.keyword_null,t.zZe.empty()},t}(),n.mZe=a},6423:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h=this&&this.mJr||function(){return h=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},h.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.vto=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(6018),a=i(591),s=i(2227),l=e.mt,f=l.En,d=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.mto=(0,e.GC$)(f("div"));return n.addClass("gc-defined-column-combo-box-style-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.mto,i=t.LEt;return t._editorValueType=new u.Kze({inputId:"combo-box-editor-value-type",items:[{text:(0,o.getSR)().columnTypeComboBoxEditorValueType.text,value:s.EditorValueType.text},{text:(0,o.getSR)().columnTypeComboBoxEditorValueType.index,value:s.EditorValueType.index},{text:(0,o.getSR)().columnTypeComboBoxEditorValueType.value,value:s.EditorValueType.value}],label:{text:(0,o.getSR)().columnTypeComboBoxEditorValueTypes},onChange:function(){t.Nto()}}),t._editorValueType.create().appendTo(n),t._editorValueType.setValue((0,a.isNullOrUndefined)(i.editorValueType)?s.EditorValueType.value:i.editorValueType),t.Dto=new c.AZe({inputId:"combo-box-item-height",minValue:0,label:{text:(0,o.getSR)().columnTypeComboBoxItemHeight},onChange:function(){t.Nto()}}),t.Dto.create().appendTo(n),t.Dto.setValue(i.itemHeight||22),t.jto=new r.Rze({label:{text:(0,o.getSR)().columnTypeComboBoxEditable},onChange:function(){t.Nto()}}),t.jto.create().appendTo(n),t.jto.setValue(i.editable),n},t.prototype.Nto=function(){var t,n,i,e=this;this.LEt.onChange({editorValueType:null===(t=e._editorValueType)||void 0===t?void 0:t.value,itemHeight:null===(n=e.Dto)||void 0===n?void 0:n.value,editable:null===(i=e.jto)||void 0===i?void 0:i.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=h(h({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.mto.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.mto=a.keyword_null},t.prototype.L0=function(){var t=this;t._editorValueType&&t._editorValueType.dispose(),t._editorValueType=a.keyword_null,t.Dto&&t.Dto.dispose(),t.Dto=a.keyword_null,t.jto&&t.jto.dispose(),t.jto=a.keyword_null},t}(),n.vto=d},6602:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M;function I(t,n){return void 0===n&&(n=e.LineStyle.thin),new e.LineBorder(t,n)}function b(t,n,i,e){var u=new o.TableTheme;return u.name(t),u.headerRowStyle(new o.TableStyle(n.backColor,n.foreColor,n.font,r,r,n.borderRight,n.borderBottom)),u.wholeTableStyle(new o.TableStyle(i.backColor,i.foreColor,r,r,r,i.borderRight,i.borderBottom)),e&&e.backColor&&u.firstRowStripStyle(new o.TableStyle(e.backColor)),u}Object.defineProperty(n,"__esModule",{value:!0}),e=i(1376),o=i(9131),r=void 0,c="#808080",a="transparent",s="#E6E4F6",l="#92A5A8",f="#66D1C7",d="black",h="#EBEBEB",v="#FFFFFF",g="bold 11pt Calibri",(M=[b("professional1",{backColor:"#6A76D4",foreColor:u="#F2F2F2",borderRight:I("#6A76D4"),font:g},{foreColor:c,borderRight:I(a),borderBottom:I(s)},r),b("professional2",{backColor:l,foreColor:u,font:g},{foreColor:c,borderRight:I(l),borderBottom:I(a)},r),b("professional3",{backColor:f,foreColor:u,borderRight:I(f),font:g},{foreColor:c,borderRight:I(a),borderBottom:I(f)},r),b("professional4",{backColor:"#36495E",foreColor:u,borderRight:I("#36495E"),font:g},{foreColor:c},{backColor:"#F1F1F1"}),b("professional5",{backColor:"#2F7A84",foreColor:u,borderRight:I("#2F7A84"),font:g},{foreColor:c},{backColor:"#DAF1F3"}),b("professional6",{backColor:"#FFED88",foreColor:d,font:"bold 11pt Arial",borderRight:I("#FFED88")},{foreColor:d,borderRight:I(a),borderBottom:I(a)},r),b("professional7",{backColor:"#9EB09F",foreColor:u,borderRight:I("#9EB09F"),font:g},{foreColor:c,borderRight:I(a),borderBottom:I(s)},r),b("professional8",{backColor:"#362F4A",foreColor:u,borderRight:I("#362F4A"),font:g},{foreColor:c,borderRight:I(a)},{backColor:"#F6F6F6"}),b("professional9",{backColor:"#EB6051",foreColor:u,borderRight:I("#EB6051"),font:g},{foreColor:c,borderRight:I(a)},{backColor:h}),b("professional10",{backColor:"#26AE60",foreColor:u,borderRight:I("#26AE60"),font:g},{foreColor:c,borderRight:I(a)},{backColor:h}),b("professional11",{backColor:"#2882BA",foreColor:u,borderRight:I("#2882BA"),font:g},{foreColor:c,borderRight:I(a)},{backColor:h}),b("professional12",{backColor:"#555F8D",foreColor:u,borderRight:I("#555F8D"),font:g},{foreColor:c},{backColor:"#9EB6C4"}),b("professional13",{backColor:"#54618F",foreColor:u,borderRight:I("#54618F"),font:g},{backColor:"#7591AB",foreColor:v},r),b("professional14",{backColor:v,foreColor:"#5660B9",borderBottom:I("#A1A5CA",e.LineStyle.thick),borderRight:I(v),font:g},{backColor:v,foreColor:"#595959"},{backColor:" #F8F8FD"}),b("professional15",{backColor:"#E6ECF2",foreColor:"#404040",borderRight:I("#E6ECF2"),font:g},{foreColor:c,borderRight:I(a),borderBottom:I("#E6ECF2")},r),b("professional16",{backColor:"#475E86",foreColor:"#67C3F7",borderRight:I("#475E86"),font:g},{backColor:"#2A395A",foreColor:"#D0CECE"},r),b("professional17",{backColor:"#5165F8",foreColor:u,borderRight:I("#5165F8"),font:g},{backColor:v,foreColor:"#595959"},{backColor:"#F3F4FC"}),b("professional18",{backColor:"#F6F8FA",foreColor:"#404040",borderRight:I("#F6F8FA"),font:g},{backColor:v,foreColor:"#757171"},r),b("professional19",{backColor:v,foreColor:c,borderBottom:I("#83ACF6",e.LineStyle.thick),borderRight:I(v),font:g},{backColor:v,foreColor:c,borderBottom:I("#D9E1F2")},r),b("professional20",{backColor:v,foreColor:"#3565F6",borderBottom:I("#3565F6",e.LineStyle.thick),borderRight:I(v),font:g},{backColor:"#FCFDFF",foreColor:"#757171",borderRight:I(v,e.LineStyle.thick),borderBottom:I(v,e.LineStyle.thick)},{backColor:"#F6F8FA"}),b("professional21",{backColor:"#FCFDFF",foreColor:"#404040",borderBottom:I("#ACB9CA",e.LineStyle.thick),borderRight:I("#D6DCE4",e.LineStyle.dashed),font:g},{backColor:"#FCFDFF",foreColor:"#595959",borderBottom:I("#E5E9F0"),borderRight:I("#E5E9F0",e.LineStyle.dashed)},r),b("professional22",{backColor:"#222B35",foreColor:v,borderBottom:I("#08D4FF",e.LineStyle.thick),borderRight:I("#222B35"),font:g},{backColor:"#213551",foreColor:v},{backColor:"#3C5679"}),b("professional23",{backColor:"#213551",foreColor:v,borderBottom:I("#13E86C",e.LineStyle.thick),borderRight:I("#D6DCE4"),font:g},{backColor:"#F4F7F9",foreColor:"#213551",borderRight:I("#D6DCE4")},{backColor:v}),b("professional24",{backColor:"#1D1E1F",foreColor:"#E7E6E6",borderBottom:I("#13E86C",e.LineStyle.thick),borderRight:I("#606060"),font:g},{backColor:"#404142",foreColor:v,borderRight:I("#606060")},{backColor:"#4F4F50"})]).forEach((function(t){o.TableThemes[t.name()]=t}))},6656:function(t,n,i){var e,o,r,u,c,a,s,l,f,d;Object.defineProperty(n,"__esModule",{value:!0}),n.MZe=void 0,e=i(1376),o=i(6114),r=i(5530),u=i(1163),c=i(5981),a=i(4900),s=i(591),l=e.mt,f=l.En,d=function(){function t(t){var n;this.xT=[],this.LEt=t}return t.prototype.create=function(){var t=this,n=t.hZe=(0,e.GC$)(f("div"));return n.addClass("gc-defined-column-formatting-select-container"),n},t.prototype.IZe=function(){var t,n,i,r=this,l=r.LEt.formatter,d=(0,u.parseFormat)(l),h=(0,e.GC$)(f("div"));return h.addClass("gc-defined-column-formatting-select-number-container"),t=new c.bZe({onChange:function(t){r.LEt.onChange(t)}}),(n=new a.Kze({inputId:"lookup-number-formatting",items:[{text:(0,o.getSR)().columnTypeNumber,value:1},{text:(0,o.getSR)().columnTypeCurrency,value:2},{text:(0,o.getSR)().columnTypePercent,value:6}],label:{text:(0,o.getSR)().columnTypeFormattingCategory},onChange:function(n){t.setOptions({type:n.value,formatter:s.keyword_null})}})).create().appendTo(h),r.xT.push(n),t.create().appendTo(h),r.xT.push(t),i=d.category,-1===[1,2,6].indexOf(i)&&(i=1),n.setValue(i),t.setOptions({type:i,formatter:l}),h},t.prototype.NZe=function(){var t,n=this,i=n.LEt.formatter,o=(0,e.GC$)(f("div"));return o.addClass("gc-defined-column-formatting-select-date-container"),(t=new r.Wze({formatter:i,onChange:function(t){n.LEt.onChange(t.formatter)}})).create().appendTo(o),n.xT.push(t),o},t.prototype.createFormatting=function(t){var n=this,i=n.hZe;if(n.L0(),(0,s.isNumber)(t))n.IZe().appendTo(i);else{if(!(0,s.isDate)(t))return!1;n.NZe().appendTo(i)}return!0},t.prototype.dispose=function(){var t=this;t.L0(),t.hZe=s.keyword_null},t.prototype.L0=function(){var t,n,i,e=this;for(t=0,n=e.xT;t<n.length;t++)(i=n[t]).dispose?i.dispose():i.unbind&&i.unbind("click");e.xT=[],e.hZe.empty()},t}(),n.MZe=d},6944:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.heo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.oeo(n),n},n}(o.Meo),n.heo=c},7127:function(t,n,i){var e,o,r,u,c,a,s,l,f;Object.defineProperty(n,"__esModule",{value:!0}),n.Gto=void 0,e=i(1376),o=i(6114),r=i(6406),u=null,c="#0066cc",a="#3399ff",s=e.mt,l=s.En,f=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i=this,u=i.LEt,s=u.onChange,f=(0,e.GC$)(l("div"));return f.addClass("gc-defined-column-url-container"),(t=i.Rto=new r.mZe({inputId:"linkColor",type:"color",defaultValue:u.linkColor||c,label:{text:(0,o.getSR)().columnTypeUrlLabel.linkColor},onChange:function(t){s&&s({linkColor:t||c,visitedLinkColor:i.Pto.value||a})}})).create().appendTo(f),(n=i.Pto=new r.mZe({inputId:"visitedLinkColor",type:"color",defaultValue:u.visitedLinkColor||a,label:{text:(0,o.getSR)().columnTypeUrlLabel.visitedLinkColor},onChange:function(t){s&&s({linkColor:i.Rto.value||c,visitedLinkColor:t||a})}})).create().appendTo(f),s&&s({linkColor:i.Rto.value||c,visitedLinkColor:i.Pto.value||a}),f},t.prototype.dispose=function(){var t=this;t.Rto.dispose(),t.Rto=u,t.Pto.dispose(),t.Pto=u},t}(),n.Gto=f},7234:function(n){n.exports=t.Spread},7324:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Jze=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(591),c=e.mt,a=c.En,s=function(){function t(t){this.itemContainers=[];var n=this;n.LEt=t,n.$G=u.keyword_null,n.EZe=[]}return Object.defineProperty(t.prototype,"value",{get:function(){var t,n=this;return n.LEt.enableMultiSelected?n.EZe.map((function(t){var i;return null===(i=n.LEt.items[t])||void 0===i?void 0:i.value})):null===(t=n.LEt.items[n.$G])||void 0===t?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var t=this;return t.LEt.enableMultiSelected?t.EZe.slice():t.$G},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i=this,o=i.LEt.label,r=i.LEt.addAndRemoveButton,u=(0,e.GC$)(a("div"));return u.addClass("gc-defined-column-list-container"),(t=(0,e.GC$)(a("div"))).addClass("gc-defined-column-list-label-container"),t.appendTo(u),o&&o.text&&((n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-label-container"),n.appendTo(t),n.text(o.text)),r&&i.zto(t),i.zqt().appendTo(u),u},t.prototype.zqt=function(){var t,n=this,i=n.UZe=(0,e.GC$)(a("div"));return i.addClass("gc-defined-column-list-items-container"),n.isDisable()&&i.addClass("gc-defined-column-disabled"),i.attr("role",n.LEt.editable?"grid":"listbox"),i.attr("tabindex","-1"),i.attr("aria-disabled",n.isDisable()?"true":"false"),i.attr("aria-label",null===(t=n.LEt.label)||void 0===t?void 0:t.text),n.tyn(),i},t.prototype.tyn=function(){var t,n,i=this,o=i.LEt.items,r=i.LEt.enableMultiSelected,u=i.EZe,c=i.$G,s=i.LEt.showValue,l=function(t){return r?u.indexOf(t)>-1:c===t};for(s&&i.meo(),t=function(t){var n=o[t],r=(0,e.GC$)(a("span"));i.itemContainers.push(r),r.addClass("gc-defined-column-list-item-container"),l(t)&&r.addClass("gc-defined-column-list-item-selected"),r.attr("role",i.LEt.editable?"row":"option"),!i.LEt.editable&&r.attr("tabindex","0"),r.attr("aria-selected",l(t)?"true":"false"),r.bind("click",(function(n){i.isDisable()||i.GZe(t,n)})),i.ryn(n,r),s&&i.ryn(n,r,!0),r.appendTo(i.UZe)},n=0;n<o.length;n++)t(n)},t.prototype.meo=function(){var t,n,i=this,o=(0,e.GC$)(a("div"));o.addClass("gc-defined-column-list-header"),(t=(0,e.GC$)(a("div"))).addClass("gc-defined-column-list-header-text"),t.text((0,r.getSR)().columnTypeText),t.appendTo(o),(n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-list-header-value"),n.text((0,r.getSR)().defineColumnValue),n.appendTo(o),o.appendTo(i.UZe)},t.prototype.ryn=function(t,n,i){var o,c,s=this,l=s.LEt.editable,f=l?(0,e.GC$)(a("input")):(0,e.GC$)(a("div"));l&&(f.attr("role","gridcell"),f.attr("aria-label",i?(0,r.getSR)().defineColumnValue:(0,r.getSR)().columnTypeText)),o="gc-defined-column-list-item-"+(i?"value":"text"),f.addClass(o),t.class&&f.addClass(t.class),c=i||(0,u.isNullOrUndefined)(t.text)?t.value:t.text,l?f.val(c):f.text(c),f.appendTo(n),s.LEt.editable&&f.bind("blur",(function(){i?t.value=this.value:t.text=this.value,s.LEt.onChange&&s.LEt.onChange()}))},t.prototype.GZe=function(t,n){var i,e,r,u=this,c=u.LEt.enableMultiSelected,a=u.EZe,s=function(t){return c?a.indexOf(t)>-1:u.$G===t};for(c?(i=function(t){var n=a.indexOf(t);n>-1?a.splice(n,1):a.push(t)},(0,o.isArray)(t)?t.forEach((function(t){i(t)})):i(t)):u.$G=t,e=0;e<u.itemContainers.length;e++)r=u.itemContainers[e],s(e)?(r.attr("aria-selected","true"),r.addClass("gc-defined-column-list-item-selected")):(r.attr("aria-selected","false"),r.removeClass("gc-defined-column-list-item-selected"));u.LEt.onChange&&u.LEt.onChange(u.value,u.index,n)},t.prototype.zto=function(t){var n,i,o,u,c,s,l,f=this,d=f.LEt.items,h=(0,e.GC$)(a("div"));h.addClass("gc-defined-column-add-remove-container"),(n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-add-remove-container-buttons"),n.appendTo(h),(i=(0,e.GC$)(a("button"))).addClass("gc-defined-column-add-remove-container-button"),i.appendTo(n),(o=(0,e.GC$)(a("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-add ui-icon ui-icon-check"),o.appendTo(i),(u=(0,e.GC$)(a("span"))).appendTo(i),u.text((0,r.getSR)().columnTypeComboBoxAdd),i.bind("click",(function(){d||(d=[]),d.push({text:"",value:""}),f.setOptions({items:d}),f.LEt.onChange&&f.LEt.onChange()})),(c=(0,e.GC$)(a("button"))).addClass("gc-defined-column-add-remove-container-button"),c.appendTo(n),(s=(0,e.GC$)(a("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-remove ui-icon ui-icon-check"),s.appendTo(c),(l=(0,e.GC$)(a("span"))).appendTo(c),l.text((0,r.getSR)().columnTypeComboBoxRemove),c.bind("click",(function(){var t=f.$G;d.splice(t,1),f.setOptions({items:d}),f.LEt.onChange&&f.LEt.onChange()})),h.appendTo(t)},t.prototype.setValue=function(t){var n,i,e=this;if(!(0,u.isNullOrUndefined)(t)){if(e.LEt.enableMultiSelected&&(0,o.isArray)(t))return void((n=t.reduce((function(t,n){var i=e.LEt.items.findIndex((function(t){return t.value===n}));return i>-1&&t.push(i),t}),[])).length>0&&e.GZe(n));(i=e.LEt.items.findIndex((function(n){return n.value===t})))>-1&&e.GZe(i)}},t.prototype.setIndex=function(t){var n=this;if(!(0,u.isNullOrUndefined)(t)){if(n.LEt.enableMultiSelected&&(0,o.isArray)(t))return void(t.length>0&&n.GZe(t));t>-1&&n.GZe(t)}},t.prototype.setOptions=function(t){var n=this;n.LEt=l(l({},n.LEt),t),n.clear(),n.tyn()},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.UZe;t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),i.attr("aria-disabled",n?"false":"true")},t.prototype.clear=function(){var t,n,i,e=this;for(t=0,n=e.itemContainers;t<n.length;t++)(i=n[t]).unbind("click");e.itemContainers=[],e.UZe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.UZe=u.keyword_null},t}(),n.Jze=s},7373:function(n){n.exports=t.Data},7446:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.Ieo=void 0,e=i(1376),o=i(6114),r=i(6406),u=i(6018),c=i(4900),a=e.mt,s=a.En,l=function(){function t(t){var n=this;n.LEt=t,n.xT=[]}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i=this,r=(0,e.GC$)(s("div"));return r.addClass("gc-defined-column-barcode-base-container"),(t=new c.Kze({inputId:"barcode-type",defaultValue:i.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){i.LEt.option.barcodeType=t.value,i.onChange(!0)}})).create().appendTo(r),i.xT.push(t),(n=(0,e.GC$)(s("div"))).addClass("gc-defined-column-barcode-base-style-container"),n.appendTo(r),i.tto(n,"color",(0,o.getSR)().columnTypeBarcodeLabel.color),i.tto(n,"backgroundColor",(0,o.getSR)().columnTypeBarcodeLabel.backgroundColor),i.eto(n,"quietZoneLeft",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneLeft,!0),i.eto(n,"quietZoneRight",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneRight,!0),i.eto(n,"quietZoneTop",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneTop,!0),i.eto(n,"quietZoneBottom",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneBottom,!0),r},t.prototype.tto=function(t,n,i){var e=this,o=new r.mZe({inputId:"barcode-"+n,type:"color",defaultValue:e.LEt.option[n],label:{text:i},onChange:function(t){e.LEt.option[n]=t,e.onChange()}});o.create().appendTo(t),e.xT.push(o)},t.prototype.eto=function(t,n,i,e){var o=this,r=new u.AZe({inputId:"barcode-"+n,defaultValue:o.LEt.option[n],label:{text:i,useRawContent:e},allowMinNull:!0,maxValue:1e3,onChange:function(t){o.LEt.option[n]=t,o.onChange()}});r.create().appendTo(t),o.xT.push(r)},t.prototype.onChange=function(t){var n=this,i=n.LEt.onChange;i&&i(n.LEt.option,t)},t.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&e.unbind("click");return[]},t.prototype.dispose=function(){var t=this;t.xT=t.YZe(t.xT)},t}(),n.Ieo=l},7553:function(t,n,i){var e,o,r,u;Object.defineProperty(n,"__esModule",{value:!0}),n.Rze=void 0,e=i(1376),o=i(591),r=e.mt.En,u=function(){function t(t){var n;this.LEt=t}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.weo)||void 0===t?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i,o=this,u=o.LEt,c=o.yZe=(0,e.GC$)(r("div"));return c.addClass("gc-defined-column-field-item-container gc-defined-column-checkbox-field-item-container"),u.label&&u.label.text&&u.textDisplay&&((t=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-label-container"),t.appendTo(c),(n=(0,e.GC$)(r("label"))).addClass("gc-defined-column-field-label-container-label-text"),n.appendTo(t),u.inputId&&n.attr("for","gc-defined-column-checkbox-"+u.inputId),n.text(u.label.text)),(i=o.Qze=(0,e.GC$)(r("div"))).appendTo(c),i.addClass("gc-defined-column-checkbox-container"),o.ZX(),c},t.prototype.ZX=function(){var t,n,i,u=this,c=u.LEt,a=u.Qze,s=u.Pze=(0,e.GC$)(r("div"));s.addClass("gc-defined-column-checkbox-item-container"),u.isDisable()&&s.addClass("gc-defined-column-disabled"),u.isVisible()||a.addClass("gc-defined-column-hide"),s.appendTo(a),s.attr("role","checkbox"),s.attr("tabindex","0"),s.attr("aria-label",c.label.text),s.attr("aria-checked","false"),s.attr("aria-disabled",u.isDisable()?"true":"false"),s.attr("aria-hidden",u.isVisible()?"false":"true"),(t=(0,e.GC$)(r("div"))).addClass("gc-defined-column-check-container"),t.appendTo(s),(n=u.weo=(0,o.createDCElement)("sjs-checkbox")).attr("name",""),n.attr("ariaLabel",c.label.text),c.inputId&&n.attr("id","gc-defined-column-checkbox-"+c.inputId),c.isThreeState&&n.attr("indeterminate",!0),(0,o.isNullOrUndefined)(c.defaultValue)||u.setValue(c.defaultValue,!1),n.bind("input",(function(t){u.isDisable()||(u.Yze(t.target.value),c.onChange&&c.onChange(t.target.value,t))})),n.appendTo(t),c.label&&c.label.text&&1!==c.textDisplay&&((i=u.LZe=(0,e.GC$)(r("div"))).addClass("gc-defined-column-label-container"),i.appendTo(s),i.text(c.label.text),c.inputId&&i.attr("for","gc-defined-column-checkbox-"+c.inputId),i.bind("click",(function(t){u.isDisable()||u.setValue(u.kV(u.weo.val()))})))},t.prototype.Yze=function(t){var n=this,i=t;(0,o.isNullOrUndefined)(t)&&(i=!!n.LEt.isThreeState&&"mixed"),n.Pze.attr("aria-checked",i)},t.prototype.kV=function(t){var n;if(this.LEt.isThreeState){if(t)return o.keyword_null;if((0,o.isNullOrUndefined)(t))return!1}return!t},t.prototype.setValue=function(t,n){var i=this;i.weo.val(t),i.Yze(t),!1!==n&&(0,o.triggerEvent)(i.weo)},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.Pze;t.LEt.enable=n,n?(i.removeClass("gc-defined-column-disabled"),i.attr("aria-disabled","false")):(i.addClass("gc-defined-column-disabled"),i.attr("aria-disabled","true"))},t.prototype.isVisible=function(){return!0!==this.LEt.hide},t.prototype.resetVisible=function(){var t=this,n=t.isVisible(),i=t.Qze;t.LEt.hide=n,n?(i.addClass("gc-defined-column-hide"),i.attr("aria-hidden","true")):(i.removeClass("gc-defined-column-hide"),i.attr("aria-hidden","false"))},t.prototype.dispose=function(){var t=this;t.weo.unbind("input"),t.weo=o.keyword_null,t.LZe&&t.LZe.unbind("click"),t.LZe=o.keyword_null,t.Pze=o.keyword_null,t.Qze=o.keyword_null},t}(),n.Rze=u},7621:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P,Q,Y,H,W,V,F,J,_,X,K,q,$,tt,nt,it,et,ot,rt,ut,ct,at,st,lt,ft,dt,ht,vt,gt,Mt,It,bt,Nt=this&&this.mJr||function(){return Nt=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Nt.apply(this,arguments)};function Dt(t,n){var i,e;for(i=0;i<t.length;i++)if(n(e=t[i]))return i;return-1}function mt(t){return t.value||t}function wt(t){return xt(t)&&t.bMi}function Ct(t){return t.yBt}function yt(t){return!t.isViewName&&t.textIndent===ft}function xt(t){return yt(t)||t.isViewColumnOption}function At(t){return!t.isViewName&&t.textIndent>=dt}function Tt(t){return t.isRelationship&&yt(t)}function jt(t){return t.isRelationship&&t.textIndent>=dt}function pt(t){return b(t)||""===t}function zt(t){return t&&t.richText&&t.richText[0]&&t.richText[0].text||t&&t.text||t}function Lt(t){return JSON.parse(JSON.stringify(t))}Object.defineProperty(n,"__esModule",{value:!0}),n.TableSheetPanel=n.ShowSourceOptions=n.ARROW_RIGHT=n.ARROW_DOWN=void 0,e=i(6114),o=i(1376),r=i(447),u=i(7234),c=i(2648),a=i(2227),s=i(8966),l=i(1434),f=o.CellTypes.Base,d=u.Common.zf.j0,h=u.Common.lt.tv,g="."+(v="table-sheet-panel"),M=null,I=void 0,b=u.Common.lt.ht,N=window,D=function(){return!1},m="gc-table-sheet-panel",w="gc-table-sheet-field-panel",C="gc-table-sheet-cross-panel",y="gc-table-sheet-group-panel",x="gc-table-sheet-group-list",A="gc-table-sheet-group-input",j=(T="gc-table-sheet-group-item")+"-remove",p="group-index",z="group-name",L="group-field",S="summary-index",O="gc-table-sheet-summary-item",k="summary-name",E="summary-formula",Z=T+"-label",U="gc-table-sheet-summary-container",G="gc-table-sheet-field-container",B="gc-table-sheet-summary-item-label",R="gc-table-sheet-summary-item-input-formula",P="gc-table-sheet-summary-item-input-slice",Q="gc-table-sheet-summary-function",Y="gc-table-sheet-summary-item-input-caption",H="gc-table-sheet-summary-list-container",W="gc-table-sheet-group-item-reorder-top",V="gc-table-sheet-group-item-reorder-bottom",F="gc-table-sheet-add-calculate-column",J="fake-ftb-workbook",_="gc-table-sheet-summary-item-caption",X="gc-table-sheet-cross-column",K="gc-table-sheet-cross-column-detail",q="gc-table-sheet-cross-column-detail-value",$="gc-table-sheet-cross-column-attributes-list",tt="gc-table-sheet-cross-column-item",nt="gc-table-sheet-cross-column-item-checkbox",it="gc-table-sheet-cross-column-item-edit",et="gc-table-sheet-cross-column-item-input-filter",ot="gc-table-sheet-cross-column-item-editing",rt="gc-table-sheet-cross-detail-input",ut="gc-table-sheet-hidden",ct="gc-table-sheet-summary-item-input-relateTo",at="gc-table-sheet-summary-item-input-position",st="gc-table-sheet-group-item-setting",lt="attribute-index",n.ARROW_DOWN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAHJJREFUOE+10i0OwkAQBtC394ED4PE4EA0HBIeurEX2QE2TDYKwOyTTrt3Myzc/RfKVZL1dgQPmKGErwRFP3PHuIb0WTnhgwNRCohmca5Ibxl9IBKw1l4pc8fpGdgdSLaSGuMkaU4cUHeDn/58tdLE0sABwBBIR30jsewAAAABJRU5ErkJggg==",n.ARROW_RIGHT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAI1JREFUOE/t0rEJwlAQBuAv09hJagewsBQMFuIqDuEA9tpa2qbMAA7gAG4gB08IjySvSCe+9riPe/9dZearZvb7UWCB50g2O9z6tTyDE7bY4JUh0XxF00eGQgxknZB3QqL5gj3uUxN8a4GsEhITnXHAI//a1BoDWaLGEe1QLqU7CCRG7sYOrgQUD/UP8AFFTRERJMaNUQAAAABJRU5ErkJggg==",ft=0,dt=1,ht=function(t,n){return t?n:""},vt=function(t){var n=t.formula,i=t.caption,o=void 0===i?"":i,r=t.sliceField,u=t.columnList,c=t.relateTo,a=t.position,s=t.showSlice;return'\n <div class="gc-table-sheet-summary-item-formula">\n <span class="'.concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelFormula,"</span>\n <input aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelFormula,"' class=\"").concat(R,'" input-type="formula" spellcheck="false" tabIndex="-1" current-data=\'').concat(d(n),"' value='").concat(d(n),'\'></input>\n <span class="gc-table-sheet-summary-item-remove-icon" title="').concat((0,e.getSR)().GroupPanelItemRemove,'"></span>\n </div>\n <div class="').concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelCaption,"</span>\n <input aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelCaption,"' class=\"").concat(Y,'" input-type="caption" spellcheck="false" tabIndex="-1" current-data=\'').concat(d(o),"' value='").concat(d(o),"'></input>\n </div>")+ht(s,'\n <div class="gc-table-sheet-summary-item-slice">\n <span class="'.concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelSlice,"</span>\n <input aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelSlice,"' class=\"").concat(P,'" input-type="slice" spellcheck="false" tabIndex="-1" current-data=\'').concat(r,"' value='").concat(r,"'></input>\n </div>"))+ht(!s,'\n <div class="gc-table-sheet-summary-item-relateTo">\n <span class="'.concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelRelateTo,"</span>\n <select aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelRelateTo,"' class=\"").concat(ct,' gc-table-sheet-summary-item-select" name="relateTo">').concat('<option value="" style="display: none"></option>'+u.map((function(t){return'<option value="'.concat(t.value,'" ').concat(t.value===c?"selected":"",">").concat(t.text,"</option>")})),'</select>\n </div>\n <div class="gc-table-sheet-summary-item-position">\n <span class="').concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelPosition,"</span>\n <select aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelPosition,"' class=\"").concat(at,' gc-table-sheet-summary-item-select" name="position">\n <option value="header" ').concat("header"===a?"selected":"",">").concat((0,e.getSR)().GroupPanelSummaryLabelPositionHeader,'</option>\n <option value="footer" ').concat("footer"===a?"selected":"",">").concat((0,e.getSR)().GroupPanelSummaryLabelPositionFooter,"</option>\n </select>\n </div>"))},gt=function(t){var n=t.find(".".concat(R)).val(),i=t.find(".".concat(Y)).val(),e=t.find(".".concat(P)).val(),o=t.find(".".concat(ct)).val(),r=t.find(".".concat(at)).val();return{formulaInputValue:n,captionInputValue:i,sliceInputValue:e,relateToValue:o,positionValue:r}},function(t){t[t.none=0]="none",t[t.field=1]="field",t[t.formula=2]="formula",t[t.all=3]="all"}(Mt=n.ShowSourceOptions||(n.ShowSourceOptions={})),It={showSource:Mt.none,fieldAreaVisible:!0,crossAreaVisible:!1,groupAreaVisible:!0,showEditButton:!1,showViewName:!0,showGroupSetting:void 0},bt=function(){function t(t,n,i,e){this.AMi=!0,this.Zc=t,this.vMi=n,this.jMi=0,this.Ti=i,this.options=o.util.b0(It,this.zMi.bind(this)),this.Zp(e||{}),this.CMi=[],this.wMi=-1,i&&(0,o.GC$)(i).data(v,this),this.Ti.innerHTML=this.yMi(),this.mMi=i.querySelector(".".concat(w)),this.LMi=i.querySelector(".".concat(m)),this.xMi=i.querySelector(".".concat(x)),this.SMi=i.querySelector(".".concat(y)),this.ZMi=i.querySelector(".".concat(K)),this.OMi=this.ZMi.querySelector(".".concat($)),this.EMi=i.querySelector(".".concat(y,".").concat(C,".").concat(X)),this.GMi=i.querySelector(".".concat(U)),this.pMi=i.querySelector(".".concat(J)),this.attach(n),this.kMi(),this.vMi.UMi=this,this.AMi=!1}return t.prototype.ZS=function(){var t=this;setTimeout((function(){var n,i,e;null===(e=null===(i=null===(n=t.vMi)||void 0===n?void 0:n.getParent)||void 0===i?void 0:i.call(n))||void 0===e||e.focus(!0)}),0)},t.prototype.Hc=function(t,n){var i,e,r,u,c,a=new o.Workbook(n,{allowUndo:!1,enableAccessibility:null===(e=null===(i=this.vMi)||void 0===i?void 0:i.getParent())||void 0===e?void 0:e.options.enableAccessibility});a.xU=!0,a.suspendPaint(),a.suspendEvent(),this.fb(a),r=a.getSheet(0),this.BMi=r,this.QMi(r),this.RMi(),this.PMi(),this.YMi=this.WMi(),u=this.HMi(t.getDataView()),this.CMi=u,this.VMi(a,r.getViewportBottomRow(1)<u.length-1),this.FMi(r,u),a.resumeEvent(),a.resumePaint(),(c=this).mMi&&(c.JMi=N.setTimeout((function(){var t=(0,o.GC$)(c.mMi),n=t.data("workbook");n&&Math.abs(t.height()-(0,o.GC$)(n._vp).height())>n.Xm()&&n.refresh(),c.JMi&&(N.clearTimeout(c.JMi),c.JMi=0)}),100))},t.prototype.fb=function(t){t.options.allowContextMenu=!1,t.options.allowUserZoom=!1,t.options.allowUserDragDrop=!1,t.options.allowDragHeaderToMove=o.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)},t.prototype.QMi=function(t){var i,e,r=this.options;t.selectionPolicy(o.SelectionPolicy.single),t.selectionUnit(o.SelectionUnit.row),t.options.showFormulas=!0,t.options.rowHeaderVisible=!1,t.options.colHeaderVisible=!1,!1===r.showViewName?t.setRowVisible(0,r.showViewName):t.frozenRowCount(1),t.options.gridline.showHorizontalGridline=!1,t.options.gridline.showVerticalGridline=!1,t.setColumnCount(2),t.setRowCount(30),(i=new o.Style).hAlign=o.HorizontalAlign.right,i.vAlign=o.VerticalAlign.bottom,i.cellPadding="0 0 1 0",t.setStyle(-1,0,i),t.setColumnWidth(0,28),t.setColumnWidth(1,"*"),(e=new o.Style).hAlign=o.HorizontalAlign.left,e.vAlign=o.VerticalAlign.bottom,t.setStyle(-1,1,e),r.showViewName&&(t.outlineColumn.options({columnIndex:1,showIndicator:!0,collapseIndicator:n.ARROW_RIGHT,expandIndicator:n.ARROW_DOWN}),t.outlineColumn.refresh()),t.showRowOutline(!1),t.rowOutlines.KMi=!0,t.t4(0,1)},t.prototype.zMi=function(t,n,i){var e,o=this;if(!o.AMi)switch(t){case"showSource":o._Mi();break;case"fieldAreaVisible":case"crossAreaVisible":case"groupAreaVisible":e=o.vMi,o.detach(),o.vMi=e,o.Ti.innerHTML=o.yMi(),o.mMi=o.Ti.querySelector(".".concat(w)),o.LMi=o.Ti.querySelector(".".concat(m)),o.ZMi=o.Ti.querySelector(".".concat(K)),this.OMi=this.ZMi.querySelector(".".concat($)),o.xMi=o.Ti.querySelector(".".concat(x)),o.SMi=o.Ti.querySelector(".".concat(y)),o.EMi=o.Ti.querySelector(".".concat(y,".").concat(C,".").concat(X)),this.GMi=o.Ti.querySelector(".".concat(U)),this.pMi=o.Ti.querySelector(".".concat(J)),o.attach(e),o.kMi(),e.UMi=o}},t.prototype.Zp=function(t){var n=this.options||{};t=o.GC$.extend(!0,{},It,t),o.GC$.each(t,(function(t,i){n.hasOwnProperty(t)&&(n[t]=i)}))},t.prototype.RMi=function(){var t,n,i,r,u,c,a,l,f=this,d=f.Tp(),h=f.vMi,v=f.LMi.getBoundingClientRect();d.bind(o.Events.EditStarting+g,(function(t,n){var i=n.row,e=f.CMi;e[i]&&e[i].isCalculateColumn||(n.cancel=!0)})),d.bind(o.Events.EditStarted+g,(function(t,n){var i,e;n.row!==d.getRowCount()-1||d.il.text()||d.il.text("="),d.il&&(d.il.qMi=!0),f.$Mi=!0})),d.bind(o.Events.EditEnded+g,(function(t,n){var i,e,o,r,u,c,a,l,v=n.row,g=f.CMi,M=h.getDataView(),I=n.editingText,b=!1;if(f.$Mi=!1,o=d.getText(v,1),r=null===(i=null==I?void 0:I.replace)||void 0===i?void 0:i.call(I,/\s/g,""),u=null===(e=null==o?void 0:o.replace)||void 0===e?void 0:e.call(o,/\s/g,""),!r){if(o)return;b=!0}if(String(u).toUpperCase()===String(r).toUpperCase()||b){if(g[v]&&g[v].isCalculateColumn){if(c=f.HMi(M,v-1),I){if(0===I.indexOf("=")&&I!==(c&&c.value)){a=I;try{a=h.Iuo(a,!0)}catch(t){return void f._Mi()}c?((l=Nt({},c)).value===l.caption&&(l.caption=a),l.value=a,h.zA({cmd:s.VIEW_UPDATE_COLUMN_INFO,columnInfos:[l]})):h.zA({cmd:s.VIEW_Add_COLUMN_INFO,columnInfo:{value:a,readonly:!0}})}}else c&&h.zA({cmd:s.VIEW_REMOVE_COLUMN_INFO,value:c.value});f._Mi(),d.il&&(d.il.qMi=!1),f.ZS()}}else f._Mi()})),d.bind(o.Events.ValueChanged+g,(function(t,n){var i,r,u,c,a,l,d,v,g,M,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z=n.newValue,U=n.row,G=n.col,B=n.sheet,R=h.getDataView();if(0===G&&R){if(i=[],r=void 0,u=void 0,c=R.getColumnInfos(!0,!0),(a=f.CMi[n.row])&&a.isCalculateColumn)r=a.value;else if(a.bMi){for(l=0;l<c.length;l++)if((d=c[l])&&d.cross&&d.cross===a.bMi){u=l;break}}else r=zt(v=B.getValue(U,1,o.SheetArea.viewport,o.ValueType.richText));if(g=R.getColumnInfos(!0),M=void 0,0===n.row&&r===R.name){for(b=0,N=g;b<N.length;b++)d=N[b],i.push(Nt(Nt({},d),{visible:Z}));for(D=0,m=c;D<m.length;D++)w=m[D],i.push(Nt(Nt({},w),{visible:Z}))}else if(u!==I){for(C=0,y=g;C<y.length;C++)(d=y[C]).isCross&&d.RBt===u&&i.push(Nt(Nt({},d),{visible:Z}));i.push(Nt(Nt({},c[u]),{visible:Z}))}else if((x=B.getCell(U,1).textIndent())===ft){for(A=a.nIi,T=0,j=g;T<j.length;T++)if(d=j[T],(A?d.value===A:(0,e.tIi)(d.caption)===r||d.value===r)&&!d.isGroup){i.push(Nt(Nt({},d),{visible:Z}));break}}else if(A=a.nIi){for(p=0,z=g;p<z.length;p++)if((d=z[p]).value===A&&!d.isGroup){i.push(Nt(Nt({},d),{visible:Z}));break}0===i.length&&Z&&(M={value:A,visible:!0})}else for(L=function(t){return"string"==typeof t?t.substring(0,t.indexOf(".")):""},S=L(g[U-1].value),O=0,k=g;O<k.length;O++)if("string"==typeof(E=(d=k[O]).value)&&-1!==E.indexOf(S)&&-1!==E.indexOf("."+r)&&!d.isGroup){i.push(Nt(Nt({},d),{visible:Z}));break}M&&h.zA({cmd:s.VIEW_Add_COLUMN_INFO,columnInfo:M}),i.length>0&&h.zA({cmd:s.VIEW_UPDATE_COLUMN_INFO,columnInfos:i}),f.CMi=f.HMi(R),f.ZS()}})),t=function(t){var n=f.CMi[t].nIi;return!b(n)&&n.indexOf(".")>0},n=function(t){var n=f.CMi[t].nIi;return!b(n)&&n.indexOf(".")>0&&f.eIi().isLookupField(n)},i=function(t){return!b(t)&&!b(f.oIi)&&t.indexOf(".")>0},r=function(t){var n=f.CMi[t].nIi;return i(n)&&!f.mLt(n)},u=function(t){var n=f.CMi[t].nIi;return i(n)&&f.mLt(n)},c=function(t){var n,i=f.CMi[t],e=i.yBt,o=i.nIi;f.uIi=o,e?(f.oIi=o,f.cIi=[],f.rIi&&f.rIi.indexOf(".")>-1&&(f.rIi=void 0,f.aIi=-1,f.wMi=-1),f.AMi=!0,f.sIi(!0),f.MIi(!1),f.IIi(),f.AMi=!1):wt(i)&&(n=f.gIi(i.bMi),f.NIi=f.CMi.filter((function(t){return wt(t)})).indexOf(i),f.cIi=f.lIi(),f.options.groupAreaVisible?(f.oIi=n.over,f.rIi&&f.rIi.indexOf(".")>-1&&(f.rIi=void 0,f.aIi=-1,f.wMi=-1),f.AMi=!0,f.sIi(!0),f.MIi(!1),f.IIi(),f.AMi=!1):f.options.crossAreaVisible&&f.IIi())},a={},l=M,f.DIi=function(t){var i,e,u,s,h,g;if(t.target===d.Dg()&&(i=f.fIi(d,t))&&!f.$Mi&&(a={x:t.x,y:t.y},l=f.mMi?f.mMi.getBoundingClientRect():M,e=i.row,u=i.col,!b(e)&&e>0&&!b(u))){if(n(e))return void c(e);if(r(e))return;if(i.cellTypeHitInfo&&i.cellTypeHitInfo.outlineColumnHitInfo&&(f.dIi=!0),s=d.getValue(e,1),h=void 0,f.Ano=!1,"string"!=typeof s?(h=s=d.getFormula(e,1),f.Ano=!0):f.CMi[e].isRelationship?(h=f.hIi(d,e)+"."+s,f.TIi=!1):(h=zt(g=d.getValue(e,1,o.SheetArea.viewport,o.ValueType.richText)),f.TIi=!0),!f.CMi[e].isRelationship&&At(f.CMi[e])&&!f.options.crossAreaVisible)return;f.rIi=h,v=f.LMi.getBoundingClientRect(),f.aIi=e,f.wMi=e,c(e)}},f.bIi=function(n){var i,e,o,r,u,c,s,h=f.rIi,g=n.x!==a.x||n.y!==a.y;if(h&&g){if(f.AIi(n,h,v,f.LMi),(i=f.fIi(d,n))&&(e=i.row,o=i.col,!b(o)&&e&&e!==f.wMi&&!f.vDo(f.aIi,e))){if(t(e))return;d.t4(e,1)}(r=d.Dg())&&(r.style.cursor="move"),f.xMi&&(f.xMi.style.cursor="move"),f.dIi=!1,l&&(u=30,(n.clientY<l.top-u||n.clientY>l.bottom+u)&&(s=(c=Math.max(l.top+1,Math.min(n.clientY,l.bottom-1)))+(n.pageY-n.clientY),Object.defineProperty(n,"pageY",{value:s,configurable:!0})))}},f.vIi=function(n){var i,e,o,r,c,a,s,v,g,N,D,m;l=M,(i=f.rIi)&&((e=f.fIi(d,n))&&!f.dIi&&(o=e.row,r=e.col,c=h.jIi,a=f.aIi,b(o)||b(r)||!(o!==a&&o>c&&a>c||o===a)?(d.t4(f.aIi,0),f.zIi(n.target,f.xMi)&&f.kMi(),f.CIi(n)):(s=h.getDataView())&&!u(a)&&(v=f.CMi[a],f.vDo(a,o)||(jt(v)?f.wIi(a,o):f.yIi(a,o)),N=!((g=f.CMi[o]).yBt||wt(g)||t(o)),f.options.crossAreaVisible&&N&&(f.rIi=void 0,f.TIi=void 0,f.aIi=-1,f.wMi=-1,f.cIi=I,f.oIi=I,f.NIi=void 0,f.mIi=void 0,f.AMi=!0,f.sIi(!1),f.MIi(!0),f.LIi(),f.xIi(),f.AMi=!1))),f.dIi=!1,f.rIi=void 0,f.TIi=void 0,f.aIi=-1,f.wMi=-1,(D=d.Dg())&&(D.style.cursor="default"),f.xMi&&(f.xMi.style.cursor="default"),(m=f.SIi)&&(m.style.display="none"))},(0,o.GC$)(".".concat(F)).bind("click",(function(){var t,n,i,e,r,u,c=d.getRowCount();if(!f.$Mi&&0!==c){if(d.suspendPaint(),n=(t=d.rowOutlines.items.map((function(t){return null==t?void 0:t.collapsed}))).some((function(t){return t})))for(i=0,e=t.length;i<e;i++)(r=t[i])&&d.outlineColumn.setCollapsed(i,!1);if(d.ffe(c,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),f.CMi[c]={isCalculateColumn:!0,checkStatus:!0,value:"",textIndent:ft},d.getCell(c,1).locked(!1).textIndent(ft),d.outlineColumn.refresh(),d.setActiveCell(c,1),d.showCell(c,0,o.VerticalPosition.center,o.HorizontalPosition.center),n){for(i=t.length-1;i>-1;i--)(r=t[i])&&d.outlineColumn.setCollapsed(i,!0);d.outlineColumn.refresh()}u=setTimeout((function(){d.startEdit(),clearTimeout(u)}),0),d.resumePaint()}})),f.mMi&&f.mMi.addEventListener("mousedown",f.DIi,!0),document.addEventListener("mousemove",f.bIi,!0),document.addEventListener("mouseup",f.vIi,!0)},t.prototype.hIi=function(t,n){for(;n>=0;){var i=this.CMi[n];if(i&&Tt(i))return t.getValue(n,1);n--}return""},t.prototype.ZIi=function(t,n){var i,e,o,r,u,c,a,s,l,f,d,h=this,v=h.eIi();if(h.CMi=h.HMi(v),i=v.getColumnInfos(),e=h.CMi.filter((function(t){return xt(t)})),o=h.CMi.filter((function(n,i){return i<t&&wt(n)&&!n.isRelationship})),r=o.reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),u=t<n?n+1:n,c=h.CMi.filter((function(t,n){return n<u&&wt(t)&&!t.isRelationship})),a=c.reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),s=h.CMi.filter((function(n,i){return i<t&&At(n)&&!n.isRelationship})).length,l=h.CMi.filter((function(t,i){return i<n&&At(t)&&!t.isRelationship})).length,!h.CMi[t].isRelationship&&h.CMi[n].isRelationship)if(s=0,t>n){for(f=n;f>=0;f--)if(!jt(h.CMi[f])){l=n-f;break}}else{for(d=!1,f=n;f<h.CMi.length;f++)if(!jt(h.CMi[f])){l=n-f,d=!0;break}d||(l=n-h.CMi.length)}return{columnInfos:i,columnFieldInfos:e,crossColumnCountBeforeFromRow:r,crossColumnCountBeforeToRow:a,crossRelationFieldCountBeforeFromRow:s,crossRelationFieldCountBeforeToRow:l}},t.prototype.OIi=function(t,n){var i,e,o,r,u,c,a,s,l,f=this,d=f.eIi();return f.CMi=f.HMi(d),i=d.getColumnInfos(),e=f.CMi.filter((function(t){return xt(t)})),r=(o=f.CMi.filter((function(n,i){return i<t&&wt(n)}))).reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),u=t<n?n+1:n,a=(c=f.CMi.filter((function(t,n){return n<u&&wt(t)}))).reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),s=0,l=f.EIi(t,n),f.CMi[t].textIndent===f.CMi[n].textIndent&&f.CMi[t].isRelationship&&f.CMi[n].isRelationship&&f.GIi(t,n)&&(l=0),{columnInfos:i,columnFieldInfos:e,crossColumnCountBeforeFromRow:r,crossColumnCountBeforeToRow:a,crossRelationFieldCountBeforeFromRow:s,crossRelationFieldCountBeforeToRow:l}},t.prototype.GIi=function(t,n){var i,e,o=this,r=o.eIi(),u=o.HMi(r),c="";for(i=t;i>=0;i--)if(!jt(u[i])){c=u[i].value;break}for(e="",i=n;i>=0;i--)if(!jt(u[i])){e=u[i].value;break}return c===e},t.prototype.EIi=function(t,n){var i,e,o=this,r=o.eIi(),u=o.HMi(r),c=n-t;for(e=t;e>=0;e--)if(!jt(u[e])){i=t-e-1;break}return c+i},t.prototype.vDo=function(t,n){var i,e,o;return!!this.options.disallowResortRelationshipField&&(e=(i=this.CMi)&&i[t],o=i&&i[n],!(!e||!o||!e.isRelationship&&!o.isRelationship))},t.prototype.yIi=function(t,n){var i,e,o,r,u,c,a,l,f,d,h,v,g,M,I,b=this,N=b.vMi,D=N.getDataView();if(!(Tt(b.CMi[t])&&jt(b.CMi[n])||(e=(i=b.ZIi(t,n)).columnInfos,o=i.crossColumnCountBeforeFromRow,r=i.crossColumnCountBeforeToRow,u=i.crossRelationFieldCountBeforeFromRow,c=i.crossRelationFieldCountBeforeToRow,a=b.pIi(D).length||0,l=b.gDo(D,t),f=b.gDo(D,n),(d=D.oPt&&D.oPt.length?D.ALt():null)&&(l=d.indexOf(l),f=d.indexOf(f)),h=t-1+a-u+o,v=n-1+a-c+r,D.oPt&&D.oPt.length&&(h=D.BPt(h),v=D.BPt(v)),h===v))){if(g=1,wt(b.CMi[t])&&(M=b.kIi(D,h),g=e.filter((function(t){return t.RBt===M})).length),b.CMi[t].isRelationship)for(g=1,I=t+1;I<b.CMi.length&&jt(b.CMi[I]);I++)g++;N.zA({cmd:s.VIEW_MOVE_COLUMN_FOR_PANEL,fromColumnOptionIndex:l,toColumnOptionIndex:f,fromColumnIndex:h,toColumnIndex:v,count:g}),b.ZS()}},t.prototype.wIi=function(t,n){var i,e,o,r,u,c,a,l,f,d,h,v,g,M,I,b,N;t!==n&&(o=(e=(i=this).vMi).getDataView(),u=(r=i.OIi(t,n)).columnInfos,c=r.crossColumnCountBeforeFromRow,a=r.crossColumnCountBeforeToRow,l=r.crossRelationFieldCountBeforeFromRow,f=r.crossRelationFieldCountBeforeToRow,d=i.pIi(o).length||0,h=i.gDo(o,t),v=i.gDo(o,n),(g=o.oPt&&o.oPt.length?o.ALt():null)&&(h=g.indexOf(h),v=g.indexOf(v)),M=t-1+d-l+c,I=n-1+d-f+a,o.oPt&&o.oPt.length&&(M=o.BPt(M),I=o.BPt(I)),M!==I&&(b=1,Tt(i.CMi[t])&&(N=i.kIi(o,M),b=u.filter((function(t){return t.RBt===N})).length),e.zA({cmd:s.VIEW_MOVE_COLUMN_FOR_PANEL,fromColumnOptionIndex:h,toColumnOptionIndex:v,fromColumnIndex:M,toColumnIndex:I,count:b}),i.ZS()))},t.prototype.sIi=function(t){var n=this,i=n.EMi;n.options.crossAreaVisible=t,t?i.classList.remove(ut):i.classList.add(ut)},t.prototype.setGroupAreaVisible=function(t){this.MIi(t)},t.prototype.MIi=function(t){var n=this,i=n.SMi,e=n.GMi;n.options.groupAreaVisible=t,t?(i.classList.remove(ut),e.classList.remove(ut)):(i.classList.add(ut),e.classList.add(ut))},t.prototype.AIi=function(t,n,i,e){var o=this,r=o.SIi,u=o.Ti||document.body;r&&r.parentElement&&r.parentElement!==u&&(r.parentElement.removeChild(r),r=this.SIi=void 0),r||((r=o.SIi=document.createElement("span")).className="gc-table-sheet-move-span",r.style.position="fixed",u.appendChild(r)),r.textContent=n,r.style.top=t.clientY+5+"px",r.style.left=t.clientX-50+"px",r.style.display="block"},t.prototype.fIi=function(t,n){var i=t.uw();return t.hitTest(n.pageX-i.left,n.pageY-i.top,!1)},t.prototype.PMi=function(){var t=this,n=t.Tp(),i=t.vMi;i.bind(o.Events.ColumnChanged+g,(function(e,r){var u,c,a,s=r.sheetArea,l=i.getDataView();1!==s&&3!==s||("isVisible"===r.propertyName?(u=r.sheet.getValue(0,r.col,o.SheetArea.colHeader),(c=t.nv(l,u))>=0&&(n.suspendPaint(),n.suspendEvent(),n.setValue(c,0,r.newValue),n.resumeEvent(),n.resumePaint())):"addColumns"!==r.propertyName&&"deleteColumns"!==r.propertyName||(n.suspendPaint(),n.suspendEvent(),a=t.RIi(i),t.FMi(n,a),n.resumeEvent(),n.resumePaint()),t.CMi=t.HMi(l))}))},t.prototype.Tp=function(){if(this.mMi){var t=(0,o.GC$)(this.mMi).data("workbook");if(t)return t.getSheet(0)}return null},t.prototype.RIi=function(t){var n,i,e,r,u,c,a,s=t.getDataView();if(s){for(i=[(n=this.HMi(s))[0]],r=0,u=(e=t.Mf).getColumnCount();r<u;r++)c=e.getValue(0,r,o.SheetArea.colHeader),(a=this.nv(s,c))>=0&&i.push(n[a]);return i}return[]},t.prototype.nv=function(t,n){var i,e;if(t)for(i=t.getColumnInfos(!0),e=0;e<i.length;e++)if(i[e].caption===n||i[e].value===n)return e+1;return-1},t.prototype.kIi=function(t,n){var i=t.BPt(n),e=t.yLt[i];return e&&e.RBt},t.prototype.HMi=function(t,n){var i,e,o,r,u,c,a,s,l,f,d,h,v,g,M,N,D=this;if(t){for(i=[],e=!1,o=t.getColumnInfos(!0,!0),r=!b(n),u=function(){return r&&i.length-1>=n},c=0;c<o.length;c++){if("string"==typeof(a=o[c]).value&&0===a.value.trim().indexOf("="))i.push({value:a.value,textIndent:ft,checkStatus:!1!==a.visible,isCalculateColumn:!0});else if(b(a.cross))if("string"==typeof a.value&&t.FPt(a.value)&&1===a.value.split(".").length)if(o[c].isRelationship){for(s=a.value,l=!this.PIi(o,s)||!1,i.push({value:D.$t(a),textIndent:ft,checkStatus:!1!==a.visible,setCollapsed:l,isRelationship:!0}),f=D.WIi(a.value,D.YMi,t),d=0,h=[],v=c+1,g=function(){var t,n=o[v].value;"string"==typeof n&&(t={value:n.substring(n.indexOf(".")+1),nIi:n,textIndent:dt,checkStatus:!1!==o[v].visible,needCheckBox:!0,isRelationship:!0,isViewColumnOption:!0},(d=f.findIndex((function(t){return t.nIi===n})))>-1?f[d]=Nt(Nt(Nt({},t),f[d]),{checkStatus:t.checkStatus}):h.push(t)),v++};this.YIi(o,v,s);)g();f.forEach((function(t){return i.push(t)})),h.forEach((function(t){return i.push(t)})),c=v-1}else i.push({value:D.$t(a),textIndent:ft,checkStatus:!1!==a.visible}),D.WIi(a.value,D.YMi,t).forEach((function(t){return i.push(t)}));else{if("string"==typeof a.value&&"_ganttColumn"===a.value){if(u())return a;continue}M=void 0,N=void 0,"string"==typeof a.value&&-1===a.value.indexOf(".")&&(M=t.isLookupField(a.value),a.yBt=M,N=a.value),i.push({value:D.$t(a),textIndent:ft,checkStatus:!1!==a.visible,yBt:M,nIi:N})}else i.push({value:D.$t(a),bMi:a.cross,RBt:a.RBt,textIndent:ft,checkStatus:!1!==a.visible});if((b(a.visible)||a.visible)&&(e=!0),u())return a}return r?I:(i.unshift({value:t.name,textIndent:ft,checkStatus:e,isViewName:!0}),i)}return[]},t.prototype.PIi=function(t,n){var i,e;for(i=0;i<t.length;i++)if("string"==typeof(e=t[i]).value&&-1!==e.value.indexOf(n)&&!1!==e.visible)return!0;return!1},t.prototype.YIi=function(t,n,i){if(n>=t.length)return!1;var e=t[n];return!e.cross&&!e.isCross&&(-1!==e.value.indexOf(i)&&-1===e.value.indexOf("="))},t.prototype.$t=function(t){var n,i,o,r=[],u=t.value instanceof Function?t.value.name:t.value,c=(0,e.tIi)(t.caption)||u;return r.push({text:c}),(n=this.options.showSource)===Mt.field?"="!==u[0]&&(this.options.hideIdenticalSourceField&&c===u||(i=u)):n===Mt.formula?"="===u[0]&&(i=u):n===Mt.all&&(i=u),i&&(o=" ("+i+")",r.push({style:{foreColor:"grey"},text:o})),{richText:r}},t.prototype.VMi=function(t,n){t.options.showVerticalScrollbar=n},t.prototype.FMi=function(t,i){var r,u,c,l,f,d,h,v,g,M=this,N=i.length,m=t.outlineColumn,w=this.options,C=w.showEditButton,y=this.vMi,x=y.Mf,A={};for(t.suspendEvent(),t.suspendPaint(),r=0;r<t.getRowCount();r++)m.getCollapsed(r)&&(m.setCollapsed(r,!1),A[(u=t.getCell(r,1)).value()]=u.textIndent()),i[r]&&!b(i[r].setCollapsed)&&i[r].setCollapsed&&(u=t.getCell(r,1)).textIndent()===ft&&(A[u.value()]=u.textIndent());for(m.reset(),t.setRowCount(N),t.clear(0,0,N,2,3,o.StorageType.data|o.StorageType.style),c=0;c<N;c++)l=i[c],u=t.getCell(c,1).textIndent(l.textIndent),l.isCalculateColumn?t.setFormula(c,1,l.value):u.value(l.value),(l.textIndent===ft||l.needCheckBox)&&((f=new a.CheckBox).mode("modern"),f.processMouseMove=D,t.getCell(c,0).value(l.checkStatus).cellType(f)),d=[],Ct(l)&&d.push({useButtonStyle:!1,hoverBackColor:"white",imageType:o.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9vayB1cCBjb2x1bW4xPC90aXRsZT4KICAgIDxnIGlkPSJsb29rLXVwLWNvbHVtbjEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0zLDMgTDUsMyBMNSw0IEwzLDQgTDMsMyBaIE0zLDYgTDUsNiBMNSw3IEwzLDcgTDMsNiBaIE0zLDkgTDUsOSBMNSwxMCBMMywxMCBMMyw5IFogTTMsMTIgTDUsMTIgTDUsMTMgTDMsMTMgTDMsMTIgWiBNNiwzIEwxNCwzIEwxNCw0IEw2LDQgTDYsMyBaIE02LDYgTDE0LDYgTDE0LDcgTDYsNyBMNiw2IFogTTYsOSBMMTQsOSBMMTQsMTAgTDYsMTAgTDYsOSBaIE02LDEyIEwxNCwxMiBMMTQsMTMgTDYsMTMgTDYsMTIgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iIzY2NjY2NiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",visibility:o.ButtonVisibility.always,iMe:!0,imageSize:{height:20,width:20}}),wt(l)&&(d.push({useButtonStyle:!1,hoverBackColor:"white",imageType:o.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y3Jvc3MgY29sdW1uMTwvdGl0bGU+CiAgICA8ZyBpZD0iY3Jvc3MtY29sdW1uMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Iue8lue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDIuMDAwMDAwKSIgZmlsbD0iIzY2NjY2NiI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMywwIEwxMywzLjUzMSBMMTIsMi42OTcgTDEyLDEgTDksMSBMOSw1IEw4LDUgTDgsMSBMNSwxIEw1LDEwIEw0LDEwIEw0LDEgTDEsMSBMMSwxMSBMMy42OTcsMTEgTDQuNTMxLDEyIEwwLDEyIEwwLDAgTDEzLDAgWiBNMTMsOS40NjggTDEzLDEyIEwxMC40NjksMTIgTDExLjMwMywxMSBMMTIsMTEgTDEyLDEwLjMwMiBMMTMsOS40NjggWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLlvaLnirbnu5PlkIgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjAwMDAwMCwgOS4wMDAwMDApIHNjYWxlKC0xLCAtMSkgdHJhbnNsYXRlKC0xMC4wMDAwMDAsIC05LjAwMDAwMCkgIiBwb2ludHM9IjggMTQgNSAxMS41IDggOSA4IDExIDEyIDExIDEyIDcgMTAgNyAxMi41IDQgMTUgNyAxMyA3IDEzIDEyIDggMTIiPjwvcG9seWdvbj4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",visibility:o.ButtonVisibility.always,iMe:!0,imageSize:{height:16,width:16}}),d.push({imageType:o.ButtonImageType.clear,visibility:o.ButtonVisibility.always,iMe:!0,imageSize:{height:18,width:18},command:function(t,n,e,o){var r,u,c=y.getDataView();if(c){for(r=c.uPt(i.filter((function(t){return xt(t)})).indexOf(i[n])),y.zA({cmd:s.REMOVE_CROSS_COLUMN,index:r}),M.cIi=I,M.oIi=I,M.NIi=void 0,M.mIi=void 0,u=0;u<i.length;u++)if(i[u]&&xt(i[u])){t.t4(u,1);break}M.AMi=!0,M.MIi(!0),M.sIi(!1),M.AMi=!1,M.ZS()}}})),C&&d.push({imageType:o.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTY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yLjEyMDJDMTUuODI4NSAyLjIwMTc2IDE1Ljg5MzIgMi4yOTg2MiAxNS45Mzc0IDIuNDA1MjNDMTUuOTgxNiAyLjUxMTg0IDE2LjAwNDQgMi42MjYxMSAxNi4wMDQ0IDIuNzQxNTJDMTYuMDA0NCAyLjg1NjkzIDE1Ljk4MTYgMi45NzEyMSAxNS45Mzc0IDMuMDc3ODJDMTUuODkzMiAzLjE4NDQzIDE1LjgyODUgMy4yODEyOCAxNS43NDY4IDMuMzYyODRMMTMuODg1IDUuMjI0NkwxMy44ODQyIDUuMjI1NDhWNS4yMjU0OFoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOV8xNTExIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",visibility:o.ButtonVisibility.onSelected,iMe:!0,command:function(n,r,u,c){var a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C=y.getDataView();if(C&&(s=(a=i[r])&&a.nIi,l=!(!a||!a.isCalculateColumn),f=t.getText(r,u),d=l?a.value:"",l||0===f.indexOf("=")||(h=f.indexOf("("))>=0&&(f=f.substring(0,h)),s||d||f))for(v=function(t){return"string"==typeof t?t.replace(/\s+/g,""):t},g=C.getColumnInfos(),M=0;M<g.length;M++)if(!(I=g[M]).isGroup&&(b=!1,b=s?I.value===s:l?v(I.value)===v(d):(N=(0,e.tIi)(I.caption||I.value))===f)){D=M,m=x.getSelections(),w=[(0,o.Ec)(-1,D,-1,1)],x.EA(m,w),x.setSelection(-1,D,-1,1),x.showCell(x.Tb||0,D,o.VerticalPosition.nearest,o.HorizontalPosition.nearest),x.jA(m);break}}}),d.length>0&&u.cellButtons(d);for(v in h=t.getStyle(-1,0),w.showViewName||i.some((function(t){var n;return null===(n=t.nIi)||void 0===n?void 0:n.includes(".")}))?(t.outlineColumn.options({columnIndex:1,showIndicator:!0}),t.outlineColumn.options().collapseIndicator=n.ARROW_RIGHT,t.outlineColumn.options().expandIndicator=n.ARROW_DOWN,t.outlineColumn.refresh(),h.cellPadding="0 0 1 0"):h.cellPadding="0 0 1 0",t.setStyle(-1,0,h),t.showRowOutline(!1),m=t.outlineColumn,A)if(A.hasOwnProperty(v))for(g=A[v],r=0;r<t.getRowCount();r++)if((u=t.getCell(r,1)).value()===v&&u.textIndent()===g){m.setCollapsed(r,!0);break}t.resumePaint(),t.resumeEvent()},t.prototype.kMi=function(){var t,n,i,r,u,c,a=this,l=a.vMi,f=a.rIi,d=l.getDataView();d&&a.options.groupAreaVisible&&(t=(0,o.RF)(l.lMi)||[],f?(n=a.CMi[a.aIi]&&a.CMi[a.aIi].nIi,i=a.gDo(d,a.aIi),r=d.ILt[i],u=r&&r.value||n,c=t.filter((function(t){return t.field===u})),u&&0===c.length&&(t.push({caption:a.Ano?f:(0,e.hze)(f),field:u}),l.zA({cmd:s.GROUP_OPTIONS,groupOptions:t}),a.ZS())):a.updatePanelLayout())},t.prototype.gDo=function(t,n){var i,e,o=this.CMi[n],r=o&&o.nIi;return r&&(i=Dt(t.ILt,(function(t){return t&&t.value===r})))>=0||!b(null==o?void 0:o.RBt)&&(i=Dt(t.ILt,(function(t){return t&&t.RBt===o.RBt})))>=0||(i=this.TIi?this.CMi.filter((function(t){return xt(t)})).indexOf(o):this.CMi.indexOf(this.CMi[n-1]),(e=t.oPt)&&e.length&&(i=t.ALt()[i])),i},t.prototype.pIi=function(t){var n,i,e,o,r;if(t||(t=this.eIi()),n=[],(i=t&&t.getColumnInfos())&&i.length)for(e=0,o=i;e<o.length;e++)(r=o[e]).isGroup&&n.push(r);return n},t.prototype.yMi=function(){var t=this.options.fieldAreaVisible,n=this.options.crossAreaVisible,i=this.options.groupAreaVisible,o="",r="",u="",c="";return o='<div class="'.concat(G,'">\n <span class="gc-table-sheet-field-header">').concat((0,e.getSR)().GroupPanelFieldsHeader,"\n <span role='button' aria-label='").concat((0,e.getSR)().GroupPanelAddCalculateColumn,"' class=\"").concat(F,"\" title='").concat((0,e.getSR)().GroupPanelAddCalculateColumn,"'></span>\n </span>\n <div class=\"").concat(w,'"></div>\n </div>'),r=this.FIi(n),u='<div class="'.concat(y,'">\n <span class="gc-table-sheet-group-header">').concat((0,e.getSR)().GroupPanelGroupsHeader,'</span>\n <ul class="').concat(x,"\" role='listbox' aria-label='").concat((0,e.getSR)().GroupPanelGroupsHeader,"' >\n <span role='option' aria-label='").concat((0,e.getSR)().GroupPanelTip,'\' class="gc-table-sheet-group-tip">').concat((0,e.getSR)().GroupPanelTip,"</span>\n </ul>\n </div>"),c='<div class="'.concat(U,'"></div>'),!1===t&&(o=o.replace(G,G+" "+ut),u=u.replace(y,"".concat(y," half-height")),c=c.replace(U,"".concat(U," half-height"))),!1===i&&(u=u.replace(y,y+" "+ut),c=c.replace(U,U+" "+ut)),!1===n&&!1===i&&(o=o.replace(G,"".concat(G," total-height"))),'<div class="'.concat(m,'">\n ').concat(o,"\n ").concat(u,"\n ").concat(r,"\n ").concat(c,'\n </div>\n <div class="').concat(J,'" style="display:none;"></div>')},t.prototype.updatePanelLayout=function(){this.IIi(),this.LIi(),this.xIi(),this._Mi()},t.prototype.getBindingTable=function(){return this.vMi},t.prototype.getSelectedField=function(){var t,n,i;return this.CMi&&this.wMi!==I&&this.wMi>=0&&this.wMi<this.CMi.length?(null===(t=this.CMi[this.wMi])||void 0===t?void 0:t.nIi)||null:this.BMi&&(i=this.BMi.getActiveRowIndex())>=0?this.CMi&&i<this.CMi.length?(null===(n=this.CMi[i])||void 0===n?void 0:n.nIi)||null:this.BMi.getText(i,1)||this.BMi.getValue(i,1)||null:null},t.prototype.LIi=function(){this.SWt(),this.JIi(),this.Fz()},t.prototype.xIi=function(){var t,n,i,e=this;this.GMi&&(this.XIi(),n=function(){var t;return null===(t=e.GMi)||void 0===t?void 0:t.querySelector(".".concat(H))},i=null===(t=n())||void 0===t?void 0:t.scrollTop,this.GMi.innerHTML=this.KIi(),n()&&(n().scrollTop=i),this._Ii(),this.qIi=!1)},t.prototype.JIi=function(){var t,n,i,e,o=this.vMi,r=o.lMi,u=this.xMi;if(r&&u){for(t="",n=void 0,i=r.length,this.jMi=this.jMi>=i?i-1:this.jMi,e=0;e<r.length;e++)n=r[e],t+=this.$Ii(n,e);u.innerHTML=t,u.style.border="solid 1px lightgrey",this.igi=u.querySelector(".".concat(A))}else this.tgi()},t.prototype._Mi=function(){var t,n;this.mMi&&(t=this.vMi,n=this.HMi(t.getDataView()),this.CMi=n,this.FMi(this.Tp(),n))},t.prototype.tgi=function(){var t,n=this.xMi;n&&(n.innerHTML="<span role='option' aria-label='".concat((0,e.getSR)().GroupPanelTip,'\' class="gc-table-sheet-group-tip">').concat((0,e.getSR)().GroupPanelTip,"</span>"),n.style.border="",this.jMi=0),(t=this.GMi)&&(t.innerHTML="")},t.prototype.Fz=function(){var t,n,i=this,e=i.vMi,r=i.BMi,u=r&&r.Dg(),c=(0,o.RF)(e.lMi),a=i.xMi;a&&(t=i.igi,n=i.LMi.getBoundingClientRect(),(0,o.GC$)(".".concat(T),a).bind("click",(function(t){var n,e,r=t.target.className;r===j?(e=(n=(0,o.GC$)(t.target).parent()).attr(p),i.ngi(e)):r===st&&(e=(n=(0,o.GC$)(t.target).parent()).attr(p),i.rno(e))})).bind("mousedown",(function(t){var e,r=t.target,u=t.target.className,c=!1;u.indexOf(j)>-1||(u.indexOf(Z)>-1?(r=r.parentElement,c=!0):u.indexOf(T)>-1&&(c=!0),c&&(e=(0,o.GC$)(r).attr(p),i.egi=e,n=i.LMi.getBoundingClientRect(),i.jMi!==+e&&(i.jMi=+e,i.XIi(),i.ogi(r),i._Ii()),i.ugi=r))})),i.cgi=function(t){var r,s,l,f,d,h,v,g,b,N=i.egi;N!==I&&N!==M&&(r=(c=(0,o.RF)(e.lMi))[N].caption||c[N].field,i.AIi(t,r,n,i.LMi),u&&(u.style.cursor="move"),i.Ti.style.cursor="move",f=!1,(l=(s=t.target).parentElement)&&l.className.indexOf(T)>-1?(s=l,f=!0):s.className.indexOf(T)>-1&&(f=!0),d=i.ugi,f&&d!==s&&((h=s.getAttribute(p))<N?(d.className=d.className.replace(W,"").replace(V,"").trim(),s.className=s.className+" ".concat(W)):h>N?(d.className=d.className.replace(W,"").replace(V,"").trim(),s.className=s.className+" ".concat(V)):d.className=d.className.replace(W,"").replace(V,"").trim(),i.ugi=s),g=(v=a.getBoundingClientRect()).top+document.documentElement.scrollLeft,b=v.bottom+document.documentElement.scrollTop,t.pageY<g?a.scrollTop=a.scrollTop-10:t.pageY>b&&(a.scrollTop=a.scrollTop+10))},i.rgi=function(t){var n,r,a,l,f=i.egi,d=t.target;c=(0,o.RF)(e.lMi),f!==I&&(i.ugi.className=i.ugi.className.replace(W,"").replace(V,"").trim(),i.zIi(d,i.xMi)?(n=i.ugi)&&(r=(0,o.GC$)(n).attr(p))!==f&&(a=c.splice(f,1)[0],c.splice(r,0,a),i.jMi=+r,e.zA({cmd:s.GROUP_OPTIONS,groupOptions:c}),i.ZS()):i.ngi(f)),i.egi=I,i.ugi=I,u&&(u.style.cursor="default"),i.Ti.style.cursor="default",(l=i.SIi)&&(l.style.display="none")},document.addEventListener("mouseup",i.rgi,!0),document.addEventListener("mousemove",i.cgi,!0),(0,o.GC$)(".".concat(A)).bind("blur",(function(n){"none"!==t.style.display&&(i.agi(n.target),t.style.display="none")})).bind("keydown",(function(n){13===n.keyCode?(i.agi(n.target),t.style.display="none"):27===n.keyCode&&(t.style.display="none")})),(0,o.GC$)(".".concat(x)).bind("dblclick",(function(t){var n;t.target.className===Z&&i.sgi(t)})))},t.prototype.Xeo=function(t){return t?t.getColumnInfos(!0,!0).filter((function(t){return b(t.cross)})).map((function(t){var n=t.value instanceof Function?t.value.name:t.value;return{text:(0,e.tIi)(t.caption)||n,value:n}})):[];var n},t.prototype.Mgi=function(){var t,n,i,e=document.createElement("li");return e.className=O,t=this.Xeo(this.vMi.getDataView()),n=this.vMi.options.groupLayout.mode===r.GroupLayoutMode.tabular,i=this.vMi.options.groupLayout.position,e.innerHTML=vt({sliceField:"",caption:"",formula:"",columnList:t,showSlice:n,position:i}),e},t.prototype.ogi=function(t){var n,i,e=this,o=e.xMi,r=o.querySelectorAll(".".concat(T));for(n in r)r.hasOwnProperty(n)&&((i=r[n]).className=i.className.replace("selected","").trim(),i===t&&(i.className=i.className+" selected"));this.GMi&&(this.GMi.innerHTML=this.KIi(),this.qIi=!1)},t.prototype.Nuo=function(t){return this.vMi.Nuo(t)},t.prototype.Iuo=function(t){return this.vMi.Iuo(t)},t.prototype.KIi=function(){var t,n,i,o,u,c,a,s,f,d=this,h=d.jMi,v="",g=d.vMi,M=g.lMi,I=M&&M[h],b=I&&I.field,N="",D=I&&I.summaryFields,m=this.Xeo(this.vMi.getDataView()),w=g.options.groupLayout&&(0,l.isGroupOutlineCondensedLayout)(g.options.groupLayout.mode);if(D)for(n=0;n<D.length;n++)u="",(o=(i=D[n]).slice)&&(u="string"==typeof o?o:o.field),c=w?i.caption:i.caption||i.formula,a=i.relateTo,s=i.position||(null===(t=this.vMi.options.groupLayout)||void 0===t?void 0:t.position)||"header",a||(a=this.vMi.getDataView().ucr(i.formula,!0)[0]),f=this.vMi.options.groupLayout.mode===r.GroupLayoutMode.tabular,N+='<li class="'.concat(O,'" ').concat(p,"=").concat(h," ").concat(S,"=").concat(n,">\n ").concat(vt({formula:d.Nuo(i.formula),caption:c,sliceField:d.Nuo(u),columnList:m,relateTo:a,position:s,showSlice:f}),"\n </li>");return b&&(v='<div class="gc-table-sheet-summary-header">\n <span class="gc-table-sheet-summary-label">'.concat(b,'</span>\n <span class="').concat(Q,'" title="').concat((0,e.getSR)().GroupPanelItemAddCalculation,'"></span>\n <span class="gc-table-sheet-summary-remove" title="').concat((0,e.getSR)().GroupPanelItemRemoveAll,'"></span>\n </div>\n <ul class="').concat(H,'">\n ').concat(N,"\n </ul>")),v},t.prototype._Ii=function(){var t,n,i=this,e=i.pMi;(0,o.GC$)(".".concat(H)).bind("change",(function(e){var r,u,c,a,l,f,d,h,v,g,M,b,N,D,m,w=(0,o.GC$)(e.target),C=w.attr("current-data"),y=w.val(),x=w.parent();if(C!==y&&x&&x[0]&&"="!==y){if(r=i.vMi,u=(0,o.RF)(r.lMi),c=i.jMi,a=u&&u[c],l=JSON.parse(JSON.stringify(u)),d=(f=x.parent()).attr(S),v=(h=gt(f)).formulaInputValue,g=h.captionInputValue,M=h.sliceInputValue,b=h.relateToValue,N=h.positionValue,a.summaryFields||(a.summaryFields=[]),M&&""!==M){if(-1===M.indexOf("(")&&(D=M.replace("=",""),M=D,!i.Igi(D)))return}else M=I;(m=a.summaryFields[d])?(m.formula=i.Iuo(v),m.caption=g||v,m.slice=i.Iuo(""===M?I:M),m.position=N,m.relateTo=b):a.summaryFields.push({formula:i.Iuo(v),caption:g||v,slice:i.Iuo(""===M?I:M),position:N,relateTo:b});try{r.zA({cmd:s.GROUP_OPTIONS,groupOptions:u})}catch(t){r.groupBy(l)}i.ZS()}i.ggi(t,n)})),(0,o.GC$)(".".concat(R)).bind("focus",(function(r){var u=r.target,a=(0,o.GC$)(u).val()||"=";(t=new c.FormulaTextBox(u,M,M)).Ngi=!0,n=new o.Workbook(e,{allowDynamicArray:!0,allowUndo:!1}),i.XMi(n),i.lgi(n),t.workbook(n),t.text(a)})).bind("blur",(function(e){var r=(0,o.GC$)(e.target),u;"="===r.val()&&r.val(""),i.ggi(t,n)})).bind("keydown",(function(e){13===e.keyCode&&(i.ggi(t,n),e.target.blur())})),(0,o.GC$)(".".concat(P)).bind("focus",(function(r){var u=r.target,a=(0,o.GC$)(u).val()||"=";(t=new c.FormulaTextBox(u,M,M)).Ngi=!0,n=new o.Workbook(e,{allowDynamicArray:!0,allowUndo:!1}),i.XMi(n),i.lgi(n),t.workbook(n),t.text(a)})).bind("blur",(function(e){var r=(0,o.GC$)(e.target),u;"="===r.val()&&r.val(""),i.ggi(t,n)})).bind("keydown",(function(e){13===e.keyCode&&(i.ggi(t,n),e.target.blur())})),(0,o.GC$)(".".concat(U)).bind("mouseup",(function(e){var r,u,c,a,l,f,d,h,v,g,M,I=e.target,b=I.className;"gc-table-sheet-summary-remove"===b?(r=i.vMi,u=(0,o.RF)(r.lMi),c=i.jMi,(a=u&&u[c]).summaryFields=[],r.zA({cmd:s.GROUP_OPTIONS,groupOptions:u}),i.ZS()):b===Q?(f=(l=i.GMi).querySelector(".".concat(H)))&&!i.qIi&&(i.qIi=!0,i.XIi(),d=i.Mgi(),f.appendChild(d),i._Ii()):"gc-table-sheet-summary-item-remove-icon"===b&&(v=(h=(0,o.GC$)(e.target)).parent())&&v[0]&&(r=i.vMi,u=(0,o.RF)(r.lMi),c=i.jMi,a=u&&u[c],(M=(g=v.parent()).attr(S))&&a.summaryFields?(a.summaryFields.splice(parseInt(M,10),1),r.zA({cmd:s.GROUP_OPTIONS,groupOptions:u}),i.ZS()):M||(g.remove(),i.ggi(t,n),i.qIi=!1))}))},t.prototype.lgi=function(t){var n=t.getActiveSheet();delete n.Qy().PUt.enter,n.setRowCount(1),n.setColumnCount(1)},t.prototype.ggi=function(t,n){t&&t.destroy&&t.destroy(),n&&n.destroy&&n.destroy()},t.prototype.Igi=function(t){var n,i=this.vMi.getDataView(),e=i&&i.getColumnInfos(!0).map((function(t){return t.value}));return!!(e&&e.indexOf(t)>-1)},t.prototype.XMi=function(t){var n,i,o,r,u,c=this.vMi,a=c.getDataView(),s=a&&a.getColumnInfos(!0,!0);if(s)for(this.Dgi&&(n=this.Dgi.map((function(t){return{value:t.attribute}})),s=s.concat(n)),i=0,o=s;i<o.length;i++)(u=(r=o[i]).value)&&"string"==typeof u&&-1===u.indexOf("=")&&r.cross===I&&t.zwt(t.hyt,u,"=A1",0,0,!0,(0,e.getSR)().GroupPanelDropDownCalcField+" "+u)},t.prototype.XIi=function(){(0,o.GC$)(".".concat(H)).unbind("change"),(0,o.GC$)(".".concat(R)).unbind("focus"),(0,o.GC$)(".".concat(R)).unbind("blur"),(0,o.GC$)(".".concat(R)).unbind("keydown"),(0,o.GC$)(".".concat(P)).unbind("focus"),(0,o.GC$)(".".concat(P)).unbind("blur"),(0,o.GC$)(".".concat(P)).unbind("keydown"),(0,o.GC$)(".".concat(U)).unbind("mouseup")},t.prototype.sgi=function(t){var n=this,i=n.igi,e=(0,o.GC$)(t.target).parent(),r=e.attr(z);i.style.display="inline",i.value=r,i.style.left="",i.style.width="",e.append(i),i.focus()},t.prototype.ngi=function(t){var n=this,i=n.vMi,e=(0,o.RF)(i.lMi),r=e[t],u=r&&r.field;(e=e.filter((function(t){return t.field!==u}))).length?i.zA({cmd:s.GROUP_OPTIONS,groupOptions:e}):i.zA({cmd:s.GROUP_OPTIONS,groupOptions:[]}),n.ZS()},t.prototype.rno=function(t){var n=this.vMi,i=n.lMi[t];n.ki(o.Events.TableSheetGroupFieldSetting,{groupOption:i})},t.prototype.SWt=function(){var t=this,n=t.xMi;(0,o.GC$)(".".concat(T),n).unbind("click"),(0,o.GC$)(".".concat(T),n).unbind("mousedown"),(0,o.GC$)(".".concat(x)).unbind("dblclick"),(0,o.GC$)(".".concat(A)).unbind("blur"),(0,o.GC$)(".".concat(A)).unbind("keydown"),(0,o.GC$)(".".concat(Q)).unbind("click"),document.removeEventListener("mouseup",t.rgi,!0),document.removeEventListener("mousemove",t.cgi,!0)},t.prototype.agi=function(t){var n,i,r,u,c,a,l,f,d,h=this,v=t.value;v&&(i=(n=(0,o.GC$)(t).parent()).attr(L),r=n.attr(z),u=n.attr(k),c=n.attr(E),a=n.attr(p),l=n.attr(S),f=h.vMi,d=(0,o.RF)(f.lMi),i||r?v!==r&&d&&(d[a].caption=(0,e.hze)(v),f.zA({cmd:s.GROUP_OPTIONS,groupOptions:d})):(u||c)&&v!==u&&d&&(d[a].summaryFields[l].caption=v,f.zA({cmd:s.GROUP_OPTIONS,groupOptions:d})),h.ZS())},t.prototype.$Ii=function(t,n){var i=t.field,o=(0,e.tIi)(t.caption)||i,r=n===this.jMi?" selected":"";return'<li class="'.concat(T).concat(r,"\" role='option' aria-label='").concat(o,"' ").concat(""===r?"":'aria-selected="true"'," ").concat(z,'="').concat(d(o),'" ').concat(L,'="').concat(i,'" ').concat(p,"=").concat(n,'>\n <span class="').concat(Z,'">').concat(d(o),'</span>\n <span role="button" aria-label="').concat((0,e.getSR)().GroupPanelItemRemove,'" class="').concat(j,'" title="').concat((0,e.getSR)().GroupPanelItemRemove,'"></span>\n ').concat(ht(this.options.showGroupSetting,'<span role="button" aria-label="'.concat((0,e.getSR)().GroupPanelSetting,'" class="').concat(st,'"></span>')),'\n </li>\n <input class="').concat(A,'" display="none" aria-label=\'').concat((0,e.getSR)().GroupPanelGroupName,"'></input>")},t.prototype.zIi=function(t,n){for(;t;){if(t===n)return!0;t=t.parentElement}return!1},t.prototype.BIi=function(t,n){var i=this,e=i.vMi,o=e.getDataView(),r=t||o.ILt,u=o.aPt,c=null!=n?n:o.LEt;e.zA({cmd:s.RESET_NEW_VIEW,newConfig:{columnInfoOptions:r,includeDefaultColumns:u,options:c}}),i.ZS()},t.prototype.Cno=function(t){var n,i,e,r,u,c,a,s,l,d={};for(n=0;n<t.ILt.length;n++)!((i=t.ILt[n]).style instanceof o.Style)&&i.style&&i.style.cellType&&i.style.cellType instanceof f&&(d[n]||(d[n]={}),d[n].style=i.style,i.style=new o.Style(i.style)),!(i.headerStyle instanceof o.Style)&&i.headerStyle&&i.headerStyle.cellType&&i.headerStyle.cellType instanceof f&&(d[n]||(d[n]={}),d[n].headerStyle=i.headerStyle,i.headerStyle=new o.Style(i.headerStyle));for(n in e=h(t.ILt),d)if(d.hasOwnProperty(n)){if((r=d[n]).style){if((u=e[n])&&u.style){for(a in c={},r.style)r.style.hasOwnProperty(a)&&(c[a]=u.style[a]);u.style=c}t.ILt[n]&&(t.ILt[n].style=r.style)}if(r.headerStyle){if((s=e[n])&&s.headerStyle){for(a in l={},r.headerStyle)r.headerStyle.hasOwnProperty(a)&&(l[a]=s.headerStyle[a]);s.headerStyle=l}t.ILt[n]&&(t.ILt[n].headerStyle=r.headerStyle)}}return e},t.prototype.dgi=function(t,n){var i,e,r,u,c,a,s,l,f,d,h,v=this,g=v.vMi,M=g.getDataView(),N=v.Cno(M),D=null!=n?n:(0,o.RF)(M.LEt),m=v.cIi,w=D&&D.cross||{};for(t&&N.push(m[m.length-1]),i=0,e=0;i<N.length;i++)r=void 0,b(N[i].cross)||(r=m[e],e++),r&&((u=r.cross.attributes)&&(r.cross.attributes=u.filter((function(t){return t}))),c=r.cross.hgi,a=r.cross.Zc,s=r.cross.Tgi,l=r.cross.bgi,f=Lt(r),s?(delete f.cross.Tgi,delete r.cross.Tgi,a?(w[a]||(v.Agi(c),f.cross.vgi=f.vgi,w[a]=f.cross),f.cross=a,r.cross=a):c&&w[c]&&(r.cross=f.cross=w[c])):l&&(v.Agi(c),(d=w[a])?(r.vgi=d.vgi,r.cross=a,f.cross=a):(delete r.cross.jgi,delete f.cross.jgi,delete r.cross.Zc,delete f.cross.Zc)),r.cross.jgi!==I&&(h=r.cross.jgi,delete r.cross.jgi,delete f.cross.jgi,w[h]=r.cross,f.cross=h,r.cross=h),delete f.cross.hgi,delete f.cross.Tgi,delete f.cross.bgi,delete f.cross.jgi,delete r.cross.hgi,delete r.cross.Tgi,delete r.cross.bgi,delete r.cross.jgi,delete f.vgi,N[i]=f);Object.keys(w).length>0&&(D.cross=w),v.BIi(N,D),v.options.crossAreaVisible||(v.cIi=I,v.oIi=I,v.NIi=void 0,v.mIi=void 0)},t.prototype.Agi=function(t){var n,i,e,o=this,r=o.vMi.getDataView().LEt,u=r&&r.cross||{},c=o.cIi;if(t&&u[t]){for(n=0,i=0;i<c.length&&((e=c[i]).cross.hgi!==t&&e.cross!==t||!(++n>=2));i++);n<2&&delete u[t]}},t.prototype.CIi=function(t){var n,i,e,o,r,u,c=this,a=c.uIi;if(a&&c.zIi(t.target,c.zgi())){if(!c.oIi)return;if(!c.mLt(a))return;(n=c.cIi&&0===c.cIi.length)&&(c.cIi=c.lIi()),i=c.cIi,e={value:a,cross:{over:c.oIi}},i&&i.length?i.push(e):c.cIi=[e],c.NIi=c.cIi.length-1,c.IIi(),r=(o=c.cIi[c.NIi])&&o.cross,c.Cgi(r,o.value)&&(c.dgi(!0),(u=c.Tp()).t4(c.CMi.length-1,0))}},t.prototype.wgi=function(t){var n,i,e,o=this,r=o.YMi,u="";if(r&&r[t])for(i=(n=r[t].level)-1,u=r[t].name,t--;i>=0&&t>=0;)(e=r[t])&&e.level===i&&(i--,u=e.name+"."+u),t--;return u},t.prototype.FIi=function(t){var n=t?"":" "+ut;return'<div class="'.concat(y," ").concat(C," ").concat(X).concat(n,'">\n ').concat(this.ygi(),"\n </div>")},t.prototype.ygi=function(){return'<span class="gc-table-sheet-group-header">'.concat((0,e.getSR)().CrossColumnCrossHeader,'</span>\n <div class="').concat(K,'">').concat(this.mgi(),"</div>")},t.prototype.IIi=function(){if(this.ZMi){this.Lgi();var t=this.mgi();t&&(this.ZMi.innerHTML=t),this.OMi=this.ZMi.querySelector(".".concat($)),this.xgi()}},t.prototype.mgi=function(){var t,n,i,o,r,u,c,a,s,l,f,d,h,v,g,M,b,N,D,m,w,C,y=this,x="",A=y.oIi,T=y.vMi.getDataView(),j=T&&T.LEt||{};if((void 0!==y.NIi&&y.cIi&&y.cIi.length||A)&&(i=y.cIi&&y.cIi[y.NIi]||{value:"",cross:{over:A}})){if(o=y.gIi(i.cross),c=(u=!pt(r=i.value))?"":"disabled aria-disabled='true'",n=T.isLookupRelationField(o.over))if(t=i.vgi,o.attributes){if(!t)for(t=i.vgi=y.Sgi(o.over).map((function(t){var n=Dt(o.attributes,(function(n){return mt(n)===mt(t)})),i=n>-1;return{attribute:i?o.attributes[n]:t,checked:i}})),a=function(n){var i,e=o.attributes[n],r=Dt(t,(function(t){return mt(t.attribute)===mt(e)})),u=function(n){var i,e=o.attributes[n],u=Dt(t,(function(t){return mt(t.attribute)===mt(e)}));r<u&&(i=t[u],t.splice(u,1),t.splice(r,0,i),r+=1)};for(i=n-1;i>=0;i--)u(i)},s=o.attributes.length-1;s>=0;s--)a(s)}else o.attributes=y.Sgi(o.over),t=i.vgi=o.attributes.map((function(t){return{attribute:t,checked:!0}}));else t=T.getLookup(o.over).map((function(t){return t instanceof Date&&(t=t.toString()),{attribute:t}}));for(l="",f=n?"":" "+ut,d=n?"":" "+ut,y.Dgi=t||[],y.mIi===I&&(y.mIi=0),s=0;s<t.length&&r;s++)v=(h=t[s]).checked,M=g=h.attribute,b="",g!==I&&("object"==typeof g&&(M=g.value,b=g.formatter),N=n&&s===this.mIi?" selected":"",l+='<li class="'.concat(n?tt+N:"gc-table-sheet-cross-column-static-list-item",'" attribute-value="').concat(M,'" attribute-index=').concat(s," >\n <input aria-label='").concat(M,"' name=\"").concat(M,'" class="').concat(nt," ").concat(f,'" input-type="attributes" type="checkbox" value="" ').concat(v?"checked":"",' />\n <span class="gc-table-sheet-cross-column-item-label">').concat(M,"</span>\n <span role='button' class=\"").concat(it," ").concat(f,'" title="').concat((0,e.getSR)().CrossColumnDetailFormatter,'"></span>\n <span class="').concat(_,' gc-table-sheet-cross-column-attributes-formatter gc-table-sheet-hidden">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailFormatter,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailFormatter,"' class=\"").concat(Y,'" input-type="attributes.formatter" spellcheck="false" value="').concat(b,'"></input>\n </span>\n </li>'));if(D="<option></option>",m=T.LEt&&T.LEt.cross)for(w in m)m.hasOwnProperty(w)&&m[w].over===o.over&&(C=w===o.Zc?'selected="selected"':"",D+="<option value=".concat(w," ").concat(C,">").concat(w,"</option>"));x='<div class="gc-table-sheet-cross-column-detail-content">\n <div class="'.concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailName,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailName,'\' class="gc-table-sheet-cross-item-input-name" input-type="name" spellcheck="false" tabIndex="-1" value=\'').concat(o.Zc||"","' ").concat(c,"></input>\n <select aria-label='").concat((0,e.getSR)().CrossColumnDetailName,'\' class="gc-table-sheet-cross-item-select-name" input-type="name-select" ').concat(c,">\n ").concat(D,'\n </select>\n </div>\n <div class="').concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailValue,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailValue,"' class=\"").concat(q," ").concat(rt,'" input-type="value" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" placeholder="').concat((0,e.getSR)().CrossColumnDetailValuePlaceHolder,"\" value='").concat(r,'\'></input>\n </div>\n <div class="gc-table-sheet-summary-item-formula">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailOver,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailOver,"' class=\"").concat(q," ").concat(rt,'" input-type="over" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" value=\'').concat(o.over,"'></input>\n \x3c!--input class=\"").concat(R,'" input-type="over" spellcheck="false" tabIndex="-1" value=\'').concat(o.over||"","'></input--\x3e\n </div>\n <div class=\"").concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailCaption,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailCaption,"' class=\"").concat(rt,'" input-type="header" spellcheck="false" tabIndex="-1" value=\'').concat(o.caption||"","' ").concat(c,'></input>\n </div>\n <div class="').concat(_,' gc-table-sheet-cross-column-value-caption">\n <span class="').concat(B,"\"></span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailValueHeader,'\' name="showCrossValueHeader" class="').concat(nt,' gc-table-sheet-cross-column-show-value-header" input-type="showCrossValueHeader" type="checkbox" value="" ').concat(j.showCrossValueHeader?"checked":""," ").concat(c,' />\n <span class="').concat(B,' gc-table-sheet-cross-column-value-caption-label">').concat((0,e.getSR)().CrossColumnDetailValueHeader,'</span>\n </div>\n <div class="').concat(_).concat(d,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailFilter,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailFilter,"' class=\"").concat(rt,'" input-type="filter" spellcheck="false" tabIndex="-1" value=\'').concat(n?y.Nuo(o.filter||""):"","' ").concat(c,'></input>\n </div>\n <div class="gc-table-sheet-cross-column-attributes-list-container">\n <span class="').concat(B,'">').concat(n?(0,e.getSR)().CrossColumnDetailAttributes:(0,e.getSR)().CrossColumnDetailList,'</span>\n <ul class="').concat($,'">\n ').concat(l,"\n </ul>\n </div>\n </div>")}return x},t.prototype.zgi=function(){return this.ZMi&&this.ZMi.querySelector(".".concat(q))},t.prototype.WIi=function(t,n,i){var o,r,u,c,a,s=this,l=(null===(o=null==i?void 0:i.getColumnInfos)||void 0===o?void 0:o.call(i,!0,!0))||[];for(c=0;c<n.length;c++)0===(a=n[c]).level&&(a.name===t?r=c+1:b(r)||(u=c));return n.slice(r,u).map((function(t){var n=b(t.cross)&&(i.isLookupField(t.name)||i.isLookupField(t.fieldString)),o=l.find((function(n){return n.value===t.fieldString})),r=o?Nt(Nt({},o),{value:t.name}):{value:t.name},u=b(null==o?void 0:o.caption)||o.caption===t.fieldString||o.caption===t.name?I:(0,e.tIi)(o.caption),c=t.isLeafNode?s.$t(r):u||t.name;return{value:c,nIi:t.fieldString,textIndent:t.level,checkStatus:!1,yBt:n,needCheckBox:!0,isRelationship:!0,isViewColumnOption:!0}}))},t.prototype.WMi=function(){var t=this,n=t.vMi,i=n.getDataView(),e=i&&i.gLt,o=function(t,n,i,e,r){var u,c,a,s,l,f;if(t&&t.Pq){for(u=[],c=0,a=t.Pq;c<a.length;c++)(s=a[c]).targetTable?u.push(s):i.push({level:n,name:s.name,isLeafNode:!0,field:s,hostTable:t,index:i.length,fieldString:r.concat(s.name).join(".")});for(e.push(t.name),l=0,f=u;l<f.length;l++)(s=f[l]).targetTable&&-1===e.indexOf(s.targetTable.name)&&(i.push({level:n,name:s.name,fieldString:r.concat(s.name).join(".")}),r.push(s.name),o(s.targetTable,n+1,i,e,r),r.pop())}return i};return o(e,0,[],[],[])},t.prototype.xgi=function(){var t,n,i,e=this,r=e.pMi,u=function(t){var n,i,r,u,c,a,s,l,f,d,h,v,g,M=(0,o.GC$)(t.target),N=e.NIi,D=e.cIi,m=D[N],w=m&&m.cross,C=M.attr("input-type"),y=M.val().trim(),x=!1;if(w){switch(i=e.vMi.getDataView(),r=null!==(n=(0,o.RF)(i.LEt))&&void 0!==n?n:{},"string"==typeof w&&(u=w,(w=Lt(e.gIi(w))).jgi=u,m.cross=w,m.vgi=w.vgi),C){case"name":""===y||(c=i.LEt.cross)&&c.hasOwnProperty(y)?w.bgi=!0:w.Tgi=!0,w.hgi=w.Zc,w.Zc=e.kgi(w,y),x=!0;break;case"name-select":w.hgi=w.Zc,w.Zc=y,w.bgi=!0,x=!0;break;case"over":w.over=y,e.Ugi(y);break;case"header":w.caption=pt(y)?I:y;break;case"filter":w.filter=e.Iuo(y);break;case"showCrossValueHeader":r.showCrossValueHeader=!r.showCrossValueHeader;break;case"attributes":if(a=[],s=m.vgi,M.parent().parent()[0].querySelectorAll("li").forEach((function(t,n){var i,e,r=t.querySelector(".".concat(nt));s[n].checked=r.checked,r.checked&&(i=(0,o.GC$)(r).attr("name"),e=(0,o.GC$)(t.querySelector('[input-type="attributes.formatter"]')).val(),b(e)||""===e?a.push(i):a.push({value:i,formatter:e}))})),0===a.length)return void M.prop("checked",!0);w.attributes=a;break;case"attributes.formatter":for(l=m.vgi,f=M.parent().parent().attr("attribute-value"),d=function(t){return Dt(l,(function(n){var i=n.attribute;return t===("string"==typeof i?i:i.value)}))},h=0;h<w.attributes.length;h++)(v=w.attributes[h])!==f&&v.value!==f||("string"==typeof v?(g=d(v),l[g].attribute=w.attributes[h]={value:v,formatter:y}):(g=d(v.value),w.attributes[h].formatter=y,l[g].attribute=w.attributes[h]))}e.Cgi(w,m.value)&&e.dgi(!1,r),x&&e.IIi()}},a=function(t){var n=t.target,i=t.target.classList;i.contains(tt)||(n=n.parentElement),i.contains(it)&&e.Zgi(n)},s=function(t){var n=t.target,r=(0,o.GC$)(t.target),u=r.attr(lt),c=t.target.classList;c.contains(tt)||(n=n.parentElement,u=r.parent().attr(lt)),!b(u)&&n.classList.contains(tt)&&(i=e.LMi.getBoundingClientRect(),e.Ogi=n,e.Egi=n,e.mIi!==+u&&(e.mIi=+u,e.Ggi(n)))},l=function(t){var n,o,r,u,c,a,s=e.mIi,l=e.Ogi;!b(s)&&l&&(n=l.getAttribute("attribute-value"),e.AIi(t,n,i,e.LMi),e.Ti.style.cursor="move",u=!1,(r=(o=t.target).parentElement)&&r.className.indexOf(tt)>-1?(o=r,u=!0):o.className.indexOf(tt)>-1&&(u=!0),c=e.Egi,u&&c!==o&&((a=o.getAttribute(lt))<s?(c.className=c.className.replace(W,"").replace(V,"").trim(),o.className=o.className+" ".concat(W)):a>s?(c.className=c.className.replace(W,"").replace(V,"").trim(),o.className=o.className+" ".concat(V)):c.className=c.className.replace(W,"").replace(V,"").trim(),e.Egi=o))},f=function(t){var n,i,r,u,c=e.cIi,a=c&&c[e.NIi],s=a&&a.cross,l=e.mIi,f=t.target,d=e.Egi,h=d&&+(0,o.GC$)(d).attr(lt);l!==I&&e.Ogi&&h!==I&&h!==l&&(e.Egi.className=e.Egi.className.replace(W,"").replace(V,"").trim(),e.zIi(f,e.OMi)&&("string"==typeof s&&(n=s,(s=Lt(e.gIi(s))).jgi=n,a.cross=s),i=a.vgi.splice(l,1)[0],a.vgi.splice(h,0,i),e.mIi=+h,r=[],r=a.vgi.filter((function(t){return t.checked})).map((function(t){return t&&t.formatter?{formatter:t.formatter,value:t.attribute}:t.attribute})),s.attributes=r,s.vgi=a.vgi),e.Cgi(s,a.value)&&(e.dgi(),e.IIi())),e.Egi=I,e.Ogi=I,e.Ti.style.cursor="default",(u=e.SIi)&&(u.style.display="none")};e.pgi=u,e.Bgi=a,e.Qgi=s,e.Rgi=l,e.Pgi=f,(0,o.GC$)(".".concat(K)).bind("change",e.pgi),(0,o.GC$)(".".concat($)).bind("click",e.Bgi),(0,o.GC$)(".".concat($)).bind("mousedown",e.Qgi).bind("mousemove",e.Rgi),document.addEventListener("mouseup",e.Pgi),(0,o.GC$)(".".concat(et)).bind("focus",(function(i){var u=i.target,a=(0,o.GC$)(u).val()||"=";(t=new c.FormulaTextBox(u,M,M)).Ngi=!0,n=new o.Workbook(r,{allowDynamicArray:!0,allowUndo:!1}),e.XMi(n),e.lgi(n),t.workbook(n),t.text(a)})).bind("blur",(function(i){var r=(0,o.GC$)(i.target),u;"="===r.val()&&r.val(""),e.ggi(t,n)})).bind("keydown",(function(i){13===i.keyCode&&(e.ggi(t,n),i.target.blur())}))},t.prototype.Lgi=function(){var t=this;t.ZMi&&(t.pgi&&(0,o.GC$)(".".concat(K)).unbind("change"),t.Bgi&&(0,o.GC$)(".".concat($)).unbind("click"),t.Qgi&&(0,o.GC$)(".".concat($)).unbind("mousedown").unbind("mousemove"),t.Pgi&&document.removeEventListener("mouseup",t.Pgi),(0,o.GC$)(".".concat(et)).unbind("focus").unbind("blur").unbind("keydown"))},t.prototype.eIi=function(){return this.vMi.getDataView()},t.prototype.mLt=function(t){var n=this;return n.eIi().mLt(n.oIi,t)},t.prototype.Cgi=function(t,n){var i,e=this.eIi();return t&&t.over&&n&&(e.isLookupListField(t.over)||t.attributes&&t.attributes.length>0)},t.prototype.lIi=function(){return(0,o.RF)(this.eIi().ILt.filter((function(t){return!b(t.cross)})))},t.prototype.gIi=function(t){var n,i,e,o=this;return"string"==typeof t&&(n=t,(i=o.eIi()).LEt.cross&&((e=i.LEt.cross[n]||{}).Zc=n,t=e)),t},t.prototype.kgi=function(t,n){var i,e=this,o=e.eIi(),r=n;return o.LEt.cross&&(i=o.LEt.cross[r])&&i.over!==e.gIi(t).over?r+"1":r},t.prototype.Zgi=function(t){var n,i=t.className,e=t.querySelector(".gc-table-sheet-cross-column-attributes-formatter"),o=t.querySelector(".gc-table-sheet-cross-column-item-edit");i.indexOf(ot)>-1?(t.className=t.className.replace(ot,""),e.className+=" "+ut,o.setAttribute("aria-expanded","false"),o.removeAttribute("aria-controls")):(o.setAttribute("aria-expanded","true"),n=""+Date.now(),o.setAttribute("aria-controls",n),t.className+=" ".concat(ot),e.setAttribute("id",n),e.className=e.className.replace(ut,""),setTimeout((function(){e.querySelector("input").focus()})))},t.prototype.Ggi=function(t){var n,i,e=this,o=e.ZMi,r=o.querySelectorAll(".".concat(tt));for(n in r)r.hasOwnProperty(n)&&((i=r[n]).className=i.className.replace("selected","").trim(),i===t&&(i.className=i.className+" selected"))},t.prototype.Ugi=function(t){var n=this,i=n.Sgi(t);n.cIi[n.NIi].cross.attributes=i,n.mIi=0,n.IIi()},t.prototype.Sgi=function(t){var n,i,e,o,r,u,c,a,s,l,f,d,h=this,v=h.Ygi(t),g=[];if(v&&v.hostTable&&v.field&&(e="",(i=(n=v.hostTable).tBt(v.field.name))&&i.Pq)){for(o=i.Pq,r=h.YMi,u=0;u<r.length;u++)a="",(c=r[u]).hostTable===i&&(a=c.fieldString!==I?c.fieldString:c.fieldString=h.wgi(u)),(s=a&&a.split("."))&&s.length>1&&(e=(s=s.slice(0,s.length-1)).join(".")+".");for(l=0,f=o;l<f.length;l++)(d=f[l]).targetTable||g.push(e+d.name)}return g},t.prototype.Ygi=function(t){if(t){var n,i=this.YMi,e=t.split("."),o=e.length-1,r=e[o];return i.filter((function(t){return t.name===r&&t.level===o}))[0]}},t.prototype.attach=function(t){this.Ti&&t&&(this.vMi=t,t.UMi=this,this.mMi&&this.Hc(t,this.mMi),this.updatePanelLayout())},t.prototype.detach=function(){var t,n=this;n.vMi&&(n.vMi.UMi=M,n.vMi.unbind(g),n.vMi=M,document.removeEventListener("mousemove",n.bIi,!0),document.removeEventListener("mouseup",n.vIi,!0),(0,o.GC$)(".".concat(F)).unbind("click"),n.SWt(),n.XIi(),n.Lgi(),n.tgi(),n.mMi&&(n.mMi.removeEventListener("mousedown",n.DIi,!0),(t=(0,o.GC$)(n.mMi).data("workbook"))&&(this.BMi=null,t.getSheet(0).unbind(g),t.destroy())),n.JMi&&(N.clearTimeout(n.JMi),n.JMi=0),n.cIi=I,n.oIi=I,n.YMi=I,n.Dgi=I,n.uIi=I,n.NIi=I,n.AMi=!0,n.sIi(!1),n.MIi(!0))},t.prototype.destroy=function(){var t,n;this.detach(),t=this.Ti,(0,o.GC$)(t).data(v,M),(n=this.SIi)&&n.parentElement&&(n.parentElement.removeChild(n),this.SIi=void 0),t&&(t.innerHTML=""),this.Ti=M},t.findControl=function(t){var n=t;return"string"==typeof t&&(n=document.getElementById(t)),(0,o.GC$)(n).data(v)},t}(),n.TableSheetPanel=bt},7669:function(t,n,i){var e,o,r,u,c,a=this&&this.mJr||function(){return a=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},a.apply(this,arguments)};function s(t){return t instanceof e.Condition}function l(t,n){return s(t)&&!t.art&&!n.jut().isShowSelectCheck}function f(t){return"="===t.charAt(0)}function d(t){var n,i;return{left:t.indexOf("["),right:t.indexOf("]")}}function h(t){var n=d(t),i=n.left,e=n.right;return i>=0&&i<e}function v(t){return f(t)&&h(t)}function g(t){var n,i;if(v(t=t.trim()))return!0;if(t.indexOf("{{")>=0&&t.indexOf("}}")>=0)for(n=t.split(/{{|}}/),i=0;i<n.length;i++)if(v(n[i].trim()))return!0;return!1}function M(t){var n,i,e,o;if(!f(t))return!1;for(n=!0,i=0;i<t.length;i++)if(e=t.charAt(i),n&&"@"===e){if("."===(o=t.charAt(i+1))||!o.match(/[\[\s\]]/))return!0}else"["===e?n=!1:"]"===e&&(n=!0);return!1}function I(t,n,i,e,o){var r=t;3===o&&(r.zDi(n)||r.vDi(n))&&(e.locked||b(r,i,e,!0))}function b(t,n,i,e){var o,r,u,c,a=t,s=a.cNi;for(o=0;o<s.length;o++)if((r=s[o]).length>0)for(u=0;u<r.length;u++)if((c=r[u])===n){i.locked=e;break}}function N(t,n){var i=t.getDataView();return i&&i.kve(n)}function D(t,n){var i,e=t.getDataView();if(e)return(i=e.kve(n)).isGroup&&c(i._Ft)?e.ife(i._Ft):e.ife(i)}function m(t,n){for(var i=0,e=t.length;i<e;i++)if(n(t[i],i,t))return i;return-1}function w(t,n,i){var o,r,c,a,s,l,f,d,h,v,g,M,I=t.expected(),b=t.conType(),N=i&&i.isDateFieldListFilter;if("string"==typeof I&&(I=I.split(String.fromCharCode(160)).join(" ")),t.art&&b===e.ConditionType.textCondition&&(I=t.urt,u(t.urt)||(b=e.ConditionType.dateCondition,N=!0)),b===e.ConditionType.numberCondition)return[{field:n,operator:(o={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:I,ort:N}];if(b===e.ConditionType.cellValueCondition)return[{field:n,operator:(o={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:I,ort:N}];if(b===e.ConditionType.relationCondition)return r=w(t.item1(),n),o={0:"or",1:"and"},(c=w(t.item2(),n))[0].relation=o[t.compareType()],r.concat(c);if(b===e.ConditionType.textCondition)return[{field:n,operator:(o={0:"eq",1:"neq",2:"startswith",3:"doesnotstartwith",4:"endswith",5:"doesnotendwith",6:"contains",7:"doesnotcontain"})[t.compareType()],value:I,ort:N}];if(b===e.ConditionType.dateCondition)switch(a=t.compareType(),s=void 0,l=void 0,r=void 0,c=void 0,f=I.setHours(0,0,0,0),d=I.setHours(23,59,59,999),a){case 0:return s=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.greaterThanOrEqualsTo,expected:f}),l=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.lessThanOrEqualsTo,expected:d}),r=w(s,n,{isDateFieldListFilter:N}),(c=w(l,n,{isDateFieldListFilter:N}))[0].relation="and",r.concat(c);case 1:return s=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.greaterThan,expected:d}),l=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.lessThan,expected:f}),r=w(s,n,{isDateFieldListFilter:N}),(c=w(l,n,{isDateFieldListFilter:N}))[0].relation="or",r.concat(c);case 2:return[{field:n,operator:"lt",value:f,ort:N}];case 3:return[{field:n,operator:"lte",value:d,ort:N}];case 4:return[{field:n,operator:"gt",value:d,ort:N}];case 5:return[{field:n,operator:"gte",value:f,ort:N}];default:return[]}else{if(b===e.ConditionType.top10Condition)return[{field:n,operator:(o={0:"top",1:"bottom"})[t.type()],value:I,isPercent:t.isPercent(),ort:N}];if(b===e.ConditionType.averageCondition)return[{field:n,operator:(o={0:"above",1:"below"})[t.type()],value:I,ort:N}];if(b===e.ConditionType.dateExCondition)return(h=t.expectTypeId())===e.DateExConditionExpectType.dateOccurring||h===e.DateExConditionExpectType.yearToDate?(f=void 0,d=void 0,h===e.DateExConditionExpectType.dateOccurring?(f=(v=t.getExConditionDateScope(I)).from,d=v.to):(f=new Date,d=new Date,f.setMonth(0,1),f.setHours(0,0,0,0),d.setHours(23,59,59,999)),g=new e.Condition(e.ConditionType.dateCondition,{compareType:e.DateCompareType.afterEqualsTo,expected:f}),M=new e.Condition(e.ConditionType.dateCondition,{compareType:e.DateCompareType.beforeEqualsTo,expected:d}),r=w(g,n),(c=w(M,n))[0].relation="and",r.concat(c)):[{field:n,operator:(o={0:"date",1:"year",2:"quarter",3:"month",4:"week",5:"day",6:"yearToDate"})[h],value:I,ort:N}]}return[]}function C(t){var n=t.col,i=t.rowFilter;return!i.Dit(n)&&i.Dit(i.NTi(n))?a(a({},t),{col:i.NTi(n)}):t}Object.defineProperty(n,"__esModule",{value:!0}),n.reuseFilterButtonInfo=n.convertCondition=n.findIndex=n.getColumnName=n.getColumnInfo=n.setInsertedRowCrossStyle=n.hasATWithoutBrackets=n.isFormulaFormatter=n.isSpecificCondition=n.isCondition=void 0,e=i(8333),r=(o=i(7234)).Common.lt,u=r.ht,c=r.q8,n.isCondition=s,n.isSpecificCondition=l,n.isFormulaFormatter=g,n.hasATWithoutBrackets=M,n.setInsertedRowCrossStyle=I,n.getColumnInfo=N,n.getColumnName=D,n.findIndex=m,n.convertCondition=w,n.reuseFilterButtonInfo=C},7848:function(n){n.exports=t.Spread.Sheets.Bindings},7879:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.mJr||function(){return f=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},f.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.cZe=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.aZe=(0,e.GC$)(s("div"));return n.addClass("gc-defined-column-date-time-picker-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.LEt,i=t.aZe;return t.dH=new u.Kze({inputId:"start-day",items:[{value:e.CalendarStartDay[e.CalendarStartDay.monday],text:(0,o.getSR)().columnTypeDateMonday},{value:e.CalendarStartDay[e.CalendarStartDay.tuesday],text:(0,o.getSR)().columnTypeDateTuesday},{value:e.CalendarStartDay[e.CalendarStartDay.wednesday],text:(0,o.getSR)().columnTypeDateWednesday},{value:e.CalendarStartDay[e.CalendarStartDay.thursday],text:(0,o.getSR)().columnTypeDateThursday},{value:e.CalendarStartDay[e.CalendarStartDay.friday],text:(0,o.getSR)().columnTypeDateFriday},{value:e.CalendarStartDay[e.CalendarStartDay.saturday],text:(0,o.getSR)().columnTypeDateSaturday},{value:e.CalendarStartDay[e.CalendarStartDay.sunday],text:(0,o.getSR)().columnTypeDateSunday}],label:{text:(0,o.getSR)().columnTypeDateStartDay},onChange:function(){t.sZe()}}),t.dH.create().appendTo(i),t.dH.setValue(n.startDay||e.CalendarStartDay[e.CalendarStartDay.sunday]),t.lZe=new u.Kze({inputId:"calendar-page",items:[{value:e.CalendarPage[e.CalendarPage.day],text:(0,o.getSR)().columnTypeDateDay},{value:e.CalendarPage[e.CalendarPage.year],text:(0,o.getSR)().columnTypeDateYear},{value:e.CalendarPage[e.CalendarPage.month],text:(0,o.getSR)().columnTypeDateMonth}],label:{text:(0,o.getSR)().columnTypeDateCalendarPage},onChange:function(){t.sZe()}}),t.lZe.create().appendTo(i),t.lZe.setValue(n.calendarPage||e.CalendarPage[e.CalendarPage.day]),t.HG=new r.Rze({label:{text:(0,o.getSR)().columnTypeDateShowTime},onChange:function(){t.sZe()}}),t.HG.create().appendTo(i),t.HG.setValue(!!n.showTime||(0,c.isNullOrUndefined)(n.showTime)),i},t.prototype.veo=function(t){var n,i,e,o,r,u,c,a,s=this;t?((null===(n=s.lZe)||void 0===n?void 0:n.isDisable())||null===(i=s.lZe)||void 0===i||i.resetDisable(),(null===(e=s.HG)||void 0===e?void 0:e.isDisable())||null===(o=s.HG)||void 0===o||o.resetDisable()):((null===(r=s.lZe)||void 0===r?void 0:r.isDisable())&&(null===(u=s.lZe)||void 0===u||u.resetDisable()),(null===(c=s.HG)||void 0===c?void 0:c.isDisable())&&(null===(a=s.HG)||void 0===a||a.resetDisable()))},t.prototype.sZe=function(){var t,n,i;this.LEt.onChange({startDay:null===(t=this.dH)||void 0===t?void 0:t.value,calendarPage:null===(n=this.lZe)||void 0===n?void 0:n.value,showTime:!!(null===(i=this.HG)||void 0===i?void 0:i.value)})},t.prototype.setOptions=function(t){var n=this;n.LEt=f(f({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.aZe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.aZe=c.keyword_null},t.prototype.L0=function(){var t=this;t.dH&&t.dH.dispose(),t.dH=c.keyword_null,t.lZe&&t.lZe.dispose(),t.lZe=c.keyword_null,t.HG&&t.HG.dispose(),t.HG=c.keyword_null},t}(),n.cZe=l},7929:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b=this&&this.vJr||(D=function(t,n){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},D(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}D(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),N=this&&this.mJr||function(){return N=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},N.apply(this,arguments)},D;Object.defineProperty(n,"__esModule",{value:!0}),n.GroupHideRowFilter=void 0,e=i(7234),o=i(4036),r=i(1376),u=i(8333),c=i(2221),a=i(7669),s=i(9134),l=e.Common.lt,f=l.ht,d=l.q8,h=null,v=void 0,g=-1,M=-2,I=function(t){function n(n,i){var e=t.call(this,n)||this;return e.sTi={},e.MTi={},e.ITi=!1,e.gTi=0,e.act=!1,e.sze=i,e.iIo=[],e}return b(n,t),n.prototype.toJSON=function(){var n,i,e,o,r,u,c,a,s,l=this,d=t.prototype.toJSON.call(this);if(d.sortMap=l.sTi,d.relatedColFilters=l.MTi,d.lastGroup=l.ITi,d.lastGroupCount=l.gTi,d.multiSortOrder=l.iIo,f(l.lTi)||(d.rowFilterStore=l.lTi),d.filterItemMap)for(n=0,i=d.filterItemMap.length;n<i;n++)for(o=0,r=(e=d.filterItemMap[n].conditions).length;o<r;o++)delete(u=e[o]).eAi;if(d.sortMap)for(c in d.sortMap)if(d.sortMap.hasOwnProperty(c))for(s in a=d.sortMap[c])a.hasOwnProperty(s)&&delete a[s].rYt;return d},n.prototype.fromJSON=function(n,i){var e,o,r,u,c,a;f(n)||((c=this).sTi=null!==(e=n.sortMap)&&void 0!==e?e:{},c.MTi=null!==(o=n.relatedColFilters)&&void 0!==o?o:{},c.ITi=null!==(r=n.lastGroup)&&void 0!==r&&r,c.gTi=null!==(u=n.lastGroupCount)&&void 0!==u?u:0,c.iIo=n.multiSortOrder||[],(a=n.rowFilterStore||n.lTi||n.lTi)&&(c.lTi=a),t.prototype.fromJSON.call(this,n,i))},n.prototype.tIo=function(t){return this.sze.THr(t)},n.prototype.nIo=function(t,n){this.sze.$Dr(t,n)},n.prototype.THr=function(t){var n,i,e,o;if(this.sze)return"updateFilterData"===(n=t.type)&&(e=(i=t.data).filteredColumns,o=i.filterItemMap,e||o)?this.sze.THr({filteredColumns:e,filterItemMap:o,type:"setTableSheetFilterInfo"}):void 0},n.prototype.$Dr=function(t,n){var i,e,o,r;this.sze&&"updateFilterData"===(i=t.type)&&(o=(e=t.data).filteredColumns,r=e.filterItemMap,(o||r)&&this.sze.$Dr({filteredColumns:o,filterItemMap:r,type:"setTableSheetFilterInfo"},n))},n.prototype.isFiltered=function(n){var i=this;return arguments.length?t.prototype.isFiltered.call(this,n)||t.prototype.isFiltered.call(this,i.NTi(n)):t.prototype.isFiltered.call(this)},n.prototype.Dit=function(n){return t.prototype.isFiltered.call(this,n)},n.prototype.aze=function(t){var n,i,e,o,r,c,s,l,h=this,v=this.sze,g=h.rrt[t],M=v.getDataView(),I=M.kve(t),b=I.isGroup&&d(I._Ft)?M.ife(I._Ft):M.ife(I);if(g&&g.length>0){if(n=[],(0,a.isCondition)(g[0]))if(g[0].art&&g[0].conType()===u.ConditionType.textCondition)for(r=0;r<g.length;r++)c=g[r].urt,n.push({field:b,value:f(c)?c:c.toISOString()});else for(r=0;r<g.length;r++)s=g[r],l=(0,a.convertCondition)(s,b),0===r?n=l:(l[0].relation="or",n=n.concat(l));else for(i=[],e=[],o=function(t){var o,r,u,c,a,s,l;if(d(g[t].eAi)){if(o=g[t].eAi,i.push(g[t].value),e.push(o),r=g[t+1],o>=(u=f(r)?-1:r.eAi))for(c=!0,a=i.slice().reverse(),(s=n[n.length-1])&&(c=!((l=s.Vce).length===a.length&&l.every((function(t,n){return t===a[n]})))),c&&n.push({field:b,value:g[t].value,Vce:a});e.length>0&&e[e.length-1]>=u;)i.pop(),e.pop()}else n.push({field:b,value:g[t].value})},r=0;r<g.length;r++)o(r);return n}},n.prototype.Mze=function(){var t=this,n=this.sze,i=n.Mf,e=this.rrt,o=i.getDataSource(),r=Object.keys(e).filter((function(t){return!f(e[t])})).reduce((function(n,i){return n.concat(t.aze(Number(i)))}),[]);o.filter(r)},n.prototype.Ize=function(t,n){var i=this.sze,e=i.Mf;e.suspendPaint(),this.Nct(t,n),i.tDe(),e.resumePaint()},n.prototype.filter=function(t,n){var i,e,o,r,u,a,s,l,h=this.sze;if(h&&(e=h.getDataView())){if(o=this.rrt,r=!f(o[t]),h.qNi()&&(u=function(t){var n=o[t];return n&&n.some((function(t){return d(t.eAi)}))})(t))for(a=this.Mct,s=0;s<a.length;s++)if(t!==(l=a[s])&&u(l)){this.yct(l),this.Nct(l,!1);break}this.eIo(t)&&h.qni.addUndoChanges({type:c.TableSheetUndoType.SortMapChanged,oldData:this.Dze()}),h.qni.addUndoChanges({type:c.TableSheetUndoType.FilterColumn,changedData:{col:t,columnName:null===(i=h.fDi(t))||void 0===i?void 0:i.name}}),this.Mze(),this.Ize(t,r)}},n.prototype.unfilter=function(t){var n,i=this.sze;i&&(n=i.getDataView())&&(n.filter(),this.setFilterItemMap(t),this.Mze(),this.Ize(t,!1))},n.prototype.reFilter=function(t){},n.prototype.openFilterDialog=function(t){var n,i,e,r,u,c,l,f,d=this.sze,v=this,g=v.Mf,M=t.col,I=d.getDataView().kve(M);if(this.irt=!1,this.ort=!1,i=((n=d.getDataView())&&n.length()||0)>0,v.Hct(g)&&i){if(e={r:h},o.HideRowFilter.et(v,"beforeOpenFilterDialog",e),e.r)return;r={sortByValue:!1!==I.allowSort,filterByValue:!1!==I.allowFilterByValue,listFilterArea:!1!==I.allowFilterByList,sortByColor:!1,filterByColor:!1},v.filterDialogVisibleInfo(r),u=new s.TableSheetFilterDialog(g.parent.j2(),g,(0,a.reuseFilterButtonInfo)(t),r,v.dialogOptions,d),g.Cut=u,(c=d.qNi())&&(l=g.outlineColumn.Un,g.outlineColumn.Un=function(){return!0},f=u.close,u.close=function(){g.outlineColumn.Un=l,u.close=f,u.close()},u.STi=function(){var t,n=this,i=n.dataSource,e=n.Eat;for(t=0;t<i.length;t++)e[t].checkedStatus=i[t].status}),u.rQ(),c&&u.STi(),u.cze&&u.yut()}},n.prototype.Nct=function(n,i){var e=this;i&&e.DFt(n)?e.MTi[n]=e.NTi(n):f(e.MTi[n])||delete e.MTi[n],t.prototype.Nct.call(this,n,i)},n.prototype.setFilterItemMap=function(t,n){var i=this,e=i.sze.THr({type:"setTableSheetFilterInfo",filterItemMap:i.rrt});i.rrt[t]=n||v,i.sze.$Dr({type:"setTableSheetFilterInfo",filterItemMap:i.rrt},e)},n.prototype.removeFilterItems=function(n,i){var e,o,r=this.sze;r&&(o=(e=r.Mf).getDataSource(),r.nAi&&o?t.prototype.removeFilterItems.call(this,n,i):(this.setFilterItemMap(n),this.Cct(n),r.yno&&o&&o.filter()))},n.prototype.DTi=function(t){var n,i,e,o,r,u,c,a=this,s=a.Mct,l=a.rrt,d=a.hst,v=a.tIo({filteredColumns:a.Mct,filterItemMap:a.rrt,type:"setTableSheetFilterInfo"});for(e=0;e<s.length;e++)n=s[e],(i=(f(a.MTi[n])?n:a.MTi[n])+t)>=0?(s[e]=i,o=l[n],f(o)||(l[n]=h,l[i]=o),d&&(r=d[n],f(r)||(delete d[n],d[i]=r))):(s[e]=-1,l[n]=h,d&&delete d[n]);a.Mct=s.filter((function(t){return-1!==t})),this.nIo({filteredColumns:a.Mct,filterItemMap:a.rrt,type:"setTableSheetFilterInfo"},v),s.some((function(t){return-1===t}))&&((c=(u=a.Mf).NMi).suspendPaint(),c.resumePaint())},n.prototype.getSortState=function(n){var i,e=this;return e.GFt(n)&&(n=e.NTi(n)),e.nrt=e.wot(n),i=t.prototype.getSortState.call(this,n),e.oIo()&&0!==i?0:i},n.prototype.rIo=function(n){var i=this;return i.GFt(n)&&(n=i.NTi(n)),i.nrt=i.wot(n),t.prototype.getSortState.call(this,n)},n.prototype.Gze=function(){var t,n,i,e,o,r=this,u=r.jFt(),c=r.gTi;if(u)if(n=(t=r.dTi())-c,r.gTi=t,r.DTi(n),r.uIo)r.cIo();else for(r.hTi(g,n),i=0;i<r.iIo.length;i++)r.iIo[i]+=n;else if(r.gTi=0,r.DTi(-c),r.uIo)r.cIo();else{for(r.hTi(M,-c),e=[],i=0;i<r.iIo.length;i++)(o=r.iIo[i]-c)>=0&&e.push(o);r.iIo=e,r.TTi()}},n.prototype.aIo=function(){var t,n,i,e,o,r,u,c=this;if(c.oIo()&&0!==(t=c.jFt()?c.sIo():c.lIo()).length&&(n=c.eIi())){for(i=c.tNi(),e=[],o=0;o<t.length;o++)(u=(r=t[o]).rYt||i&&i.dDi(r.index))&&e.push({field:u,ascending:r.ascending,compare:r.compareFunction});e.length>0&&n.sort(e)}},n.prototype.hTi=function(t,n){var i,e,o,r,u,c,a,s,l,f=this,d=f.sTi[t];if(d){for(r in i=f.tIo(f.DIo()),e=t===M?g:t,o={},d)if(d[r]){if((u=+r+n)<0)continue;(c=d[r]).index=u,o[u]=c}if(e===t?f.sTi[t]=o:(f.sTi[e]=o,delete f.sTi[t]),t===g&&(a=f.sTi[M])){for(r in s={},a)a[r]&&((l=a[r]).index+=n,s[+r+n]=l);f.sTi[M]=s}f.nIo(f.DIo(),i)}},n.prototype.TTi=function(){var t,n,i,e=this,o=e.tIo(e.DIo()),r=e.sTi[g];if(r&&Object.keys(r).length>0?e.sTi=((t={})[g]=r,t):e.sTi={},n=e.sTi[g])for(i in e.iIo=e.iIo.filter((function(t){return void 0!==n[t]&&null!==n[t]})),n)n.hasOwnProperty(i)&&+i>=0&&-1===e.iIo.indexOf(+i)&&e.iIo.push(+i);else e.iIo=[];e.nIo(e.DIo(),o)},n.prototype.DNo=function(t,n,i){var e,o=this.tNi(),r=this.fDi(t)||i[t],u=n.rYt||o&&o.tDi(i[t])||o&&o.tDi(r),c=u;return r&&r.DFt&&void 0!==r._Ft&&(e=i[r._Ft]||this.fDi(r._Ft),c=o&&o.tDi(e)||c),{fieldName:u,baseFieldName:c}},n.prototype.fIo=function(){var t,n,i,e,o,r,u,c,a,s,l=this,d=[],h=l.sTi,v=l.HMi();for(t in h)if(+t!==M)for(i in n=h[t])n[i]&&(e=n[i],r=(o=l.DNo(+i,e,v)).fieldName,u=o.baseFieldName,d.push({fieldName:r,baseFieldName:u,ascending:e.ascending,col:+i}));for(c=[],a=0;a<l.iIo.length;a++)for(i=l.iIo[a],s=0;s<d.length;s++)if(d[s].col===i){f(d[s].baseFieldName)||c.push(d[s].baseFieldName);break}l.uIo={entries:d,orderByField:c}},n.prototype.cIo=function(){var t,n,i,e,o,r,u,c,a,s,l,f,d,h,v,g,I,b,D,m,w,C,y,x,A=this,T=A.uIo;if(A.uIo=null,T&&0!==T.entries.length&&(t=A.HMi(),n=A.tNi())){for(i={},e={},o={},r=0;r<t.length;r++)u=t[r],c=n.tDi(u),i[c]=r,u.DFt&&void 0!==u._Ft?(a=t[u._Ft])&&(s=n.tDi(a),e[s]=r):o[c]=r;for(l=function(t,n){return void 0!==e[t]?e[t]:void 0!==i[n]?i[n]:void 0!==o[t]?o[t]:void 0},f={},d={},r=0;r<T.entries.length;r++)void 0!==(v=l((h=T.entries[r]).baseFieldName,h.fieldName))&&(g=n.tDi(t[v]),I={index:v,ascending:h.ascending,rYt:g},f[b=A.ATi(v)]||(f[b]={}),f[b][v]=I,D=v,A.DFt(v)&&null!=(m=A.NTi(v))&&(D=m),d[D]=N(N({},I),{index:D}));for(f[M]=d,A.sTi=f,w=[],r=0;r<T.orderByField.length;r++){for(c=C=T.orderByField[r],y=0;y<T.entries.length;y++)if(T.entries[y].baseFieldName===C){c=T.entries[y].fieldName;break}void 0!==(x=l(C,c))&&w.push(x)}for(r=0;r<T.entries.length;r++)void 0!==(x=l(T.entries[r].baseFieldName,T.entries[r].fieldName))&&-1===w.indexOf(x)&&w.push(x);A.iIo=w}},n.prototype.eIi=function(){return this.Mf.getDataSource()},n.prototype.HMi=function(){return this.Mf.getDataSource().getColumnInfos()},n.prototype.fDi=function(t){return this.Mf.NMi.fDi(t)},n.prototype.Teo=function(){return this.Mf.NMi.Teo()},n.prototype.dTi=function(){return this.HMi().filter((function(t){return t.isGroup})).length},n.prototype.jFt=function(){return this.Mf.NMi.jFt},n.prototype.bTi=function(t){var n=this.fDi(t);return n&&n.OFt},n.prototype.GFt=function(t){var n=this.fDi(t);return n&&n.GFt},n.prototype.DFt=function(t){var n=this.fDi(t);return n&&n.DFt},n.prototype.tNi=function(){return this.Mf.NMi},n.prototype.eIo=function(t){var n,i=this.tNi();return!(!i||!i.groupBy())&&(!!(n=i.dDi(t))&&this.eIi().$Lt(n,{ignoreGroupField:!0,ignoreGroupFormula:!0}))},n.prototype.NTi=function(t,n){var i=this.fDi(t);return i&&(this.Teo()&&!n?t:i._Ft)},n.prototype.Sze=function(t){var n,i,e=this,o=e.ATi(t),r=e.sTi[o],u=e.sTi[M],a=r&&r[t],s=u&&u[t],l=e.tIo(e.DIo());(a||s)&&(n=e.tNi()).qni.addUndoChanges({type:c.TableSheetUndoType.SortMapChanged,oldData:e.Dze()}),r&&r[t]&&delete r[t],u&&u[t]&&delete u[t],-1!==(i=e.iIo.indexOf(t))&&e.iIo.splice(i,1),e.nIo(e.DIo(),l)},n.prototype.wot=function(t){var n=this,i=n.ATi(t),e=n.sTi[i];return e&&e[t]?e[t]:h},n.prototype.ATi=function(t){var n=this,i;return n.jFt()&&(i=n.bTi(t),!f(i))?i:g},n.prototype.xno=function(){var t,n,i,e,o=this,r=o.sTi,u=[];for(t in r)if(+t!==M)for(i in n=r[t])n.hasOwnProperty(i)&&(e=n[i],u.push(e));return u},n.prototype.Gct=function(n){return arguments&&arguments.length>0?this:t.prototype.Gct.call(this)},n.prototype.Dze=function(){var t;return{sortMap:null!==(t=(0,r.RF)(this.sTi))&&void 0!==t?t:{},multiSortOrder:this.iIo.slice()}},n.prototype.Nze=function(t){if(t&&t.sortMap){var n=t;this.sTi=n.sortMap,this.iIo=n.multiSortOrder||[]}else this.sTi=t,this.iIo=[]},n.prototype.qO=function(n,i,e){var o,r,u,c,a,s,l;for(s in t.prototype.qO.call(this,n,i,e),o=this,r=this.sTi,u=o.tIo(o.DIo()),c=function(t){var e,o,u,c,s;if(r.hasOwnProperty(t)){for(u in o=[],e=r[t])e.hasOwnProperty(u)&&(c=e[u]).index>=n&&(s=+u+i,a.GFt(s)?c.index=a.NTi(s,!0):c.index+=i,o.push({col:u,sortInfo:c}));o.forEach((function(t){var n=t.col;delete e[n]})),o.forEach((function(t){var n=t.sortInfo;e[n.index]=n})),0===Object.keys(e).length&&delete r[t]}},a=this,r)c(s);for(l=0;l<this.iIo.length;l++)this.iIo[l]>=n&&(this.iIo[l]+=i);o.nIo(o.DIo(),u)},n.prototype.NP=function(n,i){var e,o,r,u,c,a,s,l,f,d;for(a in t.prototype.NP.call(this,n,i),e=this.sTi,r=(o=this).tIo(o.DIo()),u=function(t){var o,r,u,a,s,l;if(e.hasOwnProperty(t)){for(u in r=[],o=e[t])o.hasOwnProperty(u)&&(s=(a=o[u]).index,l=n+i,s>=n&&s<l?c.DFt(u)?(a.index=c.NTi(u,!0),a.index-=i,r.push({col:u,sortInfo:a})):r.push({col:u}):s>=l&&(a.index-=i,r.push({col:u,sortInfo:a})));r.forEach((function(t){var n=t.col;delete o[n]})),r.forEach((function(t){var n=t.sortInfo;n&&(o[n.index]=n)})),0===Object.keys(o).length&&delete e[t]}},c=this,e)u(a);for(s=n+i,l=[],f=0;f<this.iIo.length;f++)(d=this.iIo[f])>=n&&d<s||(d>=s?l.push(d-i):l.push(d));this.iIo=l,o.nIo(o.DIo(),r)},n.prototype.vno=function(t){this.setFilterItemMap(t)},n.prototype.setSortInfo=function(t){var n,i,e,o=this,r=t.index;o.GFt(r)&&(r=o.NTi(r),t.index=r),i=o.ATi(r),e=o.tIo(o.DIo()),o.jFt()&&o.iIo.length>0&&o.dIo(i),o.sTi[i]=((n={})[r]=t,n),o.iIo=[],delete o.sTi[M],o.vTi(t,i),o.nIo(o.DIo(),e)},n.prototype.vTi=function(t,n){var i=this,e=t.index,o=i.tIo(i.DIo());(n===g||i.DFt(e)||i.GFt(e))&&(i.DFt(e)&&(e=i.NTi(e)),i.sTi[M]||(i.sTi[M]={}),i.sTi[M][e]=N(N({},t),{index:e})),i.nIo(i.DIo(),o)},n.prototype.oIo=function(){var t=this.tNi();return t&&t.options&&!1!==t.options.allowSorts},n.prototype.DIo=function(){return{sortMap:this.sTi,multiSortOrder:this.iIo,type:"setTableSheetSortInfo"}},n.prototype.addToMultiSort=function(t,n){var i,e,o,r,u=this;u.GFt(t)&&(t=u.NTi(t)),i=u.tIo(u.DIo()),0===u.iIo.length&&u.hIo(),e=u.ATi(t),u.sTi[e]||(u.sTi[e]={}),o={index:t,ascending:n},u.sTi[e][t]=o,-1===(r=u.iIo.indexOf(t))&&u.iIo.push(t),u.vTi(o,e),u.nIo(u.DIo(),i)},n.prototype.hIo=function(){var t,n,i,e=this,o=e.sTi;for(t in o)if(+t!==M)for(i in n=o[t])n[i]&&-1===e.iIo.indexOf(+i)&&e.iIo.push(+i)},n.prototype.removeFromMultiSort=function(t){var n,i,e,o,r,u=this;u.GFt(t)&&(t=u.NTi(t)),n=u.tIo(u.DIo()),i=u.ATi(t),(e=u.sTi[i])&&e[t]&&delete e[t],(o=u.sTi[M])&&o[t]&&delete o[t],-1!==(r=u.iIo.indexOf(t))&&u.iIo.splice(r,1),u.nIo(u.DIo(),n)},n.prototype.getMultiSortSequence=function(t){var n,i=this;return i.GFt(t)&&(t=i.NTi(t)),-1===(n=i.iIo.indexOf(t))?0:n+1},n.prototype.getMultiSortCount=function(){return this.iIo.length},n.prototype.isInMultiSort=function(t){var n=this;return n.GFt(t)&&(t=n.NTi(t)),-1!==n.iIo.indexOf(t)},n.prototype.lIo=function(){var t,n,i,e,o=this,r=[];for(t=0;t<o.iIo.length;t++)n=o.iIo[t],i=o.ATi(n),(e=o.sTi[i])&&e[n]&&r.push(e[n]);return r},n.prototype.sIo=function(){var t,n,i,e,o,r,u,c,a,s,l=this,f=l.sTi,d=[],h=[];for(t in f)f.hasOwnProperty(t)&&(n=+t)>=0&&h.push(n);for(h.sort((function(t,n){return t-n})),i=l.iIo.length>0,e=0;e<h.length;e++)if(r=f[o=h[e]],i)for(u=0;u<l.iIo.length;u++)c=l.iIo[u],r&&r[c]&&d.push(r[c]);else for(c in r)r.hasOwnProperty(c)&&d.push(r[c]);if(i)for(e=0;e<l.iIo.length;e++)c=l.iIo[e],(a=l.ATi(c))===g&&(s=f[a])&&s[c]&&d.push(s[c]);else if(s=f[g])for(c in s)s.hasOwnProperty(c)&&d.push(s[c]);return d},n.prototype.vIo=function(){this.iIo=[]},n.prototype.clearAllMultiSorts=function(){var t,n,i,e,o,r=this,u=r.tIo(r.DIo());for(t=0;t<r.iIo.length;t++)n=r.iIo[t],i=r.ATi(n),(e=r.sTi[i])&&e[n]&&delete e[n],(o=r.sTi[M])&&o[n]&&delete o[n];r.iIo=[],delete r.sTi[M],r.nIo(r.DIo(),u)},n.prototype.dIo=function(t){var n,i,e,o,r,u,c,a=this;if(0!==a.iIo.length){for(n=new Set,i={},e=0;e<a.iIo.length;e++)o=a.iIo[e],(r=a.ATi(o))!==t&&(i[r]||(i[r]=!0,n.add(o)));for(e=a.iIo.length-1;e>=0;e--)o=a.iIo[e],(r=a.ATi(o))!==t&&n.has(o)||((u=a.sTi[r])&&u[o]&&delete u[o],(c=a.sTi[M])&&c[o]&&delete c[o],a.iIo.splice(e,1))}},n.prototype.isMultiSortActive=function(){return this.iIo.length>1},n.prototype.BDi=function(){var t,n,i=this.Mf,e=i.getDataSource(),o=i.rowFilter(),r=o&&o.sTi,u={};return r&&(t=-1,(n=function(n){var i,o=r[n];if(!f(o))for(i in u[n]={},o)o.hasOwnProperty(i)&&(t=e.uPt(i),u[n][t]=i)})(g),n(M)),u},n.prototype.RDi=function(t){var n,i,e,o,r,u,c,a,s,l,d,h,v=this.Mf,I=this,b=v.getDataSource(),N=v.rowFilter(),D=N.sTi,m=I.tIo(I.DIo()),w={},C=function(n){var i,e,o,r,u=t[n];for(i in u)u.hasOwnProperty(i)&&(o=+u[e=+i],(r=b.BPt(e))!==o&&(w[o]=r))};for(C(g),C(M),n=[],i=function(t){var i,e,o=D[t];if(!f(o))for(i in w)w.hasOwnProperty(i)&&(e=o[i],f(e)||(n.push({level:t,oldCol:+i,newCol:w[i],sortInfo:e}),delete o[i]))},i(g),i(M),e=0,o=n;e<o.length;e++)r=o[e],u=D[r.level],f(u)||(r.sortInfo.index=r.newCol,u[r.newCol]=r.sortInfo);for(a in c=[],w)w.hasOwnProperty(a)&&-1!==(s=N.iIo.indexOf(+a))&&c.push({arrayIdx:s,newCol:w[a]});for(l=0,d=c;l<d.length;l++)h=d[l],N.iIo[h.arrayIdx]=h.newCol;I.nIo(I.DIo(),m)},n.prototype.nTi=function(t){var n,i,e,o,r,u,a,s,l,d,h,g,M,I,b,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B;if(t&&t.length>0){for(i=(n=this).tIo({filteredColumns:n.Mct,filterItemMap:n.rrt,type:"setTableSheetFilterInfo"}),e=[],o=[],r=t.map((function(t){return{oldIndex:t.oldIndex,newIndex:t.newIndex}})),u=0,a=t;u<a.length;u++){for(I in l=(s=a[u]).oldIndex,d=N({},s),o.push(d),(h=n.Mct.indexOf(l))>-1&&e.push([h,s.newIndex]),g=n.rrt[l],f(g)||(d.filterItemMapValue=g,n.rrt[l]=v),M=n.hst&&n.hst[l],!f(M)&&M.length>0&&(d.filteredColumnCacheValue=M,delete n.hst[l]),n.MTi)n.MTi.hasOwnProperty(I)&&(b=n.MTi[I])===l&&(d.relatedColFiltersValue=I,delete n.MTi[I]);if(!f(n.sTi)){for(C in D=n.tIo(n.DIo()),w={},m=n.sTi)m.hasOwnProperty(C)&&(y=m[C],f(y)||f(y[l])||(w[C]=y[l],delete y[l]));d.sortMapValues=w,n.nIo(n.DIo(),D)}}for(x=0,A=o;x<A.length;x++)if(T=(s=A[x]).newIndex,g=s.filterItemMapValue,M=s.filteredColumnCacheValue,j=s.relatedColFiltersValue,w=s.sortMapValues,f(g)||(n.rrt[T]=g),f(M)||(n.hst[T]=M),f(j)||(n.MTi[j]=T),!f(n.sTi)&&!f(w)){for(C in p=n.tIo(n.DIo()),w)w.hasOwnProperty(C)&&(y=n.sTi[C],f(y)||(w[C].index=T,y[T]=w[C]));n.nIo(n.DIo(),p)}for(z=n.tIo(n.DIo()),L=[],S=0,O=t;S<O.length;S++)s=O[S],-1!==(k=n.iIo.indexOf(s.oldIndex))&&L.push({arrayIdx:k,newIndex:s.newIndex});for(E=0,Z=L;E<Z.length;E++)U=Z[E],n.iIo[U.arrayIdx]=U.newIndex;for(n.nIo(n.DIo(),z),G=0;G<e.length;G++)h=(B=e[G])[0],T=B[1],n.Mct[h]=T;this.nIo({filteredColumns:n.Mct,filterItemMap:n.rrt,type:"setTableSheetFilterInfo"},i),this.tNi().qni.addUndoChanges({type:c.TableSheetUndoType.UpdateFilterOnMoved,changedData:r})}},n.prototype.VIi=function(t){var n,i,e=this,o=e.eIi(),r=[],u=e.HMi(),c=[];u.forEach((function(n,i){n.RBt===t&&r.push(o.BPt(i))})),r.forEach((function(t){e.gze(t)})),n=r.length,i=r[r.length-1],n>0&&u.forEach((function(t,e){var r=o.BPt(e);r>i&&c.push({oldIndex:r,newIndex:r-n})})),e.nTi(c)},n.prototype.gze=function(t){var n,i,e,o,r,u,a,s,l,d,h=this,g={index:t,filterItemMap:{oldValue:null===(n=h.rrt)||void 0===n?void 0:n[t]},filteredColumns:{},filteredColumnCache:{oldValue:null===(i=h.hst)||void 0===i?void 0:i[t]},relatedColFilters:[],sortMap:[]};for(r in h.rrt[t]&&(e=h.tIo({filteredColumns:h.Mct,filterItemMap:h.rrt,type:"setTableSheetFilterInfo"}),h.rrt[t]=v,o=h.Mct.indexOf(t),g.filteredColumns={index:o,oldValue:h.Mct[o]},h.Mct.splice(o,1),h.nIo({filteredColumns:h.Mct,filterItemMap:h.rrt,type:"setTableSheetFilterInfo"},e)),h.hst&&h.hst[t]&&delete h.hst[t],h.MTi)h.MTi.hasOwnProperty(r)&&(u=h.MTi[r])===t&&(g.relatedColFilters.push({col:r,value:h.MTi[r]}),delete h.MTi[r]);if(!f(h.sTi)){for(s in e=h.tIo({sortInfo:h.sTi}),a=h.sTi)a.hasOwnProperty(s)&&(l=a[s],f(l)||f(l[t])||(g.sortMap.push({level:Number(s),index:t,value:l[t]}),delete l[t]));h.iIo&&-1!==(d=h.iIo.indexOf(t))&&(g.multiSortOrder=h.iIo.slice(),h.iIo.splice(d,1)),h.nIo({sortInfo:h.sTi},e)}this.tNi().qni.addUndoChanges({type:c.TableSheetUndoType.RemoveCrosRowFilterInfo,changedData:g})},n.prototype.oze=function(t){var n=t.index,i=t.filterItemMap,e=t.filteredColumnCache,o=t.filteredColumns,r=t.relatedColFilters,u=void 0===r?[]:r,c=t.sortMap,a=void 0===c?[]:c,s=this;s.rrt&&(s.rrt[n]=i.oldValue),f(null==o?void 0:o.index)||(s.Mct[o.index]=o.oldValue),s.hst&&(s.hst[n]=e.oldValue),u.forEach((function(t){var n=t.col,i=t.value;s.MTi[n]=i})),a.forEach((function(t){var n=t.level,i=t.index,e=t.value;s.sTi&&s.sTi[n]&&(s.sTi[n][i]=e)})),t.multiSortOrder&&s.iIo&&(s.iIo=t.multiSortOrder.slice())},n.prototype.UIi=function(){var t,n,i=this,e=this,o=e.eIi(),r=e.HMi();this.lTi={},Object.keys(this.rrt).forEach((function(t){var n,e;f(i.rrt[t])||(n=o.uPt(t),e=r[n].value,f(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filterItemMap=i.rrt[t])})),f(this.hst)||Object.keys(this.hst).forEach((function(t){var n=o.uPt(t),e=r[n].value;f(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filteredColumnCache=i.hst[t]})),Object.keys(this.MTi).forEach((function(t){var n=o.uPt(t),e=r[n].value;f(i.lTi[e])&&(i.lTi[e]={}),n=o.uPt(i.MTi[t]),i.lTi[e].relatedColFilter=r[n].value})),f(this.sTi)||(t=this.sTi,(n=function(n){var e=t[n];f(e)||Object.keys(e).forEach((function(t){var n=o.uPt(t),u=r[n].value;f(i.lTi[u])&&(i.lTi[u]={}),f(i.lTi[u].sortMap)&&(i.lTi[u].sortMap={}),i.lTi[u].sortMap=e[t]}))})(g),n(M)),0===Object.keys(this.lTi).length&&delete this.lTi},n.prototype.QIi=function(){var t,n,i=this,e=this,o=e.Mf,r=e.eIi(),u=this.lTi,c=e.HMi();f(u)||(t=e.tIo({filteredColumns:e.Mct,filterItemMap:e.rrt,type:"setTableSheetFilterInfo"}),n=e.tIo(e.DIo()),delete e.lTi,this.rrt=[],this.Mct=[],this.hst={},this.MTi={},f(this.sTi)||(f(this.sTi[g])||(this.sTi[g]={}),f(this.sTi[M])||(this.sTi[M]={})),Object.keys(u).forEach((function(t){var n,e,o=u[t],s=(0,a.findIndex)(c,(function(n){return n.value===t}));f(s)||(s=r.BPt(s),f(o.filterItemMap)||(i.rrt[s]=o.filterItemMap,i.Mct.push(s),i.hst[s]=o.filteredColumnCache),f(o.relatedColFilter)||(i.MTi[s]=r.BPt((0,a.findIndex)(c,(function(t){return t.value===o.relatedColFilter})))),f(i.sTi)||f(o.sortMap)||(n=i.sTi,(e=function(t){f(n[t])&&(n[t]={}),o.sortMap.index=s,n[t][s]=o.sortMap})(g),e(M)))})),o.repaint(),e.nIo(e.DIo(),n),this.nIo({filteredColumns:e.Mct,filterItemMap:e.rrt,type:"setTableSheetFilterInfo"},t))},n}(o.HideRowFilter),n.GroupHideRowFilter=I},7973:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.mJr||function(){return f=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},f.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.KZe=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(7324),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.$Ze=(0,e.GC$)(s("div"));return n.addClass("gc-defined-column-modified-fields-container"),t.ZX()},t.prototype.ZX=function(){var t,n,i=this,e=i.LEt,a=i.$Ze,s=(null===(t=e.fields)||void 0===t?void 0:t.split(","))||[];return i.qZe=new r.Rze({label:{text:(0,o.getSR)().columnTypeAllEditableFields},onChange:function(t){var n,e,o,r;t?(i.fields="*",i.Xze(),(null===(n=i.cUe)||void 0===n?void 0:n.isDisable())||null===(e=i.cUe)||void 0===e||e.resetDisable()):(null===(o=i.cUe)||void 0===o?void 0:o.isDisable())&&(null===(r=i.cUe)||void 0===r||r.resetDisable())}}),i.qZe.create().appendTo(a),n=(0,c.isNullOrUndefined)(e.fields)||s.length===i.lUe().length||"*"===e.fields,i.qZe.setValue(n),i.cUe=new u.Jze({label:{text:(0,o.getSR)().GroupPanelFieldsHeader},enableMultiSelected:!0,items:i.lUe(),enable:!i.qZe.value,onChange:function(t){i.fields=t.join(","),t.length===i.lUe().length&&i.qZe.setValue(!0),i.Xze()}}),i.cUe.create().appendTo(a),i.cUe.setValue(s),a},t.prototype.lUe=function(){var t,n,i,e=this,o=e.LEt.getTriggerFields(),r=[];for(t=0,n=o;t<n.length;t++)i=n[t],r.push({value:i});return r},t.prototype.Xze=function(){var t=this;t.LEt.onChange({fields:t.fields})},t.prototype.setOptions=function(t){var n=this;n.LEt=f(f({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.$Ze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.$Ze=c.keyword_null},t.prototype.L0=function(){var t=this;t.qZe&&t.qZe.dispose(),t.qZe=c.keyword_null,t.cUe&&t.cUe.dispose(),t.cUe=c.keyword_null},t}(),n.KZe=l},8026:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.mJr||function(){return f=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},f.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.RZe=void 0,e=i(1376),o=i(6114),r=i(6018),u=i(4900),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.Pq=[],this.BZe=[],this.LEt=t}return t.prototype.create=function(t){var n=this,i=n.QZe=(0,e.GC$)(s("div"));return i.addClass("gc-defined-column-look-up-container"),n.ZX(n.PZe(t)),i},t.prototype.ZX=function(t){var n,i,e,r,a=this,s=a.QZe,l=a.LEt.getLookup()||[],f=new u.Kze({inputId:"lookup-tables",validate:{required:!0},enableSearch:!0,stickItem:{value:c.keyword_undefined,text:(0,o.getSR)().defineColumnNone,iconClass:""},items:l.map((function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}})),label:{text:(0,o.getSR)().columnTypeLookupTables},onChange:function(t){var n=null==t?void 0:t.value,i=function(){a.YZe(a.Pq.slice(2)),a.Pq=a.Pq.slice(0,2),a.ltt().setValue()};if(!n)return a.BZe=[],i(),a.ltt().isDisable()||a.ltt().resetDisable(),void a.WZe();0===a.BZe.length?a.BZe.push(t.lookup):(a.BZe=[t.lookup],i()),l=a.LEt.getLookup(a.HZe()),a.ltt().setOptions({items:l.map((function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}}))}),a.ltt().isDisable()&&a.ltt().resetDisable(),a.WZe()}});if(f.create().appendTo(s),a.Pq.push({fieldSelect:f}),a.VZe(),t&&(f.setValue(null===(n=t[0])||void 0===n?void 0:n.table),t.length>1&&a.ltt().setValue(t[1],t[0])),t&&t.length>2)for(i=2;i<t.length;i++)e=t[i],(r=a.Pq[i]).fieldSelect.setValue(e.table),r.fieldNumber&&a.FZe(r.fieldNumber,t[i-1].isMany,e.index)},t.prototype.VZe=function(t,n){var i,a,l,d=this,h=!!t,v=d.QZe,g=(0,e.GC$)(s("div"));g.appendTo(v),g.addClass("gc-defined-column-look-up-field-container"),(l=new r.AZe({inputId:"lookup-fields-number"+(t?"-"+t:"")+"-"+(d.Pq.length-1),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,allowMinNull:!0,enable:h,visible:!!(null===(i=d.BZe[d.Pq.length-1])||void 0===i?void 0:i.isMany),label:{text:(0,o.getSR)().columnTypeLookupIndexes},onChange:function(t){var n=d.Pq.findIndex((function(t){return t.fieldSelect===a})),i=a.item.lookup,e=t||c.keyword_undefined;i?(i.index=t||c.keyword_undefined,d.BZe[n]?d.BZe[n]=i:d.BZe.push(i)):d.BZe[n]?d.BZe[n].index=e:d.BZe.push({table:c.keyword_null,index:e}),d.WZe()}})).create().appendTo(g),a=new u.Kze({inputId:"lookup-fields"+(t?"-"+t:"")+"-"+d.Pq.length,enable:h,enableSearch:!0,stickItem:{value:c.keyword_undefined,text:(0,o.getSR)().defineColumnNone,iconClass:""},items:h?n.map((function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}})):[],label:{text:(0,o.getSR)().columnTypeLookupFields},onChange:function(t){var n,i,e=null==t?void 0:t.value,o=d.Pq.findIndex((function(t){return t.fieldSelect===a})),r=function(){var t=o+1;d.BZe=d.BZe.slice(0,t),d.YZe(d.Pq.slice(t)),d.Pq=d.Pq.slice(0,t)},u=null===(n=d.Pq[o].fieldNumber)||void 0===n?void 0:n.value;if(!e)return r(),d.BZe[o]&&(d.BZe[o]=f(f({},d.BZe[o]),{table:c.keyword_null}),u||(d.BZe[o].index=c.keyword_null)),void d.WZe();d.BZe[o]?(d.BZe[o]=t.lookup,d.BZe[o].index=u,r()):d.BZe.push(t.lookup),t.lookup.isTable&&(i=d.LEt.getLookup(d.HZe()))&&i.length>0&&d.VZe(e,i),d.WZe()}}),a.create().appendTo(g),d.Pq.push({fieldSelect:a,fieldNumber:l,lookupFieldContainer:g}),a.setValue()},t.prototype.ltt=function(){var t=this,n=t.Pq[1],i=n.fieldSelect,e=n.fieldNumber;return{setValue:function(n,o){i.setValue(null==n?void 0:n.table),t.FZe(e,null==o?void 0:o.isMany,null==n?void 0:n.index)},resetDisable:function(){i.resetDisable(),e.resetDisable()},isDisable:function(){return i.isDisable()},setOptions:function(n){var o;i.setOptions(n),t.FZe(e,t.BZe[0].isMany,null===(o=t.BZe[1])||void 0===o?void 0:o.index)}}},t.prototype.FZe=function(t,n,i){n?(t.setOptions({visible:!0}),t.setValue(i)):(t.setOptions({visible:!1}),t.setValue())},t.prototype.PZe=function(t){var n,i,e,o=this,r=[],u=t?t.split("."):[],c=function(t,i){var e,c=u[t];Number.isInteger(Number(c))?r[i]=f(f({},r[i]),{index:Number(c)}):(e=o.LEt.getLookup(u.slice(0,t).join(".")),r[i]=f(f(f({},r[i]),{table:c}),e.find((function(t){return t.table===c}))),i++),n=i};for(i=0,e=0;i<u.length;i++)c(i,e),e=n;return r},t.prototype.HZe=function(t){var n,i,e=this,o="";if(t){for(n=0;n<e.BZe.length;n++)(i=e.BZe[n]).index?(o+=".".concat(i.index),i.table&&(o+=".".concat(i.table))):i.table&&(o+=".".concat(i.table));o=o.slice(1)}else o=e.BZe.map((function(t){return t.table})).join(".");return o},t.prototype.WZe=function(){var t=this,n=t.HZe(!0);t.LEt.onChange(n)},t.prototype.validate=function(){var t,n;return null===(n=null===(t=this.Pq[0])||void 0===t?void 0:t.fieldSelect)||void 0===n?void 0:n.validate()},t.prototype.YZe=function(t){var n,i,e,o,r,u,c=function(t){t&&(t.dispose?t.dispose(!0):t.unbind&&t.unbind("click"))};for(n=0,i=t;n<i.length;n++)o=(e=i[n]).fieldSelect,r=e.fieldNumber,u=e.lookupFieldContainer,o&&c(o),r&&c(r),u&&u.remove();return[]},t.prototype.dispose=function(){var t=this;t.YZe(t.Pq),t.Pq=[],t.QZe=c.keyword_null},t}(),n.RZe=l},8033:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.ueo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"checkDigit"),t.ato(n,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.oeo(n),n},n}(o.Meo),n.ueo=c},8057:function(t,n,i){var e,o,r,u,c,a,s,l,f;Object.defineProperty(n,"__esModule",{value:!0}),n.Meo=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(6406),c=i(6018),a=i(4900),s=e.mt,l=s.En,f=function(){function t(t){var n=this;n.LEt=t,n.xT=[],n.selectBarcode="data_"+t.option.barcodeType,n.fontOptions=[]}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){},t.prototype.ato=function(t,n,i,e,r){var u=this,c=new a.Kze({inputId:"barcode-"+n,defaultValue:u.LEt.option[u.selectBarcode][n],items:i,enable:e,label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},onChange:function(t){u.LEt.option[u.selectBarcode][n]=t.value,r&&r(t),u.onChange()}});return c.create().appendTo(t),u.xT.push(c),c},t.prototype.rto=function(t,n,i,e){var r=this,c=new u.mZe({inputId:"barcode-"+n,enable:i,defaultValue:r.LEt.option[r.selectBarcode][n],className:"gc-defined-column-barcode-options-input",label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},onBlur:function(t){r.LEt.option[r.selectBarcode][n]=t,e&&e(t),r.onChange()}});return c.create().appendTo(t),r.xT.push(c),c},t.prototype.cto=function(t,n,i,e){var u=this,c=new r.Rze({defaultValue:u.LEt.option[u.selectBarcode][n],label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},enable:i,textDisplay:1,inputId:n,onChange:function(t){u.LEt.option[u.selectBarcode][n]=t,e&&e(t),u.onChange()}});return c.create().appendTo(t),u.xT.push(c),c},t.prototype.teo=function(t,n,i,e,r,u){var a=this,s=new c.AZe({defaultValue:a.LEt.option[a.selectBarcode][n],minValue:i,maxValue:e,enable:r,label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},inputId:n,onChange:function(t){a.LEt.option[a.selectBarcode][n]=t,u&&u(t),a.onChange()}});return s.create().appendTo(t),a.xT.push(s),s},t.prototype.neo=function(t){var n=this,i=(0,e.GC$)(l("div"));return i.addClass("gc-defined-column-empty-div"),i.appendTo(t),n.xT.push(i),i},t.prototype.ieo=function(t){var n=this,i=n.fontOptions,e=n.labelPosition;n.cto(t,"showLabel",void 0,(function(t){t?(i.forEach((function(t){t.isDisable()&&t.resetDisable()})),e.isDisable()&&e.resetDisable()):(i.forEach((function(t){t.isDisable()||t.resetDisable()})),e.isDisable()||e.resetDisable())})),e=n.ato(t,"labelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}],!1)},t.prototype.oeo=function(t){var n=this,i=n.fontOptions;i.push(n.ato(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)),i.push(n.ato(t,"fontStyle",[{text:"normal",value:"normal"},{text:"italic",value:"italic"}],!1)),i.push(n.ato(t,"fontWeight",[{text:"normal",value:"normal"},{text:"bold",value:"bold"}],!1)),i.push(n.ato(t,"fontTextDecoration",[{text:"none",value:"none"},{text:"underline",value:"underline"},{text:"overline",value:"overline"},{text:"line-through",value:"line-through"}],!1)),i.push(n.ato(t,"fontTextAlign",[{text:"center",value:"center"},{text:"left",value:"left"},{text:"right",value:"right"},{text:"group",value:"group"}],!1)),i.push(n.ato(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)),i.forEach((function(t){t.container.addClass("gc-defined-column-field-item-small-container")}))},t.prototype.onChange=function(){var t=this,n=t.LEt.onChange;n&&n(t.LEt.option)},t.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&e.unbind("click");return[]},t.prototype.dispose=function(){var t=this;t.xT=t.YZe(t.xT)},t}(),n.Meo=f},8301:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.columnTypeNumber=n.defineColumnExisted=n.defineColumnRequired=n.defineColumnNoResults=n.defineColumnAll=n.defineColumnNone=n.defineColumnFormula=n.defineColumnOthers=n.defineColumnDefaultValue=n.defineColumnConfiguration=n.defineColumnFormatting=n.defineColumnType=n.defineColumnCaption=n.defineColumnValue=n.submit=n.cancel=n.defineColumn=n.Exp_InvalidOperationInProtectForTableSheet=n.CrossColumnDetailList=n.CrossColumnDetailAttributes=n.CrossColumnDetailFilter=n.CrossColumnDetailValueHeader=n.CrossColumnDetailCaption=n.CrossColumnDetailOver=n.CrossColumnDetailValuePlaceHolder=n.CrossColumnDetailValue=n.CrossColumnDetailName=n.CrossColumnDetailFormatter=n.CrossColumnCrossHeader=n.StatusBarToolTipRowCount=n.StatusBarRowCount=n.TextColon=n.GroupPanelAddCalculateColumn=n.GroupPanelItemRemoveAll=n.GroupPanelSummaryLabelPositionFooter=n.GroupPanelSummaryLabelPositionHeader=n.GroupPanelSummaryLabelPosition=n.GroupPanelSummaryLabelRelateTo=n.GroupPanelSummaryLabelSlice=n.GroupPanelSummaryLabelCaption=n.GroupPanelSummaryLabelFormula=n.GroupPanelDropDownCalcField=n.GroupPanelItemAddCalculation=n.GroupPanelItemRemove=n.GroupPanelGroupsHeader=n.GroupPanelFieldsHeader=n.GroupPanelTip=n.GroupPanelGroupName=n.GroupPanelSetting=n.EXP_TooManyPinRecords=void 0,n.columnTypeAttachmentLeft=n.columnTypeAttachmentMarginGroup=n.columnTypeCalendarType=n.columnTypeShowEraFirstYear=n.columnTypeCalendar=n.columnTypeDateLocale=n.columnTypeDateType=n.columnTypeDateShowBuiltInDateRange=n.columnTypeDateShowDateRange=n.columnTypeDateShowTime=n.columnTypeDateMonth=n.columnTypeDateYear=n.columnTypeDateDay=n.columnTypeDateCalendarPage=n.columnTypeDateSunday=n.columnTypeDateSaturday=n.columnTypeDateFriday=n.columnTypeDateThursday=n.columnTypeDateWednesday=n.columnTypeDateTuesday=n.columnTypeDateMonday=n.columnTypeDateStartDay=n.columnTypeDateTimePicker=n.columnTypeAllEditableFields=n.columnTypeMask=n.columnTypeFormattingCategory=n.columnTypeLookupIndexes=n.columnTypeLookupFields=n.columnTypeLookupTables=n.columnTypeNumberFormatting=n.columnTypeNumberFormattingSymbol=n.columnTypeNumberFormattingNegativeNumbers=n.columnTypeNumberFormattingThousandSeparator=n.columnTypeNumberFormattingDecimalPlaces=n.columnTypeNumberFormattingSample=n.columnTypeBarcode=n.columnTypeSelect=n.columnTypeAttachment=n.columnTypeModifiedTime=n.columnTypeCreatedTime=n.columnTypeLookup=n.columnTypeURL=n.columnTypeEmail=n.columnTypePhone=n.columnTypePercent=n.columnTypeCurrency=n.columnTypeDate=n.columnTypeCheckbox=n.columnTypeFormula=n.columnTypeText=void 0,n.SortsRemove=n.SortsAdd=n.columnTypeUrlLabel=n.columnTypeComboBoxItemHeight=n.columnTypeComboBoxEditable=n.columnTypeComboBoxEditorValueType=n.columnTypeComboBoxRemove=n.columnTypeComboBoxAdd=n.columnTypeComboBoxValue=n.columnTypeComboBoxText=n.columnTypeComboBoxItemProperties=n.columnTypeComboBoxItems=n.columnTypeComboBoxEditorValueTypes=n.columnTypeBarcodeLabel=n.columnTypeCheckboxTextAlign=n.columnTypeCheckboxAuto=n.columnTypeCheckboxBoxSize=n.columnTypeCheckboxIsThreeState=n.columnTypeCheckboxCaption=n.columnTypeCheckboxOther=n.columnTypeCheckboxAlign=n.columnTypeCheckboxFalse=n.columnTypeCheckboxIndeterminate=n.columnTypeCheckboxTrue=n.columnTypeCheckboxTextGroup=n.columnTypeCheckboxTitle=n.columnTypeAttachmentSizeUnit=n.columnTypeAttachmentIsDownloadEnabled=n.columnTypeAttachmentIsClearEnabled=n.columnTypeAttachmentIsPreviewEnabled=n.columnTypeAttachmentAcceptValueTypes=n.columnTypeAttachmentAccept=n.columnTypeAttachmentMaxSize=n.columnTypeAttachmentBottom=n.columnTypeAttachmentRight=n.columnTypeAttachmentTop=void 0,n.EXP_TooManyPinRecords="Only support less than 10 pin records.",n.GroupPanelSetting="Setting",n.GroupPanelGroupName="Group Name",n.GroupPanelTip="Drag here to set row groups",n.GroupPanelFieldsHeader="Fields",n.GroupPanelGroupsHeader="Groups",n.GroupPanelItemRemove="Remove",n.GroupPanelItemAddCalculation="Add Summary Field",n.GroupPanelDropDownCalcField="Field",n.GroupPanelSummaryLabelFormula="Formula",n.GroupPanelSummaryLabelCaption="Caption",n.GroupPanelSummaryLabelSlice="Slice",n.GroupPanelSummaryLabelRelateTo="Relate to",n.GroupPanelSummaryLabelPosition="Position",n.GroupPanelSummaryLabelPositionHeader="Header",n.GroupPanelSummaryLabelPositionFooter="Footer",n.GroupPanelItemRemoveAll="Remove All",n.GroupPanelAddCalculateColumn="Add Calculated Column",n.TextColon=":",n.StatusBarRowCount="Row Count",n.StatusBarToolTipRowCount="Count of selected rows",n.CrossColumnCrossHeader="Cross",n.CrossColumnDetailFormatter="Formatter",n.CrossColumnDetailName="Name",n.CrossColumnDetailValue="Value",n.CrossColumnDetailValuePlaceHolder="Drag item here to set value",n.CrossColumnDetailOver="Over",n.CrossColumnDetailCaption="Caption",n.CrossColumnDetailValueHeader="Show Cross Value Header",n.CrossColumnDetailFilter="Filter",n.CrossColumnDetailAttributes="Attributes",n.CrossColumnDetailList="List",n.Exp_InvalidOperationInProtectForTableSheet="The range you're trying to change is locked.",n.defineColumn="Define Column",n.cancel="Cancel",n.submit="Submit",n.defineColumnValue="Value",n.defineColumnCaption="Caption",n.defineColumnType="Type",n.defineColumnFormatting="Formatting",n.defineColumnConfiguration="Configuration",n.defineColumnDefaultValue="Default",n.defineColumnOthers="Others",n.defineColumnFormula="Formula",n.defineColumnNone="None",n.defineColumnAll="All",n.defineColumnNoResults="No Results",n.defineColumnRequired="It's required",n.defineColumnExisted="It's existed",n.columnTypeNumber="Number",n.columnTypeText="Text",n.columnTypeFormula="Formula",n.columnTypeCheckbox="Checkbox",n.columnTypeDate="Date",n.columnTypeCurrency="Currency",n.columnTypePercent="Percent",n.columnTypePhone="Phone",n.columnTypeEmail="Email",n.columnTypeURL="URL",n.columnTypeLookup="Lookup",n.columnTypeCreatedTime="CreatedTime",n.columnTypeModifiedTime="ModifiedTime",n.columnTypeAttachment="Attachment",n.columnTypeSelect="Select",n.columnTypeBarcode="Barcode",n.columnTypeNumberFormattingSample="Sample",n.columnTypeNumberFormattingDecimalPlaces="Decimal places",n.columnTypeNumberFormattingThousandSeparator="Use 1000 Separator(,)",n.columnTypeNumberFormattingNegativeNumbers="Negative numbers",n.columnTypeNumberFormattingSymbol="Symbol",n.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"}}},n.columnTypeLookupTables="Select lookup table",n.columnTypeLookupFields="The field to look up",n.columnTypeLookupIndexes="The record number",n.columnTypeFormattingCategory="Category",n.columnTypeMask={pattern:"Pattern",placeholder:"Placeholder",excludeLiteral:"Exclude Literal",excludePlaceholder:"Exclude Placeholder"},n.columnTypeAllEditableFields="All Editable Fields",n.columnTypeDateTimePicker="DateTime Picker",n.columnTypeDateStartDay="StartDay",n.columnTypeDateMonday="Monday",n.columnTypeDateTuesday="Tuesday",n.columnTypeDateWednesday="Wednesday",n.columnTypeDateThursday="Thursday",n.columnTypeDateFriday="Friday",n.columnTypeDateSaturday="Saturday",n.columnTypeDateSunday="Sunday",n.columnTypeDateCalendarPage="CalendarPage",n.columnTypeDateDay="Day",n.columnTypeDateYear="Year",n.columnTypeDateMonth="Month",n.columnTypeDateShowTime="ShowTime",n.columnTypeDateShowDateRange="ShowDateRange",n.columnTypeDateShowBuiltInDateRange="ShowBuiltInDateRange",n.columnTypeDateType="Type",n.columnTypeDateLocale="locale (location)",n.columnTypeCalendar="Calendar type",n.columnTypeShowEraFirstYear="Use Gannen to display 1st year",n.columnTypeCalendarType={western:"Western",JER:"Japanese Emperor Reign"},n.columnTypeAttachmentMarginGroup="Margin",n.columnTypeAttachmentLeft="Left",n.columnTypeAttachmentTop="Top",n.columnTypeAttachmentRight="Right",n.columnTypeAttachmentBottom="Bottom",n.columnTypeAttachmentMaxSize="Size Limit",n.columnTypeAttachmentAccept="File Type",n.columnTypeAttachmentAcceptValueTypes={txt:"txt",all:"all",pdf:"pdf",image:"jpg,png,gif",excel:"docx,xlsx,pptx"},n.columnTypeAttachmentIsPreviewEnabled="Preview",n.columnTypeAttachmentIsClearEnabled="Clear",n.columnTypeAttachmentIsDownloadEnabled="Download",n.columnTypeAttachmentSizeUnit="KB",n.columnTypeCheckboxTitle="CheckBox CellType",n.columnTypeCheckboxTextGroup="Text",n.columnTypeCheckboxTrue="True",n.columnTypeCheckboxIndeterminate="Indeterminate",n.columnTypeCheckboxFalse="False",n.columnTypeCheckboxAlign="Align",n.columnTypeCheckboxOther="Other",n.columnTypeCheckboxCaption="Caption",n.columnTypeCheckboxIsThreeState="IsThreeState",n.columnTypeCheckboxBoxSize="Box Size",n.columnTypeCheckboxAuto="Auto",n.columnTypeCheckboxTextAlign={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},n.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"},n.columnTypeComboBoxEditorValueTypes="EditorValueType",n.columnTypeComboBoxItems="Items",n.columnTypeComboBoxItemProperties="ItemProperties",n.columnTypeComboBoxText="Text",n.columnTypeComboBoxValue="Value",n.columnTypeComboBoxAdd="Add",n.columnTypeComboBoxRemove="Remove",n.columnTypeComboBoxEditorValueType={text:"Text",index:"Index",value:"Value"},n.columnTypeComboBoxEditable="Editable",n.columnTypeComboBoxItemHeight="Items Height",n.columnTypeUrlLabel={linkColor:"Link Color",visitedLinkColor:"Visited Link Color"},n.SortsAdd="Add to multiple sorting",n.SortsRemove="Remove from multiple sorting"},8333:function(n){n.exports=t.Spread.Sheets.ConditionalFormatting},8565:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.vZe=void 0,e=i(1376),o=i(2648),r=i(6114),u=i(6406),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i=this,o=(0,e.GC$)(s("div"));return o.addClass("gc-defined-column-input-formula-container"),(t=i.DZe=new u.mZe({inputId:"formula",type:"text",validate:i.LEt.validate,placeholder:(0,r.getSR)().defineColumnFormula})).create().appendTo(o),i.jZe(),(n=i.CZe=(0,e.GC$)(s("div"))).addClass("gc-defined-column-fake-ftb-workbook"),n.hide(),n.appendTo(o),o},t.prototype.jZe=function(){var t=this,n={formulaInputTextBox:null,fakeFormulaTextBoxWorkbook:null};t.DZe.bind("focus",(function(){t.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook);var i=t.wZe();n.formulaInputTextBox=i.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook=i.fakeFormulaTextBoxWorkbook})).bind("blur",(function(){var i=t.DZe.value;"="===i&&(i="",t.DZe.setValue("",!1)),t.LEt.onChange(i),t.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook)})).bind("keydown",(function(i){13===i.keyCode&&(t.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook),i.target.blur())}))},t.prototype.TZe=function(){var t;this.DZe.unbind("focus").unbind("blur").unbind("keydown")},t.prototype.wZe=function(){var t,n=this,i=n.DZe,r=i.value||"=",u=new o.FormulaTextBox(i.getInputElement(),c.keyword_null,c.keyword_null);return u.Ngi=!0,t=new e.Workbook(n.CZe.get(0),{allowDynamicArray:!0,allowUndo:!1}),n.XMi(t),n.lgi(t),u.workbook(t),u.text(r),{formulaInputTextBox:u,fakeFormulaTextBoxWorkbook:t}},t.prototype.XMi=function(t){var n,i,e,o=this,u=o.LEt.getColumnFields();for(n=0,i=u;n<i.length;n++)e=i[n],t.zwt(t.hyt,e,"=A1",0,0,!0,(0,r.getSR)().GroupPanelDropDownCalcField+" "+e)},t.prototype.lgi=function(t){var n=t.getActiveSheet();delete n.Qy().PUt.enter,n.setRowCount(1),n.setColumnCount(1)},t.prototype.ggi=function(t,n){t&&t.destroy&&t.destroy(),n&&n.destroy&&n.destroy()},t.prototype.validate=function(){return this.DZe.validate()},t.prototype.setValue=function(t){var n;this.DZe.setValue(t)},t.prototype.dispose=function(){var t=this;t.TZe(),t.DZe.dispose(),t.DZe=c.keyword_null},t}(),n.vZe=l},8680:function(t,n,i){var e,o,r,u,c,a,s;function l(t){return t instanceof Function}Object.defineProperty(n,"__esModule",{value:!0}),e=i(7848),o=i(7234),r=i(7373),u=o.Common.lt.ht,c=null,a=void 0,s=function(){function t(){}return t.prototype.isDataSource=function(t){return r&&r.isView&&r.isView(t)},t.prototype.getDataLength=function(t){return t.visibleLength()},t.prototype.getDataItem=function(t,n,i){if(n<0)return c;var e=a;return i&&((e={})[i]=1),t.getRowData(n,a,e)},t.prototype.addItems=function(t,n,i,e,o){},t.prototype.removeItems=function(t,n,i,e){var o=this.getDataLength(t);e()},t.prototype.undoRemoveItems=function(t,n,i){},t.prototype.getProperties=function(t){var n=this.getDataItem(t,0);return n?Object.keys(n):[]},t.prototype.getValue=function(t,n,i,e,o,r){var a,s,f,d,h=t.kve(o);return h?(s=c,f=t.Nve(e,h),d=!1,u(f)||(d=!0,n&&l(n)&&(f=n(((a={})[i]=f,a))),s=r?r(h,e,f):f),{value:s,hasBinding:d}):{value:c,hasBinding:!0}},t.prototype.setValue=function(t,n,i,e,o,r,u){},t.prototype.allowSetCount=function(){return!0},t.prototype.canAdd=function(){return!0},t.prototype.canInsert=function(){return!1},t.prototype.fromJSON=function(t){return t},t.prototype.toJSON=function(t){return t},t}(),e.X$.dataManagerBindingSource=new s},8966:function(t,n,i){var e,o,r,u,c,a;Object.defineProperty(n,"__esModule",{value:!0}),n.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET=n.REMOVE_FROM_MULTI_SORT=n.ADD_TO_MULTI_SORT=n.REMOVE_CROSS_COLUMN=n.RESET_NEW_VIEW=n.DEFINE_COLUMN_TO_TABLE=n.MODIFY_COLUMN_TO_TABLE=n.REMOVE_COLUMN_TO_TABLE=n.VIEW_MOVE_COLUMN_FOR_PANEL=n.VIEW_MOVE_COLUMN=n.VIEW_Add_COLUMN_INFO=n.VIEW_UPDATE_COLUMN_INFO=n.VIEW_REMOVE_COLUMN_INFO=n.GROUP_OPTIONS=n.EXPAND_GROUP=n.EXPAND_GROUP_ITEM=n.RESET_ROW=n.SAVE_ROW=n.REMOVE_ROW=n.PIN_ROW=n.SAVE_ALL=void 0,e=i(1376),o=i(3889),r="TableSheet",u=function(t){return r+t},n.SAVE_ALL="SaveAll",n.PIN_ROW="PinRow",n.REMOVE_ROW="RemoveRow",n.SAVE_ROW="SaveRow",n.RESET_ROW="ResetRow",n.EXPAND_GROUP_ITEM=u("ExpandGroupItemCommand"),n.EXPAND_GROUP=u("ExpandGroupCommand"),n.GROUP_OPTIONS=u("SetGroupOptions"),n.VIEW_REMOVE_COLUMN_INFO=u("ViewRemoveColumnInfo"),n.VIEW_UPDATE_COLUMN_INFO=u("ViewUpdateColumnInfo"),n.VIEW_Add_COLUMN_INFO=u("ViewAddColumnInfo"),n.VIEW_MOVE_COLUMN=u("ViewMoveColumn"),n.VIEW_MOVE_COLUMN_FOR_PANEL=u("ViewMoveColumnForPanel"),n.REMOVE_COLUMN_TO_TABLE="RemoveColumn",n.MODIFY_COLUMN_TO_TABLE="ModifyColumn",n.DEFINE_COLUMN_TO_TABLE="DefineColumn",n.RESET_NEW_VIEW=u("ResetNewView"),n.REMOVE_CROSS_COLUMN=u("CrossColumnOptions"),n.ADD_TO_MULTI_SORT=u("AddToMultiSort"),n.REMOVE_FROM_MULTI_SORT=u("RemoveFromMultiSort"),n.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET=u("ApplyNamedCellTemplate"),c=e.Commands.zA,a=function(){},e.Commands[n.SAVE_ALL]={canUndo:!1,execute:function(t,n,i){var e,o,r,u=t.Ofe(n.sheetName),c=u.id();for(u.suspendPaint(),e=0,o=c;e<o.length;e++)r=o[e],u.saveRow(r).catch(a);return u.resumePaint(),!0}},e.Commands[n.SAVE_ROW]={canUndo:!1,execute:function(t,n){var i=n.tableSheet,o=n.index;return i.Mf.ki(e.Events.RowOperation,{sheet:i,sheetName:i.name(),actionType:1,row:o}),i.saveRow(o).catch(a),!0}},e.Commands[n.RESET_ROW]={canUndo:!0,execute:function(t,n,i){return n.sheetName=n.tableSheet.name(),c(t,o.ResetRowAction,n,i)}},e.Commands[n.EXPAND_GROUP_ITEM]={canUndo:!0,execute:function(t,n,i){return c(t,o.ExpandGroupItemAction,n,i)}},e.Commands[n.EXPAND_GROUP]={canUndo:!0,execute:function(t,n,i){return c(t,o.ExpandGroupAction,n,i)}},e.Commands[n.PIN_ROW]={canUndo:!0,execute:function(t,n,i){return n.sheetName=n.tableSheet.name(),c(t,o.PinRowAction,n,i)}},e.Commands[n.REMOVE_ROW]={canUndo:!0,execute:function(t,n,i){return c(t,o.RemoveRowAction,n,i)}},e.Commands[n.MODIFY_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,n,i){return c(t,o.ModifyColumnToTableAction,n,i)}},e.Commands[n.REMOVE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,n,i){return c(t,o.RemoveColumnToTableAction,n,i)}},e.Commands[n.DEFINE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,n,i){return c(t,o.DefineColumnToTableAction,n,i)}},e.Commands[n.VIEW_UPDATE_COLUMN_INFO]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewUpdateColumnInfoAction,n,i)}},e.Commands[n.VIEW_REMOVE_COLUMN_INFO]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewRemoveColumnInfoAction,n,i)}},e.Commands[n.VIEW_Add_COLUMN_INFO]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewAddColumnInfoAction,n,i)}},e.Commands[n.VIEW_MOVE_COLUMN]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewMoveColumnAction,n,i)}},e.Commands[n.VIEW_MOVE_COLUMN_FOR_PANEL]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewMoveColumnForPanelAction,n,i)}},e.Commands[n.GROUP_OPTIONS]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewGroupOptionsAction,n,i)}},e.Commands[n.RESET_NEW_VIEW]={canUndo:!0,execute:function(t,n,i){return c(t,o.TableSheetResertViewAction,n,i)}},e.Commands[n.REMOVE_CROSS_COLUMN]={canUndo:!0,execute:function(t,n,i){return c(t,o.TableSheetRemoveColumnInfoAction,n,i)}},e.Commands[n.ADD_TO_MULTI_SORT]={canUndo:!0,execute:function(t,n,i){return c(t,o.AddToMultiSortAction,n,i)}},e.Commands[n.REMOVE_FROM_MULTI_SORT]={canUndo:!0,execute:function(t,n,i){return c(t,o.RemoveFromMultiSortAction,n,i)}},e.Commands[n.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET]={canUndo:!0,execute:function(t,n,i){return c(t,o.ApplyNamedCellTemplateToTableSheetAction,n,i)}}},9131:function(n){n.exports=t.Spread.Sheets.Tables},9134:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T=this&&this.vJr||(j=function(t,n){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},j(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}j(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),j;Object.defineProperty(n,"__esModule",{value:!0}),n.TableSheetFilterDialog=void 0,e=i(4036),o=i(1376),r=i(7234),u=i(7669),c=i(8966),a=i(6114),s=r.Common.lt,l=s.ht,f=s.q8,d=Object.keys,h="null",v="undefined",g=null,M=void 0,I=o.mt.En,b=1e5,N=/((\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})/,D="gc-sortASC-tr",m="gc-sortDEC-tr",y="."+(w="gc-table-sheet-sorts-btn-add")+", ."+(C="gc-table-sheet-sorts-btn-remove"),x=["mousedown","mouseup"],A=function(t){function n(n,i,e,o,r,u){var c=t.call(this,n,i,e,o,r)||this;return c.cze=!1,c.vMi=u,c}return T(n,t),n.prototype.nct=function(n,i,e){t.prototype.nct.call(this,n,i,e);var r=n.getActualStyle(-1,0)||new o.Style;r.hAlign=o.HorizontalAlign.right,r.vAlign=o.VerticalAlign.bottom,r.cellPadding="0 1 1 0",n.setStyle(-1,0,r),n.setColumnWidth(0,28)},n.prototype.Bst=function(t,n,i,e,o,r,u){var c,a,s,f,h,v,g,I,N,D,m,w,C,y,x,A=this,T=this.vMi,j=T.Mf,p=this.filterButtonInfo.col,z=T.getDataView(),L=z&&z.gLt,S=function(t){return z.uFt(t)},O=this,k=O.filterButtonInfo.rowFilter;if(k){if(a=0,f=[],h=T.qNi(),(g=(v=z.kve(t)).value||v.name)&&!h){if((s=S(g))?L&&L.rBt(g)&&s.K$!==L.rBt(g)&&z.eRt([g],!0):z.eRt([g]),s=S(g),l(s))return;c=s.K$,(N=null==(I=L.jRt(g))?void 0:I.dataMap)&&"object"==typeof N&&(D=typeof Object.values(N)[0],-1!==["string","number","boolean"].indexOf(D)&&(c=D)),delete s.K$,f=d(s),a=f.length,s.K$=c,O.wTi=O.yTi(z.lFt&&z.lFt.length>0?z.iRt.slice(z.lFt.length):z.iRt)}if(O.Jut=!1,m=j.$go(-1,t),w=j.l0(-1,t===p?t:p,"formatter"),h)return O.Jut=M,void O.mTi(g,t,n,i,e,o,r,u,m,w);if(a>b){for(C=Math.ceil(a/b),O.CTi=[],y=1;y<C;y++)x=void 0,x=y===C-1?{startIndex:b*y,endIndex:a-1}:{startIndex:b*y,endIndex:b*(y+1)-1},O.CTi.push(x);O.Yut(!0),O.zTi(s,f,0,b-1,t,n,i,e,o,r,u,m,w,c),O.Vut(b/a),setTimeout((function(){A.asyncCreateFilterData(s,f,O.CTi,t,n,i,e,o,r,u,m,w,c,a)}),0)}else O.zTi(s,f,0,a-1,t,n,i,e,o,r,u,m,w,c)}},n.prototype.mTi=function(t,n,i,e,o,r,c,a,s,f){var h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S=this.vMi,O=this,k={},E=S.getDataView(),Z=E.gLt._dataSource.options.schema,U=O.filterButtonInfo.rowFilter,G=U.Mct,B=U.isFiltered(n)&&(0,u.isSpecificCondition)(U.rrt[n][0],O),R=0===G.length||U.isFiltered(n)&&1===G.length;if(Z&&Z.columns&&Z.columns[t]&&(h=Z.columns[t].dataType),M=E.iRt,b=(I=E.bFt()).length,R)U.tAi=I;else{for(v=E.Jce||{},N=E.ife(n),g=d(v).filter((function(t){if(t!==N){var n=v[t].options[0],i=n&&void 0!==n.Vce;return i&&(D=t),!i}return!1})),m=0,w=0,C=D,y=0;y<g.length;y++)(m>(x=v[g[y]].count)||0===y)&&(m=x,w=y,C=g[y]);for(p in g.splice(w,1),A=function(t){for(var n=0;n<g.length&&v[g[n]][t];n++);return n===g.length},T=[],j=v[C])A(p)&&(z=+p,Number.isNaN(z)||T.push(z));E.iRt=T,E.yFt(),T=E.iRt,E.iRt=M,I=T,b=T.length,U.tAi=T}for(L=function(i){var e,o,u,d,v,g,b,N=I[i],D=E.getRowData(N,!0,(e={},e[t]=!0,e))[t];l(h)&&!l(D)&&(h=typeof D),u=(o=O.LTi(D,k,n,(function(){return{row:i,isCheckedInCheckList:!B&&M.indexOf(N)>-1,index:N}}),s,f,h)).row,d=o.filterData,v=o.filterText,g=o.type,b=o.isCheckedInCheckList,O.Pst({},r,c,u,n,a,!0,d,v,g,b)},y=0;y<b;y++)L(y)},n.prototype.zTi=function(t,n,i,e,o,r,c,a,s,h,v,g,M,I){var b,N,D,m,w,C,y,x,A,T,j,p,z=this.vMi,L=this,S={},O=L.filterButtonInfo.rowFilter,k=O.Mct,E=O.isFiltered(o)&&(0,u.isSpecificCondition)(O.rrt[o][0],L),Z=0===k.length||O.isFiltered(o)&&1===k.length;for(Z?(y=(m=z.getDataView()).lFt)&&y.length>0&&(D=y.reduce((function(t,n){return t[n]=!0,t}),{})):(m=z.getDataView(),b=m.Jce||{},w=m.kve(o),C=w.isGroup&&f(w._Ft)?m.ife(w._Ft):m.ife(w),N=d(b).filter((function(t){return t!==C}))),x=function(n){var i,e;if(l(D))return!0;for(i=t[n],e=0;e<i.length;e++)if(!D[i[e]])return!0;return!1},A=function(n){var i,e,o=t[n];for(i=0;i<o.length;i++){for(e=0;e<N.length&&b[N[e]][o[i]];e++);if(e===N.length)return!0}return!1},T=function(t,n){return!!t||(Z?x(n):A(n))},j=function(i){var e=n[i],r=e,u=L.LTi(r,S,o,(function(){return L.xTi(t[e],L.wTi)}),g,M,I),c=u.row,l=u.filterData,f=u.filterText,d=u.type,b=u.isCheckedInCheckList;L.Pst(a,s,h,c,o,v,!0,l,f,d,!E&&b,T(b,e))},p=i;p<=e;p++)j(p)},n.prototype.LTi=function(t,n,i,e,o,r,c){var a,s,f,d,M,I,b,D,m,w,C,y,x=this.vMi,A=this,T=x.Mf,j="string";return t!==h&&t!==v||(t=g,j="blank"),t&&"string"!==c&&("number"!==c&&"boolean"!==c||(isNaN(parseFloat(t))||(t=parseFloat(t)),j="number"),"object"!==c&&"date"!==c||t.match(N)&&!isNaN(Date.parse(t))&&(t=new Date(t),A.Jut=!0,j="date"),"string"===j&&(this.cze=!0)),a=t,f=(s=e()).row,d=s.isCheckedInCheckList,M=s.index,I=!1,("string"!=typeof t||r)&&l(f)&&"string"==typeof r&&x.Mf.parent&&(b=void 0,m=!(D=(0,u.isFormulaFormatter)(r))&&(0,u.hasATWithoutBrackets)(r),(D||m)&&(w=x.Mf.parent.xO(r))&&(I=!0,b=w.getExpression()),I&&(D?a=x.getDataView().sPt(b,M):m&&(a=x.getDataView().jfe(b,M,(0,u.getColumnName)(x,i))),l(a)||"object"!=typeof a||(a=l(a._error)?a.toString():a._error))),I||void 0!==(C=o.format(t,r,n,{sheet:T,row:f,col:i,sheetArea:3,quotePrefix:null}))&&a!==C&&(a=C),"boolean"===c&&("TRUE"===(y=String(t).toUpperCase())&&(t=!0,a="TRUE"),"FALSE"===y&&(t=!1,a="FALSE")),a&&"string"==typeof a&&(a=a.replace(/\r\n?/g,"\n")),{row:f,filterData:t,filterText:a,type:j,isCheckedInCheckList:d}},n.prototype.yTi=function(t){var n,i=[];for(n=0;n<t.length;n++)i[t[n]]=n;return i},n.prototype.xTi=function(t,n){var i,e,o;for(o=0;o<t.length;o++)if((e=n[i=t[o]])!==M)return{row:e,isCheckedInCheckList:!0};return{row:n[i=t[0]],isCheckedInCheckList:!1,index:i}},n.prototype.qut=function(){var t,n,i,e,o,r,u,c,a,s,l=this.vMi,f=this,d=f.ast.outlineColumn.getCheckStatus(),h=0,v=f._at||f.Dat,g=f.Eat,I=0;if(f.Bat=1===d[0],"add_current"===f.dataSource[0].key&&(h=1),f.Dat=[],n=l.qNi(),i="add_current"===f.dataSource[0].key,n&&i&&f.Bat)for(f.Bat=!1,e=0;e<g.length;e++)1===(o=g[e]).status&&f.Dat.push({text:o.key,value:o.value,type:o.type});for(e=0;e<g.length&&(t=g[e],i||(t.checkedStatus=d[e]),!(I>=v.length));e++)if(t.key===v[I].text){for(I++,r=t.children,u=M,c=0;c<r.length;c++)a=r[c],s=d[h],!1!==a.show&&(h+=1),u=s||u,3!==s&&(a.status=s);2!==u?(f.Dat.push({text:t.key,value:t.value,type:t.type}),n&&(i?1!==u&&f.Dat.pop():f.Dat[f.Dat.length-1].eAi=r[0].level)):f.lst(e,t)}},n.prototype.asyncCreateFilterData=function(t,n,i,e,o,r,u,c,a,s,l,f,d,h){var v,g,M,I=this,b=this,N=this.vMi,D=N.Mf;if(D.Cut){for(v=new Date,g=new Date;i.length>0&&g-v<=500;)M=i.shift(),b.zTi(t,n,M.startIndex,M.endIndex,e,o,r,u,c,a,s,l,f,d),b.Vut(M.endIndex/h),g=new Date;i.length>0?setTimeout((function(){I.asyncCreateFilterData(t,n,b.CTi,e,o,r,u,c,a,s,l,f,d,h)}),0):(b.Lst(o,r,!1,a,s,c,e),b.sut(),b.Yut(!1))}},n.prototype.Tut=function(){var n,i,e,r,u,c,a,s,l,f,d,h,v;t.prototype.Tut.call(this),i=(n=this).filterButtonInfo.rowFilter,(e=n.vMi||i.Mf&&i.Mf.NMi)&&e.options&&!1!==e.options.allowSorts&&(r=n.filterButtonInfo.col,u=i.isInMultiSort(r),c=i.rIo(r),a=u||0!==c,s=(0,o.GC$)("#"+D)[0],l=(0,o.GC$)("#"+m)[0],s&&s.children[2]&&(f=n.gIo(a&&1===c),(d=s.children[2]).style.width="28px",d.style.textAlign="center",(0,o.GC$)(d).empty().append(f)),l&&l.children[2]&&(h=n.gIo(a&&2===c),(v=l.children[2]).style.width="28px",v.style.textAlign="center",(0,o.GC$)(v).empty().append(h)))},n.prototype.gIo=function(t){var n=I("span"),i=(0,o.GC$)(n);return i.addClass(t?C:w),i.attr("data-action",t?"remove":"add"),i.attr("title",t?(0,a.getSR)().SortsRemove:(0,a.getSR)().SortsAdd),n},n.prototype.aY=function(){var n,i,e,r,u,a,s;if(t.prototype.aY.call(this),(i=(n=this).vMi)&&!1!==i.options.allowSorts)for(e=i.Mf,r=n.filterButtonInfo.col,u=n.Wc[0].querySelectorAll(y),a=function(t){var a=u[t],s=(0,o.GC$)(a.parentElement),l=function(t){t.stopPropagation(),t.stopImmediatePropagation()};s.bind("mousedown",l),s.bind("mouseup",l),(0,o.GC$)(a).bind("mousedown",(function(t){t.stopPropagation(),t.stopImmediatePropagation()})),(0,o.GC$)(a).bind("mouseup",(function(t){var o,u,s;t.stopPropagation(),t.stopImmediatePropagation(),o=a.getAttribute("data-action"),s=(u=a.closest("tr"))&&u.id===D,"add"===o?i.zA({cmd:c.ADD_TO_MULTI_SORT,col:r,ascending:s}):"remove"===o&&i.zA({cmd:c.REMOVE_FROM_MULTI_SORT,col:r}),n.close(),e.zw()}))},s=0;s<u.length;s++)a(s)},n.prototype.af=function(){var n,i,e,r,u;if(t.prototype.af.call(this),i=(n=this).Wc&&n.Wc[0])for(e=i.querySelectorAll(y),r=function(t){var n=e[t];x.forEach((function(t){(0,o.GC$)(n.parentElement).unbind(t),(0,o.GC$)(n).unbind(t)}))},u=0;u<e.length;u++)r(u)},n}(e.iut),n.TableSheetFilterDialog=A},9266:function(t,n,i){var e,o,r,u,c,a,s;Object.defineProperty(n,"__esModule",{value:!0}),n.rZe=void 0,e=i(1376),o=i(6114),r=i(1859),u=null,c=e.mt,a=c.En,s=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.eZe()},t.prototype.eZe=function(){var t,n,i=this,u=(0,e.GC$)(a("div"));return u.addClass("gc-defined-column-number-formatting-preview-container"),(t=i.HUe=new r.dZe({text:(0,o.getSR)().columnTypeNumberFormattingSample})).create().appendTo(u),(n=i.uZe=(0,e.GC$)(a("div"))).appendTo(u),n.addClass("gc-defined-column-number-formatting-preview-text"),u},t.prototype.setText=function(t){var n;this.uZe.text(t)},t.prototype.dispose=function(){var t=this;t.uZe=u,t.HUe.dispose(),t.HUe=u},t}(),n.rZe=s},9571:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h=this&&this.mJr||function(){return h=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},h.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.sto=n.CheckBoxTextAlign=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(6406),a=i(591),s=e.mt,l=s.En,function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.left=2]="left",t[t.right=3]="right"}(f=n.CheckBoxTextAlign||(n.CheckBoxTextAlign={})),d=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Qze=(0,e.GC$)(l("div"));return n.addClass("gc-defined-column-checkbox-text-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.Qze,i=t.LEt;return t._isThreeState=new r.Rze({label:{text:(0,o.getSR)().columnTypeCheckboxIsThreeState},onChange:function(n){var i,e,o,r;n?(null===(i=t.lto)||void 0===i?void 0:i.isVisible())||null===(e=t.lto)||void 0===e||e.resetVisible():(null===(o=t.lto)||void 0===o?void 0:o.isVisible())&&(null===(r=t.lto)||void 0===r||r.resetVisible()),t.fto()}}),t._isThreeState.create().appendTo(n),t._isThreeState.setValue(i.isThreeState),t.dto=new c.mZe({inputId:"checkboxTrue",label:{text:(0,o.getSR)().columnTypeCheckboxTrue},placeholder:"",onChange:function(n){t.fto()}}),t.dto.create().appendTo(n),t.dto.setValue(i.checkboxTrue),t.lto=new c.mZe({inputId:"checkboxIndeterminate",label:{text:(0,o.getSR)().columnTypeCheckboxIndeterminate},placeholder:"",hide:!i.isThreeState,onChange:function(n){t.fto()}}),t.lto.create().appendTo(n),t.lto.setValue(i.checkboxIndeterminate),t.hto=new c.mZe({inputId:"checkboxFalse",label:{text:(0,o.getSR)().columnTypeCheckboxFalse},placeholder:"",onChange:function(n){t.fto()}}),t.hto.create().appendTo(n),t.hto.setValue(i.checkboxFalse),t.gto=new u.Kze({inputId:"checkboxAlign",items:[{text:(0,o.getSR)().columnTypeCheckboxTextAlign.top,value:f.top},{text:(0,o.getSR)().columnTypeCheckboxTextAlign.bottom,value:f.bottom},{text:(0,o.getSR)().columnTypeCheckboxTextAlign.left,value:f.left},{text:(0,o.getSR)().columnTypeCheckboxTextAlign.right,value:f.right}],label:{text:(0,o.getSR)().columnTypeCheckboxAlign},onChange:function(){t.fto()}}),t.gto.create().appendTo(n),t.gto.setValue(i.checkboxAlign||f.right),n},t.prototype.fto=function(){var t,n,i,e,o,r=this;this.LEt.onChange({isThreeState:null===(t=r._isThreeState)||void 0===t?void 0:t.value,checkboxTrue:null===(n=r.dto)||void 0===n?void 0:n.value,checkboxIndeterminate:null===(i=r.lto)||void 0===i?void 0:i.value,checkboxFalse:null===(e=r.hto)||void 0===e?void 0:e.value,checkboxAlign:null===(o=r.gto)||void 0===o?void 0:o.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=h(h({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Qze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Qze=a.keyword_null},t.prototype.L0=function(){var t=this;t._isThreeState&&t._isThreeState.dispose(),t._isThreeState=a.keyword_null,t.dto&&t.dto.dispose(),t.dto=a.keyword_null,t.lto&&t.lto.dispose(),t.lto=a.keyword_null,t.hto&&t.hto.dispose(),t.hto=a.keyword_null,t.gto&&t.gto.dispose(),t.gto=a.keyword_null},t}(),n.sto=d},9756:function(t,n,i){var e,o,r,u;Object.defineProperty(n,"__esModule",{value:!0}),n.YUe=void 0,o=(e=i(1376)).mt,r=o.En,u=function(){function t(t){var n;this.itemContainers=[],this.LEt=t}return t.prototype.create=function(){var t=this,n=(0,e.GC$)(r("div"));return n.addClass("gc-defined-column-tab-list-container"),t.GUe().appendTo(n),t.eQe().appendTo(n),t.oQe().appendTo(n),n},t.prototype.GUe=function(){var t,n,i=this,o=i.LEt.items,u=(0,e.GC$)(r("div"));for(u.addClass("gc-defined-column-tab-list-items-container"),u.attr("role","tablist"),t=function(t){var n=o[t],c=(0,e.GC$)(r("div"));i.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-"+n.typeId),c.attr("aria-selected","false"),c.attr("aria-controls","gc-defined-column-tab-panel-"+n.typeId),c.text(n.title),0===t&&(c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected")),c.bind("click",(function(e){var o,r,u,a,s,l;if(!1!==i.itemContainers[t][2]){for(o=0,r=i.itemContainers;o<r.length;o++)a=(u=r[o])[0],s=u[1],a.attr("aria-selected","false"),a.removeClass("gc-defined-column-tab-item-container-selected"),s.removeClass("gc-defined-column-tab-panel-container-selected");c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected"),(l=i.itemContainers[t][1]).addClass("gc-defined-column-tab-panel-container-selected"),n.onSelect&&n.onSelect(n,e)}})),c.appendTo(u)},n=0;n<o.length;n++)t(n);return u},t.prototype.oQe=function(){var t,n,i,o=this,u=o.LEt.items,c=(0,e.GC$)(r("div"));for(c.addClass("gc-defined-column-tab-panels-container"),t=0;t<u.length;t++)n=u[t],i=(0,e.GC$)(r("div")),o.itemContainers[t][1]=i,i.addClass("gc-defined-column-tab-panel-container"),i.attr("role","tabpanel"),i.attr("id","gc-defined-column-tab-panel-"+n.typeId),i.attr("aria-labelledby","gc-defined-column-tab-"+n.typeId),0===t&&i.addClass("gc-defined-column-tab-panel-container-selected"),n.onInitPanel&&n.onInitPanel(i),i.appendTo(c);return c},t.prototype.eQe=function(){var t=(0,e.GC$)(r("div"));return t.addClass("gc-defined-column-tab-list-break-line"),t},t.prototype.isDisable=function(t){return!1===this.itemContainers[t][2]},t.prototype.resetDisable=function(t){var n=this,i=n.isDisable(t),e=n.itemContainers[t][0];n.itemContainers[t][2]=i,i?e.removeClass("gc-defined-column-disabled"):e.addClass("gc-defined-column-disabled"),e.attr("aria-disabled",i?"false":"true")},t.prototype.d5=function(){var t,n=this;for(t=0;t<n.LEt.items.length;t++)n.itemContainers[t]&&n.itemContainers[t][0].unbind("click");n.itemContainers=[]},t.prototype.dispose=function(){var t;this.d5()},t}(),n.YUe=u},9807:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.wto=void 0,e=i(1376),o=i(6114),r=i(7324),u=i(591),c=e.mt,a=c.En,s=function(){function t(t){var n;this.Cto=[],this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Tto=(0,e.GC$)(a("div"));return n.addClass("gc-defined-column-combo-box-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.Tto,i=t.LEt;return this.Cto=i.items||[],t.Ato=new r.Jze({label:{text:(0,o.getSR)().columnTypeComboBoxItems},showValue:!0,editable:!0,addAndRemoveButton:!0,items:this.Cto,onChange:function(){t.yto()}}),t.Ato.create().appendTo(n),t.yto(),n},t.prototype.yto=function(){var t=this;this.LEt.onChange({items:t.Cto})},t.prototype.setOptions=function(t){var n=this;n.LEt=l(l({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Tto.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Tto=u.keyword_null},t.prototype.L0=function(){var t=this;t.Ato&&t.Ato.dispose(),t.Ato=u.keyword_null},t}(),n.wto=s},9846:function(t,n,i){var e,o,r,u=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function c(t){return{barcodeType:r.QRCODE,value:a(t),backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:n.BarCode_DefaultValue_CODABAR,data_CODE39:n.BarCode_DefaultValue_CODE39,data_CODE49:n.BarCode_DefaultValue_CODE49,data_CODE93:n.BarCode_DefaultValue_CODE93,data_CODE128:n.BarCode_DefaultValue_CODE128,data_DATAMATRIX:n.BarCode_DefaultValue_DATAMATRIX,data_EAN8:n.BarCode_DefaultValue_EAN8,data_EAN13:n.BarCode_DefaultValue_EAN13,data_GS1_128:n.BarCode_DefaultValue_GS1_128,data_QRCODE:n.BarCode_DefaultValue_QRCODE,data_PDF417:n.BarCode_DefaultValue_PDF417}}function a(t){return t?t.indexOf(" ")>-1?"[@["+t+"]]":"[@"+t+"]":o.keyword_null}function s(t,n){var i,e,o=null===(i=t.NMi)||void 0===i?void 0:i.getDataView();if(o)try{return o.Ywt(n)}catch(t){}try{return(e=t.getCalcService()).parse(null,n,0,0)}catch(t){}}function l(t,n){var i,o,r=t.parent;try{if((i=s(t,n))&&i.type===e.ExpressionType.function&&(o=i.functionName)&&r.getSparklineEx(o))return i}catch(t){}return null}function f(t,i){var o,u,c,a,s,f,d,h,v,g,M,I,b,N,D,m,w=l(t,i);if(w&&w.arguments&&(o={barcodeType:r.QRCODE,value:"",backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:n.BarCode_DefaultValue_CODABAR,data_CODE39:n.BarCode_DefaultValue_CODE39,data_CODE49:n.BarCode_DefaultValue_CODE49,data_CODE93:n.BarCode_DefaultValue_CODE93,data_CODE128:n.BarCode_DefaultValue_CODE128,data_DATAMATRIX:n.BarCode_DefaultValue_DATAMATRIX,data_EAN8:n.BarCode_DefaultValue_EAN8,data_EAN13:n.BarCode_DefaultValue_EAN13,data_GS1_128:n.BarCode_DefaultValue_GS1_128,data_QRCODE:n.BarCode_DefaultValue_QRCODE,data_PDF417:n.BarCode_DefaultValue_PDF417},!((c=(u=w.arguments).length)<=0))){for(a=0;a<c;a++)u[a].type===e.ExpressionType.reference&&(s="",u[a]={value:"="+s,type:"referenceValue"});for(f=w.functionName.substr(3),o.barcodeType=r[f],o.value=u[0]&&u[0].value?u[0].value:"",o.color=u[1]&&u[1].value?u[1].value:o.color,o.backgroundColor=u[2]&&u[2].value?u[2].value:o.backgroundColor,o.quietZoneLeft=u[c-4]&&u[c-4].value?u[c-4].value:"",o.quietZoneRight=u[c-4]&&u[c-3].value?u[c-3].value:"",o.quietZoneTop=u[c-4]&&u[c-2].value?u[c-2].value:"",o.quietZoneBottom=u[c-4]&&u[c-1].value?u[c-1].value:"",d={},h=3,v=n.DefaultBarCodeTypeData[o.barcodeType],g=0,M=Object.keys(v);g<M.length;g++)I=M[g],N=void 0,N=(b=u[h])&&b.type!==e.ExpressionType.missingArgument?b.value:v[I],d[I]=N,h++;switch(o.barcodeType){case r.QRCODE:(D=d).version=""+D.version,D.mask=""+D.mask,o.data_QRCODE=D;break;case r.EAN13:o.data_EAN13=d;break;case r.EAN8:o.data_EAN8=d;break;case r.CODE39:o.data_CODE39=d;break;case r.CODE49:o.data_CODE49=d;break;case r.CODE93:o.data_CODE93=d;break;case r.CODE128:o.data_CODE128=d;break;case r.PDF417:(m=d).errorCorrectionLevel=""+m.errorCorrectionLevel,m.rows=""+m.rows,m.columns=""+m.columns,o.data_PDF417=m;break;case r.DATAMATRIX:o.data_DATAMATRIX=d;break;case r.GS1_128:o.data_GS1_128=d}return o}}function d(t,n){var i,e,o,u,c,a,s,l,f="",d=[],h=n.value||"";try{v(h)?(i=[]).length>0&&d.push(h.substr(1)):d.push(h)}catch(t){d.push('"'+h+'"')}switch(d.push('"'+n.color+'"'),d.push('"'+n.backgroundColor+'"'),e={},n.barcodeType){case r.QRCODE:e=n.data_QRCODE;break;case r.EAN13:e=n.data_EAN13;break;case r.EAN8:e=n.data_EAN8;break;case r.CODE39:e=n.data_CODE39;break;case r.CODE49:e=n.data_CODE49;break;case r.CODE93:e=n.data_CODE93;break;case r.CODE128:e=n.data_CODE128;break;case r.PDF417:e=n.data_PDF417;break;case r.DATAMATRIX:e=n.data_DATAMATRIX;break;case r.GS1_128:e=n.data_GS1_128;break;case r.CODABAR:e=n.data_CODABAR}for(o=!1===e.showLabel,u=0,c=Object.keys(e);u<c.length;u++)a=c[u],!o||"labelPosition"!==a&&"font"!==a.substr(0,4)?(s=String(e[a]),void 0===e[a]&&(s=""),/^[0-9]+.?[0-9]*$/.test(s)||null===s||""===s||"true"===s||"false"===s||-1!==s.indexOf("{")||(s='"'+s+'"'),d.push(s)):d.push("");return d.push(n.quietZoneLeft),d.push(n.quietZoneRight),d.push(n.quietZoneTop),d.push(n.quietZoneBottom),l=d.join(","),f+="=BC_"+n.barcodeType.toUpperCase(),f+="(",f+=l,f+=")"}function h(t,n,i){var e={text:"auto",value:"auto"},o={text:"0",value:"0"},r=Array.from({length:t},(function(t,n){return{text:(n+1).toString(),value:(n+1).toString()}})),c=u([],r,!0);return i&&c.unshift(o),n&&c.unshift(e),c}function v(t){return!(!t||"string"!=typeof t)&&"="===t.toString().charAt(0)}Object.defineProperty(n,"__esModule",{value:!0}),n.getItems=n.createBarcodeFormula=n.parseBarCodeOptions=n.getFieldRef=n.getDefaultBarcodeOptions=n.DefaultBarCodeTypeData=n.BarCode_DefaultValue_CODE128=n.BarCode_DefaultValue_CODE93=n.BarCode_DefaultValue_CODE39=n.BarCode_DefaultValue_CODABAR=n.BarCode_DefaultValue_CODE49=n.BarCode_DefaultValue_QRCODE=n.BarCode_DefaultValue_PDF417=n.BarCode_DefaultValue_GS1_128=n.BarCode_DefaultValue_EAN13=n.BarCode_DefaultValue_EAN8=n.BarCode_DefaultValue_DATAMATRIX=n.SANS_SERIF_FONT=n.BarCodeType=void 0,e=i(5035),o=i(591),function(t){t.QRCODE="QRCODE",t.EAN13="EAN13",t.EAN8="EAN8",t.CODABAR="CODABAR",t.CODE39="CODE39",t.CODE93="CODE93",t.CODE128="CODE128",t.GS1_128="GS1_128",t.CODE49="CODE49",t.PDF417="PDF417",t.DATAMATRIX="DATAMATRIX"}(r=n.BarCodeType||(n.BarCodeType={})),n.SANS_SERIF_FONT="sans-serif",n.BarCode_DefaultValue_DATAMATRIX={eccMode:"ECC000",ecc200SymbolSize:"",ecc200EncodingMode:"",ecc00_140Symbol:"",structureAppend:!1,structureNumber:0,fileIdentifier:0},n.BarCode_DefaultValue_EAN8={showLabel:!1,labelPosition:"top",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_EAN13={showLabel:!1,labelPosition:"top",addOn:"",addOnLabelPosition:"top",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_GS1_128={showLabel:!1,labelPosition:"top",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_PDF417={errorCorrectionLevel:"auto",rows:"auto",columns:"auto",compact:!1},n.BarCode_DefaultValue_QRCODE={errorCorrectionLevel:"L",model:2,version:"auto",mask:"auto",connection:!1,connectionNo:0,charCode:"",charset:"UTF-8"},n.BarCode_DefaultValue_CODE49={showLabel:!1,labelPosition:"top",grouping:!1,groupNo:"",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODABAR={showLabel:!1,labelPosition:"bottom",checkDigit:!1,nwRatio:3,fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODE39={showLabel:!1,labelPosition:"top",labelWithStartAndStopCharacter:!1,checkDigit:!1,nwRatio:3,fullASCII:!1,fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODE93={showLabel:!1,labelPosition:"top",checkDigit:!1,fullASCII:!1,fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODE128={showLabel:!1,labelPosition:"top",codeSet:"auto",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.DefaultBarCodeTypeData={QRCODE:n.BarCode_DefaultValue_QRCODE,EAN13:n.BarCode_DefaultValue_EAN13,EAN8:n.BarCode_DefaultValue_EAN8,CODABAR:n.BarCode_DefaultValue_CODABAR,CODE39:n.BarCode_DefaultValue_CODE39,CODE93:n.BarCode_DefaultValue_CODE93,CODE128:n.BarCode_DefaultValue_CODE128,GS1_128:n.BarCode_DefaultValue_GS1_128,CODE49:n.BarCode_DefaultValue_CODE49,PDF417:n.BarCode_DefaultValue_PDF417,DATAMATRIX:n.BarCode_DefaultValue_DATAMATRIX},n.getDefaultBarcodeOptions=c,n.getFieldRef=a,n.parseBarCodeOptions=f,n.createBarcodeFormula=d,n.getItems=h}},e={};function o(t){var n,r=e[t];return void 0!==r?r.exports:(n=e[t]={exports:{}},i[t].call(n.exports,n,n.exports,o),n.exports)}n=o(808),(((t=void 0===t?{}:t).Spread=t.Spread||{}).Sheets=t.Spread.Sheets||{}).TableSheet=n}(),t.Spread.Common.CultureManager.reloadResources&&t.Spread.Common.CultureManager.reloadResources("TableSheet")}));
|
|
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(t){!function(){"use strict";var n,i={117:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h=this&&this.mJr||function(){return h=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},h.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.YQe=n.AcceptExtensionsValueType=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(6018),a=i(591),s=e.mt,l=s.En,function(t){t.txt=".txt",t.all="",t.pdf=".pdf",t.image=".jpg, .png, .gif",t.excel=".xls, .xlsx, .ppt, .pptx, .doc, .docx"}(f=n.AcceptExtensionsValueType||(n.AcceptExtensionsValueType={})),d=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.WQe=(0,e.GC$)(l("div"));return n.addClass("gc-defined-column-attachment-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.WQe,i=t.LEt;return t.cb=new u.Kze({inputId:"attachment-file-type",items:[{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.all,value:f.all},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.txt,value:f.txt},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.image,value:f.image},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.pdf,value:f.pdf},{text:(0,o.getSR)().columnTypeAttachmentAcceptValueTypes.excel,value:f.excel}],label:{text:(0,o.getSR)().columnTypeAttachmentAccept},onChange:function(){t.JQe()}}),t.cb.create().appendTo(n),t.cb.setValue(i.fileType||""),t.XQe=new c.AZe({inputId:"attachment-size-limit",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentMaxSize},onChange:function(){t.JQe()}}),t.XQe.create().appendTo(n),t.XQe.setValue(i.maxSize||2048),t.KQe=new r.Rze({label:{text:(0,o.getSR)().columnTypeAttachmentIsPreviewEnabled},onChange:function(){t.JQe()}}),t.KQe.create().appendTo(n),t.KQe.setValue(!!i.preview||(0,a.isNullOrUndefined)(i.preview)),t.$Qe=new r.Rze({label:{text:(0,o.getSR)().columnTypeAttachmentIsDownloadEnabled},onChange:function(){t.JQe()}}),t.$Qe.create().appendTo(n),t.$Qe.setValue(!!i.download||(0,a.isNullOrUndefined)(i.download)),t.d5=new r.Rze({label:{text:(0,o.getSR)().columnTypeAttachmentIsClearEnabled},onChange:function(){t.JQe()}}),t.d5.create().appendTo(n),t.d5.setValue(!!i.clear||(0,a.isNullOrUndefined)(i.clear)),n},t.prototype.JQe=function(){var t,n,i,e,o,r=this;this.LEt.onChange({fileType:null===(t=r.cb)||void 0===t?void 0:t.value,maxSize:null===(n=r.XQe)||void 0===n?void 0:n.value,preview:null===(i=r.KQe)||void 0===i?void 0:i.value,download:null===(e=r.$Qe)||void 0===e?void 0:e.value,clear:null===(o=r.d5)||void 0===o?void 0:o.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=h(h({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.WQe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.WQe=a.keyword_null},t.prototype.L0=function(){var t=this;t.cb&&t.cb.dispose(),t.cb=a.keyword_null,t.XQe&&t.XQe.dispose(),t.XQe=a.keyword_null,t.KQe&&t.KQe.dispose(),t.KQe=a.keyword_null,t.$Qe&&t.$Qe.dispose(),t.$Qe=a.keyword_null,t.d5&&t.d5.dispose(),t.d5=a.keyword_null},t}(),n.YQe=d},419:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C=this&&this.vJr||(x=function(t,n){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},x(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}x(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),y=this&&this.mJr||function(){return y=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},y.apply(this,arguments)},x;function A(t){return t<=0?0:D*String(t).length}function T(t){return{field:t.rYt,ascending:t.ascending,compare:t.compareFunction}}function j(t){return{index:t.index,ascending:t.ascending,compareFunction:t.compare}}function p(t){var n,i,e,o=b(w);for(n=0,i=o;n<i.length;n++)e=i[n],w[e].call(t)}function z(t){var n=t.Mf;n.hA=o.ClipboardPasteOptions.values,n.lF=o.CopyToOptions.value,n.JT=!1,n.UB=!1}function L(t,n,i,e,r,u){var c,a,s,l,f,d,h,v,g,I,b,N=t.NMi;return N.isAlternatingRowStyleColumn(i)?(c=N.FDi(i),N&&(M(e)||e===o.SheetArea.viewport)&&!t.oNi&&!c&&n>=0&&i>=0&&(a=N.options.alternatingRowOptions)&&(s=a.step||[1,1],l=M(s[0])?1:s[0],f=M(s[1])?1:s[1],d=a.style,!M(d)&&l>=0&&f>=0&&l+f!==0&&(h=void 0,v=void 0,Array.isArray(d)?(h=d[0],v=d[1]):h=d,u=!0,g=l+f,b=void 0,(b=(I=Math.floor(n%g))<l?h:v)&&(r.h5(b,!1,45),(0,o.composeParentStyle)(b,r,t,!1,45,!0)))),u):u}function S(t,n,i,e,o,r,u){var c=(o=o||16)/16;t.save(),t.translate(n,i),e&&(t.translate(0,o),t.scale(1,-1)),t.scale(c,c),u=u||1.5,t.lineWidth=u/c,Math.abs(u-1)<.001&&t.translate(.5/c,.5/c),t.strokeStyle=r||"#666666",t.beginPath(),t.moveTo(3,2),t.lineTo(3,11),t.moveTo(1.5,9.5),t.lineTo(3,12.5),t.lineTo(4.5,9.5),t.stroke(),t.beginPath(),t.moveTo(6,3),t.lineTo(14,3),t.moveTo(6,6),t.lineTo(12,6),t.moveTo(6,9),t.lineTo(10,9),t.moveTo(6,12),t.lineTo(8,12),t.stroke(),t.restore()}function O(t,n,i,e){var o,r;if(!t)return N;for(o=0;o<t.length;o++)if((r=t[o]).row===n&&r.col===i&&r.sheetArea===e)return r;return N}Object.defineProperty(n,"__esModule",{value:!0}),n.overrideProperties=n.overrideMethods=n.ColumnHeaderStateRule=n.SR=void 0,e=i(7234),o=i(1376),r=i(8333),u=i(447),c=i(8301),a=i(1434),s=i(7929),l=i(7669),f=i(2221),d=i(4036),n.SR={en:c},h=new e.Common.ResourceManager(n.SR,"TableSheet"),v=h.getResource.bind(h),g=e.Common.lt,M=g.ht,I=g.q8,b=Object.keys,N=null,D=7,m=function(t){function n(n,i,e){var r=t.call(this,n,i,e,[new o.Range(-1,-1,-1,-1)])||this;return r.nT=o.SheetArea.colHeader,Object.defineProperty(r,"sheetArea",{get:function(){return r.nT}}),r}return C(n,t),n}(r.StateRule),n.ColumnHeaderStateRule=m,w={aL:function(){var t=this,n=t.Mf,i=new s.GroupHideRowFilter(new o.Range(-1,-1,-1,-1),this);i.filterDialogVisibleInfo({sortByValue:!0,sortByColor:!1,filterByColor:!1,filterByValue:!0,listFilterArea:!0}),n.rowFilter(i)},ROo:function(){var t=this;t.ROo=function(){var n,i,e,o=t.Mf,r=t.getDataView();r&&(i=null!==(n=r.kLt)&&void 0!==n?n:[],e=o.rowFilter(),i.map((function(n){var i=n.field,o=t.bze(i),r=j(y(y({},n),{index:o}));e.setSortInfo(r)})))}},OTi:function(){var t=this,n=t.Mf;n.sortRangeOriginal=n.sortRange,n.sortRange=function(i,e,o,r,u,c,a,s,l){var d,h,v,g=this,M=g.getDataSource();return!!M&&(h=(d=n.rowFilter()).Dze(),v=c.map((function(n){return d.setSortInfo(n),n.rYt=t.dDi(n.index),T(n)})),d.jFt()&&(v=d.sIo().map((function(n){return n.rYt=t.dDi(n.index),T(n)}))),M.sort(v),this.qni.addUndoChanges({type:f.TableSheetUndoType.SortMapChanged,oldData:h}),!0)},n.MIo=function(i,e){var o,r,u,c,a=this,s=a.getDataSource();return!(!s||!t.options.allowSorts)&&(t.bIo(),r=(o=n.rowFilter()).Dze(),o.addToMultiSort(i,e),c=(u=o.jFt()?o.sIo():o.lIo()).map((function(n){return n.rYt=t.dDi(n.index),T(n)})),s.sort(c),this.qni.addUndoChanges({type:f.TableSheetUndoType.SortMapChanged,oldData:r}),t.NIo(i),!0)},n.IIo=function(i){var e,o,r,u,c=this,a=c.getDataSource();return!(!a||!t.options.allowSorts)&&(t.bIo(),o=(e=n.rowFilter()).Dze(),e.removeFromMultiSort(i),u=(r=e.jFt()?e.sIo():e.lIo()).map((function(n){return n.rYt=t.dDi(n.index),T(n)})),a.sort(u),this.qni.addUndoChanges({type:f.TableSheetUndoType.SortMapChanged,oldData:o}),t.NIo(i),!0)},n.cAo=function(t,n,i){var e,o,r,u=this.NMi;if(!u||!u.options||!1===u.options.allowSorts)return!1;try{if((o=(e=u.getDataView())&&e.kve(n,!0))&&!1===o.allowSort)return!1}catch(t){}return!!((r=this.rowFilter())&&"function"==typeof r.oIo&&r.oIo()&&r.rn(t,n,i))&&0!==r.rIo(n)},n.fAo=function(t){var n,i,e=this.rowFilter();return e?(n=e.getMultiSortCount())<=1?18:16+A(i=e.getMultiSortSequence(t))+1+2:0}},ETi:function(){var t,n=this,i=this,e=i.Mf;e.onItemRemoved=function(t){this.zw()},e.onItemGotten=function(t,n,e){var o;return t&&t.isGroup&&!M(t.OFt)?i.keo()===u.GroupLayoutMode.tabular&&i.DMi(t.OFt,n)?e:N:i.VDi(n)?e:void 0},e.TF=function(){return n},e.hP=function(){var t=this.parent;return!t||t.getActiveSheetTab()===this.NMi},e.FT=function(){return v().Exp_InvalidOperationInProtectForTableSheet},M(e.UTi)&&(e.UTi=e.jT,e.jT=function(){var t,n,i=[];for(t=0;t<arguments.length;t++)i[t]=arguments[t];this.sw?(n=this.C6(this.sw.rowViewportIndex,this.sw.colViewportIndex))!==o.SheetArea.rowHeader&&n!==o.SheetArea.corner&&e.UTi.apply(e,i):e.UTi.apply(e,i)}),e.Ci=function(t,n,r){var u;return r===o.SheetArea.rowHeader&&i.CDi(t,n)?u=i.ODi(t):(u=e.CP(t,n,r),M(u)&&!M(t)&&r===o.SheetArea.rowHeader&&(u=e.CP(-1,n,r))),u},t=e.AO.bind(e),e.AO=function(){var n=i.getDataView(),e;return(n&&n.length()||0)>0?t():[]}},GTi:function(){var t=this,n=this.Mf;n.getCompositeStyle=function(i,e,r,u,c,a,s){var f,d,h,v,g,b,D,m;if(void 0===s&&(s={}),M(r)&&(r=3),d=this,h=new o.Style,v=!1,g=t.nIe(i,e,r),0!==r){if(v=d.IL(i,e,r,h,v,u),s.hasTableStyle)return h;v=d.xL(i,e,r,h,v,s.table,s.isForFilter),v=(f=d.NL(i,e,r,h,v,s.pivotTable,s.isForFilter,s.pivotTableStyle)).changed,h=f.destInfo,v=d.kL(i,r,h,v,c),(b=1===r&&i<n.Ut.getFreeAreaRowCount(r))||g||(v=d.DL(e,r,h,v,a)),D=I(s.rowSpacingIndex),g||D||(v=L(d,i,e,r,h,v))}return d._L(r,h,v,s.ignoreSheet),(0,l.setInsertedRowCrossStyle)(t,i,e,h,r),g&&(h.cellButtons=[],h.locked=!0),3===r&&t.iDi(i,e)&&(h.locked=!0),3!==r||!t.zDi(i)||M(a)||M(a.formatter)||(m=void 0,(m="string"==typeof a.formatter?a.formatter:a.formatter.formatCached)&&m.indexOf("=")>-1&&(h.formatter=N)),h}},l0t:function(){var t,n=this,i=n.Mf,e=i._1,r=e.getStateMethods;r[4]=function(t,i,e,r,u){if(e)return!1;if(u===o.SheetArea.colHeader){if(!(0,a.nMi)(this,t,i))return!1;var c=(0,l.getColumnInfo)(n,i);if(c)return c.readonly}return n.pNi(i)},r[1024]=function(t,n,e,r,u){return!e&&u===o.SheetArea.colHeader&&(!!(0,a.nMi)(this,t,n)&&n<i.frozenColumnCount())},r[2048]=function(t,i,e,r,u){if(e||u!==o.SheetArea.colHeader)return!1;if(!(0,a.nMi)(this,t,i))return!1;var c=(0,l.getColumnInfo)(n,i);return!!c&&c.isPrimaryKey},r[4096]=function(t,i,e,r,u){var c,s;return!e&&u===o.SheetArea.colHeader&&(!!(0,a.nMi)(this,t,i)&&(!!(c=(0,l.getColumnInfo)(n,i))&&((s=!(c.isPrimaryKey||c.readonly))&&c.required)))},r[o.RowColumnStates.dirty]=function(t,i,e){var o=n.getDataView();return!(!e||!o)&&(o.isUpdated(t)||o.isInserted(t))},r[o.RowColumnStates.inserted]=function(t){var i=n.getDataView();return i&&i.isInserted(t)},r[256]=function(t){var i=n.getDataView();return i&&i.isUpdated(t)},t=r[o.RowColumnStates.selected],r[o.RowColumnStates.selected]=function(i,o,r,u){if("function"==typeof t)return t.call(e.context,i,o,r,u)||n.aDi(i)}}},n.overrideMethods=p,n.overrideProperties=z,o.CellTypes.Base.ch("tableSheetSortIndicator",{beforePaintText:function(t){var n,i,e,r,u,c,a,s,l,f,h,v,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L=t.context.sheet,k=L.NMi;if(k&&k.options&&!1!==k.options.allowSorts&&!t.context.isPrinting){n=t.context.col;try{if((e=(i=k.getDataView())&&i.kve(n,!0))&&!1===e.allowSort)return}catch(t){}(r=L.rowFilter())&&"function"==typeof r.oIo&&r.oIo()&&(u=t.context.row,c=t.context.sheetArea,a=L,L.dataRanges&&c===o.SheetArea.viewport&&(s=L.dataRanges.getByPosition(u,n))&&(l=s.convertContext({sheet:L,row:u,col:n,sheetArea:c}))&&l.sheet!==L&&(a=l.sheet,u=l.row,n=l.col,c=l.sheetArea),(f=a.AO())&&(h=O(f,u,n,c))&&0!==(v=r.rIo(n))&&(g=t.ctx,M=t.rect,I=g.fillStyle,b=r.getMultiSortCount(),N=r.getMultiSortSequence(n),D=t.context.columnHeaderFitMode,m=t.context.cellRect||M,t.context.cornerX&&0!==D&&(w=t.context.cornerX-m.x),C=new d.rut(h.rowFilter,h.row,h.col,h.sheetArea,m.x,m.y,m.width,m.height),y=L.an(new o.Rect(C.x,C.y,C.width,C.height),h.sheetArea,{cellWidth:w,columnHeaderFitMode:D}),x=Math.min(y.height-2,16),j=(T=b>1&&N>0?A(N):0)>0?x+T+1:x,p=y.x-j-2,z=y.y+y.height-x-1,g.save(),g.rect(m.x,m.y,m.width,m.height),g.clip(),g.beginPath(),S(g,p,z,1===v,x,I),b>1&&N>0&&(g.font="10px "+t.style.fontFamily,g.fillStyle=I,g.textAlign="left",g.textBaseline="bottom",g.fillText(String(N),p+x+1,z+x)),g.restore()))}}})},447:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.CustomSheetTab=n.GroupLayoutMode=n.GroupOutlinePosition=n.TriggerWhenType=n.ColumnTypes=void 0,e=i(1376),o=e.util.Z0,r=e.util.V0,function(t){t.Number="Number",t.Text="Text",t.Formula="Formula",t.Checkbox="Checkbox",t.Date="Date",t.Currency="Currency",t.Percent="Percent",t.Phone="Phone",t.Email="Email",t.URL="URL",t.Lookup="Lookup",t.CreatedTime="CreatedTime",t.ModifiedTime="ModifiedTime",t.Attachment="Attachment",t.Select="Select",t.Barcode="Barcode"}(u=n.ColumnTypes||(n.ColumnTypes={})),function(t){t.onNew="onNew",t.onNewAndUpdate="onNewAndUpdate"}(c=n.TriggerWhenType||(n.TriggerWhenType={})),function(t){t[t.none=0]="none",t[t.groupCell=1]="groupCell",t[t.rowHeader=2]="rowHeader",t[t.groupCellAll=3]="groupCellAll"}(a=n.GroupOutlinePosition||(n.GroupOutlinePosition={})),function(t){t[t.tabular=0]="tabular",t[t.outline=1]="outline",t[t.condensed=2]="condensed"}(s=n.GroupLayoutMode||(n.GroupLayoutMode={})),l=function(){function t(t){this.Hc(t)}return t.prototype.Hc=function(t){this.Zc=t,this.jft=e.SheetTabVisible.visible,this._gi=e.SheetType.customSheetTab},t.prototype.hg=function(t){this.onSetHost(t)},t.prototype.onSetHost=function(t){},t.prototype.L0=function(t,n){this.onDispose(t,n)},t.prototype.onDispose=function(t,n){},t.prototype.Zg=function(t){},t.prototype.pM=function(t){this.parent=t},t.prototype.getParent=function(){return this.parent},t.prototype.name=function(t){if(0===arguments.length)return this.Zc;this.Zc=t},t.prototype.visible=function(t){if(0===arguments.length)return this.jft;this.jft=!0===t?e.SheetTabVisible.visible:!1===t?e.SheetTabVisible.hidden:t},t.prototype.b2=function(t,n){if(0===arguments.length)return this.ni;this.ni=t},t.prototype.ow=function(){},t.prototype.tw=function(){},t.prototype.aw=function(){},t.prototype.$C=function(t){},t.prototype.Wb=function(t,n){},t.prototype.Kb=function(t){},t.prototype.Fb=function(t,n){},t.prototype.onHorizontalDockScroll=function(t,n){},t.prototype.Gb=function(t){},t.prototype.WC=function(t,n,i){this.parent._hScrollbar.w4()},t.prototype.QC=function(t,n,i){this.parent._vScrollbar.w4()},t.prototype.Cg=function(){this.onDoResize()},t.prototype.onDoResize=function(){},t.prototype.suspendPaint=function(){},t.prototype.resumePaint=function(){},t.prototype.isPaintSuspended=function(){return!1},t.prototype.bind=function(t,n,i){},t.prototype.unbind=function(t,n){},t.prototype.unbindAll=function(){},t.prototype.D3=function(t,n,i){},t.prototype._3=function(t,n){},t.prototype.E3=function(){},t.prototype.suspendEvent=function(){},t.prototype.resumeEvent=function(){},t.prototype.isEventSuspended=function(){return!1},t.prototype.bC=function(){},t.prototype.ki=function(t,n,i){},t.prototype.isEditing=function(){return!1},t.prototype.ol=function(t,n,i,e){return!0},t.prototype.currentTheme=function(t){},t.prototype.FM=function(){},t.prototype.toJSON=function(t){},t.prototype.fromJSON=function(t,n,i,e,o){},t.prototype.uw=function(){return{top:0,left:0}},t.prototype.ot=function(){return new e.Rect(0,0,0,0)},t.prototype.hitTest=function(t,n,i,e){return null},t.prototype.e1e=function(){},t.prototype.parameter=function(t){var n,i,e,u;if(0===arguments.length){for(e in i={},n=this.o1e)n.hasOwnProperty(e)&&(i[e]=r(n[e]));return i}if(t){for(e in u={},t)t.hasOwnProperty(e)&&(u[e]=o(t[e]));this.o1e=u}},t}(),n.CustomSheetTab=l},591:function(t,n,i){var e,o,r,u;function c(t){return"boolean"==typeof t}function a(t){return"string"==typeof t}function s(t){return t&&"="===t[0]}function l(t){return t&&t.indexOf(".")>-1}function f(t){return"number"==typeof t}function d(t){return e.Common.ct.W0(t)}function h(t){return"function"==typeof t}function v(t,n){var i=t.get(0);M(i)?i.aer():i.dispatchEvent(new Event(n))}function g(t){return t&&t.indexOf("sjs-")>-1}function M(t){return g(t.nodeName.toLowerCase())}function I(t){var n=t.get(0);return M(n)?n.shadowRoot&&n.shadowRoot.querySelector("input"):n}function b(t,i){var e,r,u=(0,o.GC$)(t,i);return M(t)&&(u.bur=function(t){u.get(0).bur(t)},u.focus=function(){u.get(0).ZS()},u.setItems=function(t){t&&t.length>0&&u.attr("items",JSON.stringify(t));try{u.get(0).Cor(t)}catch(t){}},u.val=function(t){var i=u.get(0);if(!arguments.length)return i.Sl();try{!(0,n.isNullOrUndefined)(i.getAttribute("value"))||i.shadowRoot&&!(0,n.isNullOrUndefined)(i.shadowRoot.innerHTML)&&""!==i.shadowRoot.innerHTML?i.Kbt(t):i.y4=t}catch(t){}(0,n.isNullOrUndefined)(t)||i.setAttribute("value","string"==typeof t?t:""+t)},e=u.bind.bind(u),u.bind=function(t,i,o){void 0===o&&(o=i,i=n.keyword_undefined),"input"!==t?e(t,i,o):e(t="sjs-value-change",i,(function(t){var i=!1,e,r=!1;(0,n.isNullOrUndefined)(t.target)?(i=!0,t.target={value:t.detail}):t.target.value!==t.detail&&(r=!0,e=t.target.value,t.target.value=t.detail),o(t),r&&(t.target.value=e),i&&delete t.target}))},r=u.unbind.bind(u),u.unbind=function(t){"input"===t&&(t="sjs-value-change"),r(t)}),u}function N(t){return b(u(t))}function D(t){return w(t,!0)}function m(t){return w(t,!1)}function w(t,n){var i={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},e=new RegExp("(?:&|<|>|\"|'|`)","g"),o={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},r=new RegExp("(?:&|<|>|"|'|`)","g"),u=n?e:r,c=n?i:o;return u.test(t)?t.replace(u,(function(t){return c[t]})):t}Object.defineProperty(n,"__esModule",{value:!0}),n.dI=n.j0=n.createDCElement=n.DC$=n.getSJSInput=n.isSJSElem=n.isSJSComponent=n.triggerEvent=n.isFunction=n.isDate=n.isNumber=n.isRelation=n.isFormula=n.isString=n.isBoolean=n.keyword_undefined=n.keyword_null=n.cloneObject=n.isNullOrUndefined=n.DOCUMENT=void 0,e=i(7234),o=i(1376),n.DOCUMENT=document,r=e.Common.lt,u=o.mt.En,n.isNullOrUndefined=r.ht,n.cloneObject=r.tv,n.keyword_null=null,n.keyword_undefined=void 0,n.isBoolean=c,n.isString=a,n.isFormula=s,n.isRelation=l,n.isNumber=f,n.isDate=d,n.isFunction=h,n.triggerEvent=v,n.isSJSComponent=g,n.isSJSElem=M,n.getSJSInput=I,n.DC$=b,n.createDCElement=N,n.j0=D,n.dI=m},605:function(n){n.exports=t.Spread.Sheets.StatusBar},806:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M=this&&this.vJr||(b=function(t,n){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},b(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}b(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),I=this&&this.mJr||function(){return I=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},I.apply(this,arguments)},b;function N(t){return"number"==typeof t}function D(t){return"string"==typeof t}function m(t){return t instanceof Function}function w(t){return"object"==typeof t&&!a(t)}function C(t){return t instanceof Array}function y(t){return"boolean"==typeof t}function x(t){return D(t)?"ROWACTION_".concat(t):t}function A(t,n){w(n)?(t.imageType=n.imageType,t.imageSrc=n.imageSrc,t.imageSize=n.imageSize):(t.imageType=l,t.imageSrc=l,t.imageSize=l)}function T(t,n,i,e,r,u,c){var s=S(t,n,i,e,c);if(!a(s))return r[u]=new o.Rect(s.x,s.y,s.width,s.height),r[u].offsetX=s.x-c.x,r[u].offsetY=s.y-c.y,r[u]}function j(t,n,i,e,o,r){p(t,n.x,n.y,n.width,n.height,i,e,o,r)}function p(t,n,i,e,o,u,c,a,s){var l,f;t.save(),t.rect(n,i,e,o),t.clip(),t.beginPath(),(f=Q(u,(l=a.dataRange?a.dataRange.convertContext(a):a).row))&&z(t,u,n,i,e,o,f,a,s,r.middleCenter),t.restore()}function z(t,n,i,e,r,u,c,a,s,l){var f,d,h,g,M,I,b,N,D,m,w,C,y;t.save(),t.rect(i,e,r,u),t.clip(),t.beginPath(),(d=(f=a.sheet).BO()).getState(c)?d.qh(c)&&(h=f.zoom(),g=new o.Rect(i,e,r,u),M=Z(n),I=U(n),N=L(l,g,b=new o.Rect(0,0,M*h,I*h)),m=(D=d.getImage(c)).width,w=D.height,o.mt.Tt.msie&&n.imageType&&(n.imageType===o.ButtonImageType.custom?(v[c]||(D.style.position="absolute",D.style.left="-10000px",D.style.top="-100000px",document.body.appendChild(D),v[c]={width:D.width,height:D.height},document.body.removeChild(D)),m=v[c].width,w=v[c].height):(m=12,w=12)),s&&o.mt.Tt.msie&&N.x+N.width>s.x+s.width?(C=s.x+s.width-N.x)>0&&(y=m/(M*h),t.drawImage(D,0,0,C*y,w,N.x,N.y,C,I*h)):t.drawImage(D,0,0,m,w,N.x,N.y,M*h,I*h)):d.addImage(c,"anonymous"),t.restore()}function L(t,n,i){var e=Math.max(0,(n.width-i.width)/2),u=Math.max(0,(n.height-i.height)/2);return t===r.leftCenter&&(e=0),new o.Rect(n.x+e,n.y+u,Math.min(i.width,n.width),Math.min(i.height,n.height))}function S(t,n,i,e,r){if(!(t+i<r.x||t>r.x+r.width||n+e<r.y||n>r.y+r.height))return t+i>r.x+r.width&&(i=r.x+r.width-t),n+e>r.y+r.height&&(e=r.y+r.height-n),t<r.x&&(t=r.x),n<r.y&&(n=r.y),new o.Rect(t,n,i,e)}function O(t,n){return N(t)?{imageType:t,imageSize:k(n)}:D(t)?{imageType:o.ButtonImageType.custom,imageSrc:t,imageSize:k(n)}:l}function k(t){return N(t)?{width:t,height:t}:t}function E(t,n,i,e){var o,r;return void 0===e&&(e=!0),o=i.sheet.zoom(),a(t.width)?(r=Z(t),e?r*o:r):(r=f(1,t.width),isNaN(r)&&(r=1),e?r*o:r)}function Z(t){var n;return t.imageSize&&("string"==typeof t.imageSize.width&&(n=d(t.imageSize.width)),"number"==typeof t.imageSize.width&&(n=t.imageSize.width)),(n===s||isNaN(n)||n<0)&&(n=12),n}function U(t){var n;return t.imageSize&&("string"==typeof t.imageSize.height&&(n=d(t.imageSize.height)),"number"==typeof t.imageSize.height&&(n=t.imageSize.height)),(n===s||isNaN(n)||n<0)&&(n=12),n}function G(t,n,i,e,o){var r=t.Ut.getValueForKey(n,i,h,e);return a(r)&&B(t,n,i,e,r={layout:{}}),r}function B(t,n,i,e,o){t.Ut.setValueForKey(n,i,h,o,e)}function R(t,n,i,e,o){var r;delete G(n,i,e,o).layout[t]}function P(t,n,i){var e,o,r=n.BO();for(e=0;e<t.length;e++)D(o=Q(t[e].option,i))&&r.addImage(o,"anonymous")}function Q(t,n){var i,e,r=null,u=t.imageType;if(a(t.imageType))return null;switch(e=(i=Y(t.enabled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0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=":"data:image/svg+xml;PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJleHBhbmQiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiPgogICAgICAgIDxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMnB4IiBoZWlnaHQ9IjEycHgiIHJ4PSI0cHgiIHJ5PSI0cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7IGZpbGw6IG5vbmU7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjJweCIgeTE9IjZweCIgeDI9IjEwcHgiIHkyPSI2cHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICAgICAgPGxpbmUgeDE9IjZweCIgeTE9IjJweCIgeDI9IjZweCIgeTI9IjEwcHgiIHN0eWxlPSJzdHJva2U6ICNjYWNhY2E7IHN0cm9rZS13aWR0aDoxcHg7Ii8+CiAgICA8L3N2Zz4=";break;case o.ButtonImageType.custom:r=t.imageSrc}return r}function Y(t,n){return"function"==typeof t?t(n):t}Object.defineProperty(n,"__esModule",{value:!0}),n.paintImage=n.RowAction=n.ImagePosition=void 0,e=i(7234),o=i(1376),function(t){t[t.leftTop=0]="leftTop",t[t.leftCenter=1]="leftCenter",t[t.leftBottom=2]="leftBottom",t[t.middleTop=3]="middleTop",t[t.middleCenter=4]="middleCenter",t[t.middleBottom=5]="middleBottom",t[t.rightTop=6]="rightTop",t[t.rightCenter=7]="rightCenter",t[t.rightBottom=8]="rightBottom"}(r=n.ImagePosition||(n.ImagePosition={})),u=e.Common.lt,c=o.CellTypes.RowHeader,a=u.ht,s=null,l=void 0,f=Math.max,d=parseInt,h="rowActionParam",v={},g=function(t){function n(n,i){var e=t.call(this)||this;return e.Wgi=[],e.MU=n,e.DJ=i,e}return M(n,t),n.prototype.toJSON=function(){var n=t.prototype.toJSON.call(this);return delete n.MU,delete n.Wgi,delete n.DJ,n},n.prototype.build=function(t){this.Wgi=this.Hgi(t)},n.prototype.iIe=function(t,n){return t.NMi.tIe(n)?this.Wgi:[]},n.prototype.Hgi=function(t){var n=this,i=n.MU,e=n.MU.subActionOptions;return t=C(t.subActionOptions)?t.subActionOptions:[t],(C(e)?e:[i]).map((function(n,i){return I({rowActionOption:n,command:x(n.command),visible:!0},t[i])}))},n.prototype.Vgi=function(t,n){var i=-1;return y(t)?1===n.length?i=t?0:-1:n.length>1&&(i=t?1:0):N(t)&&(i=t),i},n.prototype.Fgi=function(t,n){var i=t.icons,e=void 0===i?[]:i,o=t.iconSelector,r=t.iLi,u=t.iconSize,c=this,a=c.DJ,s=c.Vgi(o?o(a.getDataItem(n),n,a):!r||r(l,n,a),e),f=e[s];return O(f,u)},n.prototype.Jgi=function(t){var n,i,e,o,r=this,u=t.dataRange?t.dataRange.convertContext(t):t,c=r.iIe(u.sheet,u.row),s=[];for(n=0;n<c.length;n++)e=(i=c[n]).visible,a(e)||m(e)&&e(u.row)||y(e)&&e?(o=r.Fgi(i.rowActionOption,u.row),a(o)?R(n,u.sheet,u.row,u.col,u.sheetArea):(s.push({index:n,width:0,option:i}),A(i,o))):R(n,u.sheet,u.row,u.col,u.sheetArea);return s},n.prototype.Xgi=function(t,n,i,e){var o,r,u=0;for(o=0;o<t.length;o++)r=E(t[o].option,i,e),t[o].width=r,u+=r;return n/2-u/2},n.prototype.Kgi=function(t,n,i,e,r,u,c,s){var l,f,d,h,v,g,M=this,I=s.sheet,b=s.row,N=s.col,D=s.sheetArea,m=new o.Rect(i,e,r,u),w=s.dataRange?s.dataRange.convertContext(s):s,C=M.Jgi(s);if(C.length>0){for(P(C,I,w.row),t.save(),t.rect(m.x,m.y,m.width,m.height),t.clip(),t.beginPath(),l=m.x+M.Xgi(C,m.width,c,s),d=(f=G(I,b,N,D)).layout,h=0;h<C.length;h++)v=C[h],g=T(l,m.y,v.width,m.height,d,v.index,m),a(g)||(j(t,g,v.option,c,s,f),l+=g.width);t.restore()}},n.prototype.paint=function(n,i,e,o,r,u,c,a){n&&(t.prototype.paint.call(this,n,i,e,o,r,u,c,a),this.Kgi(n,i,e,o,r,u,c,a))},n.prototype.getHitInfo=function(t,n,i,e,r){var u,c,a,s,l,f,d,h={x:t,y:n,row:r.row,col:r.col,cellRect:e,cellStyle:i,sheetArea:r.sheetArea,sheet:r.sheet,context:r,isRowAction:!0},v=r.dataRange?r.dataRange.convertContext(r):r,g=G(h.sheet,h.row,h.col,h.sheetArea,!0),M=this.iIe(v.sheet,v.row);if(!g||0===M.length)return null;for(l in u=g.layout,c=-1,a=h.x,s=h.y,u)if(u.hasOwnProperty(l)&&(f=void 0,d=u[l],(f=new o.Rect(e.x+d.offsetX,e.y+d.offsetY,d.width,d.height))&&f.contains(a,s))){c=+l;break}return-1!==c&&(h.actionHitInfo={index:c,option:M[c]}),h},n.prototype.processMouseUp=function(t){var n,i,e,r,u,c,l,f,d,h,v,g,M,I,b,N,w;return!!t&&(n=t.sheet,i=t.row,e=t.col,r=t.cellRect,u=t.sheetArea,c=t.actionHitInfo,f=(l=n.getSelections()).length>1||1===l.length&&l[0].rowCount>1,d=t.isShift,h=t.isCtrl,!(d||h||f||!(i===n.ui&&e===n.ci||u!==o.SheetArea.rowHeader||n.endEdit()))&&(g=(v=t.context.dataRange)?t.context.dataRange.convertContext(t.context):t.context,N=(M=this).MU,a(c)?(I=x(N.command),b=!0):(I=(w=c.option).command,b=Y(w.enabled,g.row)),!(!n||a(I)||!b&&!a(b))&&(n.getActiveRowIndex()===i&&n.getActiveColumnIndex()===e||n.eR(i,-1,1,-1,2),D(I)?n.getParent().commandManager().execute({cmd:I,row:g.row,col:g.col,sheetName:g.sheet.name(),sheetArea:g.sheetArea,isDataRange:v}):m(I)&&I.call(s,g.sheet,g.row,g.col,g.sheetArea),t.isReservedLocation=!0,n.repaint(r),!0)))},n.prototype.processMouseMove=function(t){var n,i,e,o,r,u,c,s;return!!t&&(n=this,i=t.actionHitInfo,o=n.MU,u=(r=t.context.dataRange?t.context.dataRange.convertContext(t.context):t.context).sheet.Ut.Ci(r.row,r.col,r.sheetArea),c=r.sheet.Ut.Ci(-1,r.col,r.sheetArea),!D(u)&&(e=a(i)?o.tooltip:(s=i.option).rowActionOption.tooltip,!(!r.sheet||e===c)&&(r.sheet.Ut.$n(-1,r.col,e,r.sheetArea),!0)))},n}(c),n.RowAction=g,n.paintImage=z},808:function(t,n,i){var e=this&&this.hJr||(Object.create?function(t,n,i,e){void 0===e&&(e=i);var o=Object.getOwnPropertyDescriptor(n,i);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(t,e,o)}:function(t,n,i,e){void 0===e&&(e=i),t[e]=n[i]}),o=this&&this.dJr||function(t,n){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(n,i)||e(n,t,i)};Object.defineProperty(n,"__esModule",{value:!0}),o(i(447),n),i(8680),i(4488),o(i(6277),n),i(6602),o(i(6114),n),o(i(2742),n),i(3889),i(1850),o(i(419),n),o(i(7621),n)},1090:function(t,n,i){var e,o,r,u,c,a,s=this&&this.vJr||(l=function(t,n){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},l(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}l(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),l;Object.defineProperty(n,"__esModule",{value:!0}),n.leo=void 0,e=i(1376),o=i(8057),r=i(9846),u=e.mt,c=u.En,a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.ZX=function(){var t,n,i=this,o=(0,e.GC$)(c("div"));return o.addClass("gc-defined-column-barcode-options-container"),t=[],i.ato(o,"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(i){var e=i.value;"ECC140"===e?(n.isDisable()&&n.resetDisable(),t.forEach((function(t){t.isDisable()||t.resetDisable()}))):"ECC200"===e?(t.forEach((function(t){t.isDisable()&&t.resetDisable()})),n.isDisable()||n.resetDisable()):(t.forEach((function(t){t.isDisable()||t.resetDisable()})),n.isDisable()||n.resetDisable())})),t.push(i.cto(o,"structureAppend",!1)),t.push(i.ato(o,"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)),t.push(i.ato(o,"structureNumber",(0,r.getItems)(15,!1,!0),!1)),t.push(i.ato(o,"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)),t.push(i.teo(o,"fileIdentifier",0,254,!1)),n=i.ato(o,"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),o},n}(o.Meo),n.leo=a},1163:function(t,n,i){var e,o,r,u,c,a,s,l,f,d;function h(t){var n,i=t.match(c);if(i&&i[0])return n=i[0],-1!==f.indexOf(n)?-1:parseInt(n.split("-")[1],16)}function v(t){return t.replace(c,(function(t,n){var i="[$";return n.length>0&&"-"!==n[0]&&(i+="$"),i+="-409]"}))}function g(t,n){if(!t)return t;var i=t.split(";");return(i=i.map((function(t,e){return 4===i.length&&2===e?t.replace(new RegExp("\\?{"+n+"}"),""):t.replace(u,"")}))).join(";")}function M(t){var n=e.Common.CultureManager.getCultureInfoDict(),i=(0,o.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,u=(0,o.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat,c={category:4,index:-1};if(t=t.replace(l,""),u.indexOf(t)>-1?(c.index=u.indexOf(t),c.locale="ja-jp",c.calendarType="JER",1===c.index&&(c.numberSystem=1)):i.indexOf(t)>-1?(c.index=i.indexOf(t),c.locale="ja-jp",c.calendarType="JER"):Object.keys(n).forEach((function(i){var e,o,u,s,l;if(!(c.index>-1)&&"invariant"!==i){if(e=i,o=t,!n[i].predefinedFormats||!n[i].predefinedFormats.Date){if(u=h(t),!(0,r.isNullOrUndefined)(u)&&u!==n[i].id)return;e=a,o=v(t)}(l=(s=n[e].predefinedFormats.Date).indexOf(o))>-1&&(c.index=l,c.locale=i,c.calendarType="western")}})),c.index>-1)return c}function I(t){var n=e.Common.CultureManager.getCultureInfoDict(),i={category:5,index:-1};if(Object.keys(n).forEach((function(e){var o,u,c,s,l;if(!(i.index>-1)&&"invariant"!==e){if(o=e,u=t,!n[e].predefinedFormats||!n[e].predefinedFormats.Time){if(c=h(t),!(0,r.isNullOrUndefined)(c)&&c!==n[e].id)return;o=a,u=v(t)}(l=(s=n[o].predefinedFormats.Time).indexOf(u))>-1&&(i.index=l,i.locale=e)}})),i.index>=0)return i}function b(t,n){var i,u=e.Common.CultureManager.getCultureInfoDict(),c={category:3,index:-1};if(t&&(i=g(t,n).replace(l,""),Object.keys(u).forEach((function(t,e){var s,l;if(!(c.index>-1)&&"invariant"!==t){if(s=t,!u[t].predefinedFormats||!u[t].predefinedFormats.Accounting&&!u[s].predefinedFormats.Comma){if(l=h(i),!(0,r.isNullOrUndefined)(l)&&l!==u[t].id)return;s=a,i=v(i)}g(u[s].predefinedFormats.Accounting,2)===i?(c.decimalPlaces=n,c.locale=t,c.index=e):g(u[s].predefinedFormats.Comma,2)===i&&(c.decimalPlaces=n,c.locale=(0,o.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],c.index=e)}}))),c.index>-1)return c}function N(t,n){var i,e,r;if(t&&(i=(0,o.getSR)().columnTypeNumberFormatting.percentageFormats,e=null,e=t,0!==n&&(r="\\"+t.substring(t.indexOf("."),t.indexOf(".")+n+1),e=t.replace(new RegExp(r,"g"),"")),e===i[0]))return{decimalPlaces:n,category:6,index:0}}function D(t,n){var i,e,r,u,c={category:1,index:-1};if(t)for(i=(0,o.getSR)().columnTypeNumberFormatting.numberCategoryFormats,e=t,0!==n&&(r="\\"+t.substring(t.indexOf("."),t.indexOf(".")+n+1),e=t.replace(new RegExp(r,"g"),"")),e=e.replace(l,""),u=0;u<i.length;u++)if(e===i[u])return c.decimalPlaces=n,-1!==t.indexOf("#,")&&(c.useThousand=!0),c.index=u%(i.length/2),c}function m(t,n){var i=e.Common.CultureManager.getCultureInfoDict(),c={category:2,index:-1},s=t;if(t&&(s=t.replace(u,"").replace(l,""),(0,o.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(s)>-1?(c.decimalPlaces=n,c.locale=(0,o.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],c.index=(0,o.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol.indexOf(s)):Object.keys(i).forEach((function(t){var e,o,l;if(!(c.index>-1)&&"invariant"!==t){if(e=i[t].predefinedFormats.Currency,!i[t].predefinedFormats||!i[t].predefinedFormats.Currency){if(o=h(s),!(0,r.isNullOrUndefined)(o)&&o!==i[t].id)return;s=v(s),e=i[a].predefinedFormats.Currency}if(e&&e.length>0){if(c.index>-1)return;(l=(e=e.map((function(t){return t.replace(u,"")}))).indexOf(s))>=0&&(c.decimalPlaces=n,c.locale=t,c.index=l)}}})),c.index>-1))return c}function w(t,n){var i="\u200e",e=n.id,o=d.hasOwnProperty(e);return t.replace(c,(function(t,e,r,u,c,a){var s="[$";return u.length>0&&"$"===u[0]&&(s+=n.NumberFormat.currencySymbol?n.NumberFormat.currencySymbol:"$"),s+=(o?i:"")+"-"+n.id.toString(16)+"]",o?e+r+c+s+a:e+r+s+c+a}))}function C(t,n){var i,r,u,c,a,s=e.Common.CultureManager.getCultureInfo(t);if(s)return!(r=(i=s.predefinedFormats&&s.predefinedFormats[n])instanceof Array)&&i||r&&i.length>0?i:(u=e.Common.CultureManager.culture(),(i=(a=(c=e.Common.CultureManager.getCultureInfo(u)).predefinedFormats)[n]||(0,o.getSR)().columnTypeNumberFormatting.commonFormats[n]&&(0,o.getSR)().columnTypeNumberFormatting.commonFormats[n].format)instanceof Array?i=i.map((function(t){var n=t.split(";");return(n=n.map((function(t){return w(t,s)}))).join(";")})):"object"==typeof i?{}:i.split(";").map((function(t){return w(t,s)})).join(";"))}function y(t){var n,i,e="";if(t)for(n=0;n<t.length;n++)t[n]&&(i=t[n].match(c))&&i[0]&&(e=i[0],t[n]=t[n].replace(c,"[$]"));return e}function x(t,n){var i,e;if(n)for(i=0;i<t.length;i++)t[i]&&(e=t[i].indexOf("[$]"))>-1&&(t[i]=t[i].slice(0,e)+n+t[i].slice(e+3))}function A(t,n){var i,o=e.Common.CultureManager.getCultureInfoDict(),r=[];return n&&(r=r.concat(n)),i=e.Common.CultureManager.culture(),Object.keys(o).sort((function(t,n){return t===i?-1:1})).forEach((function(n){if("invariant"!==n){var i=o[n];2===t||3===t?r.push({text:i.NumberFormat.currencySymbol+" "+i.displayName,value:n}):r.push({text:i.displayName,value:n})}})),r}function T(t){var n,i,e,o;if(!t||"General"===t)return{category:0,index:0};if("@"===t)return{category:9,index:0};if(n=M(t)||I(t))return n;if(i=0,t&&-1!==t.indexOf("."))for(o=(e=t.indexOf("."))+1;o<t.length&&"0"===t.substring(o,o+1);o++)i++;return(n=b(t,i)||N(t,i)||D(t,i)||m(t,i))||{category:11,index:0}}Object.defineProperty(n,"__esModule",{value:!0}),n.parseFormat=n.getListItems=n.afterAdjustFormatString=n.beforeAdjustFormatString=n.getPredefinedFormats=n.formatCategories=n.decimalPlacesWithZeroDotReg=void 0,e=i(7234),o=i(6114),r=i(591),u=/\.0*/g,n.decimalPlacesWithZeroDotReg=/(0)(\.?(0*)?)/g,c=/\[\$(.?-.*?)\]/g,a="en-us",l=new RegExp(s="\\\\","g"),f=["[$\u20ac-1]","[$\u20ac-2]"],n.formatCategories=["General","Number","Currency","Accounting","Date","Time","Percentage","Fraction","Scientific","Text","Special","Custom"],d={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},n.getPredefinedFormats=C,n.beforeAdjustFormatString=y,n.afterAdjustFormatString=x,n.getListItems=A,n.parseFormat=T},1376:function(n){n.exports=t.Spread.Sheets},1434:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z=this&&this.vJr||(G=function(t,n){return G=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},G(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}G(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),U=this&&this.mJr||function(){return U=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},U.apply(this,arguments)},G;function B(t){return void 0===t}function R(t,n){return d(t)&&(t=Number.MIN_VALUE),d(n)&&(n=Number.MIN_VALUE),l(t,n)}function P(t){return Q(t)||Y(t)}function Q(t){return t===o.GroupLayoutMode.outline}function Y(t){return t===o.GroupLayoutMode.condensed}function H(t,n){var i,e;return t?(e=t.headerStyle&&!!t.headerStyle.formatter,i=q(t.headerStyle,n),e||(i.formatter=a)):(i=n.clone()).formatter=a,i}function W(t,n){return t?q(t.style,n):n}function V(t){var n=new e.Style;return B(t.backColor)||(n.backColor=t.backColor),B(t.foreColor)||(n.foreColor=t.foreColor),B(t.font)||(n.font=t.font),B(t.themeFont)||(n.themeFont=t.themeFont),B(t.cellPadding)||(n.cellPadding=t.cellPadding),n}function F(t){return J(t.value,t.caption)}function J(t,n){return d(t)?a:n?"".concat(n).concat((0,c.getSR)().TextColon," ").concat(t):""+t}function _(t){return X(t.value,t.field)}function X(t,n){return d(t)?""+n:"".concat(n).concat((0,c.getSR)().TextColon," ").concat(t)}function K(t,n,i){var o;return B((o=t instanceof e.Style?t.clone():new e.Style(t)).foreColor)&&i&&!B(i.foreColor)&&(o.foreColor=i.foreColor),n&&o.v5(n),o}function q(t,n){if(t){var i=K(t);n&&i.compose(n),n=i}return n&&(delete n.cellButtons,delete n.dropDowns),n}function $(t,n){return t.hAlign===e.HorizontalAlign.general||d(t.hAlign)?n:t.hAlign}function tt(t,n,i){var e,o;for(o in t||(t={}),e=n[i])e.hasOwnProperty(o)&&d(t[o])&&(t[o]=U(U({},e[o]),{value:n.value}));return t}function nt(t,n,i){var e,o,r;for(o in t)t.hasOwnProperty(o)&&((r=t[o])[n]&&(e=tt(e,r,n)),i&&(e=tt(e,r)));return e}function it(t,n){var i,e,o,r,u,c;for(i in t)"parent"!==i&&"children"!==i&&(n[i]=t[i]);for(n.children=[],o=0,r=e=t.children;o<r.length;o++)u=r[o],c={},n.children.push(c),it(u,c)}function et(t){var n,i,e,o=t.children;for(n=0,i=o;n<i.length;n++)(e=i[n]).parent=t,et(e)}function ot(t,n){var i,e,o,r,u=!0,c=t.start===n.start&&t.end===n.end,a=t.children.length===n.children.length;if(c&&a)for(i=t.children.length,e=0;e<i&&!1!==(u=ot(o=t.children[e],r=n.children[e]));e++);else u=!1;return u}function rt(t){return t&&t.row&&"number"==typeof t.row&&t.row>0?t.row:a}function ut(t){var n,i,e,o=0,r=null===(e=null===(i=null===(n=null==t?void 0:t.cellNode)||void 0===n?void 0:n.field)||void 0===i?void 0:i.extra)||void 0===e?void 0:e.spacing;return r&&(o=rt(r)),o}function ct(t){if(t.dataRange)return t.dataRange.convertContext({sheet:t.sheet,row:t.row,col:t.col,sheetArea:t.sheetArea})}function at(t){return!d(t)&&""!==t}function st(t,n,i,e){return at(n)&&at(e)?"".concat(t," ").concat(n," | ").concat(i," ").concat(e):at(n)?"".concat(t," ").concat(n):at(e)?"".concat(i," ").concat(e):void 0}function lt(t,n,i){var o,r,u,c,a=t.getRowCount(e.SheetArea.colHeader);for(u=a-1;u>=0;u--)if(c=t.getValue(u,i,e.SheetArea.colHeader),d(o))o=c,r=u;else{if(o!==c)break;r=u}return n===r}Object.defineProperty(n,"__esModule",{value:!0}),n.Grouping=n.nMi=n.getHorizontalAlign=n.getGroupHeaderValueFromCondensed=n.getValueFromCondensed=n.composeValueStyle=n.composeHeaderStyle=n.isGroupCondensedLayout=n.isGroupOutlineLayout=n.isGroupOutlineCondensedLayout=void 0,e=i(1376),o=i(447),r=i(7234),u=i(8966),c=i(6114),a=void 0,s=Math.round,l=Math.max,f=Math.ceil,d=r.Common.lt.ht,h=e.I.fl,g=(v="gc-group")+"-box",M={position:"header"},n.isGroupOutlineCondensedLayout=P,n.isGroupOutlineLayout=Q,n.isGroupCondensedLayout=Y,n.composeHeaderStyle=H,n.composeValueStyle=W,n.getValueFromCondensed=F,n.getGroupHeaderValueFromCondensed=_,n.getHorizontalAlign=$,I=function(){function t(){}return t.prototype.Hc=function(t,n){var i={level:-1,collapsed:!1,children:[],parent:a,start:0,end:n},e=0,o=0;this.eMi(t,e,o,i),this.oMi&&this.wno(this.oMi,i),this.oMi=i},t.prototype.eMi=function(t,n,i,e){var o,r,u,c,a,s,l=e.children,f=t.childrenArray&&t.childrenArray[0]||[],d=0;for(o=0,r=f;o<r.length;o++)c=(u=r[o]).recordRowNumbers,u.childrenArray&&u.childrenArray[0]&&0!==u.childrenArray[0].length?u.childrenArray&&u.childrenArray[0]&&u.childrenArray[0].length&&(a={level:i,value:u.value,collapsed:!1,children:[],parent:e,start:n,end:0,spacingIndex:u.spacingIndex},s=this.eMi(u,n,i+1,a),a.end=n+s-1,l.push(a),n+=s,d+=s):(l.push({start:n,end:n+c.length-1,level:i,collapsed:!1,children:[],parent:e,spacingIndex:u.spacingIndex,value:u.value}),n+=c.length,d+=c.length);return d},t.prototype.wno=function(t,n){var i,e,o,r,u,c,a=t.children,s=n.children;for(i=0,e=s;i<e.length;i++)for(o=e[i],r=0,u=a;r<u.length;r++)if(c=u[r],o.value===c.value){o.collapsed=c.collapsed,this.wno(c,o);break}},t.prototype.uMi=function(t,n,i,e){for(var o=0;o<t.length;o++)if(t[o].field===n){this.cMi(this.oMi,o,i,e);break}},t.prototype.cMi=function(t,n,i,e){var o,r,u,c=t.children;for(o=0,r=c;o<r.length;o++)u=r[o],this.rMi(u,n,i,e)},t.prototype.rMi=function(t,n,i,e){var o,r,u,c,a;if(t.level===n)o=!i,t.collapsed!==o&&(t.collapsed=o,e&&e(t.level,t.start));else for(u=0,c=r=t.children;u<c.length;u++)a=c[u],this.rMi(a,n,i,e)},t.prototype.aMi=function(t,n,i,e){var o,r,u,c,a,s=this.oMi,l=!i;if(s&&s.start<=n&&n<=s.end)for(o=s.children;o.length>0;){for(r=!0,u=0,c=o;u<c.length;u++)if((a=c[u]).start<=n&&n<=a.end){if(a.level===t)return a.collapsed!==l&&e(!a.collapsed),void(a.collapsed=l);o=a.children,r=!1;break}if(r)break}},t.prototype.Xto=function(t){for(t=t.parent;t;){if(t.collapsed)return!0;t=t.parent}return!1},t.prototype.sMi=function(t,n,i,e,o){var r,u,c,a,s,l,f,d=-1,h=this.oMi,v="number"==typeof e;if(h&&h.start+i<=t&&t<=h.end){if(r=h.collapsed,v&&!o&&(r=h.spacingIndex===e&&h.parent&&this.Xto(h)),d<n&&r)return!1;for(u=h.children,d++;u.length>0;){for(c=!0,a=0,s=u;a<s.length;a++)if((l=s[a]).start+i<=t&&t<=l.end){if(f=l.collapsed,v&&!o&&(f=l.spacingIndex===e&&l.parent&&this.Xto(l)),d<n&&f)return!1;u=l.children,d++,c=!1;break}if(c)break}}return!0},t.prototype.MMi=function(t){var n,i,e,o,r,u=[],c=this.oMi;if(c&&c.start<=t&&t<=c.end)for(n=c.children;n.length>0;){for(i=!0,e=0,o=n;e<o.length;e++)if((r=o[e]).start<=t&&t<=r.end){u.push(r),n=r.children,i=!1;break}if(i)break}return u},t.prototype.IMi=function(t,n){var i,e,o,r,u,c=this.oMi;if(c&&c.start<=t&&t<=c.end)for(i=c.children;i.length>0;){for(e=!0,o=0,r=i;o<r.length;o++)if((u=r[o]).start<=t&&t<=u.end){if(u.level===n)return u;i=u.children,e=!1;break}if(e)break}},t.prototype.gMi=function(t){var n,i,e,o,r,u,c,a,s,l,f,d=this.oMi;if(!d)return!1;for(n=d.children.slice(0),i=0;i<t;){for(e=[],o=0,r=n;o<r.length;o++)for(c=0,a=(u=r[o]).children;c<a.length;c++)s=a[c],e.push(s);n=e,i++}for(l=0,f=n;l<f.length;l++)if(!(u=f[l]).collapsed)return!1;return!0},t.prototype.L0=function(){this.oMi=a},t.prototype.toJSON=function(){if(this.oMi){var t={};return it(this.oMi,t),t}return this.oMi},t.prototype.fromJSON=function(t,n){var i=this.oMi;(n||i&&t&&ot(this.oMi,t))&&(et(t),this.oMi=t)},t}(),b=40,D=(N=16)/4,m=2.5,w=2.5,C=5,y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Z(n,t),n.prototype.paint=function(n,i,e,o,r,u,c,l){var f,d,v,M,I,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,Q=l.sheet,Y=l.row;if(l.dataRange&&(f=ct(l))&&(Q=f.sheet,Y=f.row),d=l.sheet.zoom(),v=N*d,M=D*d,I=m*d,w=Q.NMi)for(C=l.visualState,l.visualState=a,this.wm(n,e,o,r,u,c,l),l.visualState=C,A=!(x=P(y=w.keo())),j=(T=w.MMi(Y)).length,p=(b*j-N*j)/(j+1)*d,t.prototype.paintValue.call(this,n,i,e,o,r,u,c,l),z=0;z<j;z++)L=T[z],(z!==w.lMi.length-1||w.detailColumnsVisible())&&w.DMi(z,Y)&&(n.save(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,O=(S=e+p)+v/2,k=o+u,E=o+u/2,(Z=L.start===Y)&&A?(U=s(S)-.5,G=s(S+v)-.5,B=s(E-v/2)-.5,R=s(E-v/2+v)-.5,n.moveTo(U,B),n.lineTo(G,B),n.lineTo(G,R),n.lineTo(U,R),n.lineTo(U,B),n.moveTo(s(O-M)-.5,s(E)-.5),n.lineTo(s(O+M)-.5,s(E)-.5),L.collapsed?(n.moveTo(s(O)-.5,s(E-M)-.5),n.lineTo(s(O)-.5,s(E+M)-.5)):(n.moveTo(s(O)-.5,s(E+v/2)-.5),n.lineTo(s(O)-.5,s(k)-.5))):L.start<Y&&Y<L.end||Z&&x||L.end===Y&&this.Eeo(Q,Y,z)?(n.moveTo(s(O)-.5,s(o)-.5),n.lineTo(s(O)-.5,s(k)-.5)):L.end===Y&&(n.moveTo(s(O)-.5,s(o)-.5),n.lineTo(s(O)-.5,s(k-I)-.5),n.lineTo(s(O+M)-.5,s(k-I)-.5)),n.stroke(),n.restore(),e+=p+v)},n.prototype.fMi=function(t,n,i,e,o,r){var u,c,l,f,d,h,v,g,M,I,D,m,w,C=t.x,y=r.sheet.zoom(),x=N*y,A=e.NMi;if(A){if(c=P(u=A.keo()))return a;for(f=(l=A.MMi(o)).length,d=(b*f-N*f)/(f+1)*y,h=0;h<f;h++)if(v=l[h],(h!==A.lMi.length-1||A.detailColumnsVisible())&&A.DMi(h,o)){if(g=C+d,M=t.y+t.height/2,v.start===o&&(I=s(g)-.5,D=s(g+x)-.5,m=s(M-x/2)-.5,w=s(M-x/2+x)-.5,I<=n&&n<=D&&m<=i&&i<=w))return{level:h,index:o,collapsed:v.collapsed};C+=d+x}}},n.prototype.getHitInfo=function(t,n,i,e,o){var r,u,c,a,s,l;if(o&&(r=o.sheet,u=o.row,c=o.col,a=o.sheetArea,o.dataRange&&(s=ct(o))&&(r=s.sheet,u=s.row,c=s.col,a=s.sheetArea),2===a&&(l=this.fMi(e,t,n,r,u,o))))return{x:t,y:n,row:u,col:c,cellRect:e,sheetArea:2,isReservedLocation:!0,sheet:r,level:l.level,index:l.index,collapsed:l.collapsed}},n.prototype.processMouseDown=function(t){var n,i,e,o;return!(!t||!(n=t.sheet.NMi))&&(i=t.level,e=t.index,o=t.collapsed,n.zA({cmd:u.EXPAND_GROUP_ITEM,level:i,index:e,expand:o}),!0)},n.prototype.Eeo=function(t,n,i,e){void 0===e&&(e=0);var o=t.ncr&&t.ncr(n,e,-1,!0);return!(!o||o.isSpacing)&&i<=o.level},n.prototype.Zeo=function(t,n,i,e,o){var r,u=this;return!!o&&((r=function(e){return u.Eeo(t,n,i,e)})(e)&&r(e+1))},n}(e.CellTypes.RowHeader),x=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Z(n,t),n.prototype.paint=function(n,i,e,o,r,u,c,l){var f,d,v,M,I,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P=l.row,Q=l.sheet,Y=l.rowSpacingIndex,H=l.isAfterRowSpacing;if(l.dataRange&&(f=ct(l))&&(Q=f.sheet,P=f.row,Y=f.rowSpacingIndex,H=f.isAfterRowSpacing),d=l.sheet.zoom(),v=N*d,M=D*d,I=m*d,w=Q.NMi){if(C=l.visualState,l.visualState=a,this.wm(n,e,o,r,u,c,l),l.visualState=C,y=!H,!(x=Q.ncr&&Q.ncr(P,Y,-1,H)))return;for(A=x.level,T=x.isSpacing,p=(j=w.MMi(P)).length,z=(b*p-N*p)/(p+1)*d,t.prototype.paintValue.call(this,n,i,e,o,r,u,c,l),L=0;L<p;L++)L>A||(S=j[L],(L!==w.lMi.length-1||w.detailColumnsVisible())&&w.DMi(L,P)&&(n.save(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,k=(O=e+z)+v/2,E=o+u,Z=o+u/2,S.start===P&&L===A&&y?(U=s(O)-.5,G=s(O+v)-.5,B=s(Z-v/2)-.5,R=s(Z-v/2+v)-.5,n.moveTo(U,B),n.lineTo(G,B),n.lineTo(G,R),n.lineTo(U,R),n.lineTo(U,B),n.moveTo(s(k-M)-.5,s(Z)-.5),n.lineTo(s(k+M)-.5,s(Z)-.5),S.collapsed?(n.moveTo(s(k)-.5,s(Z-M)-.5),n.lineTo(s(k)-.5,s(Z+M)-.5)):(n.moveTo(s(k)-.5,s(Z+v/2)-.5),n.lineTo(s(k)-.5,s(E)-.5))):S.start<P&&P<S.end||L<A&&(y||this.Zeo(Q,P,L,Y,H))?(n.moveTo(s(k)-.5,s(o)-.5),n.lineTo(s(k)-.5,s(E)-.5)):S.end!==P||T||(n.moveTo(s(k)-.5,s(o)-.5),n.lineTo(s(k)-.5,s(E-I)-.5),n.lineTo(s(k+M)-.5,s(E-I)-.5)),n.stroke(),n.restore(),e+=z+v))}},n.prototype.fMi=function(t,n,i,e,o,r){var u,c,a,l,f,d,h,v,g,M,I,D,m,w,C,y,x,A=t.x,T=r.sheet.zoom(),j=N*T,p=e.NMi;if(p){if(u=r.rowSpacingIndex,c=r.isAfterRowSpacing,r.dataRange&&(a=ct(r))&&(u=a.rowSpacingIndex,c=a.isAfterRowSpacing),l=!c,!(f=e.ncr&&e.ncr(o,u,-1)))return;for(d=f.level,v=(h=p.MMi(o)).length,g=(b*v-N*v)/(v+1)*T,M=0;M<v;M++)if(!(M>d&&l)&&(I=h[M],(M!==p.lMi.length-1||p.detailColumnsVisible())&&p.DMi(M,o))){if(D=A+g,m=t.y+t.height/2,I.start===o&&M===d&&l&&(w=s(D)-.5,C=s(D+j)-.5,y=s(m-j/2)-.5,x=s(m-j/2+j)-.5,w<=n&&n<=C&&y<=i&&i<=x))return{level:M,index:o,collapsed:I.collapsed};A+=g+j}}},n}(y),A=2.5,n.nMi=lt,T=function(t){function n(n){var i=t.call(this)||this;return i.Tno=n,i.typeName="98",i}return Z(n,t),n.prototype.dMi=function(t,n){for(var i=0;i<n;i++)if(t.gMi(i))return!1;return!0},n.prototype.Sno=function(t,n,i,e,o,r){var u,c,a,s,l,f,d=o.sheet;return o.dataRange&&(u=ct(o))&&(d=u.sheet),c=o.sheet.zoom(),a=(N+2*w)*c,s=parseFloat(d.getDefaultStyle().cellPadding)*c,{x:l=r?t-a+s:t+a,y:n,w:f=i-a,h:e}},n.prototype.paint=function(n,i,e,o,r,u,c,a){if(t.prototype.paint.call(this,n,i,e,o,r,u,c,a),this.Tno){var s=this.Sno(e,o,r,u,a);this.Tno.paint(n,i,s.x,s.y,s.w,s.h,c,a)}},n.prototype.paintContent=function(n,i,e,r,u,c,a,l){var f,d,v,M,I,b,m,w,C,y,x,T,j,p,z,L,S,O,k,E=l.sheet,Z=l.row,U=l.col;l.dataRange&&(f=ct(l))&&(E=f.sheet,Z=f.row,U=f.col),d=l.sheet.zoom(),v=this.Sno(e,r,u,c,l),this.Tno||t.prototype.paintContent.call(this,n,i,v.x,v.y,v.w,v.h,a,l),M=N*d,I=D*d,b=E.NMi,m=E.getDataSource(),b&&b.lMi&&b.lMi.length>0&&m&<(E,Z,U)&&((w=b.groupOutlinePosition())!==o.GroupOutlinePosition.groupCell&&w!==o.GroupOutlinePosition.groupCellAll||!(y=(C=m.kve(U).OFt)===b.lMi.length-1&&!b.detailColumnsVisible())&&this.dMi(b,C)&&(x=b.gMi(C),T=A*d,n.save(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,p=(j=e+T)+M/2,z=r+c/2,L=s(j)-.5,S=s(j+M)-.5,O=s(z-M/2)-.5,k=s(z-M/2+M)-.5,n.moveTo(L,O),n.lineTo(S,O),n.lineTo(S,k),n.lineTo(L,k),n.lineTo(L,O),n.moveTo(s(p-I)-.5,s(z)-.5),n.lineTo(s(p+I)-.5,s(z)-.5),x&&(n.moveTo(s(p)-.5,s(z-I)-.5),n.lineTo(s(p)-.5,s(z+I)-.5)),n.stroke(),n.restore()))},n.prototype.fMi=function(t,n,i,e,r,u,c){var a,l,f,d,h,v,g,M,I,b,D,m,w=t.x,C=c.sheet.zoom(),y=N*C,x=e.NMi,T=e.getDataSource();if(x&&T&<(e,r,u)&&((a=x.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||a===o.GroupOutlinePosition.groupCellAll)&&!(f=(l=T.kve(u).OFt)===x.lMi.length-1&&!x.detailColumnsVisible())&&this.dMi(x,l)&&(d=x.lMi[l].field,h=x.gMi(l),g=w+(v=A*C),M=t.y+t.height/2,I=s(g)-.5,b=s(g+y)-.5,D=s(M-y/2)-.5,m=s(M-y/2+y)-.5,I<=n&&n<=b&&D<=i&&i<=m))return{field:d,level:l,collapsed:h}},n.prototype.getHitInfo=function(t,n,i,e,o){var r,u,c,s,l,f,d,h;if(o&&(r=o.sheet,u=o.row,c=o.col,s=o.sheetArea,o.dataRange&&(l=ct(o))&&(r=l.sheet,u=l.row,c=l.col,s=l.sheetArea),1===s)){if(e=this.An(e,i,o.sheet.zoom()),f=this.fMi(e,t,n,r,u,c,o))return{x:t,y:n,row:u,col:c,cellRect:e,sheetArea:1,isReservedLocation:!0,sheet:r,field:f.field,level:f.level,collapsed:f.collapsed};if(this.Tno&&(d=this.Sno(t,n,a,a,o,!0),h=this.Tno.getHitInfo&&this.Tno.getHitInfo(d.x,n,i,e,o)))return h.Drt=!0,h}},n.prototype.processMouseDown=function(t){var n,i,e;if(t&&(n=t.sheet.NMi)){if(!t.Drt)return i=t.field,e=t.collapsed,n.zA({cmd:u.EXPAND_GROUP,field:i,expand:e}),!0;if(this.Tno)return this.Tno.processMouseDown&&this.Tno.processMouseDown(t)}return!1},n.prototype.processMouseUp=function(t){return!!this.Tno&&(this.Tno.processMouseUp&&this.Tno.processMouseUp(t))},n.prototype.processMouseMove=function(t){return!!this.Tno&&(this.Tno.processMouseMove&&this.Tno.processMouseMove(t))},n.prototype.processMouseEnter=function(t){return!!this.Tno&&(this.Tno.processMouseEnter&&this.Tno.processMouseEnter(t))},n.prototype.processMouseLeave=function(t){return!!this.Tno&&(this.Tno.processMouseLeave&&this.Tno.processMouseLeave(t))},n.prototype.isReservedKey=function(t,n){return!!this.Tno&&(this.Tno.isReservedKey&&this.Tno.isReservedKey(t,n))},n.prototype.processKeyDown=function(t,n){return!!this.Tno&&(this.Tno.processKeyDown&&this.Tno.processKeyDown(t,n))},n.prototype.processKeyUp=function(t,n){return!!this.Tno&&(this.Tno.processKeyUp&&this.Tno.processKeyUp(t,n))},n.prototype.getAutoFitWidth=function(n,i,e,o,r){var u;return u=this.Tno&&this.Tno.getAutoFitWidth?this.Tno.getAutoFitWidth(n,i,e,o,r):t.prototype.getAutoFitHeight.call(this,n,i,e,o,r)},n.prototype.format=function(n,i,e,o){return this.Tno&&this.Tno.format?this.Tno.format(n,i,e,o):t.prototype.format.call(this,n,i,e,o)},n}(e.CellTypes.ColumnHeader),e.CellTypes.ti[98]=T,p=function(t){function n(n){var i=t.call(this)||this;return i.Tno=n,i}return Z(n,t),n.prototype.Sno=function(t,n,i,e,o,r){var u,c,a,s,l,f,d,h,v,g,M=o.sheet,I=o.row,b=o.col,D=o.rowSpacingIndex;return o.dataRange&&(u=ct(o))&&(M=u.sheet,I=u.row,b=u.col,D=u.rowSpacingIndex),c=o.sheet.zoom(),a=(N+2*w)*c,s=parseFloat(M.getDefaultStyle().cellPadding)*c,v=r?t-a+s:t+a,(d=P(f=(l=M.NMi).keo()))&&l.Mf.ncr&&(h=l.Mf.ncr(I,D,b),v=r?t-a*(h+1)+s:t+a*(h+1)),{x:v,y:n,w:g=i-a,h:e}},n.prototype.getHitInfo=function(t,n,i,e,o){var r,u,c,s,l,f,h,v,g,M;if(o&&(r=o.sheet,u=o.row,c=o.col,s=o.sheetArea,l=o.rowSpacingIndex,f=o.isAfterRowSpacing,o.dataRange&&(h=ct(o))&&(r=h.sheet,u=h.row,c=h.col,l=h.rowSpacingIndex,f=h.isAfterRowSpacing),3===s||d(s))){if(e=this.An(e,i,o.sheet.zoom()),v=this.fMi(e,t,n,r,u,c,l,o))return{x:t,y:n,row:u,col:c,cellRect:e,sheetArea:3,isReservedLocation:!0,sheet:r,level:v.level,index:v.index,collapsed:v.collapsed,rowSpacingIndex:l,isAfterRowSpacing:f};if(this.Tno&&(g=this.Sno(t,n,a,a,o,!0),M=this.Tno.getHitInfo&&this.Tno.getHitInfo(g.x,n,i,e,o)))return M.Drt=!0,M}},n.prototype.processMouseDown=function(t){var n,i,e,o;if(t&&(n=t.sheet.NMi)){if(!t.Drt)return i=t.level,e=t.index,o=t.collapsed,n.zA({cmd:u.EXPAND_GROUP_ITEM,level:i,index:e,expand:o}),!0;if(this.Tno)return this.Tno.processMouseDown&&this.Tno.processMouseDown(t)}return!1},n}(j=function(t){function n(n){var i=t.call(this)||this;return i.Tno=n,i}return Z(n,t),n.prototype.Sno=function(t,n,i,e,o,r){return{x:t,y:n,w:i,h:e}},n.prototype.paint=function(n,i,o,r,u,c,a,s){var l,f;t.prototype.paint.call(this,n,i,o,r,u,c,a,s),this.Tno&&(this.Tn&&this.An&&(l=new e.Rect(o,r,u,c),o=(l=this.An(l,a,(0,e.isPrintZoomFactorExist)(s)?s.printZoomFactor:s.sheet.zoom())).x,u=l.width),f=this.Sno(o,r,u,c,s),this.Tno.paint(n,i,f.x,f.y,f.w,f.h,a,s))},n.prototype.processMouseDown=function(t){return!!this.Tno&&(this.Tno.processMouseDown&&this.Tno.processMouseDown(t))},n.prototype.processMouseUp=function(t){return!!this.Tno&&(this.Tno.processMouseUp&&this.Tno.processMouseUp(t))},n.prototype.processMouseMove=function(t){return!!this.Tno&&(this.Tno.processMouseMove&&this.Tno.processMouseMove(t))},n.prototype.processMouseEnter=function(t){return!!this.Tno&&(this.Tno.processMouseEnter&&this.Tno.processMouseEnter(t))},n.prototype.processMouseLeave=function(t){return!!this.Tno&&(this.Tno.processMouseLeave&&this.Tno.processMouseLeave(t))},n.prototype.isReservedKey=function(t,n){return!!this.Tno&&(this.Tno.isReservedKey&&this.Tno.isReservedKey(t,n))},n.prototype.processKeyDown=function(t,n){return!!this.Tno&&(this.Tno.processKeyDown&&this.Tno.processKeyDown(t,n))},n.prototype.processKeyUp=function(t,n){return!!this.Tno&&(this.Tno.processKeyUp&&this.Tno.processKeyUp(t,n))},n.prototype.getAutoFitWidth=function(n,i,e,o,r){var u;return u=this.Tno&&this.Tno.getAutoFitWidth?this.Tno.getAutoFitWidth(n,i,e,o,r):t.prototype.getAutoFitHeight.call(this,n,i,e,o,r)},n.prototype.format=function(n,i,e,o){return this.Tno&&this.Tno.format?this.Tno.format(n,i,e,o):t.prototype.format.call(this,n,i,e,o)},n}(e.CellTypes.Text)),z=function(t){function n(n){var i=t.call(this,n)||this;return i.typeName="99",i}return Z(n,t),n.prototype.Ueo=function(t,n,i,e,r){return!!n&&(t.keo()===o.GroupLayoutMode.tabular?n.start===i:!("number"!=typeof r||!t.Mf.ncr)&&"number"==typeof t.Mf.ncr(i,r,e));var u},n.prototype.paintValue=function(n,i,e,r,u,c,a,l){var f,v,M,I,b,m,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,Q,Y,H,W,V=l.sheet,F=l.row,J=l.col;l.dataRange&&(f=ct(l))&&(V=f.sheet,F=f.row,J=f.col),v=l.sheet.zoom(),M=(N+2*w)*v,I=V.NMi,b=V.getDataSource(),m=N*v,y=D*v,x=l.rowSpacingIndex,T=P(A=I.keo()),!d(j=i)&&T&&"number"==typeof x&&(j="".concat(i)),T&&I.Mf.ncr&&(p=I.Mf.ncr(F,l.rowSpacingIndex,J)),z=this.Sno(e,r,u,c,l),this.Tno||t.prototype.paintValue.call(this,n,j,z.x,z.y,z.w,z.h,a,l),I&&b&&I.lMi&&I.lMi.length>0&&((L=I.groupOutlinePosition())!==o.GroupOutlinePosition.groupCell&&L!==o.GroupOutlinePosition.groupCellAll||(T||(p=b.kve(J).OFt),!(S=p===I.lMi.length-1&&!I.detailColumnsVisible())&&I.DMi(p,l.row)&&(O=w*v,k=C*v,E=I.IMi(F,p),(Z=this.Ueo(I,E,F,J,x))&&(n.save(),n.beginPath(),n.rect(e,r,u,c),n.clip(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,U=e+O,P(A)&&(U+=M*p),G=U+m/2,R=(B=r+k)+m/2,Q=s(U)-.5,Y=s(U+m)-.5,H=s(B)-.5,W=s(B+m)-.5,n.moveTo(Q,H),n.lineTo(Y,H),n.lineTo(Y,W),n.lineTo(Q,W),n.lineTo(Q,H),n.moveTo(s(G-y)-.5,s(R)-.5),n.lineTo(s(G+y)-.5,s(R)-.5),E.collapsed&&(n.moveTo(s(G)-.5,s(R-y)-.5),n.lineTo(s(G)-.5,s(R+y)-.5)),n.stroke(),n.restore()))))},n.prototype.fMi=function(t,n,i,e,r,u,c,a){var l,f,d,h,v,g,M,I,b,D,m,y,x,A,T,j=a?a.sheet.zoom():e.zoom(),p=N*j,z=e.NMi,L=e.getDataSource();if(z&&L&&((l=z.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||l===o.GroupOutlinePosition.groupCellAll)&&(d=P(f=z.keo())&&z.Mf.ncr?z.Mf.ncr(r,c,u):L.kve(u).OFt,h=(N+2*w)*j,!(v=d===z.lMi.length-1&&!z.detailColumnsVisible())&&z.DMi(d,r)&&(g=w*j,M=C*j,I=z.IMi(r,d),(b=this.Ueo(z,I,r,u,c))&&(D=t.x+g,P(f)&&(D+=h*d),m=t.y+M,y=s(D)-.5,x=s(D+p)-.5,A=s(m)-.5,T=s(m+p)-.5,y<=n&&n<=x&&A<=i&&i<=T))))return{level:I.level,index:r,collapsed:I.collapsed}},n.prototype.Ln=function(n,i,e,o,r){var u,c,a,s=r.sheet,l=r.col;return r.dataRange&&(u=ct(r))&&(s=u.sheet,l=u.col),c=s.NMi,a=t.prototype.Ln.call(this,n,i,e,o,r),c&&c.hMi(l)&&(a+=(N+2*w)*o),a},n}(p),e.CellTypes.ti[99]=z,L=function(t){function n(n){var i=t.call(this,n)||this;return i.typeName="108",i}return Z(n,t),n.prototype.getHitInfo=function(n,i,e,o,r){return this.Tno&&this.Tno.getHitInfo?this.Tno.getHitInfo(n,i,e,o,r):t.prototype.getHitInfo.call(this,n,i,e,o,r)},n.prototype.paintValue=function(n,i,e,o,r,u,c,a){var s,l,f,d,h,v,g,M,I,b;this.Tno||(s=a.sheet,l=a.isAfterRowSpacing,a.dataRange&&(f=ct(a))&&(s=f.sheet,l=f.isAfterRowSpacing),d=a.sheet.zoom(),h=(N+2*w)*d,v=s.NMi,g=-1,!l&&v.lMi&&(g=v.lMi.length-1),I=e+(M=h*(g+2)),b=r-M,t.prototype.paintValue.call(this,n,i,I,o,b,u,c,a))},n}(j),e.CellTypes.ti[108]=L,S=function(t){function n(){var n=t.call(this)||this;return n.zeo=o.GroupLayoutMode.outline,n.Leo=!1,n.typeName="109",n}return Z(n,t),n.prototype.getValueInOneCell=function(t){var n,i,o,r=t.sheet,u=t.row,a=t.col,s=t.rowSpacingIndex,l=t.isAfterRowSpacing;if(P(this.zeo))return n=r.getValue(u,a,e.SheetArea.viewport,void 0,{rowSpacingIndex:s,isAfterRowSpacing:l}),o=(i=r.ncr&&r.ncr(u,s,a,l))&&i.caption,st("","",o="".concat(o).concat((0,c.getSR)().TextColon),n)},n.prototype.paint=function(n,i,o,r,u,s,l,f){var h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k=this,E=f.row,Z=f.col,U=f.sheet,G=f.rowSpacingIndex,B=f.isAfterRowSpacing;f.dataRange&&(h=ct(f))&&(U=h.sheet,E=h.row,Z=h.col,G=h.rowSpacingIndex,B=h.isAfterRowSpacing),v=f.sheet.zoom(),M=(g=U.NMi).currentTheme(),I=l.backColor,f.parentBackColor!==I&&(0,e.cellTypeContext_paintBackground)(n,o,r,u,s,f.imageLoader,l,i,f),l.backColor=void 0,l.backgroundImage=void 0,b=new e.Rect(o,r,u,s),D=(N=U.ncr&&U.ncr(E,G,Z,B))&&N.caption,m=V(l),w=U.getDefaultStyle(),(y=(C=N&&N.headerStyle)?K(C,M,w):m.clone()).hAlign=$(y,e.HorizontalAlign.right),(x=Y(this.zeo))?(A=2*v,T=U.getDefaultStyle().cellPadding+" 0 0 0",(p=(j=N&&N.style)?K(j,M,w):m.clone()).cellPadding=T,p.hAlign=$(p,e.HorizontalAlign.right),f.fontInfo=e.W.x2e(p,j?v:1),p.font=f.fontInfo.font,f.cellStyle=p,t.prototype.paint.call(this,n,i,o,r,u,s,p,f),z=f.ysr,D&&(D="".concat(D).concat((0,c.getSR)().TextColon),L=u-z-A,y.cellPadding=T,y.hAlign=$(y,e.HorizontalAlign.right),f.fontInfo=e.W.x2e(y,C?v:1),y.font=f.fontInfo.font,f.cellStyle=y,t.prototype.paint.call(this,n,D,o,r,L,s,y,f))):(S=k.An(b,l,(0,e.isPrintZoomFactorExist)(f)?f.printZoomFactor:f.sheet.zoom()),O=new e.Rect(o,r,u,s-S.height),D&&((!C||C&&d(C.cellPadding))&&(y.cellPadding=a),f.cellStyle=y,f.fontInfo=e.W.x2e(y,C?v:1),y.font=f.fontInfo.font,f.lineHeight=e.mt.vt(f.fontInfo.font,!1,e.mt.pt(D)),t.prototype.paint.call(this,n,D,o,O.y,u,O.height,y,f)),(p=(j=N&&N.style)?K(j,M,w):m.clone()).cellPadding=a,p.hAlign=$(p,e.HorizontalAlign.right),f.cellStyle=p,f.fontInfo=e.W.x2e(p,j?v:1),p.font=f.fontInfo.font,f.lineHeight=e.mt.vt(f.fontInfo.font,!1,e.mt.pt(i)),t.prototype.paint.call(this,n,i,o,S.y,u,S.height,p,f))},n.prototype.Ln=function(n,i,o,r,u){var s,l,f,h,v,g,M,I,b,N,D,m,w,C,y=0,x=u.row,A=u.col,T=u.sheet,j=u.rowSpacingIndex,p=u.isAfterRowSpacing;return u.dataRange&&(s=ct(u))&&(T=s.sheet,x=s.row,A=s.col,j=s.rowSpacingIndex,p=s.isAfterRowSpacing),f=(l=T.NMi).currentTheme(),(v=(h=T.ncr&&T.ncr(x,j,A,p))&&h.caption)&&(v="".concat(v).concat((0,c.getSR)().TextColon)),g=V(o),M=T.getDefaultStyle(),Y(this.zeo)?(I=2,b=T.getDefaultStyle().cellPadding+" 0 0 0",d(n)||((D=(N=h&&h.style)?K(N,f,M):g.clone()).cellPadding=b,D.hAlign=$(D,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(D,N?r:1),D.font=u.fontInfo.font,u.cellStyle=D,y+=t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,D,T),D,r,u)+I),d(v)||((w=(m=h&&h.headerStyle)?K(m,f,M):g.clone()).cellPadding=b,w.hAlign=$(w,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(w,m?r:1),w.font=u.fontInfo.font,u.cellStyle=w,y+=t.prototype.Ln.call(this,v,v,w,r,u)+I)):(d(n)||((D=(N=h&&h.style)?K(N,f,M):g.clone()).cellPadding=a,D.hAlign=$(D,e.HorizontalAlign.right),u.cellStyle=D,u.fontInfo=e.W.x2e(D,N?r:1),D.font=u.fontInfo.font,y=t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,D,T),D,r,u)),d(v)||(w=(m=h&&h.headerStyle)?K(m,f,M):g.clone(),(!m||m&&d(m.cellPadding))&&(w.cellPadding=a),u.cellStyle=w,u.fontInfo=e.W.x2e(w,m?r:1),w.font=u.fontInfo.font,(C=t.prototype.Ln.call(this,v,v,w,r,u))>y&&(y=C))),y},n}(e.CellTypes.Text),e.CellTypes.ti[109]=S,O=function(t){function n(){var n=t.call(this)||this;return n.zeo=o.GroupLayoutMode.outline,n.typeName="110",n}return Z(n,t),n.prototype.getValueInOneCell=function(t){var n,i,o,r,u,a,s,l,f,d,h,v,g,M,I,b,N=t.sheet,D=t.row,m=t.col,w=t.rowSpacingIndex,C=t.isAfterRowSpacing;if(P(this.zeo))return n=N.getActualStyle(D,m,e.SheetArea.viewport,void 0,{rowSpacingIndex:w,isAfterRowSpacing:C}),i=N.getValue(D,m,e.SheetArea.viewport,void 0,{rowSpacingIndex:w,isAfterRowSpacing:C}),o=N.NMi,u=(r=N.ncr&&N.ncr(D,w,-1)).field,a=r.value,s=r.groupLevelOptions,l="".concat(u).concat((0,c.getSR)().TextColon),a=e.mt.V0(a),d=(f=N.getDefaultStyle()).cellPadding+" 0 0 0",h=o.currentTheme(),v=V(n),(g=s.style?K(s.style,h,f):v.clone()).cellPadding=d,g.hAlign=$(g,e.HorizontalAlign.left),M=(0,e.C0r)(this,a,g,N),b=(I=N.ncr&&N.ncr(D,w,m,C))&&I.caption,st(l,M,b="".concat(b).concat((0,c.getSR)().TextColon),i)},n.prototype.paint=function(n,i,r,u,l,d,v,M){var I,b,m,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,Q,H,W,F,J,_,X,q,tt,nt,it,et,ot,rt,ut,at,st,lt,ft,dt,ht,vt,gt,Mt,It,bt,Nt,Dt,mt,wt,Ct,yt,xt,At,Tt,jt,pt,zt,Lt,St,Ot,kt,Et=this,Zt=M.row,Ut=M.sheet,Gt=M.col,Bt=M.rowSpacingIndex,Rt=M.isAfterRowSpacing;if(M.dataRange&&(I=ct(M))&&(Ut=I.sheet,Zt=I.row,Gt=I.col,Bt=I.rowSpacingIndex,Rt=I.isAfterRowSpacing),b=Ut.NMi,m=Ut.getDataSource(),C=M.sheet.zoom(),y=b.currentTheme(),x=v.backColor,M.parentBackColor!==x&&(0,e.cellTypeContext_paintBackground)(n,r,u,l,d,M.imageLoader,v,i,M),v.backColor=void 0,v.backgroundImage=void 0,A=new e.Rect(r,u,l,d),T=Ut.ncr&&Ut.ncr(Zt,Bt,-1)){if(j=(N+2*w)*C,p=N*C,z=D*C,L=b.keo(),S=T.level,O=T.field,k=T.value,E=T.groupLevelOptions,k=e.mt.V0(k),b&&m&&b.lMi&&b.lMi.length>0&&((Z=b.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||Z===o.GroupOutlinePosition.groupCellAll)&&!(U=S===b.lMi.length-1&&!b.detailColumnsVisible())&&b.DMi(S,Zt)){if(G=w*C,!(Q=b.IMi(Zt,S)))return;n.save(),n.beginPath(),n.rect(r,u,l,d),n.clip(),n.beginPath(),n.strokeStyle=h(g).borderColor,n.lineWidth=1,H=r+G,P(L)&&(H+=j*S),W=H+p/2,J=(F=u+(d-p)/2)+p/2,_=s(H)-.5,X=s(H+p)-.5,q=s(F)-.5,tt=s(F+p)-.5,n.moveTo(_,q),n.lineTo(X,q),n.lineTo(X,tt),n.lineTo(_,tt),n.lineTo(_,q),n.moveTo(s(W-z)-.5,s(J)-.5),n.lineTo(s(W+z)-.5,s(J)-.5),Q.collapsed&&(n.moveTo(s(W)-.5,s(J-z)-.5),n.lineTo(s(W)-.5,s(J+z)-.5)),n.stroke(),n.restore()}nt=0,et=r+(it=j*(S+1)),ot=l-it,rt=4*C,ut=V(v),at=Ut.getDefaultStyle(),st=Ut.defaults.rowHeight,ft=(lt=Ut.ncr&&Ut.ncr(Zt,Bt,Gt,Rt))&<.caption,(ht=(dt=lt&<.headerStyle)?K(dt,y,at):ut.clone()).hAlign=e.HorizontalAlign.right,(vt=Y(this.zeo))?(gt=2*C,Mt=Ut.getDefaultStyle().cellPadding+" 0 0 0",(It=E.headerStyle?K(E.headerStyle,y,at):ut.clone()).cellPadding=Mt,It.hAlign=$(It,e.HorizontalAlign.left),M.fontInfo=e.W.x2e(It,E.headerStyle?C:1),It.font=M.fontInfo.font,M.cellStyle=It,bt="".concat(O).concat((0,c.getSR)().TextColon),Nt=f(e.mt.Mt(n,It.font,(0,e.y0r)(this,n,bt,ot,d,It,M))+gt),t.prototype.paint.call(this,n,bt,et,u,Nt,d,It,M),et+=Nt,(Dt=E.style?K(E.style,y,at):ut.clone()).cellPadding=Mt,Dt.hAlign=$(Dt,e.HorizontalAlign.left),M.fontInfo=e.W.x2e(Dt,E.style?C:1),Dt.font=M.fontInfo.font,M.cellStyle=Dt,mt=(0,e.C0r)(this,k,Dt,Ut),wt=f(e.mt.Mt(n,Dt.font,(0,e.y0r)(this,n,mt,ot,d,Dt,M))+gt),Dt.formatter=a,t.prototype.paint.call(this,n,mt,et,u,wt,d,Dt,M),et+=wt,et+=rt,Ct=ot-Nt-wt-rt,(xt=(yt=lt&<.style)?K(yt,y,at):ut.clone()).cellPadding=Mt,xt.hAlign=$(xt,e.HorizontalAlign.right),M.fontInfo=e.W.x2e(xt,yt?C:1),xt.font=M.fontInfo.font,M.cellStyle=xt,t.prototype.paint.call(this,n,i,et,u,Ct,d,xt,M),At=M.ysr,ft&&(ft="".concat(ft).concat((0,c.getSR)().TextColon),Tt=Ct-At-gt,ht.cellPadding=Mt,ht.hAlign=$(ht,e.HorizontalAlign.right),M.fontInfo=e.W.x2e(ht,dt?C:1),ht.font=M.fontInfo.font,M.cellStyle=ht,t.prototype.paint.call(this,n,ft,et,u,Tt,d,ht,M))):(jt=Et.An(A,v,(0,e.isPrintZoomFactorExist)(M)?M.printZoomFactor:M.sheet.zoom()),pt=new e.Rect(r,u,l,d-jt.height),(Dt=E.style?K(E.style,y,at):ut.clone()).hAlign=$(Dt,e.HorizontalAlign.left),zt=E.headerStyle?K(E.headerStyle,y,at):ut.clone(),(!E.headerStyle||E.headerStyle&&B(E.headerStyle.cellPadding))&&(zt.cellPadding=a),zt.hAlign=$(zt,e.HorizontalAlign.left),M.cellStyle=zt,M.fontInfo=e.W.x2e(zt,E.headerStyle?C:1),zt.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(O)),t.prototype.paint.call(this,n,O,et,pt.y,ot,pt.height,zt,M),nt=R(nt,M.ysr),Dt.cellPadding=a,M.cellStyle=Dt,M.fontInfo=e.W.x2e(Dt,E.style?C:1),Dt.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(k)),t.prototype.paint.call(this,n,k,et,jt.y,ot,jt.height,Dt,M),Lt=et+(nt=R(nt,M.ysr))+rt,St=ot-nt-rt,xt=(yt=lt&<.style)?K(yt,y,at):ut.clone(),(!yt||yt&&B(yt.cellPadding))&&(xt.cellPadding=st+" 0 0 0"),Ot=Et.An(A,xt,(0,e.isPrintZoomFactorExist)(M)?M.printZoomFactor:M.sheet.zoom()),ft&&(kt=new e.Rect(r,u,l,d-Ot.height),(!dt||dt&&B(dt.cellPadding))&&(ht.cellPadding=a),M.cellStyle=ht,M.fontInfo=e.W.x2e(ht,lt&<.headerStyle?C:1),ht.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(ft)),t.prototype.paint.call(this,n,ft,Lt,kt.y,St,kt.height,ht,M)),xt.cellPadding=a,xt.hAlign=e.HorizontalAlign.right,M.cellStyle=xt,M.fontInfo=e.W.x2e(xt,yt?C:1),xt.font=M.fontInfo.font,M.lineHeight=e.mt.vt(M.fontInfo.font,!1,e.mt.pt(i)),t.prototype.paint.call(this,n,i,Lt,Ot.y,St,Ot.height,xt,M))}},n.prototype.Ln=function(n,i,o,r,u){var s,f,h,v,g,M,I,b,D,m,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,R,P,Q=0,H=u.row,W=u.sheet,F=u.col,J=u.rowSpacingIndex,_=u.isAfterRowSpacing;return u.dataRange&&(s=ct(u))&&(W=s.sheet,H=s.row,F=s.col,J=s.rowSpacingIndex,_=s.isAfterRowSpacing),h=(f=W.NMi).currentTheme(),v=N+2*w,g=W.ncr&&W.ncr(H,J,-1),M=Y(this.zeo),g&&(I=V(o),b=W.getDefaultStyle(),D=g.level,m=g.field,C=g.value,y=g.groupLevelOptions,Q=x=v*(D+1),T=(A=W.ncr&&W.ncr(H,J,F,_))&&A.caption,j=4,M?(T&&(T="".concat(T).concat((0,c.getSR)().TextColon)),m&&(m="".concat(m).concat((0,c.getSR)().TextColon)),p=2,z=W.getDefaultStyle().cellPadding+" 0 0 0",d(m)||((L=y.headerStyle?K(y.headerStyle,h,b):I.clone()).cellPadding=z,L.hAlign=$(L,e.HorizontalAlign.left),u.fontInfo=e.W.x2e(L,y.headerStyle?r:1),L.font=u.fontInfo.font,u.cellStyle=L,Q+=t.prototype.Ln.call(this,m,m,L,r,u)+p),d(C)||((S=y.style?K(y.style,h,b):I.clone()).cellPadding=z,S.hAlign=$(S,e.HorizontalAlign.left),u.fontInfo=e.W.x2e(S,y.style?r:1),S.font=u.fontInfo.font,u.cellStyle=S,O=(0,e.C0r)(this,C,S,W),Q+=t.prototype.Ln.call(this,O,O,S,r,u)+p),A&&(Q+=j,d(n)||((E=(k=A.style)?K(k,h,b):I.clone()).cellPadding=z,E.hAlign=$(E,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(E,k?r:1),E.font=u.fontInfo.font,u.cellStyle=E,Q+=t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,E,W),E,r,u)+p),d(T)||((U=(Z=A.headerStyle)?K(Z,h,b):I.clone()).cellPadding=z,U.hAlign=$(U,e.HorizontalAlign.right),u.fontInfo=e.W.x2e(U,Z?r:1),U.font=u.fontInfo.font,u.cellStyle=U,Q+=t.prototype.Ln.call(this,T,T,U,r,u)+p))):(G=0,d(m)||(R=y.headerStyle?K(y.headerStyle,h,b):I.clone(),(!y.headerStyle||y.headerStyle&&B(y.headerStyle.cellPadding))&&(R.cellPadding=a),R.hAlign=$(R,e.HorizontalAlign.left),u.cellStyle=R,u.fontInfo=e.W.x2e(R,y.headerStyle?r:1),R.font=u.fontInfo.font,G=l(t.prototype.Ln.call(this,m,m,R,r,u),G)),d(C)||((S=y.style?K(y.style,h,b):I.clone()).hAlign=$(S,e.HorizontalAlign.left),S.cellPadding=a,u.cellStyle=S,u.fontInfo=e.W.x2e(S,y.style?r:1),S.font=u.fontInfo.font,G=l(t.prototype.Ln.call(this,C,(0,e.C0r)(this,C,S,W),S,r,u),G)),Q+=G,P=0,d(T)||(U=(Z=A&&A.headerStyle)?K(Z,h,b):I.clone(),(!Z||Z&&B(Z.cellPadding))&&(U.cellPadding=a),u.cellStyle=U,u.fontInfo=e.W.x2e(U,A&&A.headerStyle?r:1),U.font=u.fontInfo.font,P=l(t.prototype.Ln.call(this,T,T,U,r,u),P)),d(n)||((E=(k=A.style)?K(k,h,b):I.clone()).cellPadding=a,E.hAlign=e.HorizontalAlign.right,u.cellStyle=E,u.fontInfo=e.W.x2e(E,k?r:1),E.font=u.fontInfo.font,P=l(t.prototype.Ln.call(this,n,(0,e.C0r)(this,n,E,W),E,r,u),P)),Q+=P,P>0&&(Q+=j))),Q},n.prototype.getCellAndPaddingHitInfo=function(n,i,e,o,r){var u,c=e.cellPadding;return e.cellPadding=void 0,u=t.prototype.getCellAndPaddingHitInfo.call(this,n,i,e,o,r),e.cellPadding=c,u},n.prototype.fMi=function(t,n,i,e,r,u,c,a){var l,f,d,h,v,g,M,I,b,D,m,C,y,x=a?a.sheet.zoom():e.zoom(),A=N*x,T=e.NMi,j=e.getDataSource();if(T&&j&&((l=T.groupOutlinePosition())===o.GroupOutlinePosition.groupCell||l===o.GroupOutlinePosition.groupCellAll)&&(f=e.ncr&&e.ncr(r,c,-1))&&(d=f.level,h=(N+2*w)*x,!(v=d===T.lMi.length-1&&!T.detailColumnsVisible())&&T.DMi(d,r))){if(g=w*x,!(M=T.IMi(r,d)))return;if(I=t.x+g+h*d,b=t.y+(t.height-A)/2,D=s(I)-.5,m=s(I+A)-.5,C=s(b)-.5,y=s(b+A)-.5,D<=n&&n<=m&&C<=i&&i<=y)return{level:M.level,index:r,collapsed:M.collapsed}}},n}(p),e.CellTypes.ti[110]=O,k=function(){function t(){this.tMi=o.GroupOutlinePosition.groupCell,this.GY=o.GroupLayoutMode.tabular,this.Oeo=M}return t.prototype.Hc=function(t,n,i){var r,u=new e.Style;u.cellType=new y,t.setStyle(-1,0,u,e.SheetArea.rowHeader),t.setColumnWidth(0,n*b,e.SheetArea.rowHeader),(r=this.tMi)!==o.GroupOutlinePosition.rowHeader&&r!==o.GroupOutlinePosition.groupCellAll||t.setColumnVisible(0,!0,e.SheetArea.rowHeader),this.Beo(t,i)},t.prototype.Beo=function(t,n){var i;P(this.GY)?(this.Geo(t),this.Reo(t),this.Peo(t,n)):this.Qeo(t,n)},t.prototype.Qeo=function(t,n){var i,o,r,u,c,s,l;for(i=0;i<n.length;i++)n[i].DFt&&((o=n[i].headerStyle&&n[i].headerStyle.cellType)&&(o="98"===o.typeName?a:(0,e.createCellType)(o)),r=new T(o),t.setCellType(-1,i,r,e.SheetArea.colHeader),(u=n[i].headerStyle)||(u=n[i].headerStyle={}),u.cellType=r,(c=n[i].style&&n[i].style.cellType)&&(c="99"===c.typeName?a:(0,e.createCellType)(c)),s=new z(c),t.setCellType(-1,i,s),(l=n[i].style)||(l=n[i].style={}),l.cellType=s)},t.prototype.Peo=function(t,n){var i,o,r,u,c,s,l,f,h,v,g,M,I,b,N,D,m,w,C,y,A,T,j,p,z,k,E,Z,U=t.NMi,G=t.getRowCount(),R=n.length,P=t.k9(e.SheetArea.viewport),Y=t.NMi.currentTheme();if(!d(P)){if(o=t.defaults.rowHeight,r=t.Csr)for(u=0;u<G;u++){for(c=t.Rsr(u),s=0;s<c;s++){for(f=null==(l=t.ncr(u,s,-1))?void 0:l.field,h=0;h<R;h++)(M=new(g=(v=h===P)?O:S)).zeo=this.GY,(b=W(I=v&&l&&l.groupLevelOptions?l.groupLevelOptions:t.ncr(u,s,h)))||(b=new e.Style),b.cellType=M,t.tcr(u,s,h,b);l&&(D=B((N=K(l.groupLevelOptions&&l.groupLevelOptions.style||{},Y)).cellPadding),Q(this.GY)&&D&&(N.cellPadding=o+" 0 0 0"),t.tcr(u,s,-1,N)),(m=new e.Style).cellType=new x,t.tcr(u,s,0,m,!1,e.SheetArea.rowHeader),Q(this.GY)&&(w=U.getGroupingHeaderHeight(f,o),t.qsr(u,s,w))}for(C=t.Rsr(u,!0),s=0;s<C;s++)if(f=null===(i=null==(l=t.ncr(u,s,-1,!0))?void 0:l.groupLevelOptions)||void 0===i?void 0:i.field,l&&l.isSpacing)(y=new e.Style).cellType=new x,t.tcr(u,s,0,y,!0,e.SheetArea.rowHeader),t.qsr(u,s,l.spacingRow,!0);else{for(h=0;h<R;h++)(A=new S).zeo=this.GY,A.Leo=!0,(T=W(I=t.ncr(u,s,h,!0)))||(T=new e.Style),T.cellType=A,t.tcr(u,s,h,T,!0);l&&(D=B((N=K(l.groupLevelOptions&&l.groupLevelOptions.style||{},Y)).cellPadding),Q(this.GY)&&D&&(N.cellPadding=o+" 0 0 0"),t.tcr(u,s,-1,N,!0)),(j=new e.Style).cellType=new x,t.tcr(u,s,0,j,!0,e.SheetArea.rowHeader),Q(this.GY)&&(p=U.getGroupingFooterHeight(f,o),t.qsr(u,s,p,!0))}}for(u=0,z=R;u<z;u++)t.$go(-1,u)instanceof L&&t.setCellType(-1,u,a);(E=(k=n[P].style)&&k.cellType)&&(E="108"===E.typeName?a:(0,e.createCellType)(E)),Z=new L(E),t.setCellType(-1,P,Z),n[P].zno=Z}},t.prototype.Geo=function(t,n,i,o,r,u){var a,s,l,f,h,v,g,M,I,b,N,D,m,w,C,y,x,A;if(t.Csr&&(s=(a=t.NMi).getDataView(),l=this.Yeo(),f=a.groupBy(),h=P(l),d(n)&&(n=s.FFt.childrenArray[0]),d(i)&&(i=a.INi.Weo()),n.length===i.length&&(d(o)&&(o=0),d(r)&&(r=0),d(u)&&(u=0),n&&n.length>0)))for(v=0;v<n.length;v++)g=n[v],M=i[v],I=g.recordRowNumbers,b=g.value,D=(N=g.cellNode).field.extra&&!d(N.field.extra.caption)?N.field.extra.caption:N.field.fieldValue,Array.isArray(D)&&(D=(0,c.tIi)(D)),m=I.length,w=t.Rsr(o),t.Ksr(o,w,1),t.ecr(o,r,-1,{groupLevelOptions:f[M.level],level:M.level,field:D,value:e.mt.Z0(b)}),M.spacingIndex=r,h&&(C=g.summaryResults)&&(y=nt(C,"header",a.Heo()))&&this.Veo(t,o,r,y),x=g.childrenArray[0],A=M.children,x&&x.length>0&&this.Geo(t,x,A,o,r+1,u),o+=m,r=0},t.prototype.Reo=function(t,n,i,e,o){var r,u,c,a,s,l,f,h,v,g,M,I,b,N;if(t.Csr&&(u=(r=t.NMi).getDataView(),d(n)&&(n=u.FFt.childrenArray[0]),d(i)&&(i=r.INi.Weo()),n.length===i.length&&(d(e)&&(e=0),d(o)&&(o=0),n&&n.length>0)))for(c=r.groupBy(),a=0;a<n.length;a++)s=n[a],l=i[a],f=s.recordRowNumbers,h=s.summaryResults,g=e+(v=f.length)-1,(M=ut(s))>0&&a<n.length-1&&(t.Ksr(g,0,1,!0),t.ecr(g,0,-1,{level:l.level,spacingRow:M,isSpacing:!0},!0)),h&&(I=nt(h,"footer"))&&(t.Ksr(g,0,1,!0),t.ecr(g,0,-1,{groupLevelOptions:c[l.level],level:l.level},!0),this._eo(t,g,0,I)),b=s.childrenArray[0],N=l.children,b&&b.length>0&&this.Reo(t,b,N,e,o),e+=v},t.prototype.Veo=function(t,n,i,e){var o,r,u,c,a,s;if(t.Csr)for(r=(o=t.NMi.getDataView()).getColumnInfos(),u=0;u<r.length;u++)(s=e[a=(c=r[u]).value])&&(t.$sr(n,i,u,s.value),t.ecr(n,i,u,s))},t.prototype._eo=function(t,n,i,e){var o,r,u,c,a,s;if(t.Csr)for(r=(o=t.NMi.getDataView()).getColumnInfos(),u=0;u<r.length;u++)(s=e[a=(c=r[u]).value])&&(t.$sr(n,i,u,s.value,!0),t.ecr(n,i,u,s,!0))},t.prototype.TMi=function(t,n){var i,r;if(0===arguments.length)return this.tMi;this.tMi=n,(i=t.NMi)&&i.lMi&&(r=n===o.GroupOutlinePosition.rowHeader||n===o.GroupOutlinePosition.groupCellAll,t.setColumnVisible(0,r,e.SheetArea.rowHeader))},t.prototype.Yeo=function(t){if(d(t))return this.GY;this.GY=t},t.prototype.Jeo=function(t){if(d(t))return this.Oeo;this.Oeo=U(U({},this.Oeo),t)},t.prototype.L0=function(t){t.setColumnVisible(0,!1,e.SheetArea.rowHeader);for(var n=0,i=t.getColumnCount();n<i;n++)t.$go(-1,n,e.SheetArea.colHeader)instanceof T&&t.setCellType(-1,n,a,e.SheetArea.colHeader),t.$go(-1,n)instanceof z&&t.setCellType(-1,n,a),t.$go(-1,n)instanceof L&&t.setCellType(-1,n,a)},t.prototype.toJSON=function(){return this.tMi},t.prototype.fromJSON=function(t,n){this.TMi(t,n)},t}(),E=function(){function t(){this._data=new I,this._ui=new k}return t.prototype.Weo=function(){return this._data.oMi.children},t.prototype.Hc=function(t,n,i,e,o){o||this._data.Hc(t,n);var r=i.getDataSource();this._ui.Hc(i,e.length,r&&r.getColumnInfos())},t.prototype.TMi=function(t,n){if(0===arguments.length)return this._ui.TMi();this._ui.TMi(t,n)},t.prototype.uMi=function(t,n,i,e){this._data.uMi(t,n,i,e)},t.prototype.aMi=function(t,n,i,e){this._data.aMi(t,n,i,e)},t.prototype.sMi=function(t,n,i,e,o){return this._data.sMi(t,n,i,e,o)},t.prototype.MMi=function(t){return this._data.MMi(t)},t.prototype.IMi=function(t,n){return this._data.IMi(t,n)},t.prototype.gMi=function(t){return this._data.gMi(t)},t.prototype.Yeo=function(t){return this._ui.Yeo(t)},t.prototype.Jeo=function(t){return this._ui.Jeo(t)},t.prototype.L0=function(t){this._data.L0(),this._ui.L0(t)},t.prototype.Beo=function(t,n){this._ui.Beo(t,n)},t.prototype.toJSON=function(){return{outlinePosition:this._ui.toJSON(),tree:this._data.toJSON()}},t.prototype.fromJSON=function(t,n,i){(null==n?void 0:n.outlinePosition)&&(this._ui.fromJSON(t,n.outlinePosition),this._data.fromJSON(n.tree,i))},t}(),n.Grouping=E},1633:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.reo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"grouping"),t.rto(n,"groupNo"),t.oeo(n),n},n}(o.Meo),n.reo=c},1649:function(t,n,i){var e,o,r,u,c,a,s=this&&this.vJr||(l=function(t,n){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},l(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}l(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),l;Object.defineProperty(n,"__esModule",{value:!0}),n.geo=void 0,e=i(1376),o=i(8057),r=i(9846),u=e.mt,c=u.En,a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return s(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(c("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ato(n,"errorCorrectionLevel",(0,r.getItems)(8,!0,!0)),t.ato(n,"columns",(0,r.getItems)(30,!0)),t.ato(n,"rows",(0,r.getItems)(90,!0)),t.cto(n,"compact"),n},n}(o.Meo),n.geo=a},1850:function(t,n,i){var e,o,r,u,c,a=this&&this.mJr||function(){return a=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},a.apply(this,arguments)};function s(t){return"string"==typeof t}function l(t){return t.reduce((function(t,n){return t.push(n),c(n.subActionOptions)?t.concat(n.subActionOptions):t}),[])}function f(t){return s(t)?t.toUpperCase().charCodeAt(0):t}function d(t){return"ROWACTION_".concat(t)}function h(t){var n=d(t);return o.Commands[n]={canUndo:!1,execute:function(n,i){var e=n.commandManager(),o=n.Ofe(i.sheetName),r=o.Mf,u=i.isDataRange?i.row:r.getActiveRowIndex(),c=r.getDataItem(u);return e.execute(a(a({},i),{cmd:t,index:u,item:c,tableSheet:o})),!0}},n}Object.defineProperty(n,"__esModule",{value:!0}),e=i(7234),o=i(1376),r=i(8966),u=e.Common.lt,c=u.Nh,o.Commands.uri=function(t){var n=o.mt.Qf(),i=!n,e=n;t.register(r.SAVE_ALL,o.Commands[r.SAVE_ALL],"S".charCodeAt(0),i,!0,!1,e),t.register(r.EXPAND_GROUP_ITEM,o.Commands[r.EXPAND_GROUP_ITEM]),t.register(r.EXPAND_GROUP,o.Commands[r.EXPAND_GROUP]),t.register(r.REMOVE_COLUMN_TO_TABLE,o.Commands[r.REMOVE_COLUMN_TO_TABLE]),t.register(r.MODIFY_COLUMN_TO_TABLE,o.Commands[r.MODIFY_COLUMN_TO_TABLE]),t.register(r.DEFINE_COLUMN_TO_TABLE,o.Commands[r.DEFINE_COLUMN_TO_TABLE]),t.register(r.VIEW_REMOVE_COLUMN_INFO,o.Commands[r.VIEW_REMOVE_COLUMN_INFO]),t.register(r.VIEW_UPDATE_COLUMN_INFO,o.Commands[r.VIEW_UPDATE_COLUMN_INFO]),t.register(r.VIEW_Add_COLUMN_INFO,o.Commands[r.VIEW_Add_COLUMN_INFO]),t.register(r.VIEW_MOVE_COLUMN,o.Commands[r.VIEW_MOVE_COLUMN]),t.register(r.VIEW_MOVE_COLUMN_FOR_PANEL,o.Commands[r.VIEW_MOVE_COLUMN_FOR_PANEL]),t.register(r.GROUP_OPTIONS,o.Commands[r.GROUP_OPTIONS]),t.register(r.RESET_NEW_VIEW,o.Commands[r.RESET_NEW_VIEW]),t.register(r.REMOVE_CROSS_COLUMN,o.Commands[r.REMOVE_CROSS_COLUMN]),t.register(r.ADD_TO_MULTI_SORT,o.Commands[r.ADD_TO_MULTI_SORT]),t.register(r.REMOVE_FROM_MULTI_SORT,o.Commands[r.REMOVE_FROM_MULTI_SORT]),t.register(r.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET,o.Commands[r.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET])},o.Commands.iMi=function(t,n){var i=t;l(n).forEach((function(t){var n,e,r,u,c=t.command,a=t.shortcutKey,l=void 0===a?{}:a,d=l.key,v=l.ctrl,g=l.shift,M=l.alt,I=l.meta;s(c)&&(n=h(c),e=i.getCommand(n),r=i.getCommand(c),u=f(d),r?s(r.shortcutKey)&&i.setShortcutKey(c,null,!1,!1,!1,!1):i.register(c,o.Commands[c]),e?e.shortcutKey!==i.getShortcutKey(u,v,g,M,I)&&i.setShortcutKey(n,u,v,g,M,I):i.register(n,o.Commands[n],u,v,g,M,I))}))}},1859:function(t,n,i){var e,o,r,u,c;Object.defineProperty(n,"__esModule",{value:!0}),n.dZe=void 0,e=i(1376),o=i(591),r=e.mt,u=r.En,c=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.gZe()},t.prototype.gZe=function(){var t,n=this,i=(0,e.GC$)(u("div"));return i.addClass("gc-defined-column-divider-container"),i.attr("role","separator"),(t=n._text=(0,e.GC$)(u("div"))).appendTo(i),t.addClass("gc-defined-column-divider-inner-text"),n.LEt.text?t.text(n.LEt.text):t.hide(),i},t.prototype.setText=function(t){var n;this._text.text(t)},t.prototype.dispose=function(){var t;this._text=o.keyword_null},t}(),n.dZe=c},2121:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z=this&&this.vJr||(L=function(t,n){return L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},L(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}L(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),L;function S(t){return t&&t._gi===o.SheetType.tableSheet}function O(t){return t&&t._gi===o.SheetType.ganttSheet}function k(t){var n=t.getActiveSheetTab();if(S(n)||O(n))return n}function E(t){return t.b3t}function Z(t,n){return(-1===t.row||-1===n.row||n.row<t.row+t.rowCount&&t.row<n.row+n.rowCount)&&(-1===t.col||-1===n.col||n.col<t.col+t.colCount&&t.col<n.col+n.colCount)}function U(t,n,i,e){return{row:t,col:n,rowCount:i,colCount:e}}function G(t,n){var i=s(t.row,n.row),e=s(t.col,n.col),o=l(t.row+t.rowCount-1,n.row+n.rowCount-1),r=l(t.col+t.colCount-1,n.col+n.colCount-1);return i>=0&&e>=0?U(i,e,o-i+1,r-e+1):i>=0?U(i,-1,o-i+1,-1):e>=0?U(-1,e,-1,r-e+1):U(-1,-1,-1,-1)}function B(t){var n,i,e,o=[];for(i=0;i<t.length;i++){for(n=t[i],e=0;e<t.length;e++)n!==t[e]&&Z(n,t[e])&&(n=G(n,t[e]),i=e);o.push(n)}return o}function R(t){var n,i,e=0;for(t.sort((function(t,n){return t.row-n.row})),n=B(t),i=0;i<n.length;i++)e+=n[i].rowCount;return e}function P(t){var n,i=E(t),e=k(t);a(i)||(a(e)?i.qgi&&(i.qgi=!1,W(i)):(n=e.qgi,i.qgi!==e.qgi&&(n?H(i):W(i),i.qgi=n)))}function Q(t,n){var i=n.hitTestType,e=0===i,o=1===i,r=2===i,u=3===i;a(t)||(a(t.$gi)&&Y(t),!e&&!r||t.qgi?(u||o)&&t.qgi&&(t.qgi=!1,W(t)):(t.qgi=!0,H(t)),t.DJ.getActiveSheetTab().qgi=t.qgi)}function Y(t){var n,i,e,o,r,u=t.all(),c=[];for(n=0;n<u.length;n++)for(i=u[n],e=0;e<N.length;e++)i.name===N[e]&&c.push({pos:n,item:i});for(t.$gi=c,o=[],n=0;n<j.length;n++)r=V(j[n]),o.push(r);t.iNi=o}function H(t){var n,i,e,o;for(n=0;n<N.length;n++)t.remove(N[n]);if(i=t.$gi&&t.$gi.length>0?t.$gi[0].pos:0,e=t.iNi)for(n=0;n<e.length;n++)o=e[n],t.add(o,n+i)}function W(t){var n,i,e;for(n=0;n<j.length;n++)t.remove(j[n]);if(i=t.$gi)for(n=0;n<i.length;n++)e=i[n],t.add(e.item,e.pos)}function V(t){if(t===y)return new p}Object.defineProperty(n,"__esModule",{value:!0}),n.processStatusBarOnMouseDown=n.updateStatusBarOnActiveSheetChanged=void 0,e=i(7234),o=i(1376),r=i(605),u=i(419),c=e.Common.lt,a=c.ht,s=Math.min,l=Math.max,f=null,d=".statusbar",N=[h="average",v="count",g="numericalCount",M="min",I="max",b="sum"],D="none",m="inline-block",w=new e.Common.ResourceManager(u.SR,"TableSheet"),C=w.getResource.bind(w),x="menuRowCount",A="tooltipRowCount",T="right",j=[y="rowCount"],p=function(t){function n(){var n,i=t.call(this,y)||this;return i.c3t=": ",i.s3t=d+i.name,n=C().StatusBarRowCount,i.menuContent=n,i.vit=n,i.align=T,i.tipText=C().StatusBarToolTipRowCount,i.visible=!0,i.e4t=x,i.i4t=A,i}return z(n,t),n.prototype.rLi=function(){return k(this.DJ)},n.prototype.nNi=function(){return E(this.DJ)},n.prototype.onBind=function(t){var n=this;n.DJ=t,t.bind(o.Events.SelectionChanging+n.s3t,(function(t,i){n.x3t(i)})),t.bind(o.Events.SelectionChanged+n.s3t,(function(t,i){n.x3t(i)})),t.bind(o.Events.ActiveSheetChanged+n.s3t,(function(){n.onUpdate()}))},n.prototype.x3t=function(t){var n=this,i=t.newSelections;n.eNi(i)},n.prototype.eNi=function(t){var n,i,e,o,r,u,c,s,l=this,d=l.rLi();if(d&&(n=d.getDataView(),i=0,e=f,o=!1,r=[],!a(n))){for(i=n.getColumnInfos().length,u=0;u<t.length;u++){if(-1===(c=t[u]).col&&-1===c.row){o=!0;break}-1===c.row||-1!==c.colCount&&c.colCount!==i||r.push(c)}o?e=n.visibleLength():(s=R(r))>0&&(e=s),l.A3t(e)}},n.prototype.E3t=function(t){this.u3t&&(this.u3t.style.display=t?m:D)},n.prototype.A3t=function(t){var n=this.c3t,i=this.I3t,e=this.vit,o=this.visible,r=!1;this.value=t,i.innerText=e+n+t,!a(t)&&o&&(r=!0),this.E3t(r)},n.prototype.onUpdate=function(){t.prototype.onUpdate.call(this);var n=this,i=n.rLi();a(i)||n.eNi(i.Mf.getSelections())},n.prototype.FM=function(t){if(t){var n=t.menuContent,i=t.tipText;this.menuContent=n,this.vit=n,this.tipText=i,this.u3t.title=i}},n.prototype.onUnbind=function(){var t=this.DJ,n=this.s3t;t&&(t.unbind(o.Events.SelectionChanging+n),t.unbind(o.Events.SelectionChanged+n),t.unbind(o.Events.ActiveSheetChanged+n),this.DJ=f)},n}(r.StatusItem),n.updateStatusBarOnActiveSheetChanged=P,n.processStatusBarOnMouseDown=Q},2221:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.pJr||function(t,n,i,e){function o(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,r){function u(t){try{a(e.next(t))}catch(t){r(t)}}function c(t){try{a(e.throw(t))}catch(t){r(t)}}function a(t){t.done?i(t.value):o(t.value).then(u,c)}a((e=e.apply(t,n||[])).next())}))},d=this&&this.gJr||function(t,n){var i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},e,o,r,u;return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(t){return function(n){return a([t,n])}}function a(c){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(e=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(t,i)}catch(t){c=[6,t],o=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},h=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function v(t){return(null==t?void 0:t.sourceType)===s.Combo}function g(t,n,i,e){return{sheet:t,sheetName:t.name(),col:n,filterValues:i,conditionInfo:i&&0===i.length&&e?e.toJSON():void 0}}Object.defineProperty(n,"__esModule",{value:!0}),n.UndoHelper=n.TableSheetUndoSourceType=n.TableSheetUndoType=void 0,e=i(7234),o=i(1376),r=void 0,u=e.Common.lt,c=u.ht,function(t){t.RowAction="rowAction",t.GroupOptions="groupOptions",t.GroupOutlinePosition="groupOutlinePosition",t.ExpandGroupByLevel="expandGroupBylevel",t.ExpandGroupItem="expandGroupItem",t.OptionChanged="optionChanged",t.ThemeChanged="themeChanged",t.PinnedRowsChanged="pinnedRowsChanged",t.PinnedColumnsChanged="pinnedColumnsChanged",t.DefaultRowHeightChanged="defaultRowHeightChanged",t.ApplyFreeHeaderChanged="applyFreeHeaderChanged",t.ResetViewChanged="resetViewChanged",t.UpdateFilterOnMoved="updateFilterOnMoved",t.FilterColumn="filterColumn",t.SetFilterItemMap="setFilterItemMap",t.RemoveCrosRowFilterInfo="removeCrosRowFilterInfo",t.RemoveRow="removeRow",t.SetDataView="setDataView",t.RemoveColumns="removeColumns",t.AddColumns="addColumns",t.ResetGroupOutline="resetGroupOutline",t.SortMapChanged="sortMapChanged",t.StoreTreeData="storeTreeData",t.ApplyTreeData="applyTreeData",t.ChangeCollapse="changeCollapse"}(a=n.TableSheetUndoType||(n.TableSheetUndoType={})),function(t){t[t.TableSheet=1]="TableSheet",t[t.DataManager=2]="DataManager",t[t.Combo=3]="Combo"}(s=n.TableSheetUndoSourceType||(n.TableSheetUndoSourceType={})),l=function(){function t(t){this.host=t,this.G8=[],this.P8=0,this.Jpi=0,this.DKi=[]}return t.prototype.startTransaction=function(){var t;this.P8++,null===(t=this.view)||void 0===t||t.vCn()},t.prototype.endTransaction=function(){var t,n;return this.P8=Math.max(this.P8-1,0),null===(t=this.view)||void 0===t||t.FCn(),0===this.P8?(n=this.getUndoChanges(),this.TKi(),n):[]},t.prototype.startAddComboChanges=function(){var t={sourceType:s.Combo,changes:[]};this.xKi(t),this.DKi.push(t),this.Jpi++},t.prototype.endAddComboChanges=function(){this.Jpi=Math.max(this.Jpi-1,0),this.DKi.pop()},t.prototype.addUndoChanges=function(t){this.lM()&&(this.PKi(),this.xKi({sourceType:s.TableSheet,changeData:t}))},t.prototype.getUndoChanges=function(){return this.PKi(),this.G8},t.prototype.undo=function(t,n){var i;return void 0===n&&(n=!0),f(this,void 0,void 0,(function(){var e,o,r,u,c,c;return d(this,(function(a){switch(a.label){case 0:this.host.suspendPaint(),e=n?h([],t,!0).reverse():h([],t,!0),o=!0,r=0,a.label=1;case 1:return r<e.length?(u=e[r]).sourceType!==s.DataManager?[3,4]:(c=null===(i=this.view)||void 0===i?void 0:i.Mtt(u.changeData),o=!1,c?[4,c]:[3,3]):[3,6];case 2:a.sent(),a.label=3;case 3:return[3,5];case 4:u.sourceType===s.TableSheet?(c=this.Yqi(u.changeData),o&&!1===c&&(o=c)):u.sourceType===s.Combo&&this.undo(u.changes,!1),a.label=5;case 5:return r++,[3,1];case 6:return this.$qi(o),[2]}}))}))},t.prototype.$qi=function(t){this.host.refreshBindColumns(),this.host.WDi(r,r,t),this.host.tze(),this.host.resumePaint()},t.prototype.xKi=function(t){var n=this.DKi[this.DKi.length-1];n&&this.Jpi>0&&v(n)?n.changes.push(t):this.G8.push(t)},Object.defineProperty(t.prototype,"view",{get:function(){return this.host.getDataView()},enumerable:!1,configurable:!0}),t.prototype.TKi=function(){var t;null===(t=this.view)||void 0===t||t.PEe(),this.G8=[],this.DKi=[],this.P8=0},t.prototype.lM=function(){return this.P8>0},t.prototype.Yqi=function(t){var n,i,e,o,r,u,c,s,l,f,d,h,v,g,M,I=this,b=!0;return t.type===a.RemoveCrosRowFilterInfo||t.type===a.UpdateFilterOnMoved||t.type===a.FilterColumn||t.type===a.SetFilterItemMap?this.ize(t):t.type===a.RowAction?this.host.rowActionOptions(t.oldData):t.type===a.GroupOptions?((n=t.oldData)?this.host.groupBy(n):this.host.removeGroupBy(),b=!1):t.type===a.GroupOutlinePosition?this.host.groupOutlinePosition(t.oldData):t.type===a.ExpandGroupByLevel?(i=t.oldData,e=i.level,o=i.indexs,r=i.expand,o.forEach((function(t){I.host.expandGroupItem(e,t,r)}))):t.type===a.ExpandGroupItem?(c=(u=t.oldData).level,s=u.index,l=u.expand,this.host.expandGroupItem(c,s,l)):t.type===a.OptionChanged?(f=t.key,n=t.oldData,this.host.options[f]=n):t.type===a.ThemeChanged?this.host.applyTableTheme(t.oldData):t.type===a.PinnedRowsChanged?this.host.tze():t.type===a.PinnedColumnsChanged?this.host.nze(t.oldData.oldFilterColumnsMap,t.oldData.oldSortColumnsMap):t.type===a.DefaultRowHeightChanged?this.host.setDefaultRowHeight(t.oldData.size,t.oldData.sheetArea):t.type===a.ApplyFreeHeaderChanged?this.host.applyFreeHeaderArea(t.oldData):t.type===a.ResetViewChanged?(h=(d=t.oldData).columnInfoOptions,v=d.includeDefaultColumns,g=d.options,M=d.oldViewId,this.host.resetNewView(h,v,g,M)):t.type===a.RemoveRow?(this.host.eze(),b=!1):t.type===a.RemoveColumns?this.host.Cze(t.oldCol,t.oldCount):t.type===a.AddColumns?this.host.beo(t.oldCol,t.oldCount):t.type===a.ResetGroupOutline?(this.host.refreshBindColumns(),this.host.WDi()):t.type===a.SortMapChanged?(this.lze(t),b=!1):t.type===a.StoreTreeData||t.type===a.ApplyTreeData?(this.dze(t),b=!1):t.type===a.ChangeCollapse?this.host.vze(t.oldData):t.type===a.SetDataView&&this.host.kTi(this.view),b},t.prototype.dze=function(t){var n=t.type;n===a.ApplyTreeData?this.host.nDi():n===a.StoreTreeData&&this.host.uDi()},t.prototype.lze=function(t){var n=t.oldData,i=this.host.Mf.rowFilter();i.Nze(n)},t.prototype.ize=function(t){var n,i,e,r,u,s,l,f;t.type===a.RemoveCrosRowFilterInfo?this.host.Mf.rowFilter().oze(t.changedData):t.type===a.UpdateFilterOnMoved?(e=t.changedData.map((function(t){return{oldIndex:t.newIndex,newIndex:t.oldIndex}})),this.host.Mf.rowFilter().nTi(e)):t.type===a.FilterColumn?(r=this.host.bze(t.changedData.columnName),c(r)||(this.host.Mf.vCn(),this.host.zA({cmd:"clearFilter",cmdOption:{colIndex:r}}),this.host.Mf.FCn())):t.type===a.SetFilterItemMap&&(s=(u=t.changedData).columnName,l=u.checkedValues,null!==(f=this.host.bze(s))&&(this.host.Mf.ki(o.Events.RangeFiltering,g(this.host.Mf,f,l,null)),this.host.Mf.IB.removeFilterItems(f),(null===(i=null===(n=this.host.Mf)||void 0===n?void 0:n.IB)||void 0===i?void 0:i.setFilterItemMap)&&this.host.Mf.IB.setFilterItemMap(f,l),this.host.Mf.IB.filter(f),this.host.Mf.ki(o.Events.RangeFiltered,g(this.host.Mf,f,l,null))))},t.prototype.PKi=function(){var t,n,i,e=this,o=null!==(n=null===(t=this.view)||void 0===t?void 0:t.LEe())&&void 0!==n?n:[];o.forEach((function(t){e.xKi({sourceType:s.DataManager,changeData:t})})),null===(i=this.view)||void 0===i||i.PEe()},t}(),n.UndoHelper=l},2227:function(n){n.exports=t.Spread.Sheets.CellTypes},2364:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k=this&&this.vJr||(Z=function(t,n){return Z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},Z(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}Z(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),E=this&&this.mJr||function(){return E=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},E.apply(this,arguments)},Z;Object.defineProperty(n,"__esModule",{value:!0}),n.Uze=void 0,e=i(1376),o=i(6114),r=i(447),u=i(3180),c=i(6406),a=i(9756),s=i(5981),l=i(5530),f=i(7879),d=i(7973),h=i(117),v=i(3632),g=i(2611),M=i(9571),I=i(8026),b=i(6656),N=i(8565),D=i(7373),m=i(591),w=i(5168),C=i(7446),y=i(9846),x=i(5203),A=i(2227),T=i(9807),j=i(6423),p=i(7127),z="keydown.definedColumn.gcSheet",L=e.mt,S=L.En,O=function(t){function n(n,i,e){var o,r=t.call(this,n,i)||this;return r.xT=[],(o=r).LEt=e,o.mUe=e.column,o.jUe={},o.Wc=o.Xc(),o._hidden(),r}return k(n,t),n.prototype.LF=function(){var t=this,n=t.Wc;n.css(["box-shadow","width","box-sizing","overflow-y"],["rgba(0, 0, 0, 0.15) 2px 4px 5px","400px","content-box","auto"]),n.addClass("gc-defined-column-container"),n.appendTo(t.qc()),t.CUe(),(0,e.GC$)(m.DOCUMENT).bind(z,(function(n){27===n.keyCode&&t.close()}))},n.prototype.lf=function(n){var i,o=this;return o.jUe.type===r.ColumnTypes.Formula&&(null===(i=(0,e.GC$)(n).attr("class"))||void 0===i?void 0:i.indexOf("gcsj-func-ac"))>-1||t.prototype.lf.call(this,n)},n.prototype.wUe=function(t,n){var i=new c.mZe(t),e=i.create();return(0,m.isNullOrUndefined)(n)||i.setValue(n),{input:i,elem:e}},n.prototype.TUe=function(t,n){var i=this.wUe(t,n),e=i.input,o=i.elem;return this.xT.push(e),o},n.prototype.CUe=function(){var t,n=this,i=n.Wc,u=(0,e.GC$)(S("div"));u.addClass("gc-defined-column-content-container"),u.appendTo(i),n.TUe({inputId:"value",placeholder:(0,o.getSR)().defineColumnValue,validate:{validating:function(t){var i,e,u=n.jUe.type,c=u===r.ColumnTypes.Formula;return!!c||((0,D.isNullOrEmpty)(t)?{success:!1,errorMessage:(0,o.getSR)().defineColumnRequired}:(i=n.LEt.getColumnBy(t),(e=0!==Object.keys(n.mUe).length&&t===n.mUe.value||(!i||!1===i.visible))?!(!c&&(0,m.isFormula)(t)&&u!==r.ColumnTypes.Lookup&&((0,m.isRelation)(t)||n.LEt.isRelationship(t))):{success:!1,errorMessage:(0,o.getSR)().defineColumnExisted}))}},onBlur:function(){n.jUe.type===r.ColumnTypes.Barcode&&n.Sto(n.t())},onChange:function(t){n.jUe.value=t}},n.mUe.value).appendTo(u),n.TUe({inputId:"caption",placeholder:(0,o.getSR)().defineColumnCaption,onChange:function(t){n.jUe.caption=t}},n.mUe.caption).appendTo(u),t=n.AUe(),n.yUe().appendTo(u),t.appendTo(u),n.zUe().appendTo(i)},n.prototype.yUe=function(){var t,n=this,i=new u.pUe({items:n.LEt.columnTypeItems,onChange:function(t){var i,e=n.xT[0],o=e.isDisable();o?(e.resetDisable(),(i=e.value)&&n.LEt.isRelationship(i)&&(e.setValue(m.keyword_null),n.jUe.value=m.keyword_null)):t.name===r.ColumnTypes.Lookup&&n.mUe.value&&n.LEt.isRelationship(n.mUe.value)&&(e.setValue(n.mUe.value),n.jUe.value=n.mUe.value),n.jUe={value:n.jUe.value,caption:n.jUe.caption,type:t.name},n.xUe(t)}}),e=i.create();return(0,m.isNullOrUndefined)(n.mUe.type)?Object.keys(n.mUe).length>0&&("number"===n.mUe.dataType?i.setValue(r.ColumnTypes.Number):"date"===n.mUe.dataType?i.setValue(r.ColumnTypes.Date):"boolean"===n.mUe.dataType?i.setValue(r.ColumnTypes.Checkbox):(0,m.isFormula)(n.mUe.formula)?i.setValue(r.ColumnTypes.Formula):n.LEt.isRelationship(n.mUe.value)?i.setValue(r.ColumnTypes.Lookup):(t=n.LEt.getSampleValue(n.mUe),(0,m.isNumber)(t)?i.setValue(r.ColumnTypes.Number):(0,m.isDate)(t)?i.setValue(r.ColumnTypes.Date):(0,m.isString)(t)?i.setValue(r.ColumnTypes.Text):(0,m.isBoolean)(t)&&i.setValue(r.ColumnTypes.Checkbox))):i.setValue(n.mUe.type),n.xT.push(i),e},n.prototype.Ue=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.formatter?t.jUe.style.formatter:t.mUe&&t.mUe.style&&t.mUe.style.formatter?t.mUe.style.formatter:m.keyword_null},n.prototype.Lto=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.cellType?t.jUe.style.cellType:t.mUe&&t.mUe.style&&t.mUe.style.cellType?t.mUe.style.cellType:m.keyword_null},n.prototype.SUe=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.dropDowns?t.jUe.style.dropDowns[0].option:t.mUe&&t.mUe.style&&t.mUe.style.dropDowns?t.mUe.style.dropDowns[0].option:m.keyword_null},n.prototype.Neo=function(){var t=this;return t.jUe&&t.jUe.trigger&&t.jUe.trigger.fields?t.jUe.trigger.fields:t.mUe&&t.mUe.trigger&&t.mUe.trigger.fields?t.mUe.trigger.fields:m.keyword_null},n.prototype.ono=function(){var t=this,n=t.jUe,i=t.mUe;return Object.keys(i).length>0&&!(0,D.isNullOrEmpty)(i.type)&&i.type!==n.type},n.prototype.uno=function(t){var n,i,e=this;if(e.ono())e.jUe.style=t;else{for(i in(0,m.isNullOrUndefined)(e.jUe.style)&&(e.jUe.style={}),n=e.mUe.style)n.hasOwnProperty(i)&&(e.jUe.style[i]=(0,m.cloneObject)(n[i]));for(i in t)t.hasOwnProperty(i)&&(e.jUe.style[i]=t[i])}},n.prototype.xUe=function(t){var n=this;switch(n.LUe.xT=n.YZe(n.LUe.xT),n.LUe.empty(),t.name){case r.ColumnTypes.Text:n.jUe.dataType="string",n.OUe().appendTo(n.LUe);break;case r.ColumnTypes.Number:n.IZe(1);break;case r.ColumnTypes.Percent:n.IZe(6,r.ColumnTypes.Percent.toLowerCase());break;case r.ColumnTypes.Currency:n.IZe(2,r.ColumnTypes.Currency.toLowerCase());break;case r.ColumnTypes.Lookup:n.ZUe();break;case r.ColumnTypes.Formula:n.kUe();break;case r.ColumnTypes.Phone:n.EUe();break;case r.ColumnTypes.Email:n.UUe();break;case r.ColumnTypes.URL:n.Oto();break;case r.ColumnTypes.Date:n.NZe(4,r.ColumnTypes.Date.toLowerCase());break;case r.ColumnTypes.CreatedTime:n.NZe(4,r.ColumnTypes.CreatedTime.toLowerCase());break;case r.ColumnTypes.ModifiedTime:n.NZe(4,r.ColumnTypes.ModifiedTime.toLowerCase());break;case r.ColumnTypes.Barcode:n.kto();break;case r.ColumnTypes.Attachment:n.Zto();break;case r.ColumnTypes.Checkbox:n.Eto();break;case r.ColumnTypes.Select:n.Uto()}},n.prototype.IZe=function(t,n){var i=this;n=n?"-"+n:"",i.jUe.dataType="number",i.GUe([{typeId:"number-formatting"+n,title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(n){var e=new s.bZe({type:t,formatter:i.Ue(),onChange:function(t){i.uno({mask:{pattern:"[-]{0,1}0{0,}[.]{0,1}0{0,}"},formatter:t})}});e.create().appendTo(n),i.LUe.xT.push(e)}},{typeId:"number-default"+n,title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(t){i.OUe().appendTo(t)}}]).appendTo(i.LUe)},n.prototype.ZUe=function(){var t,n,i=this,e=i.xT[0];e.resetDisable(),t={formattingSelect:m.keyword_null},n=i.BUe(t,"value"),i.GUe([{typeId:"lookup",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(o){var r=new I.RZe({getLookup:function(t){return i.LEt.getLookup(t)},onChange:function(o){t.formattingSelect&&(e.setValue(o),i.jUe.value=o,n())}});r.create(i.jUe.value||i.mUe.value).appendTo(o),i.LUe.xT.push(r)}},{typeId:"lookup-formatting",title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(e){t.formattingSelect=new b.MZe({formatter:i.Ue(),onChange:function(t){i.uno({formatter:t})}}),t.formattingSelect.create().appendTo(e),n(),i.LUe.xT.push(t.formattingSelect)}}]).appendTo(i.LUe)},n.prototype.BUe=function(t,n){var i=this,e=i.LUe.xT,o=e.length,r=function(t){t===e[o].isDisable(1)&&e[o].resetDisable(1)},u=function(){var e=E(E({},i.mUe),i.jUe),o=e[n]&&i.LEt.getSampleValue(e),u=t.formattingSelect&&t.formattingSelect.createFormatting(o);r(u)};return u},n.prototype.kUe=function(){var t,n,i=this;i.jUe.dataType="formula",t={formattingSelect:m.keyword_null},n=i.BUe(t,"formula"),i.GUe([{typeId:"formula",title:(0,o.getSR)().defineColumnFormula,onInitPanel:function(e){var r=new N.vZe({validate:{validating:function(t){return!(0,D.isNullOrEmpty)(t)&&"="!==t||{success:!1,errorMessage:(0,o.getSR)().defineColumnRequired}}},getColumnFields:function(){return i.LEt.getColumnFields()},onChange:function(e){t.formattingSelect&&(i.jUe.formula=e,n())}});r.create().appendTo(e),r.setValue(i.jUe.formula||i.mUe.formula),i.LUe.xT.push(r)}},{typeId:"formula-formatting",title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(e){t.formattingSelect=new b.MZe({formatter:i.Ue(),onChange:function(t){i.uno({formatter:t})}}),t.formattingSelect.create().appendTo(e),n(),i.LUe.xT.push(t.formattingSelect)}}]).appendTo(i.LUe)},n.prototype.Oto=function(){var t,n,i,e=this;e.jUe.dataType="string",(t=e.Lto())&&"hyperlink"===t.type&&(n=t.linkColor,i=t.visitedLinkColor),e.GUe([{typeId:"url",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(o){var r=new p.Gto({linkColor:n,visitedLinkColor:i,onChange:function(n){e.uno({cellType:{type:"hyperlink",linkColor:n.linkColor,visitedLinkColor:n.visitedLinkColor,target:null==t?void 0:t.target}})}});r.create().appendTo(o),e.LUe.xT.push(r)}},{typeId:"url-default",title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(t){e.OUe().appendTo(t)}}]).appendTo(e.LUe)},n.prototype.EUe=function(){this.RUe("phone","1 \\(0{3}\\) 0{3}-0{4}")},n.prototype.UUe=function(){this.RUe("email","[a0._\\-]{1,}@[a0._\\-]{1,}.(com|cn|gov|edu)")},n.prototype.RUe=function(t,n){var i,e=this;e.jUe.dataType="string",i=e.QUe(),e.GUe([{typeId:t,title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(t){var o,r=new w.JZe({pattern:null!==(o=i.pattern)&&void 0!==o?o:n,placeholder:i.placeholder,excludeLiteral:i.excludeLiteral,excludePlaceholder:i.excludePlaceholder,onChange:function(t){e.uno({mask:t})}});r.create().appendTo(t),e.LUe.xT.push(r)}},{typeId:t+"-default",title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(t){e.OUe().appendTo(t)}}]).appendTo(e.LUe)},n.prototype.QUe=function(){var t=this;return t.jUe&&t.jUe.style&&t.jUe.style.mask?t.jUe.style.mask:t.mUe&&t.mUe.style&&t.mUe.style.mask?t.mUe.style.mask:{}},n.prototype.NZe=function(t,n){var i=this;i.GUe(i.PUe(t,n)).appendTo(i.LUe)},n.prototype.PUe=function(t,n){var i,u,c=this,a=n?"-"+n:"";return c.jUe.dataType="date",n!==r.ColumnTypes.CreatedTime.toLowerCase()&&n!==r.ColumnTypes.ModifiedTime.toLowerCase()||(c.jUe.readonly=!0,c.jUe.trigger={formula:"=NOW()",when:n===r.ColumnTypes.CreatedTime.toLowerCase()?"onNew":"onNewAndUpdate"}),n===r.ColumnTypes.CreatedTime.toLowerCase()&&(c.jUe.defaultValue="=NOW()"),i=[],n===r.ColumnTypes.Date.toLowerCase()?(u=c.SUe(),i.push({typeId:"date-time-piker"+a,title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(n){var i=new f.cZe({type:t,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){c.uno({cellButtons:[{imageType:e.ButtonImageType[e.ButtonImageType.dropdown],command:"openDateTimePicker",useButtonStyle:!1,visibility:e.ButtonVisibility[e.ButtonVisibility.always],buttonBackColor:"transparent"}],dropDowns:[{type:e.DropDownType[e.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}}]})}});i.create().appendTo(n),c.LUe.xT.push(i)}})):n===r.ColumnTypes.ModifiedTime.toLowerCase()&&i.push({typeId:"modified-fields"+a,title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(t){var n=new d.KZe({fields:c.Neo(),getTriggerFields:function(){return c.LEt.getTriggerFields()},onChange:function(t){c.jUe.trigger.fields=t.fields}});n.create().appendTo(t),c.LUe.xT.push(n)}}),i.push({typeId:"date-formatting"+a,title:(0,o.getSR)().defineColumnFormatting,onInitPanel:function(t){var n=new l.Wze({formatter:c.Ue(),onChange:function(t){c.uno({formatter:t.formatter})}});n.create().appendTo(t),c.LUe.xT.push(n)}}),i},n.prototype.t=function(){var t=this,n=t.Ue(),i,e=t.jUe.value||t.mUe.value;return i=n?(0,y.parseBarCodeOptions)(t.LEt.getSheet(),n):(0,y.getDefaultBarcodeOptions)(e)},n.prototype.Sto=function(t){var n=this;t.value=(0,y.getFieldRef)(n.jUe.value||n.mUe.value),n.uno({formatter:(0,y.createBarcodeFormula)(n.LEt.getSheet(),t)})},n.prototype.kto=function(){var t=this,n=t.t(),i={container:m.keyword_null};t.Ue()||t.Sto(n),t.GUe([{typeId:"barcode-base",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(e){var o=new C.Ieo({option:n,onChange:function(n,e){t.Sto(n),e&&i.container.reset()}});o.create().appendTo(e),t.LUe.xT.push(o)}},{typeId:"barcode-options",title:(0,o.getSR)().defineColumnOthers,onInitPanel:function(e){var o=i.container=new x.nto({panel:e,option:n,onChange:function(n){t.Sto(n)}});o.create(),t.LUe.xT.push(o)}},{typeId:"barcode-default",title:(0,o.getSR)().defineColumnDefaultValue,onInitPanel:function(n){t.OUe().appendTo(n)}}]).appendTo(t.LUe)},n.prototype.Zto=function(){var t=this,n={type:"fileUpload"},i=t.Lto();t.GUe([{typeId:"attachment",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(o){var r=new h.YQe({fileType:null==i?void 0:i.accept,maxSize:null==i?void 0:i.maxSize,preview:null==i?void 0:i.isPreviewEnabled,download:null==i?void 0:i.isDownloadEnabled,clear:null==i?void 0:i.isClearEnabled,onChange:function(i){n.accept=i.fileType,n.maxSize=i.maxSize,n.isPreviewEnabled=!!i.preview,n.isDownloadEnabled=!!i.download,n.isClearEnabled=!!i.clear,t.uno({hAlign:e.HorizontalAlign[e.HorizontalAlign.center],vAlign:e.VerticalAlign[e.VerticalAlign.center],cellType:n})}});r.create().appendTo(o),t.LUe.xT.push(r)}},{typeId:"attachment-margin",title:(0,o.getSR)().columnTypeAttachmentMarginGroup,onInitPanel:function(e){var o=new v.zQe({marginLeft:null==i?void 0:i.marginLeft,marginRight:null==i?void 0:i.marginRight,marginTop:null==i?void 0:i.marginTop,marginBottom:null==i?void 0:i.marginBottom,onChange:function(t){n.marginLeft=t.marginLeft,n.marginRight=t.marginRight,n.marginTop=t.marginTop,n.marginBottom=t.marginBottom}});o.create().appendTo(e),t.LUe.xT.push(o)}}]).appendTo(t.LUe)},n.prototype.Eto=function(){var t,n=this,i={type:"checkbox"};n.jUe.dataType="boolean",t=n.Lto(),n.GUe([{typeId:"checkbox",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(e){var o=new g.Mto({caption:null==t?void 0:t.caption,boxSize:null==t?void 0:t.boxSize,autoBoxSize:"auto"===(null==t?void 0:t.boxSize),onChange:function(t){i.caption=t.caption,i.boxSize=t.boxSize,t.autoBoxSize&&(i.boxSize="auto"),n.uno({cellType:i})}});o.create().appendTo(e),n.LUe.xT.push(o)}},{typeId:"checkbox-text",title:(0,o.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(e){var o=new M.sto({isThreeState:null==t?void 0:t.isThreeState,checkboxTrue:null==t?void 0:t.textTrue,checkboxFalse:null==t?void 0:t.textFalse,checkboxIndeterminate:null==t?void 0:t.textIndeterminate,checkboxAlign:t?M.CheckBoxTextAlign[t.textAlign]:m.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]}});o.create().appendTo(e),n.LUe.xT.push(o)}}]).appendTo(n.LUe)},n.prototype.Uto=function(){var t=this,n={type:"combobox"},i=t.Lto();t.GUe([{typeId:"combobox",title:(0,o.getSR)().defineColumnConfiguration,onInitPanel:function(e){var o=new T.wto({items:null==i?void 0:i.items,onChange:function(i){n.items=i.items,t.uno({cellType:n})}});o.create().appendTo(e),t.LUe.xT.push(o)}},{typeId:"combobox-text",title:(0,o.getSR)().columnTypeCheckboxTextGroup,onInitPanel:function(e){var o=new j.vto({editorValueType:i?A.EditorValueType[i.editorValueType]:m.keyword_null,itemHeight:null==i?void 0:i.itemHeight,editable:null==i?void 0:i.editable,onChange:function(t){n.editorValueType=A.EditorValueType[t.editorValueType],n.itemHeight=t.itemHeight,n.editable=t.editable}});o.create().appendTo(e),t.LUe.xT.push(o)}}]).appendTo(t.LUe)},n.prototype.GUe=function(t){var n=new a.YUe({items:t});return this.LUe.xT.push(n),n.create()},n.prototype.OUe=function(){var t=this,n=t.wUe({inputId:"defaultValue",placeholder:(0,o.getSR)().defineColumnDefaultValue,onChange:function(n){if("string"!==t.jUe.dataType&&!(0,m.isFormula)(n)&&!(0,D.isNullOrEmpty)(n)){var i=Number(n);Number.isNaN(i)||(n=i)}t.jUe.defaultValue=n}},t.mUe.defaultValue),i=n.input,e=n.elem;return t.LUe.xT.push(i),e},n.prototype.AUe=function(){var t=this,n=t.LUe=(0,e.GC$)(S("div"));return n.xT=[],n.addClass("gc-defined-column-type-config-container"),n},n.prototype.Aoe=function(){var t=this,n=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)if((e=i[n]).validate&&!e.validate())return e.setFocus&&e.setFocus(),!1;return!0};return!!n(t.xT)&&!!n(t.LUe.xT)},n.prototype.zUe=function(){var t,n,i,u,c,a=this,s=(0,e.GC$)(S("div"));return s.addClass("gc-defined-column-footer-container"),(t=(0,e.GC$)(S("div"))).addClass("gc-defined-column-footer-container-buttons"),t.appendTo(s),(n=(0,e.GC$)(S("button"))).addClass("gc-defined-column-footer-container-button ui-button ui-state-default ui-corner-all btn btn-default"),(i=(0,e.GC$)(S("span"))).appendTo(n),i.text((0,o.getSR)().cancel),n.bind("click",(function(){a.close()})),a.xT.push(n),(u=(0,e.GC$)(S("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"),u.appendTo(t),n.appendTo(t),(c=(0,e.GC$)(S("span"))).appendTo(u),c.text((0,o.getSR)().submit),u.bind("click",(function(){var t,n,i,e,u,c=E({},a.jUe);if(a.Aoe()){if(t=c.type===r.ColumnTypes.Formula){if(!(0,D.isNullOrEmpty)(c.value)&&(c.name=c.value,(0,m.isFormula)(c.value)))return;c.value=c.formula,(0,D.isNullOrEmpty)(c.name)&&delete c.dataType,delete c.formula}if((i=(n=Object.keys(a.mUe)).length>0)&&(a.mUe.value===c.value||(0,D.isNullOrEmpty)(c.value))||(e=a.LEt.getColumnBy(c.value))&&!1===e.visible&&(a.mUe=E({},e),a.mUe.visible=!0,i=(n=Object.keys(a.mUe)).length>0),i){if(t&&(0,D.isNullOrEmpty)(c.value)&&(c.value=a.mUe.formula),c.value=c.value||a.mUe.value,c.type=c.type||a.mUe.type,c.caption=c.caption||a.mUe.caption,u=E({},a.mUe),(0,D.isNullOrEmpty)(u.formula)||(u.value=u.formula,delete u.formula),t&&(0,D.isNullOrEmpty)(c.name)&&"formula"===c.dataType&&!(0,D.isNullOrEmpty)(u.name)&&"formula"===u.dataType)return;(0,o.copyOriginalColumnPropertiesToCurrentColumn)(c,u,n),a.LEt.onSaving({cmd:"ModifyColumn",originalColumn:u,column:c})}else c.value&&a.LEt.onSaving({cmd:"DefineColumn",column:c})}})),a.xT.push(u),n.bind("mouseover",(function(){u.addClass("ui-state-hover")})).bind("mouseout",(function(){u.removeClass("ui-state-hover")})),u.bind("mouseover",(function(){u.addClass("ui-state-hover")})).bind("mouseout",(function(){u.removeClass("ui-state-hover")})),s},n.prototype._hidden=function(){var t,n;this.Wc.css(["visibility","display"],["hidden","block"])},n.prototype.$c=function(n){var i,e;this.Wc.css(["visibility"],["visible"]),t.prototype.$c.call(this,n)},n.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&(e.unbind("click"),e.unbind("mouseover"),e.unbind("mouseout"));return[]},n.prototype.L0=function(){var t=this;t.xT=t.YZe(t.xT),t.LUe.xT=t.YZe(t.LUe.xT),t.LUe.empty(),t.LUe=m.keyword_null,(0,e.GC$)(m.DOCUMENT).unbind(z)},n.prototype.close=function(){var n=this;n._hidden(),n.L0(),t.prototype.close.call(this),n.LEt.onClosed()},n.prototype.rQ=function(t,n){var i=this,e=i.Wc;i.LF(),e.css(["left","top"],[t,n]),e.css("max-height",Math.min(window.innerHeight,window.innerHeight-n)+"px"),i.LEt.onOpening(),i.$c(),i.if(),setTimeout((function(){i.Wc.focus(),i.xT[0].setFocus()})),i.LEt.onOpened()},n}(e.zc),n.Uze=O},2611:function(t,n,i){var e,o,r,u,c,a,s,l,f,d=this&&this.mJr||function(){return d=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},d.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Mto=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(6018),c=i(6406),a=i(591),s=e.mt,l=s.En,f=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Qze=(0,e.GC$)(l("div"));return n.addClass("gc-defined-column-column-type-checkbox-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.Qze,i=t.LEt;return t._caption=new c.mZe({inputId:"placeholder",label:{text:(0,o.getSR)().columnTypeCheckboxCaption},placeholder:"",onChange:function(n){t.Ito()}}),t._caption.create().appendTo(n),t._caption.setValue(i.caption),t._boxSize=new u.AZe({inputId:"checkbox-size-limit",minValue:0,label:{text:(0,o.getSR)().columnTypeCheckboxBoxSize},onChange:function(){t.Ito()}}),t._boxSize.create().appendTo(n),t._boxSize.setValue(i.boxSize||12),t.bto=new r.Rze({label:{text:(0,o.getSR)().columnTypeCheckboxAuto},onChange:function(n){n?t._boxSize.isDisable()||t._boxSize.resetDisable():t._boxSize.isDisable()&&t._boxSize.resetDisable(),t.Ito()}}),t.bto.create().appendTo(n),t.bto.setValue(i.autoBoxSize),n},t.prototype.Ito=function(){var t,n,i,e=this;this.LEt.onChange({caption:null===(t=e._caption)||void 0===t?void 0:t.value,boxSize:null===(n=e._boxSize)||void 0===n?void 0:n.value,autoBoxSize:null===(i=e.bto)||void 0===i?void 0:i.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=d(d({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Qze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Qze=a.keyword_null},t.prototype.L0=function(){var t=this;t._caption&&t._caption.dispose(),t._caption=a.keyword_null,t._boxSize&&t._boxSize.dispose(),t._boxSize=a.keyword_null,t.bto&&t.bto.dispose(),t.bto=a.keyword_null},t}(),n.Mto=f},2648:function(n){n.exports=t.Spread.Sheets.FormulaTextBox},2742:function(t,n,i){var e,o,r,u,c,a,s,l,f,d=this&&this.mJr||function(){return d=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},d.apply(this,arguments)},h=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function v(t,n,i,e){if(!n||0===i&&0===e)return n;try{var r=(0,o.formulaToExpression)(t,n,0,0);if(r)return(0,o.expressionToFormula)(t,r,i,e)}catch(t){}return n}function g(t,n,i,e){return A(n)?"="+v(t,n.substring(1),i,e):n}function M(t,n,i,e){var o,r,u,c;if(n&&"object"==typeof n){for(o=0;o<f.length;o++)void 0!==n[r=f[o]]&&(n[r]=g(t,n[r],i,e));if(u=n.iconCriteria,Array.isArray(u))for(o=0;o<u.length;o++)(c=u[o])&&void 0!==c.iconValue&&(c.iconValue=g(t,c.iconValue,i,e))}}function I(t,n,i,o){if(n.formula&&(n.formula=v(t,n.formula,i,o)),void 0!==n.value1&&(n.value1=g(t,n.value1,i,o)),void 0!==n.value2&&(n.value2=g(t,n.value2,i,o)),M(t,n,i,o),n.condition&&b(t,n.condition,i,o),n.sparklineOptions){var r=(0,e.adjustSparklineRuleOptions)(t,n.sparklineOptions,i,o);void 0!==r&&(n.sparklineOptions=r)}}function b(t,n,i,e){n&&(n.formula&&(n.formula=v(t,n.formula,i,e)),n.item1&&b(t,n.item1,i,e),n.item2&&b(t,n.item2,i,e))}function N(t){var n,i,o;if(!t)return t;for(i in n={},t)if(t.hasOwnProperty(i))switch(o=t[i],i){case"hAlign":n.hAlign=e.HorizontalAlign[o];break;case"vAlign":n.vAlign=e.VerticalAlign[o];break;case"backgroundImageLayout":n.backgroundImageLayout=e.ImageLayout[o];break;case"imeMode":n.imeMode=e.ImeMode[o];break;case"textDecoration":"number"==typeof o?o===(e.TextDecorationType.lineThrough|e.TextDecorationType.underline)?n.textDecoration="lineThroughUnderline":o===(e.TextDecorationType.lineThrough|e.TextDecorationType.doubleUnderline)?n.textDecoration="lineThroughDoubleUnderline":n.textDecoration=e.TextDecorationType[o]:n.textDecoration=o;break;case"borderLeft":case"borderTop":case"borderRight":case"borderBottom":case"diagonalDown":case"diagonalUp":n[i]=o?{color:o.color,style:e.LineStyle[o.style]}:o;break;case"backColor":o&&o.type&&!o.stops?n.backColor={type:e.PatternType[o.type],patternColor:o.patternColor,backgroundColor:o.backgroundColor}:n.backColor=o;break;case"cellButtons":n.cellButtons=Array.isArray(o)?o.map(D):o;break;case"dropDowns":n.dropDowns=Array.isArray(o)?o.map(m):o;break;case"labelOptions":n.labelOptions=o?d(d({},o),{alignment:null!==o.alignment?e.LabelAlignment[o.alignment]:o.alignment,visibility:null!==o.visibility?e.LabelVisibility[o.visibility]:o.visibility}):o;break;case"decoration":n.decoration=o?w(o):o;break;default:n[i]=o}return n}function D(t){return{position:null!==t.position?e.ButtonPosition[t.position]:t.position,imageType:null!==t.imageType?e.ButtonImageType[t.imageType]:t.imageType,visibility:null!==t.visibility?e.ButtonVisibility[t.visibility]:t.visibility,captionAlign:null!==t.captionAlign?e.CaptionAlignment[t.captionAlign]:t.captionAlign,useButtonStyle:t.useButtonStyle,enabled:t.enabled,width:t.width,caption:t.caption,imageSrc:t.imageSrc,imageSize:t.imageSize,command:t.command,hoverBackColor:t.hoverBackColor,buttonBackColor:t.buttonBackColor}}function m(t){return{type:null!==t.type?e.DropDownType[t.type]:t.type,option:t.option?C(t.option):t.option,submitCommand:t.submitCommand}}function w(t){var n={};return t.cornerFold&&(n.cornerFold=d({},t.cornerFold),null!==t.cornerFold.position&&(n.cornerFold.position=e.CornerPosition[t.cornerFold.position])),Array.isArray(t.icons)&&(n.icons=t.icons.map((function(t){return d(d({},t),{position:null!==t.position?e.IconPosition[t.position]:t.position})}))),n}function C(t){var n,i,o,r,u={};for(n in t)t.hasOwnProperty(n)&&(u[n]=t[n]);if(null!==(i=t).calendarPage&&(u.calendarPage=e.CalendarPage[i.calendarPage]),null!==i.startDay&&(u.startDay=e.CalendarStartDay[i.startDay]),(o=t).layout){for(n in u.layout={},o.layout)o.layout.hasOwnProperty(n)&&(u.layout[n]=o.layout[n]);null!==o.layout.direction&&(u.layout.direction=e.LayoutDirection[o.layout.direction]),null!==o.layout.displayAs&&(u.layout.displayAs=e.LayoutDisplayAs[o.layout.displayAs])}return null!==o.valueType&&(u.valueType=e.DropdownListValue[o.valueType]),null!==(r=t).direction&&(u.direction=e.LayoutDirection[r.direction]),u}function y(t){var n,i,e={},o=t.ruleType(),u=t.style();switch(u&&(e.style=N(u.toJSON())),o){case r.RuleType.cellValueRule:e.ruleType="cellValueRule",e.comparisonOperator=r.ComparisonOperators[t.operator()],e.value1=t.value1(),e.value2=t.value2();break;case r.RuleType.specificTextRule:e.ruleType="specificTextRule",e.comparisonOperator=r.TextComparisonOperators[t.operator()],e.text=t.text();break;case r.RuleType.formulaRule:e.ruleType="formulaRule",e.formula=t.formula();break;case r.RuleType.dateOccurringRule:e.ruleType="dateOccurringRule",e.type=r.DateOccurringType[t.type()];break;case r.RuleType.top10Rule:e.ruleType="top10Rule",e.type=r.Top10ConditionType[t.type()],e.rank=t.rank(),e.isPercent=t.isPercent();break;case r.RuleType.uniqueRule:e.ruleType="uniqueRule";break;case r.RuleType.duplicateRule:e.ruleType="duplicateRule";break;case r.RuleType.averageRule:e.ruleType="averageRule",e.type=r.AverageConditionType[t.type()];break;case r.RuleType.twoScaleRule:e.ruleType="twoScaleRule",e.minType=r.ScaleValueType[t.minType()],e.minValue=t.minValue(),e.minColor=t.minColor(),e.maxType=r.ScaleValueType[t.maxType()],e.maxValue=t.maxValue(),e.maxColor=t.maxColor();break;case r.RuleType.threeScaleRule:e.ruleType="threeScaleRule",e.minType=r.ScaleValueType[t.minType()],e.minValue=t.minValue(),e.minColor=t.minColor(),e.midType=r.ScaleValueType[t.midType()],e.midValue=t.midValue(),e.midColor=t.midColor(),e.maxType=r.ScaleValueType[t.maxType()],e.maxValue=t.maxValue(),e.maxColor=t.maxColor();break;case r.RuleType.dataBarRule:e.ruleType="dataBarRule",e.minType=r.ScaleValueType[t.minType()],e.minValue=t.minValue(),e.maxType=r.ScaleValueType[t.maxType()],e.maxValue=t.maxValue(),e.color=t.color(),e.gradient=t.gradient(),e.showBarOnly=t.showBarOnly(),e.showBorder=t.showBorder(),e.borderColor=t.borderColor(),e.barDirection=r.BarDirection[t.dataBarDirection()],e.negativeData={negativeFillColor:t.negativeFillColor(),useNegativeFillColor:t.useNegativeFillColor(),negativeBorderColor:t.negativeBorderColor(),useNegativeBorderColor:t.useNegativeBorderColor(),axisColor:t.axisColor(),axisPosition:r.DataBarAxisPosition[t.axisPosition()]};break;case r.RuleType.iconSetRule:e.ruleType="iconSetRule",e.iconSetType=r.IconSetType[t.iconSetType()],e.reverseIconOrder=t.reverseIconOrder(),e.showIconOnly=t.showIconOnly(),(n=t.icons())&&(e.icons=n.map((function(t){return{iconSetType:r.IconSetType[t.iconSetType],iconIndex:t.iconIndex}}))),(i=t.iconCriteria())&&(e.iconCriteria=i.map((function(t){return{isGreaterThanOrEqualTo:t.isGreaterThanOrEqualTo,iconValueType:r.IconValueType[t.iconValueType],iconValue:t.iconValue}})));break;case r.RuleType.sparklineRule:e.ruleType="sparklineRule",e.sparklineType=t.sparklineType(),e.sparklineOptions=p(t.sparklineOptions()),e.showSparklineOnly=t.showSparklineOnly()}return e.stopIfTrue=t.stopIfTrue(),e.priority=t.priority(),e}function x(t){var n,i,e,o={},c=t.type(),a=t.value1(0,0),s=t.value2(0,0);switch(c){case u.CriteriaType.wholeNumber:o.type="number",o.value1=A(a)?a:Number(a),o.value2=A(s)?s:Number(s),o.isIntegerValue=!0;break;case u.CriteriaType.decimalValues:o.type="number",o.value1=A(a)?a:Number(a),o.value2=A(s)?s:Number(s),o.isIntegerValue=!1;break;case u.CriteriaType.date:o.type="date",o.value1=A(a)?a:new Date(a),o.value2=A(s)?s:new Date(s);break;case u.CriteriaType.time:o.type="time",o.value1=A(a)?a:new Date(a),o.value2=A(s)?s:new Date(s);break;case u.CriteriaType.textLength:o.type="textLength",o.value1=A(a)?a:Number(a),o.value2=A(s)?s:Number(s);break;case u.CriteriaType.custom:o.type="formula",o.formula=a;break;case u.CriteriaType.list:A(a)?(o.type="formulaList",o.formula=a):(o.type="list",o.source=a)}return n=t.comparisonOperator(),l(n)||(o.comparisonOperator=r.ComparisonOperators[n]),i=t.errorStyle(),l(i)||(o.errorStyle=u.ErrorStyle[i]),(e=t.highlightStyle())&&(o.highlightStyle={type:u.HighlightType[e.type],color:e.color,position:u.HighlightPosition[e.position],image:e.image}),o.ignoreBlank=t.ignoreBlank(),o.inCellDropdown=t.inCellDropdown(),o.showInputMessage=t.showInputMessage(),o.inputTitle=t.inputTitle(),o.inputMessage=t.inputMessage(),o.showErrorMessage=t.showErrorMessage(),o.errorTitle=t.errorTitle(),o.errorMessage=t.errorMessage(),o}function A(t){return"string"==typeof t&&t.length>1&&"="===t.charAt(0)}function T(t){var n=null==t?void 0:t.ruleType;return!!n&&(n===r.RuleType.rowStateRule||n===r.RuleType.columnStateRule)}function j(t){if(!t)return t;if("function"==typeof t.toJSON)return t.toJSON();try{return JSON.parse(JSON.stringify(t))}catch(n){return t}}function p(t){if(l(t))return t;try{return JSON.parse(JSON.stringify(t))}catch(n){return t}}function z(t){return t===r.RuleType.rowStateRule?c.StateRuleDirection.row:t===r.RuleType.columnStateRule?c.StateRuleDirection.column:void 0}function L(t,n){return l(n)?t===c.RowColumnStates.pin||t===c.RowColumnStates.primaryKey||t===c.RowColumnStates.required?c.ViewArea.colHeader:c.ViewArea.viewport:n}function S(t){return t===c.RowColumnStates.hover||t===c.RowColumnStates.active||t===c.RowColumnStates.selected||t===c.RowColumnStates.dirty||t===c.RowColumnStates.inserted||t===c.RowColumnStates.updated}function O(t){return t===c.RowColumnStates.hover||t===c.RowColumnStates.readonly||t===c.RowColumnStates.active||t===c.RowColumnStates.selected}function k(t){return t===c.RowColumnStates.readonly||t===c.RowColumnStates.pin||t===c.RowColumnStates.primaryKey||t===c.RowColumnStates.required}function E(t,n,i){if(t===c.StateRuleDirection.row)return i===c.ViewArea.viewport&&S(n);if(t===c.StateRuleDirection.column){if(i===c.ViewArea.viewport)return O(n);if(i===c.ViewArea.colHeader)return k(n)}return!1}function Z(t){switch(t){case c.RowColumnStates.hover:return"hover";case c.RowColumnStates.readonly:return"readonly";case c.RowColumnStates.active:return"active";case c.RowColumnStates.selected:return"selected";case c.RowColumnStates.dirty:return"dirty";case c.RowColumnStates.inserted:return"inserted";case c.RowColumnStates.updated:return"updated";case c.RowColumnStates.pin:return"pin";case c.RowColumnStates.primaryKey:return"primaryKey";case c.RowColumnStates.required:return"required";default:return"".concat(t)}}function U(t){switch(t){case c.StateRuleDirection.row:return"row";case c.StateRuleDirection.column:return"column";case c.StateRuleDirection.both:return"both";default:return"none"}}function G(t,n,i){return n===c.StateRuleDirection.column&&i===c.ViewArea.colHeader&&k(t)?Z(t):"".concat(Z(t),"-").concat(U(n),"-style")}function B(t){var n,i,e,o,r,u,c,a;if(!Array.isArray(t)||0===t.length)return[];for(n=[],i=0,e=t;i<e.length;i++)T(o=e[i])&&(r=z(o.ruleType),u=null==o?void 0:o.state,c=j(null==o?void 0:o.style),l(r)||l(u)||!c||E(r,u,a=L(u,null==o?void 0:o.area))&&n.push({name:G(u,r,a),style:c,rule:{direction:r,state:u,area:a}}));return n}function R(t,n,i){var o,r,u,c,a,s,l,f,d=t.conditionalFormats;if(!d||!Array.isArray(i)||0===i.length)return{options:[],rules:[]};for(o=[],r=[],u=[new e.Range(-1,n,-1,1)],c=0,a=i;c<a.length;c++)if((s=a[c])&&!T(s))try{I(t,l=JSON.parse(JSON.stringify(s)),0,n),l.ranges=u,(f=d.pJ(l,t))&&(o.push(y(f)),r.push(f))}catch(t){}return{options:o,rules:r}}function P(t,n,i){var e,o;if(!Array.isArray(i)||!i.length||!t.b8)return{option:null,validator:null};try{if((e=JSON.parse(JSON.stringify(i[0]))).condition&&b(t,e.condition,0,n),e.highlightStyle&&"string"!=typeof e.highlightStyle&&(e.highlightStyle=JSON.stringify(e.highlightStyle)),o=t.b8.yAo(e,t))return{option:x(o),validator:o}}catch(t){}return{option:null,validator:null}}function Q(t,n){var i=Array.isArray(t)?t:[],e=Array.isArray(n)?n:[];return i.length?e.length?h(h([],i,!0),e,!0):i:e}function Y(t,n){var i,e,o=n;return"string"==typeof o&&(i=t.getParent(),o=(e=t.getNamedStyle(o)||(i?i.getNamedStyle(o):null))?e.toJSON():null),o?N(o):null}function H(t,n,i){var e,o,r,u,c,a,s={};return t&&i?(r=l(n)?0:n,i.style&&(u=Y(t,i.style))&&(s.style=u),(null===(e=i.conditionalFormats)||void 0===e?void 0:e.length)&&(c=R(t,r,i.conditionalFormats).options).length>0&&(s.conditionalFormats=c),(null===(o=i.dataValidations)||void 0===o?void 0:o.length)&&(a=P(t,r,i.dataValidations).option)&&(s.validator=a),s):s}function W(t,n,i){var e,o,r,u,c,a,s=t.conditionalFormats;if(!s)return[];for(o=(e=R(t,n,i)).options,u=0,c=r=e.rules;u<c.length;u++)a=c[u],s.addRule(a);return o}function V(t,n,i){var e=P(t,n,i),o=e.option,r=e.validator;return r?(t.setDataValidator(-1,n,r),o):null}Object.defineProperty(n,"__esModule",{value:!0}),n.resolveAndApplyValidator=n.resolveAndApplyConditionalFormats=n.convertNamedCellTemplateToColumnInfo=n.resolveStyleOptions=n.mergeConditionalFormats=n.resolveTemplateStateStyleRules=n.convertStyleJSONToOptions=void 0,e=i(1376),o=i(3789),r=i(8333),u=i(4133),c=i(7373),s=(a=i(7234)).Common.lt,l=s.ht,f=["minValue","midValue","maxValue"],n.convertStyleJSONToOptions=N,n.resolveTemplateStateStyleRules=B,n.mergeConditionalFormats=Q,n.resolveStyleOptions=Y,n.convertNamedCellTemplateToColumnInfo=H,n.resolveAndApplyConditionalFormats=W,n.resolveAndApplyValidator=V},2778:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.ceo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"labelWithStartAndStopCharacter"),t.cto(n,"checkDigit"),t.ato(n,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.cto(n,"fullASCII"),t.oeo(n),n},n}(o.Meo),n.ceo=c},3180:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.pUe=void 0,e=i(1376),o=i(6406),r=i(6114),u=i(7373),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){this.itemContainers=[];var n=this;n.LEt=t,n.jrt=n.ano=c.keyword_null}return t.prototype.WUe=function(t){var n=this;return{inputId:"type-select",type:"text",placeholder:(0,r.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){(n.jrt||n.ano)&&(0,u.isNullOrEmpty)(n.XKt)?(n.jrt=n.jrt||n.ano,n.VUe(n.jrt,t)):n.FUe.setValue()}},onChange:t?c.keyword_null:function(t){n.JUe(t)},onClick:t?function(t){n.FUe.setOptions(n.WUe()),n.FUe.setValue(),n.ano=n.jrt,n.jrt=c.keyword_null,n.LEt.onChange({name:c.keyword_null},t)}:c.keyword_null}},t.prototype.create=function(){var t,n=this,i=n.LEt.items,r=(0,e.GC$)(s("div"));return r.addClass("gc-defined-column-type-select-container"),r.attr("role","combobox"),r.attr("aria-expanded","true"),r.attr("aria-autocomplete","list"),r.attr("aria-controls","gc-defined-column-types-container"),n.FUe=new o.mZe(n.WUe()),n.FUe.create().appendTo(r),(0,c.isNullOrUndefined)(n.jrt)&&i&&i.length>0&&n.XUe().appendTo(r),(t=(0,e.GC$)(s("div"))).addClass("gc-defined-column-field-label-validation-container"),t.appendTo(r),r},t.prototype.XUe=function(){var t=this,n=t.LEt.items,i=t._Ue=(0,e.GC$)(s("div"));return i.addClass("gc-defined-column-types-container"),i.attr("id","gc-defined-column-types-container"),i.attr("role","listbox"),t.tyn(n),i},t.prototype.tyn=function(t){var n,i,o,r,u=this,a=u._Ue;for(null==a||a.parent().attr("aria-expanded",t.length>0?"true":"false"),n=function(t){var n,i,o=(0,e.GC$)(s("div"));u.itemContainers.push(o),o.addClass("gc-defined-column-field-type-container"),o.attr("role","option"),(0,c.isFunction)(u.LEt.onChange)&&o.bind("click",(function(n){u.jrt=t,u.VUe(t,n)})),(n=(0,e.GC$)(s("div"))).addClass("gc-defined-column-field-type-icon "+t.iconClass),n.appendTo(o),(i=(0,e.GC$)(s("div"))).addClass("gc-defined-column-field-type-text"),i.text(t.text||t.name),i.appendTo(o),o.appendTo(a)},i=0,o=t;i<o.length;i++)n(r=o[i])},t.prototype.setValue=function(t){var n,i=this;if(!(0,c.isNullOrUndefined)(t)&&(n=i.LEt.items.find((function(n){return n.name===t}))))return i.jrt=n,void i.VUe(n);i.FUe.setValue()},t.prototype.VUe=function(t,n){var i=this;i.isValid()||i.resetValid(i.validate()),i.FUe.setOptions(i.WUe(t.iconClass)),i.FUe.setValue(t.text||t.name),i.d5(),i.LEt.onChange(t,n)},t.prototype.d5=function(){var t,n,i,e=this;if(e._Ue.empty(),(0,c.isFunction)(e.LEt.onChange))for(t=0,n=e.itemContainers;t<n.length;t++)(i=n[t]).unbind("click")},t.prototype.JUe=function(t){var n,i=this,e=i.LEt.items;i.XKt=t,i.d5(),(0,c.isNullOrUndefined)(t)||""===t?i.tyn(e):(t=t.toLowerCase(),n=e.filter((function(n){return(n.text||n.name).toLowerCase().indexOf(t)>-1})),i.tyn(n))},t.prototype.validate=function(){var t=this;return(0,c.isNullOrUndefined)(t.jrt)?(t.resetValid(!1,{required:!1}),!1):(t.resetValid(!0),!0)},t.prototype.resetValid=function(t,n){var i,o,u,c=this,a=null===(i=c._Ue)||void 0===i?void 0:i.parent();a&&(o=a.find(".gc-defined-column-field-label-validation-container"),u=(0,e.GC$)(o[o.length-1]),t?(a.removeClass("gc-define-column-invalid"),a.attr("aria-invalid","false"),u.hide(),u.empty()):a.hasClass("gc-define-column-invalid")||(a.addClass("gc-define-column-invalid"),a.attr("aria-invalid","true"),!1===n.required&&u.html((0,r.getSR)().defineColumnRequired),u.show()))},t.prototype.isValid=function(){var t,n=this,i=null===(t=n._Ue)||void 0===t?void 0:t.parent();return i&&!i.hasClass("gc-define-column-invalid")},t.prototype.setFocus=function(){this.FUe.setFocus()},t.prototype.dispose=function(){var t=this;t.FUe.dispose(),t.FUe=c.keyword_null,t.d5(),t._Ue=c.keyword_null},t}(),n.pUe=l},3182:function(t,n,i){var e,o,r=this&&this.vJr||(a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},a(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),u=this&&this.pJr||function(t,n,i,e){function o(t){return t instanceof i?t:new i((function(n){n(t)}))}return new(i||(i=Promise))((function(i,r){function u(t){try{a(e.next(t))}catch(t){r(t)}}function c(t){try{a(e.throw(t))}catch(t){r(t)}}function a(t){t.done?i(t.value):o(t.value).then(u,c)}a((e=e.apply(t,n||[])).next())}))},c=this&&this.gJr||function(t,n){var i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},e,o,r,u;return u={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(t){return function(n){return a([t,n])}}function a(c){if(e)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(e=1,o&&(r=2&c[0]?o.return:c[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,c[1])).done)return r;switch(o=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,o=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){i.label=c[1];break}if(6===c[0]&&i.label<r[1]){i.label=r[1],r=c;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(c);break}r[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(t,i)}catch(t){c=[6,t],o=0}finally{e=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},a;function s(t){return void 0===t}Object.defineProperty(n,"__esModule",{value:!0}),n.OverWriteWorkSheet=void 0,o=function(t){function n(n,i,e){var o=t.call(this,n)||this;return o.NMi=i,o.qni=e,o}return r(n,t),n.prototype.Mtt=function(n){return u(this,void 0,void 0,(function(){return c(this,(function(i){switch(i.label){case 0:return this.Ldi(n)?(this.Boo(),[4,this.qni.undo(n)]):[3,2];case 1:return i.sent(),this.zoo(),[3,3];case 2:t.prototype.Mtt.call(this,n),i.label=3;case 3:return[2]}}))}))},n.prototype.vCn=function(){t.prototype.vCn.call(this),this.qni.startTransaction()},n.prototype.FCn=function(){var n=t.prototype.FCn.call(this),i=this.qni.endTransaction();return(null==i?void 0:i.length)>0?i:n},n.prototype.Mno=function(){return!s(this.Ino)},n.prototype.mno=function(){this.Ino={}},n.prototype.Nno=function(){this.Dno(),this.Ino=void 0},n.prototype.jno=function(t){s(this.Ino[t])&&(this.Ino[t]=!0)},n.prototype.Dno=function(){if(this.Ino)for(var t in this.Ino)this.Ino[t]&&this.NMi.iM(void 0,t)},n.prototype.hP=function(){var t=this.parent;return!t||t.getActiveSheetTab()===this.NMi},n.prototype.resumePaint=function(){t.prototype.resumePaint.call(this),this.My<=0&&this.NMi.refreshDataProvider()},n.prototype.repaint=function(){t.prototype.repaint.call(this),this.My<=0&&this.NMi.refreshDataProvider()},n.prototype.Boo=function(){var t,n;null===(n=null===(t=this.parent)||void 0===t?void 0:t.collaboration)||void 0===n||n.suspendOp()},n.prototype.zoo=function(){var t,n;null===(n=null===(t=this.parent)||void 0===t?void 0:t.collaboration)||void 0===n||n.resumeOp()},n.prototype.Ldi=function(t){var n=null==t?void 0:t[0];return!!(null==n?void 0:n.sourceType)},n}((e=i(1376)).Worksheet),n.OverWriteWorkSheet=o},3382:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.seo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"checkDigit"),t.cto(n,"fullASCII"),t.oeo(n),n},n}(o.Meo),n.seo=c},3632:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.zQe=void 0,e=i(1376),o=i(6114),r=i(591),u=i(6018),c=e.mt,a=c.En,s=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.ZQe=(0,e.GC$)(a("div"));return n.addClass("gc-defined-column-attachment-margins-container"),t.ZX()},t.prototype.ZX=function(){var t,n,i,e,r=this,c=r.ZQe,a=r.LEt;return r._marginLeft=new u.AZe({inputId:"attachment-margin-left",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentLeft},onChange:function(){r.QQe()}}),r._marginLeft.create().appendTo(c),r._marginLeft.setValue(null!==(t=a.marginLeft)&&void 0!==t?t:2),r._marginRight=new u.AZe({inputId:"attachment-margin-right",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentRight},onChange:function(){r.QQe()}}),r._marginRight.create().appendTo(c),r._marginRight.setValue(null!==(n=a.marginRight)&&void 0!==n?n:2),r._marginTop=new u.AZe({inputId:"attachment-margin-top",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentTop},onChange:function(){r.QQe()}}),r._marginTop.create().appendTo(c),r._marginTop.setValue(null!==(i=a.marginTop)&&void 0!==i?i:2),r._marginBottom=new u.AZe({inputId:"attachment-margin-bottom",minValue:0,label:{text:(0,o.getSR)().columnTypeAttachmentBottom},onChange:function(){r.QQe()}}),r._marginBottom.create().appendTo(c),r._marginBottom.setValue(null!==(e=a.marginBottom)&&void 0!==e?e:2),c},t.prototype.QQe=function(){var t,n,i,e,o=this;this.LEt.onChange({marginLeft:null===(t=o._marginLeft)||void 0===t?void 0:t.value,marginRight:null===(n=o._marginRight)||void 0===n?void 0:n.value,marginTop:null===(i=o._marginTop)||void 0===i?void 0:i.value,marginBottom:null===(e=o._marginBottom)||void 0===e?void 0:e.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=l(l({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.ZQe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.ZQe=r.keyword_null},t.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},t}(),n.zQe=s},3789:function(n){n.exports=t.Spread.Sheets.CalcEngine},3827:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.feo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.rto(n,"addOn"),t.ato(n,"addOnLabelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}]),t.oeo(n),n},n}(o.Meo),n.feo=c},3889:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j=this&&this.vJr||(p=function(t,n){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},p(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}p(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),p;function z(t,n){var i,e,o=n.getDataView();o&&(i=n.Mf.rowFilter(),(e=n.TLt(o,t,t))&&(n.EPt(),i.UIi()),n.Mf.rowFilter().VIi(t),o.hRe(t),e&&(i.QIi(),n.jPt()),n.restoreView(n.getDataView()))}Object.defineProperty(n,"__esModule",{value:!0}),n.ApplyNamedCellTemplateToTableSheetAction=n.RemoveFromMultiSortAction=n.AddToMultiSortAction=n.TableSheetRemoveColumnInfoAction=n.TableSheetResertViewAction=n.ViewGroupOptionsAction=n.ViewMoveColumnForPanelAction=n.ViewMoveColumnAction=n.ViewAddColumnInfoAction=n.ViewRemoveColumnInfoAction=n.ViewUpdateColumnInfoAction=n.DefineColumnToTableAction=n.RemoveColumnToTableAction=n.ModifyColumnToTableAction=n.ExpandGroupItemAction=n.ExpandGroupAction=n.RemoveRowAction=n.PinRowAction=n.ResetRowAction=n.TableSheetActionBase=void 0,e=i(1376),o=i(7234),r=o.Common.lt.ht,u=e.Commands.ActionBase,c=function(){},a=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),Object.defineProperty(n.prototype,"sheet",{get:function(){return this.Mf},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"sheetTab",{get:function(){return this.sheet.NMi},enumerable:!1,configurable:!0}),n.prototype.execute=function(){var t,n,i=this,o=!1;if(i.canExecute()){n=(t=i.sheet).parent.i4(),e.Commands.II(n),i.X5(t,!0);try{"boolean"!=typeof(o=this.kdi())&&(o=!0)}finally{i.q5(t,!0),e.Commands.xI(n,i.tT)}}return o},n.prototype.undo=function(){var t,n=this,i=n.sheet,o=!1;if(n.canUndo()){n.X5(i,!0);try{t=i.parent.i4(),n.mze(),e.Commands.NI(t,n.tT),this.rbi(),o=!0}finally{n.q5(i,!0)}}return o},n.prototype.mze=function(){},n.prototype.rbi=function(){},n}(u),n.TableSheetActionBase=a,s=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this.tT,n=t.tableSheet,i=t.index;n.Mf.ki(e.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:2,row:i}),n.resetRow(i)},n}(a),n.ResetRowAction=s,l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this.tT,n=t.tableSheet,i=t.index;n.togglePinnedRows([i])},n}(a),n.PinRowAction=l,f=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.execute=function(){var t,n,i=this,o=!1;if(i.canExecute()){t=i.sheet,n=t.parent.i4(),e.Commands.II(n),i.X5(t,!0);try{this.kdi(),o=!0}finally{i.q5(t,!0),setTimeout((function(){e.Commands.xI(n,i.tT)}),0)}}return o},n.prototype.kdi=function(){var t=this.tT,n=t.tableSheet,i=t.index;n.Mf.ki(e.Events.RowOperation,{sheet:n,sheetName:n.name(),actionType:0,row:i}),n.removeRow(i).catch(c)},n}(a),n.RemoveRowAction=f,d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.field,o=n.expand;i.expandGroup(e,o)},n}(a),n.ExpandGroupAction=d,h=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.level,o=n.index,r=n.expand;i.expandGroupItem(e,o,r)},n}(a),n.ExpandGroupItemAction=h,v=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.column,o=n.originalColumn,r=n.col;return i.JEe(r,e,o)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ModifyColumnToTableAction=v,g=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.column,o=n.col;return i.iGe(o,e)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.RemoveColumnToTableAction=g,M=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.column,o=n.col;return i.qFe(o,e)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.DefineColumnToTableAction=M,I=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.columnInfos,o=i.getDataView(),r=o.getColumnInfos(),u=i.Teo(!0)&&e.some((function(t){var n,i=!1!==t.visible,e=r.find((function(n){return n.value===t.value}));return!(!e||i===(n=!1!==e.visible))}));u&&i.qni.startAddComboChanges(),e.forEach((function(t){o.updateColumn(t)})),i.refreshBindColumns(),u&&(i.Seo(),i.qni.endAddComboChanges())},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ViewUpdateColumnInfoAction=I,b=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.value,o=i.getDataView();i.qni.startAddComboChanges(),o.removeColumn(e),i.refreshBindColumns(),i.Seo(),i.qni.endAddComboChanges()},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ViewRemoveColumnInfoAction=b,N=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.columnInfo,o=i.getDataView();o.addColumn(e),i.refreshBindColumns(),i.afterAddViewColumn(e)},n.prototype.rbi=function(){var t;this.sheetTab.refreshBindColumns()},n}(a),n.ViewAddColumnInfoAction=N,D=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.fromColumnOptionIndex,o=n.toColumnOptionIndex,u=n.fromColumnIndex,c=n.toColumnIndex,a=n.count,s=!0;r(e)||r(o)||(s=!i.DPt(e,o)),!s||r(u)||r(c)||r(a)||i.OPt(u,c,a)},n}(a),n.ViewMoveColumnAction=D,m=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t,n,i=this,e=i.tT,o=i.sheetTab,u=e.fromColumnOptionIndex,c=e.toColumnOptionIndex,a=e.fromColumnIndex,s=e.toColumnIndex,l=e.count,f=!0;r(u)||r(c)||(f=!o.DPt(u,c)),!f||r(a)||r(s)||r(l)||o.OPt(a,s,l),o&&(t=o.getDataView(),n=o.Mf.rowFilter(),o.suspendPaint(),o.EPt(),"function"==typeof n.UIi&&n.UIi(),o.resetNewView(t.ILt,t.aPt,t.LEt),"function"==typeof n.QIi&&n.QIi(),o.jPt(),o.resumePaint())},n}(a),n.ViewMoveColumnForPanelAction=m,w=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.groupOptions;(null==e?void 0:e.length)>0?i.groupBy(e):i.removeGroupBy()},n}(a),n.ViewGroupOptionsAction=w,C=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.newConfig,o=e.columnInfoOptions,r=e.includeDefaultColumns,u=e.options;i.resetNewView(o,r,u)},n}(a),n.TableSheetResertViewAction=C,y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheetTab,e=n.index;z(e,i)},n.prototype.rbi=function(){var t=this.sheetTab;t.restoreView(t.getDataView())},n}(a),n.TableSheetRemoveColumnInfoAction=y,x=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheet,e=n.col,o=n.ascending;return i.MIo(e,o)},n}(a),n.AddToMultiSortAction=x,A=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this,n=t.tT,i=t.sheet,e=n.col;return i.IIo(e)},n}(a),n.RemoveFromMultiSortAction=A,T=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return j(n,t),n.prototype.kdi=function(){var t=this.tT,n=this.sheetTab;n.applyNamedCellTemplate(t.templateName,t.fieldNames)},n}(a),n.ApplyNamedCellTemplateToTableSheetAction=T},4036:function(n){n.exports=t.Spread.Sheets.Filter},4133:function(n){n.exports=t.Spread.Sheets.DataValidation},4475:function(n){n.exports=t.Spread.Sheets.AutoMerge},4488:function(t,n,i){var e,o,r;Object.defineProperty(n,"__esModule",{value:!0}),o="CONVERTARRAY",(e=i(5035)).Functions.findGlobalFunction(o)||((r=new e.Functions.Function(o,1,255)).evaluate=function(){var t=[].slice.apply(arguments);return new e.CalcArray([t])},e.Functions.defineGlobalCustomFunction(o,r))},4900:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};function f(){var t=Date.now().toString(),n=Math.floor(1e3*Math.random()).toString().padStart(3,"0");return t+n}Object.defineProperty(n,"__esModule",{value:!0}),n.Kze=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(591),c=e.mt,a=c.En,s=function(){function t(t){var n=this;n.LEt=t,n.KUe=u.keyword_null,n.$Ue="select-input-"+t.inputId||0}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.KUe)||void 0===t?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var t=this;return this.EE().findIndex((function(n){return n.value===t.value}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.KUe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.EE=function(){var t,n=this.LEt,i=n.stickItem,e=n.items;return i?[i].concat(e):e},t.prototype.create=function(){var t,n,i,o,c,s,l,f=this,d=f.LEt,h=f.yZe=(0,e.GC$)(a("div"));return h.addClass("gc-defined-column-field-item-container gc-defined-column-select-box-container"),d.label&&d.label.text&&((n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-field-label-container"),n.appendTo(h),(i=(0,e.GC$)(a("label"))).addClass("gc-defined-column-field-label-container-label-text"),i.attr("for","gc-defined-column-input-"+f.$Ue),i.appendTo(n),i.text(d.label.text)),(o=(0,e.GC$)(a("div"))).addClass("gc-defined-column-select-container"),f.isDisable()&&o.addClass("gc-defined-column-disabled"),f.isVisible()||h.addClass("gc-defined-column-hide"),o.appendTo(h),(c=f.peo=(0,u.createDCElement)("sjs-select")).attr("disabled",f.isDisable()),c.attr("id","gc-defined-column-input-"+d.inputId),c.attr("ariaLabel",null===(t=d.label)||void 0===t?void 0:t.text),(0,u.isNullOrUndefined)(d.defaultValue)||c.attr("value",d.defaultValue),f.LEt.enableSearch&&c.attr("editable",!0),c.attr("no-result-tip",(0,r.getSR)().defineColumnNoResults),(s=f.EE())&&s.length>0&&c.attr("items",JSON.stringify(f.EE().map((function(t){return{value:t.value,label:t.text||t.value}})))),c.bind("input",(function(t){var n,i=t.target.value;(0,u.isNullOrUndefined)(t.target.value)&&(i=u.keyword_null),n=f.EE().find((function(t){return((0,u.isNullOrUndefined)(t.value)?u.keyword_null:t.value)===i})),f.KUe=n,f.LEt.onChange(f.KUe),f.isValid()||f.resetValid(f.validate())})),c.appendTo(o),(l=(0,e.GC$)(a("div"))).addClass("gc-defined-column-field-label-validation-container"),l.appendTo(h),l.hide(),h},t.prototype.setValue=function(t,n){var i=this;i.setIndex(i.EE().findIndex((function(n){return n.value===t})),n)},t.prototype.setIndex=function(t,n){var i,e=this;if(!(0,u.isNullOrUndefined)(t)&&t>-1&&(i=e.EE()[t]))return e.KUe=i,void e.qUe(i,null==n||n);e.qUe(u.keyword_null)},t.prototype.setOptions=function(t){var n=this,i=n.LEt.items!==t.items;n.LEt=l(l({},n.LEt),t),i&&n.peo.setItems(n.EE().map((function(t){return{value:t.value,label:t.text||t.value}}))),n.setValue()},t.prototype.qUe=function(t,n){var i=this;t?i.peo.val(t.value):(i.KUe=u.keyword_null,i.peo.val(u.keyword_null)),n&&i.LEt.onChange(t)},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.peo.parent();t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),t.peo.bur(!n)},t.prototype.isVisible=function(){return!0!==this.LEt.hide},t.prototype.resetVisible=function(){var t=this,n=t.isVisible(),i=t.yZe;t.LEt.hide=n,n?i.addClass("gc-defined-column-hide"):i.removeClass("gc-defined-column-hide"),i.attr("aria-hidden",n?"true":"false")},t.prototype.validate=function(){var t,n=this,i=n.LEt.validate,e=!n.isDisable();if(i&&e){if(i.required&&(0,o.isNullOrEmpty)(n.value))return n.resetValid(!1,{required:!1}),!1;if(i.validating)if("boolean"==typeof(t=i.validating(n.value))){if(!t)return n.resetValid(!1),!1}else if(!t.success)return n.resetValid(!1,t),!1}return n.resetValid(!0),!0},t.prototype.resetValid=function(t,n){var i=this,o=i.peo,u=o.parent(),c=(0,e.GC$)(i.yZe.find(".gc-defined-column-field-label-validation-container")[0]);t?(u.removeClass("gc-define-column-invalid"),o.removeClass("gc-define-column-invalid"),o.attr("aria-invalid","false"),c.hide(),c.empty()):u.hasClass("gc-define-column-invalid")||(u.addClass("gc-define-column-invalid"),o.addClass("gc-define-column-invalid"),o.attr("aria-invalid","true"),!1===n.required?c.html((0,r.getSR)().defineColumnRequired):n.errorMessage&&c.html(n.errorMessage),n&&c.show())},t.prototype.isValid=function(){var t,n;return!this.peo.parent().hasClass("gc-define-column-invalid")},t.prototype.dispose=function(t){var n=this;n.peo.unbind("input"),n.peo=u.keyword_null,t&&n.yZe.remove(),n.yZe=u.keyword_null},t}(),n.Kze=s},5035:function(n){n.exports=t.Spread.CalcEngine},5065:function(n){n.exports=t.Spread.Sheets.Print},5168:function(t,n,i){var e,o,r,u,c,a,s,l,f,d=this&&this.mJr||function(){return d=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},d.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.JZe=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(7553),c=i(6406),a=null,s=e.mt,l=s.En,f=function(){function t(t){var n=this;n.LEt=t,n.y4={pattern:t.pattern,placeholder:t.placeholder,excludeLiteral:t.excludeLiteral,excludePlaceholder:t.excludePlaceholder}}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i,s,f,h=this,v=h.LEt,g=v.onChange,M=(0,e.GC$)(l("div"));return M.addClass("gc-defined-column-mask-container"),(t=h.XZe=new c.mZe({inputId:"pattern",label:{text:(0,r.getSR)().columnTypeMask.pattern},onChange:function(t){h.y4.pattern=(0,o.isNullOrEmpty)(t)?v.pattern:t,g&&g(d({},h.y4))}})).create().appendTo(M),v.pattern&&t.setValue(v.pattern),(n=h._Ze=new c.mZe({inputId:"placeholder",maxLength:1,label:{text:(0,r.getSR)().columnTypeMask.placeholder},onChange:function(t){h.y4.placeholder=(0,o.isNullOrEmpty)(t)?a:t,g&&g(d({},h.y4))}})).create().appendTo(M),v.placeholder&&n.setValue(v.placeholder),(i=(0,e.GC$)(l("div"))).addClass("gc-defined-column-mask-exclude-container"),i.appendTo(M),(s=h.Lse=new u.Rze({label:{text:(0,r.getSR)().columnTypeMask.excludeLiteral},onChange:function(t){h.y4.excludeLiteral=t,g&&g(d({},h.y4))}})).create().appendTo(i),v.excludeLiteral&&s.setValue(v.excludeLiteral),(f=h.Fse=new u.Rze({label:{text:(0,r.getSR)().columnTypeMask.excludePlaceholder},onChange:function(t){h.y4.excludePlaceholder=t,g&&g(d({},h.y4))}})).create().appendTo(i),v.excludePlaceholder&&f.setValue(v.excludePlaceholder),M},t.prototype.dispose=function(){var t=this;t.XZe.dispose(),t.XZe=a,t._Ze.dispose(),t._Ze=a,t.Lse.dispose(),t.Lse=a,t.Fse.dispose(),t.Fse=a},t}(),n.JZe=f},5203:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v;Object.defineProperty(n,"__esModule",{value:!0}),n.nto=void 0,e=i(8033),o=i(3827),r=i(5947),u=i(6153),c=i(2778),a=i(1633),s=i(3382),l=i(1090),f=i(6944),d=i(1649),h=i(6045),v=function(){function t(t){var n=this;n.LEt=t,n.xT=[]}return t.prototype.create=function(){var t;this.ZX()},t.prototype.ZX=function(){var t;this.ito()},t.prototype.oto=function(t){var n=this,i=n.LEt.option,e=n.LEt.panel,o=new t({option:i,onChange:function(t){n.Z_i(t)}});o.create().appendTo(e),n.xT.push(o)},t.prototype.ito=function(){var t=this,n,i;switch(t.LEt.option.barcodeType){case"QRCODE":t.oto(h.uto);break;case"EAN13":t.oto(o.feo);break;case"EAN8":t.oto(r.deo);break;case"CODABAR":t.oto(e.ueo);break;case"CODE39":t.oto(c.ceo);break;case"CODE93":t.oto(s.seo);break;case"CODE128":t.oto(u.aeo);break;case"GS1_128":t.oto(f.heo);break;case"CODE49":t.oto(a.reo);break;case"PDF417":t.oto(d.geo);break;case"DATAMATRIX":t.oto(l.leo)}},t.prototype.Z_i=function(t){var n,i=this.LEt.onChange;i&&i(t)},t.prototype.reset=function(){var t=this;t.d5(),t.ZX()},t.prototype.d5=function(){var t=this;t.LEt.panel.empty(),t.xT=t.YZe(t.xT)},t.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&e.unbind("click");return[]},t.prototype.dispose=function(){var t=this;t.xT=t.YZe(t.xT)},t}(),n.nto=v},5530:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I=this&&this.mJr||function(){return I=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},I.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Wze=void 0,e=i(7234),o=i(1376),r=i(6114),u=i(7553),c=i(7324),a=i(1163),s=i(9266),l=i(4900),f=i(591),d=o.mt,h=d.En,v="3/14/2001 13:30:00",g=e.Common.CultureManager,M=function(){function t(t){var n;this.Hze=g.getCultureInfo(1041),this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Vze=(0,o.GC$)(h("div"));return n.addClass("gc-defined-column-date-formatting-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.LEt,i=t.Vze,e=(0,a.parseFormat)(n.formatter);return t.Fze=new c.Jze({label:{text:(0,r.getSR)().columnTypeDateType},items:[],onChange:function(){t.Xze()}}),t.Fze.create().appendTo(i),t.Fze.setIndex(e.index||0),t._ze=new l.Kze({inputId:"date-locale",items:(0,a.getListItems)(4),label:{text:(0,r.getSR)().columnTypeDateLocale},onChange:function(){t.$ze(),t.qze(),t.tZe()}}),t._ze.create().appendTo(i),e.locale?t._ze.setValue(e.locale):t._ze.setIndex(0),t.nZe=new l.Kze({inputId:"date-locale",hide:"ja-jp"!==e.locale,items:[{text:(0,r.getSR)().columnTypeCalendarType.western,value:"western"},{text:(0,r.getSR)().columnTypeCalendarType.JER,value:"JER"}],label:{text:(0,r.getSR)().columnTypeCalendar},onChange:function(){t.qze(),t.tZe()}}),t.nZe.create().appendTo(i),t.nZe.setValue(e.calendarType||"western"),t.iZe=new u.Rze({hide:"JER"!==e.calendarType,label:{text:(0,r.getSR)().columnTypeShowEraFirstYear},onChange:function(){t.tZe()}}),t.iZe.create().appendTo(i),t.iZe.setValue(1===e.numberSystem),t.eZe().appendTo(i),t.tZe(),i},t.prototype.tZe=function(){var t,n,i,e,o,u,c,s,l=null===(t=this._ze)||void 0===t?void 0:t.value,f=null===(n=this.nZe)||void 0===n?void 0:n.value,d=new Date(v),h=[],g=[],M=[];if(l&&f&&(M=(0,a.getPredefinedFormats)(l,a.formatCategories[4])),l===this.Hze.name().toLowerCase()&&"JER"===f)for(i=(0,r.getSR)().columnTypeNumberFormatting.japanEmperorReignDateFormat,e=0;e<i.length;e++)o=this.iZe&&this.iZe.value,1===e&&o?(h.push(this.Re(d,(0,r.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[e])),g.push((0,r.getSR)().columnTypeNumberFormatting.japanEmperorReignFirstYearDateFormat[e])):(h.push(this.Re(d,i[e])),g.push(i[e]));else for(e=0;e<M.length;e++)u=this.Re(d,M[e]),h.push(u),g.push(M[e]);for(c=[],e=0;e<h.length;e++)c.push({text:h[e],value:g[e]});s=this.Fze.index,this.Fze.setOptions({items:c}),this.Fze.setIndex(Math.max(s,0))},t.prototype.Xze=function(){var t=this,n=t.oZe();t.LEt.onChange({formatter:n})},t.prototype.$ze=function(){var t,n,i,e,o,r=this,u=(null===(t=this._ze)||void 0===t?void 0:t.value)===this.Hze.name().toLowerCase();u?(null===(n=r.nZe)||void 0===n?void 0:n.isVisible())||null===(i=r.nZe)||void 0===i||i.resetVisible():(null===(e=r.nZe)||void 0===e?void 0:e.isVisible())&&(null===(o=r.nZe)||void 0===o||o.resetVisible())},t.prototype.qze=function(){var t,n,i,e,o,r,u,c,a=this,s=(null===(t=this._ze)||void 0===t?void 0:t.value)===this.Hze.name().toLowerCase(),l="JER"===(null===(n=this.nZe)||void 0===n?void 0:n.value);s?l?(null===(i=a.iZe)||void 0===i?void 0:i.isVisible())||null===(e=a.iZe)||void 0===e||e.resetVisible():(null===(o=a.iZe)||void 0===o?void 0:o.isVisible())&&(null===(r=a.iZe)||void 0===r||r.resetVisible()):(null===(u=a.iZe)||void 0===u?void 0:u.isVisible())&&(null===(c=a.iZe)||void 0===c||c.resetVisible())},t.prototype.oZe=function(){var t,n=this,i=this.Fze.value,e=new Date(v);return null===(t=n.uZe)||void 0===t||t.setText(n.Re(e,i)),i},t.prototype.eZe=function(){var t=this,n=t.uZe=new s.rZe;return n.create()},t.prototype.Re=function(t,n){var i;return new e.Formatter.GeneralFormatter(n).format(t)},t.prototype.setOptions=function(t){var n=this;n.LEt=I(I({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Vze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Vze=f.keyword_null},t.prototype.L0=function(){var t=this;t.Fze&&t.Fze.dispose(),t.Fze=f.keyword_null,t._ze&&t._ze.dispose(),t._ze=f.keyword_null,t.nZe&&t.nZe.dispose(),t.nZe=f.keyword_null,t.iZe&&t.iZe.dispose(),t.iZe=f.keyword_null,t.uZe.dispose(),t.uZe=f.keyword_null},t}(),n.Wze=M},5947:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.deo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.oeo(n),n},n}(o.Meo),n.deo=c},5981:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b=this&&this.mJr||function(){return b=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},b.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.bZe=void 0,e=i(7234),o=i(1376),r=i(6114),u=i(6018),c=i(7553),a=i(7324),s=i(1163),l=i(9266),f=i(4900),d=i(591),h=e.Formatter&&e.Formatter.GeneralFormatter,v=o.mt,g=v.En,M=v.St,I=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.fUe=(0,o.GC$)(g("div"));return n.addClass("gc-defined-column-number-formatting-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.LEt,i=t.fUe,e=(0,s.parseFormat)(n.formatter),o=n.type||e.category;return t.dUe=new u.AZe({inputId:"number-formatting-decimal-places",maxValue:16,label:{text:(0,r.getSR)().columnTypeNumberFormattingDecimalPlaces},onChange:function(){6!==o&&t.gUe.setOptions({items:t.MUe()}),t.Xze()}}),t.dUe.create().appendTo(i),6===o?(t.eZe().appendTo(i),t.dUe.setValue((0,d.isNullOrUndefined)(e.decimalPlaces)?2:e.decimalPlaces),i):(2===o?((0,d.isNullOrUndefined)(e.locale)&&n.formatter&&1===e.category&&(e.locale=(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]),t.oUt=new f.Kze({inputId:"number-formatting-symbol",items:(0,s.getListItems)(2,[{text:(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0],value:(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]}]),label:{text:(0,r.getSR)().columnTypeNumberFormattingSymbol},onChange:function(){t.gUe.setOptions({items:t.MUe()}),t.Xze()}}),t.oUt.create().appendTo(i)):(t.hUe=new c.Rze({label:{text:(0,r.getSR)().columnTypeNumberFormattingThousandSeparator},onChange:function(){t.gUe.setOptions({items:t.MUe()}),t.Xze()}}),t.hUe.create().appendTo(i)),t.gUe=new a.Jze({label:{text:(0,r.getSR)().columnTypeNumberFormattingNegativeNumbers},items:t.MUe(),onChange:function(){t.Xze()}}),t.gUe.create().appendTo(i),t.eZe().appendTo(i),t.gUe.setIndex(0),t.dUe.setValue((0,d.isNullOrUndefined)(e.decimalPlaces)?2:e.decimalPlaces),2===o?e.locale?t.oUt.setValue(e.locale):t.oUt.setIndex(1):t.hUe.setValue(e.useThousand||!1),t.gUe.setIndex((0,d.isNullOrUndefined)(e.index)?0:e.index),i)},t.prototype.Xze=function(){var t=this,n=t.oZe();t.LEt.onChange(n)},t.prototype.oZe=function(){var t,n,i=this;return t=6===i.LEt.type?i.IUe(i.dUe.value):2===i.LEt.type?i.bUe(i.gUe.value):i.NUe(i.gUe.index,i.dUe.value,i.hUe.value),n=i.Re("12345",t),i.uZe.setText(n),t},t.prototype.IUe=function(t){var n,i,e="";if(t>0){for(i=0;i<t;i++)e+="0";n="0."+e+"%"}else n="0%";return n},t.prototype.bUe=function(t){return t},t.prototype.NUe=function(t,n,i){var e,o,u=(0,r.getSR)().columnTypeNumberFormatting.numberCategoryFormats,c=u.length/2,a=u[t];if(i&&(a=u[t+c]),n>0){for(e="",o=0;o<n;o++)e+="0";a=a.replace(/0/g,"0."+e)}return a},t.prototype.MUe=function(){var t=this,n;return 2===t.LEt.type?t.vUe():t.DUe()},t.prototype.DUe=function(){var t,n,i,e,o,u,c,a,s,l,f,h="1234.10",v=this.dUe.value,g=this.hUe&&this.hUe.value;if(v>0){for(t="",n=0;n<v;n++)t=(n%10).toString()+t.substring(0);h=h.substring(0,h.indexOf(".")+1)+t}else h=h.substring(0,h.indexOf("."));for(g&&(i=h.indexOf("1"),h=h.substring(0,i+1)+","+h.substring(i+1)),e=[],o=(0,r.getSR)().columnTypeNumberFormatting.negativeNumbers,u=0,c=Object.keys(o);u<c.length;u++)s=h,-1!==(l=o[a=c[u]]).indexOf("-")&&(s="-"+s),-1!==l.indexOf(")")&&(s="("+s+")"),-1!==l.indexOf("\u25b3")&&(s="\u25b3"+s),-1!==l.indexOf("\u25b2")&&(s="\u25b2"+s),f={text:s,value:a,class:d.keyword_null},-1!==a.indexOf("red")&&(f.class="gc-defined-column-number-formatting-negative-item"),e.push(f);return e},t.prototype.vUe=function(){var t,n,i,o,u,c,a,l,f,h,v,g,M,I,b,N=this.dUe.value,D=this.oUt.value,m=[],w="-1234",C="",y="";if(N>0){for(y="."+Array(N).fill(0).join(""),t=Array(N),n=0;n<N;)t[n]=n%10,n++;t.reverse(),C=t.join("")}for(o=parseFloat(i=w+"."+C),u=(0,d.isNullOrUndefined)(D)||D===(0,r.getSR)().columnTypeNumberFormatting.accountingSymbol[0][0]?(0,r.getSR)().columnTypeNumberFormatting.currencyFormatWithoutSymbol:(0,s.getPredefinedFormats)(D,s.formatCategories[2]),c=/(\[[^\$^\]]+\])?(\[\$[^\]]+\])?(.*)(0)([^\[]*)(\[\$[^\]]+\])?/,a=0,l=u.length;a<l;a++)h=(f=u[a]).split(";"),v=(0,s.beforeAdjustFormatString)(h),h=h.map((function(t){return t.replace(c,(function(){var t,n,i=[];for(t=1;t<7;t++)n=arguments[t],(0,d.isNullOrUndefined)(n)||(2!==t&&6!==t&&(n=n.replace(s.decimalPlacesWithZeroDotReg,"0"+y)),i.push(n));return i.join("")}))})),(0,s.afterAdjustFormatString)(h,v),f=h.join(";"),g={},b={text:I=(M=new e.Formatter.GeneralFormatter(f)).format(o,g),value:f},(g.conditionalForeColor&&"red"===g.conditionalForeColor.toLowerCase()||"#FF0000"===g.conditionalForeColor)&&(b.class="gc-defined-column-number-formatting-negative-item"),m.push(b);return m},t.prototype.eZe=function(){var t=this,n=t.uZe=new l.rZe;return n.create()},t.prototype.Re=function(t,n){var i,e;return M(n)?(i=(0,d.isNullOrUndefined)(t)?0:t,n.replace(/@/g,i)):(e=new h(n)).format(t)},t.prototype.setOptions=function(t){var n=this;n.LEt=b(b({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.fUe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.fUe=d.keyword_null},t.prototype.L0=function(){var t=this;t.dUe.dispose(),t.dUe=d.keyword_null,t.hUe&&t.hUe.dispose(),t.hUe=d.keyword_null,t.gUe&&t.gUe.dispose(),t.gUe=d.keyword_null,t.oUt&&t.oUt.dispose(),t.oUt=d.keyword_null,t.uZe.dispose(),t.uZe=d.keyword_null},t}(),n.bZe=I},6018:function(t,n,i){var e,o,r,u,c=this&&this.mJr||function(){return c=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},c.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.AZe=void 0,e=i(1376),o=i(591),r=e.mt.En,u=function(){function t(t){var n;this.LEt=t}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.DZe)||void 0===t?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i,u,c=this,a=c.LEt,s=c.yZe=(0,e.GC$)(r("div"));return s.addClass("gc-defined-column-field-item-container gc-defined-column-input-number"),a.label&&a.label.text&&((t=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-label-container"),t.appendTo(s),(n=(0,e.GC$)(r("label"))).addClass("gc-defined-column-field-label-container-label-text"),n.attr("for","gc-defined-column-input-"+a.inputId),n.appendTo(t),i=a.label.useRawContent?a.label.text:(0,o.j0)(a.label.text),n.html(i)),(u=c.zZe=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-container"),u.appendTo(s),c.ZX(),s},t.prototype.ZX=function(){var t,n,i,u=this,c=u.LEt;!1===c.visible?u.yZe.hide():u.yZe.show(),t=u.zZe,u.isDisable()&&t.addClass("gc-defined-column-disabled"),(n=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-input-container"),n.appendTo(t),(i=u.DZe=(0,o.createDCElement)("sjs-number-editor")).attr("id","gc-defined-column-input-"+c.inputId),i.attr("type","text"),i.attr("aria-disabled",u.isDisable()?"true":"false"),u.isDisable()?i.attr("disabled","true"):i.removeAttr("disabled"),c.placeholder&&i.attr("placeholder",c.placeholder),(c.label&&c.label.text||c.placeholder)&&i.attr("aria-label",c.label&&c.label.text||c.placeholder),(0,o.isNullOrUndefined)(c.defaultValue)||i.val(c.defaultValue),i.attr("min",u.yeo()),(0,o.isNumber)(c.maxValue)&&i.attr("max",c.maxValue),c.allowMinNull&&(i.attr("allow-empty",!0),i.attr("empty-value",u.yeo())),i.bind("input",(function(t){var n=t.target.value;u.isDisable()||c.onChange&&c.onChange(n,t)})),i.appendTo(n)},t.prototype.setFocus=function(){var t;this.DZe.focus()},t.prototype.setOptions=function(t){var n=this;n.L0(),n.LEt=c(c({},n.LEt),t),n.ZX()},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.zZe;t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),t.DZe.attr("aria-disabled",n?"false":"true"),n?t.DZe.removeAttr("disabled"):t.DZe.attr("disabled","true")},t.prototype.yeo=function(){var t=this;return(0,o.isNumber)(t.LEt.minValue)?t.LEt.minValue:0},t.prototype.setValue=function(t){var n=this;n.DZe.val((0,o.isNumber)(t)?t:n.yeo()),(0,o.triggerEvent)(n.DZe,"input")},t.prototype.dispose=function(){var t=this;t.L0(),t.zZe=o.keyword_null,t.yZe=o.keyword_null},t.prototype.L0=function(){var t=this;t.DZe.unbind("input"),t.DZe=o.keyword_null,t.zZe.empty()},t}(),n.AZe=u},6045:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.uto=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ato(n,"errorCorrectionLevel",[{text:"L",value:"L"},{text:"M",value:"M"},{text:"Q",value:"Q"},{text:"H",value:"H"}]),t.cto(n,"connection"),t.ato(n,"model",[{text:"2",value:2},{text:"1",value:1}]),t.ato(n,"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.ato(n,"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.rto(n,"charCode"),t.ato(n,"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.ato(n,"charset",[{text:"UTF-8",value:"UTF-8"},{text:"Shift_JIS",value:"Shift_JIS"}]),n},n}(o.Meo),n.uto=c},6114:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P,Q,Y,H,W,V,F,J,_,X,K,q,$,tt,nt,it,et,ot,rt,ut,ct,at,st,lt=this&&this.mJr||function(){return lt=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},lt.apply(this,arguments)},ft=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function dt(t,n){return Array.isArray(t)?n?t.toString():vt(t):t}function ht(t,n){return t?gt(n?"["+t+"]":t):t}function vt(t){var n=t;return Array.isArray(t)&&(n="["+t.toString()+"]"),n}function gt(t){var n=t;return t&&"["===t[0]&&"]"===t[t.length-1]&&(n=t.substring(1,t.length-1).split(",")),n}function Mt(t,n,i){var e,o,r;t.value=t.value||n.value,t.type=t.type||n.type,t.caption=t.caption||n.caption,e=t.type!==n.type,o=n.type===u.ColumnTypes.CreatedTime||n.type===u.ColumnTypes.ModifiedTime,r=t.type===u.ColumnTypes.Formula,(i=i||Object.keys(n)).forEach((function(i){if(!t.hasOwnProperty(i)){if(e){if("defaultValue"===i||"dataType"===i||"style"===i||"_"===i[0])return;if(o&&("trigger"===i||"readonly"===i))return;if(!r&&"name"===i)return}t[i]=n[i]}}))}function It(t){return A(t)||t!==u.GroupLayoutMode.outline&&t!==u.GroupLayoutMode.condensed?u.GroupLayoutMode.tabular:t}function bt(t){return"header"===t||"footer"===t?t:_}function Nt(t,n,i){Object.defineProperty(t,n,{get:function(){return this["_"+n]},set:function(t){var e,o,r,u=this["_"+n];if(u!==t){if(i)return o=(e=i(n,t,u))[0],r=e[1],this["_"+n]=o,void(r&&r());this["_"+n]=t}},configurable:!0})}function Dt(t){return"gc-defined-column-type-icon-".concat(t.toLowerCase())}function mt(t){return t&&"="===t[0]}function wt(t){return t&&t.indexOf(".")>-1}function Ct(t){return"number"==typeof t}function yt(t){return"string"==typeof t}function xt(t){return"boolean"==typeof t}function At(t,n){return Ct(t[n])}function Tt(t){return t instanceof Function}function jt(t,n){var i,e,o,r,u;if(t.collapsed)for(i=t.start+1;i<=t.end;i++)(e=n[i])?e.visible=!1:n[i]={visible:!1};else if(t.children)for(o=0,r=t.children;o<r.length;o++)jt(u=r[o],n)}function pt(t,n){var i,e,o,r,u,c=n&&n.grouping&&n.grouping.tree;if(c)for((i=t.rows)||(i=t.rows=[]),o=0,r=e=c.children;o<r.length;o++)jt(u=r[o],i)}function zt(t){var n,i,e,o,r,u;if(t)return n=t.step||[1,1],i=t.style,e=A(n[0])?1:n[0],o=A(n[1])?1:n[1],i?(r=void 0,u=void 0,Array.isArray(i)?(r=i[0],u=i[1]):r=i,{fillRowStep:e,fillRowStyle:r,blankRowStep:o,blankRowStyle:u}):void 0}function Lt(t,n,i,e){var o,r;t[n]||(t[n]={}),(o=t[n])[i]||(o[i]={}),(r=o[i]).style=e}function St(t,n,i,e){var o,r,u,c,a,s=t.JS(n,e),l=s.row,f=s.col;for(o=0,r=s.rowCount;o<r;o++)for(u=0,c=s.colCount;u<c;u++)a=t.getActualStyle(l+o,f+u,e).toJSON(),T(a)||Lt(i,l+o,f+u,a)}function Ot(t,n,i){n&&(t.oNi=!0,n.rules.forEach((function(n){n.ranges.forEach((function(n){St(t,n,i)}))})),t.oNi=!1)}function kt(t){return!!((null==t?void 0:t.gp)||(null==t?void 0:t.cb)===o.OpenSaveFileType.excel&&(null==t?void 0:t.saveAsView)&&!1!==(null==t?void 0:t.includeBindingSource))}function Et(t,n){var i,e,o,r,u,c,a,s,l,f,d,h,v,g=n.data;if(g&&(i=t.getDataView())&&(e=t.Mf,o=g.dataTable||(g.dataTable={}),r=e.getRowCount(),c=(u=i.getColumnInfos()).map((function(t,n){var i=!A(null==t?void 0:t.showNullAs),e=!A(null==t?void 0:t.showEmptyAs);return i||e?{col:n,showNullAs:i?""+t.showNullAs:_,showEmptyAs:e?""+t.showEmptyAs:_}:_})).filter((function(t){return!!t})),0!==c.length))for(a=0;a<r;a++)if(!t.zDi(a))for(s=0,l=c;s<l.length;s++)f=l[s],d=e.getValue(a,f.col),h=void 0,A(d)?h=f.showNullAs:""===d&&(h=f.showEmptyAs),A(h)||(o[a]||(o[a]={}),(v=o[a][f.col]||(o[a][f.col]={})).value=h)}function Zt(t){return t.NMi}function Ut(t,n,i){return function(n){t.repaint(),i&&i()}}function Gt(t){var n,i,e,o,r,u,c=t.type,a=t.comparisonOperator;switch(At(l.ComparisonOperators,a)&&(a=l.ComparisonOperators[a]),c){case"number":i=t.value1,e=t.value2,o=t.isIntegerValue,n=(0,s.createNumberValidator)(a,i,e,o);break;case"date":i=t.value1,e=t.value2,n=(0,s.createDateValidator)(a,i,e);break;case"time":i=t.value1,e=t.value2,n=(0,s.createTimeValidator)(a,i,e);break;case"textLength":i=t.value1,e=t.value2,n=(0,s.createTextLengthValidator)(a,i,e);break;case"formula":r=t.formula,n=(0,s.createFormulaValidator)(r);break;case"formulaList":r=t.formula,n=(0,s.createFormulaListValidator)(r);break;case"list":u=t.source,n=(0,s.createListValidator)(u)}return n}function Bt(t,n){var i,e=n.errorMessage,o=n.errorStyle,r=n.errorTitle,u=n.highlightStyle,c=n.ignoreBlank,a=n.inCellDropdown,l=n.inputMessage,f=n.inputTitle,d=n.showErrorMessage,h=n.showInputMessage;A(e)||t.errorMessage(e),At(s.ErrorStyle,o)&&t.errorStyle(s.ErrorStyle[o]),A(r)||t.errorTitle(r),A(u)||(i={},At(s.HighlightType,u.type)&&(i.type=s.HighlightType[u.type]),A(u.color)||(i.color=u.color),At(s.HighlightPosition,u.position)&&(i.position=s.HighlightPosition[u.position]),A(u.image)||(i.image=u.image),t.highlightStyle(i)),A(c)||t.ignoreBlank(c),A(a)||t.inCellDropdown(a),A(l)||t.inputMessage(l),A(f)||t.inputTitle(f),A(d)||t.showErrorMessage(d),A(h)||t.showInputMessage(h)}function Rt(t){var n=Gt(t);return Bt(n,t),n}function Pt(t,n,i){var e,r,u,c,a,s,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P,Q,Y,H,W,V,F,J,_,X,K,q,$,tt,nt,it,et,ot=n.ruleType,rt=n.style,ut=rt;switch(rt&&(rt instanceof o.Style||(ut=new o.Style(rt))),ot){case"cellValueRule":r=n.comparisonOperator,u=n.value1,c=n.value2,a=n.comparisionOperator,A(r)&&(r=a),At(l.ComparisonOperators,r)&&(r=l.ComparisonOperators[r]),e=t.addCellValueRule(r,u,c,ut,i);break;case"specificTextRule":r=n.comparisonOperator,s=n.text,a=n.comparisionOperator,A(r)&&(r=a),At(l.TextComparisonOperators,r)&&(r=l.TextComparisonOperators[r]),e=t.addSpecificTextRule(r,s,ut,i);break;case"formulaRule":f=n.formula,e=t.addFormulaRule(f,ut,i);break;case"dateOccurringRule":d=n.type,At(l.DateOccurringType,d)&&(d=l.DateOccurringType[d]),e=t.addDateOccurringRule(d,ut,i);break;case"top10Rule":d=n.type,h=n.rank,v=n.isPercent,At(l.Top10ConditionType,d)&&(d=l.Top10ConditionType[d]),e=t.addTop10Rule(d,h,ut,i,v);break;case"uniqueRule":e=t.addUniqueRule(ut,i);break;case"duplicateRule":e=t.addDuplicateRule(ut,i);break;case"averageRule":d=n.type,At(l.AverageConditionType,d)&&(d=l.AverageConditionType[d]),e=t.addAverageRule(d,ut,i);break;case"twoScaleRule":g=n.minType,M=n.minValue,I=n.minColor,b=n.maxType,N=n.maxValue,D=n.maxColor,At(l.ScaleValueType,g)&&(g=l.ScaleValueType[g]),At(l.ScaleValueType,b)&&(b=l.ScaleValueType[b]),e=t.add2ScaleRule(g,M,I,b,N,D,i);break;case"threeScaleRule":g=n.minType,M=n.minValue,I=n.minColor,m=n.midType,w=n.midValue,C=n.midColor,b=n.maxType,N=n.maxValue,D=n.maxColor,At(l.ScaleValueType,g)&&(g=l.ScaleValueType[g]),At(l.ScaleValueType,m)&&(m=l.ScaleValueType[m]),At(l.ScaleValueType,b)&&(b=l.ScaleValueType[b]),e=t.add3ScaleRule(g,M,I,m,w,C,b,N,D,i);break;case"dataBarRule":g=n.minType,M=n.minValue,b=n.maxType,N=n.maxValue,y=n.color,x=n.gradient,T=n.showBarOnly,j=n.showBorder,p=n.borderColor,z=n.barDirection,L=n.negativeData,At(l.ScaleValueType,g)&&(g=l.ScaleValueType[g]),At(l.ScaleValueType,b)&&(b=l.ScaleValueType[b]),e=t.addDataBarRule(g,M,b,N,y,i),xt(x)&&e.gradient(x),xt(T)&&e.showBarOnly(T),xt(j)&&e.showBorder(j),yt(p)&&e.borderColor(p),At(l.BarDirection,z)&&e.dataBarDirection(l.BarDirection[z]),L&&(S=L.negativeFillColor,O=L.useNegativeFillColor,k=L.negativeBorderColor,E=L.useNegativeBorderColor,Z=L.axisColor,U=L.axisPosition,yt(S)&&e.negativeFillColor(S),xt(O)&&e.useNegativeFillColor(O),yt(k)&&e.negativeBorderColor(k),xt(E)&&e.useNegativeBorderColor(E),yt(Z)&&e.axisColor(Z),At(l.DataBarAxisPosition,U)&&e.axisPosition(l.DataBarAxisPosition[U]));break;case"iconSetRule":if(G=n.iconSetType,B=n.reverseIconOrder,R=n.showIconOnly,P=n.icons,Q=n.iconCriteria,At(l.IconSetType,G)&&(G=l.IconSetType[G]),e=t.addIconSetRule(G,i),xt(B)&&e.reverseIconOrder(B),xt(R)&&e.showIconOnly(R),P){for(Y=e.icons(),H=0;H<P.length;H++)V=(W=P[H]).iconSetType,F=W.iconIndex,At(l.IconSetType,V)&&(V=l.IconSetType[V]),Y[H]={iconSetType:V,iconIndex:F};e.icons(Y)}if(Q){for(J=e.iconCriteria(),H=0;H<Q.length;H++)X=(_=Q[H]).isGreaterThanOrEqualTo,K=_.iconValueType,q=_.iconValue,At(l.IconValueType,K)&&(K=l.IconValueType[K]),J[H]=new l.IconCriterion(X,K,q);e.iconCriteria(J)}break;case"sparklineRule":$=n.sparklineType,tt=n.sparklineOptions,nt=n.showSparklineOnly,(e=t.addSparklineRule($,tt,i))&&xt(nt)&&e.showSparklineOnly(nt)}e&&(it=n.priority,et=n.stopIfTrue,Ct(it)&&e.priority(it),xt(et)&&e.stopIfTrue(et))}function Qt(t,n){return t.filter((function(t){return t.name===n}))[0]}function Yt(t){return!A(t)&&!A(t.icons)&&t.icons.length>0}function Ht(t){for(var n=[];t>0;)n[t-=1]=t;return n}function Wt(t,n){var i,e,o,r;if(A(t))return!1;for(L(t)||(t=[t]),i=0;i<t.length;i++)for(e=t[i],o=0;o<n.length;o++)if(r=n[o],e.field===r.value&&r.isGroup)return!0;return!1}function Vt(t){["columnStart","columnEnd","rowStart","rowEnd","repeatColumnStart","repeatColumnEnd","repeatRowStart","repeatRowEnd"].forEach((function(n){t[n]=function(){return-1}}))}function Ft(t,n){!1===n?n=o.SheetTabVisible.hidden:!0===n&&(n=o.SheetTabVisible.visible),void 0!==n&&t.visible(n)}function Jt(t){return t instanceof st}function _t(t){return t.ctrlKey}function Xt(t){return t.shiftKey}function Kt(t){return t.metaKey}function qt(t){var n,i=o.mt.Qf()?Kt(t):_t(t),e=Xt(t);return{isCtrl:i&&!e,isShift:e&&!i}}function $t(t,n,i){return i.isPinnedRow(n)}function tn(t,n,i){return i.isNewRow(n)?0:i.isInsertedRow(n)?1:i.isUpdatedRow(n)?2:-1}function nn(t,n,i){return i.hasWarning(n)}function en(){var t="TableSheet"+st._ID;return st._ID++,t}function on(t){for(var n=en(),i=0;i<t.length;)t[i].name()!==n?i++:(n=en(),i=0);return n}Object.defineProperty(n,"__esModule",{value:!0}),n.BuiltInRowActions=n.TableSheet=n.ActionType=n.copyOriginalColumnPropertiesToCurrentColumn=n.hze=n.tIi=n.getSR=void 0,e=i(7234),o=i(1376),r=i(9131),u=i(447),c=i(6277),a=i(419),s=i(4133),l=i(8333),f=i(7373),d=i(806),h=i(4475),v=i(1434),g=i(7621),M=i(2121),I=i(3789),b=i(2742),N=i(3182),D=i(2221),m=i(2364),w=new e.Common.ResourceManager(a.SR,"TableSheet"),n.getSR=w.getResource.bind(w),C=e.Common.lt.tv,y=e.Common.lt,x=o.mt.j,A=y.ht,T=y._h,j=y.Dh,p=y.y0,z=y.tv,L=y.Nh,S=Number.MAX_VALUE,O="composedPinDirtyNewWarningRow",k="pinRow",E="dirtyStatus",Z="warningInfo",U="removeRow",G="saveRow",B="resetRow",P="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAg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jEtMS45MS00Ljk0LTQuNTEtNS4xOUM5LjUxLjc0IDcgMy4wOCA3IDZ2Mkg0djE0aDE2Vjh6bS04IDljLTEuMSAwLTItLjktMi0ycy45LTIgMi0yIDIgLjkgMiAyLS45IDItMiAyek05IDhWNmMwLTEuNjYgMS4zNC0zIDMtM3MzIDEuMzQgMyAzdjJIOXoiLz48L3N2Zz4=",J="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRoPSI0OCI+PHBhdGggZD0ibTExLjY1IDQ0IDMuMjUtMTQuMDVMNCAyMC41bDE0LjQtMS4yNUwyNCA2bDUuNiAxMy4yNUw0NCAyMC41bC0xMC45IDkuNDVMMzYuMzUgNDQgMjQgMzYuNTVaIi8+PC9zdmc+",_=void 0,X=null,$=(q=".gcSheetInternal")+(K=".tableSheet"),tt="gc.spread.contextMenu.defineColumn",nt="gc.spread.contextMenu.insertColumns",it="gc.spread.defineColumn.submit",et=o.util.Z0,ot=o.util.V0,n.tIi=dt,n.hze=ht,n.copyOriginalColumnPropertiesToCurrentColumn=Mt,rt=function(){},ut={},n.BuiltInRowActions=ut,ct={name:O,icons:[R,Q,Y,H,P]},o.Events.RowOperation="RowOperation",function(t){t[t.remove=0]="remove",t[t.save=1]="save",t[t.reset=2]="reset",t[t.addNewEmptyRow=3]="addNewEmptyRow"}(at=n.ActionType||(n.ActionType={})),st=function(){function t(t,n,i){this.X$={},this._gi=o.SheetType.tableSheet,this.uNi=0,this.jIi=0,this.cNi=[[]],this.x0r=this.getColumnIndexInTable;var e=this;e.assignId(),this.qni=new D.UndoHelper(this),e.Mf=new N.OverWriteWorkSheet(t||en(),this,this.qni),e.Hc(n,i)}return t.prototype.Iwt=function(t,n,i){var e,o,r,u,c=n.abt.getDataView(),a=c&&c.gLt,s=this.getColumnIndexInTable(n.ubt),l=s,f=c.getColumnInfos();for(n.sbt&&(l=this.getColumnIndexInTable(n.sbt)),e=s;e<=l;e++)o=-1===e?"*":f[e].value,a._Et(t,o,i);if(r=this.rNi,i)this.rNi.push(n);else for(u=0;u<r.length;u++)r[u]===n&&(r.splice(u,1),u--)},t.prototype.startRow=function(){return 0},t.prototype.startColumn=function(){return 0},t.prototype.endRow=function(){return this.Mf.getRowCount()-(this.options.allowAddNew?2:1)},t.prototype.endColumn=function(){return this.Mf.getColumnCount()-1},t.prototype.hasTotalsRow=function(){return!1},t.prototype.hasHeadersRow=function(){return!1},t.prototype.tableName=function(){return this.name()},t.prototype.source=function(){return this.Mf.Uw()},t.prototype.getColumnName=function(t,n){var i=this.Mf,e=i.getDataSource(),o=e.kve(t);return o?dt(o.caption,n)||o.value:null},t.prototype.getColumnIndexInTable=function(t){var n,i=this.Mf,e=i.getDataSource(),o=e.getColumnInfos();for(n=o.length-1;n>=0;n--)if(t===this.getColumnName(n)||t===this.getColumnName(n,!0))return n;return-1},t.prototype.showFooter=function(t){return!1},t.prototype.dataRange=function(){var t=this,n=this.Mf.getRowCount();return t.options.allowAddNew&&n--,(0,o.Ec)(0,0,n,t.endColumn()+1)},t.prototype.headerIndex=function(){return 0},t.prototype.cSt=function(t,n){var i,e;for(null!==t&&(t=x(t)),i=0;i<this.Tx;i++)if(i!==n&&t===(e=this.getColumnName(i)))return!0;return!1},t.prototype.Hc=function(t,n){var i=this,e=i.Mf;e.$L.push({tF:function(t,n){var o,r,u,c,a,s;return void 0===n&&(n={}),o=1,r=i.keo(),u=n.spacingIndex,c=n.isAfter,(0,v.isGroupOutlineCondensedLayout)(r)&&(o=0),a=S,c&&(s=e.ncr&&e.ncr(t,u,-1,c))&&"number"==typeof s.level&&(a=s.level+1),i.sMi(t,a,o,u,c)}}),i.rNi=[],this.suspendPaint(),i.aNi(),i.setDefaultRowHeight(30),i.setDefaultRowHeight(30,o.SheetArea.colHeader),e.setRowCount(0),e.setColumnCount(0),e.zwt("@","=A1",0,0,!0),e.zwt("AutoId","=MAX(OFFSET($A$1,0,COLUMN()-1,ROW()-1,1))+1",0,0,!0),(0,a.overrideProperties)(i),(0,a.overrideMethods)(i),i.v7(),t&&e.setDataSource(t),i.Zp(n),i.sNi(),i.MNi(),i.INi=new v.Grouping,i.rowActionOptions(i.gNi),i.applyTableTheme(r.TableThemes.light2),i.leV(),this.resumePaint()},t.prototype.leV=function(){},t.prototype.reset=function(){var t,n,i=this,e=i.Mf,o=i.UMi;i.Boo(),(n=i.getDataView())&&(null===(t=n.PEe)||void 0===t||t.call(n),i.rze()),e&&(e.sF(),e.zw()),o&&o.detach(),i.E3(),i.Hc(),i.lMi=_,i.jFt=_,i.jIi=0,i.uNi=0,i.zoo(),i.$Dr({type:"setTableSheetJSON"})},t.prototype.hg=function(t){this.Mf.hg(t)},t.prototype.L0=function(t,n){var i,e,o=this.Mf;if(t&&this.z2i(!0),this.wze&&this.wze.close(),o.L0(t,n),t)for(i in this.E3(),this.UMi&&this.UMi.detach(),this.X$)this.X$[i]&&(e=this.X$[i]).onDestroy(!0)},t.prototype.Zg=function(t){this.Mf.Zg(t)},t.prototype.setAccessibilityPrefixSuffixContent=function(t,n){this.Mf.setAccessibilityPrefixSuffixContent(t,n)},t.prototype.pM=function(t){this.Mf.pM(t),this.NNi()},t.prototype.getParent=function(){return this.Mf.getParent()},t.prototype.name=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.name();return null===(i=null===(n=this.getParent())||void 0===n?void 0:n.suspendOp)||void 0===i||i.call(n),r=c.name.apply(c,arguments),null===(o=null===(e=this.getParent())||void 0===e?void 0:e.resumeOp)||void 0===o||o.call(e),a!==(u=c.name())&&this.$Dr({type:"setSheetTabName",value:u}),r},t.prototype.visible=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.visible();return null===(i=null===(n=this.getParent())||void 0===n?void 0:n.suspendOp)||void 0===i||i.call(n),r=c.visible.apply(c,arguments),null===(o=null===(e=this.getParent())||void 0===e?void 0:e.resumeOp)||void 0===o||o.call(e),a!==(u=c.visible())&&this.$Dr({type:"setSheetTabVisible",visible:u}),r},t.prototype.b2=function(t,n){var i,e,o,r,u,c,a;return A(t)?this.Mf.b2():(c=(u=this.Mf.b2())!==t,null===(e=null===(i=this.getParent())||void 0===i?void 0:i.suspendOp)||void 0===e||e.call(i),a=this.Mf.b2(t,n),null===(r=null===(o=this.getParent())||void 0===o?void 0:o.resumeOp)||void 0===r||r.call(o),c&&this.$Dr({type:"setSheetTabSelected",value:t}),a)},t.prototype.ow=function(){this.Mf.ow()},t.prototype.aw=function(){this.Mf.aw()},t.prototype.tw=function(){this.Mf.tw()},t.prototype.Wb=function(t,n){this.Mf.Wb(t,n)},t.prototype.Kb=function(t){this.Mf.Kb(t)},t.prototype.Fb=function(t,n){this.Mf.Fb(t,n)},t.prototype.onHorizontalDockScroll=function(t,n){this.Mf.onHorizontalDockScroll(t,n)},t.prototype.Gb=function(t){this.Mf.Gb(t)},t.prototype.WC=function(t,n,i){this.Mf.WC(t,n,i)},t.prototype.$C=function(t){this.Mf.$C(t)},t.prototype.QC=function(t,n,i){this.Mf.QC(t,n,i)},t.prototype.Cg=function(){this.Mf.Cg()},t.prototype.suspendPaint=function(){this.Mf.suspendPaint()},t.prototype.resumePaint=function(){this.BOo(),this.Mf.resumePaint()},t.prototype.isPaintSuspended=function(){return this.Mf.isPaintSuspended()},t.prototype.bind=function(t,n,i){this.Mf.bind(t,n,i)},t.prototype.unbind=function(t,n){this.Mf.unbind(t,n)},t.prototype.unbindAll=function(){this.Mf.unbindAll()},t.prototype.BOo=function(){var t=this.Mf.getDataSource();t&&this.lNi(t.visibleLength())},t.prototype.D3=function(t,n,i){this.Mf.D3(t+$,n,i)},t.prototype._3=function(t,n){this.Mf._3(t+$,n)},t.prototype.E3=function(){this.Mf.E3(),this.Mf.unbind($)},t.prototype.suspendEvent=function(){this.Mf.suspendEvent()},t.prototype.resumeEvent=function(){this.Mf.resumeEvent()},t.prototype.isEventSuspended=function(){return this.Mf.isEventSuspended()},t.prototype.bC=function(){this.Mf.bC()},t.prototype.ki=function(t,n,i){this.Mf.ki(t,n,i)},t.prototype.isEditing=function(){return this.Mf.isEditing()},t.prototype.ol=function(t,n,i,e){return this.Mf.ol(t,n,i,e)},t.prototype.currentTheme=function(t){var n,i,e=this.Mf,o=this;return 0===arguments.length?e.currentTheme():(n=o.THr({type:"setCurrentTheme"}),i=e.currentTheme.apply(e,arguments),o.$Dr({type:"setCurrentTheme",currentTheme:e.currentTheme()},n),i)},t.prototype.FM=function(){(0,n.getSR)(),this.Mf.FM()},t.prototype.DNi=function(t){var n,i=t||this.gNi;return z(i).map((function(t){return delete t.subActionOptions,t}))},t.prototype.fNi=function(t,n){var i,e,o,r,u,c,a,s=[O,k,E,Z,U,G,B],l=[R,P,Q,Y,H],f=["ROW_ACTION_PIN_ROW","ROW_ACTION_WARNING_INFO","ROW_ACTION_NEW_ROW","ROW_ACTION_INSERTED_ROW","ROW_ACTION_UPDATED_ROW"],d=n?f:l,h=n?l:f;if(L(t))for(i=0;i<t.length;i++)if(o=(e=t[i]).name,r=e.icons,s.indexOf(o)>-1&&r)for(u=0;u<r.length;u++)"string"==typeof(c=r[u])&&(a=d.indexOf(c))>-1&&(r[u]=h[a]);return t},t.prototype.dNi=function(t,n){var i,e,r,u,c,a,s,l=this,f=l.Mf,d=!A(n);return t&&t.saveAsView&&d?(n.colHeaderData.dataTable||(n.colHeaderData.dataTable={}),St(f,(0,o.Ec)(0,0,f.getRowCount(1),f.getColumnCount(1)),n.colHeaderData.dataTable,1),l.iAi(n),n.data.dataTable||(n.data.dataTable={}),Ot(f,n.conditionalFormats,n.data.dataTable),delete n.conditionalFormats,delete n.validations):d&&l.iAi(n),i={},e=l.getDataView(),r=t&&t.gp,e&&(i.dataView={name:e.name,tableName:e.gLt.name},i.grouping=l.INi.toJSON(),r&&(i.grouping.groupInfos=C(l.lMi))),u=f.rowFilter(),i.rowFilter=u.toJSON(),r&&d&&pt(n,i),i.options=l.kOo(t),i.rowActionOptions=l.fNi(l.DNi()),l.hl&&(i.currentTheme=l.hl.toJSON()),t&&t.cb===o.OpenSaveFileType.excel&&d&&(c=zt(i.options.alternatingRowOptions),(a=i.currentTheme)&&(a.tKr=!0,(!c||c.fillRowStep<=0&&c.blankRowStep<=0)&&(c.fillRowStep=X,c.fillRowStyle=X,c.blankRowStep=X,c.blankRowStyle=X),a.firstRowStripSize=c.fillRowStep,a.firstRowStripStyle=c.fillRowStyle,a.secondRowStripSize=c.blankRowStep,a.secondRowStripStyle=c.blankRowStyle)),s=f.defaults,i.defaults={rowHeight:s.rowHeight,colHeaderRowHeight:s.colHeaderRowHeight},i.printInfo=f.printInfo&&f.printInfo().toJSON(),i.freeHeaderArea=l.hNi,d&&(n.sheetType=l._gi),i.parameter=l.o1e,i},t.prototype.toJSON=function(t){var n,i,e,r=this,u=r.Mf;return u.options.sheetTabColor=this.options.sheetTabColor,t&&t.cb===o.OpenSaveFileType.excel&&(r.lno=!0),i=(null==t?void 0:t.cb)===o.FileType.excel&&(null===(n=null==t?void 0:t.gMo)||void 0===n?void 0:n.saveAsView)?lt(lt({},t),{saveAsView:t.gMo.saveAsView}):t,e=u.toJSON(i),kt(t)&&Et(r,e),e.addition=r.dNi(t,e),(e=r.Keo(e,t)).sheetType=this._gi,t&&t.cb===o.OpenSaveFileType.excel&&(r.lno=_),(null==t?void 0:t.isServer)&&(e.__ID__=r.jKe()),e},t.prototype.kOo=function(t){var n,i,e,o,r,u,c=this,a=!0===(null==t?void 0:t.isServer),s=c.options,l={};return l.allowAddNew=s.allowAddNew,s.hasOwnProperty("defaultStackRowHeight")&&(l.defaultStackRowHeight=s.defaultStackRowHeight),s.hasOwnProperty("menuItemVisibility")&&(l.menuItemVisibility=s.menuItemVisibility),l.sheetTabColor=s.sheetTabColor,(n=s.alternatingRowOptions)?(i=n.style,e=void 0,Array.isArray(i)?e=[o=i[0]&&i[0].toJSON(),r=i[1]&&i[1].toJSON()]:i&&(e=i.toJSON()),l.alternatingRowOptions={step:n.step,style:e}):null===n&&(l.alternatingRowOptions=null),s.hasOwnProperty("isDesignMode")&&!a&&(l.isDesignMode=s.isDesignMode),s.hasOwnProperty("showRowNumber")&&(l.showRowNumber=s.showRowNumber),s.hasOwnProperty("enableDefineColumn")&&(l.enableDefineColumn=s.enableDefineColumn),s.hasOwnProperty("defineColumnCommand")&&(l.defineColumnCommand=s.defineColumnCommand),s.hasOwnProperty("submitDefineColumnCommand")&&(l.submitDefineColumnCommand=s.submitDefineColumnCommand),s.hasOwnProperty("columnTypeItems")&&(l.columnTypeItems=s.columnTypeItems),s.hasOwnProperty("groupLayout")&&(u=s.groupLayout)&&["mode","position"].forEach((function(t){var n=u[t];u.hasOwnProperty(t)&&(l.groupLayout||(l.groupLayout={}),l.groupLayout[t]=n)})),s.hasOwnProperty("allowSorts")&&(l.allowSorts=s.allowSorts),l},t.prototype.TOo=function(t){var n,i=this,e=i.getDefaultOptions();i.options.allowAddNew=t.allowAddNew,i.options.defaultStackRowHeight=t.defaultStackRowHeight,i.options.menuItemVisibility=t.menuItemVisibility,i.options.isDesignMode=null!==(n=t.isDesignMode)&&void 0!==n?n:i.options.isDesignMode,i.options.sheetTabColor=t.sheetTabColor,i.options.showRowNumber=t.showRowNumber,i.options.enableDefineColumn=t.enableDefineColumn,i.options.defineColumnCommand=A(t.defineColumnCommand)?e.defineColumnCommand:t.defineColumnCommand,i.options.submitDefineColumnCommand=A(t.submitDefineColumnCommand)?e.submitDefineColumnCommand:t.submitDefineColumnCommand,i.options.columnTypeItems=A(t.columnTypeItems)?e.columnTypeItems:t.columnTypeItems,i.options.groupLayout=A(t.groupLayout)?e.groupLayout:t.groupLayout,i.options.allowSorts=A(t.allowSorts)?e.allowSorts:t.allowSorts,i.bNi(t.alternatingRowOptions,t.alternatingRowStyles)},t.prototype.Keo=function(t,n){var i,e,u,c=this,a=c.Mf;return n&&n.cb===o.OpenSaveFileType.excel&&c.Teo(!0)?(i=new o.Worksheet(c.Mf.name()),(e=t.addition)&&!A(e.currentTheme)&&((u=new r.TableTheme).fromJSON(e.currentTheme),i.suspendPaint(),c.qeo(i,C(c.options.alternatingRowOptions),u),i.resumeEvent()),delete t.spacing,i.fromJSON(t,!1,_,_,!0),c.$eo()?c.Qto(i,a):c.Yto(i,a),c.Wto(i),(t=i.toJSON(n)).addition=e,t):t},t.prototype.Wto=function(t){var n,i,e,o=this,r=o.getDataView().getColumnInfos();for(n=0;n<r.length;n++)if(!1!==(i=r[n]).visible){(e=t.getStyle(-1,n)).textIndent=o.lMi.length,t.setStyle(-1,n,e);break}},t.prototype.Hto=function(t){var n,i,e,r=this,u=r.getDataView(),c=u.getColumnInfos(),a=new o.Style;return a.backColor="white",i=(n=t.Ut.Vsr).Ysr,{columnInfos:c,spacingStyle:a,rows:e=Object.keys(i).reverse()}},t.prototype.Yto=function(t,n){var i,e,r,u,c,a,s,l,f,d,h,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L,S,O,k,E,Z,U;if(t.Csr)for(r=(e=(i=this).Hto(n)).columnInfos,u=e.spacingStyle,a=0,s=c=e.rows;a<s.length;a++){if(l=s[a],f=Number(l),(d=2*n.Rsr(f,!0))>0)for(t.addRows(f+1,d),h=0;h<d;h+=2)if(g=Math.floor(h/2),I=(M=f+h+1)+1,b=n.Xsr(f,h,!0)/2,t.setRowHeight(M,b),t.setRowHeight(I,b),N=n.ncr(f,g,-1,!0),!A(N))if(D={rowSpacingIndex:g,isAfterRowSpacing:!0},N.isSpacing){for(m=n.getActualStyle(f,-1,_,_,D),u.borderTop=m.borderTop,w=0;w<r.length;w++)t.setStyle(M,w,u);t.setRowHeight(M,2*b),t.deleteRows(I,1)}else for(m=n.getActualStyle(f,-1,_,_,D),w=0;w<r.length;w++)(C=m.clone()).borderBottom=X,t.setStyle(M,w,C),(y=m.clone()).borderTop=X,t.setStyle(I,w,y),x=n.ncr(f,g,w,!0),A(x)||(T=n.Jt.qt(f,w,_,_,D),(j=(0,v.composeHeaderStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(j,o.HorizontalAlign.right),p=x.caption,A(p)||(j.borderBottom=X,t.setStyle(M,w,j),t.setValue(M,w,x.caption)),(z=(0,v.composeValueStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(z,o.HorizontalAlign.right),L=x.value,A(L)||(z.borderTop=X,t.setStyle(I,w,z),t.setValue(I,w,x.value)));if((d=2*n.Rsr(f))>0)for(t.addRows(f,d),h=0;h<d;h+=2)if(g=Math.floor(h/2),I=(M=f+h)+1,b=n.Xsr(f,g)/2,t.setRowHeight(M,b),t.setRowHeight(I,b),N=n.ncr(f,g,-1))for(D={rowSpacingIndex:g,isAfterRowSpacing:!1},m=n.getActualStyle(f,-1,_,_,D),S=!1,w=0;w<r.length;w++)(C=m.clone()).borderBottom=X,t.setStyle(M,w,C),(y=m.clone()).borderTop=X,t.setStyle(I,w,y),O=!S&&!1!==r[w].visible,T=n.Jt.qt(f,w,_,_,D),z=void 0,O&&(S=!0,j=(0,v.composeHeaderStyle)(N.groupLevelOptions,T),k=N.field,A(k)||(j.textIndent=N.level,j.borderBottom=X,t.setStyle(M,w,j),t.setValue(M,w,N.field)),z=(0,v.composeValueStyle)(N.groupLevelOptions,T),E=N.value,A(E)||(z.textIndent=N.level,z.borderTop=X,t.setStyle(I,w,z),t.setValue(I,w,N.value))),x=n.ncr(f,g,w),A(x)||O||((Z=(0,v.composeHeaderStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(Z,o.HorizontalAlign.right),p=x.caption,A(p)||(Z.borderBottom=X,t.setStyle(M,w,Z),t.setValue(M,w,x.caption)),(U=(0,v.composeValueStyle)(x,T)).hAlign=(0,v.getHorizontalAlign)(U,o.HorizontalAlign.right),L=x.value,A(L)||(U.borderTop=X,t.setStyle(I,w,U),t.setValue(I,w,x.value)))}},t.prototype.Qto=function(t,n){var i,e,r,u,c,a,s,l,f,d,h,g,M,I,b,N,D,m,w,C,y,x,T,j,p;if(t.Csr)for(r=(e=(i=this).Hto(n)).columnInfos,u=e.spacingStyle,a=0,s=c=e.rows;a<s.length;a++){if(l=s[a],f=Number(l),(d=n.Rsr(f,!0))>0)for(t.addRows(f+1,d),h=0;h<d;h++)if(g=f+h+1,M=n.Xsr(f,h,!0),t.setRowHeight(g,M),I=n.ncr(f,h,-1,!0),!A(I))if(b={rowSpacingIndex:h,isAfterRowSpacing:!0},I.isSpacing)for(N=n.getActualStyle(f,-1,_,_,b),u.borderTop=N.borderTop,D=0;D<r.length;D++)t.setStyle(g,D,u);else for(N=n.getActualStyle(f,-1,_,_,b),D=0;D<r.length;D++)t.setStyle(g,D,N),m=n.ncr(f,h,D,!0),A(m)||(w=n.Jt.qt(f,D,_,_,b),(C=(0,v.composeValueStyle)(m,w)).hAlign=(0,v.getHorizontalAlign)(C,o.HorizontalAlign.right),y=(0,v.getValueFromCondensed)(m),A(y)||(t.setStyle(g,D,C),t.setValue(g,D,y)));if((d=n.Rsr(f))>0)for(t.addRows(f,d),h=0;h<d;h++)if(g=f+h,M=n.Xsr(f,h),t.setRowHeight(g,M),I=n.ncr(f,h,-1))for(b={rowSpacingIndex:h,isAfterRowSpacing:!1},N=n.getActualStyle(f,-1,_,_,b),x=!1,D=0;D<r.length;D++)t.setStyle(g,D,N),T=!x&&!1!==r[D].visible,w=n.Jt.qt(f,D,_,_,b),C=void 0,T&&(x=!0,C=(0,v.composeValueStyle)(I.groupLevelOptions,w),j=(0,v.getGroupHeaderValueFromCondensed)(I),A(j)||(C&&(C.textIndent=I.level,t.setStyle(g,D,C)),t.setValue(g,D,j))),m=n.ncr(f,h,D),A(m)||T||((p=(0,v.composeValueStyle)(m,w)).hAlign=(0,v.getHorizontalAlign)(p,o.HorizontalAlign.right),y=(0,v.getValueFromCondensed)(m),A(y)||(t.setStyle(g,D,p),t.setValue(g,D,y)))}},t.prototype.TNi=function(t){var n,i,e,o,u,c,a,s,l,f,d;if(t){if(i=(n=this).Mf,e=t.options,A(t.currentTheme)||((o=new r.TableTheme).fromJSON(t.currentTheme),n.applyTableTheme(o)),n.TOo(e),A(t.actionColumn)||n.actionColumn.fromJSON(t.actionColumn),n.rowActionOptions(n.fNi(t.rowActionOptions,!0)),u=i.defaults,(c=t.defaults)&&(u.rowHeight=c.rowHeight,u.colHeaderRowHeight=c.colHeaderRowHeight),n.DOo(t.printInfo),a=t.stateRules)for(s=0,l=a;s<l.length;s++)(f=l[s]).isRow?n.addRowStateRule(f.state,f.style):n.addColumnStateRule(f.state,f.style);(d=t.freeHeaderArea)&&n.applyFreeHeaderArea(d),n.o1e=t.parameter}},t.prototype.IMo=function(t,n){var i,e,r,u,c,a,s,l=this.Mf;t.theme&&("string"!=typeof(i=t.theme)&&i?(e=n&&n.noSchema,r="_themeColor",u="_name",(c=i.themeColor||i[r])&&((a=new o.ColorScheme(c.name||c[u])).fromJSON(c,e),s=i.font,i=new o.Theme(i.name||i.Zc,a,i.headingFont||i.Aee,i.bodyFont||i.See),s&&i.font().fromJSON(s)),l.currentTheme(i)):"string"==typeof i&&l.currentTheme(i))},t.prototype.DOo=function(t){var n,e,o=this,r=o.Mf;r.printInfo&&t&&((e=new((n=i(5065)).PrintInfo)).fromJSON(t),r.printInfo(e))},t.prototype.fromJSON=function(t,n,i,e,u){var c,a,s,l,f,d,h,v,g,M,I,b,N=this,D=N.Mf;t.__ID__&&this.UKn(t.__ID__),c=e&&e.gp,a=e&&e.sb,s=e&&e.cb,f=(l=t.addition).options,c||a&&s===o.OpenSaveFileType.excel?(a&&s===o.OpenSaveFileType.excel&&(A(l.currentTheme)||((d=new r.TableTheme).fromJSON(l.currentTheme),N.applyTableTheme(d)),f&&(N.options.sheetTabColor=f.sheetTabColor)),c&&(A(l.currentTheme)||((d=new r.TableTheme).fromJSON(l.currentTheme),N.applyTableTheme(d)),N.options||(N.options={}),N.bNi(f.alternatingRowOptions,f.alternatingRowStyles),l.grouping&&(l.grouping.tree&&N.INi.fromJSON(D,l.grouping,!0),l.grouping.groupInfos&&N.Vto(l.grouping.groupInfos)),f.groupLayout&&N.Fto(f.groupLayout),N.options.allowAddNew=!1),t.rowFilter=_,D.fromJSON(t,n,i,e,u),c&&(l.options.showRowNumber?(h=1,D.setColumnCount(h,o.SheetArea.rowHeader),D.setColumnVisible(0,!0,o.SheetArea.rowHeader),D.setColumnWidth(0,D.defaults.rowHeaderColWidth,o.SheetArea.rowHeader)):(D.setColumnCount(0,o.SheetArea.rowHeader),1!==(v=D.printInfo()).showRowHeader()&&v.showRowHeader(1)))):a&&s===o.OpenSaveFileType.sjs?(D.ub(t.name+"",!0),D.b2(t.isSelected),D.g8(t.zoomFactor||1),N.IMo(t,i),N.TNi(l),N.ANi(l)):(D.ub(t.name+"",!0),D.b2(t.isSelected),D.g8(t.zoomFactor||1),Ft(D,t.visible),N.IMo(t,i),N.TNi(l),g=l&&l.dataView,M=D.parent&&D.parent.dataManager(),(b=(I=g&&M.tables[g.tableName])&&I.views[g.name])&&N.kTi(b,!1))},t.prototype.ANi=function(t,n){var i=this,e=i.Mf,o=t.dataView,r=e.parent,u=r.dataManager(),c=o&&u.tables[o.tableName],a=c&&c.views[o.name];i.fromJSONAfterViewFetchedImp(t,a,n)},t.prototype.fromJSONAfterViewFetchedImp=function(t,n,i){var e,o,r;n&&(o=(e=this).Mf,e.suspendPaint(),e.restoreView(n,i),e.INi.fromJSON(e.Mf,t.grouping),r=o.rowFilter(),t.rowFilter&&r.fromJSON(t.rowFilter),e.vNi(e.options.isDesignMode),e.resumePaint())},t.prototype.fromJSONForDesignerSetDataView=function(t,n){this.Boo(),this.fromJSON(t),this.fromJSONAfterViewFetchedImp(t.addition,n),this.zoo(),this.$Dr({type:"setTableSheetJSON"})},t.prototype.resetNewView=function(t,n,i,e){var o,r=this.getDataView(),u=r.gLt,c=r.name,a=r.ILt,s=r.includeDefaultColumns,l=r.LEt,f=r.SRe(),d=r.toJSON(),h={columnInfoOptions:a,includeDefaultColumns:s,options:l,oldViewId:r.__ID__};u.removeView(c),o=u.addView(c,t,n,i),e&&o.UKn(e),o.fromJSON(d),o.ARe(f),this.qni.addUndoChanges({type:D.TableSheetUndoType.ResetViewChanged,oldData:h}),this.restoreView(o)},t.prototype.restoreView=function(t,n){var i,e,o,r,u,c,a,s,l=this,f=l.Mf;for(i=0;i<t.lFt.length;i++)t.lFt[i]>=t.length()&&(t.lFt.splice(i,1),i--);l.suspendPaint(),t.visibleLength()!==t.length()&&(t.gFt(),t.nPt(void 0,!0)),(e=t.getColumnInfos()).some((function(t){return t.isGroup}))&&(e=e.filter((function(t){return!t.isGroup})),t.setColumnInfos(e)),n?(l.Ski(t),l.refreshBindColumns(_,t)):l.kTi(t),o=t.DLt&&t.DLt.length>0,r=t._Lt&&t._Lt.length>0,o&&(t.isHierarchy()?t.KFt(t.DLt):t.JFt(t.DLt)),c=Wt(u=t.NLt,e),u&&!c&&t.filter(u),(a=t.lFt.length)>0&&(f.frozenRowCount(a),l.uNi=a),(s=t.CLt.length)>0&&(f.frozenColumnCount(s),l.jIi=s),t.MFt&&(l.groupBy(t.MFt),u&&c&&t.filter(u),r&&t.HFt(t._Lt)),l.resumePaint()},t.prototype.bNi=function(t,n){t?this.options.alternatingRowOptions={step:t.step,style:this.jNi(t.style)}:n?this.options.alternatingRowOptions={step:[1,1],style:this.jNi(n)}:null!==t&&null!==n||(this.options.alternatingRowOptions=null)},t.prototype.Vto=function(t){this.lMi=t},t.prototype.Fto=function(t){this.options.groupLayout=t},t.prototype.jNi=function(t){var n,i,e;return Array.isArray(t)?(i=new o.Style,e=new o.Style,t[0]&&i.fromJSON(t[0],!1,null),t[1]&&e.fromJSON(t[1],!1,null),n=[i,e]):((i=new o.Style).fromJSON(t,!1,null),n=i),n},t.prototype.wh=function(t,n,i){var e,r=this,u=r.Mf;return i&&i.fileType===o.OpenSaveFileType.excel?(u.options.sheetTabColor=r.options.sheetTabColor,u.wh(t,n,i)):((e=u.wh(t,n,i)).lossless.addition=r.dNi(i,null),e)},t.prototype.yh=function(t,n,i,e){var r,u,c,a,s,l,f,d,h,v,g,M,I=this,b=I.Mf,N=t.lossless.addition;e||((r=!i||!1!==i.includeStyles)&&(c=(u=t.lossless)&&u.theme||n.theme)&&((a=new o.Theme(void 0)).yh(c),b.currentTheme(a)),(s=o.util.o1(t,"sheetViews&sheetView"))&&(s.zoomScale&&b.zoom(s.zoomScale/100),"1"===s.tabSelected&&b.b2(!0,!1)),I.TNi(N)),l=N&&N.dataView,f=b.parent&&b.parent.dataManager(),(h=(d=l&&f.tables[l.tableName])&&d.views[l.name])&&I.kTi(h,e),e||(M=(g=(v=b.parent)&&v.v2)&&g.sheetsState)&&(M[b.name()]=2)},t.prototype.uw=function(){return this.Mf.uw()},t.prototype.ot=function(){return this.Mf.ot()},t.prototype.hitTest=function(t,n,i,e){return this.Mf.hitTest(t,n,i,e)},t.prototype.getSheet=function(){return this.Mf},t.prototype.getSelections=function(t){return t===o.SheetArea.colHeader?this.Mf.Ut.getSelections(1):this.Mf.getSelections()},t.prototype.zoom=function(t){var n,i;return 0===arguments.length?this.Mf.zoom():(n=this.Mf.zoom(),i=this.Mf.zoom(t),this.$Dr({type:"updateZoom",value:t,oldValue:n}),i)},t.prototype.autoFitRow=function(t){this.Mf.autoFitRow(t)},t.prototype.getColumnWidth=function(t,n,i){return this.Mf.getColumnWidth(t,n,i)},t.prototype.getRowHeight=function(t,n,i){return this.Mf.getRowHeight(t,n,i)},t.prototype.getColumnCount=function(t){return this.Mf.getColumnCount(t)},t.prototype.getRowCount=function(t){return this.Mf.getRowCount(t)},t.prototype.setDataView=function(t){this.kTi(t)},t.prototype.afterAddViewColumn=function(t){},t.prototype.uLi=function(t){var n=this.Mf,i=t||this.getDataView();i&&n.setRowCount(t.visibleLength()+(this.options.allowAddNew?1:0))},t.prototype.Ski=function(t){var n=this.Mf;t&&(n.setColumnCount(t.getColumnInfos().length),this.uLi(t))},t.prototype.rze=function(){this.Mf.parent.Wp.clear()},t.prototype.kTi=function(t,n){var i,e,o,r,u,c,a,s=this.Mf;s.xT||(this.suspendPaint(),s.suspendCalcService(),r=this.getDataView(),u=this.THr({type:"updateTableSheetDataView",viewId:null==r?void 0:r.jKe(),tableId:null===(i=null==t?void 0:t.gLt)||void 0===i?void 0:i.jKe()}),c=(null==r?void 0:r.name)===(null==t?void 0:t.name),t&&this.z2i(!c),!c&&r&&(null===(e=r.PEe)||void 0===e||e.call(r),this.rze()),this.MNo(),this.beforeSetDataView(t),s.autoGenerateColumns=!1,s.setDataSource(t),this.$Dr({type:"updateTableSheetDataView",viewId:null==t?void 0:t.jKe(),tableId:null===(o=null==t?void 0:t.gLt)||void 0===o?void 0:o.jKe()},u),this.Ski(t),t&&(this.refreshBindColumns(),n||(this.actionColumn.options().visible&&this.zNi(),a=t.iRt&&t.iRt.length,this.options.allowAddNew&&a===s.getRowCount()&&this.CNi(),this.wNi(),this.yNi())),this.afterSetDataView(t),s.resumeCalcService(!1),this.resumePaint())},t.prototype.beforeSetDataView=function(t){},t.prototype.afterSetDataView=function(t){},t.prototype.yNi=function(){var t=this,n=t.getDataView();t.G2i=function(n,i){t.mNi(i.row)},t.U2i=function(n,i){t.LNi(i.row,i.changingFields)},t.B2i=function(n,i){t.xNi(i.row)},t.Q2i=function(n,i){t.SNi(i.row)},t.R2i=function(n,i){var e=t.getDataView(),o=e.tableName;i.tableName===o&&t.ZNi(i.row)},t.Y2i=function(n,i){t.ONi(i.row,i.reason,i.type)},t.H2i=function(n,i){t.ENi()},t.W2i=function(i,e){t.GNi(n,e.isDataLengthChanged,e.isDataRowOrderChanged,e.isColumnCountChanged)},n.bind(f.Events.ItemInserted,t.G2i),n.bind(f.Events.ItemUpdated,t.U2i),n.bind(f.Events.ItemReset,t.B2i),n.bind(f.Events.ItemSaved,t.Q2i),n.bind(f.Events.ItemRemoved,t.R2i),n.bind(f.Events.ChangesSubmittedRowFailed,t.Y2i),n.bind(f.Events.ChangesSubmitted,t.H2i),n.bind(f.Events.ChangesCancelled,t.W2i)},t.prototype.z2i=function(t){var n=this,i=n.getDataView();i&&i.gLt&&(n.G2i&&i.unbind(f.Events.ItemInserted,n.G2i),n.U2i&&i.unbind(f.Events.ItemUpdated,n.U2i),n.B2i&&i.unbind(f.Events.ItemReset,n.B2i),n.Q2i&&i.unbind(f.Events.ItemSaved,n.Q2i),n.R2i&&i.unbind(f.Events.ItemRemoved,n.R2i),n.Y2i&&i.unbind(f.Events.ChangesSubmittedRowFailed,n.Y2i),n.H2i&&i.unbind(f.Events.ChangesSubmitted,n.H2i),n.W2i&&i.unbind(f.Events.ChangesCancelled,n.W2i),t&&i.wpt())},t.prototype.pNi=function(t){var n=this.Mf,i=n.getDataSource(),e=i.kve(t)||{},o="string"==typeof e.value&&!i.GPt(e.value)&&!e.isCross;return!!(e.readonly||e.isGroup||e.isPrimaryKey||o)},t.prototype.jOt=function(t){var n=this.Mf,i=n.getDataSource(),e=i.kve(t)||{};return e.isPrimaryKey},t.prototype.kNi=function(t){var n,i,e,o=1;for(n=0;n<t.length;n++)(i=t[n].caption)&&o<(e="string"==typeof i?1:i.length)&&(o=e);return o},t.prototype.UNi=function(){var t=0,n=this.hNi;return n&&(t=n.rowCount),t},t.prototype.QNi=function(t,n,i){var e=this.Mf,r=e.getRowCount(o.SheetArea.colHeader),u=t+i;r!==u&&(e.setRowCount(t+i,o.SheetArea.colHeader),e.ki(o.Events.TableSheetColHeaderRowCountChanged,null,!0)),e.setColumnCount(n,o.SheetArea.colHeader)},t.prototype.RNi=function(t){var n,i,e=this.Mf,r=e.getRowCount(o.SheetArea.colHeader),u=e.getColumnCount(o.SheetArea.colHeader);for(e.clear(0,0,r,u,o.SheetArea.colHeader,o.StorageType.data|o.StorageType.style),e.Cb.clear(o.SheetArea.colHeader),n=0;n<r;n++)if(e.setCellType(n,-1,void 0,o.SheetArea.colHeader),t)for(i=0;i<u;i++)this.wDi(n,i,null,_,o.SheetArea.colHeader)},t.prototype.PNi=function(){var t,n,i,e,r,u,c,a,s,l,f,d,h,v,g=this.hNi,M=this.Mf;if(g){for(t=M.Ut,n=o.SheetArea.colHeader,i=M.Z_(-1,-1,n),t.W_(n).fromJSON(g.data,!0,{}),M.setStyle(-1,-1,i,n),t.Q_(!0,n).fromJSON(g.rows),r=(e=t.K_(n)).spans,g.spans&&g.spans.length?e.fromJSON(g.spans):r&&r.length&&e.removeSpan(0,r.length),(u=g.data.dataTable)&&(M.Xbt=g.sharedFormulas,(0,I.dMt)(M,u,M.getRowCount(n),M.getColumnCount(n),n)),(c=new o.CellTypes.Text).isImeAware=function(){return!1},a=0;a<g.rowCount;a++)M.getCell(a,-1,n).cellType(c).locked(!1);for(s=this.UNi(),l=t.getColumnCount(),t.setFreeAreaRowCount(s,n),t.setFreeAreaColumnCount(l,n),g.columnCount=l,f=0;f<l;f++)if(d=M.Z_(-1,f,n))for(a=0;a<s;a++)(h=M.Z_(a,f,n))?((v=new o.Style).h5(d),v.h5(h),t.setStyle(a,f,v,n)):t.setStyle(a,f,d,n)}else t=M.Ut,n=o.SheetArea.colHeader,t.setFreeAreaRowCount(0,n)},t.prototype.YNi=function(t,n,i,e){var o,r,u,c,a,s=this.hNi;s&&(o=this.THr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi}),(r=s.data)||(r=s.data={}),(u=r.dataTable)||(u=r.dataTable={}),(c=u[t])||(c=u[t]={}),(a=c[n])||(a=c[n]={}),a[i]=e,this.$Dr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi},o))},t.prototype.WNi=function(t,n){var i,e=this.rNi;for(L(t)&&(t=t.join(",")),L(n)&&(n=n.join(",")),i=0;i<e.length;i++)e[i].ubt===t&&(e[i].ubt=n),e[i].sbt===t&&(e[i].sbt=n)},t.prototype.HNi=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.getDataSource();if(a&&(n=a.kve(t))){for(i=[],e=1,o=c.Ut.getFreeAreaRowCount(e),r=c.getRowCount(e);o<r;o++)i.push(c.getText(o,t,e));this.WNi(n.caption,i),u=i.every((function(t,n,i){return 0===n||t===i[0]})),n.caption=u?i[0]:i}},t.prototype.VNi=function(t,n,i){var e,r,u,c,a,s,l,f,d=this;if(t>1){for(r=(e=this.Mf).getRowCount(o.SheetArea.colHeader),u=function(t){return"string"==typeof t&&mt(t)?d.Nuo(t):t},c=0;c<i.length;c++)if(a=i[c].caption||u(i[c].value)){for(s="string"==typeof a?[a]:a,l=0;l<s.length;l++)e.setValue(n+l,c,s[l],o.SheetArea.colHeader);for(f=s[l-1];l<r;l++)e.setValue(n+l,c,f,o.SheetArea.colHeader)}e.autoMerge(new o.Range(n,-1,t,-1),h.AutoMergeDirection.rowColumn,h.AutoMergeMode.restricted,o.SheetArea.colHeader)}},t.prototype.getFilterButtonVisibleFromColumnInfo=function(t,n,i){var o,r=n[t],u=!1!==r.allowSort||!1!==r.allowFilterByValue||!1!==r.allowFilterByList;return A(r.allowSort)&&A(r.allowFilterByValue)&&A(r.allowFilterByList)&&(o=i.getValue(0,t))&&"object"==typeof o&&!e.Common.ct.W0(o)&&A(o._error||o._code)&&(u=!1),u},t.prototype.yze=function(t){var n,i,e=this.Mf.rowFilter();return e&&e.Dit(t)},t.prototype.zze=function(t){var n=this,i=n.Mf,e={tableName:_,colIndex:t};i.Qy().execute({cmd:"clearFilter",sheetName:i.name(),cmdOption:e})},t.prototype.pze=function(t){var n=this,i=n.Mf,e=i.rowFilter(),r=e&&e.rIo?e.rIo(t):e&&e.getSortState(t);return void 0!==r&&r!==o.SortState.none},t.prototype.xze=function(t,n){var i,e,o=this,r=o.Mf,u=r.rowFilter();return u.Sze(t),i=o.getDataView(),e=n||i.kve(t),i.UGe(),i.PGe(e)},t.prototype.Lze=function(t){var n=this,i=n.fDi(t),e=n.getDataView();return i&&(i.GFt||e.$Lt(e.ife(i),!0))},t.prototype.Oze=function(t){var n,i=this.getDataView();return i.uii(i.kve(t))},t.prototype.iGe=function(t,n){var i=this,e=i.getDataView();return!e.UFe(t)&&(n=n||e.kve(t),i.suspendPaint(),e.iUe(n,(function(){var o,r,u,c,a,s,l=e.Dit();i.yze(t)&&i.zze(t),o=!l||!e.Dit(),r=!1,u=!1,i.pze(t)&&(u=!0,r=i.xze(t,n),o||!r||l||(o=!0)),c=!1,i.Lze(t)&&(c=i.Oze(t)),u&&e.Dit()&&(e.dFt(),e.vFt(!0)),o&&u&&e.gFt(),c?(a=e.autoSort,e.autoSort=!0,i.removeGroupBy(),e.autoSort=a):(e.VGe(!0),i.groupBy(e.groupBy()),e.zGe(!0)),i.Zze(t)?(i.togglePinnedColumns([t]),s=i.bze(i.tDi(n)),i.fno(s)):i.fno(t)}),(function(){i.refreshBindColumns(),i.Seo(),i.kze(t)})),i.resumePaint(),!0)},t.prototype.fno=function(t,n,i){void 0===n&&(n=1);var e=this;e.Mf.KBe(t,n,_,i),!1!==i&&e.qni.addUndoChanges({type:D.TableSheetUndoType.RemoveColumns,oldCol:t,oldCount:n})},t.prototype.JEe=function(t,n,i){var e=this,o=e.getDataView();return(i=i||o.getColumn(t))&&n&&Mt(n,i),!(o.UFe(t)||!e.Ceo(n,i))&&(e.suspendPaint(),o.aUe(i,n,(function(n){n.isFilterUpdated?(e.zze(t),o.VGe(!0),e.groupBy(o.groupBy()),o.zGe(!0)):n.isSortUpdated?(o.VGe(!0),e.groupBy(o.groupBy()),o.zGe(!0)):n.isGroupUpdated&&(o.VGe(!0),o.zGe(!0))}),(function(){e.refreshBindColumns()})),e.resumePaint(),!0)},t.prototype.qFe=function(t,n){var i,e,o,r=this;return!!r.Ceo(n)&&(i=r.getDataView(),r.suspendPaint(),e=i.hur(t),o=r.Mf.getColumnCount()>e,i.JGe(t,n,(function(){o&&r.dno(e)}),(function(){r.refreshBindColumns(),o&&r.Seo()})),r.resumePaint(),!0)},t.prototype.dno=function(t,n,i){void 0===n&&(n=1);var e=this;e.Mf.WBe(t,n,_,{clearUndoNotInCommand:i}),!1!==i&&e.qni.addUndoChanges({type:D.TableSheetUndoType.AddColumns,oldCol:t,oldCount:n})},t.prototype.FPt=function(t){var n;return null===(n=this.getDataView())||void 0===n?void 0:n.FPt(t,!0)},t.prototype.Ceo=function(t,n){var i,e,o,r,u=this,c=(0,f.isNullOrEmpty)(t.type);return!!(!c||n&&(0,f.isNullOrEmpty)(n.type))&&(i="Formula"===t.type&&!mt(t.value),e="Formula"!==t.type&&mt(t.value),o="Lookup"===t.type&&!u.FPt(t.value),r="Lookup"!==t.type&&!mt(t.value)&&(wt(t.value)||u.FPt(t.value)),!(i||e||o||r)&&(!n||u.getDataView().Zcr(n,t)))},t.prototype.isDisableDefineColumn=function(t){return this.UFe(t)},t.prototype.UFe=function(t){var n=this,i=n.getDataView();return i.UFe(t)},t.prototype.Iuo=function(t,n){return t&&mt(t)?this.getDataView().getTable().getFormulaWithoutCulture(t,n):t},t.prototype.getFormulaWithCulture=function(t,n){return this.Nuo(t,n)},t.prototype.Nuo=function(t,n){return t&&mt(t)?this.getDataView().getTable().getFormulaWithCulture(t,n):t},t.prototype.refreshBindColumns=function(t,n){var i,e,r,u,c,a,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,T,j,p,z,L,S,O=this.Mf,k=n||O.getDataSource();if(k){for(O.suspendPaint(),O.suspendEvent(),(i=O.conditionalFormats)&&i.clearRule(),O.b8&&O.b8.d5(),e=k.getColumnInfos(),r=this.kNi(e),u=this.UNi(),this.QNi(r,e.length,u),this.RNi(t),this.PNi(),this.VNi(r,u,e),c=O.rowFilter(),this.cno(O,c,e),a=[[]],f=O.k9(o.SheetArea.viewport),d=e.some((function(t,n){return O.Lt(n)!==o.ColumnHeaderFitMode.normal&&(!A(t.headerFit)&&"normal"===t.headerFit||!1===t.visible&&!1!==O.getColumnVisible(n))})),h=0;h<e.length;h++){if(M=void 0,I=void 0,b=void 0,"string"==typeof(g=(v=e[h]).value)?mt(g)?I=g:M=g:"function"==typeof g&&(b=g.name),N={name:M||I||b},D=v.caption,1===r&&D?N.displayName=dt(D):I&&!D&&(N.displayName=this.Nuo(I)),A(v.width)||(N.width=v.width),A(v.visible)||(N.visible=v.visible),O.bindColumn(h,N),this.JNi(-1,h,v.headerStyle,o.SheetArea.colHeader),m=v.style,this.Teo(!0)&&h===f&&(w=v.zno)&&((m=this.Lno(m)).cellType=w),this.JNi(-1,h,m),O.qgt.nM=k.gLt,O.qgt.getField=k.gLt.POt.getField,v.validator&&(C=v.validator instanceof s.DefaultDataValidator?v.validator:Rt(v.validator),O.setDataValidator(-1,h,C)),(y=v.conditionalFormats)&&i)for(x=[new o.Range(-1,h,-1,1)],T=0,j=y;T<j.length;T++)(p=j[T])instanceof l.ConditionRuleBase?(p.ranges([new o.Range(-1,h,-1,1)]),O.conditionalFormats.addRule(p)):Pt(i,p,x);z=this.pNi(h),O.getRange(-1,h,-1,1).locked(z),O.getRange(-1,h,-1,1,o.SheetArea.colHeader).locked(!1),L=this.getFilterButtonVisibleFromColumnInfo(h,e,O),c.filterButtonVisible(h,L),v.isCross?a[0].push(h):a[0].length>0&&a.unshift([])}for(h=0;h<e.length;h++)v=e[h],A(v.headerFit)||this.FNi(h,v.headerFit);d&&(S=this.zuo())&&(O.defaults.colHeaderRowHeight=S),this.XNi(),this.tLi(),O.resumeEvent(),O.resumePaint(),this.KNi(a),this.UMi&&this.UMi.updatePanelLayout(),this.applyStyleRules()}},t.prototype.zuo=function(){var t,n,i,e,r,u,c,a,s,l=this.Mf,f=l.Ut.Q_(!1,o.SheetArea.colHeader);if(f&&(t=f.infos)&&t.length){for(n=t.filter((function(t){return t&&!1!==t.visible})).map((function(t){var n;return null!==(n=t.columnHeaderFitMode)&&void 0!==n?n:o.ColumnHeaderFitMode.normal})),i=!1,e=1,r=0,u=0;u<n.length;u++)(c=n[u])===o.ColumnHeaderFitMode.normal||c===o.ColumnHeaderFitMode.vertical?(i=i||c===o.ColumnHeaderFitMode.vertical,r>0&&(e=Math.max(e,r+1),r=0)):c===o.ColumnHeaderFitMode.stack&&r++;return r>0&&(e=Math.max(e,r)),a=30,s=i?2*a:a,Math.max(s,e*a,this.Tts())}},t.prototype.pno=function(){var t,n,i,e,r=this.Mf,u=r.getDataSource();if(u&&u.tdr){for(r.suspendPaint(),t=u.tdr.length-1;t>-1;t--)(n=u.tdr[t]).K1r&&r.KBe(t,1,o.SheetArea.viewport,!1);for(u.tdr=_,t=(i=u.getColumnInfos()).length-1;t>-1;t--)(e=i[t]).ume&&r.WBe(t,1,o.SheetArea.viewport,{clearUndoNotInCommand:!1});r.resumePaint()}},t.prototype.cno=function(t,n,i){n.Fct((0,o.Ec)(-1,0,-1,i.length)),t.lct=X},t.prototype._Ni=function(t){var n,i,e,o,r=this;return r.qNi()&&(n=r.getDataView(),Ct(e=(i=r.Mf.rowFilter()).tAi[t])&&(o=n.getHierarchyNode(e,!0),!A(o)))?o.level:0},t.prototype.$Ni=function(){return this.getDataView().getHierarchyColumnIndex(!0)},t.prototype.isShowHierarchyOutlineColumn=function(t){return this.qNi(t)},t.prototype.qNi=function(t){var n,i=this.getDataView();return!A(i)&&!A(i.getTable())&&i.hasHierarchyColumn(t)},t.prototype.isHierarchyParent=function(){var t,n=this.getDataView();return n&&n.isHierarchy()&&"Parent"===n.gLt.getHierarchyType()},t.prototype.iDi=function(t,n){var i,e,o=this,r=o.getDataView();if(!A(r)&&!A(n)&&(i=r.kve(n),!A(i)))return e=o.tDi(i),!A(r.h7t(e,t))},t.prototype.wNi=function(){var t,n,i=this,e=i.Mf;i.qNi()&&(n=(t=i.getDataView().SPt(!0)).options,i.suspendPaint(),e.outlineColumn.options(lt(lt({columnIndex:t.index,showIndicator:!0},n),{collapseIndicator:n&&n.collapseIndicator?n.collapseIndicator:g.ARROW_RIGHT,expandIndicator:n&&n.expandIndicator?n.expandIndicator:g.ARROW_DOWN})),e.showRowOutline(!1),e.rowOutlines.KMi=!0,i.resumePaint())},t.prototype.MNo=function(){var t,n=this,i=n.Mf;n.qNi()||(t=i.outlineColumn.options())&&!A(t.columnIndex)&&(n.suspendEvent(),n.Rno(t.columnIndex),i.outlineColumn.reset(),n.resumeEvent())},t.prototype.Rno=function(t){var n,i,e=this,o=e.Mf,r=e.getDataView();if(r){for(n=r.visibleLength(),e.suspendPaint(),e.options.allowAddNew&&o.getCell(n,t).textIndent(_),i=0;i<n;i++)o.getCell(i,t).textIndent(_);e.resumePaint()}},t.prototype.bIo=function(){this.nDi()},t.prototype.NIo=function(t){(this.FDi(t)||this.JDi(t))&&(this.WDi(_,!1),this.HDi()),this.uDi()},t.prototype.nDi=function(){var t,n,i,e,o,r=this,u=r.Mf;if(r.qNi()){for(n=(t=r.getDataView()).visibleLength(),i=!1,e=0;e<n;e++)u.outlineColumn.getCollapsed(e)&&((o=t.getHierarchyNode(e)).eDi=!0,i=!0);return i}},t.prototype.jze=function(){var t,n,i,e,o=this,r=o.Mf;if(!o.qNi())return{};for(t={},i=(n=o.getDataView()).visibleLength(),e=0;e<i;e++)t[e]=r.rowOutlines.getCollapsed(e);return t},t.prototype.vze=function(t){var n,i,e,o=this,r=o.Mf;if(o.qNi())for(i=(n=o.getDataView()).visibleLength(),o.expandAllHierarchyLevels(),o.XNi(),e=0;e<i;e++)r.outlineColumn.setCollapsed(e,t[e])},t.prototype.oDi=function(){var t,n,i,e,o=this,r=o.Mf;if(o.qNi())for(n=(t=o.getDataView()).visibleLength(),i=0;i<n;i++)(e=t.getHierarchyNode(i)).eDi&&(e.eDi=!1,r.outlineColumn.setCollapsed(i,!0))},t.prototype.uDi=function(t){var n=this;n.qNi()&&(n.suspendPaint(),!1!==t&&n.expandAllHierarchyLevels(),n.XNi(),!1!==t&&n.oDi(),n.resumePaint())},t.prototype.XNi=function(){var t,n,i,e,o,r,u,c,a,s=this,l=s.Mf;if(s.qNi()){for(t=s.getDataView(),n=s.$Ni(),s.suspendPaint(),i=t.visibleLength(),(e=l.outlineColumn.options())&&!A(e.columnIndex)&&s.Rno(e.columnIndex),s.options.allowAddNew&&l.getCell(i,n).textIndent(_),o=0;o<i;o++)r=t.getHierarchyNode(o),u=A(r)?_:r.level,l.getCell(o,n).textIndent(u);if(l.outlineColumn.refresh(),(c=t.SPt())&&c.options&&c.options.showCheckBox){for(o=0;o<i;o++)r=t.getHierarchyNode(o),a=!A(r)&&r.cDi,l.outlineColumn.ect(o,a);l.outlineColumn.refresh()}s.resumePaint()}},t.prototype.j_r=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.startBatchOp()},t.prototype.D_r=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.endBatchOp()},t.prototype.Boo=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.suspendOp()},t.prototype.zoo=function(){var t,n,i;null===(i=null===(n=null===(t=this.Mf)||void 0===t?void 0:t.parent)||void 0===n?void 0:n.collaboration)||void 0===i||i.resumeOp()},t.prototype.rDi=function(t){var n=this;n.suspendPaint(),n.uDi(!!t),n.resumePaint()},t.prototype.aDi=function(t){var n=this;return!(!n.qNi()||!Ct(t))&&n.Mf.outlineColumn.getCheckStatus(t)},t.prototype.sDi=function(){var t,n,i,e,o=this;if(o.qNi())for(t=o.Mf,i=0,e=(n=o.getDataView()).visibleLength();i<e;i++)n.getHierarchyNode(i).cDi=t.outlineColumn.getCheckStatus(i)},t.prototype.getHierarchyMaxLevel=function(){return this.MDi()},t.prototype.MDi=function(){var t,n,i=this,e=i.getDataView(),o=e.visibleLength(),r=-1;for(t=0;t<o;t++)(n=e.getHierarchyNode(t).level)>r&&(r=n);return r},t.prototype.showHierarchyItems=function(t){this.IDi(t,!1)},t.prototype.hideHierarchyItems=function(t){this.IDi(t,!0)},t.prototype.IDi=function(t,n){var i=this,e=i.Mf;i.qNi()&&(e.suspendPaint(),t.forEach((function(t){i.gDi(t)&&e.outlineColumn.setCollapsed(t,n)})),e.outlineColumn.refresh(),e.resumePaint())},t.prototype.NDi=function(t){var n,i,e,o=this;if(o.qNi()){for(n=o.Mf,i=o.lDi(),n.suspendPaint(),e=0;e<i;e++)n.outlineColumn.setCollapsed(e,t);n.outlineColumn.refresh(),n.resumePaint()}},t.prototype.expandAllHierarchyLevels=function(){this.NDi(!1)},t.prototype.collapseAllHierarchyLevels=function(){this.NDi(!0)},t.prototype.lDi=function(){var t,n,i;return this.getDataView().visibleLength()},t.prototype.gDi=function(t){return t<this.lDi()},t.prototype.expandHierarchyLevel=function(t){var n,i,e,o,r,u=this;if(u.qNi()){for(n=u.Mf,i=u.getDataView(),e=u.lDi(),u.suspendPaint(),o=0;o<e;o++)(r=i.getHierarchyNode(o).level)<t?n.outlineColumn.setCollapsed(o,!1):n.outlineColumn.setCollapsed(o,!0);n.outlineColumn.refresh(),u.resumePaint()}},t.prototype.promoteHierarchyLevel=function(t){var n=this;n.qNi()&&(n.j_r(),n.getDataView().promoteHierarchyLevel(t),n.rDi(),n.D_r())},t.prototype.demoteHierarchyLevel=function(t,n){var i=this;i.qNi()&&(i.j_r(),i.getDataView().demoteHierarchyLevel(t,n),i.rDi(),i.D_r())},t.prototype.moveUp=function(t){var n,i=this,e=i.getDataView();e.hasHierarchyRowOrder()&&(i.j_r(),i.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),n=i.nDi(),e.moveUp(t),i.rDi(n),i.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),i.D_r())},t.prototype.moveDown=function(t){var n,i=this,e=i.getDataView();e.hasHierarchyRowOrder()&&(i.j_r(),i.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),n=i.nDi(),e.moveDown(t),i.rDi(n),i.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),i.D_r())},t.prototype.hasHierarchyRowOrder=function(){return this.qX()},t.prototype.qX=function(){var t,n;return this.getDataView().hasHierarchyRowOrder()},t.prototype.addHierarchyItemBefore=function(t,n){var i,e=this,o=e.Mf,r=e.getDataView();r.hasHierarchyRowOrder()&&(e.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=e.nDi(),o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),r.addHierarchyItemBefore(t,n||{}),e.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),e.D_r())},t.prototype.addHierarchyItemAfter=function(t,n){var i,e,o=this,r=o.Mf,u=o.getDataView();u.hasHierarchyRowOrder()&&(o.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=o.nDi(),e=u.addHierarchyItemAfter(t,n||{}),r.ffe(t+e,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),o.D_r())},t.prototype.addHierarchyItemAbove=function(t,n){var i,e=this,o=e.Mf,r=e.getDataView();r.hasHierarchyRowOrder()&&(e.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=e.nDi(),o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),r.addHierarchyItemAbove(t,n||{}),e.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),e.D_r())},t.prototype.addHierarchyItemBelow=function(t,n){var i,e,o=this,r=o.Mf,u=o.getDataView();u.hasHierarchyRowOrder()&&(o.j_r(),this.qni.addUndoChanges({type:D.TableSheetUndoType.StoreTreeData}),i=o.nDi(),e=u.addHierarchyItemBelow(t,n||{}),r.ffe(t+e,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),o.uDi(i),this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyTreeData}),o.D_r())},t.prototype.KNi=function(t){var n,i,e,r=this.Mf,u=this.cNi||[[]];for(r.suspendPaint(),n=0;n<u.length;n++)(i=u[n]).length>0&&r.cellStates.getCollection(o.CellStatesType.readonly)&&(e=new o.Range(-1,i[0],-1,i.length),r.cellStates.remove(e,o.CellStatesType.readonly));for(this.cNi=t,n=0;n<t.length;n++)(i=t[n]).length>0&&r.cellStates.add(new o.Range(-1,i[0],-1,i.length),o.CellStatesType.readonly,new o.Style({backColor:"#e6e6e6"}));r.resumePaint()},t.prototype.applyStyleRules=function(){var t,n,i,e,r,u,c,a,s,l,f,d,h=this.Mf,v=h.getDataSource(),g=v.getStyleRules();if(g)for(n in t=h.conditionalFormats,this.clearStyleRuleConditionalFormats(),g)if(g[n]&&(e=(i=g[n]).style,r=i.rule,e&&r))if(u=void 0,u=e instanceof o.Style?e:new o.Style(e),c=r.formula,a=r.state,s=r.direction,l=r.area,f=[new o.Range(-1,-1,-1,-1)],d={},c)Pt(t,d={ruleType:"formulaRule",formula:c,style:u},f);else if(Ct(a)&&Ct(s)){if(1!==s&&3!==s||this.addRowStateRule(a,u),2===s&&l===o.SheetArea.colHeader){this.addColumnHeaderStateRule(a,u);continue}2!==s&&3!==s||this.addColumnStateRule(a,u)}},t.prototype.applyNamedCellTemplate=function(t,n){var i,e,o,r,u,c,a=this.Mf,s=a.getParent();if(s&&t&&"string"==typeof t&&(e=null===(i=s.namedCellTemplates)||void 0===i?void 0:i.get(t))&&Array.isArray(n)&&0!==n.length&&a.getDataSource()){a.suspendPaint(),a.suspendEvent();try{for(e.conditionalFormats&&this.mIo(e.conditionalFormats),o=0;o<n.length;o++)(r=this.CIo(n[o]))&&(u=r.colIndex,c=r.columnInfo,this.Zts(e,u,c));this.refreshBindColumns()}finally{a.resumeEvent(),a.resumePaint()}}},t.prototype.Zts=function(t,n,i){var e,o,r,u,c,a=this.Mf,s=a.getDataSource(),f={};t.style&&(o=this.Xts(t.style,n,i))&&(f.style=o,this.JNi(-1,n,o)),t.conditionalFormats&&(r=t.conditionalFormats.filter((function(t){return t.ruleType!==l.RuleType.rowStateRule&&t.ruleType!==l.RuleType.columnStateRule}))).length>0&&(u=(0,b.resolveAndApplyConditionalFormats)(a,n,r))&&u.length>0&&(f.conditionalFormats=(0,b.mergeConditionalFormats)(null==i?void 0:i.conditionalFormats,u)),t.dataValidations&&t.dataValidations.length>0&&(c=(0,b.resolveAndApplyValidator)(a,n,t.dataValidations))&&(f.validator=c),t.cellStates,Object.keys(f).length>0&&s&&(s.JEe(lt(lt({},i),f)),null===(e=s.MSo)||void 0===e||e.call(s))},t.prototype.mIo=function(t){var n,i,e,o,r,u,c,a=this.getDataView();if(a)for(i=0,e=n=(0,b.resolveTemplateStateStyleRules)(t);i<e.length;i++)r=(o=e[i]).name,u=o.style,c=o.rule,a.addStyleRule(r,u,c)},t.prototype.Xts=function(t,n,i){return(0,b.resolveStyleOptions)(this.Mf,t)},t.prototype.DDi=function(t){var n,i,e,o,r,u,c,a,s,f;if(t&&(i=(n=this.Mf).conditionalFormats))for(o=(e=i.getRules()).length-1;o>=0;o--)u=(r=e[o]).ruleType(),a=(c=r.ranges())[0],s=u===l.RuleType.rowStateRule||u===l.RuleType.columnStateRule,f=u===l.RuleType.formulaRule&&-1===a.col&&-1===a.colCount,(s||f)&&t(r,i)},t.prototype.clearStyleRuleConditionalFormats=function(){this.DDi((function(t,n){n.removeRule(t)}))},t.prototype.refreshStyleRuleCache=function(){this.DDi((function(t,n){n.RX(t),n.fE(t)}))},t.prototype.fDi=function(t,n){var i,e=this.Mf,o=e.getDataSource();return o&&(i=o.kve(t,!0,n))||null},t.prototype.bze=function(t){var n,i,e=this,o=e.endColumn();for(i=0;i<o+1;i++)if((null===(n=e.fDi(i))||void 0===n?void 0:n.name)===t)return i;return null},t.prototype.CIo=function(t){var n,i,e=this.endColumn();for(n=0;n<e+1;n++)if((i=this.fDi(n))&&this.tDi(i)===t)return{colIndex:n,columnInfo:i};return null},t.prototype.dDi=function(t){return this.tDi(this.fDi(t))},t.prototype.tDi=function(t){if(t){var n=t.value;if("string"==typeof n)return n;if("function"==typeof n)return n.name}},t.prototype.Lno=function(t){var n,i=new o.Style;return t&&(this.hDi(t.dropDowns),n=t instanceof o.Style?t:new o.Style(t),i.h5(n,!0),this.Deo(i)&&this.jeo(i)),i},t.prototype.JNi=function(t,n,i,e){var r,u,c,a,s,l,f,d,h=this.Mf;if(A(e)||e===o.SheetArea.viewport?e=3:i&&(i.cellType&&"98"!==i.cellType.typeName&&"107"!==i.cellType.typeName&&delete i.cellType,delete i.tabStop,delete i.imeMode,delete i.cellButtons,delete i.dropDowns,delete i.mask),(r=this.Lno(i)).dropDowns&&r.dropDowns.length>0)for(c=0,a=(u=r.dropDowns).length;c<a;c++)(s=u[c].option)&&s.dataSource&&"string"==typeof s.dataSource&&(l=this.getParent(),f=s.dataSource,(d=l&&l.yC)&&d.addUsedCustomName&&d.getCustomName(f)&&d.addUsedCustomName(f));h.setStyle(t,n,r,e)},t.prototype.Ywt=function(t,n,i){var e,o=this.getDataView();return o&&o.Ywt(t,n,i)},t.prototype.nMt=function(t,n){var i,e=this.getDataView();return e&&e.nMt(t,n)},t.prototype.hDi=function(t){var n=this,i=n.Mf,e=i.parent,o=e.dataManager();t&&t.forEach((function(t){var n,i,e,r=t.option;r&&r.dataSource&&(n=r.dataSource,r.dataSource instanceof f.View&&(n=r.dataSource={datamanagerTable:n.tableName,columns:n.deleteColumnsProperties(n.yLt)}),n.datamanagerTable&&(i=o.tables[n.datamanagerTable],n.viewName=n.datamanagerTable+Math.random().toString(16).substring(1,8),e=i.GRt(n.viewName,n.columns),n.columns=e.deleteColumnsProperties(n.columns),e.fetch()))}))},t.prototype.enablePinRow=function(){var t,n,i,e,o,r=this,u=r.Mf,c=10,a=r.groupBy(),s=a&&Array.isArray(a)&&a.length>0,l=r.qNi(),f=r.getDataView(),d=f.lFt,h=u.getSelections(),v=d&&d.length,g=0,M=0;for(t=0,n=h;t<n.length;t++)(i=n[t])&&(e=i.row,M+=o=i.rowCount,(e=-1===e?0:e)<v&&(g+=Math.min(o+e,v)-e));return!(s||l||v-g+(M-g)>c)},t.prototype.enablePinColumn=function(){var t,n,i,e,o,r=this,u=r.Mf,c=10,a=r.groupBy(),s=a&&Array.isArray(a)&&a.length>0,l=u.getActiveColumnIndex(),f=r.getDataView(),d=f&&f.kve(l),h=f.CLt,v=u.getSelections(),g=h&&h.length,M=0,I=0;for(t=0,n=v;t<n.length;t++)(i=n[t])&&(e=i.col,I+=o=i.colCount,(e=-1===e?0:e)<g&&(M+=Math.min(o+e,g)-e));return!(s||d&&d.isCross||g-M+(I-M)>c)},t.prototype.FNi=function(t,n){var i,e,r=this.Mf;switch(n){case"vertical":i=o.ColumnHeaderFitMode.vertical;break;case"stack":i=o.ColumnHeaderFitMode.stack;break;default:i=o.ColumnHeaderFitMode.normal}e=r.defaults.colHeaderRowHeight,r.GB(t,i),e!==r.defaults.colHeaderRowHeight&&this.qni.addUndoChanges({type:D.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:e,sheetArea:o.SheetArea.colHeader},newData:{size:r.defaults.colHeaderRowHeight,sheetArea:o.SheetArea.colHeader}})},t.prototype.getDataView=function(){return this.Mf.getDataSource()},t.prototype.setDefaultRowHeight=function(t,n){var i=this.Mf.defaults,e=i.rowHeight,r=this.THr({type:"updateTableSheetDefaults"});n===o.SheetArea.colHeader?(e=i.colHeaderRowHeight,i.colHeaderRowHeight=t):i.rowHeight=t,e!==t&&this.qni.addUndoChanges({type:D.TableSheetUndoType.DefaultRowHeightChanged,oldData:{size:e,sheetArea:n},newData:{size:t,sheetArea:n}}),this.$Dr({type:"updateTableSheetDefaults",defaults:{rowHeight:i.rowHeight,colHeaderRowHeight:i.colHeaderRowHeight},changingContext:r})},t.prototype.getDefaultRowHeight=function(t){var n=this.Mf.defaults;return A(t)&&(t=3),t===o.SheetArea.corner||t===o.SheetArea.colHeader?n.colHeaderRowHeight:n.rowHeight},t.prototype.Tts=function(){return 30},t.prototype.MNi=function(){var t;this.gNi=[ct]},t.prototype.rowActionOptions=function(t){var n,i,e=this;return L(t)&&(n=this.THr({type:"updateTableSheetRowActionOptions"}),i=ft([],this.gNi,!0),e.clearRowActions(),e.gNi=e.DNi(t),e.rebuildRowActionOptions(),e.NNi(),e.bDi(),this.qni.addUndoChanges({type:D.TableSheetUndoType.RowAction,oldData:i,newData:this.gNi}),this.$Dr({type:"updateTableSheetRowActionOptions"},n)),e.DNi()},t.prototype.rebuildRowActionOptions=function(){var t,n,i,e=this,o=e.gNi,r=Qt(o,O);Yt(r)&&(t=ut[k],n=ut[E],i=ut[Z],t.icons=r.icons.slice(0,1),(t=z(t)).command=r.command,n.icons=r.icons.slice(1,4),i.icons=r.icons.slice(4,5),r.subActionOptions=[e.nLi(t),e.nLi(n),e.nLi(i)],A(r.iconSize)||r.subActionOptions.forEach((function(t){t.iconSize=z(r.iconSize)})))},t.prototype.NNi=function(){var t=this,n=t.gNi;A(t.getParent())||o.Commands.iMi(t.getParent().commandManager(),n)},t.prototype.tLi=function(){var t,n,i,e=this,o=e.getDataView();if(o)for(e.eLi={},t=o.getColumn(),n=function(n){var i=t[n],r=i.value;if("string"!=typeof r||e.eLi.hasOwnProperty(r))return"continue";Object.defineProperty(e.eLi,r,{get:function(){return o.Nve(e.eLi.oLi,i)}})},i=0;i<t.length;i++)n(i)},t.prototype.nLi=function(t){return t.name===k?t.iLi=$t:t.name===E?t.iLi=tn:t.name===Z&&(t.iLi=nn),t},t.prototype.bDi=function(){var t,n,i,e,r,c,a=this,s=a.Mf,l=a.gNi,f=l.length,h=a.options.showRowNumber?1:0,v=1;for(s.suspendPaint(),s.setColumnCount(v+f+h,o.SheetArea.rowHeader),t=a.groupOutlinePosition(),s.setColumnVisible(0,t===u.GroupOutlinePosition.rowHeader||t===u.GroupOutlinePosition.groupCellAll,o.SheetArea.rowHeader),a.tLi(),n={isPinnedRow:function(t){return a.ADi(t)},isInsertedRow:function(t){return a.vDi(t)},isUpdatedRow:function(t){return a.jDi(t)},isNewRow:function(t){return a.zDi(t)},hasWarning:function(t){return a.CDi(t)},getDataItem:function(t){return a.eLi.oLi=t,a.eLi}},i=0;i<f;i++)r=v+i,yt((e=l[i]).tooltip)&&a.wDi(-1,r,e.tooltip),a.nLi(e),(c=new d.RowAction(e,n)).build(a.yDi(e)),s.setCellType(-1,r,c,o.SheetArea.rowHeader);s.resumePaint()},t.prototype.clearRowActions=function(){var t,n,i,e=this,r=e.Mf,u=e.gNi,c=u.length,a=1;for(r.suspendPaint(),t=0;t<c;t++)i=a+t,(n=u[t]).tooltip&&e.wDi(-1,i,null),r.setStyle(-1,i,null,o.SheetArea.rowHeader);r.resumePaint()},t.prototype.yDi=function(t){var n=this,i=t.name===E||t.name===O,e=t.name===G||t.name===B,o=n.mDi.bind(n),r=n.LDi.bind(n);return i?{enabled:o}:e?{enabled:r,visible:o}:{enabled:o,visible:o}},t.prototype.tIe=function(t){var n;return!this.jFt||this.VDi(t)},t.prototype.Zze=function(t){var n,i;return t<this.Mf.frozenColumnCount()},t.prototype.ADi=function(t){var n,i;return t<this.Mf.frozenRowCount()},t.prototype.xDi=function(t){for(var n=this,i=n.gNi,e=1,o=0;o<i.length&&i[o].name!==t;o++);return o===i.length?-1:e+o},t.prototype.SDi=function(){var t=this,n=t.xDi(Z);return-1===n&&(n=t.xDi(O)),n},t.prototype.zA=function(t){return t.sheetName=this.name(),this.getParent().commandManager().execute(t)},t.prototype.CDi=function(t,n){var i,e=this;if(Ct(t))return(i=e.SDi())===(n=Ct(n)?n:i)&&!A(e.ZDi(t))},t.prototype.ZDi=function(t){var n,i=this.getDataView();return i&&i.getErrorInfo(t)},t.prototype.ODi=function(t){var n,i=this.ZDi(t);if(!A(i))return i.reason},t.prototype.wDi=function(t,n,i,e,r){void 0===r&&(r=o.SheetArea.rowHeader);var u,c=this.Mf;e&&c.getCell(t,n,r).tag(i),c.Ut.$n(t,n,i,r)},t.prototype.Deo=function(t){return t&&t.cellType&&"8"===t.cellType.typeName},t.prototype.jeo=function(t){var n=t.cellType;n.Bto=!0,n.AQe=!0,n._Qe=function(t,n,i){var e=this,o=t.NMi.getDataView(),r=o&&o.BQe(n,i);return r?{id:e._id,visited:r.visited}:X},n.DQe=function(t,n,i){var e=t.NMi.getDataView();e&&e.GQe(n,i,{visited:!0})}},t.prototype.Aeo=function(t){var n,i=this,e=i.getDataView();if(e){if(yt(t)&&(t=i.bze(t),A(t)))return;if(n=e.kve(t,!0,!0),A(n))return;return(n=lt({},n)).caption=dt(n.caption),mt(n.value)&&(n.formula=n.value,"formula"!==n.dataType||(0,f.isNullOrEmpty)(n.name)||mt(n.name)?n.value=X:n.value=n.name),n}},t.prototype.Eze=function(t,n,i){var e,r,u=this,c=u.getParent();c.iy(),u.wze&&u.wze.close(),e=Ct(i)&&u.getDataView()?u.Aeo(i):{},t-=(r=c.uC()).left,n-=r.top,u.wze=new m.Uze(c.j2(),o.util.gi(c&&c.Ti),{columnTypeItems:u.options.columnTypeItems,column:e,getSheet:function(){return u.Mf},getLookup:function(t){var n;return(null===(n=u.getDataView())||void 0===n?void 0:n.jGe(t))||[]},getSampleValue:function(t){var n,i,e,o,r,c=u.getDataView();if(c){if(mt(i=t.formula||t.value))return u.aji(i);if(o=function(){for(var i=0,e=c.visibleLength();i<e&&(n=c.ufe(t,i),A(n));i++);},(e=wt(t.value))&&(o(),!A(n)))return n;if("number"===(r=t.dataType||c.OGe(t)))return 0;if("date"===r)return new Date;!e&&o()}return n},getColumnBy:function(t){return u.Aeo(t)},getColumnFields:function(){var t,n,i,e,o,r=u.getDataView(),c=[];if(r)for(n=0,i=t=r.getColumnInfos(!0,!0);n<i.length;n++)(o=(e=i[n]).value)&&"string"==typeof o&&-1===o.indexOf("=")&&!e.cross&&c.push(o);return c},getTriggerFields:function(){var t,n,i,e,o,r=u.getDataView(),c=[];if(r)for(n=0,i=t=r.getColumnInfos(!0,!0);n<i.length;n++)!(o=(e=i[n]).value)||"string"!=typeof o||-1!==o.indexOf("=")||-1!==o.indexOf(".")||e.cross||e.isRelationship||c.push(o);return c},isRelationship:function(t){var n=u.getDataView();return n&&n.FPt(t,!0)},onOpening:function(){c.focus(!1)},onOpened:function(){u.getSheet().rt.u2()},onSaving:function(t){var n,e;t.column&&(t.column.caption=ht(t.column.caption)),t.originalColumn&&(t.originalColumn.caption=ht(t.originalColumn.caption)),t.col=i,u.options.submitDefineColumnCommand===it?!1!==(n=u.zA(t))&&u.wze.close():(t.command=t.cmd,t.cmd=u.options.submitDefineColumnCommand,n=u.zA(t),"function"==typeof t.onCompleted?(e=t.onCompleted,delete t.onCompleted,e((function(n){n&&n.success&&(t.cmd=t.command,u.zA(t)),u.wze&&u.wze.close()}))):!1!==n&&u.wze.close())},onClosed:function(){u.wze=X,c.focus()}}),u.wze.rQ(t,n)},t.prototype.getChanges=function(){var t=this.Mf,n=t.getDataSource();if(n)return n.getChanges()},t.prototype.submitChanges=function(){var t=this,n=this.Mf,i=n.getDataSource();return i?(t.beforeSubmitChanges(),new Promise((function(n){i.submitChanges((function(n,i,e){t.ONi(n,i,e)})).then((function(i){t.ENi(i),n()}))}))):Promise.resolve()},t.prototype.beforeSubmitChanges=function(){},t.prototype.ONi=function(t,n,i){var e=this,o=e.Mf;"delete"===i&&o.ffe(t,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},t.prototype.ENi=function(t){var n=this,i=n.Mf,e=i.getDataSource(),o=e.visibleLength()+(n.options.allowAddNew?1:0);i.setRowCount(o),i.repaint()},t.prototype.cancelChanges=function(){var t,n,i,e=this.Mf,o=e.getDataSource();o&&(n=(t=o.isDataLengthChanged())||o.isDataRowOrderChanged(),i=(this.getChanges()||[]).some((function(t){return"addColumn"===t.type||"removeColumn"===t.type})),this.beforeCancelChanges(),o.cancelChanges(),this.GNi(o,t,n,i))},t.prototype.beforeCancelChanges=function(){},t.prototype.GNi=function(t,n,i,e){var r,u,c,a=this.Mf;this.suspendPaint(),u=(r=a.getRowCount())-1,c=a.getColumnCount(),a.Ut.clear(0,0,u,c,o.StorageType.data,[]),a.clearPendingChanges({row:0,col:0,rowCount:u,colCount:c,clearType:o.ClearPendingChangeType.dirty|o.ClearPendingChangeType.insert|o.ClearPendingChangeType.delete}),n?(this.uLi(t),this.EDi()):i&&this.EDi(),e?this.refreshBindColumns():this.qNi()&&this.rDi(),this.Teo()&&this.WDi(),this.resumePaint()},t.prototype.EDi=function(){var t,n,i,e,o=this.getDataView(),r=o.autoFilter;if(!r){for(n=(t=this.Mf).rowFilter().Mct.slice(),t.suspendPaint(),i=0;i<n.length;i++)e=n[i],t.Qy().execute({cmd:"clearFilter",sheetName:t.name(),cmdOption:{colIndex:e}});t.resumePaint()}},t.prototype.yy=function(t,n){var i,e=this.Mf;e.getParent().ib.yy(e,t||0,n||0),e.tw()},t.prototype.GDi=function(t){var n=this,i=n.Mf,e=n.uNi;t<e&&e===i.getViewportTopRow(1)&&n.yy(t)},t.prototype.wy=function(t,n){var i,e=this.Mf;e.getParent().ib.wy(e,t||0,n||0),e.ow()},t.prototype.pDi=function(t){var n=this,i=n.Mf,e=n.jIi;t<e&&e===i.getViewportLeftColumn(1)&&n.wy(t)},t.prototype.togglePinnedRows=function(t){var n,i=this.Mf,e=i.getDataSource();if(e&&!this.jFt&&!this.qNi())return this.j_r(),this.qni.startAddComboChanges(),n=e.togglePinnedRows(t),this.qni.addUndoChanges({type:D.TableSheetUndoType.PinnedRowsChanged}),this.tze(),this.qni.endAddComboChanges(),this.D_r(),n},t.prototype.tze=function(){var t=this.Mf,i=this.Mf.getDataSource().togglePinnedRows();if(-1===i)throw(0,n.getSR)().EXP_TooManyPinRecords;i!==this.uNi&&(this.suspendPaint(),t.frozenRowCount(i),this.GDi(i),this.resumePaint(),this.uNi=i)},t.prototype.togglePinnedColumns=function(t){var n,i,e,o,r,u,c,a=this.Mf,s=a.getDataSource();if(s&&!this.jFt)return n=this.kDi(),(i=t.indexOf(n))>=0&&t.splice(i,1),e=this.UDi(),o=a.rowFilter().BDi(),this.j_r(),this.qni.startAddComboChanges(),r=s.togglePinnedColumns(t),this.nze(e,o,r),u=this.UDi(),c=a.rowFilter().BDi(),this.qni.addUndoChanges({type:D.TableSheetUndoType.PinnedColumnsChanged,oldData:{oldFilterColumnsMap:C(u),oldSortColumnsMap:C(c)}}),this.qni.endAddComboChanges(),this.D_r(),r},t.prototype.nze=function(t,i,e){var o=null!=e?e:this.Mf.getDataSource().togglePinnedColumns(),r=this.Mf;if(-1===o)throw(0,n.getSR)().EXP_TooManyPinRecords;this.QDi(t),r.rowFilter().RDi(i),this.suspendPaint(),this.refreshBindColumns(),r.frozenColumnCount(o),this.kze(),this.pDi(o),this.resumePaint(),this.jIi=o},t.prototype.UDi=function(){var t,n,i,e,o=this.Mf,r=o.getDataSource(),u=r.oPt,c=o.rowFilter(),a=c&&c.Mct,s={};if(a&&a.length)for(t=-1,n=0,i=a;n<i.length;n++)e=i[n],s[t=u&&u.length?u[e]:e]=e;return s},t.prototype.QDi=function(t){var n,i,e,o,r,u,c=this.Mf,a=c.getDataSource(),s=a.oPt,l=c.rowFilter(),f=l&&l.Mct,d=l&&l.rrt,h={};for(n in t)t.hasOwnProperty(n)&&(e=t[i=+n],(o=s&&s.length>0?s.indexOf(i):i)!==e&&(f[f.indexOf(e)]=o,r=d[e],delete d[e],h[o]=r));for(u in h)h.hasOwnProperty(u)&&(d[u]=h[u])},t.prototype.PDi=function(){var t=this.uNi,n=this.jIi;this.suspendPaint(),t>0&&this.togglePinnedRows(Ht(t)),n>0&&this.togglePinnedColumns(Ht(n)),this.resumePaint()},t.prototype.nPt=function(){var t,n,i;this.Mf.getDataSource().nPt()},t.prototype.nDe=function(){var t,n,i=this,e=i.Mf,o=i.getDataView(),r=e.H3,u=[];if(u=r.J$?Object.keys(r.J$).reduce((function(t,n){var i,e=null!==(i=r.J$[n])&&void 0!==i?i:{},o=e.name||e.dataField;return o&&t.push(o),t}),[]):Object.keys(r.Pq).map((function(t){return r.Pq[t]})),t=o.getColumnInfos().map((function(t){return o.ife(t)})),u.length!==t.length)i.eDe();else for(n=0;n<u.length;n++)if(u[n]!==t[n])return void i.eDe()},t.prototype.WDi=function(t,n,i){var e=this.Mf,o=this.jFt,r=this.lMi,u=e.getDataSource();o&&u.lde(t)&&(this.suspendPaint(),!1!==n&&this.nDe(),this.Mf.icr&&this.Mf.icr(),this.INi.Yeo(this.options.groupLayout.mode),this.INi.Jeo(this.options.groupLayout),this.INi.Hc(u.FFt,e.getRowCount()-1-(this.options.allowAddNew?1:0),e,r,i),this.resumePaint())},t.prototype.groupBy=function(t){var n,i,e=this.Mf,o=e.getDataSource();if(!o||0===arguments.length||!L(t)||this.qNi())return C(o&&o.groupBy());this.suspendPaint(),e.suspendCalcService(),this.PDi(),this.jFt=!0,n=C(this.lMi),this.lMi=C(t),(i=e.rowFilter())&&i.fIo&&i.fIo(),o.Agr(!this.Teo()),o.groupBy(this.lMi),this.WDi(_,!1),this.eDe(),i&&i.Gze(),e.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.qni.addUndoChanges({type:D.TableSheetUndoType.GroupOptions,oldData:n,newData:this.lMi})},t.prototype.eDe=function(t,n){var i,e,r,c,a;void 0===t&&(t=u.GroupLayoutMode.tabular),c=(r=(e=(i=this.Mf).getDataSource()).getColumnInfos()).length,a=r.filter((function(t){return t.isGroup})).length,this.pno(),i.setColumnCount(c),this.refreshBindColumns(n),a>0?(i.Cb.clear(o.SheetArea.viewport),t===u.GroupLayoutMode.tabular&&i.autoMerge((0,o.Ec)(-1,0,-1,a),h.AutoMergeDirection.column,h.AutoMergeMode.restricted)):this.Teo()&&i.Cb.clear(o.SheetArea.viewport)},t.prototype.removeGroupBy=function(){var t,n,i,e,r,u=this.Mf,c=u.getDataSource();c&&!this.qNi()&&(i=C(this.lMi),this.jFt=!1,this.lMi=_,this.suspendPaint(),u.suspendCalcService(),this.detailColumnsVisible(!0),(e=u.rowFilter())&&e.fIo&&e.fIo(),c.removeGroupBy(),r=c.getColumnInfos().length,u.setColumnCount(r),this.refreshBindColumns(),u.Cb.clear(o.SheetArea.viewport),null===(n=(t=this.Mf).icr)||void 0===n||n.call(t),this.INi.L0(u),e&&e.Gze(),u.resumeCalcService(!1),this.resumePaint(),this.UMi&&this.UMi.updatePanelLayout(),this.qni.addUndoChanges({type:D.TableSheetUndoType.GroupOptions,oldData:i}))},t.prototype.detailColumnsVisible=function(t){var n,i,e,o,r=this.Mf,u=r.getDataSource();if(u){if(n=u.detailColumnsVisible(),0===arguments.length)return n;if((t===n||t||!this.Teo(!0))&&(u.detailColumnsVisible(t),u.BFt)){for(this.suspendPaint(),i=u.getColumnInfos(),e=0;e<i.length;e++)(o=i[e]).isGroup||r.setColumnVisible(e,o.visible);this.HDi(),this.resumePaint()}}},t.prototype.HDi=function(){var t=this.lMi,n=this.detailColumnsVisible();t&&!n&&this.expandGroup(t[t.length-1].field,!1)},t.prototype.groupOutlinePosition=function(t){var n,i;if(0===arguments.length)return this.INi.TMi();n=this.INi.TMi(),i=this.Mf,this.suspendPaint(),this.INi.TMi(i,t),this.resumePaint(),this.qni.addUndoChanges({type:D.TableSheetUndoType.GroupOutlinePosition,oldData:n,newData:t})},t.prototype.Beo=function(t,n){var i,e,o;this.jFt&&(e=(i=this.options.groupLayout).mode,(o=this.getDataView())&&(this.suspendPaint(),t&&(e===u.GroupLayoutMode.tabular?(o.Agr(!0),this.hno()):(0,v.isGroupOutlineCondensedLayout)(e)&&(this.gno(),o.Agr(!1),this.detailColumnsVisible()||this.detailColumnsVisible(!0))),this.WDi(_,!1,n),this.eDe(e,t),this.resumePaint()))},t.prototype.bno=function(){var t,n,i=this.getDataView(),e=0;if(i)for(t=i.getColumn();e<t.length&&(n=t[e]).isGroup;e++);return e},t.prototype.gno=function(){var t=this;t.fno(0,t.bno(),!1)},t.prototype.hno=function(){var t=this;t.dno(0,t.bno(),!1)},t.prototype.Seo=function(){this.Teo(!0)&&(this.WDi(),this.qni.addUndoChanges({type:D.TableSheetUndoType.ResetGroupOutline}))},t.prototype._to=function(){return this.options.groupLayout},t.prototype.Teo=function(t){return(!t||this.jFt)&&(0,v.isGroupOutlineCondensedLayout)(this.keo())},t.prototype.$eo=function(){return(0,v.isGroupCondensedLayout)(this.keo())},t.prototype.keo=function(){var t=this._to();return t&&It(t.mode)},t.prototype.Jto=function(){var t=this._to();return t&&bt(t.position)},t.prototype.Heo=function(){return"footer"!==this.Jto()},t.prototype.expandGroup=function(t,n){var i,e,o=this.lMi;o&&((i=n&&t===o[o.length-1].field&&!this.detailColumnsVisible())||(this.suspendPaint(),e={expand:!n,indexs:[]},this.INi.uMi(o,t,n,(function(t,n){e.level=t,e.indexs.push(n)})),this.qni.addUndoChanges({type:D.TableSheetUndoType.ExpandGroupByLevel,oldData:e,newData:{field:t,expand:n}}),this.resumePaint()))},t.prototype.expandGroupItem=function(t,n,i){var e,o,r=this,u=this.lMi;u&&((e=i&&t===u.length-1&&!this.detailColumnsVisible())||(this.suspendPaint(),o={index:n,level:t},this.INi.aMi(t,n,i,(function(e){o.expand=e,r.qni.addUndoChanges({type:D.TableSheetUndoType.ExpandGroupItem,oldData:o,newData:{index:n,level:t,expand:i}})})),this.resumePaint()))},t.prototype.VDi=function(t){return this.sMi(t,S,0)},t.prototype.DMi=function(t,n){return!(t>-1)||this.sMi(n,t,0)},t.prototype.sMi=function(t,n,i,e,o){return this.lno||this.INi.sMi(t,n,i,e,o)},t.prototype.nIe=function(t,n,i){var e,r,u=this;return!(!u.jFt||i!==o.SheetArea.viewport||!(e=u.Mf.getDataSource()))&&((r=e.kve(n))&&r.isGroup?!u.DMi(r.OFt,t):!u.VDi(t))},t.prototype.MMi=function(t){return this.INi.MMi(t)},t.prototype.IMi=function(t,n){return this.INi.IMi(t,n)},t.prototype.gMi=function(t){return this.INi.gMi(t)},t.prototype.FDi=function(t){var n,i=this.Mf.getDataSource();return!!i&&((n=i.kve(t))&&n.isGroup)},t.prototype.hMi=function(t){var n,i=this.Mf.getDataSource();return!!i&&((n=i.kve(t))&&n.DFt)},t.prototype.JDi=function(t){var n,i=this.Mf.getDataSource();return!!i&&((n=i.kve(t))&&n.GFt)},t.prototype.applyTableTheme=function(t){var n,i=this.Mf,e=this.hl,o=this.THr({type:"updateTableSheetCurrentTheme"});this.hl=t,n=C(this.options.alternatingRowOptions),this.suspendPaint(),this.qeo(i,n,t),this.options.alternatingRowOptions=n,this.resumePaint(),this.qni.addUndoChanges({type:D.TableSheetUndoType.ThemeChanged,oldData:e,newData:this.hl}),this.$Dr({type:"updateTableSheetCurrentTheme",theme:this.hl},o)},t.prototype.getTableTheme=function(){return this.hl},t.prototype.qeo=function(t,n,i){var e,r,u,c,a,s=new o.Style,l=new o.Style,f=i&&i.headerRowStyle();f&&l.h5(f),(e=i&&i.wholeTableStyle())&&(s.h5(e),l.h5(e)),s.cellPadding===_&&(s.cellPadding="5"),t.setDefaultStyle(s),l.showEllipsis===_&&(l.showEllipsis=!0),l.cellPadding===_&&(l.cellPadding="5"),t.setDefaultStyle(l,o.SheetArea.colHeader),(n=n||C(this.options.alternatingRowOptions))&&(n.style=[],n.step=[],r=i&&i.firstRowStripStyle(),n.style[0]=r?this.XDi(r):_,u=i&&i.firstRowStripSize(),n.step[0]=A(u)?1:u,c=i&&i.secondRowStripStyle(),n.style[1]=c?this.XDi(c):_,a=i&&i.secondRowStripSize(),n.step[1]=A(a)?1:a)},t.prototype.XDi=function(t){var n=new o.Style;return A(t.backColor)||(n.backColor=t.backColor),A(t.foreColor)||(n.foreColor=t.foreColor),A(t.font)||(n.font=t.font),A(t.borderLeft)||(n.borderLeft=t.borderLeft),A(t.borderTop)||(n.borderTop=t.borderTop),A(t.borderRight)||(n.borderRight=t.borderRight),A(t.borderBottom)||(n.borderBottom=t.borderBottom),A(t.textDecoration)||(n.textDecoration=t.textDecoration),n},t.prototype.applyFreeHeaderArea=function(t){if(0===arguments.length)return this.hNi;this.qni.addUndoChanges({type:D.TableSheetUndoType.ApplyFreeHeaderChanged,oldData:this.hNi,newData:t});var n=this.THr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi});this.hNi=t,this.refreshBindColumns(),this.$Dr({type:"updateTableSheetFreeHeaderArea",freeHeaderAreaJSON:this.hNi},n)},t.prototype.printInfo=function(t){var n,i=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)),(n=i.printInfo&&i.printInfo.apply(i,arguments))&&Vt(n),t&&i.printInfo&&this.$Dr({type:"updateTableSheetPrintInfo",printInfo:i.printInfo()}),n},t.prototype.addRow=function(t){var n,i=this,e=this.Mf,o=e.getRowCount();return i.options.allowAddNew&&(o-=1),n=this.getDataView(),new Promise((function(r,u){n.insertItem(o,t,(function(){n.saveItem(o,(function(){i.mNi(o),r()}),Ut(e,o,u))}),Ut(e,o,u))}))},t.prototype.iM=function(t,n){var i=this;i.suspendPaint(),i.WDi(n),i.XNi(),i.resumePaint()},t.prototype.iDe=function(t){var n,i;this.Mf.gL(t,-1)},t.prototype.removeRow=function(t){var n,i=this,e=this.Mf;return i.zDi(t)?Promise.resolve():(n=this.jze(),this.qni.addUndoChanges({type:D.TableSheetUndoType.ChangeCollapse,oldData:n}),this.qni.addUndoChanges({type:D.TableSheetUndoType.RemoveRow}),new Promise((function(n,o){i.getDataView().removeRowData(t,1,(function(e){i.ZNi(t,e.removedCount),i.qni.addUndoChanges({type:D.TableSheetUndoType.PinnedRowsChanged}),n()}),Ut(e,t,o))})))},t.prototype.eze=function(){var t=this,n=t.Mf.getRowCount(),i=t.getDataView().length(),e=this.options.allowAddNew;t.suspendPaint(),t.Mf.ffe(n,i-n+(e?1:0),3,{rowExpand:!1,clearUndoNotInCommand:!1}),t.WDi(),t.uDi(),t.resumePaint()},t.prototype.Cze=function(t,n){var i=this;i.Mf.WBe(t,n||1,o.SheetArea.viewport,{clearUndoNotInCommand:!1}),i.kze(t)},t.prototype.beo=function(t,n){var i=this;i.Mf.KBe(t,n||1,o.SheetArea.viewport,!1),i.kze(t)},t.prototype.kze=function(t){var n,i=this;i.isShowHierarchyOutlineColumn()&&(n=i.Mf.outlineColumn.options().columnIndex,(A(t)?i.$Ni()!==n:t<n)&&i.wNi())},t.prototype.KDi=function(t,n){var i,e=this.Mf;e.QBe(t,n||1,3,!1),t<(i=e.frozenRowCount())&&e.frozenRowCount(i-1)},t.prototype.ZNi=function(t,n){var i=this;i.suspendPaint(),i.KDi(t,n),i.WDi(),i.XNi(),i.resumePaint()},t.prototype.saveRow=function(t){var n=this;return n.zDi(t)?Promise.resolve():new Promise((function(i,e){var o=n.Mf;n.getDataView().saveItem(t,(function(){n.SNi(t),i()}),Ut(o,t,e))}))},t.prototype.SNi=function(t){var n=this;n.suspendPaint(),n.resumePaint()},t.prototype.resetRow=function(t){var n=this;n.zDi(t)||n.getDataView().resetItem(t,(function(){n.xNi(t)}))},t.prototype.xNi=function(t){var n=this;n.iDe(t),n.iM(t)},t.prototype.addRowStateRule=function(t,n){var i,e,r,u;t!==o.RowColumnStates.invalid&&4!==t&&t!==o.RowColumnStates.edit&&(r=(e=(i=this).Mf).conditionalFormats)&&(u=[new o.Range(-1,-1,-1,-1)],r.addRowStateRule(t,n,u))},t.prototype.addColumnStateRule=function(t,n){var i,e,r,u;t!==o.RowColumnStates.invalid&&t!==o.RowColumnStates.dirty&&t!==o.RowColumnStates.edit&&(r=(e=(i=this).Mf).conditionalFormats)&&(u=[new o.Range(-1,-1,-1,-1)],r.addColumnStateRule(t,n,u))},t.prototype.addColumnHeaderStateRule=function(t,n){var i,e,o,r,u;if((4===t||1024===t||2048===t||4096===t)&&(o=(e=(i=this).Mf).conditionalFormats)){switch(r=function(t){n.decoration&&n.decoration.icons&&1===n.decoration.icons.length&&""===n.decoration.icons[0].src&&(n.decoration.icons[0].src=t)},t){case 4:r(F);break;case 1024:r(W);break;case 2048:r(V);break;case 4096:r(J)}return u=new a.ColumnHeaderStateRule(l.RuleType.columnStateRule,t,n),o.addRule(u)}},t.prototype.iAi=function(t){var n=t.conditionalFormats;n&&n.rules&&(n.rules=n.rules.filter((function(t){var n=[4,1024,2048,4096];return!(15===t.ruleType&&n.indexOf(t.state)>-1)})))},t.prototype.removeRowStateRule=function(t){t!==o.RowColumnStates.invalid&&4!==t&&t!==o.RowColumnStates.edit&&this._Di(t,!0)},t.prototype.removeColumnStateRule=function(t){t!==o.RowColumnStates.invalid&&t!==o.RowColumnStates.dirty&&t!==o.RowColumnStates.edit&&this._Di(t,!1)},t.prototype._Di=function(t,n){var i,e,o,r,u=this,c=u.Mf,a=c.conditionalFormats;if(a)for(e=0,o=i=a.getRules();e<o.length;e++)!(r=o[e]).isStateRule()||r.isRow()!==n||t&&t!==r.state()||a.removeRule(r)},t.prototype.getStateRules=function(){var t,n=this.Mf.conditionalFormats;return n?(t=n.getRules()).filter((function(t){var n=t.ruleType();return n===l.RuleType.rowStateRule||n===l.RuleType.columnStateRule})):[]},t.prototype.clearStateRules=function(){var t,n,i,e,o=this.Mf.conditionalFormats;if(o)for(n=(t=o.getRules()).length-1;n>=0;n--)(e=(i=t[n]).ruleType())!==l.RuleType.rowStateRule&&e!==l.RuleType.columnStateRule||o.removeRule(i)},t.prototype.qDi=function(){return this.Mf._1},t.prototype.hasRowState=function(t,n){var i=this.qDi().getState(n,0,t,!0,[{row:-1,rowCount:-1,col:-1,colCount:-1}]);return Ct(i)&&i===t},t.prototype.$Di=function(t,n,i,e){var o=this,r=this.getDataView(),u=this.Mf,c={};c[n]=i,r.updateItem(t,c,(function(i){e&&e.hasAddNewRowData&&!o.jFt||o.LNi(t,n)}),Ut(u,t),e)},t.prototype.LNi=function(t,n){var i=this,e=i.Mf;e.Mno()?e.jno(n):i.iM(t,n)},t.prototype.iTi=function(t,n,i){var e,o,r=this.getDataView();r&&(e=this.Mf,(o=r.getColumnInfos()).forEach((function(o,u){var c,a,s=o.defaultValue,l=i&&i[r.ife(o)];A(l)&&!A(s)&&(l=Tt(s)?s():s,s&&"="===s[0]&&((c=e.Uw()).DJ=r.length(),a=e.Lp.parse(c,s,0,0),l=e.Lp.evaluateExpression(c,a,{row:t,col:u}))),n(l,u,o)})))},t.prototype.aji=function(t){var n,i=this,e=i.getDataView();return e&&(n=e.nMt(e.Ywt(t),0)),n},t.prototype.TLt=function(t,n,i){return t.TLt(n,i)},t.prototype.EPt=function(){var t=this,n=t.jIi,i=t.getDataView();n>0&&(t.tTi=i.EPt(),t.togglePinnedColumns(Ht(n)))},t.prototype.jPt=function(){var t=this,n=t.tTi,i=t.getDataView(),e=i.jPt(n);e.length>0&&t.togglePinnedColumns(e),delete t.tTi},t.prototype.DPt=function(t,n){var i=this.getDataView();if(i)return i.DPt(t,n)},t.prototype.OPt=function(t,n,i){var e,o,r=this.getDataView();r&&(this.qni.startAddComboChanges(),e=r.OPt(t,n,i),(o=this.Mf.rowFilter())&&"function"==typeof o.nTi&&o.nTi(e),this.kTi(r),this.qni.addUndoChanges({type:D.TableSheetUndoType.SetDataView}),this.Teo(!0)&&this.qni.addUndoChanges({type:D.TableSheetUndoType.ResetGroupOutline}),this.qni.endAddComboChanges())},t.prototype.eTi=function(t,n){var i,e={},o;return this.iTi(t,(function(t,n,i){Tt(o=i.value instanceof Function?i.value.name:i.value)||mt(o)||wt(o)||(e[o]=t)}),n),e},t.prototype.oTi=function(t,n,i){var e=this,o=this.getDataView(),r=this.Mf,u=e.eTi(t,n);o.insertItem(t,u,(function(){}),Ut(r,t,i))},t.prototype.mNi=function(t){var n=this,i=n.Mf.getRowCount();n.Mf.ffe(i<1?t:t-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),n.refreshStyleRuleCache(),n.iM(t)},t.prototype.vDi=function(t){var n;return this.qDi().getState(t,-1,o.RowColumnStates.inserted)>0},t.prototype.jDi=function(t){var n;return this.qDi().getState(t,-1,256)>0},t.prototype.zNi=function(){var t,n=this,i=n.Mf;i.suspendPaint(),t=i.getColumnCount(),i.WBe(t,1,3,{clearUndoNotInCommand:!1}),n.uTi(!0,""),i.rowFilter().filterButtonVisible(t,!1),i.resumePaint()},t.prototype.cTi=function(){var t,n=this,i=n.Mf;i.suspendPaint(),t=n.kDi(),i.getValue(0,t,o.SheetArea.colHeader)===n.actionColumn.options().title&&i.KBe(t,1,3,!1),i.resumePaint()},t.prototype.uTi=function(t,n){var i,e,r,u,c,a,s,l,f,d,h=this,v=h.Mf;v.suspendPaint(),i=h.kDi(),(t||v.getValue(0,i,o.SheetArea.colHeader)===n)&&(e=new o.Style,r=[],(a=(c=(u=h.actionColumn.options()).actionButtons.remove)&&c.visible)&&r.push({useButtonStyle:!0,caption:c.title,imageType:c.icon,enabled:h.mDi.bind(h),visible:"auto"!==a||h.mDi.bind(h),position:o.ButtonPosition.left,command:function(t,n,i,e){h.Mf.ki(o.Events.RowOperation,{sheet:h,sheetName:h.name(),actionType:at.remove,row:n}),h.removeRow(n).catch(rt)}}),(l=(s=u.actionButtons.save)&&s.visible)&&r.push({useButtonStyle:!0,caption:s.title,imageType:s.icon,enabled:h.LDi.bind(h),visible:"auto"!==l||h.LDi.bind(h),position:o.ButtonPosition.left,command:function(t,n,i,e){h.Mf.ki(o.Events.RowOperation,{sheet:h,sheetName:h.name(),actionType:at.save,row:n}),h.saveRow(n).catch(rt)}}),(d=(f=u.actionButtons.reset)&&f.visible)&&r.push({useButtonStyle:!0,caption:f.title,imageType:f.icon,enabled:h.LDi.bind(h),visible:"auto"!==d||h.LDi.bind(h),position:o.ButtonPosition.left,command:function(t,n,i,e){h.Mf.ki(o.Events.RowOperation,{sheet:h,sheetName:h.name(),actionType:at.reset,row:n}),h.resetRow(n)}}),r.length>0&&(e.cellButtons=r),e.locked=!1,v.setStyle(-1,i,e),h.JNi(-1,i,u.headerStyle,o.SheetArea.colHeader),v.setValue(0,i,u.title,o.SheetArea.colHeader),v.setColumnWidth(i,u.width)),v.resumePaint()},t.prototype.mDi=function(t){return!this.zDi(t)},t.prototype.LDi=function(t){var n=this,i=n.jDi(t),e=n.vDi(t),o=n.zDi(t);return i||e&&!o},t.prototype.CNi=function(){var t=this.Mf,n=t.getRowCount();n=n<2?n:n-2,t.ffe(n,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})},t.prototype.rTi=function(){var t=this.Mf;t.QBe(t.getRowCount()-1,1,3,!1)},t.prototype.aNi=function(){var t,n=this.Mf;n.suspendDirty(),n.options.allowCellOverflow=!1,n.options.rowHeaderAutoText=o.HeaderAutoText.blank,n.options.clipBoardOptions=o.ClipboardPasteOptions.values,n.options.isProtected=!0,(t=n.options.protectionOptions).allowSort=!0,t.allowFilter=!0,t.allowResizeColumns=!0,t.allowDragInsertColumns=!0,t.allowOutlineRows=!0},t.prototype.lNi=function(t){var n,i,e=this,o=e.Mf;if(e.options.allowAddNew&&t++,t!==o.getRowCount())for(n in o.Ut.cj(t),o.Ww=!0,this.X$)this.X$[n]&&(i=this.X$[n]).xts()},t.prototype.aTi=function(t,n){var i=this,e=i.getDataView(),r=e&&e.iRt&&e.iRt.length,u=i.Mf.getRowCount();i.zDi(t)&&u!==r+1&&(i.Mf.ki(o.Events.RowOperation,{sheet:i,sheetName:i.name(),actionType:at.addNewEmptyRow,row:t+1}),i.CNi(),i.WDi(),i.XNi())},t.prototype.pTi=function(t,n){var i=this,e=t.value;return!("string"==typeof e&&e.indexOf(".")>-1)||(e=e.split(".")[0],!A(i.getDataView().ufe({value:e},n)))},t.prototype.Gno=function(){var t,n,i,e=this,o=e.Mf,r=e.getDataView(),u=r.visibleLength(),c=e.Bno;for(t in c)c.hasOwnProperty(t)&&(n=c[t],i=Number(t),e.zDi(i)||i>=u?e.oTi(i,n):r.updateItem(i,n,(function(){}),Ut(o,i)));e.Bno=_},t.prototype.tDe=function(){var t=this,n=t.Mf,i=n.getRowCount()-(t.options.allowAddNew?1:0),e=t.getDataView().visibleLength();i<=e?(n.setRowCount(e-(t.options.allowAddNew?0:1)),n.ffe(i-1,1,3,{rowExpand:!1,clearUndoNotInCommand:!1})):(n.setRowCount(e),t.options.allowAddNew&&n.ffe(e,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}))},t.prototype.v7=function(){var t=this,n=t.Mf;function i(i,e){if(t.nPt(),t.WDi(),t.HDi(),t.XNi(),t.getParent().options.calcOnDemand){var o=t.getDataView().gLt;o&&o.o_t(_,!0)}else setTimeout((function(){var i,e=null===(i=t.getDataView())||void 0===i?void 0:i.gLt;e&&(n.suspendCalcService(),e.o_t(_,!0),n.resumeCalcService(!1))}),10)}n.D3(o.Events.EditStarting+$,(function(n,i){i.col===t.kDi()&&(i.cancel=!0)})),n.D3(o.Events.EditEnded+$,(function(n,i){var e,o=i.row,r=i.ignoreValueChange;if(!r){if((0,f.isNullOrEmpty)(i.editingText)&&t.zDi(o)){if(e=t.fDi(i.col),A(e.defaultValue)||!t.pTi(e,o))return;t.oTi(o)}t.aTi(o,!0)}})),n.D3(o.Events.ClipboardPasting+$,(function(n,i){var e=i.cellRange,o=e.col,r=e.col+e.colCount-1,u=t.kDi(),c;o<=u&&u<=r&&(i.cancel=!0),i.cancel||(t.Bno={},t.getDataView().mme())})),n.D3(o.Events.ClipboardPasted+$,(function(n,i){t.Gno();var e=i.cellRange,o=e.row+e.rowCount-1;t.aTi(o),t.getDataView().gme(),t.iM(o)})),n.D3(o.Events.DragFillBlock+$,(function(n,i){var e,o,r=i.fillRange,u=i.fillDirection,c=r.col+r.colCount-1;0===u&&(-1!==r.row&&-1!==r.rowCount&&(c+=1),o=(e=i.sheet.getSelections()[0]).col+e.colCount-1,c=Math.max(c,o)),c===t.kDi()&&(i.cancel=!0),i.cancel||(t.Bno={},t.getDataView().mme())})),n.D3(o.Events.DragFillBlockCompleted+$,(function(n,i){t.Gno();var e=i.fillRange,o=e.row+e.rowCount-1;t.aTi(o),t.getDataView().gme(),t.iM(o)})),n.D3(o.Events.DragDropBlock+$,(function(i,e){var o,r,u=e.fromCol,c=e.toCol,a=e.colCount,s=e.insert,l=e.fromRow,f=e.toRow,d=u+a-1,h=c+a-1,v=t.kDi();d===v||h===v?e.cancel=!0:s&&-1===l&&-1===f&&(o=u<c?c-1:c,t.OPt(u,o,a),t.UMi&&t.UMi.updatePanelLayout(),r=u<c?c-a:c,n.setSelection(-1,r,-1,a),e.cancel=!0),e.cancel||(t.Bno={},t.getDataView().mme())})),n.D3(o.Events.DragDropBlockCompleted+$,(function(n,i){t.Gno();var e=i.toRow+i.rowCount-1;t.aTi(e),t.getDataView().gme(),t.iM(e)})),n.D3(o.Events.ValueChanged+$,(function(n,i){t.aTi(i.row)})),n.D3(o.Events.CellChanged+$,(function(i,e){var r,u=e.row,c=e.col,a=e.sheetArea,s=e.newValue;a===o.SheetArea.colHeader&&(r=u<n.Ut.getFreeAreaRowCount(a),"value"===e.propertyName?r?t.YNi(u,c,"value",s):t.HNi(c):"formula"===e.propertyName&&r&&t.YNi(u,c,"formula",s))})),n.D3(o.Events.RangeChanged+$,(function(i,e){var r,u,c,a,s,l,f,d;if(6===e.action)for(u=0,c=r=e.changedCells;u<c.length;u++)s=(a=c[u]).row,l=a.col,(f=a.sheetArea)===o.SheetArea.colHeader&&((d=s<n.Ut.getFreeAreaRowCount(f))?t.YNi(s,l,"value",n.getValue(s,l,f)):t.HNi(l))})),n.D3(o.Events.ColumnWidthChanged+$,(function(t,i){var e=n.getDataSource(),o=e.getColumnInfos();!i.header&&!A(o)&&o.length>0&&i.colList.forEach((function(t){var i=o[t]&<({},o[t]);A(i)||(i.width=n.Do(t,1),e.JEe(i))}))})),n.D3(o.Events.ColumnChanged+$,(function(i,e){var r,u,c,a;"isVisible"!==e.propertyName||1!==e.sheetArea&&3!==e.sheetArea||(r=n.getDataSource())&&(u=r.kve(e.col))&&(t.qni.startAddComboChanges(),c=!1!==u.visible,r.JEe(lt(lt({},u),{visible:e.newValue})),c!==e.newValue&&t.Teo(!0)&&(a=n.k9(o.SheetArea.viewport),(e.newValue?e.col===a:e.col<a)&&t.Seo()),t.qni.endAddComboChanges())})),n.D3(o.Events.RangeFiltering+$,(function(){t.yno=!0})),n.D3(o.Events.RangeFiltered+$,(function(n,e){t.yno=!1,i(n,e)})),n.D3(o.Events.RangeFilterClearing+$,(function(){t.nAi=!0})),n.D3(o.Events.RangeFilterCleared+$,(function(n,e){t.nAi=!1,i(n,e)})),n.D3(o.Events.RangeSorting+$,(function(){t.bIo()})),n.D3(o.Events.RangeSorted+$,(function(n,i){t.NIo(i.col)})),n.D3(o.Events.OutlineColumnCheckStatusChanged+$,(function(n,i){t.sDi()}))},t.prototype.Ob=function(t,i,e,r){var c,a,s,l,f,d,h,v,g,M,I,b,N=this;if("allowAddNew"===t)!0===i&&!1===e?N.CNi():!1===i&&!0===e&&N.rTi();else if("alternatingRowOptions"===t)N.Mf.repaint();else if("defaultStackRowHeight"===t)N.Mf.zw();else if("isDesignMode"===t)N.vNi(i);else if("sheetTabColor"===t)c=N.getParent(),A(c.getHost())||c.AC(!1);else if("enableDefineColumn"===t)N.Mf.suspendPaint(),N.Mf.options.addColumnButtonOption=i?{visible:!0,width:X,command:N.options.defineColumnCommand,style:X,tooltip:(0,n.getSR)().defineColumn}:{visible:!1,width:X,command:nt,style:X,tooltip:X},N.Mf.resumePaint();else if("defineColumnCommand"===t)N.Mf.suspendPaint(),N.Mf.options.addColumnButtonOption?N.Mf.options.addColumnButtonOption.command=i:N.Mf.options.addColumnButtonOption={visible:!0,width:X,command:N.options.defineColumnCommand,style:X,tooltip:(0,n.getSR)().defineColumn},N.Mf.resumePaint();else if("showRowNumber"===t)N.Mf.suspendPaint(),i?(N.Mf.setColumnCount(N.Mf.getColumnCount(o.SheetArea.rowHeader)+1,o.SheetArea.rowHeader),N.Mf.options.rowHeaderAutoText=o.HeaderAutoText.numbers):(N.Mf.setColumnCount(N.Mf.getColumnCount(o.SheetArea.rowHeader)-1,o.SheetArea.rowHeader),N.Mf.options.rowHeaderAutoText=o.HeaderAutoText.blank),N.Mf.resumePaint();else if("groupLayout"===t)N.Mf.suspendPaint(),i?(a=It(i.mode),s=i.position,l={mode:a},s&&bt(s)&&(l.position=s),f=function(t,n,i){var e,o;return"mode"===t?(e=It(n))!==i&&(o=!0):"position"===t&&(e=bt(n)?n:_),[e,function(){N.Beo(o,!0)}]},d=N.options.groupLayout,["mode","position"].forEach((function(t){var n=l[t];Nt(d,t,f),d["_"+t]=n})),N.Beo(i.mode!==(e&&e.mode),!0)):N.options.groupLayout=r&&r.groupLayout?lt({},r.groupLayout):{mode:u.GroupLayoutMode.tabular},N.Mf.resumePaint();else if("allowSorts"===t){if(N.Mf.suspendPaint(),!1===i)(h=N.Mf.rowFilter())&&h.getMultiSortCount&&h.getMultiSortCount()>0&&(h.jFt&&h.jFt()?(h.dIo(),h.vIo(),(v=N.Mf.getDataSource())&&(g=h.sIo().map((function(t){return{field:N.dDi(t.index),ascending:t.ascending,compare:t.compareFunction}})),v.sort(g))):(M=h.lIo(),h.clearAllMultiSorts(),M.length>0&&(I=M[0],h.setSortInfo({index:I.index,ascending:I.ascending}),(v=N.Mf.getDataSource())&&(g=h.xno().map((function(t){return{field:N.dDi(t.index),ascending:t.ascending,compare:t.compareFunction}})),v.sort(g)))));else if(!0===i&&(h=N.Mf.rowFilter())&&h.xno&&0===h.getMultiSortCount())for(g=h.xno(),b=0;b<g.length;b++)h.iIo.push(g[b].index);N.Mf.resumePaint()}this.qni.addUndoChanges({type:D.TableSheetUndoType.OptionChanged,oldData:e,newData:i,key:t})},t.prototype.vNi=function(t){var n,i=this.Mf;i.suspendPaint(),i.suspendEvent(),t&&((n=new o.CellTypes.Text).isImeAware=function(){return!1}),i.setCellType(-1,-1,n,o.SheetArea.colHeader),i.resumeEvent(),i.resumePaint()},t.prototype.getDefaultOptions=function(){return{allowAddNew:!0,allowSorts:!0,alternatingRowOptions:{step:[1,1],style:new o.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:tt,submitDefineColumnCommand:it,enableDefineColumn:!1,groupLayout:{mode:u.GroupLayoutMode.tabular},columnTypeItems:[{name:u.ColumnTypes.Number,text:(0,n.getSR)().columnTypeNumber,iconClass:Dt(u.ColumnTypes.Number)},{name:u.ColumnTypes.Text,text:(0,n.getSR)().columnTypeText,iconClass:Dt(u.ColumnTypes.Text)},{name:u.ColumnTypes.Formula,text:(0,n.getSR)().columnTypeFormula,iconClass:Dt(u.ColumnTypes.Formula)},{name:u.ColumnTypes.Lookup,text:(0,n.getSR)().columnTypeLookup,iconClass:Dt(u.ColumnTypes.Lookup)},{name:u.ColumnTypes.Date,text:(0,n.getSR)().columnTypeDate,iconClass:Dt(u.ColumnTypes.Date)},{name:u.ColumnTypes.Checkbox,text:(0,n.getSR)().columnTypeCheckbox,iconClass:Dt(u.ColumnTypes.Checkbox)},{name:u.ColumnTypes.Select,text:(0,n.getSR)().columnTypeSelect,iconClass:Dt(u.ColumnTypes.Select)},{name:u.ColumnTypes.Currency,text:(0,n.getSR)().columnTypeCurrency,iconClass:Dt(u.ColumnTypes.Currency)},{name:u.ColumnTypes.Percent,text:(0,n.getSR)().columnTypePercent,iconClass:Dt(u.ColumnTypes.Percent)},{name:u.ColumnTypes.Phone,text:(0,n.getSR)().columnTypePhone,iconClass:Dt(u.ColumnTypes.Phone)},{name:u.ColumnTypes.Email,text:(0,n.getSR)().columnTypeEmail,iconClass:Dt(u.ColumnTypes.Email)},{name:u.ColumnTypes.URL,text:(0,n.getSR)().columnTypeURL,iconClass:Dt(u.ColumnTypes.URL)},{name:u.ColumnTypes.CreatedTime,text:(0,n.getSR)().columnTypeCreatedTime,iconClass:Dt(u.ColumnTypes.CreatedTime)},{name:u.ColumnTypes.ModifiedTime,text:(0,n.getSR)().columnTypeModifiedTime,iconClass:Dt(u.ColumnTypes.ModifiedTime)},{name:u.ColumnTypes.Attachment,text:(0,n.getSR)().columnTypeAttachment,iconClass:Dt(u.ColumnTypes.Attachment)},{name:u.ColumnTypes.Barcode,text:(0,n.getSR)().columnTypeBarcode,iconClass:Dt(u.ColumnTypes.Barcode)}]}},t.prototype.Zp=function(t){var n,i,e,r=this,u=r.getDefaultOptions();r.options=o.mt.b0(u,(function(t,i,e){r.Ob(t,i,e,u),r.$Dr({type:"updateTableSheetOptions",options:r.options},n)}),(function(){return n=r.THr({type:"updateTableSheetOptions"}),!0})),i=r.options,e=j(!0,{},u,e=t||{}),p(e,(function(t,n){i.hasOwnProperty(t)&&(i[t]=n)}))},t.prototype.sNi=function(){var t=this;t.actionColumn=new c.ActionColumn((function(n,i){var e;t.getDataView()&&(n.visible&&!i.visible?t.cTi():!n.visible&&i.visible?t.zNi():n.visible&&i.visible&&t.uTi(!1,n.title))}))},t.prototype.zDi=function(t){var n=this;return n.options.allowAddNew&&t===n.Mf.getRowCount()-1},t.prototype.kTo=function(t,n,i){var e,o,r,u,c,a=this;return a.zDi(t)?_:(e=a.getDataView())&&(o=e.getColumn(n))?(r=A(i),u=""===i,c=function(t){return r&&!A(t.showNullAs)?""+t.showNullAs:u&&!A(t.showEmptyAs)?""+t.showEmptyAs:_},(r||u)&&a.Mf&&a.Mf.isEditing()?i:c(o)):_},t.prototype.kDi=function(){var t=this,n=t.Mf;return t.actionColumn.options().visible?n.getColumnCount()-1:-1},t.prototype.id=function(){return this.getDataView().getDirtyIndexes()},t.prototype.e1e=function(){return this.options.sheetTabColor},t.prototype.parameter=function(t){var n,i,e,o;if(0===arguments.length){for(e in i={},n=this.o1e)n.hasOwnProperty(e)&&(i[e]=ot(n[e]));return i}if(t){for(e in o={},t)t.hasOwnProperty(e)&&(o[e]=et(t[e]));this.o1e=o}},t.prototype.isAlternatingRowStyleColumn=function(t){return!0},t.prototype.getGroupingHeaderHeight=function(t,n){var i=this.options.groupLayout.mode;return i===u.GroupLayoutMode.outline?2*this.Mf.defaults.rowHeight:i===u.GroupLayoutMode.condensed?this.Mf.defaults.rowHeight:0},t.prototype.getGroupingFooterHeight=function(t,n){return this.getGroupingHeaderHeight(t,n)},t.prototype.refreshDataProvider=function(){var t,n;for(t in this.X$)this.X$[t]&&(n=this.X$[t],this.Mf.Cb.IP(),n.clearCache(),n.updateSticky(),n.updateRange(),n.repaintHost())},t.prototype.getValueInOneCell=function(t){var n=t.row,i=t.col,e=t.rowSpacingIndex,r=t.isAfterRowSpacing,u=this.Mf.$go(n,i,o.SheetArea.viewport,{rowSpacingIndex:e,isAfterRowSpacing:r});if(u&&u.getValueInOneCell)return u.getValueInOneCell(Object.assign({sheet:this.Mf},t))},t.prototype.isNewRow=function(t){return this.zDi(t)},t.prototype.onNewRowChanged=function(t,n){this.aTi(t,n)},t.prototype.isGroup=function(){return this.jFt},t.prototype.isGroupOutlineCondensedLayout=function(t){return this.Teo(t)},t.prototype.registerDataProvider=function(t,n){this.X$||(this.X$={}),this.X$[t]=n},t.prototype.unregisterDataProvider=function(t){this.X$[t]&&delete this.X$[t]},t.prototype.notChangeActiveSheetWhenUndo=function(){return Object.keys(this.X$).length>0},t.prototype.$Dr=function(t,n){var i=this.getParent();i&&(t.tableSheetId=this.jKe(),n&&(t.changingContext=n),i.$Dr(t))},t.prototype.THr=function(t){var n=this.getParent();return n&&(t.tableSheetId=this.jKe(),t.changingContext={},n.THr(t)),t.changingContext},t._ID=1,t}(),n.TableSheet=st,(0,o.qDr)(st),o.Workbook.ch("tableSheet",{init:function(){var t=this;o.Commands.uri(t.commandManager()),t.bind(o.Events.ActiveSheetChanged+K,(function(){(0,M.updateStatusBarOnActiveSheetChanged)(t)}))},onCultureChanged:function(){(0,n.getSR)()},createSheetTab:function(t){t.type===o.SheetType.tableSheet?(t.name||(t.name=on(this.qv())),t.sheetTab=new st(t.name)):t.type===o.SheetType.customSheetTab&&(t.sheetTab=new u.CustomSheetTab(t.name))},getAdditionalWorksheetToSJSFormat:function(t){var n,i,e;if(t.fileType===o.OpenSaveFileType.excel)for(n=0,i=this.mp;n<i.length;n++)(e=i[n])._gi===o.SheetType.tableSheet&&t.sheets.push(e.getSheet())},preFromJson:function(t,n,i){st._ID=1},preFromSJSFormat:function(t,n,i){st._ID=1},dispose:function(){this.unbind(o.Events.ActiveSheetChanged+K)}}),o.Worksheet.ch("tableSheet",{processKeyDown:function(t){var n=this.rt,i=this.NMi;i&&i.options.isDesignMode&&n.q9&&(t.r=!0)},processMouseDown:function(t){var n,i=t.hitInfo.cellTypeHitInfo;i&&i.isRowAction&&(n=qt(t.e),i.isShift=n.isShift,i.isCtrl=n.isCtrl),A(Zt(this))||(0,M.processStatusBarOnMouseDown)(Zt(this).getParent().b3t,t.hitInfo)}}),o.Y8.ch("tablesheet",{priority:7e3,setValue:function(t){var n,i,e,r,u,c,a,s,l=t.row,d=t.col,h=t.value,v=t.sheetArea,g=this.Mf,M=g.H3,I=Zt(g);if(v===o.SheetArea.viewport&&M&&M.getSource()&&Jt(I)){if(n=!1,i=void 0,r=!1,u=I.fDi(d,!0),I.options.allowAddNew&&M.getRowCount()===l&&(!I.Bno||A(I.Bno[l]))){if((0,f.isNullOrEmpty)(h)&&A(u.defaultValue)||!I.pTi(u,l))return void(t.isValueSet=!0);if((e=I.getDataView()).mme(),(r=e.K3e()&&!I.Bno)&&(I.Bno={}),I.Bno)I.Bno[l]={};else if(c=!1,I.oTi(l,_,(function(){c=!0,t.isValueSet=!0,e.gme()})),c)return;n=!0,i=e.length()-1}(a=g.Ut.q_(!1,o.SheetArea.colHeader,d)).name&&(h=o.util.V0(h),I.Bno?((s=I.Bno[l])||(I.Bno[l]=s={}),s[a.name]=h):I.$Di(l,a.name,h,{hasAddNewRowData:n,currentModelIndex:i}),t.isValueSet=!0),n&&(r&&(I.oTi(l,I.Bno[l]),I.Bno=_),e.gme())}}}),ut[k]={name:k,icons:[R],command:"PinRow"},ut[E]={name:E,icons:[Q,Y,H]},ut[Z]={name:Z,icons:[P]},ut[U]={name:U,icons:[o.ButtonImageType.minus],command:"RemoveRow"},ut[G]={name:G,icons:[o.ButtonImageType.ok],command:"SaveRow"},ut[B]={name:B,icons:[o.ButtonImageType.clear],command:"ResetRow"}},6153:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.aeo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.ato(n,"codeSet",[{text:"auto",value:"auto"},{text:"A",value:"A"},{text:"B",value:"B"},{text:"C",value:"C"}]),t.neo(n),t.oeo(n),n},n}(o.Meo),n.aeo=c},6277:function(t,n,i){var e,o;Object.defineProperty(n,"__esModule",{value:!0}),n.ActionColumn=void 0,e=i(1376),o=function(){function t(t){this.LEt={visible:!1,title:"Actions",width:210,actionButtons:{remove:{visible:!0,title:"Remove",icon:e.ButtonImageType.minus},save:{visible:!0,title:"Save",icon:e.ButtonImageType.ok},reset:{visible:!0,title:"Reset",icon:e.ButtonImageType.clear}},headerStyle:null},this.hce=t}return t.prototype.options=function(t){if(t){var n=this.LEt;return this.LEt=t,void this.hce(n,t)}return this.LEt},t.prototype.toJSON=function(){return this.LEt},t.prototype.fromJSON=function(t){this.LEt=t},t}(),n.ActionColumn=o},6406:function(t,n,i){var e,o,r,u,c,a;Object.defineProperty(n,"__esModule",{value:!0}),n.mZe=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(591),c=e.mt.En,a=function(){function t(t){var n;this.LEt=t}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.DZe)||void 0===t?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i,o,r=this,u=r.LEt,a=r.yZe=(0,e.GC$)(c("div"));return a.addClass("gc-defined-column-field-item-container gc-defined-column-input"+(u.className?" "+u.className:"")),u.label&&u.label.text&&((t=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),t.appendTo(a),(n=(0,e.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label-text"),n.attr("for","gc-defined-column-input-"+u.inputId),n.appendTo(t),n.text(u.label.text)),(i=r.zZe=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-container"),i.appendTo(a),r.isVisible()||a.addClass("gc-defined-column-hide"),a.attr("aria-hidden",r.isVisible()?"false":"true"),r.ZX(),(o=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-validation-container"),o.appendTo(a),a},t.prototype.ZX=function(){var t,n,i,r,a=this,s=a.LEt,l=a.zZe;a.isDisable()&&l.addClass("gc-defined-column-disabled"),a.SZe()&&(l.addClass("gc-defined-column-click"),l.bind("click",(function(t){if(!a.isDisable())return s.onClick(t),!1}))),s.label&&((t=a.LZe=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),(0,u.isFunction)(s.label.onClick)&&t.bind("click",(function(t){if(!a.isDisable())return s.label.onClick(t),!1})),t.appendTo(l),(n=(0,e.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label "+s.label.iconClass),n.attr("for","gc-defined-column-input-"+s.inputId),n.appendTo(t),(0,o.isNullOrEmpty)(s.label.iconClass)&&n.hide()),(i=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-input-container"),i.appendTo(l),"color"===s.type?s.tag="sjs-color-picker":(0,u.isNullOrUndefined)(s.type)&&(s.tag="sjs-text-editor"),r=a.DZe=s.tag?(0,u.createDCElement)(s.tag):(0,e.GC$)(c("input")),!s.tag&&r.addClass("gc-defined-column-field-input-container-input"),r.attr("id","gc-defined-column-input-"+s.inputId),!s.tag&&r.attr("type",s.type||"text"),r.attr("aria-disabled",a.isDisable()?"true":"false"),a.isDisable()?r.attr("disabled","true"):r.removeAttr("disabled"),s.placeholder&&r.attr("placeholder",s.placeholder),(s.label&&s.label.text||s.placeholder)&&r.attr(s.tag?"ariaLabel":"aria-label",s.label&&s.label.text||s.placeholder),(0,u.isNullOrUndefined)(s.defaultValue)||(r.attr("value",s.defaultValue),r.val(s.defaultValue)),s.isReadOnly&&r.attr("readonly","true"),s.maxLength&&r.attr("maxlength",s.maxLength),a.v7(),r.appendTo(i),s.label&&s.label.suffixIconClass&&((t=a.kZe=(0,e.GC$)(c("div"))).addClass("gc-defined-column-field-label-container"),(0,u.isFunction)(s.label.onSuffixClick)&&(t.addClass("gc-defined-column-click-quieter"),t.bind("click",(function(t){if(!a.isDisable())return s.label.onSuffixClick(t),!1}))),t.appendTo(l),(n=(0,e.GC$)(c("label"))).addClass("gc-defined-column-field-label-container-label "+s.label.suffixIconClass),n.appendTo(t))},t.prototype.v7=function(){var t=this,n=t.LEt,i=t.DZe,e=function(i){return function(e){t.isValid()||t.resetValid(t.validate()),t.isDisable()||(n.maxLength&&e.target.value&&n.maxLength<e.target.value.length?t.setValue(e.target.value.slice(0,n.maxLength)):i&&i(e))}};t.OZe()&&i.bind("blur",e((function(t){n.onBlur&&n.onBlur(t.target.value,t)}))),t.ZZe()&&i.bind("input",e((function(t){n.onChange(t.target.value,t)})))},t.prototype.setFocus=function(){var t;this.DZe.focus()},t.prototype.setOptions=function(t){var n=this;n.L0(),n.LEt=t,n.ZX()},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.zZe;t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),t.DZe.attr("aria-disabled",n?"false":"true"),n?t.DZe.removeAttr("disabled"):t.DZe.attr("disabled","true")},t.prototype.validate=function(){var t,n=this,i=n.LEt.validate,e=!n.isDisable();if(i&&e){if(i.required&&(0,o.isNullOrEmpty)(n.value))return n.resetValid(!1,{required:!1}),!1;if(i.validating)if("boolean"==typeof(t=i.validating(n.value))){if(!t)return n.resetValid(!1),!1}else if(!t.success)return n.resetValid(!1,t),!1}return n.resetValid(!0),!0},t.prototype.resetValid=function(t,n){var i=this,o=i.DZe,u=i.zZe,c=(0,e.GC$)(i.yZe.find(".gc-defined-column-field-label-validation-container")[0]);t?(u.removeClass("gc-define-column-invalid"),o.removeClass("gc-define-column-invalid"),o.attr("aria-invalid","false"),c.hide(),c.empty()):u.hasClass("gc-define-column-invalid")||(u.addClass("gc-define-column-invalid"),o.addClass("gc-define-column-invalid"),o.attr("aria-invalid","true"),!1===n.required?c.html((0,r.getSR)().defineColumnRequired):n.errorMessage&&c.html(n.errorMessage),n&&c.show())},t.prototype.isValid=function(){var t,n;return!this.zZe.hasClass("gc-define-column-invalid")},t.prototype.OZe=function(){var t=this,n=t.LEt;return!n.isReadOnly&&!t.isDisable()&&n.validate&&(n.validate.required||(0,u.isFunction)(n.validate.validating))},t.prototype.isVisible=function(){return!0!==this.LEt.hide},t.prototype.resetVisible=function(){var t=this,n=t.isVisible(),i=t.yZe;t.LEt.hide=n,n?i.addClass("gc-defined-column-hide"):i.removeClass("gc-defined-column-hide"),t.DZe.attr("aria-hidden",n?"true":"false")},t.prototype.ZZe=function(){var t,n=this.LEt;return!n.isReadOnly&&(0,u.isFunction)(n.onChange)},t.prototype.SZe=function(){var t,n=this.LEt;return n.isReadOnly&&(0,u.isFunction)(n.onClick)},t.prototype.setValue=function(t,n){var i=this;i.DZe.val(t),!1!==n&&(0,u.triggerEvent)(i.DZe,"input")},t.prototype.getInputElement=function(){return(0,u.getSJSInput)(this.DZe)},t.prototype.bind=function(t,n){return this.DZe.bind(t,n),this},t.prototype.unbind=function(t){return this.DZe.unbind(t),this},t.prototype.dispose=function(){var t=this;t.L0(),t.zZe=u.keyword_null},t.prototype.L0=function(){var t=this;t.ZZe()&&t.DZe.unbind("input"),t.OZe()&&t.DZe.unbind("blur"),"sjs-text-editor"===t.LEt.tag&&t.DZe.unbind("sjs-mounted"),t.SZe()&&(t.zZe.removeClass("gc-defined-column-click"),t.zZe.unbind("click")),t.LZe&&(0,u.isFunction)(t.LEt.label.onClick)&&t.LZe.unbind("click"),t.kZe&&(0,u.isFunction)(t.LEt.label.onSuffixClick)&&t.kZe.unbind("click"),t.LZe=u.keyword_null,t.kZe=u.keyword_null,t.DZe=u.keyword_null,t.zZe.empty()},t}(),n.mZe=a},6423:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h=this&&this.mJr||function(){return h=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},h.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.vto=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(6018),a=i(591),s=i(2227),l=e.mt,f=l.En,d=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.mto=(0,e.GC$)(f("div"));return n.addClass("gc-defined-column-combo-box-style-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.mto,i=t.LEt;return t._editorValueType=new u.Kze({inputId:"combo-box-editor-value-type",items:[{text:(0,o.getSR)().columnTypeComboBoxEditorValueType.text,value:s.EditorValueType.text},{text:(0,o.getSR)().columnTypeComboBoxEditorValueType.index,value:s.EditorValueType.index},{text:(0,o.getSR)().columnTypeComboBoxEditorValueType.value,value:s.EditorValueType.value}],label:{text:(0,o.getSR)().columnTypeComboBoxEditorValueTypes},onChange:function(){t.Nto()}}),t._editorValueType.create().appendTo(n),t._editorValueType.setValue((0,a.isNullOrUndefined)(i.editorValueType)?s.EditorValueType.value:i.editorValueType),t.Dto=new c.AZe({inputId:"combo-box-item-height",minValue:0,label:{text:(0,o.getSR)().columnTypeComboBoxItemHeight},onChange:function(){t.Nto()}}),t.Dto.create().appendTo(n),t.Dto.setValue(i.itemHeight||22),t.jto=new r.Rze({label:{text:(0,o.getSR)().columnTypeComboBoxEditable},onChange:function(){t.Nto()}}),t.jto.create().appendTo(n),t.jto.setValue(i.editable),n},t.prototype.Nto=function(){var t,n,i,e=this;this.LEt.onChange({editorValueType:null===(t=e._editorValueType)||void 0===t?void 0:t.value,itemHeight:null===(n=e.Dto)||void 0===n?void 0:n.value,editable:null===(i=e.jto)||void 0===i?void 0:i.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=h(h({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.mto.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.mto=a.keyword_null},t.prototype.L0=function(){var t=this;t._editorValueType&&t._editorValueType.dispose(),t._editorValueType=a.keyword_null,t.Dto&&t.Dto.dispose(),t.Dto=a.keyword_null,t.jto&&t.jto.dispose(),t.jto=a.keyword_null},t}(),n.vto=d},6602:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M;function I(t,n){return void 0===n&&(n=e.LineStyle.thin),new e.LineBorder(t,n)}function b(t,n,i,e){var u=new o.TableTheme;return u.name(t),u.headerRowStyle(new o.TableStyle(n.backColor,n.foreColor,n.font,r,r,n.borderRight,n.borderBottom)),u.wholeTableStyle(new o.TableStyle(i.backColor,i.foreColor,r,r,r,i.borderRight,i.borderBottom)),e&&e.backColor&&u.firstRowStripStyle(new o.TableStyle(e.backColor)),u}Object.defineProperty(n,"__esModule",{value:!0}),e=i(1376),o=i(9131),r=void 0,c="#808080",a="transparent",s="#E6E4F6",l="#92A5A8",f="#66D1C7",d="black",h="#EBEBEB",v="#FFFFFF",g="bold 11pt Calibri",(M=[b("professional1",{backColor:"#6A76D4",foreColor:u="#F2F2F2",borderRight:I("#6A76D4"),font:g},{foreColor:c,borderRight:I(a),borderBottom:I(s)},r),b("professional2",{backColor:l,foreColor:u,font:g},{foreColor:c,borderRight:I(l),borderBottom:I(a)},r),b("professional3",{backColor:f,foreColor:u,borderRight:I(f),font:g},{foreColor:c,borderRight:I(a),borderBottom:I(f)},r),b("professional4",{backColor:"#36495E",foreColor:u,borderRight:I("#36495E"),font:g},{foreColor:c},{backColor:"#F1F1F1"}),b("professional5",{backColor:"#2F7A84",foreColor:u,borderRight:I("#2F7A84"),font:g},{foreColor:c},{backColor:"#DAF1F3"}),b("professional6",{backColor:"#FFED88",foreColor:d,font:"bold 11pt Arial",borderRight:I("#FFED88")},{foreColor:d,borderRight:I(a),borderBottom:I(a)},r),b("professional7",{backColor:"#9EB09F",foreColor:u,borderRight:I("#9EB09F"),font:g},{foreColor:c,borderRight:I(a),borderBottom:I(s)},r),b("professional8",{backColor:"#362F4A",foreColor:u,borderRight:I("#362F4A"),font:g},{foreColor:c,borderRight:I(a)},{backColor:"#F6F6F6"}),b("professional9",{backColor:"#EB6051",foreColor:u,borderRight:I("#EB6051"),font:g},{foreColor:c,borderRight:I(a)},{backColor:h}),b("professional10",{backColor:"#26AE60",foreColor:u,borderRight:I("#26AE60"),font:g},{foreColor:c,borderRight:I(a)},{backColor:h}),b("professional11",{backColor:"#2882BA",foreColor:u,borderRight:I("#2882BA"),font:g},{foreColor:c,borderRight:I(a)},{backColor:h}),b("professional12",{backColor:"#555F8D",foreColor:u,borderRight:I("#555F8D"),font:g},{foreColor:c},{backColor:"#9EB6C4"}),b("professional13",{backColor:"#54618F",foreColor:u,borderRight:I("#54618F"),font:g},{backColor:"#7591AB",foreColor:v},r),b("professional14",{backColor:v,foreColor:"#5660B9",borderBottom:I("#A1A5CA",e.LineStyle.thick),borderRight:I(v),font:g},{backColor:v,foreColor:"#595959"},{backColor:" #F8F8FD"}),b("professional15",{backColor:"#E6ECF2",foreColor:"#404040",borderRight:I("#E6ECF2"),font:g},{foreColor:c,borderRight:I(a),borderBottom:I("#E6ECF2")},r),b("professional16",{backColor:"#475E86",foreColor:"#67C3F7",borderRight:I("#475E86"),font:g},{backColor:"#2A395A",foreColor:"#D0CECE"},r),b("professional17",{backColor:"#5165F8",foreColor:u,borderRight:I("#5165F8"),font:g},{backColor:v,foreColor:"#595959"},{backColor:"#F3F4FC"}),b("professional18",{backColor:"#F6F8FA",foreColor:"#404040",borderRight:I("#F6F8FA"),font:g},{backColor:v,foreColor:"#757171"},r),b("professional19",{backColor:v,foreColor:c,borderBottom:I("#83ACF6",e.LineStyle.thick),borderRight:I(v),font:g},{backColor:v,foreColor:c,borderBottom:I("#D9E1F2")},r),b("professional20",{backColor:v,foreColor:"#3565F6",borderBottom:I("#3565F6",e.LineStyle.thick),borderRight:I(v),font:g},{backColor:"#FCFDFF",foreColor:"#757171",borderRight:I(v,e.LineStyle.thick),borderBottom:I(v,e.LineStyle.thick)},{backColor:"#F6F8FA"}),b("professional21",{backColor:"#FCFDFF",foreColor:"#404040",borderBottom:I("#ACB9CA",e.LineStyle.thick),borderRight:I("#D6DCE4",e.LineStyle.dashed),font:g},{backColor:"#FCFDFF",foreColor:"#595959",borderBottom:I("#E5E9F0"),borderRight:I("#E5E9F0",e.LineStyle.dashed)},r),b("professional22",{backColor:"#222B35",foreColor:v,borderBottom:I("#08D4FF",e.LineStyle.thick),borderRight:I("#222B35"),font:g},{backColor:"#213551",foreColor:v},{backColor:"#3C5679"}),b("professional23",{backColor:"#213551",foreColor:v,borderBottom:I("#13E86C",e.LineStyle.thick),borderRight:I("#D6DCE4"),font:g},{backColor:"#F4F7F9",foreColor:"#213551",borderRight:I("#D6DCE4")},{backColor:v}),b("professional24",{backColor:"#1D1E1F",foreColor:"#E7E6E6",borderBottom:I("#13E86C",e.LineStyle.thick),borderRight:I("#606060"),font:g},{backColor:"#404142",foreColor:v,borderRight:I("#606060")},{backColor:"#4F4F50"})]).forEach((function(t){o.TableThemes[t.name()]=t}))},6656:function(t,n,i){var e,o,r,u,c,a,s,l,f,d;Object.defineProperty(n,"__esModule",{value:!0}),n.MZe=void 0,e=i(1376),o=i(6114),r=i(5530),u=i(1163),c=i(5981),a=i(4900),s=i(591),l=e.mt,f=l.En,d=function(){function t(t){var n;this.xT=[],this.LEt=t}return t.prototype.create=function(){var t=this,n=t.hZe=(0,e.GC$)(f("div"));return n.addClass("gc-defined-column-formatting-select-container"),n},t.prototype.IZe=function(){var t,n,i,r=this,l=r.LEt.formatter,d=(0,u.parseFormat)(l),h=(0,e.GC$)(f("div"));return h.addClass("gc-defined-column-formatting-select-number-container"),t=new c.bZe({onChange:function(t){r.LEt.onChange(t)}}),(n=new a.Kze({inputId:"lookup-number-formatting",items:[{text:(0,o.getSR)().columnTypeNumber,value:1},{text:(0,o.getSR)().columnTypeCurrency,value:2},{text:(0,o.getSR)().columnTypePercent,value:6}],label:{text:(0,o.getSR)().columnTypeFormattingCategory},onChange:function(n){t.setOptions({type:n.value,formatter:s.keyword_null})}})).create().appendTo(h),r.xT.push(n),t.create().appendTo(h),r.xT.push(t),i=d.category,-1===[1,2,6].indexOf(i)&&(i=1),n.setValue(i),t.setOptions({type:i,formatter:l}),h},t.prototype.NZe=function(){var t,n=this,i=n.LEt.formatter,o=(0,e.GC$)(f("div"));return o.addClass("gc-defined-column-formatting-select-date-container"),(t=new r.Wze({formatter:i,onChange:function(t){n.LEt.onChange(t.formatter)}})).create().appendTo(o),n.xT.push(t),o},t.prototype.createFormatting=function(t){var n=this,i=n.hZe;if(n.L0(),(0,s.isNumber)(t))n.IZe().appendTo(i);else{if(!(0,s.isDate)(t))return!1;n.NZe().appendTo(i)}return!0},t.prototype.dispose=function(){var t=this;t.L0(),t.hZe=s.keyword_null},t.prototype.L0=function(){var t,n,i,e=this;for(t=0,n=e.xT;t<n.length;t++)(i=n[t]).dispose?i.dispose():i.unbind&&i.unbind("click");e.xT=[],e.hZe.empty()},t}(),n.MZe=d},6944:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.heo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.oeo(n),n},n}(o.Meo),n.heo=c},7127:function(t,n,i){var e,o,r,u,c,a,s,l,f;Object.defineProperty(n,"__esModule",{value:!0}),n.Gto=void 0,e=i(1376),o=i(6114),r=i(6406),u=null,c="#0066cc",a="#3399ff",s=e.mt,l=s.En,f=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i=this,u=i.LEt,s=u.onChange,f=(0,e.GC$)(l("div"));return f.addClass("gc-defined-column-url-container"),(t=i.Rto=new r.mZe({inputId:"linkColor",type:"color",defaultValue:u.linkColor||c,label:{text:(0,o.getSR)().columnTypeUrlLabel.linkColor},onChange:function(t){s&&s({linkColor:t||c,visitedLinkColor:i.Pto.value||a})}})).create().appendTo(f),(n=i.Pto=new r.mZe({inputId:"visitedLinkColor",type:"color",defaultValue:u.visitedLinkColor||a,label:{text:(0,o.getSR)().columnTypeUrlLabel.visitedLinkColor},onChange:function(t){s&&s({linkColor:i.Rto.value||c,visitedLinkColor:t||a})}})).create().appendTo(f),s&&s({linkColor:i.Rto.value||c,visitedLinkColor:i.Pto.value||a}),f},t.prototype.dispose=function(){var t=this;t.Rto.dispose(),t.Rto=u,t.Pto.dispose(),t.Pto=u},t}(),n.Gto=f},7234:function(n){n.exports=t.Spread},7324:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.Jze=void 0,e=i(1376),o=i(7373),r=i(6114),u=i(591),c=e.mt,a=c.En,s=function(){function t(t){this.itemContainers=[];var n=this;n.LEt=t,n.$G=u.keyword_null,n.EZe=[]}return Object.defineProperty(t.prototype,"value",{get:function(){var t,n=this;return n.LEt.enableMultiSelected?n.EZe.map((function(t){var i;return null===(i=n.LEt.items[t])||void 0===i?void 0:i.value})):null===(t=n.LEt.items[n.$G])||void 0===t?void 0:t.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){var t=this;return t.LEt.enableMultiSelected?t.EZe.slice():t.$G},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i=this,o=i.LEt.label,r=i.LEt.addAndRemoveButton,u=(0,e.GC$)(a("div"));return u.addClass("gc-defined-column-list-container"),(t=(0,e.GC$)(a("div"))).addClass("gc-defined-column-list-label-container"),t.appendTo(u),o&&o.text&&((n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-label-container"),n.appendTo(t),n.text(o.text)),r&&i.zto(t),i.zqt().appendTo(u),u},t.prototype.zqt=function(){var t,n=this,i=n.UZe=(0,e.GC$)(a("div"));return i.addClass("gc-defined-column-list-items-container"),n.isDisable()&&i.addClass("gc-defined-column-disabled"),i.attr("role",n.LEt.editable?"grid":"listbox"),i.attr("tabindex","-1"),i.attr("aria-disabled",n.isDisable()?"true":"false"),i.attr("aria-label",null===(t=n.LEt.label)||void 0===t?void 0:t.text),n.tyn(),i},t.prototype.tyn=function(){var t,n,i=this,o=i.LEt.items,r=i.LEt.enableMultiSelected,u=i.EZe,c=i.$G,s=i.LEt.showValue,l=function(t){return r?u.indexOf(t)>-1:c===t};for(s&&i.meo(),t=function(t){var n=o[t],r=(0,e.GC$)(a("span"));i.itemContainers.push(r),r.addClass("gc-defined-column-list-item-container"),l(t)&&r.addClass("gc-defined-column-list-item-selected"),r.attr("role",i.LEt.editable?"row":"option"),!i.LEt.editable&&r.attr("tabindex","0"),r.attr("aria-selected",l(t)?"true":"false"),r.bind("click",(function(n){i.isDisable()||i.GZe(t,n)})),i.ryn(n,r),s&&i.ryn(n,r,!0),r.appendTo(i.UZe)},n=0;n<o.length;n++)t(n)},t.prototype.meo=function(){var t,n,i=this,o=(0,e.GC$)(a("div"));o.addClass("gc-defined-column-list-header"),(t=(0,e.GC$)(a("div"))).addClass("gc-defined-column-list-header-text"),t.text((0,r.getSR)().columnTypeText),t.appendTo(o),(n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-list-header-value"),n.text((0,r.getSR)().defineColumnValue),n.appendTo(o),o.appendTo(i.UZe)},t.prototype.ryn=function(t,n,i){var o,c,s=this,l=s.LEt.editable,f=l?(0,e.GC$)(a("input")):(0,e.GC$)(a("div"));l&&(f.attr("role","gridcell"),f.attr("aria-label",i?(0,r.getSR)().defineColumnValue:(0,r.getSR)().columnTypeText)),o="gc-defined-column-list-item-"+(i?"value":"text"),f.addClass(o),t.class&&f.addClass(t.class),c=i||(0,u.isNullOrUndefined)(t.text)?t.value:t.text,l?f.val(c):f.text(c),f.appendTo(n),s.LEt.editable&&f.bind("blur",(function(){i?t.value=this.value:t.text=this.value,s.LEt.onChange&&s.LEt.onChange()}))},t.prototype.GZe=function(t,n){var i,e,r,u=this,c=u.LEt.enableMultiSelected,a=u.EZe,s=function(t){return c?a.indexOf(t)>-1:u.$G===t};for(c?(i=function(t){var n=a.indexOf(t);n>-1?a.splice(n,1):a.push(t)},(0,o.isArray)(t)?t.forEach((function(t){i(t)})):i(t)):u.$G=t,e=0;e<u.itemContainers.length;e++)r=u.itemContainers[e],s(e)?(r.attr("aria-selected","true"),r.addClass("gc-defined-column-list-item-selected")):(r.attr("aria-selected","false"),r.removeClass("gc-defined-column-list-item-selected"));u.LEt.onChange&&u.LEt.onChange(u.value,u.index,n)},t.prototype.zto=function(t){var n,i,o,u,c,s,l,f=this,d=f.LEt.items,h=(0,e.GC$)(a("div"));h.addClass("gc-defined-column-add-remove-container"),(n=(0,e.GC$)(a("div"))).addClass("gc-defined-column-add-remove-container-buttons"),n.appendTo(h),(i=(0,e.GC$)(a("button"))).addClass("gc-defined-column-add-remove-container-button"),i.appendTo(n),(o=(0,e.GC$)(a("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-add ui-icon ui-icon-check"),o.appendTo(i),(u=(0,e.GC$)(a("span"))).appendTo(i),u.text((0,r.getSR)().columnTypeComboBoxAdd),i.bind("click",(function(){d||(d=[]),d.push({text:"",value:""}),f.setOptions({items:d}),f.LEt.onChange&&f.LEt.onChange()})),(c=(0,e.GC$)(a("button"))).addClass("gc-defined-column-add-remove-container-button"),c.appendTo(n),(s=(0,e.GC$)(a("span"))).addClass("gc-defined-column-add-remove-container-button-icon gc-defined-column-add-remove-container-button-icon-remove ui-icon ui-icon-check"),s.appendTo(c),(l=(0,e.GC$)(a("span"))).appendTo(c),l.text((0,r.getSR)().columnTypeComboBoxRemove),c.bind("click",(function(){var t=f.$G;d.splice(t,1),f.setOptions({items:d}),f.LEt.onChange&&f.LEt.onChange()})),h.appendTo(t)},t.prototype.setValue=function(t){var n,i,e=this;if(!(0,u.isNullOrUndefined)(t)){if(e.LEt.enableMultiSelected&&(0,o.isArray)(t))return void((n=t.reduce((function(t,n){var i=e.LEt.items.findIndex((function(t){return t.value===n}));return i>-1&&t.push(i),t}),[])).length>0&&e.GZe(n));(i=e.LEt.items.findIndex((function(n){return n.value===t})))>-1&&e.GZe(i)}},t.prototype.setIndex=function(t){var n=this;if(!(0,u.isNullOrUndefined)(t)){if(n.LEt.enableMultiSelected&&(0,o.isArray)(t))return void(t.length>0&&n.GZe(t));t>-1&&n.GZe(t)}},t.prototype.setOptions=function(t){var n=this;n.LEt=l(l({},n.LEt),t),n.clear(),n.tyn()},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.UZe;t.LEt.enable=n,n?i.removeClass("gc-defined-column-disabled"):i.addClass("gc-defined-column-disabled"),i.attr("aria-disabled",n?"false":"true")},t.prototype.clear=function(){var t,n,i,e=this;for(t=0,n=e.itemContainers;t<n.length;t++)(i=n[t]).unbind("click");e.itemContainers=[],e.UZe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.UZe=u.keyword_null},t}(),n.Jze=s},7373:function(n){n.exports=t.Data},7446:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.Ieo=void 0,e=i(1376),o=i(6114),r=i(6406),u=i(6018),c=i(4900),a=e.mt,s=a.En,l=function(){function t(t){var n=this;n.LEt=t,n.xT=[]}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i=this,r=(0,e.GC$)(s("div"));return r.addClass("gc-defined-column-barcode-base-container"),(t=new c.Kze({inputId:"barcode-type",defaultValue:i.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){i.LEt.option.barcodeType=t.value,i.onChange(!0)}})).create().appendTo(r),i.xT.push(t),(n=(0,e.GC$)(s("div"))).addClass("gc-defined-column-barcode-base-style-container"),n.appendTo(r),i.tto(n,"color",(0,o.getSR)().columnTypeBarcodeLabel.color),i.tto(n,"backgroundColor",(0,o.getSR)().columnTypeBarcodeLabel.backgroundColor),i.eto(n,"quietZoneLeft",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneLeft,!0),i.eto(n,"quietZoneRight",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneRight,!0),i.eto(n,"quietZoneTop",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneTop,!0),i.eto(n,"quietZoneBottom",(0,o.getSR)().columnTypeBarcodeLabel.quietZoneBottom,!0),r},t.prototype.tto=function(t,n,i){var e=this,o=new r.mZe({inputId:"barcode-"+n,type:"color",defaultValue:e.LEt.option[n],label:{text:i},onChange:function(t){e.LEt.option[n]=t,e.onChange()}});o.create().appendTo(t),e.xT.push(o)},t.prototype.eto=function(t,n,i,e){var o=this,r=new u.AZe({inputId:"barcode-"+n,defaultValue:o.LEt.option[n],label:{text:i,useRawContent:e},allowMinNull:!0,maxValue:1e3,onChange:function(t){o.LEt.option[n]=t,o.onChange()}});r.create().appendTo(t),o.xT.push(r)},t.prototype.onChange=function(t){var n=this,i=n.LEt.onChange;i&&i(n.LEt.option,t)},t.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&e.unbind("click");return[]},t.prototype.dispose=function(){var t=this;t.xT=t.YZe(t.xT)},t}(),n.Ieo=l},7553:function(t,n,i){var e,o,r,u;Object.defineProperty(n,"__esModule",{value:!0}),n.Rze=void 0,e=i(1376),o=i(591),r=e.mt.En,u=function(){function t(t){var n;this.LEt=t}return Object.defineProperty(t.prototype,"value",{get:function(){var t;return null===(t=this.weo)||void 0===t?void 0:t.val()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.yZe},enumerable:!1,configurable:!0}),t.prototype.create=function(){var t,n,i,o=this,u=o.LEt,c=o.yZe=(0,e.GC$)(r("div"));return c.addClass("gc-defined-column-field-item-container gc-defined-column-checkbox-field-item-container"),u.label&&u.label.text&&u.textDisplay&&((t=(0,e.GC$)(r("div"))).addClass("gc-defined-column-field-label-container"),t.appendTo(c),(n=(0,e.GC$)(r("label"))).addClass("gc-defined-column-field-label-container-label-text"),n.appendTo(t),u.inputId&&n.attr("for","gc-defined-column-checkbox-"+u.inputId),n.text(u.label.text)),(i=o.Qze=(0,e.GC$)(r("div"))).appendTo(c),i.addClass("gc-defined-column-checkbox-container"),o.ZX(),c},t.prototype.ZX=function(){var t,n,i,u=this,c=u.LEt,a=u.Qze,s=u.Pze=(0,e.GC$)(r("div"));s.addClass("gc-defined-column-checkbox-item-container"),u.isDisable()&&s.addClass("gc-defined-column-disabled"),u.isVisible()||a.addClass("gc-defined-column-hide"),s.appendTo(a),s.attr("role","checkbox"),s.attr("tabindex","0"),s.attr("aria-label",c.label.text),s.attr("aria-checked","false"),s.attr("aria-disabled",u.isDisable()?"true":"false"),s.attr("aria-hidden",u.isVisible()?"false":"true"),(t=(0,e.GC$)(r("div"))).addClass("gc-defined-column-check-container"),t.appendTo(s),(n=u.weo=(0,o.createDCElement)("sjs-checkbox")).attr("name",""),n.attr("ariaLabel",c.label.text),c.inputId&&n.attr("id","gc-defined-column-checkbox-"+c.inputId),c.isThreeState&&n.attr("indeterminate",!0),(0,o.isNullOrUndefined)(c.defaultValue)||u.setValue(c.defaultValue,!1),n.bind("input",(function(t){u.isDisable()||(u.Yze(t.target.value),c.onChange&&c.onChange(t.target.value,t))})),n.appendTo(t),c.label&&c.label.text&&1!==c.textDisplay&&((i=u.LZe=(0,e.GC$)(r("div"))).addClass("gc-defined-column-label-container"),i.appendTo(s),i.text(c.label.text),c.inputId&&i.attr("for","gc-defined-column-checkbox-"+c.inputId),i.bind("click",(function(t){u.isDisable()||u.setValue(u.kV(u.weo.val()))})))},t.prototype.Yze=function(t){var n=this,i=t;(0,o.isNullOrUndefined)(t)&&(i=!!n.LEt.isThreeState&&"mixed"),n.Pze.attr("aria-checked",i)},t.prototype.kV=function(t){var n;if(this.LEt.isThreeState){if(t)return o.keyword_null;if((0,o.isNullOrUndefined)(t))return!1}return!t},t.prototype.setValue=function(t,n){var i=this;i.weo.val(t),i.Yze(t),!1!==n&&(0,o.triggerEvent)(i.weo)},t.prototype.isDisable=function(){return!1===this.LEt.enable},t.prototype.resetDisable=function(){var t=this,n=t.isDisable(),i=t.Pze;t.LEt.enable=n,n?(i.removeClass("gc-defined-column-disabled"),i.attr("aria-disabled","false")):(i.addClass("gc-defined-column-disabled"),i.attr("aria-disabled","true"))},t.prototype.isVisible=function(){return!0!==this.LEt.hide},t.prototype.resetVisible=function(){var t=this,n=t.isVisible(),i=t.Qze;t.LEt.hide=n,n?(i.addClass("gc-defined-column-hide"),i.attr("aria-hidden","true")):(i.removeClass("gc-defined-column-hide"),i.attr("aria-hidden","false"))},t.prototype.dispose=function(){var t=this;t.weo.unbind("input"),t.weo=o.keyword_null,t.LZe&&t.LZe.unbind("click"),t.LZe=o.keyword_null,t.Pze=o.keyword_null,t.Qze=o.keyword_null},t}(),n.Rze=u},7621:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B,R,P,Q,Y,H,W,V,F,J,_,X,K,q,$,tt,nt,it,et,ot,rt,ut,ct,at,st,lt,ft,dt,ht,vt,gt,Mt,It,bt,Nt=this&&this.mJr||function(){return Nt=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Nt.apply(this,arguments)};function Dt(t,n){var i,e;for(i=0;i<t.length;i++)if(n(e=t[i]))return i;return-1}function mt(t){return t.value||t}function wt(t){return xt(t)&&t.bMi}function Ct(t){return t.yBt}function yt(t){return!t.isViewName&&t.textIndent===ft}function xt(t){return yt(t)||t.isViewColumnOption}function At(t){return!t.isViewName&&t.textIndent>=dt}function Tt(t){return t.isRelationship&&yt(t)}function jt(t){return t.isRelationship&&t.textIndent>=dt}function pt(t){return b(t)||""===t}function zt(t){return t&&t.richText&&t.richText[0]&&t.richText[0].text||t&&t.text||t}function Lt(t){return JSON.parse(JSON.stringify(t))}Object.defineProperty(n,"__esModule",{value:!0}),n.TableSheetPanel=n.ShowSourceOptions=n.ARROW_RIGHT=n.ARROW_DOWN=void 0,e=i(6114),o=i(1376),r=i(447),u=i(7234),c=i(2648),a=i(2227),s=i(8966),l=i(1434),f=o.CellTypes.Base,d=u.Common.zf.j0,h=u.Common.lt.tv,g="."+(v="table-sheet-panel"),M=null,I=void 0,b=u.Common.lt.ht,N=window,D=function(){return!1},m="gc-table-sheet-panel",w="gc-table-sheet-field-panel",C="gc-table-sheet-cross-panel",y="gc-table-sheet-group-panel",x="gc-table-sheet-group-list",A="gc-table-sheet-group-input",j=(T="gc-table-sheet-group-item")+"-remove",p="group-index",z="group-name",L="group-field",S="summary-index",O="gc-table-sheet-summary-item",k="summary-name",E="summary-formula",Z=T+"-label",U="gc-table-sheet-summary-container",G="gc-table-sheet-field-container",B="gc-table-sheet-summary-item-label",R="gc-table-sheet-summary-item-input-formula",P="gc-table-sheet-summary-item-input-slice",Q="gc-table-sheet-summary-function",Y="gc-table-sheet-summary-item-input-caption",H="gc-table-sheet-summary-list-container",W="gc-table-sheet-group-item-reorder-top",V="gc-table-sheet-group-item-reorder-bottom",F="gc-table-sheet-add-calculate-column",J="fake-ftb-workbook",_="gc-table-sheet-summary-item-caption",X="gc-table-sheet-cross-column",K="gc-table-sheet-cross-column-detail",q="gc-table-sheet-cross-column-detail-value",$="gc-table-sheet-cross-column-attributes-list",tt="gc-table-sheet-cross-column-item",nt="gc-table-sheet-cross-column-item-checkbox",it="gc-table-sheet-cross-column-item-edit",et="gc-table-sheet-cross-column-item-input-filter",ot="gc-table-sheet-cross-column-item-editing",rt="gc-table-sheet-cross-detail-input",ut="gc-table-sheet-hidden",ct="gc-table-sheet-summary-item-input-relateTo",at="gc-table-sheet-summary-item-input-position",st="gc-table-sheet-group-item-setting",lt="attribute-index",n.ARROW_DOWN="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAHJJREFUOE+10i0OwkAQBtC394ED4PE4EA0HBIeurEX2QE2TDYKwOyTTrt3Myzc/RfKVZL1dgQPmKGErwRFP3PHuIb0WTnhgwNRCohmca5Ibxl9IBKw1l4pc8fpGdgdSLaSGuMkaU4cUHeDn/58tdLE0sABwBBIR30jsewAAAABJRU5ErkJggg==",n.ARROW_RIGHT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAI1JREFUOE/t0rEJwlAQBuAv09hJagewsBQMFuIqDuEA9tpa2qbMAA7gAG4gB08IjySvSCe+9riPe/9dZearZvb7UWCB50g2O9z6tTyDE7bY4JUh0XxF00eGQgxknZB3QqL5gj3uUxN8a4GsEhITnXHAI//a1BoDWaLGEe1QLqU7CCRG7sYOrgQUD/UP8AFFTRERJMaNUQAAAABJRU5ErkJggg==",ft=0,dt=1,ht=function(t,n){return t?n:""},vt=function(t){var n=t.formula,i=t.caption,o=void 0===i?"":i,r=t.sliceField,u=t.columnList,c=t.relateTo,a=t.position,s=t.showSlice;return'\n <div class="gc-table-sheet-summary-item-formula">\n <span class="'.concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelFormula,"</span>\n <input aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelFormula,"' class=\"").concat(R,'" input-type="formula" spellcheck="false" tabIndex="-1" current-data=\'').concat(d(n),"' value='").concat(d(n),'\'></input>\n <span class="gc-table-sheet-summary-item-remove-icon" title="').concat((0,e.getSR)().GroupPanelItemRemove,'"></span>\n </div>\n <div class="').concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelCaption,"</span>\n <input aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelCaption,"' class=\"").concat(Y,'" input-type="caption" spellcheck="false" tabIndex="-1" current-data=\'').concat(d(o),"' value='").concat(d(o),"'></input>\n </div>")+ht(s,'\n <div class="gc-table-sheet-summary-item-slice">\n <span class="'.concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelSlice,"</span>\n <input aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelSlice,"' class=\"").concat(P,'" input-type="slice" spellcheck="false" tabIndex="-1" current-data=\'').concat(r,"' value='").concat(r,"'></input>\n </div>"))+ht(!s,'\n <div class="gc-table-sheet-summary-item-relateTo">\n <span class="'.concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelRelateTo,"</span>\n <select aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelRelateTo,"' class=\"").concat(ct,' gc-table-sheet-summary-item-select" name="relateTo">').concat('<option value="" style="display: none"></option>'+u.map((function(t){return'<option value="'.concat(t.value,'" ').concat(t.value===c?"selected":"",">").concat(t.text,"</option>")})),'</select>\n </div>\n <div class="gc-table-sheet-summary-item-position">\n <span class="').concat(B,'">').concat((0,e.getSR)().GroupPanelSummaryLabelPosition,"</span>\n <select aria-label='").concat((0,e.getSR)().GroupPanelSummaryLabelPosition,"' class=\"").concat(at,' gc-table-sheet-summary-item-select" name="position">\n <option value="header" ').concat("header"===a?"selected":"",">").concat((0,e.getSR)().GroupPanelSummaryLabelPositionHeader,'</option>\n <option value="footer" ').concat("footer"===a?"selected":"",">").concat((0,e.getSR)().GroupPanelSummaryLabelPositionFooter,"</option>\n </select>\n </div>"))},gt=function(t){var n=t.find(".".concat(R)).val(),i=t.find(".".concat(Y)).val(),e=t.find(".".concat(P)).val(),o=t.find(".".concat(ct)).val(),r=t.find(".".concat(at)).val();return{formulaInputValue:n,captionInputValue:i,sliceInputValue:e,relateToValue:o,positionValue:r}},function(t){t[t.none=0]="none",t[t.field=1]="field",t[t.formula=2]="formula",t[t.all=3]="all"}(Mt=n.ShowSourceOptions||(n.ShowSourceOptions={})),It={showSource:Mt.none,fieldAreaVisible:!0,crossAreaVisible:!1,groupAreaVisible:!0,showEditButton:!1,showViewName:!0,showGroupSetting:void 0},bt=function(){function t(t,n,i,e){this.AMi=!0,this.Zc=t,this.vMi=n,this.jMi=0,this.Ti=i,this.options=o.util.b0(It,this.zMi.bind(this)),this.Zp(e||{}),this.CMi=[],this.wMi=-1,i&&(0,o.GC$)(i).data(v,this),this.Ti.innerHTML=this.yMi(),this.mMi=i.querySelector(".".concat(w)),this.LMi=i.querySelector(".".concat(m)),this.xMi=i.querySelector(".".concat(x)),this.SMi=i.querySelector(".".concat(y)),this.ZMi=i.querySelector(".".concat(K)),this.OMi=this.ZMi.querySelector(".".concat($)),this.EMi=i.querySelector(".".concat(y,".").concat(C,".").concat(X)),this.GMi=i.querySelector(".".concat(U)),this.pMi=i.querySelector(".".concat(J)),this.attach(n),this.kMi(),this.vMi.UMi=this,this.AMi=!1}return t.prototype.ZS=function(){var t=this;setTimeout((function(){var n,i,e;null===(e=null===(i=null===(n=t.vMi)||void 0===n?void 0:n.getParent)||void 0===i?void 0:i.call(n))||void 0===e||e.focus(!0)}),0)},t.prototype.Hc=function(t,n){var i,e,r,u,c,a=new o.Workbook(n,{allowUndo:!1,enableAccessibility:null===(e=null===(i=this.vMi)||void 0===i?void 0:i.getParent())||void 0===e?void 0:e.options.enableAccessibility});a.xU=!0,a.suspendPaint(),a.suspendEvent(),this.fb(a),r=a.getSheet(0),this.BMi=r,this.QMi(r),this.RMi(),this.PMi(),this.YMi=this.WMi(),u=this.HMi(t.getDataView()),this.CMi=u,this.VMi(a,r.getViewportBottomRow(1)<u.length-1),this.FMi(r,u),a.resumeEvent(),a.resumePaint(),(c=this).mMi&&(c.JMi=N.setTimeout((function(){var t=(0,o.GC$)(c.mMi),n=t.data("workbook");n&&Math.abs(t.height()-(0,o.GC$)(n._vp).height())>n.Xm()&&n.refresh(),c.JMi&&(N.clearTimeout(c.JMi),c.JMi=0)}),100))},t.prototype.fb=function(t){t.options.allowContextMenu=!1,t.options.allowUserZoom=!1,t.options.allowUserDragDrop=!1,t.options.allowDragHeaderToMove=o.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)},t.prototype.QMi=function(t){var i,e,r=this.options;t.selectionPolicy(o.SelectionPolicy.single),t.selectionUnit(o.SelectionUnit.row),t.options.showFormulas=!0,t.options.rowHeaderVisible=!1,t.options.colHeaderVisible=!1,!1===r.showViewName?t.setRowVisible(0,r.showViewName):t.frozenRowCount(1),t.options.gridline.showHorizontalGridline=!1,t.options.gridline.showVerticalGridline=!1,t.setColumnCount(2),t.setRowCount(30),(i=new o.Style).hAlign=o.HorizontalAlign.right,i.vAlign=o.VerticalAlign.bottom,i.cellPadding="0 0 1 0",t.setStyle(-1,0,i),t.setColumnWidth(0,28),t.setColumnWidth(1,"*"),(e=new o.Style).hAlign=o.HorizontalAlign.left,e.vAlign=o.VerticalAlign.bottom,t.setStyle(-1,1,e),r.showViewName&&(t.outlineColumn.options({columnIndex:1,showIndicator:!0,collapseIndicator:n.ARROW_RIGHT,expandIndicator:n.ARROW_DOWN}),t.outlineColumn.refresh()),t.showRowOutline(!1),t.rowOutlines.KMi=!0,t.t4(0,1)},t.prototype.zMi=function(t,n,i){var e,o=this;if(!o.AMi)switch(t){case"showSource":o._Mi();break;case"fieldAreaVisible":case"crossAreaVisible":case"groupAreaVisible":e=o.vMi,o.detach(),o.vMi=e,o.Ti.innerHTML=o.yMi(),o.mMi=o.Ti.querySelector(".".concat(w)),o.LMi=o.Ti.querySelector(".".concat(m)),o.ZMi=o.Ti.querySelector(".".concat(K)),this.OMi=this.ZMi.querySelector(".".concat($)),o.xMi=o.Ti.querySelector(".".concat(x)),o.SMi=o.Ti.querySelector(".".concat(y)),o.EMi=o.Ti.querySelector(".".concat(y,".").concat(C,".").concat(X)),this.GMi=o.Ti.querySelector(".".concat(U)),this.pMi=o.Ti.querySelector(".".concat(J)),o.attach(e),o.kMi(),e.UMi=o}},t.prototype.Zp=function(t){var n=this.options||{};t=o.GC$.extend(!0,{},It,t),o.GC$.each(t,(function(t,i){n.hasOwnProperty(t)&&(n[t]=i)}))},t.prototype.RMi=function(){var t,n,i,r,u,c,a,l,f=this,d=f.Tp(),h=f.vMi,v=f.LMi.getBoundingClientRect();d.bind(o.Events.EditStarting+g,(function(t,n){var i=n.row,e=f.CMi;e[i]&&e[i].isCalculateColumn||(n.cancel=!0)})),d.bind(o.Events.EditStarted+g,(function(t,n){var i,e;n.row!==d.getRowCount()-1||d.il.text()||d.il.text("="),d.il&&(d.il.qMi=!0),f.$Mi=!0})),d.bind(o.Events.EditEnded+g,(function(t,n){var i,e,o,r,u,c,a,l,v=n.row,g=f.CMi,M=h.getDataView(),I=n.editingText,b=!1;if(f.$Mi=!1,o=d.getText(v,1),r=null===(i=null==I?void 0:I.replace)||void 0===i?void 0:i.call(I,/\s/g,""),u=null===(e=null==o?void 0:o.replace)||void 0===e?void 0:e.call(o,/\s/g,""),!r){if(o)return;b=!0}if(String(u).toUpperCase()===String(r).toUpperCase()||b){if(g[v]&&g[v].isCalculateColumn){if(c=f.HMi(M,v-1),I){if(0===I.indexOf("=")&&I!==(c&&c.value)){a=I;try{a=h.Iuo(a,!0)}catch(t){return void f._Mi()}c?((l=Nt({},c)).value===l.caption&&(l.caption=a),l.value=a,h.zA({cmd:s.VIEW_UPDATE_COLUMN_INFO,columnInfos:[l]})):h.zA({cmd:s.VIEW_Add_COLUMN_INFO,columnInfo:{value:a,readonly:!0}})}}else c&&h.zA({cmd:s.VIEW_REMOVE_COLUMN_INFO,value:c.value});f._Mi(),d.il&&(d.il.qMi=!1),f.ZS()}}else f._Mi()})),d.bind(o.Events.ValueChanged+g,(function(t,n){var i,r,u,c,a,l,d,v,g,M,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z=n.newValue,U=n.row,G=n.col,B=n.sheet,R=h.getDataView();if(0===G&&R){if(i=[],r=void 0,u=void 0,c=R.getColumnInfos(!0,!0),(a=f.CMi[n.row])&&a.isCalculateColumn)r=a.value;else if(a.bMi){for(l=0;l<c.length;l++)if((d=c[l])&&d.cross&&d.cross===a.bMi){u=l;break}}else r=zt(v=B.getValue(U,1,o.SheetArea.viewport,o.ValueType.richText));if(g=R.getColumnInfos(!0),M=void 0,0===n.row&&r===R.name){for(b=0,N=g;b<N.length;b++)d=N[b],i.push(Nt(Nt({},d),{visible:Z}));for(D=0,m=c;D<m.length;D++)w=m[D],i.push(Nt(Nt({},w),{visible:Z}))}else if(u!==I){for(C=0,y=g;C<y.length;C++)(d=y[C]).isCross&&d.RBt===u&&i.push(Nt(Nt({},d),{visible:Z}));i.push(Nt(Nt({},c[u]),{visible:Z}))}else if((x=B.getCell(U,1).textIndent())===ft){for(A=a.nIi,T=0,j=g;T<j.length;T++)if(d=j[T],(A?d.value===A:(0,e.tIi)(d.caption)===r||d.value===r)&&!d.isGroup){i.push(Nt(Nt({},d),{visible:Z}));break}}else if(A=a.nIi){for(p=0,z=g;p<z.length;p++)if((d=z[p]).value===A&&!d.isGroup){i.push(Nt(Nt({},d),{visible:Z}));break}0===i.length&&Z&&(M={value:A,visible:!0})}else for(L=function(t){return"string"==typeof t?t.substring(0,t.indexOf(".")):""},S=L(g[U-1].value),O=0,k=g;O<k.length;O++)if("string"==typeof(E=(d=k[O]).value)&&-1!==E.indexOf(S)&&-1!==E.indexOf("."+r)&&!d.isGroup){i.push(Nt(Nt({},d),{visible:Z}));break}M&&h.zA({cmd:s.VIEW_Add_COLUMN_INFO,columnInfo:M}),i.length>0&&h.zA({cmd:s.VIEW_UPDATE_COLUMN_INFO,columnInfos:i}),f.CMi=f.HMi(R),f.ZS()}})),t=function(t){var n=f.CMi[t].nIi;return!b(n)&&n.indexOf(".")>0},n=function(t){var n=f.CMi[t].nIi;return!b(n)&&n.indexOf(".")>0&&f.eIi().isLookupField(n)},i=function(t){return!b(t)&&!b(f.oIi)&&t.indexOf(".")>0},r=function(t){var n=f.CMi[t].nIi;return i(n)&&!f.mLt(n)},u=function(t){var n=f.CMi[t].nIi;return i(n)&&f.mLt(n)},c=function(t){var n,i=f.CMi[t],e=i.yBt,o=i.nIi;f.uIi=o,e?(f.oIi=o,f.cIi=[],f.rIi&&f.rIi.indexOf(".")>-1&&(f.rIi=void 0,f.aIi=-1,f.wMi=-1),f.AMi=!0,f.sIi(!0),f.MIi(!1),f.IIi(),f.AMi=!1):wt(i)&&(n=f.gIi(i.bMi),f.NIi=f.CMi.filter((function(t){return wt(t)})).indexOf(i),f.cIi=f.lIi(),f.options.groupAreaVisible?(f.oIi=n.over,f.rIi&&f.rIi.indexOf(".")>-1&&(f.rIi=void 0,f.aIi=-1,f.wMi=-1),f.AMi=!0,f.sIi(!0),f.MIi(!1),f.IIi(),f.AMi=!1):f.options.crossAreaVisible&&f.IIi())},a={},l=M,f.DIi=function(t){var i,e,u,s,h,g;if(t.target===d.Dg()&&(i=f.fIi(d,t))&&!f.$Mi&&(a={x:t.x,y:t.y},l=f.mMi?f.mMi.getBoundingClientRect():M,e=i.row,u=i.col,!b(e)&&e>0&&!b(u))){if(n(e))return void c(e);if(r(e))return;if(i.cellTypeHitInfo&&i.cellTypeHitInfo.outlineColumnHitInfo&&(f.dIi=!0),s=d.getValue(e,1),h=void 0,f.Ano=!1,"string"!=typeof s?(h=s=d.getFormula(e,1),f.Ano=!0):f.CMi[e].isRelationship?(h=f.hIi(d,e)+"."+s,f.TIi=!1):(h=zt(g=d.getValue(e,1,o.SheetArea.viewport,o.ValueType.richText)),f.TIi=!0),!f.CMi[e].isRelationship&&At(f.CMi[e])&&!f.options.crossAreaVisible)return;f.rIi=h,v=f.LMi.getBoundingClientRect(),f.aIi=e,f.wMi=e,c(e)}},f.bIi=function(n){var i,e,o,r,u,c,s,h=f.rIi,g=n.x!==a.x||n.y!==a.y;if(h&&g){if(f.AIi(n,h,v,f.LMi),(i=f.fIi(d,n))&&(e=i.row,o=i.col,!b(o)&&e&&e!==f.wMi&&!f.vDo(f.aIi,e))){if(t(e))return;d.t4(e,1)}(r=d.Dg())&&(r.style.cursor="move"),f.xMi&&(f.xMi.style.cursor="move"),f.dIi=!1,l&&(u=30,(n.clientY<l.top-u||n.clientY>l.bottom+u)&&(s=(c=Math.max(l.top+1,Math.min(n.clientY,l.bottom-1)))+(n.pageY-n.clientY),Object.defineProperty(n,"pageY",{value:s,configurable:!0})))}},f.vIi=function(n){var i,e,o,r,c,a,s,v,g,N,D,m;l=M,(i=f.rIi)&&((e=f.fIi(d,n))&&!f.dIi&&(o=e.row,r=e.col,c=h.jIi,a=f.aIi,b(o)||b(r)||!(o!==a&&o>c&&a>c||o===a)?(d.t4(f.aIi,0),f.zIi(n.target,f.xMi)&&f.kMi(),f.CIi(n)):(s=h.getDataView())&&!u(a)&&(v=f.CMi[a],f.vDo(a,o)||(jt(v)?f.wIi(a,o):f.yIi(a,o)),N=!((g=f.CMi[o]).yBt||wt(g)||t(o)),f.options.crossAreaVisible&&N&&(f.rIi=void 0,f.TIi=void 0,f.aIi=-1,f.wMi=-1,f.cIi=I,f.oIi=I,f.NIi=void 0,f.mIi=void 0,f.AMi=!0,f.sIi(!1),f.MIi(!0),f.LIi(),f.xIi(),f.AMi=!1))),f.dIi=!1,f.rIi=void 0,f.TIi=void 0,f.aIi=-1,f.wMi=-1,(D=d.Dg())&&(D.style.cursor="default"),f.xMi&&(f.xMi.style.cursor="default"),(m=f.SIi)&&(m.style.display="none"))},(0,o.GC$)(".".concat(F)).bind("click",(function(){var t,n,i,e,r,u,c=d.getRowCount();if(!f.$Mi&&0!==c){if(d.suspendPaint(),n=(t=d.rowOutlines.items.map((function(t){return null==t?void 0:t.collapsed}))).some((function(t){return t})))for(i=0,e=t.length;i<e;i++)(r=t[i])&&d.outlineColumn.setCollapsed(i,!1);if(d.ffe(c,1,3,{rowExpand:!1,clearUndoNotInCommand:!1}),f.CMi[c]={isCalculateColumn:!0,checkStatus:!0,value:"",textIndent:ft},d.getCell(c,1).locked(!1).textIndent(ft),d.outlineColumn.refresh(),d.setActiveCell(c,1),d.showCell(c,0,o.VerticalPosition.center,o.HorizontalPosition.center),n){for(i=t.length-1;i>-1;i--)(r=t[i])&&d.outlineColumn.setCollapsed(i,!0);d.outlineColumn.refresh()}u=setTimeout((function(){d.startEdit(),clearTimeout(u)}),0),d.resumePaint()}})),f.mMi&&f.mMi.addEventListener("mousedown",f.DIi,!0),document.addEventListener("mousemove",f.bIi,!0),document.addEventListener("mouseup",f.vIi,!0)},t.prototype.hIi=function(t,n){for(;n>=0;){var i=this.CMi[n];if(i&&Tt(i))return t.getValue(n,1);n--}return""},t.prototype.ZIi=function(t,n){var i,e,o,r,u,c,a,s,l,f,d,h=this,v=h.eIi();if(h.CMi=h.HMi(v),i=v.getColumnInfos(),e=h.CMi.filter((function(t){return xt(t)})),o=h.CMi.filter((function(n,i){return i<t&&wt(n)&&!n.isRelationship})),r=o.reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),u=t<n?n+1:n,c=h.CMi.filter((function(t,n){return n<u&&wt(t)&&!t.isRelationship})),a=c.reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),s=h.CMi.filter((function(n,i){return i<t&&At(n)&&!n.isRelationship})).length,l=h.CMi.filter((function(t,i){return i<n&&At(t)&&!t.isRelationship})).length,!h.CMi[t].isRelationship&&h.CMi[n].isRelationship)if(s=0,t>n){for(f=n;f>=0;f--)if(!jt(h.CMi[f])){l=n-f;break}}else{for(d=!1,f=n;f<h.CMi.length;f++)if(!jt(h.CMi[f])){l=n-f,d=!0;break}d||(l=n-h.CMi.length)}return{columnInfos:i,columnFieldInfos:e,crossColumnCountBeforeFromRow:r,crossColumnCountBeforeToRow:a,crossRelationFieldCountBeforeFromRow:s,crossRelationFieldCountBeforeToRow:l}},t.prototype.OIi=function(t,n){var i,e,o,r,u,c,a,s,l,f=this,d=f.eIi();return f.CMi=f.HMi(d),i=d.getColumnInfos(),e=f.CMi.filter((function(t){return xt(t)})),r=(o=f.CMi.filter((function(n,i){return i<t&&wt(n)}))).reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),u=t<n?n+1:n,a=(c=f.CMi.filter((function(t,n){return n<u&&wt(t)}))).reduce((function(t,n){return t+i.filter((function(t){return t.RBt===n.RBt})).length-1}),0),s=0,l=f.EIi(t,n),f.CMi[t].textIndent===f.CMi[n].textIndent&&f.CMi[t].isRelationship&&f.CMi[n].isRelationship&&f.GIi(t,n)&&(l=0),{columnInfos:i,columnFieldInfos:e,crossColumnCountBeforeFromRow:r,crossColumnCountBeforeToRow:a,crossRelationFieldCountBeforeFromRow:s,crossRelationFieldCountBeforeToRow:l}},t.prototype.GIi=function(t,n){var i,e,o=this,r=o.eIi(),u=o.HMi(r),c="";for(i=t;i>=0;i--)if(!jt(u[i])){c=u[i].value;break}for(e="",i=n;i>=0;i--)if(!jt(u[i])){e=u[i].value;break}return c===e},t.prototype.EIi=function(t,n){var i,e,o=this,r=o.eIi(),u=o.HMi(r),c=n-t;for(e=t;e>=0;e--)if(!jt(u[e])){i=t-e-1;break}return c+i},t.prototype.vDo=function(t,n){var i,e,o;return!!this.options.disallowResortRelationshipField&&(e=(i=this.CMi)&&i[t],o=i&&i[n],!(!e||!o||!e.isRelationship&&!o.isRelationship))},t.prototype.yIi=function(t,n){var i,e,o,r,u,c,a,l,f,d,h,v,g,M,I,b=this,N=b.vMi,D=N.getDataView();if(!(Tt(b.CMi[t])&&jt(b.CMi[n])||(e=(i=b.ZIi(t,n)).columnInfos,o=i.crossColumnCountBeforeFromRow,r=i.crossColumnCountBeforeToRow,u=i.crossRelationFieldCountBeforeFromRow,c=i.crossRelationFieldCountBeforeToRow,a=b.pIi(D).length||0,l=b.gDo(D,t),f=b.gDo(D,n),(d=D.oPt&&D.oPt.length?D.ALt():null)&&(l=d.indexOf(l),f=d.indexOf(f)),h=t-1+a-u+o,v=n-1+a-c+r,D.oPt&&D.oPt.length&&(h=D.BPt(h),v=D.BPt(v)),h===v))){if(g=1,wt(b.CMi[t])&&(M=b.kIi(D,h),g=e.filter((function(t){return t.RBt===M})).length),b.CMi[t].isRelationship)for(g=1,I=t+1;I<b.CMi.length&&jt(b.CMi[I]);I++)g++;N.zA({cmd:s.VIEW_MOVE_COLUMN_FOR_PANEL,fromColumnOptionIndex:l,toColumnOptionIndex:f,fromColumnIndex:h,toColumnIndex:v,count:g}),b.ZS()}},t.prototype.wIi=function(t,n){var i,e,o,r,u,c,a,l,f,d,h,v,g,M,I,b,N;t!==n&&(o=(e=(i=this).vMi).getDataView(),u=(r=i.OIi(t,n)).columnInfos,c=r.crossColumnCountBeforeFromRow,a=r.crossColumnCountBeforeToRow,l=r.crossRelationFieldCountBeforeFromRow,f=r.crossRelationFieldCountBeforeToRow,d=i.pIi(o).length||0,h=i.gDo(o,t),v=i.gDo(o,n),(g=o.oPt&&o.oPt.length?o.ALt():null)&&(h=g.indexOf(h),v=g.indexOf(v)),M=t-1+d-l+c,I=n-1+d-f+a,o.oPt&&o.oPt.length&&(M=o.BPt(M),I=o.BPt(I)),M!==I&&(b=1,Tt(i.CMi[t])&&(N=i.kIi(o,M),b=u.filter((function(t){return t.RBt===N})).length),e.zA({cmd:s.VIEW_MOVE_COLUMN_FOR_PANEL,fromColumnOptionIndex:h,toColumnOptionIndex:v,fromColumnIndex:M,toColumnIndex:I,count:b}),i.ZS()))},t.prototype.sIi=function(t){var n=this,i=n.EMi;n.options.crossAreaVisible=t,t?i.classList.remove(ut):i.classList.add(ut)},t.prototype.setGroupAreaVisible=function(t){this.MIi(t)},t.prototype.MIi=function(t){var n=this,i=n.SMi,e=n.GMi;n.options.groupAreaVisible=t,t?(i.classList.remove(ut),e.classList.remove(ut)):(i.classList.add(ut),e.classList.add(ut))},t.prototype.AIi=function(t,n,i,e){var o=this,r=o.SIi,u=o.Ti||document.body;r&&r.parentElement&&r.parentElement!==u&&(r.parentElement.removeChild(r),r=this.SIi=void 0),r||((r=o.SIi=document.createElement("span")).className="gc-table-sheet-move-span",r.style.position="fixed",u.appendChild(r)),r.textContent=n,r.style.top=t.clientY+5+"px",r.style.left=t.clientX-50+"px",r.style.display="block"},t.prototype.fIi=function(t,n){var i=t.uw();return t.hitTest(n.pageX-i.left,n.pageY-i.top,!1)},t.prototype.PMi=function(){var t=this,n=t.Tp(),i=t.vMi;i.bind(o.Events.ColumnChanged+g,(function(e,r){var u,c,a,s=r.sheetArea,l=i.getDataView();1!==s&&3!==s||("isVisible"===r.propertyName?(u=r.sheet.getValue(0,r.col,o.SheetArea.colHeader),(c=t.nv(l,u))>=0&&(n.suspendPaint(),n.suspendEvent(),n.setValue(c,0,r.newValue),n.resumeEvent(),n.resumePaint())):"addColumns"!==r.propertyName&&"deleteColumns"!==r.propertyName||(n.suspendPaint(),n.suspendEvent(),a=t.RIi(i),t.FMi(n,a),n.resumeEvent(),n.resumePaint()),t.CMi=t.HMi(l))}))},t.prototype.Tp=function(){if(this.mMi){var t=(0,o.GC$)(this.mMi).data("workbook");if(t)return t.getSheet(0)}return null},t.prototype.RIi=function(t){var n,i,e,r,u,c,a,s=t.getDataView();if(s){for(i=[(n=this.HMi(s))[0]],r=0,u=(e=t.Mf).getColumnCount();r<u;r++)c=e.getValue(0,r,o.SheetArea.colHeader),(a=this.nv(s,c))>=0&&i.push(n[a]);return i}return[]},t.prototype.nv=function(t,n){var i,e;if(t)for(i=t.getColumnInfos(!0),e=0;e<i.length;e++)if(i[e].caption===n||i[e].value===n)return e+1;return-1},t.prototype.kIi=function(t,n){var i=t.BPt(n),e=t.yLt[i];return e&&e.RBt},t.prototype.HMi=function(t,n){var i,e,o,r,u,c,a,s,l,f,d,h,v,g,M,N,D=this;if(t){for(i=[],e=!1,o=t.getColumnInfos(!0,!0),r=!b(n),u=function(){return r&&i.length-1>=n},c=0;c<o.length;c++){if("string"==typeof(a=o[c]).value&&0===a.value.trim().indexOf("="))i.push({value:a.value,textIndent:ft,checkStatus:!1!==a.visible,isCalculateColumn:!0});else if(b(a.cross))if("string"==typeof a.value&&t.FPt(a.value)&&1===a.value.split(".").length)if(o[c].isRelationship){for(s=a.value,l=!this.PIi(o,s)||!1,i.push({value:D.$t(a),textIndent:ft,checkStatus:!1!==a.visible,setCollapsed:l,isRelationship:!0}),f=D.WIi(a.value,D.YMi,t),d=0,h=[],v=c+1,g=function(){var t,n=o[v].value;"string"==typeof n&&(t={value:n.substring(n.indexOf(".")+1),nIi:n,textIndent:dt,checkStatus:!1!==o[v].visible,needCheckBox:!0,isRelationship:!0,isViewColumnOption:!0},(d=f.findIndex((function(t){return t.nIi===n})))>-1?f[d]=Nt(Nt(Nt({},t),f[d]),{checkStatus:t.checkStatus}):h.push(t)),v++};this.YIi(o,v,s);)g();f.forEach((function(t){return i.push(t)})),h.forEach((function(t){return i.push(t)})),c=v-1}else i.push({value:D.$t(a),textIndent:ft,checkStatus:!1!==a.visible}),D.WIi(a.value,D.YMi,t).forEach((function(t){return i.push(t)}));else{if("string"==typeof a.value&&"_ganttColumn"===a.value){if(u())return a;continue}M=void 0,N=void 0,"string"==typeof a.value&&-1===a.value.indexOf(".")&&(M=t.isLookupField(a.value),a.yBt=M,N=a.value),i.push({value:D.$t(a),textIndent:ft,checkStatus:!1!==a.visible,yBt:M,nIi:N})}else i.push({value:D.$t(a),bMi:a.cross,RBt:a.RBt,textIndent:ft,checkStatus:!1!==a.visible});if((b(a.visible)||a.visible)&&(e=!0),u())return a}return r?I:(i.unshift({value:t.name,textIndent:ft,checkStatus:e,isViewName:!0}),i)}return[]},t.prototype.PIi=function(t,n){var i,e;for(i=0;i<t.length;i++)if("string"==typeof(e=t[i]).value&&-1!==e.value.indexOf(n)&&!1!==e.visible)return!0;return!1},t.prototype.YIi=function(t,n,i){if(n>=t.length)return!1;var e=t[n];return!e.cross&&!e.isCross&&(-1!==e.value.indexOf(i)&&-1===e.value.indexOf("="))},t.prototype.$t=function(t){var n,i,o,r=[],u=t.value instanceof Function?t.value.name:t.value,c=(0,e.tIi)(t.caption)||u;return r.push({text:c}),(n=this.options.showSource)===Mt.field?"="!==u[0]&&(this.options.hideIdenticalSourceField&&c===u||(i=u)):n===Mt.formula?"="===u[0]&&(i=u):n===Mt.all&&(i=u),i&&(o=" ("+i+")",r.push({style:{foreColor:"grey"},text:o})),{richText:r}},t.prototype.VMi=function(t,n){t.options.showVerticalScrollbar=n},t.prototype.FMi=function(t,i){var r,u,c,l,f,d,h,v,g,M=this,N=i.length,m=t.outlineColumn,w=this.options,C=w.showEditButton,y=this.vMi,x=y.Mf,A={};for(t.suspendEvent(),t.suspendPaint(),r=0;r<t.getRowCount();r++)m.getCollapsed(r)&&(m.setCollapsed(r,!1),A[(u=t.getCell(r,1)).value()]=u.textIndent()),i[r]&&!b(i[r].setCollapsed)&&i[r].setCollapsed&&(u=t.getCell(r,1)).textIndent()===ft&&(A[u.value()]=u.textIndent());for(m.reset(),t.setRowCount(N),t.clear(0,0,N,2,3,o.StorageType.data|o.StorageType.style),c=0;c<N;c++)l=i[c],u=t.getCell(c,1).textIndent(l.textIndent),l.isCalculateColumn?t.setFormula(c,1,l.value):u.value(l.value),(l.textIndent===ft||l.needCheckBox)&&((f=new a.CheckBox).mode("modern"),f.processMouseMove=D,t.getCell(c,0).value(l.checkStatus).cellType(f)),d=[],Ct(l)&&d.push({useButtonStyle:!1,hoverBackColor:"white",imageType:o.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+bG9vayB1cCBjb2x1bW4xPC90aXRsZT4KICAgIDxnIGlkPSJsb29rLXVwLWNvbHVtbjEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxwYXRoIGQ9Ik0zLDMgTDUsMyBMNSw0IEwzLDQgTDMsMyBaIE0zLDYgTDUsNiBMNSw3IEwzLDcgTDMsNiBaIE0zLDkgTDUsOSBMNSwxMCBMMywxMCBMMyw5IFogTTMsMTIgTDUsMTIgTDUsMTMgTDMsMTMgTDMsMTIgWiBNNiwzIEwxNCwzIEwxNCw0IEw2LDQgTDYsMyBaIE02LDYgTDE0LDYgTDE0LDcgTDYsNyBMNiw2IFogTTYsOSBMMTQsOSBMMTQsMTAgTDYsMTAgTDYsOSBaIE02LDEyIEwxNCwxMiBMMTQsMTMgTDYsMTMgTDYsMTIgWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbD0iIzY2NjY2NiI+PC9wYXRoPgogICAgPC9nPgo8L3N2Zz4=",visibility:o.ButtonVisibility.always,iMe:!0,imageSize:{height:20,width:20}}),wt(l)&&(d.push({useButtonStyle:!1,hoverBackColor:"white",imageType:o.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+Y3Jvc3MgY29sdW1uMTwvdGl0bGU+CiAgICA8ZyBpZD0iY3Jvc3MtY29sdW1uMSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9Iue8lue7hCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMS4wMDAwMDAsIDIuMDAwMDAwKSIgZmlsbD0iIzY2NjY2NiI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0xMywwIEwxMywzLjUzMSBMMTIsMi42OTcgTDEyLDEgTDksMSBMOSw1IEw4LDUgTDgsMSBMNSwxIEw1LDEwIEw0LDEwIEw0LDEgTDEsMSBMMSwxMSBMMy42OTcsMTEgTDQuNTMxLDEyIEwwLDEyIEwwLDAgTDEzLDAgWiBNMTMsOS40NjggTDEzLDEyIEwxMC40NjksMTIgTDExLjMwMywxMSBMMTIsMTEgTDEyLDEwLjMwMiBMMTMsOS40NjggWiIgaWQ9IuW9oueKtue7k+WQiCIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLlvaLnirbnu5PlkIgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEwLjAwMDAwMCwgOS4wMDAwMDApIHNjYWxlKC0xLCAtMSkgdHJhbnNsYXRlKC0xMC4wMDAwMDAsIC05LjAwMDAwMCkgIiBwb2ludHM9IjggMTQgNSAxMS41IDggOSA4IDExIDEyIDExIDEyIDcgMTAgNyAxMi41IDQgMTUgNyAxMyA3IDEzIDEyIDggMTIiPjwvcG9seWdvbj4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==",visibility:o.ButtonVisibility.always,iMe:!0,imageSize:{height:16,width:16}}),d.push({imageType:o.ButtonImageType.clear,visibility:o.ButtonVisibility.always,iMe:!0,imageSize:{height:18,width:18},command:function(t,n,e,o){var r,u,c=y.getDataView();if(c){for(r=c.uPt(i.filter((function(t){return xt(t)})).indexOf(i[n])),y.zA({cmd:s.REMOVE_CROSS_COLUMN,index:r}),M.cIi=I,M.oIi=I,M.NIi=void 0,M.mIi=void 0,u=0;u<i.length;u++)if(i[u]&&xt(i[u])){t.t4(u,1);break}M.AMi=!0,M.MIi(!0),M.sIi(!1),M.AMi=!1,M.ZS()}}})),C&&d.push({imageType:o.ButtonImageType.custom,imageSrc:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzE5XzE1MTEpIj4KPHJlY3Qgd2lkd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Mi45NzEyMSAxNS45Mzc0IDMuMDc3ODJDMTUuODkzMiAzLjE4NDQzIDE1LjgyODUgMy4yODEyOCAxNS43NDY4IDMuMzYyODRMMTMuODg1IDUuMjI0NkwxMy44ODQyIDUuMjI1NDhWNS4yMjU0OFoiIGZpbGw9IiM2NjY2NjYiLz4KPC9nPgo8ZGVmcz4KPGNsaXBQYXRoIGlkPSJjbGlwMF8xOV8xNTExIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJ0cmFuc3BhcmVudCIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",visibility:o.ButtonVisibility.onSelected,iMe:!0,command:function(n,r,u,c){var a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C=y.getDataView();if(C&&(s=(a=i[r])&&a.nIi,l=!(!a||!a.isCalculateColumn),f=t.getText(r,u),d=l?a.value:"",l||0===f.indexOf("=")||(h=f.indexOf("("))>=0&&(f=f.substring(0,h)),s||d||f))for(v=function(t){return"string"==typeof t?t.replace(/\s+/g,""):t},g=C.getColumnInfos(),M=0;M<g.length;M++)if(!(I=g[M]).isGroup&&(b=!1,b=s?I.value===s:l?v(I.value)===v(d):(N=(0,e.tIi)(I.caption||I.value))===f)){D=M,m=x.getSelections(),w=[(0,o.Ec)(-1,D,-1,1)],x.EA(m,w),x.setSelection(-1,D,-1,1),x.showCell(x.Tb||0,D,o.VerticalPosition.nearest,o.HorizontalPosition.nearest),x.jA(m);break}}}),d.length>0&&u.cellButtons(d);for(v in h=t.getStyle(-1,0),w.showViewName||i.some((function(t){var n;return null===(n=t.nIi)||void 0===n?void 0:n.includes(".")}))?(t.outlineColumn.options({columnIndex:1,showIndicator:!0}),t.outlineColumn.options().collapseIndicator=n.ARROW_RIGHT,t.outlineColumn.options().expandIndicator=n.ARROW_DOWN,t.outlineColumn.refresh(),h.cellPadding="0 0 1 0"):h.cellPadding="0 0 1 0",t.setStyle(-1,0,h),t.showRowOutline(!1),m=t.outlineColumn,A)if(A.hasOwnProperty(v))for(g=A[v],r=0;r<t.getRowCount();r++)if((u=t.getCell(r,1)).value()===v&&u.textIndent()===g){m.setCollapsed(r,!0);break}t.resumePaint(),t.resumeEvent()},t.prototype.kMi=function(){var t,n,i,r,u,c,a=this,l=a.vMi,f=a.rIi,d=l.getDataView();d&&a.options.groupAreaVisible&&(t=(0,o.RF)(l.lMi)||[],f?(n=a.CMi[a.aIi]&&a.CMi[a.aIi].nIi,i=a.gDo(d,a.aIi),r=d.ILt[i],u=r&&r.value||n,c=t.filter((function(t){return t.field===u})),u&&0===c.length&&(t.push({caption:a.Ano?f:(0,e.hze)(f),field:u}),l.zA({cmd:s.GROUP_OPTIONS,groupOptions:t}),a.ZS())):a.updatePanelLayout())},t.prototype.gDo=function(t,n){var i,e,o=this.CMi[n],r=o&&o.nIi;return r&&(i=Dt(t.ILt,(function(t){return t&&t.value===r})))>=0||!b(null==o?void 0:o.RBt)&&(i=Dt(t.ILt,(function(t){return t&&t.RBt===o.RBt})))>=0||(i=this.TIi?this.CMi.filter((function(t){return xt(t)})).indexOf(o):this.CMi.indexOf(this.CMi[n-1]),(e=t.oPt)&&e.length&&(i=t.ALt()[i])),i},t.prototype.pIi=function(t){var n,i,e,o,r;if(t||(t=this.eIi()),n=[],(i=t&&t.getColumnInfos())&&i.length)for(e=0,o=i;e<o.length;e++)(r=o[e]).isGroup&&n.push(r);return n},t.prototype.yMi=function(){var t=this.options.fieldAreaVisible,n=this.options.crossAreaVisible,i=this.options.groupAreaVisible,o="",r="",u="",c="";return o='<div class="'.concat(G,'">\n <span class="gc-table-sheet-field-header">').concat((0,e.getSR)().GroupPanelFieldsHeader,"\n <span role='button' aria-label='").concat((0,e.getSR)().GroupPanelAddCalculateColumn,"' class=\"").concat(F,"\" title='").concat((0,e.getSR)().GroupPanelAddCalculateColumn,"'></span>\n </span>\n <div class=\"").concat(w,'"></div>\n </div>'),r=this.FIi(n),u='<div class="'.concat(y,'">\n <span class="gc-table-sheet-group-header">').concat((0,e.getSR)().GroupPanelGroupsHeader,'</span>\n <ul class="').concat(x,"\" role='listbox' aria-label='").concat((0,e.getSR)().GroupPanelGroupsHeader,"' >\n <span role='option' aria-label='").concat((0,e.getSR)().GroupPanelTip,'\' class="gc-table-sheet-group-tip">').concat((0,e.getSR)().GroupPanelTip,"</span>\n </ul>\n </div>"),c='<div class="'.concat(U,'"></div>'),!1===t&&(o=o.replace(G,G+" "+ut),u=u.replace(y,"".concat(y," half-height")),c=c.replace(U,"".concat(U," half-height"))),!1===i&&(u=u.replace(y,y+" "+ut),c=c.replace(U,U+" "+ut)),!1===n&&!1===i&&(o=o.replace(G,"".concat(G," total-height"))),'<div class="'.concat(m,'">\n ').concat(o,"\n ").concat(u,"\n ").concat(r,"\n ").concat(c,'\n </div>\n <div class="').concat(J,'" style="display:none;"></div>')},t.prototype.updatePanelLayout=function(){this.IIi(),this.LIi(),this.xIi(),this._Mi()},t.prototype.getBindingTable=function(){return this.vMi},t.prototype.getSelectedField=function(){var t,n,i;return this.CMi&&this.wMi!==I&&this.wMi>=0&&this.wMi<this.CMi.length?(null===(t=this.CMi[this.wMi])||void 0===t?void 0:t.nIi)||null:this.BMi&&(i=this.BMi.getActiveRowIndex())>=0?this.CMi&&i<this.CMi.length?(null===(n=this.CMi[i])||void 0===n?void 0:n.nIi)||null:this.BMi.getText(i,1)||this.BMi.getValue(i,1)||null:null},t.prototype.LIi=function(){this.SWt(),this.JIi(),this.Fz()},t.prototype.xIi=function(){var t,n,i,e=this;this.GMi&&(this.XIi(),n=function(){var t;return null===(t=e.GMi)||void 0===t?void 0:t.querySelector(".".concat(H))},i=null===(t=n())||void 0===t?void 0:t.scrollTop,this.GMi.innerHTML=this.KIi(),n()&&(n().scrollTop=i),this._Ii(),this.qIi=!1)},t.prototype.JIi=function(){var t,n,i,e,o=this.vMi,r=o.lMi,u=this.xMi;if(r&&u){for(t="",n=void 0,i=r.length,this.jMi=this.jMi>=i?i-1:this.jMi,e=0;e<r.length;e++)n=r[e],t+=this.$Ii(n,e);u.innerHTML=t,u.style.border="solid 1px lightgrey",this.igi=u.querySelector(".".concat(A))}else this.tgi()},t.prototype._Mi=function(){var t,n;this.mMi&&(t=this.vMi,n=this.HMi(t.getDataView()),this.CMi=n,this.FMi(this.Tp(),n))},t.prototype.tgi=function(){var t,n=this.xMi;n&&(n.innerHTML="<span role='option' aria-label='".concat((0,e.getSR)().GroupPanelTip,'\' class="gc-table-sheet-group-tip">').concat((0,e.getSR)().GroupPanelTip,"</span>"),n.style.border="",this.jMi=0),(t=this.GMi)&&(t.innerHTML="")},t.prototype.Fz=function(){var t,n,i=this,e=i.vMi,r=i.BMi,u=r&&r.Dg(),c=(0,o.RF)(e.lMi),a=i.xMi;a&&(t=i.igi,n=i.LMi.getBoundingClientRect(),(0,o.GC$)(".".concat(T),a).bind("click",(function(t){var n,e,r=t.target.className;r===j?(e=(n=(0,o.GC$)(t.target).parent()).attr(p),i.ngi(e)):r===st&&(e=(n=(0,o.GC$)(t.target).parent()).attr(p),i.rno(e))})).bind("mousedown",(function(t){var e,r=t.target,u=t.target.className,c=!1;u.indexOf(j)>-1||(u.indexOf(Z)>-1?(r=r.parentElement,c=!0):u.indexOf(T)>-1&&(c=!0),c&&(e=(0,o.GC$)(r).attr(p),i.egi=e,n=i.LMi.getBoundingClientRect(),i.jMi!==+e&&(i.jMi=+e,i.XIi(),i.ogi(r),i._Ii()),i.ugi=r))})),i.cgi=function(t){var r,s,l,f,d,h,v,g,b,N=i.egi;N!==I&&N!==M&&(r=(c=(0,o.RF)(e.lMi))[N].caption||c[N].field,i.AIi(t,r,n,i.LMi),u&&(u.style.cursor="move"),i.Ti.style.cursor="move",f=!1,(l=(s=t.target).parentElement)&&l.className.indexOf(T)>-1?(s=l,f=!0):s.className.indexOf(T)>-1&&(f=!0),d=i.ugi,f&&d!==s&&((h=s.getAttribute(p))<N?(d.className=d.className.replace(W,"").replace(V,"").trim(),s.className=s.className+" ".concat(W)):h>N?(d.className=d.className.replace(W,"").replace(V,"").trim(),s.className=s.className+" ".concat(V)):d.className=d.className.replace(W,"").replace(V,"").trim(),i.ugi=s),g=(v=a.getBoundingClientRect()).top+document.documentElement.scrollLeft,b=v.bottom+document.documentElement.scrollTop,t.pageY<g?a.scrollTop=a.scrollTop-10:t.pageY>b&&(a.scrollTop=a.scrollTop+10))},i.rgi=function(t){var n,r,a,l,f=i.egi,d=t.target;c=(0,o.RF)(e.lMi),f!==I&&(i.ugi.className=i.ugi.className.replace(W,"").replace(V,"").trim(),i.zIi(d,i.xMi)?(n=i.ugi)&&(r=(0,o.GC$)(n).attr(p))!==f&&(a=c.splice(f,1)[0],c.splice(r,0,a),i.jMi=+r,e.zA({cmd:s.GROUP_OPTIONS,groupOptions:c}),i.ZS()):i.ngi(f)),i.egi=I,i.ugi=I,u&&(u.style.cursor="default"),i.Ti.style.cursor="default",(l=i.SIi)&&(l.style.display="none")},document.addEventListener("mouseup",i.rgi,!0),document.addEventListener("mousemove",i.cgi,!0),(0,o.GC$)(".".concat(A)).bind("blur",(function(n){"none"!==t.style.display&&(i.agi(n.target),t.style.display="none")})).bind("keydown",(function(n){13===n.keyCode?(i.agi(n.target),t.style.display="none"):27===n.keyCode&&(t.style.display="none")})),(0,o.GC$)(".".concat(x)).bind("dblclick",(function(t){var n;t.target.className===Z&&i.sgi(t)})))},t.prototype.Xeo=function(t){return t?t.getColumnInfos(!0,!0).filter((function(t){return b(t.cross)})).map((function(t){var n=t.value instanceof Function?t.value.name:t.value;return{text:(0,e.tIi)(t.caption)||n,value:n}})):[];var n},t.prototype.Mgi=function(){var t,n,i,e=document.createElement("li");return e.className=O,t=this.Xeo(this.vMi.getDataView()),n=this.vMi.options.groupLayout.mode===r.GroupLayoutMode.tabular,i=this.vMi.options.groupLayout.position,e.innerHTML=vt({sliceField:"",caption:"",formula:"",columnList:t,showSlice:n,position:i}),e},t.prototype.ogi=function(t){var n,i,e=this,o=e.xMi,r=o.querySelectorAll(".".concat(T));for(n in r)r.hasOwnProperty(n)&&((i=r[n]).className=i.className.replace("selected","").trim(),i===t&&(i.className=i.className+" selected"));this.GMi&&(this.GMi.innerHTML=this.KIi(),this.qIi=!1)},t.prototype.Nuo=function(t){return this.vMi.Nuo(t)},t.prototype.Iuo=function(t){return this.vMi.Iuo(t)},t.prototype.KIi=function(){var t,n,i,o,u,c,a,s,f,d=this,h=d.jMi,v="",g=d.vMi,M=g.lMi,I=M&&M[h],b=I&&I.field,N="",D=I&&I.summaryFields,m=this.Xeo(this.vMi.getDataView()),w=g.options.groupLayout&&(0,l.isGroupOutlineCondensedLayout)(g.options.groupLayout.mode);if(D)for(n=0;n<D.length;n++)u="",(o=(i=D[n]).slice)&&(u="string"==typeof o?o:o.field),c=w?i.caption:i.caption||i.formula,a=i.relateTo,s=i.position||(null===(t=this.vMi.options.groupLayout)||void 0===t?void 0:t.position)||"header",a||(a=this.vMi.getDataView().ucr(i.formula,!0)[0]),f=this.vMi.options.groupLayout.mode===r.GroupLayoutMode.tabular,N+='<li class="'.concat(O,'" ').concat(p,"=").concat(h," ").concat(S,"=").concat(n,">\n ").concat(vt({formula:d.Nuo(i.formula),caption:c,sliceField:d.Nuo(u),columnList:m,relateTo:a,position:s,showSlice:f}),"\n </li>");return b&&(v='<div class="gc-table-sheet-summary-header">\n <span class="gc-table-sheet-summary-label">'.concat(b,'</span>\n <span class="').concat(Q,'" title="').concat((0,e.getSR)().GroupPanelItemAddCalculation,'"></span>\n <span class="gc-table-sheet-summary-remove" title="').concat((0,e.getSR)().GroupPanelItemRemoveAll,'"></span>\n </div>\n <ul class="').concat(H,'">\n ').concat(N,"\n </ul>")),v},t.prototype._Ii=function(){var t,n,i=this,e=i.pMi;(0,o.GC$)(".".concat(H)).bind("change",(function(e){var r,u,c,a,l,f,d,h,v,g,M,b,N,D,m,w=(0,o.GC$)(e.target),C=w.attr("current-data"),y=w.val(),x=w.parent();if(C!==y&&x&&x[0]&&"="!==y){if(r=i.vMi,u=(0,o.RF)(r.lMi),c=i.jMi,a=u&&u[c],l=JSON.parse(JSON.stringify(u)),d=(f=x.parent()).attr(S),v=(h=gt(f)).formulaInputValue,g=h.captionInputValue,M=h.sliceInputValue,b=h.relateToValue,N=h.positionValue,a.summaryFields||(a.summaryFields=[]),M&&""!==M){if(-1===M.indexOf("(")&&(D=M.replace("=",""),M=D,!i.Igi(D)))return}else M=I;(m=a.summaryFields[d])?(m.formula=i.Iuo(v),m.caption=g||v,m.slice=i.Iuo(""===M?I:M),m.position=N,m.relateTo=b):a.summaryFields.push({formula:i.Iuo(v),caption:g||v,slice:i.Iuo(""===M?I:M),position:N,relateTo:b});try{r.zA({cmd:s.GROUP_OPTIONS,groupOptions:u})}catch(t){r.groupBy(l)}i.ZS()}i.ggi(t,n)})),(0,o.GC$)(".".concat(R)).bind("focus",(function(r){var u=r.target,a=(0,o.GC$)(u).val()||"=";(t=new c.FormulaTextBox(u,M,M)).Ngi=!0,n=new o.Workbook(e,{allowDynamicArray:!0,allowUndo:!1}),i.XMi(n),i.lgi(n),t.workbook(n),t.text(a)})).bind("blur",(function(e){var r=(0,o.GC$)(e.target),u;"="===r.val()&&r.val(""),i.ggi(t,n)})).bind("keydown",(function(e){13===e.keyCode&&(i.ggi(t,n),e.target.blur())})),(0,o.GC$)(".".concat(P)).bind("focus",(function(r){var u=r.target,a=(0,o.GC$)(u).val()||"=";(t=new c.FormulaTextBox(u,M,M)).Ngi=!0,n=new o.Workbook(e,{allowDynamicArray:!0,allowUndo:!1}),i.XMi(n),i.lgi(n),t.workbook(n),t.text(a)})).bind("blur",(function(e){var r=(0,o.GC$)(e.target),u;"="===r.val()&&r.val(""),i.ggi(t,n)})).bind("keydown",(function(e){13===e.keyCode&&(i.ggi(t,n),e.target.blur())})),(0,o.GC$)(".".concat(U)).bind("mouseup",(function(e){var r,u,c,a,l,f,d,h,v,g,M,I=e.target,b=I.className;"gc-table-sheet-summary-remove"===b?(r=i.vMi,u=(0,o.RF)(r.lMi),c=i.jMi,(a=u&&u[c]).summaryFields=[],r.zA({cmd:s.GROUP_OPTIONS,groupOptions:u}),i.ZS()):b===Q?(f=(l=i.GMi).querySelector(".".concat(H)))&&!i.qIi&&(i.qIi=!0,i.XIi(),d=i.Mgi(),f.appendChild(d),i._Ii()):"gc-table-sheet-summary-item-remove-icon"===b&&(v=(h=(0,o.GC$)(e.target)).parent())&&v[0]&&(r=i.vMi,u=(0,o.RF)(r.lMi),c=i.jMi,a=u&&u[c],(M=(g=v.parent()).attr(S))&&a.summaryFields?(a.summaryFields.splice(parseInt(M,10),1),r.zA({cmd:s.GROUP_OPTIONS,groupOptions:u}),i.ZS()):M||(g.remove(),i.ggi(t,n),i.qIi=!1))}))},t.prototype.lgi=function(t){var n=t.getActiveSheet();delete n.Qy().PUt.enter,n.setRowCount(1),n.setColumnCount(1)},t.prototype.ggi=function(t,n){t&&t.destroy&&t.destroy(),n&&n.destroy&&n.destroy()},t.prototype.Igi=function(t){var n,i=this.vMi.getDataView(),e=i&&i.getColumnInfos(!0).map((function(t){return t.value}));return!!(e&&e.indexOf(t)>-1)},t.prototype.XMi=function(t){var n,i,o,r,u,c=this.vMi,a=c.getDataView(),s=a&&a.getColumnInfos(!0,!0);if(s)for(this.Dgi&&(n=this.Dgi.map((function(t){return{value:t.attribute}})),s=s.concat(n)),i=0,o=s;i<o.length;i++)(u=(r=o[i]).value)&&"string"==typeof u&&-1===u.indexOf("=")&&r.cross===I&&t.zwt(t.hyt,u,"=A1",0,0,!0,(0,e.getSR)().GroupPanelDropDownCalcField+" "+u)},t.prototype.XIi=function(){(0,o.GC$)(".".concat(H)).unbind("change"),(0,o.GC$)(".".concat(R)).unbind("focus"),(0,o.GC$)(".".concat(R)).unbind("blur"),(0,o.GC$)(".".concat(R)).unbind("keydown"),(0,o.GC$)(".".concat(P)).unbind("focus"),(0,o.GC$)(".".concat(P)).unbind("blur"),(0,o.GC$)(".".concat(P)).unbind("keydown"),(0,o.GC$)(".".concat(U)).unbind("mouseup")},t.prototype.sgi=function(t){var n=this,i=n.igi,e=(0,o.GC$)(t.target).parent(),r=e.attr(z);i.style.display="inline",i.value=r,i.style.left="",i.style.width="",e.append(i),i.focus()},t.prototype.ngi=function(t){var n=this,i=n.vMi,e=(0,o.RF)(i.lMi),r=e[t],u=r&&r.field;(e=e.filter((function(t){return t.field!==u}))).length?i.zA({cmd:s.GROUP_OPTIONS,groupOptions:e}):i.zA({cmd:s.GROUP_OPTIONS,groupOptions:[]}),n.ZS()},t.prototype.rno=function(t){var n=this.vMi,i=n.lMi[t];n.ki(o.Events.TableSheetGroupFieldSetting,{groupOption:i})},t.prototype.SWt=function(){var t=this,n=t.xMi;(0,o.GC$)(".".concat(T),n).unbind("click"),(0,o.GC$)(".".concat(T),n).unbind("mousedown"),(0,o.GC$)(".".concat(x)).unbind("dblclick"),(0,o.GC$)(".".concat(A)).unbind("blur"),(0,o.GC$)(".".concat(A)).unbind("keydown"),(0,o.GC$)(".".concat(Q)).unbind("click"),document.removeEventListener("mouseup",t.rgi,!0),document.removeEventListener("mousemove",t.cgi,!0)},t.prototype.agi=function(t){var n,i,r,u,c,a,l,f,d,h=this,v=t.value;v&&(i=(n=(0,o.GC$)(t).parent()).attr(L),r=n.attr(z),u=n.attr(k),c=n.attr(E),a=n.attr(p),l=n.attr(S),f=h.vMi,d=(0,o.RF)(f.lMi),i||r?v!==r&&d&&(d[a].caption=(0,e.hze)(v),f.zA({cmd:s.GROUP_OPTIONS,groupOptions:d})):(u||c)&&v!==u&&d&&(d[a].summaryFields[l].caption=v,f.zA({cmd:s.GROUP_OPTIONS,groupOptions:d})),h.ZS())},t.prototype.$Ii=function(t,n){var i=t.field,o=(0,e.tIi)(t.caption)||i,r=n===this.jMi?" selected":"";return'<li class="'.concat(T).concat(r,"\" role='option' aria-label='").concat(o,"' ").concat(""===r?"":'aria-selected="true"'," ").concat(z,'="').concat(d(o),'" ').concat(L,'="').concat(i,'" ').concat(p,"=").concat(n,'>\n <span class="').concat(Z,'">').concat(d(o),'</span>\n <span role="button" aria-label="').concat((0,e.getSR)().GroupPanelItemRemove,'" class="').concat(j,'" title="').concat((0,e.getSR)().GroupPanelItemRemove,'"></span>\n ').concat(ht(this.options.showGroupSetting,'<span role="button" aria-label="'.concat((0,e.getSR)().GroupPanelSetting,'" class="').concat(st,'"></span>')),'\n </li>\n <input class="').concat(A,'" display="none" aria-label=\'').concat((0,e.getSR)().GroupPanelGroupName,"'></input>")},t.prototype.zIi=function(t,n){for(;t;){if(t===n)return!0;t=t.parentElement}return!1},t.prototype.BIi=function(t,n){var i=this,e=i.vMi,o=e.getDataView(),r=t||o.ILt,u=o.aPt,c=null!=n?n:o.LEt;e.zA({cmd:s.RESET_NEW_VIEW,newConfig:{columnInfoOptions:r,includeDefaultColumns:u,options:c}}),i.ZS()},t.prototype.Cno=function(t){var n,i,e,r,u,c,a,s,l,d={};for(n=0;n<t.ILt.length;n++)!((i=t.ILt[n]).style instanceof o.Style)&&i.style&&i.style.cellType&&i.style.cellType instanceof f&&(d[n]||(d[n]={}),d[n].style=i.style,i.style=new o.Style(i.style)),!(i.headerStyle instanceof o.Style)&&i.headerStyle&&i.headerStyle.cellType&&i.headerStyle.cellType instanceof f&&(d[n]||(d[n]={}),d[n].headerStyle=i.headerStyle,i.headerStyle=new o.Style(i.headerStyle));for(n in e=h(t.ILt),d)if(d.hasOwnProperty(n)){if((r=d[n]).style){if((u=e[n])&&u.style){for(a in c={},r.style)r.style.hasOwnProperty(a)&&(c[a]=u.style[a]);u.style=c}t.ILt[n]&&(t.ILt[n].style=r.style)}if(r.headerStyle){if((s=e[n])&&s.headerStyle){for(a in l={},r.headerStyle)r.headerStyle.hasOwnProperty(a)&&(l[a]=s.headerStyle[a]);s.headerStyle=l}t.ILt[n]&&(t.ILt[n].headerStyle=r.headerStyle)}}return e},t.prototype.dgi=function(t,n){var i,e,r,u,c,a,s,l,f,d,h,v=this,g=v.vMi,M=g.getDataView(),N=v.Cno(M),D=null!=n?n:(0,o.RF)(M.LEt),m=v.cIi,w=D&&D.cross||{};for(t&&N.push(m[m.length-1]),i=0,e=0;i<N.length;i++)r=void 0,b(N[i].cross)||(r=m[e],e++),r&&((u=r.cross.attributes)&&(r.cross.attributes=u.filter((function(t){return t}))),c=r.cross.hgi,a=r.cross.Zc,s=r.cross.Tgi,l=r.cross.bgi,f=Lt(r),s?(delete f.cross.Tgi,delete r.cross.Tgi,a?(w[a]||(v.Agi(c),f.cross.vgi=f.vgi,w[a]=f.cross),f.cross=a,r.cross=a):c&&w[c]&&(r.cross=f.cross=w[c])):l&&(v.Agi(c),(d=w[a])?(r.vgi=d.vgi,r.cross=a,f.cross=a):(delete r.cross.jgi,delete f.cross.jgi,delete r.cross.Zc,delete f.cross.Zc)),r.cross.jgi!==I&&(h=r.cross.jgi,delete r.cross.jgi,delete f.cross.jgi,w[h]=r.cross,f.cross=h,r.cross=h),delete f.cross.hgi,delete f.cross.Tgi,delete f.cross.bgi,delete f.cross.jgi,delete r.cross.hgi,delete r.cross.Tgi,delete r.cross.bgi,delete r.cross.jgi,delete f.vgi,N[i]=f);Object.keys(w).length>0&&(D.cross=w),v.BIi(N,D),v.options.crossAreaVisible||(v.cIi=I,v.oIi=I,v.NIi=void 0,v.mIi=void 0)},t.prototype.Agi=function(t){var n,i,e,o=this,r=o.vMi.getDataView().LEt,u=r&&r.cross||{},c=o.cIi;if(t&&u[t]){for(n=0,i=0;i<c.length&&((e=c[i]).cross.hgi!==t&&e.cross!==t||!(++n>=2));i++);n<2&&delete u[t]}},t.prototype.CIi=function(t){var n,i,e,o,r,u,c=this,a=c.uIi;if(a&&c.zIi(t.target,c.zgi())){if(!c.oIi)return;if(!c.mLt(a))return;(n=c.cIi&&0===c.cIi.length)&&(c.cIi=c.lIi()),i=c.cIi,e={value:a,cross:{over:c.oIi}},i&&i.length?i.push(e):c.cIi=[e],c.NIi=c.cIi.length-1,c.IIi(),r=(o=c.cIi[c.NIi])&&o.cross,c.Cgi(r,o.value)&&(c.dgi(!0),(u=c.Tp()).t4(c.CMi.length-1,0))}},t.prototype.wgi=function(t){var n,i,e,o=this,r=o.YMi,u="";if(r&&r[t])for(i=(n=r[t].level)-1,u=r[t].name,t--;i>=0&&t>=0;)(e=r[t])&&e.level===i&&(i--,u=e.name+"."+u),t--;return u},t.prototype.FIi=function(t){var n=t?"":" "+ut;return'<div class="'.concat(y," ").concat(C," ").concat(X).concat(n,'">\n ').concat(this.ygi(),"\n </div>")},t.prototype.ygi=function(){return'<span class="gc-table-sheet-group-header">'.concat((0,e.getSR)().CrossColumnCrossHeader,'</span>\n <div class="').concat(K,'">').concat(this.mgi(),"</div>")},t.prototype.IIi=function(){if(this.ZMi){this.Lgi();var t=this.mgi();t&&(this.ZMi.innerHTML=t),this.OMi=this.ZMi.querySelector(".".concat($)),this.xgi()}},t.prototype.mgi=function(){var t,n,i,o,r,u,c,a,s,l,f,d,h,v,g,M,b,N,D,m,w,C,y=this,x="",A=y.oIi,T=y.vMi.getDataView(),j=T&&T.LEt||{};if((void 0!==y.NIi&&y.cIi&&y.cIi.length||A)&&(i=y.cIi&&y.cIi[y.NIi]||{value:"",cross:{over:A}})){if(o=y.gIi(i.cross),c=(u=!pt(r=i.value))?"":"disabled aria-disabled='true'",n=T.isLookupRelationField(o.over))if(t=i.vgi,o.attributes){if(!t)for(t=i.vgi=y.Sgi(o.over).map((function(t){var n=Dt(o.attributes,(function(n){return mt(n)===mt(t)})),i=n>-1;return{attribute:i?o.attributes[n]:t,checked:i}})),a=function(n){var i,e=o.attributes[n],r=Dt(t,(function(t){return mt(t.attribute)===mt(e)})),u=function(n){var i,e=o.attributes[n],u=Dt(t,(function(t){return mt(t.attribute)===mt(e)}));r<u&&(i=t[u],t.splice(u,1),t.splice(r,0,i),r+=1)};for(i=n-1;i>=0;i--)u(i)},s=o.attributes.length-1;s>=0;s--)a(s)}else o.attributes=y.Sgi(o.over),t=i.vgi=o.attributes.map((function(t){return{attribute:t,checked:!0}}));else t=T.getLookup(o.over).map((function(t){return t instanceof Date&&(t=t.toString()),{attribute:t}}));for(l="",f=n?"":" "+ut,d=n?"":" "+ut,y.Dgi=t||[],y.mIi===I&&(y.mIi=0),s=0;s<t.length&&r;s++)v=(h=t[s]).checked,M=g=h.attribute,b="",g!==I&&("object"==typeof g&&(M=g.value,b=g.formatter),N=n&&s===this.mIi?" selected":"",l+='<li class="'.concat(n?tt+N:"gc-table-sheet-cross-column-static-list-item",'" attribute-value="').concat(M,'" attribute-index=').concat(s," >\n <input aria-label='").concat(M,"' name=\"").concat(M,'" class="').concat(nt," ").concat(f,'" input-type="attributes" type="checkbox" value="" ').concat(v?"checked":"",' />\n <span class="gc-table-sheet-cross-column-item-label">').concat(M,"</span>\n <span role='button' class=\"").concat(it," ").concat(f,'" title="').concat((0,e.getSR)().CrossColumnDetailFormatter,'"></span>\n <span class="').concat(_,' gc-table-sheet-cross-column-attributes-formatter gc-table-sheet-hidden">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailFormatter,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailFormatter,"' class=\"").concat(Y,'" input-type="attributes.formatter" spellcheck="false" value="').concat(b,'"></input>\n </span>\n </li>'));if(D="<option></option>",m=T.LEt&&T.LEt.cross)for(w in m)m.hasOwnProperty(w)&&m[w].over===o.over&&(C=w===o.Zc?'selected="selected"':"",D+="<option value=".concat(w," ").concat(C,">").concat(w,"</option>"));x='<div class="gc-table-sheet-cross-column-detail-content">\n <div class="'.concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailName,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailName,'\' class="gc-table-sheet-cross-item-input-name" input-type="name" spellcheck="false" tabIndex="-1" value=\'').concat(o.Zc||"","' ").concat(c,"></input>\n <select aria-label='").concat((0,e.getSR)().CrossColumnDetailName,'\' class="gc-table-sheet-cross-item-select-name" input-type="name-select" ').concat(c,">\n ").concat(D,'\n </select>\n </div>\n <div class="').concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailValue,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailValue,"' class=\"").concat(q," ").concat(rt,'" input-type="value" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" placeholder="').concat((0,e.getSR)().CrossColumnDetailValuePlaceHolder,"\" value='").concat(r,'\'></input>\n </div>\n <div class="gc-table-sheet-summary-item-formula">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailOver,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailOver,"' class=\"").concat(q," ").concat(rt,'" input-type="over" spellcheck="false" tabIndex="-1" readonly="readonly" maxlength="0" value=\'').concat(o.over,"'></input>\n \x3c!--input class=\"").concat(R,'" input-type="over" spellcheck="false" tabIndex="-1" value=\'').concat(o.over||"","'></input--\x3e\n </div>\n <div class=\"").concat(_,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailCaption,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailCaption,"' class=\"").concat(rt,'" input-type="header" spellcheck="false" tabIndex="-1" value=\'').concat(o.caption||"","' ").concat(c,'></input>\n </div>\n <div class="').concat(_,' gc-table-sheet-cross-column-value-caption">\n <span class="').concat(B,"\"></span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailValueHeader,'\' name="showCrossValueHeader" class="').concat(nt,' gc-table-sheet-cross-column-show-value-header" input-type="showCrossValueHeader" type="checkbox" value="" ').concat(j.showCrossValueHeader?"checked":""," ").concat(c,' />\n <span class="').concat(B,' gc-table-sheet-cross-column-value-caption-label">').concat((0,e.getSR)().CrossColumnDetailValueHeader,'</span>\n </div>\n <div class="').concat(_).concat(d,'">\n <span class="').concat(B,'">').concat((0,e.getSR)().CrossColumnDetailFilter,"</span>\n <input aria-label='").concat((0,e.getSR)().CrossColumnDetailFilter,"' class=\"").concat(rt,'" input-type="filter" spellcheck="false" tabIndex="-1" value=\'').concat(n?y.Nuo(o.filter||""):"","' ").concat(c,'></input>\n </div>\n <div class="gc-table-sheet-cross-column-attributes-list-container">\n <span class="').concat(B,'">').concat(n?(0,e.getSR)().CrossColumnDetailAttributes:(0,e.getSR)().CrossColumnDetailList,'</span>\n <ul class="').concat($,'">\n ').concat(l,"\n </ul>\n </div>\n </div>")}return x},t.prototype.zgi=function(){return this.ZMi&&this.ZMi.querySelector(".".concat(q))},t.prototype.WIi=function(t,n,i){var o,r,u,c,a,s=this,l=(null===(o=null==i?void 0:i.getColumnInfos)||void 0===o?void 0:o.call(i,!0,!0))||[];for(c=0;c<n.length;c++)0===(a=n[c]).level&&(a.name===t?r=c+1:b(r)||(u=c));return n.slice(r,u).map((function(t){var n=b(t.cross)&&(i.isLookupField(t.name)||i.isLookupField(t.fieldString)),o=l.find((function(n){return n.value===t.fieldString})),r=o?Nt(Nt({},o),{value:t.name}):{value:t.name},u=b(null==o?void 0:o.caption)||o.caption===t.fieldString||o.caption===t.name?I:(0,e.tIi)(o.caption),c=t.isLeafNode?s.$t(r):u||t.name;return{value:c,nIi:t.fieldString,textIndent:t.level,checkStatus:!1,yBt:n,needCheckBox:!0,isRelationship:!0,isViewColumnOption:!0}}))},t.prototype.WMi=function(){var t=this,n=t.vMi,i=n.getDataView(),e=i&&i.gLt,o=function(t,n,i,e,r){var u,c,a,s,l,f;if(t&&t.Pq){for(u=[],c=0,a=t.Pq;c<a.length;c++)(s=a[c]).targetTable?u.push(s):i.push({level:n,name:s.name,isLeafNode:!0,field:s,hostTable:t,index:i.length,fieldString:r.concat(s.name).join(".")});for(e.push(t.name),l=0,f=u;l<f.length;l++)(s=f[l]).targetTable&&-1===e.indexOf(s.targetTable.name)&&(i.push({level:n,name:s.name,fieldString:r.concat(s.name).join(".")}),r.push(s.name),o(s.targetTable,n+1,i,e,r),r.pop())}return i};return o(e,0,[],[],[])},t.prototype.xgi=function(){var t,n,i,e=this,r=e.pMi,u=function(t){var n,i,r,u,c,a,s,l,f,d,h,v,g,M=(0,o.GC$)(t.target),N=e.NIi,D=e.cIi,m=D[N],w=m&&m.cross,C=M.attr("input-type"),y=M.val().trim(),x=!1;if(w){switch(i=e.vMi.getDataView(),r=null!==(n=(0,o.RF)(i.LEt))&&void 0!==n?n:{},"string"==typeof w&&(u=w,(w=Lt(e.gIi(w))).jgi=u,m.cross=w,m.vgi=w.vgi),C){case"name":""===y||(c=i.LEt.cross)&&c.hasOwnProperty(y)?w.bgi=!0:w.Tgi=!0,w.hgi=w.Zc,w.Zc=e.kgi(w,y),x=!0;break;case"name-select":w.hgi=w.Zc,w.Zc=y,w.bgi=!0,x=!0;break;case"over":w.over=y,e.Ugi(y);break;case"header":w.caption=pt(y)?I:y;break;case"filter":w.filter=e.Iuo(y);break;case"showCrossValueHeader":r.showCrossValueHeader=!r.showCrossValueHeader;break;case"attributes":if(a=[],s=m.vgi,M.parent().parent()[0].querySelectorAll("li").forEach((function(t,n){var i,e,r=t.querySelector(".".concat(nt));s[n].checked=r.checked,r.checked&&(i=(0,o.GC$)(r).attr("name"),e=(0,o.GC$)(t.querySelector('[input-type="attributes.formatter"]')).val(),b(e)||""===e?a.push(i):a.push({value:i,formatter:e}))})),0===a.length)return void M.prop("checked",!0);w.attributes=a;break;case"attributes.formatter":for(l=m.vgi,f=M.parent().parent().attr("attribute-value"),d=function(t){return Dt(l,(function(n){var i=n.attribute;return t===("string"==typeof i?i:i.value)}))},h=0;h<w.attributes.length;h++)(v=w.attributes[h])!==f&&v.value!==f||("string"==typeof v?(g=d(v),l[g].attribute=w.attributes[h]={value:v,formatter:y}):(g=d(v.value),w.attributes[h].formatter=y,l[g].attribute=w.attributes[h]))}e.Cgi(w,m.value)&&e.dgi(!1,r),x&&e.IIi()}},a=function(t){var n=t.target,i=t.target.classList;i.contains(tt)||(n=n.parentElement),i.contains(it)&&e.Zgi(n)},s=function(t){var n=t.target,r=(0,o.GC$)(t.target),u=r.attr(lt),c=t.target.classList;c.contains(tt)||(n=n.parentElement,u=r.parent().attr(lt)),!b(u)&&n.classList.contains(tt)&&(i=e.LMi.getBoundingClientRect(),e.Ogi=n,e.Egi=n,e.mIi!==+u&&(e.mIi=+u,e.Ggi(n)))},l=function(t){var n,o,r,u,c,a,s=e.mIi,l=e.Ogi;!b(s)&&l&&(n=l.getAttribute("attribute-value"),e.AIi(t,n,i,e.LMi),e.Ti.style.cursor="move",u=!1,(r=(o=t.target).parentElement)&&r.className.indexOf(tt)>-1?(o=r,u=!0):o.className.indexOf(tt)>-1&&(u=!0),c=e.Egi,u&&c!==o&&((a=o.getAttribute(lt))<s?(c.className=c.className.replace(W,"").replace(V,"").trim(),o.className=o.className+" ".concat(W)):a>s?(c.className=c.className.replace(W,"").replace(V,"").trim(),o.className=o.className+" ".concat(V)):c.className=c.className.replace(W,"").replace(V,"").trim(),e.Egi=o))},f=function(t){var n,i,r,u,c=e.cIi,a=c&&c[e.NIi],s=a&&a.cross,l=e.mIi,f=t.target,d=e.Egi,h=d&&+(0,o.GC$)(d).attr(lt);l!==I&&e.Ogi&&h!==I&&h!==l&&(e.Egi.className=e.Egi.className.replace(W,"").replace(V,"").trim(),e.zIi(f,e.OMi)&&("string"==typeof s&&(n=s,(s=Lt(e.gIi(s))).jgi=n,a.cross=s),i=a.vgi.splice(l,1)[0],a.vgi.splice(h,0,i),e.mIi=+h,r=[],r=a.vgi.filter((function(t){return t.checked})).map((function(t){return t&&t.formatter?{formatter:t.formatter,value:t.attribute}:t.attribute})),s.attributes=r,s.vgi=a.vgi),e.Cgi(s,a.value)&&(e.dgi(),e.IIi())),e.Egi=I,e.Ogi=I,e.Ti.style.cursor="default",(u=e.SIi)&&(u.style.display="none")};e.pgi=u,e.Bgi=a,e.Qgi=s,e.Rgi=l,e.Pgi=f,(0,o.GC$)(".".concat(K)).bind("change",e.pgi),(0,o.GC$)(".".concat($)).bind("click",e.Bgi),(0,o.GC$)(".".concat($)).bind("mousedown",e.Qgi).bind("mousemove",e.Rgi),document.addEventListener("mouseup",e.Pgi),(0,o.GC$)(".".concat(et)).bind("focus",(function(i){var u=i.target,a=(0,o.GC$)(u).val()||"=";(t=new c.FormulaTextBox(u,M,M)).Ngi=!0,n=new o.Workbook(r,{allowDynamicArray:!0,allowUndo:!1}),e.XMi(n),e.lgi(n),t.workbook(n),t.text(a)})).bind("blur",(function(i){var r=(0,o.GC$)(i.target),u;"="===r.val()&&r.val(""),e.ggi(t,n)})).bind("keydown",(function(i){13===i.keyCode&&(e.ggi(t,n),i.target.blur())}))},t.prototype.Lgi=function(){var t=this;t.ZMi&&(t.pgi&&(0,o.GC$)(".".concat(K)).unbind("change"),t.Bgi&&(0,o.GC$)(".".concat($)).unbind("click"),t.Qgi&&(0,o.GC$)(".".concat($)).unbind("mousedown").unbind("mousemove"),t.Pgi&&document.removeEventListener("mouseup",t.Pgi),(0,o.GC$)(".".concat(et)).unbind("focus").unbind("blur").unbind("keydown"))},t.prototype.eIi=function(){return this.vMi.getDataView()},t.prototype.mLt=function(t){var n=this;return n.eIi().mLt(n.oIi,t)},t.prototype.Cgi=function(t,n){var i,e=this.eIi();return t&&t.over&&n&&(e.isLookupListField(t.over)||t.attributes&&t.attributes.length>0)},t.prototype.lIi=function(){return(0,o.RF)(this.eIi().ILt.filter((function(t){return!b(t.cross)})))},t.prototype.gIi=function(t){var n,i,e,o=this;return"string"==typeof t&&(n=t,(i=o.eIi()).LEt.cross&&((e=i.LEt.cross[n]||{}).Zc=n,t=e)),t},t.prototype.kgi=function(t,n){var i,e=this,o=e.eIi(),r=n;return o.LEt.cross&&(i=o.LEt.cross[r])&&i.over!==e.gIi(t).over?r+"1":r},t.prototype.Zgi=function(t){var n,i=t.className,e=t.querySelector(".gc-table-sheet-cross-column-attributes-formatter"),o=t.querySelector(".gc-table-sheet-cross-column-item-edit");i.indexOf(ot)>-1?(t.className=t.className.replace(ot,""),e.className+=" "+ut,o.setAttribute("aria-expanded","false"),o.removeAttribute("aria-controls")):(o.setAttribute("aria-expanded","true"),n=""+Date.now(),o.setAttribute("aria-controls",n),t.className+=" ".concat(ot),e.setAttribute("id",n),e.className=e.className.replace(ut,""),setTimeout((function(){e.querySelector("input").focus()})))},t.prototype.Ggi=function(t){var n,i,e=this,o=e.ZMi,r=o.querySelectorAll(".".concat(tt));for(n in r)r.hasOwnProperty(n)&&((i=r[n]).className=i.className.replace("selected","").trim(),i===t&&(i.className=i.className+" selected"))},t.prototype.Ugi=function(t){var n=this,i=n.Sgi(t);n.cIi[n.NIi].cross.attributes=i,n.mIi=0,n.IIi()},t.prototype.Sgi=function(t){var n,i,e,o,r,u,c,a,s,l,f,d,h=this,v=h.Ygi(t),g=[];if(v&&v.hostTable&&v.field&&(e="",(i=(n=v.hostTable).tBt(v.field.name))&&i.Pq)){for(o=i.Pq,r=h.YMi,u=0;u<r.length;u++)a="",(c=r[u]).hostTable===i&&(a=c.fieldString!==I?c.fieldString:c.fieldString=h.wgi(u)),(s=a&&a.split("."))&&s.length>1&&(e=(s=s.slice(0,s.length-1)).join(".")+".");for(l=0,f=o;l<f.length;l++)(d=f[l]).targetTable||g.push(e+d.name)}return g},t.prototype.Ygi=function(t){if(t){var n,i=this.YMi,e=t.split("."),o=e.length-1,r=e[o];return i.filter((function(t){return t.name===r&&t.level===o}))[0]}},t.prototype.attach=function(t){this.Ti&&t&&(this.vMi=t,t.UMi=this,this.mMi&&this.Hc(t,this.mMi),this.updatePanelLayout())},t.prototype.detach=function(){var t,n=this;n.vMi&&(n.vMi.UMi=M,n.vMi.unbind(g),n.vMi=M,document.removeEventListener("mousemove",n.bIi,!0),document.removeEventListener("mouseup",n.vIi,!0),(0,o.GC$)(".".concat(F)).unbind("click"),n.SWt(),n.XIi(),n.Lgi(),n.tgi(),n.mMi&&(n.mMi.removeEventListener("mousedown",n.DIi,!0),(t=(0,o.GC$)(n.mMi).data("workbook"))&&(this.BMi=null,t.getSheet(0).unbind(g),t.destroy())),n.JMi&&(N.clearTimeout(n.JMi),n.JMi=0),n.cIi=I,n.oIi=I,n.YMi=I,n.Dgi=I,n.uIi=I,n.NIi=I,n.AMi=!0,n.sIi(!1),n.MIi(!0))},t.prototype.destroy=function(){var t,n;this.detach(),t=this.Ti,(0,o.GC$)(t).data(v,M),(n=this.SIi)&&n.parentElement&&(n.parentElement.removeChild(n),this.SIi=void 0),t&&(t.innerHTML=""),this.Ti=M},t.findControl=function(t){var n=t;return"string"==typeof t&&(n=document.getElementById(t)),(0,o.GC$)(n).data(v)},t}(),n.TableSheetPanel=bt},7669:function(t,n,i){var e,o,r,u,c,a=this&&this.mJr||function(){return a=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},a.apply(this,arguments)};function s(t){return t instanceof e.Condition}function l(t,n){return s(t)&&!t.art&&!n.jut().isShowSelectCheck}function f(t){return"="===t.charAt(0)}function d(t){var n,i;return{left:t.indexOf("["),right:t.indexOf("]")}}function h(t){var n=d(t),i=n.left,e=n.right;return i>=0&&i<e}function v(t){return f(t)&&h(t)}function g(t){var n,i;if(v(t=t.trim()))return!0;if(t.indexOf("{{")>=0&&t.indexOf("}}")>=0)for(n=t.split(/{{|}}/),i=0;i<n.length;i++)if(v(n[i].trim()))return!0;return!1}function M(t){var n,i,e,o;if(!f(t))return!1;for(n=!0,i=0;i<t.length;i++)if(e=t.charAt(i),n&&"@"===e){if("."===(o=t.charAt(i+1))||!o.match(/[\[\s\]]/))return!0}else"["===e?n=!1:"]"===e&&(n=!0);return!1}function I(t,n,i,e,o){var r=t;3===o&&(r.zDi(n)||r.vDi(n))&&(e.locked||b(r,i,e,!0))}function b(t,n,i,e){var o,r,u,c,a=t,s=a.cNi;for(o=0;o<s.length;o++)if((r=s[o]).length>0)for(u=0;u<r.length;u++)if((c=r[u])===n){i.locked=e;break}}function N(t,n){var i=t.getDataView();return i&&i.kve(n)}function D(t,n){var i,e=t.getDataView();if(e)return(i=e.kve(n)).isGroup&&c(i._Ft)?e.ife(i._Ft):e.ife(i)}function m(t,n){for(var i=0,e=t.length;i<e;i++)if(n(t[i],i,t))return i;return-1}function w(t,n,i){var o,r,c,a,s,l,f,d,h,v,g,M,I=t.expected(),b=t.conType(),N=i&&i.isDateFieldListFilter;if("string"==typeof I&&(I=I.split(String.fromCharCode(160)).join(" ")),t.art&&b===e.ConditionType.textCondition&&(I=t.urt,u(t.urt)||(b=e.ConditionType.dateCondition,N=!0)),b===e.ConditionType.numberCondition)return[{field:n,operator:(o={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:I,ort:N}];if(b===e.ConditionType.cellValueCondition)return[{field:n,operator:(o={0:"eq",1:"neq",2:"gt",3:"gte",4:"lt",5:"lte"})[t.compareType()],value:I,ort:N}];if(b===e.ConditionType.relationCondition)return r=w(t.item1(),n),o={0:"or",1:"and"},(c=w(t.item2(),n))[0].relation=o[t.compareType()],r.concat(c);if(b===e.ConditionType.textCondition)return[{field:n,operator:(o={0:"eq",1:"neq",2:"startswith",3:"doesnotstartwith",4:"endswith",5:"doesnotendwith",6:"contains",7:"doesnotcontain"})[t.compareType()],value:I,ort:N}];if(b===e.ConditionType.dateCondition)switch(a=t.compareType(),s=void 0,l=void 0,r=void 0,c=void 0,f=I.setHours(0,0,0,0),d=I.setHours(23,59,59,999),a){case 0:return s=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.greaterThanOrEqualsTo,expected:f}),l=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.lessThanOrEqualsTo,expected:d}),r=w(s,n,{isDateFieldListFilter:N}),(c=w(l,n,{isDateFieldListFilter:N}))[0].relation="and",r.concat(c);case 1:return s=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.greaterThan,expected:d}),l=new e.Condition(e.ConditionType.numberCondition,{compareType:e.GeneralComparisonOperators.lessThan,expected:f}),r=w(s,n,{isDateFieldListFilter:N}),(c=w(l,n,{isDateFieldListFilter:N}))[0].relation="or",r.concat(c);case 2:return[{field:n,operator:"lt",value:f,ort:N}];case 3:return[{field:n,operator:"lte",value:d,ort:N}];case 4:return[{field:n,operator:"gt",value:d,ort:N}];case 5:return[{field:n,operator:"gte",value:f,ort:N}];default:return[]}else{if(b===e.ConditionType.top10Condition)return[{field:n,operator:(o={0:"top",1:"bottom"})[t.type()],value:I,isPercent:t.isPercent(),ort:N}];if(b===e.ConditionType.averageCondition)return[{field:n,operator:(o={0:"above",1:"below"})[t.type()],value:I,ort:N}];if(b===e.ConditionType.dateExCondition)return(h=t.expectTypeId())===e.DateExConditionExpectType.dateOccurring||h===e.DateExConditionExpectType.yearToDate?(f=void 0,d=void 0,h===e.DateExConditionExpectType.dateOccurring?(f=(v=t.getExConditionDateScope(I)).from,d=v.to):(f=new Date,d=new Date,f.setMonth(0,1),f.setHours(0,0,0,0),d.setHours(23,59,59,999)),g=new e.Condition(e.ConditionType.dateCondition,{compareType:e.DateCompareType.afterEqualsTo,expected:f}),M=new e.Condition(e.ConditionType.dateCondition,{compareType:e.DateCompareType.beforeEqualsTo,expected:d}),r=w(g,n),(c=w(M,n))[0].relation="and",r.concat(c)):[{field:n,operator:(o={0:"date",1:"year",2:"quarter",3:"month",4:"week",5:"day",6:"yearToDate"})[h],value:I,ort:N}]}return[]}function C(t){var n=t.col,i=t.rowFilter;return!i.Dit(n)&&i.Dit(i.NTi(n))?a(a({},t),{col:i.NTi(n)}):t}Object.defineProperty(n,"__esModule",{value:!0}),n.reuseFilterButtonInfo=n.convertCondition=n.findIndex=n.getColumnName=n.getColumnInfo=n.setInsertedRowCrossStyle=n.hasATWithoutBrackets=n.isFormulaFormatter=n.isSpecificCondition=n.isCondition=void 0,e=i(8333),r=(o=i(7234)).Common.lt,u=r.ht,c=r.q8,n.isCondition=s,n.isSpecificCondition=l,n.isFormulaFormatter=g,n.hasATWithoutBrackets=M,n.setInsertedRowCrossStyle=I,n.getColumnInfo=N,n.getColumnName=D,n.findIndex=m,n.convertCondition=w,n.reuseFilterButtonInfo=C},7848:function(n){n.exports=t.Spread.Sheets.Bindings},7879:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.mJr||function(){return f=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},f.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.cZe=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.aZe=(0,e.GC$)(s("div"));return n.addClass("gc-defined-column-date-time-picker-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.LEt,i=t.aZe;return t.dH=new u.Kze({inputId:"start-day",items:[{value:e.CalendarStartDay[e.CalendarStartDay.monday],text:(0,o.getSR)().columnTypeDateMonday},{value:e.CalendarStartDay[e.CalendarStartDay.tuesday],text:(0,o.getSR)().columnTypeDateTuesday},{value:e.CalendarStartDay[e.CalendarStartDay.wednesday],text:(0,o.getSR)().columnTypeDateWednesday},{value:e.CalendarStartDay[e.CalendarStartDay.thursday],text:(0,o.getSR)().columnTypeDateThursday},{value:e.CalendarStartDay[e.CalendarStartDay.friday],text:(0,o.getSR)().columnTypeDateFriday},{value:e.CalendarStartDay[e.CalendarStartDay.saturday],text:(0,o.getSR)().columnTypeDateSaturday},{value:e.CalendarStartDay[e.CalendarStartDay.sunday],text:(0,o.getSR)().columnTypeDateSunday}],label:{text:(0,o.getSR)().columnTypeDateStartDay},onChange:function(){t.sZe()}}),t.dH.create().appendTo(i),t.dH.setValue(n.startDay||e.CalendarStartDay[e.CalendarStartDay.sunday]),t.lZe=new u.Kze({inputId:"calendar-page",items:[{value:e.CalendarPage[e.CalendarPage.day],text:(0,o.getSR)().columnTypeDateDay},{value:e.CalendarPage[e.CalendarPage.year],text:(0,o.getSR)().columnTypeDateYear},{value:e.CalendarPage[e.CalendarPage.month],text:(0,o.getSR)().columnTypeDateMonth}],label:{text:(0,o.getSR)().columnTypeDateCalendarPage},onChange:function(){t.sZe()}}),t.lZe.create().appendTo(i),t.lZe.setValue(n.calendarPage||e.CalendarPage[e.CalendarPage.day]),t.HG=new r.Rze({label:{text:(0,o.getSR)().columnTypeDateShowTime},onChange:function(){t.sZe()}}),t.HG.create().appendTo(i),t.HG.setValue(!!n.showTime||(0,c.isNullOrUndefined)(n.showTime)),i},t.prototype.veo=function(t){var n,i,e,o,r,u,c,a,s=this;t?((null===(n=s.lZe)||void 0===n?void 0:n.isDisable())||null===(i=s.lZe)||void 0===i||i.resetDisable(),(null===(e=s.HG)||void 0===e?void 0:e.isDisable())||null===(o=s.HG)||void 0===o||o.resetDisable()):((null===(r=s.lZe)||void 0===r?void 0:r.isDisable())&&(null===(u=s.lZe)||void 0===u||u.resetDisable()),(null===(c=s.HG)||void 0===c?void 0:c.isDisable())&&(null===(a=s.HG)||void 0===a||a.resetDisable()))},t.prototype.sZe=function(){var t,n,i;this.LEt.onChange({startDay:null===(t=this.dH)||void 0===t?void 0:t.value,calendarPage:null===(n=this.lZe)||void 0===n?void 0:n.value,showTime:!!(null===(i=this.HG)||void 0===i?void 0:i.value)})},t.prototype.setOptions=function(t){var n=this;n.LEt=f(f({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.aZe.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.aZe=c.keyword_null},t.prototype.L0=function(){var t=this;t.dH&&t.dH.dispose(),t.dH=c.keyword_null,t.lZe&&t.lZe.dispose(),t.lZe=c.keyword_null,t.HG&&t.HG.dispose(),t.HG=c.keyword_null},t}(),n.cZe=l},7929:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b=this&&this.vJr||(D=function(t,n){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},D(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}D(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),N=this&&this.mJr||function(){return N=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},N.apply(this,arguments)},D;Object.defineProperty(n,"__esModule",{value:!0}),n.GroupHideRowFilter=void 0,e=i(7234),o=i(4036),r=i(1376),u=i(8333),c=i(2221),a=i(7669),s=i(9134),l=e.Common.lt,f=l.ht,d=l.q8,h=null,v=void 0,g=-1,M=-2,I=function(t){function n(n,i){var e=t.call(this,n)||this;return e.sTi={},e.MTi={},e.ITi=!1,e.gTi=0,e.act=!1,e.sze=i,e.iIo=[],e}return b(n,t),n.prototype.toJSON=function(){var n,i,e,o,r,u,c,a,s,l=this,d=t.prototype.toJSON.call(this);if(d.sortMap=l.sTi,d.relatedColFilters=l.MTi,d.lastGroup=l.ITi,d.lastGroupCount=l.gTi,d.multiSortOrder=l.iIo,f(l.lTi)||(d.rowFilterStore=l.lTi),d.filterItemMap)for(n=0,i=d.filterItemMap.length;n<i;n++)for(o=0,r=(e=d.filterItemMap[n].conditions).length;o<r;o++)delete(u=e[o]).eAi;if(d.sortMap)for(c in d.sortMap)if(d.sortMap.hasOwnProperty(c))for(s in a=d.sortMap[c])a.hasOwnProperty(s)&&delete a[s].rYt;return d},n.prototype.fromJSON=function(n,i){var e,o,r,u,c,a;f(n)||((c=this).sTi=null!==(e=n.sortMap)&&void 0!==e?e:{},c.MTi=null!==(o=n.relatedColFilters)&&void 0!==o?o:{},c.ITi=null!==(r=n.lastGroup)&&void 0!==r&&r,c.gTi=null!==(u=n.lastGroupCount)&&void 0!==u?u:0,c.iIo=n.multiSortOrder||[],(a=n.rowFilterStore||n.lTi||n.lTi)&&(c.lTi=a),t.prototype.fromJSON.call(this,n,i))},n.prototype.tIo=function(t){return this.sze.THr(t)},n.prototype.nIo=function(t,n){this.sze.$Dr(t,n)},n.prototype.THr=function(t){var n,i,e,o;if(this.sze)return"updateFilterData"===(n=t.type)&&(e=(i=t.data).filteredColumns,o=i.filterItemMap,e||o)?this.sze.THr({filteredColumns:e,filterItemMap:o,type:"setTableSheetFilterInfo"}):void 0},n.prototype.$Dr=function(t,n){var i,e,o,r;this.sze&&"updateFilterData"===(i=t.type)&&(o=(e=t.data).filteredColumns,r=e.filterItemMap,(o||r)&&this.sze.$Dr({filteredColumns:o,filterItemMap:r,type:"setTableSheetFilterInfo"},n))},n.prototype.isFiltered=function(n){var i=this;return arguments.length?t.prototype.isFiltered.call(this,n)||t.prototype.isFiltered.call(this,i.NTi(n)):t.prototype.isFiltered.call(this)},n.prototype.Dit=function(n){return t.prototype.isFiltered.call(this,n)},n.prototype.aze=function(t){var n,i,e,o,r,c,s,l,h=this,v=this.sze,g=h.rrt[t],M=v.getDataView(),I=M.kve(t),b=I.isGroup&&d(I._Ft)?M.ife(I._Ft):M.ife(I);if(g&&g.length>0){if(n=[],(0,a.isCondition)(g[0]))if(g[0].art&&g[0].conType()===u.ConditionType.textCondition)for(r=0;r<g.length;r++)c=g[r].urt,n.push({field:b,value:f(c)?c:c.toISOString()});else for(r=0;r<g.length;r++)s=g[r],l=(0,a.convertCondition)(s,b),0===r?n=l:(l[0].relation="or",n=n.concat(l));else for(i=[],e=[],o=function(t){var o,r,u,c,a,s,l;if(d(g[t].eAi)){if(o=g[t].eAi,i.push(g[t].value),e.push(o),r=g[t+1],o>=(u=f(r)?-1:r.eAi))for(c=!0,a=i.slice().reverse(),(s=n[n.length-1])&&(c=!((l=s.Vce).length===a.length&&l.every((function(t,n){return t===a[n]})))),c&&n.push({field:b,value:g[t].value,Vce:a});e.length>0&&e[e.length-1]>=u;)i.pop(),e.pop()}else n.push({field:b,value:g[t].value})},r=0;r<g.length;r++)o(r);return n}},n.prototype.Mze=function(){var t=this,n=this.sze,i=n.Mf,e=this.rrt,o=i.getDataSource(),r=Object.keys(e).filter((function(t){return!f(e[t])})).reduce((function(n,i){return n.concat(t.aze(Number(i)))}),[]);o.filter(r)},n.prototype.Ize=function(t,n){var i=this.sze,e=i.Mf;e.suspendPaint(),this.Nct(t,n),i.tDe(),e.resumePaint()},n.prototype.filter=function(t,n){var i,e,o,r,u,a,s,l,h=this.sze;if(h&&(e=h.getDataView())){if(o=this.rrt,r=!f(o[t]),h.qNi()&&(u=function(t){var n=o[t];return n&&n.some((function(t){return d(t.eAi)}))})(t))for(a=this.Mct,s=0;s<a.length;s++)if(t!==(l=a[s])&&u(l)){this.yct(l),this.Nct(l,!1);break}this.eIo(t)&&h.qni.addUndoChanges({type:c.TableSheetUndoType.SortMapChanged,oldData:this.Dze()}),h.qni.addUndoChanges({type:c.TableSheetUndoType.FilterColumn,changedData:{col:t,columnName:null===(i=h.fDi(t))||void 0===i?void 0:i.name}}),this.Mze(),this.Ize(t,r)}},n.prototype.unfilter=function(t){var n,i=this.sze;i&&(n=i.getDataView())&&(n.filter(),this.setFilterItemMap(t),this.Mze(),this.Ize(t,!1))},n.prototype.reFilter=function(t){},n.prototype.openFilterDialog=function(t){var n,i,e,r,u,c,l,f,d=this.sze,v=this,g=v.Mf,M=t.col,I=d.getDataView().kve(M);if(this.irt=!1,this.ort=!1,i=((n=d.getDataView())&&n.length()||0)>0,v.Hct(g)&&i){if(e={r:h},o.HideRowFilter.et(v,"beforeOpenFilterDialog",e),e.r)return;r={sortByValue:!1!==I.allowSort,filterByValue:!1!==I.allowFilterByValue,listFilterArea:!1!==I.allowFilterByList,sortByColor:!1,filterByColor:!1},v.filterDialogVisibleInfo(r),u=new s.TableSheetFilterDialog(g.parent.j2(),g,(0,a.reuseFilterButtonInfo)(t),r,v.dialogOptions,d),g.Cut=u,(c=d.qNi())&&(l=g.outlineColumn.Un,g.outlineColumn.Un=function(){return!0},f=u.close,u.close=function(){g.outlineColumn.Un=l,u.close=f,u.close()},u.STi=function(){var t,n=this,i=n.dataSource,e=n.Eat;for(t=0;t<i.length;t++)e[t].checkedStatus=i[t].status}),u.rQ(),c&&u.STi(),u.cze&&u.yut()}},n.prototype.Nct=function(n,i){var e=this;i&&e.DFt(n)?e.MTi[n]=e.NTi(n):f(e.MTi[n])||delete e.MTi[n],t.prototype.Nct.call(this,n,i)},n.prototype.setFilterItemMap=function(t,n){var i=this,e=i.sze.THr({type:"setTableSheetFilterInfo",filterItemMap:i.rrt});i.rrt[t]=n||v,i.sze.$Dr({type:"setTableSheetFilterInfo",filterItemMap:i.rrt},e)},n.prototype.removeFilterItems=function(n,i){var e,o,r=this.sze;r&&(o=(e=r.Mf).getDataSource(),r.nAi&&o?t.prototype.removeFilterItems.call(this,n,i):(this.setFilterItemMap(n),this.Cct(n),r.yno&&o&&o.filter()))},n.prototype.DTi=function(t){var n,i,e,o,r,u,c,a=this,s=a.Mct,l=a.rrt,d=a.hst,v=a.tIo({filteredColumns:a.Mct,filterItemMap:a.rrt,type:"setTableSheetFilterInfo"});for(e=0;e<s.length;e++)n=s[e],(i=(f(a.MTi[n])?n:a.MTi[n])+t)>=0?(s[e]=i,o=l[n],f(o)||(l[n]=h,l[i]=o),d&&(r=d[n],f(r)||(delete d[n],d[i]=r))):(s[e]=-1,l[n]=h,d&&delete d[n]);a.Mct=s.filter((function(t){return-1!==t})),this.nIo({filteredColumns:a.Mct,filterItemMap:a.rrt,type:"setTableSheetFilterInfo"},v),s.some((function(t){return-1===t}))&&((c=(u=a.Mf).NMi).suspendPaint(),c.resumePaint())},n.prototype.getSortState=function(n){var i,e=this;return e.GFt(n)&&(n=e.NTi(n)),e.nrt=e.wot(n),i=t.prototype.getSortState.call(this,n),e.oIo()&&0!==i?0:i},n.prototype.rIo=function(n){var i=this;return i.GFt(n)&&(n=i.NTi(n)),i.nrt=i.wot(n),t.prototype.getSortState.call(this,n)},n.prototype.Gze=function(){var t,n,i,e,o,r=this,u=r.jFt(),c=r.gTi;if(u)if(n=(t=r.dTi())-c,r.gTi=t,r.DTi(n),r.uIo)r.cIo();else for(r.hTi(g,n),i=0;i<r.iIo.length;i++)r.iIo[i]+=n;else if(r.gTi=0,r.DTi(-c),r.uIo)r.cIo();else{for(r.hTi(M,-c),e=[],i=0;i<r.iIo.length;i++)(o=r.iIo[i]-c)>=0&&e.push(o);r.iIo=e,r.TTi()}},n.prototype.aIo=function(){var t,n,i,e,o,r,u,c=this;if(c.oIo()&&0!==(t=c.jFt()?c.sIo():c.lIo()).length&&(n=c.eIi())){for(i=c.tNi(),e=[],o=0;o<t.length;o++)(u=(r=t[o]).rYt||i&&i.dDi(r.index))&&e.push({field:u,ascending:r.ascending,compare:r.compareFunction});e.length>0&&n.sort(e)}},n.prototype.hTi=function(t,n){var i,e,o,r,u,c,a,s,l,f=this,d=f.sTi[t];if(d){for(r in i=f.tIo(f.DIo()),e=t===M?g:t,o={},d)if(d[r]){if((u=+r+n)<0)continue;(c=d[r]).index=u,o[u]=c}if(e===t?f.sTi[t]=o:(f.sTi[e]=o,delete f.sTi[t]),t===g&&(a=f.sTi[M])){for(r in s={},a)a[r]&&((l=a[r]).index+=n,s[+r+n]=l);f.sTi[M]=s}f.nIo(f.DIo(),i)}},n.prototype.TTi=function(){var t,n,i,e=this,o=e.tIo(e.DIo()),r=e.sTi[g];if(r&&Object.keys(r).length>0?e.sTi=((t={})[g]=r,t):e.sTi={},n=e.sTi[g])for(i in e.iIo=e.iIo.filter((function(t){return void 0!==n[t]&&null!==n[t]})),n)n.hasOwnProperty(i)&&+i>=0&&-1===e.iIo.indexOf(+i)&&e.iIo.push(+i);else e.iIo=[];e.nIo(e.DIo(),o)},n.prototype.DNo=function(t,n,i){var e,o=this.tNi(),r=this.fDi(t)||i[t],u=n.rYt||o&&o.tDi(i[t])||o&&o.tDi(r),c=u;return r&&r.DFt&&void 0!==r._Ft&&(e=i[r._Ft]||this.fDi(r._Ft),c=o&&o.tDi(e)||c),{fieldName:u,baseFieldName:c}},n.prototype.fIo=function(){var t,n,i,e,o,r,u,c,a,s,l=this,d=[],h=l.sTi,v=l.HMi();for(t in h)if(+t!==M)for(i in n=h[t])n[i]&&(e=n[i],r=(o=l.DNo(+i,e,v)).fieldName,u=o.baseFieldName,d.push({fieldName:r,baseFieldName:u,ascending:e.ascending,col:+i}));for(c=[],a=0;a<l.iIo.length;a++)for(i=l.iIo[a],s=0;s<d.length;s++)if(d[s].col===i){f(d[s].baseFieldName)||c.push(d[s].baseFieldName);break}l.uIo={entries:d,orderByField:c}},n.prototype.cIo=function(){var t,n,i,e,o,r,u,c,a,s,l,f,d,h,v,g,I,b,D,m,w,C,y,x,A=this,T=A.uIo;if(A.uIo=null,T&&0!==T.entries.length&&(t=A.HMi(),n=A.tNi())){for(i={},e={},o={},r=0;r<t.length;r++)u=t[r],c=n.tDi(u),i[c]=r,u.DFt&&void 0!==u._Ft?(a=t[u._Ft])&&(s=n.tDi(a),e[s]=r):o[c]=r;for(l=function(t,n){return void 0!==e[t]?e[t]:void 0!==i[n]?i[n]:void 0!==o[t]?o[t]:void 0},f={},d={},r=0;r<T.entries.length;r++)void 0!==(v=l((h=T.entries[r]).baseFieldName,h.fieldName))&&(g=n.tDi(t[v]),I={index:v,ascending:h.ascending,rYt:g},f[b=A.ATi(v)]||(f[b]={}),f[b][v]=I,D=v,A.DFt(v)&&null!=(m=A.NTi(v))&&(D=m),d[D]=N(N({},I),{index:D}));for(f[M]=d,A.sTi=f,w=[],r=0;r<T.orderByField.length;r++){for(c=C=T.orderByField[r],y=0;y<T.entries.length;y++)if(T.entries[y].baseFieldName===C){c=T.entries[y].fieldName;break}void 0!==(x=l(C,c))&&w.push(x)}for(r=0;r<T.entries.length;r++)void 0!==(x=l(T.entries[r].baseFieldName,T.entries[r].fieldName))&&-1===w.indexOf(x)&&w.push(x);A.iIo=w}},n.prototype.eIi=function(){return this.Mf.getDataSource()},n.prototype.HMi=function(){return this.Mf.getDataSource().getColumnInfos()},n.prototype.fDi=function(t){return this.Mf.NMi.fDi(t)},n.prototype.Teo=function(){return this.Mf.NMi.Teo()},n.prototype.dTi=function(){return this.HMi().filter((function(t){return t.isGroup})).length},n.prototype.jFt=function(){return this.Mf.NMi.jFt},n.prototype.bTi=function(t){var n=this.fDi(t);return n&&n.OFt},n.prototype.GFt=function(t){var n=this.fDi(t);return n&&n.GFt},n.prototype.DFt=function(t){var n=this.fDi(t);return n&&n.DFt},n.prototype.tNi=function(){return this.Mf.NMi},n.prototype.eIo=function(t){var n,i=this.tNi();return!(!i||!i.groupBy())&&(!!(n=i.dDi(t))&&this.eIi().$Lt(n,{ignoreGroupField:!0,ignoreGroupFormula:!0}))},n.prototype.NTi=function(t,n){var i=this.fDi(t);return i&&(this.Teo()&&!n?t:i._Ft)},n.prototype.Sze=function(t){var n,i,e=this,o=e.ATi(t),r=e.sTi[o],u=e.sTi[M],a=r&&r[t],s=u&&u[t],l=e.tIo(e.DIo());(a||s)&&(n=e.tNi()).qni.addUndoChanges({type:c.TableSheetUndoType.SortMapChanged,oldData:e.Dze()}),r&&r[t]&&delete r[t],u&&u[t]&&delete u[t],-1!==(i=e.iIo.indexOf(t))&&e.iIo.splice(i,1),e.nIo(e.DIo(),l)},n.prototype.wot=function(t){var n=this,i=n.ATi(t),e=n.sTi[i];return e&&e[t]?e[t]:h},n.prototype.ATi=function(t){var n=this,i;return n.jFt()&&(i=n.bTi(t),!f(i))?i:g},n.prototype.xno=function(){var t,n,i,e,o=this,r=o.sTi,u=[];for(t in r)if(+t!==M)for(i in n=r[t])n.hasOwnProperty(i)&&(e=n[i],u.push(e));return u},n.prototype.Gct=function(n){return arguments&&arguments.length>0?this:t.prototype.Gct.call(this)},n.prototype.Dze=function(){var t;return{sortMap:null!==(t=(0,r.RF)(this.sTi))&&void 0!==t?t:{},multiSortOrder:this.iIo.slice()}},n.prototype.Nze=function(t){if(t&&t.sortMap){var n=t;this.sTi=n.sortMap,this.iIo=n.multiSortOrder||[]}else this.sTi=t,this.iIo=[]},n.prototype.qO=function(n,i,e){var o,r,u,c,a,s,l;for(s in t.prototype.qO.call(this,n,i,e),o=this,r=this.sTi,u=o.tIo(o.DIo()),c=function(t){var e,o,u,c,s;if(r.hasOwnProperty(t)){for(u in o=[],e=r[t])e.hasOwnProperty(u)&&(c=e[u]).index>=n&&(s=+u+i,a.GFt(s)?c.index=a.NTi(s,!0):c.index+=i,o.push({col:u,sortInfo:c}));o.forEach((function(t){var n=t.col;delete e[n]})),o.forEach((function(t){var n=t.sortInfo;e[n.index]=n})),0===Object.keys(e).length&&delete r[t]}},a=this,r)c(s);for(l=0;l<this.iIo.length;l++)this.iIo[l]>=n&&(this.iIo[l]+=i);o.nIo(o.DIo(),u)},n.prototype.NP=function(n,i){var e,o,r,u,c,a,s,l,f,d;for(a in t.prototype.NP.call(this,n,i),e=this.sTi,r=(o=this).tIo(o.DIo()),u=function(t){var o,r,u,a,s,l;if(e.hasOwnProperty(t)){for(u in r=[],o=e[t])o.hasOwnProperty(u)&&(s=(a=o[u]).index,l=n+i,s>=n&&s<l?c.DFt(u)?(a.index=c.NTi(u,!0),a.index-=i,r.push({col:u,sortInfo:a})):r.push({col:u}):s>=l&&(a.index-=i,r.push({col:u,sortInfo:a})));r.forEach((function(t){var n=t.col;delete o[n]})),r.forEach((function(t){var n=t.sortInfo;n&&(o[n.index]=n)})),0===Object.keys(o).length&&delete e[t]}},c=this,e)u(a);for(s=n+i,l=[],f=0;f<this.iIo.length;f++)(d=this.iIo[f])>=n&&d<s||(d>=s?l.push(d-i):l.push(d));this.iIo=l,o.nIo(o.DIo(),r)},n.prototype.vno=function(t){this.setFilterItemMap(t)},n.prototype.setSortInfo=function(t){var n,i,e,o=this,r=t.index;o.GFt(r)&&(r=o.NTi(r),t.index=r),i=o.ATi(r),e=o.tIo(o.DIo()),o.jFt()&&o.iIo.length>0&&o.dIo(i),o.sTi[i]=((n={})[r]=t,n),o.iIo=[],delete o.sTi[M],o.vTi(t,i),o.nIo(o.DIo(),e)},n.prototype.vTi=function(t,n){var i=this,e=t.index,o=i.tIo(i.DIo());(n===g||i.DFt(e)||i.GFt(e))&&(i.DFt(e)&&(e=i.NTi(e)),i.sTi[M]||(i.sTi[M]={}),i.sTi[M][e]=N(N({},t),{index:e})),i.nIo(i.DIo(),o)},n.prototype.oIo=function(){var t=this.tNi();return t&&t.options&&!1!==t.options.allowSorts},n.prototype.DIo=function(){return{sortMap:this.sTi,multiSortOrder:this.iIo,type:"setTableSheetSortInfo"}},n.prototype.addToMultiSort=function(t,n){var i,e,o,r,u=this;u.GFt(t)&&(t=u.NTi(t)),i=u.tIo(u.DIo()),0===u.iIo.length&&u.hIo(),e=u.ATi(t),u.sTi[e]||(u.sTi[e]={}),o={index:t,ascending:n},u.sTi[e][t]=o,-1===(r=u.iIo.indexOf(t))&&u.iIo.push(t),u.vTi(o,e),u.nIo(u.DIo(),i)},n.prototype.hIo=function(){var t,n,i,e=this,o=e.sTi;for(t in o)if(+t!==M)for(i in n=o[t])n[i]&&-1===e.iIo.indexOf(+i)&&e.iIo.push(+i)},n.prototype.removeFromMultiSort=function(t){var n,i,e,o,r,u=this;u.GFt(t)&&(t=u.NTi(t)),n=u.tIo(u.DIo()),i=u.ATi(t),(e=u.sTi[i])&&e[t]&&delete e[t],(o=u.sTi[M])&&o[t]&&delete o[t],-1!==(r=u.iIo.indexOf(t))&&u.iIo.splice(r,1),u.nIo(u.DIo(),n)},n.prototype.getMultiSortSequence=function(t){var n,i=this;return i.GFt(t)&&(t=i.NTi(t)),-1===(n=i.iIo.indexOf(t))?0:n+1},n.prototype.getMultiSortCount=function(){return this.iIo.length},n.prototype.isInMultiSort=function(t){var n=this;return n.GFt(t)&&(t=n.NTi(t)),-1!==n.iIo.indexOf(t)},n.prototype.lIo=function(){var t,n,i,e,o=this,r=[];for(t=0;t<o.iIo.length;t++)n=o.iIo[t],i=o.ATi(n),(e=o.sTi[i])&&e[n]&&r.push(e[n]);return r},n.prototype.sIo=function(){var t,n,i,e,o,r,u,c,a,s,l=this,f=l.sTi,d=[],h=[];for(t in f)f.hasOwnProperty(t)&&(n=+t)>=0&&h.push(n);for(h.sort((function(t,n){return t-n})),i=l.iIo.length>0,e=0;e<h.length;e++)if(r=f[o=h[e]],i)for(u=0;u<l.iIo.length;u++)c=l.iIo[u],r&&r[c]&&d.push(r[c]);else for(c in r)r.hasOwnProperty(c)&&d.push(r[c]);if(i)for(e=0;e<l.iIo.length;e++)c=l.iIo[e],(a=l.ATi(c))===g&&(s=f[a])&&s[c]&&d.push(s[c]);else if(s=f[g])for(c in s)s.hasOwnProperty(c)&&d.push(s[c]);return d},n.prototype.vIo=function(){this.iIo=[]},n.prototype.clearAllMultiSorts=function(){var t,n,i,e,o,r=this,u=r.tIo(r.DIo());for(t=0;t<r.iIo.length;t++)n=r.iIo[t],i=r.ATi(n),(e=r.sTi[i])&&e[n]&&delete e[n],(o=r.sTi[M])&&o[n]&&delete o[n];r.iIo=[],delete r.sTi[M],r.nIo(r.DIo(),u)},n.prototype.dIo=function(t){var n,i,e,o,r,u,c,a=this;if(0!==a.iIo.length){for(n=new Set,i={},e=0;e<a.iIo.length;e++)o=a.iIo[e],(r=a.ATi(o))!==t&&(i[r]||(i[r]=!0,n.add(o)));for(e=a.iIo.length-1;e>=0;e--)o=a.iIo[e],(r=a.ATi(o))!==t&&n.has(o)||((u=a.sTi[r])&&u[o]&&delete u[o],(c=a.sTi[M])&&c[o]&&delete c[o],a.iIo.splice(e,1))}},n.prototype.isMultiSortActive=function(){return this.iIo.length>1},n.prototype.BDi=function(){var t,n,i=this.Mf,e=i.getDataSource(),o=i.rowFilter(),r=o&&o.sTi,u={};return r&&(t=-1,(n=function(n){var i,o=r[n];if(!f(o))for(i in u[n]={},o)o.hasOwnProperty(i)&&(t=e.uPt(i),u[n][t]=i)})(g),n(M)),u},n.prototype.RDi=function(t){var n,i,e,o,r,u,c,a,s,l,d,h,v=this.Mf,I=this,b=v.getDataSource(),N=v.rowFilter(),D=N.sTi,m=I.tIo(I.DIo()),w={},C=function(n){var i,e,o,r,u=t[n];for(i in u)u.hasOwnProperty(i)&&(o=+u[e=+i],(r=b.BPt(e))!==o&&(w[o]=r))};for(C(g),C(M),n=[],i=function(t){var i,e,o=D[t];if(!f(o))for(i in w)w.hasOwnProperty(i)&&(e=o[i],f(e)||(n.push({level:t,oldCol:+i,newCol:w[i],sortInfo:e}),delete o[i]))},i(g),i(M),e=0,o=n;e<o.length;e++)r=o[e],u=D[r.level],f(u)||(r.sortInfo.index=r.newCol,u[r.newCol]=r.sortInfo);for(a in c=[],w)w.hasOwnProperty(a)&&-1!==(s=N.iIo.indexOf(+a))&&c.push({arrayIdx:s,newCol:w[a]});for(l=0,d=c;l<d.length;l++)h=d[l],N.iIo[h.arrayIdx]=h.newCol;I.nIo(I.DIo(),m)},n.prototype.nTi=function(t){var n,i,e,o,r,u,a,s,l,d,h,g,M,I,b,D,m,w,C,y,x,A,T,j,p,z,L,S,O,k,E,Z,U,G,B;if(t&&t.length>0){for(i=(n=this).tIo({filteredColumns:n.Mct,filterItemMap:n.rrt,type:"setTableSheetFilterInfo"}),e=[],o=[],r=t.map((function(t){return{oldIndex:t.oldIndex,newIndex:t.newIndex}})),u=0,a=t;u<a.length;u++){for(I in l=(s=a[u]).oldIndex,d=N({},s),o.push(d),(h=n.Mct.indexOf(l))>-1&&e.push([h,s.newIndex]),g=n.rrt[l],f(g)||(d.filterItemMapValue=g,n.rrt[l]=v),M=n.hst&&n.hst[l],!f(M)&&M.length>0&&(d.filteredColumnCacheValue=M,delete n.hst[l]),n.MTi)n.MTi.hasOwnProperty(I)&&(b=n.MTi[I])===l&&(d.relatedColFiltersValue=I,delete n.MTi[I]);if(!f(n.sTi)){for(C in D=n.tIo(n.DIo()),w={},m=n.sTi)m.hasOwnProperty(C)&&(y=m[C],f(y)||f(y[l])||(w[C]=y[l],delete y[l]));d.sortMapValues=w,n.nIo(n.DIo(),D)}}for(x=0,A=o;x<A.length;x++)if(T=(s=A[x]).newIndex,g=s.filterItemMapValue,M=s.filteredColumnCacheValue,j=s.relatedColFiltersValue,w=s.sortMapValues,f(g)||(n.rrt[T]=g),f(M)||(n.hst[T]=M),f(j)||(n.MTi[j]=T),!f(n.sTi)&&!f(w)){for(C in p=n.tIo(n.DIo()),w)w.hasOwnProperty(C)&&(y=n.sTi[C],f(y)||(w[C].index=T,y[T]=w[C]));n.nIo(n.DIo(),p)}for(z=n.tIo(n.DIo()),L=[],S=0,O=t;S<O.length;S++)s=O[S],-1!==(k=n.iIo.indexOf(s.oldIndex))&&L.push({arrayIdx:k,newIndex:s.newIndex});for(E=0,Z=L;E<Z.length;E++)U=Z[E],n.iIo[U.arrayIdx]=U.newIndex;for(n.nIo(n.DIo(),z),G=0;G<e.length;G++)h=(B=e[G])[0],T=B[1],n.Mct[h]=T;this.nIo({filteredColumns:n.Mct,filterItemMap:n.rrt,type:"setTableSheetFilterInfo"},i),this.tNi().qni.addUndoChanges({type:c.TableSheetUndoType.UpdateFilterOnMoved,changedData:r})}},n.prototype.VIi=function(t){var n,i,e=this,o=e.eIi(),r=[],u=e.HMi(),c=[];u.forEach((function(n,i){n.RBt===t&&r.push(o.BPt(i))})),r.forEach((function(t){e.gze(t)})),n=r.length,i=r[r.length-1],n>0&&u.forEach((function(t,e){var r=o.BPt(e);r>i&&c.push({oldIndex:r,newIndex:r-n})})),e.nTi(c)},n.prototype.gze=function(t){var n,i,e,o,r,u,a,s,l,d,h=this,g={index:t,filterItemMap:{oldValue:null===(n=h.rrt)||void 0===n?void 0:n[t]},filteredColumns:{},filteredColumnCache:{oldValue:null===(i=h.hst)||void 0===i?void 0:i[t]},relatedColFilters:[],sortMap:[]};for(r in h.rrt[t]&&(e=h.tIo({filteredColumns:h.Mct,filterItemMap:h.rrt,type:"setTableSheetFilterInfo"}),h.rrt[t]=v,o=h.Mct.indexOf(t),g.filteredColumns={index:o,oldValue:h.Mct[o]},h.Mct.splice(o,1),h.nIo({filteredColumns:h.Mct,filterItemMap:h.rrt,type:"setTableSheetFilterInfo"},e)),h.hst&&h.hst[t]&&delete h.hst[t],h.MTi)h.MTi.hasOwnProperty(r)&&(u=h.MTi[r])===t&&(g.relatedColFilters.push({col:r,value:h.MTi[r]}),delete h.MTi[r]);if(!f(h.sTi)){for(s in e=h.tIo({sortInfo:h.sTi}),a=h.sTi)a.hasOwnProperty(s)&&(l=a[s],f(l)||f(l[t])||(g.sortMap.push({level:Number(s),index:t,value:l[t]}),delete l[t]));h.iIo&&-1!==(d=h.iIo.indexOf(t))&&(g.multiSortOrder=h.iIo.slice(),h.iIo.splice(d,1)),h.nIo({sortInfo:h.sTi},e)}this.tNi().qni.addUndoChanges({type:c.TableSheetUndoType.RemoveCrosRowFilterInfo,changedData:g})},n.prototype.oze=function(t){var n=t.index,i=t.filterItemMap,e=t.filteredColumnCache,o=t.filteredColumns,r=t.relatedColFilters,u=void 0===r?[]:r,c=t.sortMap,a=void 0===c?[]:c,s=this;s.rrt&&(s.rrt[n]=i.oldValue),f(null==o?void 0:o.index)||(s.Mct[o.index]=o.oldValue),s.hst&&(s.hst[n]=e.oldValue),u.forEach((function(t){var n=t.col,i=t.value;s.MTi[n]=i})),a.forEach((function(t){var n=t.level,i=t.index,e=t.value;s.sTi&&s.sTi[n]&&(s.sTi[n][i]=e)})),t.multiSortOrder&&s.iIo&&(s.iIo=t.multiSortOrder.slice())},n.prototype.UIi=function(){var t,n,i=this,e=this,o=e.eIi(),r=e.HMi();this.lTi={},Object.keys(this.rrt).forEach((function(t){var n,e;f(i.rrt[t])||(n=o.uPt(t),e=r[n].value,f(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filterItemMap=i.rrt[t])})),f(this.hst)||Object.keys(this.hst).forEach((function(t){var n=o.uPt(t),e=r[n].value;f(i.lTi[e])&&(i.lTi[e]={}),i.lTi[e].filteredColumnCache=i.hst[t]})),Object.keys(this.MTi).forEach((function(t){var n=o.uPt(t),e=r[n].value;f(i.lTi[e])&&(i.lTi[e]={}),n=o.uPt(i.MTi[t]),i.lTi[e].relatedColFilter=r[n].value})),f(this.sTi)||(t=this.sTi,(n=function(n){var e=t[n];f(e)||Object.keys(e).forEach((function(t){var n=o.uPt(t),u=r[n].value;f(i.lTi[u])&&(i.lTi[u]={}),f(i.lTi[u].sortMap)&&(i.lTi[u].sortMap={}),i.lTi[u].sortMap=e[t]}))})(g),n(M)),0===Object.keys(this.lTi).length&&delete this.lTi},n.prototype.QIi=function(){var t,n,i=this,e=this,o=e.Mf,r=e.eIi(),u=this.lTi,c=e.HMi();f(u)||(t=e.tIo({filteredColumns:e.Mct,filterItemMap:e.rrt,type:"setTableSheetFilterInfo"}),n=e.tIo(e.DIo()),delete e.lTi,this.rrt=[],this.Mct=[],this.hst={},this.MTi={},f(this.sTi)||(f(this.sTi[g])||(this.sTi[g]={}),f(this.sTi[M])||(this.sTi[M]={})),Object.keys(u).forEach((function(t){var n,e,o=u[t],s=(0,a.findIndex)(c,(function(n){return n.value===t}));f(s)||(s=r.BPt(s),f(o.filterItemMap)||(i.rrt[s]=o.filterItemMap,i.Mct.push(s),i.hst[s]=o.filteredColumnCache),f(o.relatedColFilter)||(i.MTi[s]=r.BPt((0,a.findIndex)(c,(function(t){return t.value===o.relatedColFilter})))),f(i.sTi)||f(o.sortMap)||(n=i.sTi,(e=function(t){f(n[t])&&(n[t]={}),o.sortMap.index=s,n[t][s]=o.sortMap})(g),e(M)))})),o.repaint(),e.nIo(e.DIo(),n),this.nIo({filteredColumns:e.Mct,filterItemMap:e.rrt,type:"setTableSheetFilterInfo"},t))},n}(o.HideRowFilter),n.GroupHideRowFilter=I},7973:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.mJr||function(){return f=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},f.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.KZe=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(7324),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.$Ze=(0,e.GC$)(s("div"));return n.addClass("gc-defined-column-modified-fields-container"),t.ZX()},t.prototype.ZX=function(){var t,n,i=this,e=i.LEt,a=i.$Ze,s=(null===(t=e.fields)||void 0===t?void 0:t.split(","))||[];return i.qZe=new r.Rze({label:{text:(0,o.getSR)().columnTypeAllEditableFields},onChange:function(t){var n,e,o,r;t?(i.fields="*",i.Xze(),(null===(n=i.cUe)||void 0===n?void 0:n.isDisable())||null===(e=i.cUe)||void 0===e||e.resetDisable()):(null===(o=i.cUe)||void 0===o?void 0:o.isDisable())&&(null===(r=i.cUe)||void 0===r||r.resetDisable())}}),i.qZe.create().appendTo(a),n=(0,c.isNullOrUndefined)(e.fields)||s.length===i.lUe().length||"*"===e.fields,i.qZe.setValue(n),i.cUe=new u.Jze({label:{text:(0,o.getSR)().GroupPanelFieldsHeader},enableMultiSelected:!0,items:i.lUe(),enable:!i.qZe.value,onChange:function(t){i.fields=t.join(","),t.length===i.lUe().length&&i.qZe.setValue(!0),i.Xze()}}),i.cUe.create().appendTo(a),i.cUe.setValue(s),a},t.prototype.lUe=function(){var t,n,i,e=this,o=e.LEt.getTriggerFields(),r=[];for(t=0,n=o;t<n.length;t++)i=n[t],r.push({value:i});return r},t.prototype.Xze=function(){var t=this;t.LEt.onChange({fields:t.fields})},t.prototype.setOptions=function(t){var n=this;n.LEt=f(f({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.$Ze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.$Ze=c.keyword_null},t.prototype.L0=function(){var t=this;t.qZe&&t.qZe.dispose(),t.qZe=c.keyword_null,t.cUe&&t.cUe.dispose(),t.cUe=c.keyword_null},t}(),n.KZe=l},8026:function(t,n,i){var e,o,r,u,c,a,s,l,f=this&&this.mJr||function(){return f=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},f.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.RZe=void 0,e=i(1376),o=i(6114),r=i(6018),u=i(4900),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.Pq=[],this.BZe=[],this.LEt=t}return t.prototype.create=function(t){var n=this,i=n.QZe=(0,e.GC$)(s("div"));return i.addClass("gc-defined-column-look-up-container"),n.ZX(n.PZe(t)),i},t.prototype.ZX=function(t){var n,i,e,r,a=this,s=a.QZe,l=a.LEt.getLookup()||[],f=new u.Kze({inputId:"lookup-tables",validate:{required:!0},enableSearch:!0,stickItem:{value:c.keyword_undefined,text:(0,o.getSR)().defineColumnNone,iconClass:""},items:l.map((function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}})),label:{text:(0,o.getSR)().columnTypeLookupTables},onChange:function(t){var n=null==t?void 0:t.value,i=function(){a.YZe(a.Pq.slice(2)),a.Pq=a.Pq.slice(0,2),a.ltt().setValue()};if(!n)return a.BZe=[],i(),a.ltt().isDisable()||a.ltt().resetDisable(),void a.WZe();0===a.BZe.length?a.BZe.push(t.lookup):(a.BZe=[t.lookup],i()),l=a.LEt.getLookup(a.HZe()),a.ltt().setOptions({items:l.map((function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}}))}),a.ltt().isDisable()&&a.ltt().resetDisable(),a.WZe()}});if(f.create().appendTo(s),a.Pq.push({fieldSelect:f}),a.VZe(),t&&(f.setValue(null===(n=t[0])||void 0===n?void 0:n.table),t.length>1&&a.ltt().setValue(t[1],t[0])),t&&t.length>2)for(i=2;i<t.length;i++)e=t[i],(r=a.Pq[i]).fieldSelect.setValue(e.table),r.fieldNumber&&a.FZe(r.fieldNumber,t[i-1].isMany,e.index)},t.prototype.VZe=function(t,n){var i,a,l,d=this,h=!!t,v=d.QZe,g=(0,e.GC$)(s("div"));g.appendTo(v),g.addClass("gc-defined-column-look-up-field-container"),(l=new r.AZe({inputId:"lookup-fields-number"+(t?"-"+t:"")+"-"+(d.Pq.length-1),minValue:0,maxValue:Number.MAX_SAFE_INTEGER,allowMinNull:!0,enable:h,visible:!!(null===(i=d.BZe[d.Pq.length-1])||void 0===i?void 0:i.isMany),label:{text:(0,o.getSR)().columnTypeLookupIndexes},onChange:function(t){var n=d.Pq.findIndex((function(t){return t.fieldSelect===a})),i=a.item.lookup,e=t||c.keyword_undefined;i?(i.index=t||c.keyword_undefined,d.BZe[n]?d.BZe[n]=i:d.BZe.push(i)):d.BZe[n]?d.BZe[n].index=e:d.BZe.push({table:c.keyword_null,index:e}),d.WZe()}})).create().appendTo(g),a=new u.Kze({inputId:"lookup-fields"+(t?"-"+t:"")+"-"+d.Pq.length,enable:h,enableSearch:!0,stickItem:{value:c.keyword_undefined,text:(0,o.getSR)().defineColumnNone,iconClass:""},items:h?n.map((function(t){return{lookup:t,value:t.table,text:t.table,iconClass:""}})):[],label:{text:(0,o.getSR)().columnTypeLookupFields},onChange:function(t){var n,i,e=null==t?void 0:t.value,o=d.Pq.findIndex((function(t){return t.fieldSelect===a})),r=function(){var t=o+1;d.BZe=d.BZe.slice(0,t),d.YZe(d.Pq.slice(t)),d.Pq=d.Pq.slice(0,t)},u=null===(n=d.Pq[o].fieldNumber)||void 0===n?void 0:n.value;if(!e)return r(),d.BZe[o]&&(d.BZe[o]=f(f({},d.BZe[o]),{table:c.keyword_null}),u||(d.BZe[o].index=c.keyword_null)),void d.WZe();d.BZe[o]?(d.BZe[o]=t.lookup,d.BZe[o].index=u,r()):d.BZe.push(t.lookup),t.lookup.isTable&&(i=d.LEt.getLookup(d.HZe()))&&i.length>0&&d.VZe(e,i),d.WZe()}}),a.create().appendTo(g),d.Pq.push({fieldSelect:a,fieldNumber:l,lookupFieldContainer:g}),a.setValue()},t.prototype.ltt=function(){var t=this,n=t.Pq[1],i=n.fieldSelect,e=n.fieldNumber;return{setValue:function(n,o){i.setValue(null==n?void 0:n.table),t.FZe(e,null==o?void 0:o.isMany,null==n?void 0:n.index)},resetDisable:function(){i.resetDisable(),e.resetDisable()},isDisable:function(){return i.isDisable()},setOptions:function(n){var o;i.setOptions(n),t.FZe(e,t.BZe[0].isMany,null===(o=t.BZe[1])||void 0===o?void 0:o.index)}}},t.prototype.FZe=function(t,n,i){n?(t.setOptions({visible:!0}),t.setValue(i)):(t.setOptions({visible:!1}),t.setValue())},t.prototype.PZe=function(t){var n,i,e,o=this,r=[],u=t?t.split("."):[],c=function(t,i){var e,c=u[t];Number.isInteger(Number(c))?r[i]=f(f({},r[i]),{index:Number(c)}):(e=o.LEt.getLookup(u.slice(0,t).join(".")),r[i]=f(f(f({},r[i]),{table:c}),e.find((function(t){return t.table===c}))),i++),n=i};for(i=0,e=0;i<u.length;i++)c(i,e),e=n;return r},t.prototype.HZe=function(t){var n,i,e=this,o="";if(t){for(n=0;n<e.BZe.length;n++)(i=e.BZe[n]).index?(o+=".".concat(i.index),i.table&&(o+=".".concat(i.table))):i.table&&(o+=".".concat(i.table));o=o.slice(1)}else o=e.BZe.map((function(t){return t.table})).join(".");return o},t.prototype.WZe=function(){var t=this,n=t.HZe(!0);t.LEt.onChange(n)},t.prototype.validate=function(){var t,n;return null===(n=null===(t=this.Pq[0])||void 0===t?void 0:t.fieldSelect)||void 0===n?void 0:n.validate()},t.prototype.YZe=function(t){var n,i,e,o,r,u,c=function(t){t&&(t.dispose?t.dispose(!0):t.unbind&&t.unbind("click"))};for(n=0,i=t;n<i.length;n++)o=(e=i[n]).fieldSelect,r=e.fieldNumber,u=e.lookupFieldContainer,o&&c(o),r&&c(r),u&&u.remove();return[]},t.prototype.dispose=function(){var t=this;t.YZe(t.Pq),t.Pq=[],t.QZe=c.keyword_null},t}(),n.RZe=l},8033:function(t,n,i){var e,o,r,u,c,a=this&&this.vJr||(s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},s(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),s;Object.defineProperty(n,"__esModule",{value:!0}),n.ueo=void 0,e=i(1376),o=i(8057),r=e.mt,u=r.En,c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return a(n,t),n.prototype.ZX=function(){var t=this,n=(0,e.GC$)(u("div"));return n.addClass("gc-defined-column-barcode-options-container"),t.ieo(n),t.cto(n,"checkDigit"),t.ato(n,"nwRatio",[{text:"3",value:"3"},{text:"2",value:"2"}]),t.oeo(n),n},n}(o.Meo),n.ueo=c},8057:function(t,n,i){var e,o,r,u,c,a,s,l,f;Object.defineProperty(n,"__esModule",{value:!0}),n.Meo=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(6406),c=i(6018),a=i(4900),s=e.mt,l=s.En,f=function(){function t(t){var n=this;n.LEt=t,n.xT=[],n.selectBarcode="data_"+t.option.barcodeType,n.fontOptions=[]}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){},t.prototype.ato=function(t,n,i,e,r){var u=this,c=new a.Kze({inputId:"barcode-"+n,defaultValue:u.LEt.option[u.selectBarcode][n],items:i,enable:e,label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},onChange:function(t){u.LEt.option[u.selectBarcode][n]=t.value,r&&r(t),u.onChange()}});return c.create().appendTo(t),u.xT.push(c),c},t.prototype.rto=function(t,n,i,e){var r=this,c=new u.mZe({inputId:"barcode-"+n,enable:i,defaultValue:r.LEt.option[r.selectBarcode][n],className:"gc-defined-column-barcode-options-input",label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},onBlur:function(t){r.LEt.option[r.selectBarcode][n]=t,e&&e(t),r.onChange()}});return c.create().appendTo(t),r.xT.push(c),c},t.prototype.cto=function(t,n,i,e){var u=this,c=new r.Rze({defaultValue:u.LEt.option[u.selectBarcode][n],label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},enable:i,textDisplay:1,inputId:n,onChange:function(t){u.LEt.option[u.selectBarcode][n]=t,e&&e(t),u.onChange()}});return c.create().appendTo(t),u.xT.push(c),c},t.prototype.teo=function(t,n,i,e,r,u){var a=this,s=new c.AZe({defaultValue:a.LEt.option[a.selectBarcode][n],minValue:i,maxValue:e,enable:r,label:{text:(0,o.getSR)().columnTypeBarcodeLabel[n]},inputId:n,onChange:function(t){a.LEt.option[a.selectBarcode][n]=t,u&&u(t),a.onChange()}});return s.create().appendTo(t),a.xT.push(s),s},t.prototype.neo=function(t){var n=this,i=(0,e.GC$)(l("div"));return i.addClass("gc-defined-column-empty-div"),i.appendTo(t),n.xT.push(i),i},t.prototype.ieo=function(t){var n=this,i=n.fontOptions,e=n.labelPosition;n.cto(t,"showLabel",void 0,(function(t){t?(i.forEach((function(t){t.isDisable()&&t.resetDisable()})),e.isDisable()&&e.resetDisable()):(i.forEach((function(t){t.isDisable()||t.resetDisable()})),e.isDisable()||e.resetDisable())})),e=n.ato(t,"labelPosition",[{text:"top",value:"top"},{text:"bottom",value:"bottom"}],!1)},t.prototype.oeo=function(t){var n=this,i=n.fontOptions;i.push(n.ato(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)),i.push(n.ato(t,"fontStyle",[{text:"normal",value:"normal"},{text:"italic",value:"italic"}],!1)),i.push(n.ato(t,"fontWeight",[{text:"normal",value:"normal"},{text:"bold",value:"bold"}],!1)),i.push(n.ato(t,"fontTextDecoration",[{text:"none",value:"none"},{text:"underline",value:"underline"},{text:"overline",value:"overline"},{text:"line-through",value:"line-through"}],!1)),i.push(n.ato(t,"fontTextAlign",[{text:"center",value:"center"},{text:"left",value:"left"},{text:"right",value:"right"},{text:"group",value:"group"}],!1)),i.push(n.ato(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)),i.forEach((function(t){t.container.addClass("gc-defined-column-field-item-small-container")}))},t.prototype.onChange=function(){var t=this,n=t.LEt.onChange;n&&n(t.LEt.option)},t.prototype.YZe=function(t){var n,i,e;for(n=0,i=t;n<i.length;n++)(e=i[n]).dispose?e.dispose():e.unbind&&e.unbind("click");return[]},t.prototype.dispose=function(){var t=this;t.xT=t.YZe(t.xT)},t}(),n.Meo=f},8301:function(t,n){Object.defineProperty(n,"__esModule",{value:!0}),n.columnTypeNumber=n.defineColumnExisted=n.defineColumnRequired=n.defineColumnNoResults=n.defineColumnAll=n.defineColumnNone=n.defineColumnFormula=n.defineColumnOthers=n.defineColumnDefaultValue=n.defineColumnConfiguration=n.defineColumnFormatting=n.defineColumnType=n.defineColumnCaption=n.defineColumnValue=n.submit=n.cancel=n.defineColumn=n.Exp_InvalidOperationInProtectForTableSheet=n.CrossColumnDetailList=n.CrossColumnDetailAttributes=n.CrossColumnDetailFilter=n.CrossColumnDetailValueHeader=n.CrossColumnDetailCaption=n.CrossColumnDetailOver=n.CrossColumnDetailValuePlaceHolder=n.CrossColumnDetailValue=n.CrossColumnDetailName=n.CrossColumnDetailFormatter=n.CrossColumnCrossHeader=n.StatusBarToolTipRowCount=n.StatusBarRowCount=n.TextColon=n.GroupPanelAddCalculateColumn=n.GroupPanelItemRemoveAll=n.GroupPanelSummaryLabelPositionFooter=n.GroupPanelSummaryLabelPositionHeader=n.GroupPanelSummaryLabelPosition=n.GroupPanelSummaryLabelRelateTo=n.GroupPanelSummaryLabelSlice=n.GroupPanelSummaryLabelCaption=n.GroupPanelSummaryLabelFormula=n.GroupPanelDropDownCalcField=n.GroupPanelItemAddCalculation=n.GroupPanelItemRemove=n.GroupPanelGroupsHeader=n.GroupPanelFieldsHeader=n.GroupPanelTip=n.GroupPanelGroupName=n.GroupPanelSetting=n.EXP_TooManyPinRecords=void 0,n.columnTypeAttachmentLeft=n.columnTypeAttachmentMarginGroup=n.columnTypeCalendarType=n.columnTypeShowEraFirstYear=n.columnTypeCalendar=n.columnTypeDateLocale=n.columnTypeDateType=n.columnTypeDateShowBuiltInDateRange=n.columnTypeDateShowDateRange=n.columnTypeDateShowTime=n.columnTypeDateMonth=n.columnTypeDateYear=n.columnTypeDateDay=n.columnTypeDateCalendarPage=n.columnTypeDateSunday=n.columnTypeDateSaturday=n.columnTypeDateFriday=n.columnTypeDateThursday=n.columnTypeDateWednesday=n.columnTypeDateTuesday=n.columnTypeDateMonday=n.columnTypeDateStartDay=n.columnTypeDateTimePicker=n.columnTypeAllEditableFields=n.columnTypeMask=n.columnTypeFormattingCategory=n.columnTypeLookupIndexes=n.columnTypeLookupFields=n.columnTypeLookupTables=n.columnTypeNumberFormatting=n.columnTypeNumberFormattingSymbol=n.columnTypeNumberFormattingNegativeNumbers=n.columnTypeNumberFormattingThousandSeparator=n.columnTypeNumberFormattingDecimalPlaces=n.columnTypeNumberFormattingSample=n.columnTypeBarcode=n.columnTypeSelect=n.columnTypeAttachment=n.columnTypeModifiedTime=n.columnTypeCreatedTime=n.columnTypeLookup=n.columnTypeURL=n.columnTypeEmail=n.columnTypePhone=n.columnTypePercent=n.columnTypeCurrency=n.columnTypeDate=n.columnTypeCheckbox=n.columnTypeFormula=n.columnTypeText=void 0,n.SortsRemove=n.SortsAdd=n.columnTypeUrlLabel=n.columnTypeComboBoxItemHeight=n.columnTypeComboBoxEditable=n.columnTypeComboBoxEditorValueType=n.columnTypeComboBoxRemove=n.columnTypeComboBoxAdd=n.columnTypeComboBoxValue=n.columnTypeComboBoxText=n.columnTypeComboBoxItemProperties=n.columnTypeComboBoxItems=n.columnTypeComboBoxEditorValueTypes=n.columnTypeBarcodeLabel=n.columnTypeCheckboxTextAlign=n.columnTypeCheckboxAuto=n.columnTypeCheckboxBoxSize=n.columnTypeCheckboxIsThreeState=n.columnTypeCheckboxCaption=n.columnTypeCheckboxOther=n.columnTypeCheckboxAlign=n.columnTypeCheckboxFalse=n.columnTypeCheckboxIndeterminate=n.columnTypeCheckboxTrue=n.columnTypeCheckboxTextGroup=n.columnTypeCheckboxTitle=n.columnTypeAttachmentSizeUnit=n.columnTypeAttachmentIsDownloadEnabled=n.columnTypeAttachmentIsClearEnabled=n.columnTypeAttachmentIsPreviewEnabled=n.columnTypeAttachmentAcceptValueTypes=n.columnTypeAttachmentAccept=n.columnTypeAttachmentMaxSize=n.columnTypeAttachmentBottom=n.columnTypeAttachmentRight=n.columnTypeAttachmentTop=void 0,n.EXP_TooManyPinRecords="Only support less than 10 pin records.",n.GroupPanelSetting="Setting",n.GroupPanelGroupName="Group Name",n.GroupPanelTip="Drag here to set row groups",n.GroupPanelFieldsHeader="Fields",n.GroupPanelGroupsHeader="Groups",n.GroupPanelItemRemove="Remove",n.GroupPanelItemAddCalculation="Add Summary Field",n.GroupPanelDropDownCalcField="Field",n.GroupPanelSummaryLabelFormula="Formula",n.GroupPanelSummaryLabelCaption="Caption",n.GroupPanelSummaryLabelSlice="Slice",n.GroupPanelSummaryLabelRelateTo="Relate to",n.GroupPanelSummaryLabelPosition="Position",n.GroupPanelSummaryLabelPositionHeader="Header",n.GroupPanelSummaryLabelPositionFooter="Footer",n.GroupPanelItemRemoveAll="Remove All",n.GroupPanelAddCalculateColumn="Add Calculated Column",n.TextColon=":",n.StatusBarRowCount="Row Count",n.StatusBarToolTipRowCount="Count of selected rows",n.CrossColumnCrossHeader="Cross",n.CrossColumnDetailFormatter="Formatter",n.CrossColumnDetailName="Name",n.CrossColumnDetailValue="Value",n.CrossColumnDetailValuePlaceHolder="Drag item here to set value",n.CrossColumnDetailOver="Over",n.CrossColumnDetailCaption="Caption",n.CrossColumnDetailValueHeader="Show Cross Value Header",n.CrossColumnDetailFilter="Filter",n.CrossColumnDetailAttributes="Attributes",n.CrossColumnDetailList="List",n.Exp_InvalidOperationInProtectForTableSheet="The range you're trying to change is locked.",n.defineColumn="Define Column",n.cancel="Cancel",n.submit="Submit",n.defineColumnValue="Value",n.defineColumnCaption="Caption",n.defineColumnType="Type",n.defineColumnFormatting="Formatting",n.defineColumnConfiguration="Configuration",n.defineColumnDefaultValue="Default",n.defineColumnOthers="Others",n.defineColumnFormula="Formula",n.defineColumnNone="None",n.defineColumnAll="All",n.defineColumnNoResults="No Results",n.defineColumnRequired="It's required",n.defineColumnExisted="It's existed",n.columnTypeNumber="Number",n.columnTypeText="Text",n.columnTypeFormula="Formula",n.columnTypeCheckbox="Checkbox",n.columnTypeDate="Date",n.columnTypeCurrency="Currency",n.columnTypePercent="Percent",n.columnTypePhone="Phone",n.columnTypeEmail="Email",n.columnTypeURL="URL",n.columnTypeLookup="Lookup",n.columnTypeCreatedTime="CreatedTime",n.columnTypeModifiedTime="ModifiedTime",n.columnTypeAttachment="Attachment",n.columnTypeSelect="Select",n.columnTypeBarcode="Barcode",n.columnTypeNumberFormattingSample="Sample",n.columnTypeNumberFormattingDecimalPlaces="Decimal places",n.columnTypeNumberFormattingThousandSeparator="Use 1000 Separator(,)",n.columnTypeNumberFormattingNegativeNumbers="Negative numbers",n.columnTypeNumberFormattingSymbol="Symbol",n.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"}}},n.columnTypeLookupTables="Select lookup table",n.columnTypeLookupFields="The field to look up",n.columnTypeLookupIndexes="The record number",n.columnTypeFormattingCategory="Category",n.columnTypeMask={pattern:"Pattern",placeholder:"Placeholder",excludeLiteral:"Exclude Literal",excludePlaceholder:"Exclude Placeholder"},n.columnTypeAllEditableFields="All Editable Fields",n.columnTypeDateTimePicker="DateTime Picker",n.columnTypeDateStartDay="StartDay",n.columnTypeDateMonday="Monday",n.columnTypeDateTuesday="Tuesday",n.columnTypeDateWednesday="Wednesday",n.columnTypeDateThursday="Thursday",n.columnTypeDateFriday="Friday",n.columnTypeDateSaturday="Saturday",n.columnTypeDateSunday="Sunday",n.columnTypeDateCalendarPage="CalendarPage",n.columnTypeDateDay="Day",n.columnTypeDateYear="Year",n.columnTypeDateMonth="Month",n.columnTypeDateShowTime="ShowTime",n.columnTypeDateShowDateRange="ShowDateRange",n.columnTypeDateShowBuiltInDateRange="ShowBuiltInDateRange",n.columnTypeDateType="Type",n.columnTypeDateLocale="locale (location)",n.columnTypeCalendar="Calendar type",n.columnTypeShowEraFirstYear="Use Gannen to display 1st year",n.columnTypeCalendarType={western:"Western",JER:"Japanese Emperor Reign"},n.columnTypeAttachmentMarginGroup="Margin",n.columnTypeAttachmentLeft="Left",n.columnTypeAttachmentTop="Top",n.columnTypeAttachmentRight="Right",n.columnTypeAttachmentBottom="Bottom",n.columnTypeAttachmentMaxSize="Size Limit",n.columnTypeAttachmentAccept="File Type",n.columnTypeAttachmentAcceptValueTypes={txt:"txt",all:"all",pdf:"pdf",image:"jpg,png,gif",excel:"docx,xlsx,pptx"},n.columnTypeAttachmentIsPreviewEnabled="Preview",n.columnTypeAttachmentIsClearEnabled="Clear",n.columnTypeAttachmentIsDownloadEnabled="Download",n.columnTypeAttachmentSizeUnit="KB",n.columnTypeCheckboxTitle="CheckBox CellType",n.columnTypeCheckboxTextGroup="Text",n.columnTypeCheckboxTrue="True",n.columnTypeCheckboxIndeterminate="Indeterminate",n.columnTypeCheckboxFalse="False",n.columnTypeCheckboxAlign="Align",n.columnTypeCheckboxOther="Other",n.columnTypeCheckboxCaption="Caption",n.columnTypeCheckboxIsThreeState="IsThreeState",n.columnTypeCheckboxBoxSize="Box Size",n.columnTypeCheckboxAuto="Auto",n.columnTypeCheckboxTextAlign={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},n.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"},n.columnTypeComboBoxEditorValueTypes="EditorValueType",n.columnTypeComboBoxItems="Items",n.columnTypeComboBoxItemProperties="ItemProperties",n.columnTypeComboBoxText="Text",n.columnTypeComboBoxValue="Value",n.columnTypeComboBoxAdd="Add",n.columnTypeComboBoxRemove="Remove",n.columnTypeComboBoxEditorValueType={text:"Text",index:"Index",value:"Value"},n.columnTypeComboBoxEditable="Editable",n.columnTypeComboBoxItemHeight="Items Height",n.columnTypeUrlLabel={linkColor:"Link Color",visitedLinkColor:"Visited Link Color"},n.SortsAdd="Add to multiple sorting",n.SortsRemove="Remove from multiple sorting"},8333:function(n){n.exports=t.Spread.Sheets.ConditionalFormatting},8565:function(t,n,i){var e,o,r,u,c,a,s,l;Object.defineProperty(n,"__esModule",{value:!0}),n.vZe=void 0,e=i(1376),o=i(2648),r=i(6114),u=i(6406),c=i(591),a=e.mt,s=a.En,l=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.ZX()},t.prototype.ZX=function(){var t,n,i=this,o=(0,e.GC$)(s("div"));return o.addClass("gc-defined-column-input-formula-container"),(t=i.DZe=new u.mZe({inputId:"formula",type:"text",validate:i.LEt.validate,placeholder:(0,r.getSR)().defineColumnFormula})).create().appendTo(o),i.jZe(),(n=i.CZe=(0,e.GC$)(s("div"))).addClass("gc-defined-column-fake-ftb-workbook"),n.hide(),n.appendTo(o),o},t.prototype.jZe=function(){var t=this,n={formulaInputTextBox:null,fakeFormulaTextBoxWorkbook:null};t.DZe.bind("focus",(function(){t.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook);var i=t.wZe();n.formulaInputTextBox=i.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook=i.fakeFormulaTextBoxWorkbook})).bind("blur",(function(){var i=t.DZe.value;"="===i&&(i="",t.DZe.setValue("",!1)),t.LEt.onChange(i),t.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook)})).bind("keydown",(function(i){13===i.keyCode&&(t.ggi(n.formulaInputTextBox,n.fakeFormulaTextBoxWorkbook),i.target.blur())}))},t.prototype.TZe=function(){var t;this.DZe.unbind("focus").unbind("blur").unbind("keydown")},t.prototype.wZe=function(){var t,n=this,i=n.DZe,r=i.value||"=",u=new o.FormulaTextBox(i.getInputElement(),c.keyword_null,c.keyword_null);return u.Ngi=!0,t=new e.Workbook(n.CZe.get(0),{allowDynamicArray:!0,allowUndo:!1}),n.XMi(t),n.lgi(t),u.workbook(t),u.text(r),{formulaInputTextBox:u,fakeFormulaTextBoxWorkbook:t}},t.prototype.XMi=function(t){var n,i,e,o=this,u=o.LEt.getColumnFields();for(n=0,i=u;n<i.length;n++)e=i[n],t.zwt(t.hyt,e,"=A1",0,0,!0,(0,r.getSR)().GroupPanelDropDownCalcField+" "+e)},t.prototype.lgi=function(t){var n=t.getActiveSheet();delete n.Qy().PUt.enter,n.setRowCount(1),n.setColumnCount(1)},t.prototype.ggi=function(t,n){t&&t.destroy&&t.destroy(),n&&n.destroy&&n.destroy()},t.prototype.validate=function(){return this.DZe.validate()},t.prototype.setValue=function(t){var n;this.DZe.setValue(t)},t.prototype.dispose=function(){var t=this;t.TZe(),t.DZe.dispose(),t.DZe=c.keyword_null},t}(),n.vZe=l},8680:function(t,n,i){var e,o,r,u,c,a,s;function l(t){return t instanceof Function}Object.defineProperty(n,"__esModule",{value:!0}),e=i(7848),o=i(7234),r=i(7373),u=o.Common.lt.ht,c=null,a=void 0,s=function(){function t(){}return t.prototype.isDataSource=function(t){return r&&r.isView&&r.isView(t)},t.prototype.getDataLength=function(t){return t.visibleLength()},t.prototype.getDataItem=function(t,n,i){if(n<0)return c;var e=a;return i&&((e={})[i]=1),t.getRowData(n,a,e)},t.prototype.addItems=function(t,n,i,e,o){},t.prototype.removeItems=function(t,n,i,e){var o=this.getDataLength(t);e()},t.prototype.undoRemoveItems=function(t,n,i){},t.prototype.getProperties=function(t){var n=this.getDataItem(t,0);return n?Object.keys(n):[]},t.prototype.getValue=function(t,n,i,e,o,r){var a,s,f,d,h=t.kve(o);return h?(s=c,f=t.Nve(e,h),d=!1,u(f)||(d=!0,n&&l(n)&&(f=n(((a={})[i]=f,a))),s=r?r(h,e,f):f),{value:s,hasBinding:d}):{value:c,hasBinding:!0}},t.prototype.setValue=function(t,n,i,e,o,r,u){},t.prototype.allowSetCount=function(){return!0},t.prototype.canAdd=function(){return!0},t.prototype.canInsert=function(){return!1},t.prototype.fromJSON=function(t){return t},t.prototype.toJSON=function(t){return t},t}(),e.X$.dataManagerBindingSource=new s},8966:function(t,n,i){var e,o,r,u,c,a;Object.defineProperty(n,"__esModule",{value:!0}),n.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET=n.REMOVE_FROM_MULTI_SORT=n.ADD_TO_MULTI_SORT=n.REMOVE_CROSS_COLUMN=n.RESET_NEW_VIEW=n.DEFINE_COLUMN_TO_TABLE=n.MODIFY_COLUMN_TO_TABLE=n.REMOVE_COLUMN_TO_TABLE=n.VIEW_MOVE_COLUMN_FOR_PANEL=n.VIEW_MOVE_COLUMN=n.VIEW_Add_COLUMN_INFO=n.VIEW_UPDATE_COLUMN_INFO=n.VIEW_REMOVE_COLUMN_INFO=n.GROUP_OPTIONS=n.EXPAND_GROUP=n.EXPAND_GROUP_ITEM=n.RESET_ROW=n.SAVE_ROW=n.REMOVE_ROW=n.PIN_ROW=n.SAVE_ALL=void 0,e=i(1376),o=i(3889),r="TableSheet",u=function(t){return r+t},n.SAVE_ALL="SaveAll",n.PIN_ROW="PinRow",n.REMOVE_ROW="RemoveRow",n.SAVE_ROW="SaveRow",n.RESET_ROW="ResetRow",n.EXPAND_GROUP_ITEM=u("ExpandGroupItemCommand"),n.EXPAND_GROUP=u("ExpandGroupCommand"),n.GROUP_OPTIONS=u("SetGroupOptions"),n.VIEW_REMOVE_COLUMN_INFO=u("ViewRemoveColumnInfo"),n.VIEW_UPDATE_COLUMN_INFO=u("ViewUpdateColumnInfo"),n.VIEW_Add_COLUMN_INFO=u("ViewAddColumnInfo"),n.VIEW_MOVE_COLUMN=u("ViewMoveColumn"),n.VIEW_MOVE_COLUMN_FOR_PANEL=u("ViewMoveColumnForPanel"),n.REMOVE_COLUMN_TO_TABLE="RemoveColumn",n.MODIFY_COLUMN_TO_TABLE="ModifyColumn",n.DEFINE_COLUMN_TO_TABLE="DefineColumn",n.RESET_NEW_VIEW=u("ResetNewView"),n.REMOVE_CROSS_COLUMN=u("CrossColumnOptions"),n.ADD_TO_MULTI_SORT=u("AddToMultiSort"),n.REMOVE_FROM_MULTI_SORT=u("RemoveFromMultiSort"),n.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET=u("ApplyNamedCellTemplate"),c=e.Commands.zA,a=function(){},e.Commands[n.SAVE_ALL]={canUndo:!1,execute:function(t,n,i){var e,o,r,u=t.Ofe(n.sheetName),c=u.id();for(u.suspendPaint(),e=0,o=c;e<o.length;e++)r=o[e],u.saveRow(r).catch(a);return u.resumePaint(),!0}},e.Commands[n.SAVE_ROW]={canUndo:!1,execute:function(t,n){var i=n.tableSheet,o=n.index;return i.Mf.ki(e.Events.RowOperation,{sheet:i,sheetName:i.name(),actionType:1,row:o}),i.saveRow(o).catch(a),!0}},e.Commands[n.RESET_ROW]={canUndo:!0,execute:function(t,n,i){return n.sheetName=n.tableSheet.name(),c(t,o.ResetRowAction,n,i)}},e.Commands[n.EXPAND_GROUP_ITEM]={canUndo:!0,execute:function(t,n,i){return c(t,o.ExpandGroupItemAction,n,i)}},e.Commands[n.EXPAND_GROUP]={canUndo:!0,execute:function(t,n,i){return c(t,o.ExpandGroupAction,n,i)}},e.Commands[n.PIN_ROW]={canUndo:!0,execute:function(t,n,i){return n.sheetName=n.tableSheet.name(),c(t,o.PinRowAction,n,i)}},e.Commands[n.REMOVE_ROW]={canUndo:!0,execute:function(t,n,i){return c(t,o.RemoveRowAction,n,i)}},e.Commands[n.MODIFY_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,n,i){return c(t,o.ModifyColumnToTableAction,n,i)}},e.Commands[n.REMOVE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,n,i){return c(t,o.RemoveColumnToTableAction,n,i)}},e.Commands[n.DEFINE_COLUMN_TO_TABLE]={canUndo:!0,execute:function(t,n,i){return c(t,o.DefineColumnToTableAction,n,i)}},e.Commands[n.VIEW_UPDATE_COLUMN_INFO]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewUpdateColumnInfoAction,n,i)}},e.Commands[n.VIEW_REMOVE_COLUMN_INFO]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewRemoveColumnInfoAction,n,i)}},e.Commands[n.VIEW_Add_COLUMN_INFO]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewAddColumnInfoAction,n,i)}},e.Commands[n.VIEW_MOVE_COLUMN]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewMoveColumnAction,n,i)}},e.Commands[n.VIEW_MOVE_COLUMN_FOR_PANEL]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewMoveColumnForPanelAction,n,i)}},e.Commands[n.GROUP_OPTIONS]={canUndo:!0,execute:function(t,n,i){return c(t,o.ViewGroupOptionsAction,n,i)}},e.Commands[n.RESET_NEW_VIEW]={canUndo:!0,execute:function(t,n,i){return c(t,o.TableSheetResertViewAction,n,i)}},e.Commands[n.REMOVE_CROSS_COLUMN]={canUndo:!0,execute:function(t,n,i){return c(t,o.TableSheetRemoveColumnInfoAction,n,i)}},e.Commands[n.ADD_TO_MULTI_SORT]={canUndo:!0,execute:function(t,n,i){return c(t,o.AddToMultiSortAction,n,i)}},e.Commands[n.REMOVE_FROM_MULTI_SORT]={canUndo:!0,execute:function(t,n,i){return c(t,o.RemoveFromMultiSortAction,n,i)}},e.Commands[n.APPLY_NAMED_CELL_TEMPLATE_TO_TABLE_SHEET]={canUndo:!0,execute:function(t,n,i){return c(t,o.ApplyNamedCellTemplateToTableSheetAction,n,i)}}},9131:function(n){n.exports=t.Spread.Sheets.Tables},9134:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h,v,g,M,I,b,N,D,m,w,C,y,x,A,T=this&&this.vJr||(j=function(t,n){return j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])},j(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function i(){this.constructor=t}j(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),j;Object.defineProperty(n,"__esModule",{value:!0}),n.TableSheetFilterDialog=void 0,e=i(4036),o=i(1376),r=i(7234),u=i(7669),c=i(8966),a=i(6114),s=r.Common.lt,l=s.ht,f=s.q8,d=Object.keys,h="null",v="undefined",g=null,M=void 0,I=o.mt.En,b=1e5,N=/((\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})/,D="gc-sortASC-tr",m="gc-sortDEC-tr",y="."+(w="gc-table-sheet-sorts-btn-add")+", ."+(C="gc-table-sheet-sorts-btn-remove"),x=["mousedown","mouseup"],A=function(t){function n(n,i,e,o,r,u){var c=t.call(this,n,i,e,o,r)||this;return c.cze=!1,c.vMi=u,c}return T(n,t),n.prototype.nct=function(n,i,e){t.prototype.nct.call(this,n,i,e);var r=n.getActualStyle(-1,0)||new o.Style;r.hAlign=o.HorizontalAlign.right,r.vAlign=o.VerticalAlign.bottom,r.cellPadding="0 1 1 0",n.setStyle(-1,0,r),n.setColumnWidth(0,28)},n.prototype.Bst=function(t,n,i,e,o,r,u){var c,a,s,f,h,v,g,I,N,D,m,w,C,y,x,A=this,T=this.vMi,j=T.Mf,p=this.filterButtonInfo.col,z=T.getDataView(),L=z&&z.gLt,S=function(t){return z.uFt(t)},O=this,k=O.filterButtonInfo.rowFilter;if(k){if(a=0,f=[],h=T.qNi(),(g=(v=z.kve(t)).value||v.name)&&!h){if((s=S(g))?L&&L.rBt(g)&&s.K$!==L.rBt(g)&&z.eRt([g],!0):z.eRt([g]),s=S(g),l(s))return;c=s.K$,(N=null==(I=L.jRt(g))?void 0:I.dataMap)&&"object"==typeof N&&(D=typeof Object.values(N)[0],-1!==["string","number","boolean"].indexOf(D)&&(c=D)),delete s.K$,f=d(s),a=f.length,s.K$=c,O.wTi=O.yTi(z.lFt&&z.lFt.length>0?z.iRt.slice(z.lFt.length):z.iRt)}if(O.Jut=!1,m=j.$go(-1,t),w=j.l0(-1,t===p?t:p,"formatter"),h)return O.Jut=M,void O.mTi(g,t,n,i,e,o,r,u,m,w);if(a>b){for(C=Math.ceil(a/b),O.CTi=[],y=1;y<C;y++)x=void 0,x=y===C-1?{startIndex:b*y,endIndex:a-1}:{startIndex:b*y,endIndex:b*(y+1)-1},O.CTi.push(x);O.Yut(!0),O.zTi(s,f,0,b-1,t,n,i,e,o,r,u,m,w,c),O.Vut(b/a),setTimeout((function(){A.asyncCreateFilterData(s,f,O.CTi,t,n,i,e,o,r,u,m,w,c,a)}),0)}else O.zTi(s,f,0,a-1,t,n,i,e,o,r,u,m,w,c)}},n.prototype.mTi=function(t,n,i,e,o,r,c,a,s,f){var h,v,g,M,I,b,N,D,m,w,C,y,x,A,T,j,p,z,L,S=this.vMi,O=this,k={},E=S.getDataView(),Z=E.gLt._dataSource.options.schema,U=O.filterButtonInfo.rowFilter,G=U.Mct,B=U.isFiltered(n)&&(0,u.isSpecificCondition)(U.rrt[n][0],O),R=0===G.length||U.isFiltered(n)&&1===G.length;if(Z&&Z.columns&&Z.columns[t]&&(h=Z.columns[t].dataType),M=E.iRt,b=(I=E.bFt()).length,R)U.tAi=I;else{for(v=E.Jce||{},N=E.ife(n),g=d(v).filter((function(t){if(t!==N){var n=v[t].options[0],i=n&&void 0!==n.Vce;return i&&(D=t),!i}return!1})),m=0,w=0,C=D,y=0;y<g.length;y++)(m>(x=v[g[y]].count)||0===y)&&(m=x,w=y,C=g[y]);for(p in g.splice(w,1),A=function(t){for(var n=0;n<g.length&&v[g[n]][t];n++);return n===g.length},T=[],j=v[C])A(p)&&(z=+p,Number.isNaN(z)||T.push(z));E.iRt=T,E.yFt(),T=E.iRt,E.iRt=M,I=T,b=T.length,U.tAi=T}for(L=function(i){var e,o,u,d,v,g,b,N=I[i],D=E.getRowData(N,!0,(e={},e[t]=!0,e))[t];l(h)&&!l(D)&&(h=typeof D),u=(o=O.LTi(D,k,n,(function(){return{row:i,isCheckedInCheckList:!B&&M.indexOf(N)>-1,index:N}}),s,f,h)).row,d=o.filterData,v=o.filterText,g=o.type,b=o.isCheckedInCheckList,O.Pst({},r,c,u,n,a,!0,d,v,g,b)},y=0;y<b;y++)L(y)},n.prototype.zTi=function(t,n,i,e,o,r,c,a,s,h,v,g,M,I){var b,N,D,m,w,C,y,x,A,T,j,p,z=this.vMi,L=this,S={},O=L.filterButtonInfo.rowFilter,k=O.Mct,E=O.isFiltered(o)&&(0,u.isSpecificCondition)(O.rrt[o][0],L),Z=0===k.length||O.isFiltered(o)&&1===k.length;for(Z?(y=(m=z.getDataView()).lFt)&&y.length>0&&(D=y.reduce((function(t,n){return t[n]=!0,t}),{})):(m=z.getDataView(),b=m.Jce||{},w=m.kve(o),C=w.isGroup&&f(w._Ft)?m.ife(w._Ft):m.ife(w),N=d(b).filter((function(t){return t!==C}))),x=function(n){var i,e;if(l(D))return!0;for(i=t[n],e=0;e<i.length;e++)if(!D[i[e]])return!0;return!1},A=function(n){var i,e,o=t[n];for(i=0;i<o.length;i++){for(e=0;e<N.length&&b[N[e]][o[i]];e++);if(e===N.length)return!0}return!1},T=function(t,n){return!!t||(Z?x(n):A(n))},j=function(i){var e=n[i],r=e,u=L.LTi(r,S,o,(function(){return L.xTi(t[e],L.wTi)}),g,M,I),c=u.row,l=u.filterData,f=u.filterText,d=u.type,b=u.isCheckedInCheckList;L.Pst(a,s,h,c,o,v,!0,l,f,d,!E&&b,T(b,e))},p=i;p<=e;p++)j(p)},n.prototype.LTi=function(t,n,i,e,o,r,c){var a,s,f,d,M,I,b,D,m,w,C,y,x=this.vMi,A=this,T=x.Mf,j="string";return t!==h&&t!==v||(t=g,j="blank"),t&&"string"!==c&&("number"!==c&&"boolean"!==c||(isNaN(parseFloat(t))||(t=parseFloat(t)),j="number"),"object"!==c&&"date"!==c||t.match(N)&&!isNaN(Date.parse(t))&&(t=new Date(t),A.Jut=!0,j="date"),"string"===j&&(this.cze=!0)),a=t,f=(s=e()).row,d=s.isCheckedInCheckList,M=s.index,I=!1,("string"!=typeof t||r)&&l(f)&&"string"==typeof r&&x.Mf.parent&&(b=void 0,m=!(D=(0,u.isFormulaFormatter)(r))&&(0,u.hasATWithoutBrackets)(r),(D||m)&&(w=x.Mf.parent.xO(r))&&(I=!0,b=w.getExpression()),I&&(D?a=x.getDataView().sPt(b,M):m&&(a=x.getDataView().jfe(b,M,(0,u.getColumnName)(x,i))),l(a)||"object"!=typeof a||(a=l(a._error)?a.toString():a._error))),I||void 0!==(C=o.format(t,r,n,{sheet:T,row:f,col:i,sheetArea:3,quotePrefix:null}))&&a!==C&&(a=C),"boolean"===c&&("TRUE"===(y=String(t).toUpperCase())&&(t=!0,a="TRUE"),"FALSE"===y&&(t=!1,a="FALSE")),a&&"string"==typeof a&&(a=a.replace(/\r\n?/g,"\n")),{row:f,filterData:t,filterText:a,type:j,isCheckedInCheckList:d}},n.prototype.yTi=function(t){var n,i=[];for(n=0;n<t.length;n++)i[t[n]]=n;return i},n.prototype.xTi=function(t,n){var i,e,o;for(o=0;o<t.length;o++)if((e=n[i=t[o]])!==M)return{row:e,isCheckedInCheckList:!0};return{row:n[i=t[0]],isCheckedInCheckList:!1,index:i}},n.prototype.qut=function(){var t,n,i,e,o,r,u,c,a,s,l=this.vMi,f=this,d=f.ast.outlineColumn.getCheckStatus(),h=0,v=f._at||f.Dat,g=f.Eat,I=0;if(f.Bat=1===d[0],"add_current"===f.dataSource[0].key&&(h=1),f.Dat=[],n=l.qNi(),i="add_current"===f.dataSource[0].key,n&&i&&f.Bat)for(f.Bat=!1,e=0;e<g.length;e++)1===(o=g[e]).status&&f.Dat.push({text:o.key,value:o.value,type:o.type});for(e=0;e<g.length&&(t=g[e],i||(t.checkedStatus=d[e]),!(I>=v.length));e++)if(t.key===v[I].text){for(I++,r=t.children,u=M,c=0;c<r.length;c++)a=r[c],s=d[h],!1!==a.show&&(h+=1),u=s||u,3!==s&&(a.status=s);2!==u?(f.Dat.push({text:t.key,value:t.value,type:t.type}),n&&(i?1!==u&&f.Dat.pop():f.Dat[f.Dat.length-1].eAi=r[0].level)):f.lst(e,t)}},n.prototype.asyncCreateFilterData=function(t,n,i,e,o,r,u,c,a,s,l,f,d,h){var v,g,M,I=this,b=this,N=this.vMi,D=N.Mf;if(D.Cut){for(v=new Date,g=new Date;i.length>0&&g-v<=500;)M=i.shift(),b.zTi(t,n,M.startIndex,M.endIndex,e,o,r,u,c,a,s,l,f,d),b.Vut(M.endIndex/h),g=new Date;i.length>0?setTimeout((function(){I.asyncCreateFilterData(t,n,b.CTi,e,o,r,u,c,a,s,l,f,d,h)}),0):(b.Lst(o,r,!1,a,s,c,e),b.sut(),b.Yut(!1))}},n.prototype.Tut=function(){var n,i,e,r,u,c,a,s,l,f,d,h,v;t.prototype.Tut.call(this),i=(n=this).filterButtonInfo.rowFilter,(e=n.vMi||i.Mf&&i.Mf.NMi)&&e.options&&!1!==e.options.allowSorts&&(r=n.filterButtonInfo.col,u=i.isInMultiSort(r),c=i.rIo(r),a=u||0!==c,s=(0,o.GC$)("#"+D)[0],l=(0,o.GC$)("#"+m)[0],s&&s.children[2]&&(f=n.gIo(a&&1===c),(d=s.children[2]).style.width="28px",d.style.textAlign="center",(0,o.GC$)(d).empty().append(f)),l&&l.children[2]&&(h=n.gIo(a&&2===c),(v=l.children[2]).style.width="28px",v.style.textAlign="center",(0,o.GC$)(v).empty().append(h)))},n.prototype.gIo=function(t){var n=I("span"),i=(0,o.GC$)(n);return i.addClass(t?C:w),i.attr("data-action",t?"remove":"add"),i.attr("title",t?(0,a.getSR)().SortsRemove:(0,a.getSR)().SortsAdd),n},n.prototype.aY=function(){var n,i,e,r,u,a,s;if(t.prototype.aY.call(this),(i=(n=this).vMi)&&!1!==i.options.allowSorts)for(e=i.Mf,r=n.filterButtonInfo.col,u=n.Wc[0].querySelectorAll(y),a=function(t){var a=u[t],s=(0,o.GC$)(a.parentElement),l=function(t){t.stopPropagation(),t.stopImmediatePropagation()};s.bind("mousedown",l),s.bind("mouseup",l),(0,o.GC$)(a).bind("mousedown",(function(t){t.stopPropagation(),t.stopImmediatePropagation()})),(0,o.GC$)(a).bind("mouseup",(function(t){var o,u,s;t.stopPropagation(),t.stopImmediatePropagation(),o=a.getAttribute("data-action"),s=(u=a.closest("tr"))&&u.id===D,"add"===o?i.zA({cmd:c.ADD_TO_MULTI_SORT,col:r,ascending:s}):"remove"===o&&i.zA({cmd:c.REMOVE_FROM_MULTI_SORT,col:r}),n.close(),e.zw()}))},s=0;s<u.length;s++)a(s)},n.prototype.af=function(){var n,i,e,r,u;if(t.prototype.af.call(this),i=(n=this).Wc&&n.Wc[0])for(e=i.querySelectorAll(y),r=function(t){var n=e[t];x.forEach((function(t){(0,o.GC$)(n.parentElement).unbind(t),(0,o.GC$)(n).unbind(t)}))},u=0;u<e.length;u++)r(u)},n}(e.iut),n.TableSheetFilterDialog=A},9266:function(t,n,i){var e,o,r,u,c,a,s;Object.defineProperty(n,"__esModule",{value:!0}),n.rZe=void 0,e=i(1376),o=i(6114),r=i(1859),u=null,c=e.mt,a=c.En,s=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t;return this.eZe()},t.prototype.eZe=function(){var t,n,i=this,u=(0,e.GC$)(a("div"));return u.addClass("gc-defined-column-number-formatting-preview-container"),(t=i.HUe=new r.dZe({text:(0,o.getSR)().columnTypeNumberFormattingSample})).create().appendTo(u),(n=i.uZe=(0,e.GC$)(a("div"))).appendTo(u),n.addClass("gc-defined-column-number-formatting-preview-text"),u},t.prototype.setText=function(t){var n;this.uZe.text(t)},t.prototype.dispose=function(){var t=this;t.uZe=u,t.HUe.dispose(),t.HUe=u},t}(),n.rZe=s},9571:function(t,n,i){var e,o,r,u,c,a,s,l,f,d,h=this&&this.mJr||function(){return h=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},h.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.sto=n.CheckBoxTextAlign=void 0,e=i(1376),o=i(6114),r=i(7553),u=i(4900),c=i(6406),a=i(591),s=e.mt,l=s.En,function(t){t[t.top=0]="top",t[t.bottom=1]="bottom",t[t.left=2]="left",t[t.right=3]="right"}(f=n.CheckBoxTextAlign||(n.CheckBoxTextAlign={})),d=function(){function t(t){var n;this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Qze=(0,e.GC$)(l("div"));return n.addClass("gc-defined-column-checkbox-text-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.Qze,i=t.LEt;return t._isThreeState=new r.Rze({label:{text:(0,o.getSR)().columnTypeCheckboxIsThreeState},onChange:function(n){var i,e,o,r;n?(null===(i=t.lto)||void 0===i?void 0:i.isVisible())||null===(e=t.lto)||void 0===e||e.resetVisible():(null===(o=t.lto)||void 0===o?void 0:o.isVisible())&&(null===(r=t.lto)||void 0===r||r.resetVisible()),t.fto()}}),t._isThreeState.create().appendTo(n),t._isThreeState.setValue(i.isThreeState),t.dto=new c.mZe({inputId:"checkboxTrue",label:{text:(0,o.getSR)().columnTypeCheckboxTrue},placeholder:"",onChange:function(n){t.fto()}}),t.dto.create().appendTo(n),t.dto.setValue(i.checkboxTrue),t.lto=new c.mZe({inputId:"checkboxIndeterminate",label:{text:(0,o.getSR)().columnTypeCheckboxIndeterminate},placeholder:"",hide:!i.isThreeState,onChange:function(n){t.fto()}}),t.lto.create().appendTo(n),t.lto.setValue(i.checkboxIndeterminate),t.hto=new c.mZe({inputId:"checkboxFalse",label:{text:(0,o.getSR)().columnTypeCheckboxFalse},placeholder:"",onChange:function(n){t.fto()}}),t.hto.create().appendTo(n),t.hto.setValue(i.checkboxFalse),t.gto=new u.Kze({inputId:"checkboxAlign",items:[{text:(0,o.getSR)().columnTypeCheckboxTextAlign.top,value:f.top},{text:(0,o.getSR)().columnTypeCheckboxTextAlign.bottom,value:f.bottom},{text:(0,o.getSR)().columnTypeCheckboxTextAlign.left,value:f.left},{text:(0,o.getSR)().columnTypeCheckboxTextAlign.right,value:f.right}],label:{text:(0,o.getSR)().columnTypeCheckboxAlign},onChange:function(){t.fto()}}),t.gto.create().appendTo(n),t.gto.setValue(i.checkboxAlign||f.right),n},t.prototype.fto=function(){var t,n,i,e,o,r=this;this.LEt.onChange({isThreeState:null===(t=r._isThreeState)||void 0===t?void 0:t.value,checkboxTrue:null===(n=r.dto)||void 0===n?void 0:n.value,checkboxIndeterminate:null===(i=r.lto)||void 0===i?void 0:i.value,checkboxFalse:null===(e=r.hto)||void 0===e?void 0:e.value,checkboxAlign:null===(o=r.gto)||void 0===o?void 0:o.value})},t.prototype.setOptions=function(t){var n=this;n.LEt=h(h({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Qze.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Qze=a.keyword_null},t.prototype.L0=function(){var t=this;t._isThreeState&&t._isThreeState.dispose(),t._isThreeState=a.keyword_null,t.dto&&t.dto.dispose(),t.dto=a.keyword_null,t.lto&&t.lto.dispose(),t.lto=a.keyword_null,t.hto&&t.hto.dispose(),t.hto=a.keyword_null,t.gto&&t.gto.dispose(),t.gto=a.keyword_null},t}(),n.sto=d},9756:function(t,n,i){var e,o,r,u;Object.defineProperty(n,"__esModule",{value:!0}),n.YUe=void 0,o=(e=i(1376)).mt,r=o.En,u=function(){function t(t){var n;this.itemContainers=[],this.LEt=t}return t.prototype.create=function(){var t=this,n=(0,e.GC$)(r("div"));return n.addClass("gc-defined-column-tab-list-container"),t.GUe().appendTo(n),t.eQe().appendTo(n),t.oQe().appendTo(n),n},t.prototype.GUe=function(){var t,n,i=this,o=i.LEt.items,u=(0,e.GC$)(r("div"));for(u.addClass("gc-defined-column-tab-list-items-container"),u.attr("role","tablist"),t=function(t){var n=o[t],c=(0,e.GC$)(r("div"));i.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-"+n.typeId),c.attr("aria-selected","false"),c.attr("aria-controls","gc-defined-column-tab-panel-"+n.typeId),c.text(n.title),0===t&&(c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected")),c.bind("click",(function(e){var o,r,u,a,s,l;if(!1!==i.itemContainers[t][2]){for(o=0,r=i.itemContainers;o<r.length;o++)a=(u=r[o])[0],s=u[1],a.attr("aria-selected","false"),a.removeClass("gc-defined-column-tab-item-container-selected"),s.removeClass("gc-defined-column-tab-panel-container-selected");c.attr("aria-selected","true"),c.addClass("gc-defined-column-tab-item-container-selected"),(l=i.itemContainers[t][1]).addClass("gc-defined-column-tab-panel-container-selected"),n.onSelect&&n.onSelect(n,e)}})),c.appendTo(u)},n=0;n<o.length;n++)t(n);return u},t.prototype.oQe=function(){var t,n,i,o=this,u=o.LEt.items,c=(0,e.GC$)(r("div"));for(c.addClass("gc-defined-column-tab-panels-container"),t=0;t<u.length;t++)n=u[t],i=(0,e.GC$)(r("div")),o.itemContainers[t][1]=i,i.addClass("gc-defined-column-tab-panel-container"),i.attr("role","tabpanel"),i.attr("id","gc-defined-column-tab-panel-"+n.typeId),i.attr("aria-labelledby","gc-defined-column-tab-"+n.typeId),0===t&&i.addClass("gc-defined-column-tab-panel-container-selected"),n.onInitPanel&&n.onInitPanel(i),i.appendTo(c);return c},t.prototype.eQe=function(){var t=(0,e.GC$)(r("div"));return t.addClass("gc-defined-column-tab-list-break-line"),t},t.prototype.isDisable=function(t){return!1===this.itemContainers[t][2]},t.prototype.resetDisable=function(t){var n=this,i=n.isDisable(t),e=n.itemContainers[t][0];n.itemContainers[t][2]=i,i?e.removeClass("gc-defined-column-disabled"):e.addClass("gc-defined-column-disabled"),e.attr("aria-disabled",i?"false":"true")},t.prototype.d5=function(){var t,n=this;for(t=0;t<n.LEt.items.length;t++)n.itemContainers[t]&&n.itemContainers[t][0].unbind("click");n.itemContainers=[]},t.prototype.dispose=function(){var t;this.d5()},t}(),n.YUe=u},9807:function(t,n,i){var e,o,r,u,c,a,s,l=this&&this.mJr||function(){return l=Object.assign||function(t){var n,i,e,o;for(i=1,e=arguments.length;i<e;i++)for(o in n=arguments[i])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},l.apply(this,arguments)};Object.defineProperty(n,"__esModule",{value:!0}),n.wto=void 0,e=i(1376),o=i(6114),r=i(7324),u=i(591),c=e.mt,a=c.En,s=function(){function t(t){var n;this.Cto=[],this.LEt=t}return t.prototype.create=function(){var t=this,n=t.Tto=(0,e.GC$)(a("div"));return n.addClass("gc-defined-column-combo-box-container"),t.ZX()},t.prototype.ZX=function(){var t=this,n=t.Tto,i=t.LEt;return this.Cto=i.items||[],t.Ato=new r.Jze({label:{text:(0,o.getSR)().columnTypeComboBoxItems},showValue:!0,editable:!0,addAndRemoveButton:!0,items:this.Cto,onChange:function(){t.yto()}}),t.Ato.create().appendTo(n),t.yto(),n},t.prototype.yto=function(){var t=this;this.LEt.onChange({items:t.Cto})},t.prototype.setOptions=function(t){var n=this;n.LEt=l(l({},n.LEt),t),n.clear(),n.ZX()},t.prototype.clear=function(){var t=this;t.L0(),t.Tto.empty()},t.prototype.dispose=function(){var t=this;t.clear(),t.Tto=u.keyword_null},t.prototype.L0=function(){var t=this;t.Ato&&t.Ato.dispose(),t.Ato=u.keyword_null},t}(),n.wto=s},9846:function(t,n,i){var e,o,r,u=this&&this.yJr||function(t,n,i){if(i||2===arguments.length)for(var e=0,o=n.length,r;e<o;e++)!r&&e in n||(r||(r=Array.prototype.slice.call(n,0,e)),r[e]=n[e]);return t.concat(r||Array.prototype.slice.call(n))};function c(t){return{barcodeType:r.QRCODE,value:a(t),backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:n.BarCode_DefaultValue_CODABAR,data_CODE39:n.BarCode_DefaultValue_CODE39,data_CODE49:n.BarCode_DefaultValue_CODE49,data_CODE93:n.BarCode_DefaultValue_CODE93,data_CODE128:n.BarCode_DefaultValue_CODE128,data_DATAMATRIX:n.BarCode_DefaultValue_DATAMATRIX,data_EAN8:n.BarCode_DefaultValue_EAN8,data_EAN13:n.BarCode_DefaultValue_EAN13,data_GS1_128:n.BarCode_DefaultValue_GS1_128,data_QRCODE:n.BarCode_DefaultValue_QRCODE,data_PDF417:n.BarCode_DefaultValue_PDF417}}function a(t){return t?t.indexOf(" ")>-1?"[@["+t+"]]":"[@"+t+"]":o.keyword_null}function s(t,n){var i,e,o=null===(i=t.NMi)||void 0===i?void 0:i.getDataView();if(o)try{return o.Ywt(n)}catch(t){}try{return(e=t.getCalcService()).parse(null,n,0,0)}catch(t){}}function l(t,n){var i,o,r=t.parent;try{if((i=s(t,n))&&i.type===e.ExpressionType.function&&(o=i.functionName)&&r.getSparklineEx(o))return i}catch(t){}return null}function f(t,i){var o,u,c,a,s,f,d,h,v,g,M,I,b,N,D,m,w=l(t,i);if(w&&w.arguments&&(o={barcodeType:r.QRCODE,value:"",backgroundColor:"#FFFFFF",color:"#000000",data_CODABAR:n.BarCode_DefaultValue_CODABAR,data_CODE39:n.BarCode_DefaultValue_CODE39,data_CODE49:n.BarCode_DefaultValue_CODE49,data_CODE93:n.BarCode_DefaultValue_CODE93,data_CODE128:n.BarCode_DefaultValue_CODE128,data_DATAMATRIX:n.BarCode_DefaultValue_DATAMATRIX,data_EAN8:n.BarCode_DefaultValue_EAN8,data_EAN13:n.BarCode_DefaultValue_EAN13,data_GS1_128:n.BarCode_DefaultValue_GS1_128,data_QRCODE:n.BarCode_DefaultValue_QRCODE,data_PDF417:n.BarCode_DefaultValue_PDF417},!((c=(u=w.arguments).length)<=0))){for(a=0;a<c;a++)u[a].type===e.ExpressionType.reference&&(s="",u[a]={value:"="+s,type:"referenceValue"});for(f=w.functionName.substr(3),o.barcodeType=r[f],o.value=u[0]&&u[0].value?u[0].value:"",o.color=u[1]&&u[1].value?u[1].value:o.color,o.backgroundColor=u[2]&&u[2].value?u[2].value:o.backgroundColor,o.quietZoneLeft=u[c-4]&&u[c-4].value?u[c-4].value:"",o.quietZoneRight=u[c-4]&&u[c-3].value?u[c-3].value:"",o.quietZoneTop=u[c-4]&&u[c-2].value?u[c-2].value:"",o.quietZoneBottom=u[c-4]&&u[c-1].value?u[c-1].value:"",d={},h=3,v=n.DefaultBarCodeTypeData[o.barcodeType],g=0,M=Object.keys(v);g<M.length;g++)I=M[g],N=void 0,N=(b=u[h])&&b.type!==e.ExpressionType.missingArgument?b.value:v[I],d[I]=N,h++;switch(o.barcodeType){case r.QRCODE:(D=d).version=""+D.version,D.mask=""+D.mask,o.data_QRCODE=D;break;case r.EAN13:o.data_EAN13=d;break;case r.EAN8:o.data_EAN8=d;break;case r.CODE39:o.data_CODE39=d;break;case r.CODE49:o.data_CODE49=d;break;case r.CODE93:o.data_CODE93=d;break;case r.CODE128:o.data_CODE128=d;break;case r.PDF417:(m=d).errorCorrectionLevel=""+m.errorCorrectionLevel,m.rows=""+m.rows,m.columns=""+m.columns,o.data_PDF417=m;break;case r.DATAMATRIX:o.data_DATAMATRIX=d;break;case r.GS1_128:o.data_GS1_128=d}return o}}function d(t,n){var i,e,o,u,c,a,s,l,f="",d=[],h=n.value||"";try{v(h)?(i=[]).length>0&&d.push(h.substr(1)):d.push(h)}catch(t){d.push('"'+h+'"')}switch(d.push('"'+n.color+'"'),d.push('"'+n.backgroundColor+'"'),e={},n.barcodeType){case r.QRCODE:e=n.data_QRCODE;break;case r.EAN13:e=n.data_EAN13;break;case r.EAN8:e=n.data_EAN8;break;case r.CODE39:e=n.data_CODE39;break;case r.CODE49:e=n.data_CODE49;break;case r.CODE93:e=n.data_CODE93;break;case r.CODE128:e=n.data_CODE128;break;case r.PDF417:e=n.data_PDF417;break;case r.DATAMATRIX:e=n.data_DATAMATRIX;break;case r.GS1_128:e=n.data_GS1_128;break;case r.CODABAR:e=n.data_CODABAR}for(o=!1===e.showLabel,u=0,c=Object.keys(e);u<c.length;u++)a=c[u],!o||"labelPosition"!==a&&"font"!==a.substr(0,4)?(s=String(e[a]),void 0===e[a]&&(s=""),/^[0-9]+.?[0-9]*$/.test(s)||null===s||""===s||"true"===s||"false"===s||-1!==s.indexOf("{")||(s='"'+s+'"'),d.push(s)):d.push("");return d.push(n.quietZoneLeft),d.push(n.quietZoneRight),d.push(n.quietZoneTop),d.push(n.quietZoneBottom),l=d.join(","),f+="=BC_"+n.barcodeType.toUpperCase(),f+="(",f+=l,f+=")"}function h(t,n,i){var e={text:"auto",value:"auto"},o={text:"0",value:"0"},r=Array.from({length:t},(function(t,n){return{text:(n+1).toString(),value:(n+1).toString()}})),c=u([],r,!0);return i&&c.unshift(o),n&&c.unshift(e),c}function v(t){return!(!t||"string"!=typeof t)&&"="===t.toString().charAt(0)}Object.defineProperty(n,"__esModule",{value:!0}),n.getItems=n.createBarcodeFormula=n.parseBarCodeOptions=n.getFieldRef=n.getDefaultBarcodeOptions=n.DefaultBarCodeTypeData=n.BarCode_DefaultValue_CODE128=n.BarCode_DefaultValue_CODE93=n.BarCode_DefaultValue_CODE39=n.BarCode_DefaultValue_CODABAR=n.BarCode_DefaultValue_CODE49=n.BarCode_DefaultValue_QRCODE=n.BarCode_DefaultValue_PDF417=n.BarCode_DefaultValue_GS1_128=n.BarCode_DefaultValue_EAN13=n.BarCode_DefaultValue_EAN8=n.BarCode_DefaultValue_DATAMATRIX=n.SANS_SERIF_FONT=n.BarCodeType=void 0,e=i(5035),o=i(591),function(t){t.QRCODE="QRCODE",t.EAN13="EAN13",t.EAN8="EAN8",t.CODABAR="CODABAR",t.CODE39="CODE39",t.CODE93="CODE93",t.CODE128="CODE128",t.GS1_128="GS1_128",t.CODE49="CODE49",t.PDF417="PDF417",t.DATAMATRIX="DATAMATRIX"}(r=n.BarCodeType||(n.BarCodeType={})),n.SANS_SERIF_FONT="sans-serif",n.BarCode_DefaultValue_DATAMATRIX={eccMode:"ECC000",ecc200SymbolSize:"",ecc200EncodingMode:"",ecc00_140Symbol:"",structureAppend:!1,structureNumber:0,fileIdentifier:0},n.BarCode_DefaultValue_EAN8={showLabel:!1,labelPosition:"top",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_EAN13={showLabel:!1,labelPosition:"top",addOn:"",addOnLabelPosition:"top",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_GS1_128={showLabel:!1,labelPosition:"top",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_PDF417={errorCorrectionLevel:"auto",rows:"auto",columns:"auto",compact:!1},n.BarCode_DefaultValue_QRCODE={errorCorrectionLevel:"L",model:2,version:"auto",mask:"auto",connection:!1,connectionNo:0,charCode:"",charset:"UTF-8"},n.BarCode_DefaultValue_CODE49={showLabel:!1,labelPosition:"top",grouping:!1,groupNo:"",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODABAR={showLabel:!1,labelPosition:"bottom",checkDigit:!1,nwRatio:3,fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODE39={showLabel:!1,labelPosition:"top",labelWithStartAndStopCharacter:!1,checkDigit:!1,nwRatio:3,fullASCII:!1,fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODE93={showLabel:!1,labelPosition:"top",checkDigit:!1,fullASCII:!1,fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.BarCode_DefaultValue_CODE128={showLabel:!1,labelPosition:"top",codeSet:"auto",fontFamily:n.SANS_SERIF_FONT,fontStyle:"normal",fontWeight:"normal",fontTextDecoration:"none",fontTextAlign:"center",fontSize:12},n.DefaultBarCodeTypeData={QRCODE:n.BarCode_DefaultValue_QRCODE,EAN13:n.BarCode_DefaultValue_EAN13,EAN8:n.BarCode_DefaultValue_EAN8,CODABAR:n.BarCode_DefaultValue_CODABAR,CODE39:n.BarCode_DefaultValue_CODE39,CODE93:n.BarCode_DefaultValue_CODE93,CODE128:n.BarCode_DefaultValue_CODE128,GS1_128:n.BarCode_DefaultValue_GS1_128,CODE49:n.BarCode_DefaultValue_CODE49,PDF417:n.BarCode_DefaultValue_PDF417,DATAMATRIX:n.BarCode_DefaultValue_DATAMATRIX},n.getDefaultBarcodeOptions=c,n.getFieldRef=a,n.parseBarCodeOptions=f,n.createBarcodeFormula=d,n.getItems=h}},e={};function o(t){var n,r=e[t];return void 0!==r?r.exports:(n=e[t]={exports:{}},i[t].call(n.exports,n,n.exports,o),n.exports)}n=o(808),(((t=void 0===t?{}:t).Spread=t.Spread||{}).Sheets=t.Spread.Sheets||{}).TableSheet=n}(),t.Spread.Common.CultureManager.reloadResources&&t.Spread.Common.CultureManager.reloadResources("TableSheet")}));
|