@jspreadsheet/pivot 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/dist/index.js +102 -104
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -26,19 +26,19 @@ if (! jSuites) {
26
26
  }
27
27
  }
28
28
 
29
- (function(a,B){const w=a0_0x2579;for(a=a();;)try{if(-parseInt(w(483))+parseInt(w(589))/2*(parseInt(w(398))/3)+parseInt(w(346))/4*(parseInt(w(529))/5)+-parseInt(w(369))/6*(-parseInt(w(351))/7)+parseInt(w(382))/8+parseInt(w(436))/9+-parseInt(w(443))/10===B)break;else a.push(a.shift())}catch(G){a.push(a.shift())}})(a0_0x4d5b,437503);function a0_0x2579(a,B){const w=a0_0x4d5b();return a0_0x2579=function(G,J){return w[G-250]},a0_0x2579(a,B)}
30
- function a0_0x4d5b(){const a='total-%;getCellNameFromCoords;is-last-row;div;539NmwURT;time;createElement;getCoordsFromCellName;criteria;on or before;updateColumn;getCoordsFromRange;Filter by value;on or after;is a valid email;MIN;criteriaInput;find;top;allowEmptyCriteria;Time;refresh;56538eenjTz;cursor;set;getHighlighted;isEditable;startDate;hidden;deletedColumns;Filters;toolbar;row-%;removeField;updateCells;5841304OECVRk;removeThisItem;history;notification;card;Cell is not empty;findIndex;open;createWorksheet;splice;AVERAGE;unshift;lastIndexOf;updateColumns;New worksheet;loadModalLists;6663pNMiEz;create;100.00%;sortingOptions;add;locationOption;blur;oldSource;none;Table data;VAR;<h3>;endTime;Rows;onchange;criterias;last row;between;ignore;updateSortableField;showOptions;height;jtoolbar-disabled;dateToNum;call;less than or equal to;target;For the table to be displayed, the range ;setPlugins;pivot-table-config-list;value;Where to create the table;startTime;insert;VAR.S;</h3>;update;trunc;6611013VnqAKO;updateFilters;internal properties;The source must be a range, not a single cell;width;fill;total symbol;19302600aYzRGO;children;text;positionMarkerCard;openEditModal;name;pivotTables;pivot-table-position-marker-card;start;% of the total;indexOf;is-highlighted-row;from;The anchor must be a single cell, not a range;cardThatFollowsTheMouse;tokenIdentifier;% of the column total;some;max;Show as;#SPILL;values;column-%;pivot_table_chart;Ascending;COUNT;valid email;ends with;conditionDropdownOptions;setOptions;setProperty;getBoundingClientRect;anchor;delete;new;controls;clientY; of ;innerText;movedColumns;611446RMUxJK;SUM;The pivot tables extension is not included on the scope of this license;editButtons;size;onload;entries;[data-control];equal to;applyValidation;Name;nextElementSibling;removeCell;ignoreEvents;filterByValue;data-visible;bigger than or equal to;push;date;Create;destinationAnchor;type;sortBy;edit;message;modal;VAR.P;range;insertedColumns;Columns;has;userSelect;STDEVP;instance;filter1;getSortingOptions;Text;Date;documentElement;filter;columns;getRangeFromCoords;updateRow;toFixed;validations;The anchor must be a reference to a cell;5npjEVY;columnIndex;progress;Cell is empty;addEventListener;sourceWorksheet;undefined;Order;after;sort;existing;<div>\n <div><Create :ref="self.create" /></div>\n <div><Edit :ref="self.edit" /></div>\n </div>;replaceWith;close;mouseup;getColumnName;parent;symbol;slice;all;Default;rows;endDate;undoChanges;Cancel;ascendingOrder;Descending;visible;license;exists;get;possibleValues;notEmpty;License required;1899-12-31 ;querySelectorAll;Values;render;createRowPicker;clipboard;Total ;filters;appendChild;classList;remove;collapsed;Order by;exists symbol;reverse;onevent;Number;updateFilter;setAttribute;newValue; must contain no content other than the table itself.;validation;boolean;openCreateModal;<i class="material-icons">pivot_table_chart</i>;apply;206VJKcvL;valid url;setChain;Source;method;onclick;map;COUNTA;display;scope;yCoordOfTheCenter;marginTop;records;updateCell;createSourcePicker;title;concat;contains;textLength;source;insertBefore;STDEV;pivot-table-card-background;current;getWorksheetInstanceByName;jss_pivot_table;getDataFromRange;isSelected;closed;coordinate of the cell that prevented the table from being drawn;parse;not contains;picker;default;MAX;plugins;function;createColumnPicker;cut;tableIndex;setValue;is-highlighted-column;showAs;exports;createPicker;createFilterPicker;different to;options;validationElement;highlighted;columnName;getCellObject;removeFilter;last column;style;forEach;Something went wrong;row;valid;sourcePicker;updateRows;fields;updateModal;dictionary;is a valid url;bigger than;getAttribute;isArray;selection;init;end;less than;cells;Cell where the table should be inserted;parentElement;pivot-table-group-cell;base;moveFilter;is not between;object;length;pivot;innerHTML;Invalid sorting option;PRODUCT;mousedown;worksheet;VARP;getCell;removeRow;moveItem;valid date;SPILL;The source must be a range;not between;Value;pivotTableId;helpers;calendar;isCollapsed;difference;Method;oldValue;is a valid date;COUNTUNIQUE;includes;coords;element;every;number;updateField;pivotTable;left;empty;Column ;destinationWorksheet;Create pivot table;guid;move;Text length;highlightedRows;2240620yRuWcW'.split(";");a0_0x4d5b=
31
- function(){return a};return a0_0x4d5b()}
32
- (function(a,B){const w=a0_0x2579;"object"===typeof exports&&typeof module!==w(535)?module[w(268)]=B():typeof define===w(261)&&define.amd?define(B):a[w(306)]=B()})(this,function(){const a=a0_0x2579;let B=null;const w=function(b){const c=a0_0x2579;return typeof document!==c(535)&&document[c(288)]?document.dictionary[b]||b:b},G=function(b){return JSON[a0_0x2579(255)](JSON.stringify(b))},J=b=>{const c=a0_0x2579,e=b[c(394)]("!");return[b[c(547)](0,e),b[c(547)](e+1)]};class K extends Error{}const na=b=>
33
- {const c=a0_0x2579;try{if(!B.helpers[c(458)](b))throw new K(c(318));let e=b[c(394)]("!");0>e&&(e=void 0);if(0>b[c(453)](":",e))throw new K(c(439));const f=B[c(322)][c(358)](b);if(f[0]===f[2]&&f[1]===f[3])throw new K(c(439));}catch(e){if(e instanceof K)throw e;throw new K("Something went wrong");}},ya=function(){const b=a0_0x2579;let c=this;c[b(603)]=function(f){B[b(257)](f,{worksheetName:!0,onchange:function(d){c[b(608)]=d}})};c.createAnchorPicker=function(f){B[b(257)](f,{worksheetName:!0,onchange:function(d){c[b(475)]=
34
- d}})};c.open=function(){c[b(403)]=b(477);c.anchor="";c.sourcePicker[b(481)]=c[b(608)];c.modal[b(389)]()};c.cancel=function(){c.modal[b(542)]()};c[b(431)]=function(){var f=c[b(608)];try{na(f)}catch(h){jSuites[b(385)]({error:1,message:w(h[b(507)])});return}f={id:jSuites[b(342)](),source:f};if("existing"===c[b(403)]){var d=c[b(475)];try{const h=a0_0x2579;try{if(!B.helpers[h(458)](d))throw new K(h(528));var g=d[h(394)]("!");0>g&&(g=void 0);if(-1<d[h(453)](":",g))throw new K(h(456));}catch(n){if(n instanceof
35
- K)throw n;throw new K(h(281));}}catch(h){jSuites[b(385)]({error:1,message:w(h[b(507)])});return}g=J(d);d=c[b(516)][b(613)](g[0]);f[b(475)]=g[1];H.call(d,f)}else f[b(475)]="A1",c[b(516)][b(390)]({minDimensions:[20,20],pivotTables:[f]});c[b(508)][b(542)]()};const e=[{text:w(b(396)),value:b(477)},{text:w("Existing worksheet"),value:b(539)}];return f=>f`
36
- <lm-modal icon="pivot_table_chart" title="${w(b(341))}" :ref="self.modal" :closable="true" :draggable="true" :width="420" :height="370" :closed="true" :onclose="self.cancel">
29
+ (function(a,B){const w=a0_0x3744;for(a=a();;)try{if(parseInt(w(325))/1+parseInt(w(387))/2+parseInt(w(318))/3*(parseInt(w(517))/4)+parseInt(w(404))/5+parseInt(w(259))/6+-parseInt(w(417))/7*(parseInt(w(256))/8)+-parseInt(w(313))/9*(parseInt(w(461))/10)===B)break;else a.push(a.shift())}catch(G){a.push(a.shift())}})(a0_0x3750,853911);
30
+ function a0_0x3750(){const a='STDEV;Method;push;getCoordsFromCellName;The pivot tables extension is not included on the scope of this license;remove;1393064QvBAbW;updateRows;mousedown;columnName;none;</h3></div>;amd;ascendingOrder;max;filter;data-control;getAttribute;toFixed;width;method;getSortingOptions;exists symbol;8243825wZiNti;apply;endDate;COUNT;entries;status;find;% of the column total;highlighted;begins with;message;default;STDEVP;427nmMYQN;getCell;% of the total;rows;movedColumns;Show as;updateSelectionFromCoords;set;coordinate of the cell that prevented the table from being drawn;coords;<h3>;addEventListener;locationOption;instance;createWorksheet;helpers;sourceAnchor;Number;cancel;object;Something went wrong;pivotTable;insertedColumns;dictionary;createFilterPicker;SUM; must contain no content other than the table itself.;pivotTables;onclick;getWorksheetInstanceByName;cascade;openCreateModal;VAR.S;userSelect;sourcePicker;close;toolbar;innerHTML;COUNTA;createAnchorPicker;splice;plugins;showOptions;removeCell;32752520YHiYFI;Cancel;Pivot table settings;is a valid email;validations;getCellNameFromCoords;length;clipboard;applyValidation;mousemove;onDragStart;license;Text length;jss_pivot_table;Cell where the table should be inserted;oninit;setOptions;column-%;selection;bigger than;getRangeFromCoords;textLength;ignoreEvents;AVERAGE;create;bigger than or equal to;[data-control];getColumnName;yCoordOfTheCenter;loadModalLists;new;onload;has;Table data;open;innerText;createSourcePicker;sourceWorksheet;appendChild;oldSource;isCollapsed;display;div;Date;removeField;MIN;last row;Cell is empty;blur;pivot-table-movement-card;valid url;tableIndex;trunc;validation;material-icons;pivot-table-group-cell;3266584tkdhzm;start;guid;startDate;License required;style;updateCell;fill;onevent;options;values;setAttribute;value;visible;modal;The source must be a range, not a single cell;tokenIdentifier;render;refresh;findIndex;text;criteriaInput;different to;stringify;Rows;<div><h3>;function;onchange;destinationAnchor;parentElement;updateField;removeFilter;valid date;last column;updateFilter;total symbol;marginTop;parent;querySelectorAll;Create;allowEmptyCriteria;clientY;Criteria;cut;contains;indexOf;SPILL;not between;parse;endTime;concat;visibility;move;dateToNum;symbol;sortingOptions;getCellObject;existing;documentElement;lastIndexOf;is-last-row;filterByValue;is not between;delete;filter1;updateFilters;top;undefined;not contains;isLoaded;The anchor must be a single cell, not a range;collapsed;worksheet;children;showAs;possibleValues;edit;Filters;</h3>;difference;ignore;startTime;PRODUCT;filters;deletedColumns;number;newValue;sortBy;on or after;size;updateModal;Time;title;MEDIAN;on or before;removeEventListener;undoChanges;getCoordsFromRange;slice;highlightedRows;picker;Order by;classList;107832atnkOJ;setProperty;pivot-table-position-marker-card;8086872rkqdVD;grab;name;cardThatFollowsTheMouse;styleInfo;every;destinationWorksheet;end;is-highlighted-row;exists;fields;forEach;append;anchor; of ;COUNTUNIQUE;data-visible;isArray;New worksheet;is a valid url;get;Value;insertBefore;add;init;date;pivotTableId;base;createElement;columns;map;Column ;Text;boolean;update;setPlugins;is-highlighted-column;Grand Total;is-header;before;closed;pivot-table-config-list;history;empty;less than;jtoolbar-disabled;call;moveCell;createCellPicker;pivot;time;The anchor must be a reference to a cell;createPicker;calendar;9ADwiTS;left;row-%;row;moveRow;3XoDPdl;formula;Cell is not empty;total-%;Name;between;reset;441627NHXWtv;valid email;removeColumn;Delete;getDataFromRange;progress;oldValue;less than or equal to;type;valid;Total;pivot-table-card-background;range;scope;positionMarkerCard;100.00%;moveFilter;updateCells;criterias;notEmpty;criteria;Create pivot table;controls;equal to;notification;setChain;Order;moveItem;includes;getBoundingClientRect;Descending;sort;columnIndex;replaceWith;source;updateColumns;<div>\n <div><Create :ref="self.create" /></div>\n <div><Edit :ref="self.edit" /></div>\n </div>;updateColumn;height;isSelected;% of the row total;Source;#SPILL;Columns;cells;Invalid sorting option;createRowPicker;editButtons;target;1899-12-31 ;ends with;moveColumn;Ascending;updateSortableField;VAR;from'.split(";");a0_0x3750=
31
+ function(){return a};return a0_0x3750()}function a0_0x3744(a,B){const w=a0_0x3750();return a0_0x3744=function(G,J){return w[G-185]},a0_0x3744(a,B)}
32
+ (function(a,B){const w=a0_0x3744;typeof exports===w(436)&&"undefined"!==typeof module?module.exports=B():typeof define===w(543)&&define[w(393)]?define(B):a[w(308)]=B()})(this,function(){const a=a0_0x3744;let B=null;const w=function(b){const c=a0_0x3744;return typeof document!==c(220)&&document[c(440)]?document[c(440)][b]||b:b},G=function(b){const c=a0_0x3744;return JSON[c(201)](JSON[c(540)](b))},J=b=>{const c=a0_0x3744,d=b.lastIndexOf("!");return[b[c(251)](0,d),b[c(251)](d+1)]};class K extends Error{}
33
+ const na=b=>{const c=a0_0x3744;try{if(!B[c(432)][c(533)](b))throw new K("The source must be a range");let d=b[c(212)]("!");0>d&&(d=void 0);if(0>b.indexOf(":",d))throw new K(c(532));const f=B[c(432)][c(250)](b);if(f[0]===f[2]&&f[1]===f[3])throw new K(c(532));}catch(d){if(d instanceof K)throw d;throw new K("Something went wrong");}},ya=function(){const b=a0_0x3744;let c=this;c.createSourcePicker=function(f){B.picker(f,{worksheetName:!0,onchange:function(e){c[a0_0x3744(359)]=e}})};c[b(456)]=function(f){B[b(253)](f,
34
+ {worksheetName:!0,onchange:function(e){c.anchor=e}})};c[b(495)]=function(){c[b(429)]=b(491);c[b(272)]="";c[b(451)][b(496)]=c.source;c[b(531)][b(495)]()};c[b(435)]=function(){c[b(531)][b(452)]()};c.insert=function(){var f=c[b(359)];try{na(f)}catch(h){jSuites.notification({error:1,message:w(h[b(414)])});return}f={id:jSuites[b(519)](),source:f};if("existing"===c.locationOption){var e=c[b(272)];try{const h=a0_0x3744;try{if(!B[h(432)].tokenIdentifier(e))throw new K(h(310));var g=e[h(212)]("!");0>g&&(g=
35
+ void 0);if(-1<e.indexOf(":",g))throw new K(h(223));}catch(n){if(n instanceof K)throw n;throw new K(h(437));}}catch(h){jSuites[b(349)]({error:1,message:w(h.message)});return}g=J(e);e=c[b(430)][b(446)](g[0]);f[b(272)]=g[1];H[b(305)](e,f)}else f.anchor="A1",c[b(430)][b(431)]({minDimensions:[20,20],pivotTables:[f]});c.modal[b(452)]()};const d=[{text:w(b(277)),value:b(491)},{text:w("Existing worksheet"),value:b(210)}];return f=>f`
36
+ <lm-modal icon="pivot_table_chart" title="${w(b(346))}" :ref="self.modal" :closable="true" :draggable="true" :width="420" :height="370" :closed="true" :onclose="self.cancel">
37
37
  <div class="jss_object jss_style_p20">
38
38
  <div class='jss_style_row jss_style_p2'>
39
39
  <div class='jss_style_column jss_style_f1'>
40
40
  <div class="jss_style_form_group">
41
- <label>${w(b(407))}</label>
41
+ <label>${w(b(494))}</label>
42
42
  <div :ready="self.createSourcePicker" :ref="self.sourcePicker"></div>
43
43
  </div>
44
44
  </div>
@@ -46,15 +46,15 @@ K)throw n;throw new K(h(281));}}catch(h){jSuites[b(385)]({error:1,message:w(h[b(
46
46
  <div class='jss_style_row jss_style_p2'>
47
47
  <div class='jss_style_column jss_style_f1'>
48
48
  <div class="jss_style_form_group">
49
- <label>${w(b(429))}</label>
50
- <Dropdown :data="${e}" :bind="self.locationOption" :allowEmpty="false" width="230" />
49
+ <label>${w("Where to create the table")}</label>
50
+ <Dropdown :data="${d}" :bind="self.locationOption" :allowEmpty="false" width="230" />
51
51
  </div>
52
52
  </div>
53
53
  </div>
54
- <div class='jss_style_row jss_style_p2 lm-row' lm-render="${this[b(403)]===b(539)}">
54
+ <div class='jss_style_row jss_style_p2 lm-row' lm-render="${this[b(429)]===b(210)}">
55
55
  <div class='jss_style_column jss_style_f1'>
56
56
  <div class="jss_style_form_group">
57
- <label>${w(b(298))}</label>
57
+ <label>${w(b(475))}</label>
58
58
  <div :ready="self.createAnchorPicker" data-single="true"></div>
59
59
  </div>
60
60
  </div>
@@ -62,77 +62,76 @@ K)throw n;throw new K(h(281));}}catch(h){jSuites[b(385)]({error:1,message:w(h[b(
62
62
  <div class='jss_style_row jss_style_p2'>
63
63
  <div class='jss_style_column jss_style_f1'>
64
64
  <div class="jss_style_form_group">
65
- <button type="button" class="jss_style_button" onclick="self.insert">${w(b(502))}</button>
66
- <button type="button" class="jss_style_button" onclick="self.cancel">${w(b(553))}</button>
65
+ <button type="button" class="jss_style_button" onclick="self.insert">${w(b(192))}</button>
66
+ <button type="button" class="jss_style_button" onclick="self.cancel">${w(b(462))}</button>
67
67
  </div>
68
68
  </div>
69
69
  </div>
70
70
  </div>
71
71
  </lm-modal>
72
- `},za=[{text:w(a(467)),value:!0},{text:w(a(555)),value:!1}],oa=(b,c,e)=>{b[a(279)][a(337)]=c[a(337)]+"px";b[a(279)][a(365)]=Math[a(435)](e[a(479)]-c[a(599)])+"px"},pa=(b,c,e)=>{B[a(384)][a(416)]=!0;e[a(545)][a(496)]=!0;e[a(473)](c);e[a(265)](b,null,!0);e[a(545)][a(496)]=!1;B[a(384)][a(416)]=!1},N=b=>{const c=new Set([a(250),"is-header","is-highlighted-column",a(454),a(349)]);return b&&b[a(280)](e=>{c[a(476)](e)}),{base:b,difference:[...c]}},aa=([b,c],e,f)=>{e=B[a(322)][a(354)](e[a(475)]);
73
- const [d,g]=e;e=N()[a(325)];for(let h=0;h<c;h++){const n=h+g;for(let k=0;k<b;k++){const l=k+d;f.getCellObject(l,n);f[a(313)](l,n)[a(572)].remove(...e)}}},Aa=(b,[c,e],[f,d],g,h)=>{g=B[a(322)][a(354)](g[a(475)]);const [n,k]=g,{headerHeight:l,hasHighlightedColumn:x,highlightedRows:p=new Set}=b;b=N([a(250),"is-header"]);for(g=0;g<l;g++){var r=g+k;for(var m=0;m<f;m++){var q=m+n;h[a(276)](q,r);q=h.getCell(q,r)[a(572)];q[a(573)](...b[a(325)]);q[a(402)](...b[a(301)])}}b=N([a(250),a(454)]);if(x)for(g=N(["jss_pivot_table",
74
- a(266)]),r=l;r<d-1;r++)m=r+k,h[a(276)](n,m),m=h.getCell(n,m)[a(572)],q=p[a(513)](r)?b:g,m[a(573)](...q[a(325)]),m[a(402)](...q[a(301)]);g=x?1:0;r=N([a(250)]);for(m=l;m<d-1;m++){q=m+k;const v=p[a(513)](m)?b:r;for(let t=g;t<f;t++){var u=t+n;h[a(276)](u,q);u=h.getCell(u,q);u[a(572)][a(573)](...v[a(325)]);u[a(572)][a(402)](...v[a(301)])}}b=d-1+k;g=N([a(250),a(349)]);for(r=0;r<f;r++)m=r+n,h[a(276)](m,b),m=h.getCell(m,b),m.classList[a(573)](...g[a(325)]),m.classList[a(402)](...g.base);b=N()[a(325)];for(g=
75
- 0;g<d;g++)for(r=g+k,m=f;m<c;m++)q=m+n,h[a(276)](q,r),h.getCell(q,r)[a(572)][a(573)](...b);for(f=d;f<e;f++)for(d=f+k,g=0;g<c;g++)r=g+n,h[a(276)](r,d),h[a(313)](r,d)[a(572)][a(573)](...b)},W=function(b){var c=G(b);delete c[a(487)];!this[a(272)][a(449)]&&(this.options.pivotTables=[]);const e=this.options[a(449)],f=V(c.id,e);b={newValue:G(c)};if(0>f)e[a(500)](c);else{const d=G(e[f]);c[a(487)]=d[a(487)];delete d[a(487)];b[a(327)]=d;e[f]=c}L(c,this);c=this.parent[a(260)][a(306)];return!c[a(506)].modal[a(253)]&&
76
- c.edit[a(287)](),b},ba=function(b,c){const {anchor:e,size:f}=b;var d=B.helpers.getCoordsFromCellName(e);const [g,h]=d;d=[];const n=[],[k,l]=f,{records:x}=c;for(let r=0;r<l;r++){const m=h+r,q=x[m];for(let u=0;u<k;u++){var p=g+u;d[a(500)]({x:p,y:m,value:null});n[a(500)]({x:p,y:m,value:null});(p=q[p])&&delete p[a(306)]}}pa(d,n,c);aa(f,b,c)},ca=function(b){var c=this.options.pivotTables;b=V(b,c);c=c[a(391)](b,1)[0];b=G(c);return ba(c,this),b},qa=(b,c)=>{b=B[a(322)].getCoordsFromCellName(b[a(475)]);c.updateSelectionFromCoords(...b)},
77
- da=(b,c)=>{const e=B.helpers[a(354)](b.anchor);e[a(500)](e[0]+b[a(487)][0]-1,e[1]+b[a(487)][1]-1);c.updateSelectionFromCoords(...e)},V=(b,c)=>{if(!c)return-1;const e=c[a(305)];for(let f=0;f<e;f++)if(c[f].id===b)return f;return-1},ea=(b,c)=>{c=c[a(272)][a(449)];b=V(b,c);return-1<b?c[b]:null},H=function(b){const c=W[a(422)](this,b);B[a(384)][a(422)](this[a(545)],{worksheet:this,undo:()=>{c[a(327)]?W[a(422)](this,c[a(327)]):ca[a(422)](this,c.id);qa(c[a(582)],this)},redo:()=>{W[a(422)](this,c.newValue);
78
- qa(c.newValue,this)}})},Ba=function(b){const c=ca[a(422)](this,b);B[a(384)][a(422)](this[a(545)],{worksheet:this,undo:()=>{W[a(422)](this,c);da(c,this)},redo:()=>{ca[a(422)](this,c.id);da(c,this)}})},fa=function(b,c,e,f){{const h=b[a(272)][a(449)],n=V(e,h);if(0>n)b=void 0;else{var d=G(h[n]),g=d[a(475)];b===c&&g===f?b=void 0:(ba(d,b),h[a(391)](n,1),d[a(475)]=f,d[a(487)]=[0,0],!c[a(272)][a(449)]&&(c[a(272)][a(449)]=[]),c[a(272)][a(449)][a(500)](d),L(d,c),d=b[a(545)].plugins[a(306)],b=(d&&d[a(506)]&&
79
- !d[a(506)][a(508)].closed&&d[a(506)][a(287)](),{sourceWorksheet:b,destinationWorksheet:c,sourceAnchor:g,destinationAnchor:f,pivotTableId:e}))}}(e=ea(e,c))&&da(e,c);return b},Ca=function(b,c,e,f){const d=fa(b,c,e,f);B[a(384)][a(422)](b[a(545)],{worksheet:b,undo:()=>{fa(d.destinationWorksheet,d[a(534)],d[a(321)],d.sourceAnchor)},redo:()=>{fa(d[a(534)],d[a(340)],d[a(321)],d[a(503)])}})},ha=b=>{b.onDragStart=function(f){const d=a0_0x2579;var g=f.target;if(g===b[d(386)]){document.documentElement[d(279)][d(514)]=
80
- d(406);document[d(521)][d(279)][d(370)]="grab";var h=b[d(275)];var n=document[a(353)](a(350));h=(n[a(572)][a(402)](a(611),a(450)),n.innerHTML="<div><h3>"+h+"</h3></div>",n);b.positionMarkerCard=h;g[d(299)][d(541)](h);g=b.columnName;n=document[a(353)](a(350));g=(n[a(572)][a(402)]("pivot-table-movement-card"),n.innerHTML=a(409)+g+a(433),n);n=h[d(474)]();const k=getComputedStyle(h);h=h[d(444)][0];h=getComputedStyle(h);g[d(279)][d(440)]=h.width;b.cardThatFollowsTheMouse=g;document.body[d(571)](g);h={yCoordOfTheCenter:parseInt(k[d(600)])+
81
- n.height/2,left:n[d(337)]};b[d(331)]=h;oa(g,h,f);document.addEventListener("mousemove",c);document[d(533)](d(543),e,{once:!0})}};const c=function(f){const d=a0_0x2579;let g=f[d(424)];for(oa(b[d(457)],b.coords,f);g!==document[d(521)]&&!g[d(572)][d(606)](d(611))&&!g[d(572)][d(606)](d(427));)g=g.parentElement;if(g[d(572)].contains(d(427)))g[d(571)](b[d(446)]);else if(g[d(572)][d(606)]("pivot-table-card-background")&&!g[d(572)][d(606)](d(450))){f=f[d(479)];var h=g[d(474)]();h=h.y+h[d(419)]/2;if(f<h)g[d(299)][d(609)](b[d(446)],
82
- g);else(f=g[d(494)])?f.parentElement.insertBefore(b[d(446)],f):g[d(299)].appendChild(b[d(446)])}},e=function(){const f=a0_0x2579;document.removeEventListener("mousemove",c);document[f(521)].style.userSelect="";document[f(521)][f(279)][f(370)]="";b[f(457)][f(573)]();var d=b[f(446)][f(299)];const g=d.id[f(547)](12,-5);d=Array[f(455)](d.children).indexOf(b[f(446)]);b[f(343)](b.id||b[f(530)],g,d)}},Da=[{text:w(a(484)),value:a(484)},{text:w(a(596)),value:"COUNTA"},{text:w("COUNT"),value:a(468)},{text:w(a(329)),
83
- value:a(329)},{text:w("AVERAGE"),value:a(392)},{text:w(a(259)),value:"MAX"},{text:w("MIN"),value:a(362)},{text:w("MEDIAN"),value:"MEDIAN"},{text:w("PRODUCT"),value:a(309)},{text:w(a(610)),value:"STDEV"},{text:w(a(515)),value:a(515)},{text:w(a(408)),value:a(432)},{text:w(a(312)),value:a(509)}],ra=[{text:w(a(549)),value:a(258)},{text:w("% of the row total"),value:"row-%"},{text:w(a(459)),value:"column-%"},{text:w(a(452)),value:"total-%"}],Ea=[{value:a(334),text:w(a(579))},{value:a(445),text:w(a(519))},
84
- {value:"date",text:w(a(520))},{value:a(352),text:w(a(367))},{value:a(607),text:w(a(344))},{value:a(338),text:w(a(532))},{value:a(561),text:w(a(387))}],Fa={number:[{text:w(a(415)),value:"between"},{text:w(a(303)),value:a(319)},{text:w(a(296)),value:"<"},{text:w(a(423)),value:"<="},{text:w(a(290)),value:">"},{text:w(a(499)),value:">="},{text:w(a(491)),value:"="},{text:w(a(271)),value:"!="}],text:[{text:w(a(606)),value:"contains"},{text:w(a(256)),value:"not contains"},{text:w("begins with"),value:"begins with"},
85
- {text:w(a(470)),value:a(470)},{text:w("equal to"),value:"="},{text:w(a(361)),value:a(469)},{text:w(a(289)),value:a(590)}],date:[{text:w(a(328)),value:a(316)},{text:w(a(491)),value:"="},{text:w("before"),value:"<"},{text:w(a(356)),value:"<="},{text:w(a(537)),value:">"},{text:w(a(360)),value:">="},{text:w(a(415)),value:a(415)},{text:w(a(319)),value:a(319)}],time:[{text:w(a(415)),value:a(415)},{text:w(a(303)),value:a(319)},{text:w(a(296)),value:"<"},{text:w(a(423)),value:"<="},{text:w("bigger than"),
86
- value:">"},{text:w(a(499)),value:">="},{text:w(a(491)),value:"="},{text:w(a(271)),value:"!="}],textLength:[{text:w("between"),value:a(415)},{text:w(a(303)),value:a(319)},{text:w(a(296)),value:"<"},{text:w(a(423)),value:"<="},{text:w(a(290)),value:">"},{text:w("bigger than or equal to"),value:">="},{text:w(a(491)),value:"="},{text:w(a(271)),value:"!="}]};lemonade.setComponents({FieldCard:function(){const b=this;return ha(b),b[a(412)]=function(c){if(c===a(505)||"ascendingOrder"===c)c={[c]:b[c]},b[a(434)](b[a(530)],
87
- c)},c=>c`
72
+ `},za=[{text:w(a(377)),value:!0},{text:w(a(355)),value:!1}],oa=(b,c,d)=>{b[a(522)][a(314)]=c.left+"px";b[a(522)][a(219)]=Math[a(513)](d[a(194)]-c[a(489)])+"px"},pa=(b,c,d)=>{B[a(301)][a(233)]=!0;d[a(190)][a(483)]=!0;d[a(257)](c);d.setValue(b,null,!0);d.parent[a(483)]=!1;B[a(301)][a(233)]=!1},N=b=>{const c=new Set([a(474),a(297),"is-highlighted-column","is-highlighted-row",a(213)]);return b&&b[a(270)](d=>{c[a(216)](d)}),{base:b,difference:[...c]}},aa=([b,c],d,f)=>{d=B[a(432)][a(384)](d[a(272)]);
73
+ const [e,g]=d;d=N().difference;for(let h=0;h<c;h++){const n=h+g;for(let k=0;k<b;k++){const l=k+e;f[a(209)](l,n);f[a(418)](l,n)[a(255)][a(386)](...d)}}},Aa=(b,[c,d],[f,e],g,h)=>{g=B[a(432)][a(384)](g[a(272)]);const [n,k]=g,{headerHeight:l,hasHighlightedColumn:x,highlightedRows:p=new Set}=b;b=N([a(474),a(297)]);for(g=0;g<l;g++){var r=g+k;for(var m=0;m<f;m++){var q=m+n;h[a(209)](q,r);q=h.getCell(q,r)[a(255)];q[a(386)](...b[a(232)]);q[a(282)](...b[a(286)])}}b=N([a(474),a(267)]);if(x)for(g=N(["jss_pivot_table",
74
+ a(295)]),r=l;r<e-1;r++)m=r+k,h.getCellObject(n,m),m=h[a(418)](n,m)[a(255)],q=p[a(493)](r)?b:g,m[a(386)](...q[a(232)]),m.add(...q[a(286)]);g=x?1:0;r=N([a(474)]);for(m=l;m<e-1;m++){q=m+k;const v=p[a(493)](m)?b:r;for(let u=g;u<f;u++){var t=u+n;h[a(209)](t,q);t=h[a(418)](t,q);t[a(255)][a(386)](...v[a(232)]);t.classList[a(282)](...v[a(286)])}}b=e-1+k;g=N([a(474),"is-last-row"]);for(r=0;r<f;r++)m=r+n,h[a(209)](m,b),m=h[a(418)](m,b),m.classList[a(386)](...g[a(232)]),m[a(255)][a(282)](...g[a(286)]);b=N().difference;
75
+ for(g=0;g<e;g++)for(r=g+k,m=f;m<c;m++)q=m+n,h[a(209)](q,r),h[a(418)](q,r)[a(255)][a(386)](...b);for(f=e;f<d;f++)for(e=f+k,g=0;g<c;g++)r=g+n,h[a(209)](r,e),h[a(418)](r,e)[a(255)][a(386)](...b)},W=function(b){var c=G(b);delete c.size;!this[a(526)][a(444)]&&(this[a(526)].pivotTables=[]);const d=this.options[a(444)],f=V(c.id,d);b={newValue:G(c)};if(0>f)d[a(383)](c);else{const e=G(d[f]);c[a(242)]=e.size;delete e.size;b[a(331)]=e;d[f]=c}L(c,this);c=this.parent[a(458)][a(308)];return!c.edit[a(531)][a(299)]&&
76
+ c[a(229)][a(243)](),b},ba=function(b,c){const {anchor:d,size:f}=b;var e=B[a(432)][a(384)](d);const [g,h]=e;e=[];const n=[],[k,l]=f,{records:x}=c;for(let r=0;r<l;r++){const m=h+r,q=x[m];for(let t=0;t<k;t++){var p=g+t;e[a(383)]({x:p,y:m,value:null});n[a(383)]({x:p,y:m,value:null});(p=q[p])&&delete p.pivot}}pa(e,n,c);aa(f,b,c)},ca=function(b){var c=this.options[a(444)];b=V(b,c);c=c[a(457)](b,1)[0];b=G(c);return ba(c,this),b},qa=(b,c)=>{b=B.helpers[a(384)](b[a(272)]);c[a(423)](...b)},da=(b,c)=>{const d=
77
+ B.helpers[a(384)](b[a(272)]);d[a(383)](d[0]+b[a(242)][0]-1,d[1]+b[a(242)][1]-1);c.updateSelectionFromCoords(...d)},V=(b,c)=>{if(!c)return-1;const d=c.length;for(let f=0;f<d;f++)if(c[f].id===b)return f;return-1},ea=(b,c)=>{c=c[a(526)][a(444)];b=V(b,c);return-1<b?c[b]:null},H=function(b){const c=W[a(305)](this,b);B.history[a(305)](this[a(190)],{worksheet:this,undo:()=>{c[a(331)]?W[a(305)](this,c[a(331)]):ca[a(305)](this,c.id);qa(c[a(239)],this)},redo:()=>{W.call(this,c.newValue);qa(c[a(239)],this)}})},
78
+ Ba=function(b){const c=ca.call(this,b);B.history[a(305)](this[a(190)],{worksheet:this,undo:()=>{W[a(305)](this,c);da(c,this)},redo:()=>{ca.call(this,c.id);da(c,this)}})},fa=function(b,c,d,f){{const h=b[a(526)][a(444)],n=V(d,h);if(0>n)b=void 0;else{var e=G(h[n]),g=e[a(272)];b===c&&g===f?b=void 0:(ba(e,b),h[a(457)](n,1),e[a(272)]=f,e[a(242)]=[0,0],!c[a(526)][a(444)]&&(c[a(526)].pivotTables=[]),c[a(526)][a(444)][a(383)](e),L(e,c),e=b[a(190)][a(458)][a(308)],b=(e&&e.edit&&!e[a(229)][a(531)][a(299)]&&
79
+ e[a(229)].updateModal(),{sourceWorksheet:b,destinationWorksheet:c,sourceAnchor:g,destinationAnchor:f,pivotTableId:d}))}}(d=ea(d,c))&&da(d,c);return b},Ca=function(b,c,d,f){const e=fa(b,c,d,f);B[a(301)][a(305)](b[a(190)],{worksheet:b,undo:()=>{fa(e[a(265)],e[a(498)],e[a(285)],e[a(433)])},redo:()=>{fa(e.sourceWorksheet,e[a(265)],e[a(285)],e[a(545)])}})},ha=b=>{b[a(471)]=function(f){var e=f.target;if(e===b.card){document[a(211)][a(522)][a(450)]=a(391);document[a(211)].style.cursor=a(260);var g=b[a(390)];
80
+ var h=document.createElement(a(503));g=(h[a(255)][a(282)]("pivot-table-card-background",a(258)),h[a(454)]=a(542)+g+a(392),h);b[a(339)]=g;e[a(546)][a(358)](g);e=b[a(390)];h=document[a(287)]("div");e=(h[a(255)][a(282)](a(510)),h[a(454)]=a(427)+e+a(231),h);h=g[a(354)]();const n=getComputedStyle(g);g=getComputedStyle(g.children[0]);e[a(522)][a(400)]=g[a(400)];b.cardThatFollowsTheMouse=e;document.body.appendChild(e);g={yCoordOfTheCenter:parseInt(n[a(189)])+h.height/2,left:h[a(314)]};b[a(426)]=g;oa(e,g,
81
+ f);document[a(428)](a(470),c);document[a(428)]("mouseup",d,{once:!0})}};const c=function(f){let e=f[a(373)];for(oa(b[a(262)],b[a(426)],f);e!==document[a(211)]&&!e.classList[a(197)](a(336))&&!e[a(255)][a(197)](a(300));)e=e[a(546)];if(e[a(255)][a(197)](a(300)))e[a(499)](b[a(339)]);else if(e[a(255)][a(197)]("pivot-table-card-background")&&!e.classList[a(197)]("pivot-table-position-marker-card")){f=f[a(194)];var g=e[a(354)]();g=g.y+g[a(363)]/2;if(f<g)e[a(546)][a(281)](b.positionMarkerCard,e);else(f=e.nextElementSibling)?
82
+ f[a(546)].insertBefore(b.positionMarkerCard,f):e[a(546)][a(499)](b[a(339)])}},d=function(){document[a(248)](a(470),c);document[a(211)][a(522)].userSelect="";document[a(211)][a(522)].cursor="";b[a(262)].remove();var f=b[a(339)][a(546)];const e=f.id[a(251)](12,-5);f=Array[a(380)](f.children).indexOf(b.positionMarkerCard);b[a(205)](b.id||b[a(357)],e,f)}},Da=[{text:w(a(442)),value:"SUM"},{text:w("COUNTA"),value:a(455)},{text:w(a(407)),value:"COUNT"},{text:w(a(274)),value:a(274)},{text:w(a(484)),value:a(484)},
83
+ {text:w("MAX"),value:"MAX"},{text:w(a(506)),value:a(506)},{text:w(a(246)),value:a(246)},{text:w(a(235)),value:a(235)},{text:w("STDEV"),value:a(381)},{text:w("STDEVP"),value:a(416)},{text:w(a(379)),value:a(449)},{text:w("VARP"),value:"VAR.P"}],ra=[{text:w("Default"),value:a(415)},{text:w(a(365)),value:a(315)},{text:w(a(411)),value:"column-%"},{text:w(a(419)),value:a(321)}],Ea=[{value:a(238),text:w(a(434))},{value:"text",text:w(a(291))},{value:"date",text:w(a(504))},{value:"time",text:w(a(244))},{value:a(482),
84
+ text:w(a(473))},{value:a(302),text:w(a(508))},{value:a(344),text:w(a(320))}],Fa={number:[{text:w(a(323)),value:"between"},{text:w("is not between"),value:"not between"},{text:w("less than"),value:"<"},{text:w(a(332)),value:"<="},{text:w(a(480)),value:">"},{text:w(a(486)),value:">="},{text:w(a(348)),value:"="},{text:w(a(539)),value:"!="}],text:[{text:w(a(197)),value:a(197)},{text:w(a(221)),value:a(221)},{text:w(a(413)),value:a(413)},{text:w(a(375)),value:a(375)},{text:w("equal to"),value:"="},{text:w(a(464)),
85
+ value:a(326)},{text:w(a(278)),value:a(511)}],date:[{text:w("is a valid date"),value:a(185)},{text:w("equal to"),value:"="},{text:w(a(298)),value:"<"},{text:w(a(247)),value:"<="},{text:w("after"),value:">"},{text:w(a(241)),value:">="},{text:w("between"),value:a(323)},{text:w(a(200)),value:a(200)}],time:[{text:w(a(323)),value:a(323)},{text:w(a(215)),value:a(200)},{text:w(a(303)),value:"<"},{text:w(a(332)),value:"<="},{text:w(a(480)),value:">"},{text:w(a(486)),value:">="},{text:w(a(348)),value:"="},
86
+ {text:w(a(539)),value:"!="}],textLength:[{text:w("between"),value:a(323)},{text:w(a(215)),value:a(200)},{text:w(a(303)),value:"<"},{text:w(a(332)),value:"<="},{text:w(a(480)),value:">"},{text:w(a(486)),value:">="},{text:w(a(348)),value:"="},{text:w(a(539)),value:"!="}]};lemonade.setComponents({FieldCard:function(){const b=this;return ha(b),b[a(544)]=function(c){if(c===a(240)||c===a(394))c={[c]:b[c]},b[a(293)](b[a(357)],c)},c=>c`
88
87
  <div class="pivot-table-card-background">
89
88
  <div :ref="self.card" class="pivot-table-card" onmousedown="self.onDragStart">
90
89
  <h3>{{self.columnName}}</h3>
91
90
  <div class="lm-row">
92
91
  <div class="lm-column lm-f1">
93
- <label>${w(a(575))}</label>
92
+ <label>${w(a(254))}</label>
94
93
  <Dropdown :data="self.sortingOptions" :bind="self.sortBy" :allowEmpty="false" width="230" />
95
94
  </div>
96
95
  <div class="lm-column lm-f1">
97
- <label>${w(a(536))}</label>
96
+ <label>${w(a(351))}</label>
98
97
  <Dropdown :data="${za}" :bind="self.ascendingOrder" :allowEmpty="false" width="230" />
99
98
  </div>
100
99
  </div>
101
100
  <i class="material-icons pivot-table-card-close-button" onclick="self.remove(self.columnIndex)">close</div>
102
101
  </div>
103
102
  </div>
104
- `},ValueCard:function(){const b=this;return ha(b),b.isLoaded=!1,b[a(488)]=function(){!b.showAs&&(b.showAs=ra[0][a(428)]);b.isLoaded=!0},b[a(412)]=function(c){c!==a(593)&&"showAs"!==c||!b.isLoaded||(c={[c]:b[c]},b[a(434)](b.id,c))},b[a(383)]=function(){b[a(573)](b.id)},c=>c`
103
+ `},ValueCard:function(){const b=this;return ha(b),b[a(222)]=!1,b[a(492)]=function(){!b[a(227)]&&(b[a(227)]=ra[0][a(529)]);b[a(222)]=!0},b.onchange=function(c){"method"!==c&&c!==a(227)||!b.isLoaded||(c={[c]:b[c]},b[a(293)](b.id,c))},b.removeThisItem=function(){b[a(386)](b.id)},c=>c`
105
104
  <div class="pivot-table-card-background">
106
105
  <div :ref="self.card" class="pivot-table-card" onmousedown="self.onDragStart">
107
106
  <h3>{{self.columnName}}</h3>
108
107
  <div class="lm-row">
109
108
  <div class="lm-column lm-f1">
110
- <label>${w(a(326))}</label>
109
+ <label>${w(a(382))}</label>
111
110
  <Dropdown :data="${Da}" :bind="self.method" :allowEmpty="false" width="230" />
112
111
  </div>
113
112
  <div class="lm-column lm-f1">
114
- <label>${w(a(462))}</label>
113
+ <label>${w(a(422))}</label>
115
114
  <Dropdown :data="${ra}" :bind="self.showAs" :allowEmpty="false" width="230" />
116
115
  </div>
117
116
  </div>
118
117
  <i class="material-icons pivot-table-card-close-button" onclick="self.removeThisItem">close</div>
119
118
  </div>
120
119
  </div>
121
- `},FilterCard:function(b,{track:c}){const e=this;c(a(517));ha(e);e[a(560)]=[];e[a(471)]=[{value:a(338),text:w("Cell is empty")},{value:a(561),text:w(a(387))}];const f=function(){var k=J(e[a(608)]),l=B[a(322)][a(358)](k[1]);l[0]+=e[a(530)];l[2]=l[0];l[1]++;l=J(B[a(322)].getRangeFromCoords(l))[1];k=e[a(311)][a(251)](k[0]+"!"+l);l=k[a(305)];const x=new Set;for(let p=1;p<l;p++)x[a(402)](k[p][0]);return[...x][a(538)]()};e.visible=function(){e.el[a(564)](a(490))[a(280)](function(k){let l=k[a(291)]("data-control"),
122
- x;"end"===l?x=e[a(355)]?.[a(330)](a(415)):"valid"===l&&(x=!e[a(355)]?.[a(330)](a(283)));k[a(581)](a(498),x)});e[a(363)][a(279)].visibility=e[a(413)]?"":a(375)};e[a(418)]=function(){e.start="";e[a(295)]="";e[a(413)]=Fa[e[a(504)]]||null;let k=e[a(273)].children;for(let l=0;l<k[a(305)];l++)k[l][a(572)][a(606)](a(548))||k[l].classList[a(606)](e[a(504)])?k[l][a(279)][a(597)]="":k[l][a(279)][a(597)]="none";e[a(366)]=!e.criterias;e[a(355)]=e[a(413)]?e[a(413)][0][a(428)]:"";e[a(556)]()};e[a(552)]=function(){const k=
123
- f();e[a(560)]=k.map(l=>({value:l,text:l}));e[a(517)]?e.filterByValue=e[a(517)]:e[a(497)]=k;e.type=e[a(584)][a(504)];e[a(355)]=e.validation[a(355)];e[a(584)][a(428)]&&("date"===e.type?(e[a(374)]=e.validation.value[0],e[a(551)]=e[a(584)][a(428)][1]):"time"===e[a(504)]?(e[a(430)]=e[a(584)].value[0],e[a(410)]=e[a(584)][a(428)][1]):(e[a(451)]=e[a(584)].value[0],e.end=e[a(584)].value[1]))};e[a(488)]=function(){e.undoChanges()};const d=()=>{if(!e[a(497)])return[];const k=f();return e[a(497)][a(305)]===k[a(305)]?
124
- e[a(497)][a(333)](l=>k[a(330)](l))?void 0:[...e[a(497)]]:[...e[a(497)]]},g=()=>{const k=d();if(!e[a(504)])return{validation:void 0,filter:k};const l={type:e.type,criteria:e[a(355)]};e[a(504)]===a(501)?l[a(355)]?.[a(330)](a(415))?l.value=[e[a(374)],e.endDate]:l[a(428)]=[e.startDate]:e.type===a(352)?l[a(355)]&&l[a(355)][a(330)]("between")?l[a(428)]=[jSuites[a(323)][a(421)](a(563)+e[a(430)]),jSuites[a(323)].dateToNum(a(563)+e[a(410)])]:l[a(428)]=[jSuites[a(323)][a(421)](a(563)+e[a(430)])]:l.criteria?.[a(330)]("between")?
125
- l[a(428)]=[e.start,e[a(295)]]:l[a(428)]=[e[a(451)]];return{validation:l,filter:k}};e[a(492)]=function(){e.update(e.columnIndex,g())};const h=[a(497),a(504),"criteria",a(374),a(551),a(430),a(410),"start",a(295)],n=()=>{const {filter:k,validation:l}=g();if(Array[a(292)](k)&&Array[a(292)](e[a(517)])){if(k[a(460)]((x,p)=>p>=e[a(517)].length||x!==e.filter1[p]))return!1}else if(k||e.filter1)return!1;if(!l)return!e[a(584)];if(!e.validation||l.type!==e.validation.type||l[a(355)]!==e[a(584)][a(355)])return!1;
126
- if(l[a(428)]&&e[a(584)].value){if(l.value[0]!=e[a(584)][a(428)][0]||l[a(428)][1]!=e[a(584)][a(428)][1])return!1}else if(l.value||e[a(584)][a(428)])return!1;return!0};return e[a(412)]=function(k){if(k===a(504))e[a(418)]();else k===a(355)&&e[a(556)]();h.includes(k)&&(k=!n(),e[a(486)][a(279)].display=k?"":a(406))},k=>k`
120
+ `},FilterCard:function(b,{track:c}){const d=this;c(a(217));ha(d);d[a(228)]=[];d.conditionDropdownOptions=[{value:"empty",text:w("Cell is empty")},{value:a(344),text:w(a(320))}];const f=function(){var k=J(d.source),l=B[a(432)][a(250)](k[1]);l[0]+=d.columnIndex;l[2]=l[0];l[1]++;l=J(B.helpers[a(481)](l))[1];k=d[a(225)][a(329)](k[0]+"!"+l);l=k.length;const x=new Set;for(let p=1;p<l;p++)x[a(282)](k[p][0]);return[...x].sort()};d[a(530)]=function(){d.el[a(191)](a(487))[a(270)](function(k){let l=
121
+ k[a(398)](a(397)),x;l===a(266)?x=d[a(345)]?.[a(353)](a(323)):l===a(334)&&(x=!d[a(345)]?.[a(353)](a(334)));k.setAttribute(a(275),x)});d[a(538)][a(522)][a(204)]=d[a(343)]?"":"hidden"};d[a(459)]=function(){d[a(518)]="";d.end="";d.criterias=Fa[d[a(333)]]||null;let k=d.validationElement[a(226)];for(let l=0;l<k[a(467)];l++)k[l].classList[a(197)]("all")||k[l][a(255)][a(197)](d[a(333)])?k[l][a(522)][a(502)]="":k[l][a(522)][a(502)]=a(391);d[a(193)]=!d[a(343)];d[a(345)]=d[a(343)]?d.criterias[0][a(529)]:"";
122
+ d[a(530)]()};d[a(249)]=function(){const k=f();d[a(228)]=k[a(289)](l=>({value:l,text:l}));d.filter1?d[a(214)]=d[a(217)]:d[a(214)]=k;d[a(333)]=d.validation[a(333)];d[a(345)]=d[a(514)].criteria;d[a(514)].value&&("date"===d[a(333)]?(d[a(520)]=d[a(514)].value[0],d.endDate=d[a(514)][a(529)][1]):"time"===d[a(333)]?(d.startTime=d[a(514)].value[0],d[a(202)]=d[a(514)][a(529)][1]):(d[a(518)]=d.validation[a(529)][0],d.end=d[a(514)].value[1]))};d.onload=function(){d.undoChanges()};const e=()=>{if(!d.filterByValue)return[];
123
+ const k=f();return d[a(214)][a(467)]===k[a(467)]?d[a(214)][a(264)](l=>k.includes(l))?void 0:[...d[a(214)]]:[...d[a(214)]]},g=()=>{const k=e();if(!d.type)return{validation:void 0,filter:k};const l={type:d.type,criteria:d[a(345)]};d[a(333)]===a(284)?l.criteria?.[a(353)](a(323))?l.value=[d[a(520)],d[a(406)]]:l[a(529)]=[d[a(520)]]:d[a(333)]===a(309)?l[a(345)]&&l[a(345)][a(353)](a(323))?l[a(529)]=[jSuites[a(312)][a(206)]("1899-12-31 "+d[a(234)]),jSuites[a(312)][a(206)](a(374)+d[a(202)])]:l[a(529)]=[jSuites[a(312)].dateToNum(a(374)+
124
+ d[a(234)])]:l[a(345)]?.[a(353)](a(323))?l[a(529)]=[d[a(518)],d.end]:l[a(529)]=[d[a(518)]];return{validation:l,filter:k}};d[a(469)]=function(){d[a(293)](d.columnIndex,g())};const h=["filterByValue",a(333),a(345),a(520),"endDate",a(234),"endTime","start",a(266)],n=()=>{const {filter:k,validation:l}=g();if(Array[a(276)](k)&&Array[a(276)](d.filter1)){if(k.some((x,p)=>p>=d.filter1.length||x!==d[a(217)][p]))return!1}else if(k||d[a(217)])return!1;if(!l)return!d.validation;if(!d[a(514)]||l[a(333)]!==d[a(514)][a(333)]||
125
+ l[a(345)]!==d[a(514)].criteria)return!1;if(l.value&&d[a(514)].value){if(l[a(529)][0]!=d[a(514)].value[0]||l.value[1]!=d.validation.value[1])return!1}else if(l[a(529)]||d[a(514)][a(529)])return!1;return!0};return d.onchange=function(k){if("type"===k)d[a(459)]();else k===a(345)&&d[a(530)]();h[a(353)](k)&&(k=!n(),d[a(372)][a(522)][a(502)]=k?"":a(391))},k=>k`
127
126
  <div class="pivot-table-card-background">
128
127
  <div :ref="self.card" class="pivot-table-card" onmousedown="self.onDragStart">
129
128
  <h3>{{self.columnName}}</h3>
130
129
 
131
- <h4>${w(a(359))}</h4>
130
+ <h4>${w("Filter by value")}</h4>
132
131
 
133
132
  <div class="lm-row">
134
133
  <div class="lm-column lm-f1">
135
- <label>${w(a(565))}</label>
134
+ <label>${w("Values")}</label>
136
135
  <Dropdown :data="self.possibleValues" :bind="self.filterByValue" :multiple="true" />
137
136
  </div>
138
137
  </div>
@@ -152,7 +151,7 @@ if(l[a(428)]&&e[a(584)].value){if(l.value[0]!=e[a(584)][a(428)][0]||l[a(428)][1]
152
151
  </div>
153
152
  <div class="lm-column lm-f1">
154
153
  <div class="lm-form-group" :ref="self.criteriaInput">
155
- <label class="label">${w("Criteria")}</label>
154
+ <label class="label">${w(a(195))}</label>
156
155
  <Dropdown :data="self.criterias" :bind="self.criteria" :allowEmpty="self.allowEmptyCriteria" />
157
156
  </div>
158
157
  </div>
@@ -164,7 +163,7 @@ if(l[a(428)]&&e[a(584)].value){if(l.value[0]!=e[a(584)][a(428)][0]||l[a(428)][1]
164
163
  <div class="lm-row jss_style_middle">
165
164
  <div class="lm-column lm-f1" data-control="valid">
166
165
  <div class="lm-form-group">
167
- <label class="label">${w(a(320))}</label>
166
+ <label class="label">${w(a(280))}</label>
168
167
  <input type="text" :bind="self.start" class="lm-input" />
169
168
  </div>
170
169
  </div>
@@ -182,7 +181,7 @@ if(l[a(428)]&&e[a(584)].value){if(l.value[0]!=e[a(584)][a(428)][0]||l[a(428)][1]
182
181
  <div class="lm-row">
183
182
  <div class="lm-column lm-f1">
184
183
  <div class="lm-form-group">
185
- <label class="label">${w(a(320))}</label>
184
+ <label class="label">${w(a(280))}</label>
186
185
  <input type="text" :bind="self.start" class="lm-input" />
187
186
  </div>
188
187
  </div>
@@ -210,7 +209,7 @@ if(l[a(428)]&&e[a(584)].value){if(l.value[0]!=e[a(584)][a(428)][0]||l[a(428)][1]
210
209
  <div class="lm-row jss_style_middle">
211
210
  <div class="lm-column lm-f1" data-control="valid">
212
211
  <div class="lm-form-group">
213
- <label class="label">${w("Value")}</label>
212
+ <label class="label">${w(a(280))}</label>
214
213
  <input type="text" :bind="self.startTime" data-mask='hh:mm:ss' class="lm-input" />
215
214
  </div>
216
215
  </div>
@@ -232,48 +231,47 @@ if(l[a(428)]&&e[a(584)].value){if(l.value[0]!=e[a(584)][a(428)][0]||l[a(428)][1]
232
231
  <i class="material-icons pivot-table-card-close-button" onclick="self.remove(self.columnIndex)">close</div>
233
232
  </div>
234
233
  </div>
235
- `}});const O=Symbol(a(414)),X=Symbol(a(278)),E=Symbol(a(438)),M=Symbol(a(442)),ia=Symbol(a(576)),P=(b,c)=>{b=B.formula[b]([c]);return b instanceof Error?b[a(507)]:b},Ga=function(b,c,e){const f=b[a(550)]||[],d=b.columns||[],g=b[a(297)]||[],h=function(m,q){if(typeof m===a(535))return{exists:!1,values:[]};if(m.get(X)||0===d[a(305)]&&(0===f.length||m.get(O)))return m=m[a(559)](E).get(q.columnIndex),{exists:!0,values:Array.isArray(m)?m:[]};const u={exists:!1,values:[]};return m[a(280)]((v,t)=>
236
- {typeof t!==a(546)&&(v=h(v,q),u[a(558)]=u.exists||v[a(558)],u[a(464)][a(500)](...v.values))}),u},n=function(m,q){const u=c[f[m][a(530)]],v=m===f[a(305)]-1;for(let z=0;z<u[a(305)];z++){var t=u[z];if(t=q[a(559)](t)){if(v)k(0,t);else{n(m+1,t);var y=new Map;t.set(M,y);x(t,y)}if(0!==g[a(305)])for(y=0;y<g[a(305)];y++){const C=g[y];var {values:A}=h(t,C);0<A[a(305)]&&(A=P(C[a(593)],A),!t[a(513)](E)&&t[a(371)](E,new Map),t.get(E).set(C.method+"-"+C[a(530)],A))}else({exists:y}=h(t,{columnIndex:void 0})),y&&
237
- (!t.has(E)&&t.set(E,new Map),t.get(E)[a(371)](ia,!0))}}},k=function(m,q){if(0!==d[a(305)]){var u=c[d[m][a(530)]],v=m===d[a(305)]-1;for(let C=0;C<u[a(305)];C++){var t=u[C];t=q?q[a(559)](t):void 0;if(v)for(var y=0;y<g[a(305)];y++){var A=g[y],z=t?t[a(559)](E)[a(559)](A[a(530)]):void 0;typeof z!==a(535)&&(z=P(A[a(593)],z),t[a(559)](E)[a(371)](A[a(593)]+"-"+A.columnIndex,z))}else for(k(m+1,t),y=0;y<g[a(305)];y++)A=g[y],{values:z}=h(t,A),0<z[a(305)]&&(z=P(A.method,z),!t[a(513)](E)&&t[a(371)](E,new Map),
238
- t[a(559)](E).set(A[a(593)]+"-"+A[a(530)],z))}}},l=function(m,q,u){if(typeof m===a(535))return{exists:!1,values:[]};if(0===f.length||m[a(559)](O)){for(let t=0;t<u[a(305)];t++)if(m=m.get(u[t]),"undefined"===typeof m)return{exists:!1,values:[]};return h(m,q)}const v={exists:!1,values:[]};return m[a(280)]((t,y)=>{typeof y!==a(546)&&(t=l(t,q,u),v.exists=v[a(558)]||t[a(558)],v[a(464)][a(500)](...t[a(464)]))}),v},x=function(m,q,u=[]){if(0!==d.length){var v=u.length,t=c[d[v][a(530)]];v=v===d[a(305)]-1;for(let z=
239
- 0;z<t.length;z++){const C=t[z];var y=[...u,C];const D=new Map;q.set(C,D);!v&&x(m,D,y);if(0!==g[a(305)]){const F=new Map;for(let I=0;I<g[a(305)];I++){const Y=g[I];var {values:A}=l(m,Y,y);0<A[a(305)]&&(A=P(Y[a(593)],A),F[a(371)](Y[a(593)]+"-"+Y[a(530)],A))}0!==F[a(487)]&&D[a(371)](E,F)}else({exists:y}=l(m,{columnIndex:void 0},y)),y&&D[a(371)](ia,!0);if(0===D[a(487)])q[a(476)](C);else v&&D[a(371)](X,!0)}}};0!==f[a(305)]&&n(0,e);!e[a(513)](E)&&e[a(371)](E,new Map);b=e[a(559)](E);var p=new Map;e.set(M,
240
- p);x(e,p);for(p=0;p<g.length;p++){const m=g[p];var {values:r}=h(e,m);0<r.length&&(r=P(m[a(593)],r),b[a(371)](m[a(593)]+"-"+m[a(530)],r))}},Q=function(b,c,e){const f=b.method+"-"+b[a(530)],d=f+"-"+b[a(267)];c instanceof Map?c[a(280)]((g,h)=>{h===f?(g=(g/e*100).toFixed(2)+"%",c[a(371)](d,g)):typeof g===a(304)&&Q(b,g,e)}):Object[a(489)](c)[a(280)](([g,h])=>{g===f?(g=(h/e*100)[a(526)](2)+"%",c[d]=g):typeof h===a(304)&&Q(b,h,e)})},sa=(b,c,e)=>{const f=c[a(559)](O);var d=b.method+"-"+b.columnIndex;const g=
241
- d+"-"+b[a(267)];if(f||!1===e){e=c[a(559)](E);const h=e[a(559)](d);e[a(371)](g,a(400));c[a(280)]((n,k)=>{typeof k!==a(546)&&Q(b,n,h)})}else c[a(280)]((h,n)=>{typeof n!==a(546)&&sa(b,h)});if(e=c.get(M))c=c[a(559)](E),d=c[a(559)](d),c[a(371)](g,a(400)),Q(b,e,d)},ja=(b,c,e)=>{if(c[a(513)](E)){var f=b[a(593)]+"-"+b.columnIndex;const g=f+"-"+b.showAs;var d=c.get(E)[a(559)](f);f=e.get(E)[a(559)](f);d=(d/f*100).toFixed(2)+"%";c[a(559)](E)[a(371)](g,d)}c.forEach((g,h)=>{"symbol"!==typeof h&&ja(b,g,e[a(559)](h))})},
242
- ta=(b,c,e,f)=>{if(c.get(O))c[a(280)]((n,k)=>{typeof k!==a(546)&&ja(b,n,e[a(559)](k))});else{c[a(280)]((n,k)=>{typeof k!==a(546)&&ta(b,n,e,f)});var d=c.get(M);d&&ja(b,d,e)}if(c=c.get(E)){var g=b[a(593)]+"-"+b.columnIndex;d=g+"-"+b[a(267)];var h=c[a(559)](g);g=f[a(559)](g);h=(h/g*100).toFixed(2)+"%";c[a(371)](d,h)}},Ha=function(b,c){var e=c.length;const f=b.rows||[];var d=b[a(523)]||[],g=f[a(605)](d);const h=g[a(595)](z=>z[a(530)]);var n=h[a(305)];const k=b[a(297)]||[],l=[...(new Set(k[a(595)](z=>z[a(530)])))],
243
- x=l[a(305)],p=b[a(570)]||[],r=p[a(305)],m=new Map,q={};for(let z=1;z<e;z++){const C=c[z];if(0!==r){var u=void 0;for(u=0;u<r;u++){var v=p[u],t=C[v[a(530)]],y=v.filter;if(y){var A=y[a(305)];let D;for(D=0;D<A&&t!==y[D];D++);if(D===A)break}if((v=v[a(584)])&&!jSuites[a(527)](t,v))break}if(u!==r)continue}u=m;for(t=0;t<n;t++)v=h[t],y=C[v],u[a(513)](y)||(A=new Map,t===f[a(305)]-1&&A.set(O,!0),u[a(371)](y,A)),u=u[a(559)](y),!q[v]&&(q[v]=new Set),q[v].add(y);0!==d[a(305)]&&!u[a(513)](X)&&u[a(371)](X,!0);!u[a(513)](E)&&
244
- u.set(E,new Map);u=u[a(559)](E);for(t=0;t<x;t++)v=l[t],y=C[v],!u[a(513)](v)&&u[a(371)](v,[]),u[a(559)](v)[a(500)](y)}for(c=0;c<n;c++)e=g[c],d=q[e[a(530)]]?[...q[e[a(530)]]]:[],d[a(538)](),!e.ascendingOrder&&d[a(577)](),q[e.columnIndex]=d;Ga(b,q,m);if(0!==k[a(305)])for(b=0;b<k[a(305)];b++)g=k[b],g[a(267)]&&g[a(267)]!==a(258)&&(g.showAs===a(347)?(n=m[a(559)](E).get(g[a(593)]+"-"+g[a(530)]),Q(g,m,n)):g[a(267)]===a(379)?sa(g,m,0!==f[a(305)]):g.showAs===a(465)&&(n=m[a(559)](M),ta(g,m,n,m[a(559)](E))));
245
- return{obj:m,fieldsPossibleValues:q}},R=b=>{const c=b[a(593)]+"-"+b[a(530)];return b[a(267)]&&b[a(267)]!==a(258)?c+"-"+b[a(267)]:c},Ia=function(b,c,e,f,d,g){const h=e.rows||[],n=e[a(523)]||[],k=e.cells||[],l=function(m,q,u,v){var t=h[q];var y=f[t[a(530)]];y=S(y,t,u,k,!0);({collapsed:t}=t);const A=q===h[a(305)]-1;for(let F=0;F<y[a(305)];F++){var z=y[F],C=u[a(559)](z);let I;A?I=x(m,0,C,v):((!t||!t[a(330)](z))&&l(m,q+1,C,v),I=p(m,C.get(M),v));z=C[a(559)](E);for(C=0;C<k[a(305)];C++){var D=R(k[C]);D=z?.[a(559)](D);
246
- "undefined"!==typeof D&&(d[c][I]=D);I++}c++}},x=function(m,q,u,v){if(0===n.length)return m;var t=n[q];const y=S(f[t.columnIndex],t,v,k,!1);({collapsed:t}=t);const A=q===n[a(305)]-1;for(let F=0;F<y.length;F++){var z=y[F],C=u?u.get(z):void 0;if(A)for(z=0;z<k[a(305)];z++){var D=R(k[z]);D=C?.[a(559)](E)?.[a(559)](D);typeof D!==a(535)&&(d[c][m]=D);m++}else for(t&&t[a(330)](z)||(m=x(m,q+1,C,v[a(559)](z))),C=C?.[a(559)](E),z=0;z<k[a(305)];z++)D=R(k[z]),D=C?.[a(559)](D),"undefined"!==typeof D&&(d[c][m]=D),
247
- m++}return m},p=function(m,q,u,v=[]){if(0===n[a(305)])return m;var t=v[a(305)],y=n[t];const A=S(f[y.columnIndex],y,u,k,!1);t=t===n[a(305)]-1;({collapsed:y}=y);typeof d[c]===a(535)&&(d[c]=[]);for(let D=0;D<A[a(305)];D++){var z=A[D],C=[...v,z];const F=q?.[a(559)](z);t||y&&y[a(330)](z)||(m=p(m,F,u[a(559)](z),C));for(z=0;z<k.length;z++)C=R(k[z]),C=F?.[a(559)](E)?.get(C),"undefined"!==typeof C&&(d[c][m]=C),m++}return m};e=g.get(M);0!==h.length&&l(b,0,g,e);b=p(b,e,e);for(e=0;e<k.length;e++){var r=R(k[e]);
248
- r=g[a(559)](E)[a(559)](r);typeof r!==a(535)&&(d[a(305)]<=c&&(d[c]=[]),d[c][b]=r);b++}},S=(b,{sortBy:c,ascendingOrder:e},f,d,g)=>{if(c&&c!==a(448)){d=d[a(364)](n=>n.id===c);if(!d)throw Error(a(308));const h=d[a(593)]+"-"+d[a(530)];b=b.map(n=>{const k=f.get(n)?.[a(559)](E);return[n,k?k[a(559)](h):void 0]});b=b[a(522)](n=>typeof n[1]!==a(535));b[a(538)]((n,k)=>n[1]-k[1]);b=b[a(595)](n=>n[0])}else b=b.filter(h=>{h=f.get(h);return g&&(h=h?.[a(559)](E)),h&&(0!==h[a(487)]||h[a(559)](ia))})[a(538)]();return!e&&
249
- b[a(577)](),b},Ja=function(b,c,e,f,d,g){const h=c[a(550)]||[],n=c[a(297)]||[],k=new Set,l=function(x,p,r,m){const q=h[r];var u=e[q[a(530)]];u=S(u,q,m,n,!0);const v=r===h[a(305)]-1,{collapsed:t}=q;for(let A=0;A<u.length;A++){const z=u[A];f.length<=p&&(f[p]=[]);f[p][x]=z;if(!v){typeof g[p]!==a(304)&&(g[p]={});var y=t&&t[a(330)](z);g[p][x]={columnIndex:q.columnIndex,value:typeof z!==a(535)?z:"",isCollapsed:y};y||(p=l(x+1,p,r+1,m[a(559)](z)),f[a(305)]<=p&&(f[p]=[]),y="","undefined"!==typeof z&&null!==
250
- z&&(y=z+" "),y+="Total",f[p][x]=y,k[a(402)](p))}p++}return p};b=l(0,b,0,d);return f.length<=b&&f[a(500)]([]),f[b][0]="Grand Total",k},Ka=function(b,c,e,f,d,g,h,n){const k=e[a(523)]||[],l=e[a(297)]||[],x=b[1]-1,p=function(r,m,q,u){const v=k[q];var t=f[v[a(530)]];t=S(t,v,u,l,!1);const y=q===k[a(305)]-1,{collapsed:A}=v;for(let I=0;I<t.length;I++){var z=t[I];d[a(305)]<=m&&(d[m]=[]);d[m][r]=z;if(y)if(1<l.length)for(z=0;z<l[a(305)];z++){var C=l[z];d[a(305)]<=m+1&&(d[m+1]=[]);var D=C[a(593)]+" of";typeof g[0][C.columnIndex]!==
251
- a(535)&&(D+=" "+g[0][C.columnIndex]);d[m+1][r]=D;r++}else r++;else if(typeof n[m]!==a(304)&&(n[m]={}),C=A&&A[a(330)](z),n[m][r]={columnIndex:v[a(530)],value:typeof z!==a(535)?z:"",isCollapsed:C},C)if(0!==l[a(305)]){for(;x>=d[a(305)];)d[a(500)]([]);for(C=0;C<l.length;C++){D=l[C];var F="";typeof z!==a(535)&&(F=z+" ");F+=D[a(593)];"undefined"!==typeof g[0][D[a(530)]]&&(F+=" of "+g[0][D[a(530)]]);d[x][r]=F;r++}}else r++;else if(C=r,r=p(r,m+1,q+1,u[a(559)](z)),C!==r)if(0!==l[a(305)])for(C=0;C<l.length;C++)D=
252
- l[C],F="",typeof z!==a(535)&&(F=z+" "),F+=D[a(593)],typeof g[0][D[a(530)]]!==a(535)&&(F+=a(480)+g[0][D[a(530)]]),d[m][r]=F,r++;else d[m][r]=z+" Total",r++}return r};b=0!==k.length?p(b[0],1,0,h[a(559)](M)):b[0];if(1>l.length)d[a(305)]<=c&&(d[c]=[]),d[c][b]="Total";else for(d[a(305)]<=c&&(d[c]=[]),e=0;e<l[a(305)];e++){h=l[e];let r=a(569)+h[a(593)];typeof g[0][h[a(530)]]!==a(535)&&(r+=" of "+g[0][h.columnIndex]);d[c][b]=r;b++}};class T extends Error{constructor(b){super(a(317));this.coords=b}}const Ma=
253
- function({data:b,groups:c},[e,f],d,g){var h=g[a(487)]||[0,0];const [n,k]=h,{records:l,options:{data:x}}=d;d=b[a(305)];h=Math[a(461)](...b[a(595)](A=>A[a(305)]));if(h>n)for(var p=0;p<k;p++){var r=f+p,m=l[r],q=x[r];for(var u=n;u<h;u++){var v=e+u;if(m){var t=m[v];if(t&&null!==t.v&&typeof t.v!==a(535))throw new T({x:v,y:r});}if(q&&(t=q[v],null!==t&&""!==t&&"undefined"!==typeof t))throw new T({x:v,y:r});}}for(p=k;p<d;p++)for(r=f+p,m=l[r],q=x[r],u=0;u<h;u++){v=e+u;if(m&&(t=m[v])&&null!==t.v&&typeof t.v!==
254
- a(535))throw new T({x:v,y:r});if(q&&(t=q[v],null!==t&&""!==t&&typeof t!==a(535)))throw new T({x:v,y:r});}p=[];r=[];for(m=0;m<d;m++){v=b[m];t=c[m];q=f+m;for(u=0;u<h;){const A=e+u;var y=v[u];p[a(500)]({x:A,y:q,value:typeof y!==a(535)?y:null});if(t&&t[u])y=t[u],r[a(500)]({x:A,y:q,value:{type:La,readOnly:!0,options:{...y,pivotTableId:g.id}}});else r[a(500)]({x:A,y:q,value:{type:a(445),readOnly:!0}});u++}for(;u<n;)v=e+u,p[a(500)]({x:v,y:q,value:null}),r[a(500)]({x:v,y:q,value:null}),u++}return{dataRecords:p,
255
- propertyRecords:r,size:[h,d]}},ua=function(b,[c,e],[f],d){b=[{x:c,y:e,value:d?a(463):null}];d=[{x:c,y:e,value:d?a(445):{type:Na}}];for(let g=1;g<f;g++){const h=c+g;b[a(500)]({x:h,y:e,value:null});d.push({x:h,y:e,value:null})}return{dataRecords:b,propertyRecords:d,size:[1,1]}},ka=Symbol(a(254)),Oa=function(b,c,e){var f=B[a(322)][a(354)](c.anchor);const [d,g]=f;var h=c[a(487)]||[0,0];const [n,k]=h;var l=[];let x=[];var p;let r=!1;try{b?(p=Ma(b,f,e,c),Aa(b.styleInfo,h,p[a(487)],c,e)):(p=ua(c,f,h),aa(h,
256
- c,e)),delete c[ka]}catch(y){if(!(y instanceof T))throw y;c[ka]=y[a(331)];r=!0;p=ua(c,f,h,!0);aa(h,c,e)}({dataRecords:l,propertyRecords:x}=p);[h,f]=p[a(487)];({records:p}=e);for(var m=0;m<f;m++){var q=g+m,u=p[q];for(var v=0;v<h;v++){var t=d+v;e[a(276)](t,q).pivot=!0}for(q=h;q<n;q++)(v=u[d+q])&&delete v[a(306)]}for(m=f;m<k;m++)for(u=g+m,q=p[u],v=0;v<n;v++)t=d+v,delete q[t].pivot,l.push({x:t,y:u,value:null}),x[a(500)]({x:t,y:u,value:null});pa(l,x,e);r&&(e[a(276)](d,g),e=e[a(313)](d,g),{data:l}=b,b=l.length,
257
- l=Math[a(461)](...l[a(595)](y=>y[a(305)])),b=c[a(475)]+":"+B.helpers[a(348)](l-1,b-1),e.setAttribute(a(604),a(425)+b+a(583)));c[a(487)]=[h,f]},L=function(b,c){var e=b.rows||[],f=b[a(523)]||[];var d=b.cells||[];if(0===e[a(305)]&&0===f.length&&0===d[a(305)])d=null;else{var g=b[a(608)],h=c;g=J(g);h=h[a(613)](g[0]);h=h[a(601)];g=B[a(322)].getCoordsFromRange(g[1]);var n=[];for(var k=g[1];k<=g[3];k++){var l=h[k];var x=[];for(var p=g[0];p<=g[2];p++){const q=l[p];x[a(500)](q.v)}n[a(500)](x)}l=n;var {obj:r,
258
- fieldsPossibleValues:m}=Ha(b,l);g=e[a(305)];k=f.length;x=Array(g)[a(441)](null);n=l[0];h=[];if(0<k){for(p=0;p<k;p++)x.push(n[f[p][a(530)]]);1<d[a(305)]&&x[a(500)](a(565));h[a(500)](x)}f=[g,0<k?k+1+(0===k||1<d[a(305)]?1:0):1];k={};Ka(f,h[a(305)],b,m,h,l,r,k);for(l=f[1]-1;h[a(305)]<=l;)h[a(500)]([]);l=h[l];for(x=0;x<g;x++)l[x]=n[e[x].columnIndex];g={headerHeight:f[1]-1,hasHighlightedColumn:1<g};e.length&&(e=Ja(f[1],b,m,h,r,k),g[a(345)]=e);d=(0!==d[a(305)]&&Ia(f[0],f[1],b,m,h,r),{data:h,groups:k,styleInfo:g})}Oa(d,
259
- b,c)},Z=[a(550),a(523)],U=[a(297),"rows",a(523),a(570)],la=U[a(305)],va=(b,c)=>{const e={columnIndex:b.columnIndex};c===a(297)?(e.id=jSuites.guid(),e[a(593)]=a(484)):c!==a(550)&&"columns"!==c||(e[a(505)]=b.sortBy||a(448),e.ascendingOrder=typeof b[a(554)]===a(585)?b[a(554)]:!0,typeof b[a(574)]!==a(585)||(e[a(574)]=b.collapsed));return e},Pa=function(){let b=this;b[a(550)]=[];b.columns=[];b[a(297)]=[];b[a(570)]=[];b.fields=[];const c=f=>f?f.map(d=>{const g=a0_0x2579;return{...d,columnName:b[g(286)][d[g(530)]]}}):
260
- [];b[a(518)]=function(){const f={text:w(a(493)),value:"name"};if(!b.pivotTable[a(297)])return[f];const d=b.pivotTable[a(297)][a(595)](g=>({text:g.method+a(480)+b[a(286)][g[a(530)]],value:g.id}));return d[a(393)](f),d};b.updateSortableField=function(f){return function(){const d=a0_0x2579,g=b[d(518)]();b[f]=c(b[d(336)][f])[d(595)](h=>(h[d(401)]=G(g),h));b[d(368)](f)}};b[a(285)]=b[a(417)](a(550));b.updateColumns=b[a(417)](a(523));b[a(381)]=function(){b[a(297)]=c(b[a(336)][a(297)]);b[a(368)]("cells")};
261
- b[a(437)]=function(){b[a(570)]=c(b.pivotTable.filters)[a(595)](({filter:f,...d})=>(d[a(517)]=f,d));b.refresh(a(570))};b[a(397)]=function(){var f=J(b.pivotTable.source);const d=B[a(322)][a(358)](f[1]);d[3]=d[1];const g=J(B[a(322)][a(524)](d))[1];f=b[a(516)].getDataFromRange(f[0]+"!"+g);b.fields=f[0][a(595)]((h,n)=>"undefined"!==typeof h&&null!==h&&""!==h?h:a(339)+B.helpers[a(544)](n+d[0]));b.updateCells();b[a(285)]();b[a(395)]();b[a(437)]()};b[a(287)]=function(){b[a(336)]=b[a(516)][a(272)][a(449)][b[a(264)]];
262
- b.sourcePicker.innerText=b[a(336)][a(608)];b[a(397)]()};b[a(389)]=function(){b[a(287)]();b[a(405)]=b[a(336)][a(608)];b[a(508)].open()};b[a(269)]=f=>function(d){const g=jSuites[a(257)](d,{data:[],content:a(402),onchange:function(h,n,k,l,x){h={columnIndex:b[a(286)].indexOf(k),sortBy:a(448),ascendingOrder:!0};n=G(b.pivotTable);!n[f]&&(n[f]=[]);n[f].push(h);H[a(422)](b[a(516)],n)}});d[a(444)][0][a(533)](a(310),function(){const h=[...b.rows,...b[a(523)]][a(595)](k=>k.columnIndex),n=b[a(286)][a(522)]((k,
263
- l)=>!h.includes(l));g[a(472)]({data:n});g[a(389)]()})};b[a(567)]=b[a(269)]("rows");b[a(262)]=b.createPicker(a(523));b.createCellPicker=function(f){const d=jSuites[a(257)](f,{data:[],content:a(402),onchange:function(g,h,n,k,l){g={id:jSuites[a(342)](),columnIndex:b[a(286)][a(453)](n),method:"SUM"};h=G(b[a(336)]);!h[a(297)]&&(h.cells=[]);h[a(297)][a(500)](g);H.call(b.instance,h)}});f[a(444)][0][a(533)]("mousedown",function(){d[a(472)]({data:b[a(286)]});d[a(389)]()})};b[a(270)]=function(f){const d=jSuites[a(257)](f,
264
- {data:[],content:"add",onchange:function(g,h,n,k,l){g={columnIndex:b[a(286)][a(453)](n)};h=G(b.pivotTable);!h[a(570)]&&(h[a(570)]=[]);h.filters[a(500)](g);H[a(422)](b[a(516)],h)}});f[a(444)][0][a(533)](a(310),function(){const g=b[a(570)][a(595)](n=>n[a(530)]),h=b[a(286)][a(522)]((n,k)=>!g[a(330)](k));d[a(472)]({data:h});d[a(389)]()})};const e=function(){var f=b[a(608)];const d=G(b[a(336)]),g=d[a(608)];d.source=f;f=J(f);f=B[a(322)].getCoordsFromRange(f[1]);const h=f[2]-f[0]+1;U.forEach(n=>{var k=d[n];
265
- k&&(k=k[a(522)](l=>l[a(530)]<h),Z[a(330)](n)&&k[a(280)](l=>{l[a(505)]!==a(448)&&0>d.cells[a(388)](x=>x.id===l[a(505)])&&(l.sortBy=a(448),l[a(554)]=!0)}),d[n]=k)});H.call(b[a(516)],d);wa(d,b[a(516)],g)};return b[a(603)]=function(){B[a(257)](b[a(284)],{worksheetName:!0,onchange:function(f){b[a(608)]=f}});b.sourcePicker[a(533)](a(404),function(f){try{na(b.source)}catch(d){jSuites[a(385)]({error:1,message:w(d.message)});b[a(284)][a(481)]=b[a(405)];return}b[a(405)]=b[a(608)];e()})},b[a(335)]=function(f){return function(d,
266
- g){const h=a0_0x2579,n=G(b[h(336)]),k=n[f][h(364)](l=>l[h(530)]===d);Object[h(489)](g)[h(280)](([l,x])=>{k[l]=x});H[h(422)](b[h(516)],n)}},b[a(525)]=b.updateField(a(550)),b[a(357)]=b[a(335)](a(523)),b[a(580)]=b.updateField(a(570)),b[a(380)]=function(f){return function(d){const g=a0_0x2579,h=G(b[g(336)]),n=h[f],k=n[g(388)](l=>l[g(530)]===d);n[g(391)](k,1);H[g(422)](b.instance,h)}},b[a(314)]=b[a(380)](a(550)),b.removeColumn=b.removeField(a(523)),b[a(277)]=b[a(380)](a(570)),b[a(602)]=function(f,d){const g=
267
- G(b[a(336)]),h=g[a(297)].find(n=>n.id===f);Object[a(489)](d)[a(280)](([n,k])=>{h[n]=k});H[a(422)](b[a(516)],g)},b[a(495)]=function(f){const d=G(b[a(336)]),g=d[a(297)][a(388)](h=>h.id===f);d[a(297)].splice(g,1);[...d[a(550)],...d[a(523)]].forEach(h=>{h[a(505)]===f&&(h[a(505)]=a(448),h[a(554)]=!0)});H[a(422)](b[a(516)],d)},b[a(315)]=function(f){return function(d,g,h){const n=a0_0x2579,k=G(b.pivotTable);var l=k[f];const x=typeof d===n(334)?l[n(388)](r=>r[n(530)]===d):l[n(388)](r=>r.id===d),p=l[n(391)](x,
268
- 1)[0];l=k[g];if(f===g)l.splice(h,0,p);else if(g===n(297))g=va(p,g),l.splice(h,0,g);else{f===n(297)&&Z[n(280)](m=>{k[m][n(280)](q=>{q.sortBy===p.id&&(q[n(505)]="name",q[n(554)]=!0)})});const r=p[n(530)];("filters"===g?l:[...k[n(550)],...k[n(523)]])[n(460)](m=>m.columnIndex===r)||(g=va(p,g),l[n(391)](h,0,g))}H[n(422)](b[n(516)],k)}},b.moveRow=b[a(315)](a(550)),b.moveColumn=b[a(315)](a(523)),b.moveCell=b[a(315)](a(297)),b[a(302)]=b.moveItem(a(570)),b[a(412)]=function(f){f===a(297)&&(b[a(285)](),b.updateColumns())},
269
- f=>f`
234
+ `}});const O=Symbol(a(507)),X=Symbol(a(186)),E=Symbol("internal properties"),M=Symbol(a(188)),ia=Symbol(a(403)),P=(b,c)=>{b=B[a(319)][b]([c]);return b instanceof Error?b[a(414)]:b},Ga=function(b,c,d){const f=b[a(420)]||[],e=b[a(288)]||[],g=b[a(369)]||[],h=function(m,q){if(typeof m===a(220))return{exists:!1,values:[]};if(m[a(279)](X)||0===e.length&&(0===f[a(467)]||m[a(279)](O)))return m=m[a(279)](E)[a(279)](q[a(357)]),{exists:!0,values:Array.isArray(m)?m:[]};const t={exists:!1,values:[]};return m.forEach((v,
235
+ u)=>{"symbol"!==typeof u&&(v=h(v,q),t[a(268)]=t[a(268)]||v[a(268)],t[a(527)][a(383)](...v[a(527)]))}),t},n=function(m,q){const t=c[f[m][a(357)]],v=m===f[a(467)]-1;for(let A=0;A<t[a(467)];A++){const z=q.get(t[A]);if(z){if(v)k(0,z);else{n(m+1,z);var u=new Map;z[a(424)](M,u);x(z,u)}if(0!==g.length)for(u=0;u<g[a(467)];u++){const C=g[u];var {values:y}=h(z,C);0<y[a(467)]&&(y=P(C[a(401)],y),!z.has(E)&&z[a(424)](E,new Map),z[a(279)](E)[a(424)](C.method+"-"+C[a(357)],y))}else({exists:u}=h(z,{columnIndex:void 0})),
236
+ u&&(!z.has(E)&&z.set(E,new Map),z[a(279)](E)[a(424)](ia,!0))}}},k=function(m,q){if(0!==e[a(467)]){var t=c[e[m][a(357)]],v=m===e.length-1;for(let C=0;C<t.length;C++){var u=t[C];u=q?q[a(279)](u):void 0;if(v)for(var y=0;y<g[a(467)];y++){var A=g[y],z=u?u[a(279)](E)[a(279)](A[a(357)]):void 0;"undefined"!==typeof z&&(z=P(A[a(401)],z),u[a(279)](E).set(A[a(401)]+"-"+A[a(357)],z))}else for(k(m+1,u),y=0;y<g[a(467)];y++)A=g[y],{values:z}=h(u,A),0<z.length&&(z=P(A.method,z),!u[a(493)](E)&&u[a(424)](E,new Map),
237
+ u[a(279)](E)[a(424)](A[a(401)]+"-"+A.columnIndex,z))}}},l=function(m,q,t){if("undefined"===typeof m)return{exists:!1,values:[]};if(0===f[a(467)]||m.get(O)){for(let u=0;u<t[a(467)];u++)if(m=m.get(t[u]),"undefined"===typeof m)return{exists:!1,values:[]};return h(m,q)}const v={exists:!1,values:[]};return m[a(270)]((u,y)=>{typeof y!==a(207)&&(u=l(u,q,t),v[a(268)]=v[a(268)]||u[a(268)],v[a(527)][a(383)](...u[a(527)]))}),v},x=function(m,q,t=[]){if(0!==e[a(467)]){var v=t[a(467)],u=c[e[v][a(357)]];v=v===e[a(467)]-
238
+ 1;for(let z=0;z<u[a(467)];z++){const C=u[z];var y=[...t,C];const D=new Map;q[a(424)](C,D);!v&&x(m,D,y);if(0!==g.length){const F=new Map;for(let I=0;I<g[a(467)];I++){const Y=g[I];var {values:A}=l(m,Y,y);0<A[a(467)]&&(A=P(Y[a(401)],A),F[a(424)](Y[a(401)]+"-"+Y[a(357)],A))}0!==F[a(242)]&&D.set(E,F)}else({exists:y}=l(m,{columnIndex:void 0},y)),y&&D.set(ia,!0);if(0===D[a(242)])q[a(216)](C);else v&&D[a(424)](X,!0)}}};0!==f[a(467)]&&n(0,d);!d[a(493)](E)&&d[a(424)](E,new Map);b=d[a(279)](E);var p=new Map;
239
+ d.set(M,p);x(d,p);for(p=0;p<g[a(467)];p++){const m=g[p];var {values:r}=h(d,m);0<r[a(467)]&&(r=P(m[a(401)],r),b.set(m[a(401)]+"-"+m.columnIndex,r))}},Q=function(b,c,d){const f=b.method+"-"+b[a(357)],e=f+"-"+b.showAs;c instanceof Map?c[a(270)]((g,h)=>{h===f?(g=(g/d*100).toFixed(2)+"%",c[a(424)](e,g)):typeof g===a(436)&&Q(b,g,d)}):Object[a(408)](c).forEach(([g,h])=>{g===f?(g=(h/d*100)[a(399)](2)+"%",c[e]=g):"object"===typeof h&&Q(b,h,d)})},sa=(b,c,d)=>{const f=c.get(O);var e=b[a(401)]+"-"+b[a(357)];
240
+ const g=e+"-"+b.showAs;if(f||!1===d){d=c[a(279)](E);const h=d[a(279)](e);d[a(424)](g,a(340));c[a(270)]((n,k)=>{typeof k!==a(207)&&Q(b,n,h)})}else c[a(270)]((h,n)=>{"symbol"!==typeof n&&sa(b,h)});if(d=c[a(279)](M))c=c[a(279)](E),e=c[a(279)](e),c[a(424)](g,a(340)),Q(b,d,e)},ja=(b,c,d)=>{if(c[a(493)](E)){var f=b.method+"-"+b[a(357)];const g=f+"-"+b.showAs;var e=c.get(E).get(f);f=d.get(E)[a(279)](f);e=(e/f*100).toFixed(2)+"%";c[a(279)](E).set(g,e)}c[a(270)]((g,h)=>{typeof h!==a(207)&&ja(b,g,d.get(h))})},
241
+ ta=(b,c,d,f)=>{if(c[a(279)](O))c[a(270)]((n,k)=>{typeof k!==a(207)&&ja(b,n,d[a(279)](k))});else{c.forEach((n,k)=>{typeof k!==a(207)&&ta(b,n,d,f)});var e=c[a(279)](M);e&&ja(b,e,d)}if(c=c.get(E)){var g=b.method+"-"+b.columnIndex;e=g+"-"+b[a(227)];var h=c[a(279)](g);g=f[a(279)](g);h=(h/g*100).toFixed(2)+"%";c[a(424)](e,h)}},Ha=function(b,c){var d=c[a(467)];const f=b.rows||[];var e=b[a(288)]||[],g=f[a(203)](e);const h=g[a(289)](z=>z[a(357)]);var n=h.length;const k=b[a(369)]||[],l=[...(new Set(k.map(z=>
242
+ z[a(357)])))],x=l[a(467)],p=b[a(236)]||[],r=p.length,m=new Map,q={};for(let z=1;z<d;z++){const C=c[z];if(0!==r){var t=void 0;for(t=0;t<r;t++){var v=p[t],u=C[v[a(357)]],y=v.filter;if(y){var A=y.length;let D;for(D=0;D<A&&u!==y[D];D++);if(D===A)break}if((v=v[a(514)])&&!jSuites[a(465)](u,v))break}if(t!==r)continue}t=m;for(u=0;u<n;u++)v=h[u],y=C[v],t[a(493)](y)||(A=new Map,u===f[a(467)]-1&&A.set(O,!0),t[a(424)](y,A)),t=t[a(279)](y),!q[v]&&(q[v]=new Set),q[v][a(282)](y);0!==e[a(467)]&&!t[a(493)](X)&&t[a(424)](X,
243
+ !0);!t[a(493)](E)&&t[a(424)](E,new Map);t=t[a(279)](E);for(u=0;u<x;u++)v=l[u],y=C[v],!t[a(493)](v)&&t.set(v,[]),t[a(279)](v)[a(383)](y)}for(c=0;c<n;c++)d=g[c],e=q[d[a(357)]]?[...q[d[a(357)]]]:[],e[a(356)](),!d.ascendingOrder&&e.reverse(),q[d[a(357)]]=e;Ga(b,q,m);if(0!==k[a(467)])for(b=0;b<k.length;b++)g=k[b],g[a(227)]&&g[a(227)]!==a(415)&&(g[a(227)]===a(321)?(n=m[a(279)](E).get(g[a(401)]+"-"+g.columnIndex),Q(g,m,n)):g[a(227)]===a(315)?sa(g,m,0!==f[a(467)]):g[a(227)]===a(478)&&(n=m[a(279)](M),ta(g,
244
+ m,n,m.get(E))));return{obj:m,fieldsPossibleValues:q}},R=b=>{const c=b.method+"-"+b.columnIndex;return b[a(227)]&&b.showAs!==a(415)?c+"-"+b[a(227)]:c},Ia=function(b,c,d,f,e,g){const h=d[a(420)]||[],n=d[a(288)]||[],k=d[a(369)]||[],l=function(m,q,t,v){var u=h[q];var y=f[u[a(357)]];y=S(y,u,t,k,!0);({collapsed:u}=u);const A=q===h[a(467)]-1;for(let F=0;F<y[a(467)];F++){var z=y[F],C=t.get(z);let I;A?I=x(m,0,C,v):((!u||!u.includes(z))&&l(m,q+1,C,v),I=p(m,C[a(279)](M),v));z=C[a(279)](E);for(C=0;C<k[a(467)];C++){var D=
245
+ R(k[C]);D=z?.get(D);typeof D!==a(220)&&(e[c][I]=D);I++}c++}},x=function(m,q,t,v){if(0===n[a(467)])return m;var u=n[q];var y=f[u[a(357)]];y=S(y,u,v,k,!1);({collapsed:u}=u);const A=q===n.length-1;for(let F=0;F<y[a(467)];F++){var z=y[F],C=t?t[a(279)](z):void 0;if(A)for(z=0;z<k[a(467)];z++){var D=R(k[z]);D=C?.[a(279)](E)?.[a(279)](D);typeof D!==a(220)&&(e[c][m]=D);m++}else for(u&&u[a(353)](z)||(m=x(m,q+1,C,v[a(279)](z))),C=C?.[a(279)](E),z=0;z<k[a(467)];z++)D=R(k[z]),D=C?.[a(279)](D),typeof D!==a(220)&&
246
+ (e[c][m]=D),m++}return m},p=function(m,q,t,v=[]){if(0===n.length)return m;var u=v[a(467)],y=n[u];var A=f[y[a(357)]];A=S(A,y,t,k,!1);u=u===n[a(467)]-1;({collapsed:y}=y);typeof e[c]===a(220)&&(e[c]=[]);for(let D=0;D<A[a(467)];D++){var z=A[D],C=[...v,z];const F=q?.[a(279)](z);u||y&&y[a(353)](z)||(m=p(m,F,t.get(z),C));for(z=0;z<k[a(467)];z++)C=R(k[z]),C=F?.get(E)?.[a(279)](C),typeof C!==a(220)&&(e[c][m]=C),m++}return m};d=g[a(279)](M);0!==h[a(467)]&&l(b,0,g,d);b=p(b,d,d);for(d=0;d<k[a(467)];d++){var r=
247
+ R(k[d]);r=g.get(E)[a(279)](r);typeof r!==a(220)&&(e[a(467)]<=c&&(e[c]=[]),e[c][b]=r);b++}},S=(b,{sortBy:c,ascendingOrder:d},f,e,g)=>{if(c&&c!==a(261)){e=e[a(410)](n=>n.id===c);if(!e)throw Error(a(370));const h=e[a(401)]+"-"+e[a(357)];b=b.map(n=>{const k=f.get(n)?.[a(279)](E);return[n,k?k.get(h):void 0]});b=b[a(396)](n=>"undefined"!==typeof n[1]);b[a(356)]((n,k)=>n[1]-k[1]);b=b.map(n=>n[0])}else b=b[a(396)](h=>{h=f.get(h);return g&&(h=h?.[a(279)](E)),h&&(0!==h[a(242)]||h[a(279)](ia))})[a(356)]();return!d&&
248
+ b.reverse(),b},Ja=function(b,c,d,f,e,g){const h=c[a(420)]||[],n=c[a(369)]||[],k=new Set,l=function(x,p,r,m){const q=h[r];var t=d[q[a(357)]];t=S(t,q,m,n,!0);const v=r===h[a(467)]-1,{collapsed:u}=q;for(let A=0;A<t[a(467)];A++){const z=t[A];f.length<=p&&(f[p]=[]);f[p][x]=z;if(!v){typeof g[p]!==a(436)&&(g[p]={});var y=u&&u[a(353)](z);g[p][x]={columnIndex:q[a(357)],value:typeof z!==a(220)?z:"",isCollapsed:y};y||(p=l(x+1,p,r+1,m.get(z)),f[a(467)]<=p&&(f[p]=[]),y="","undefined"!==typeof z&&null!==z&&(y=
249
+ z+" "),y+="Total",f[p][x]=y,k[a(282)](p))}p++}return p};b=l(0,b,0,e);return f[a(467)]<=b&&f[a(383)]([]),f[b][0]=a(296),k},Ka=function(b,c,d,f,e,g,h,n){const k=d[a(288)]||[],l=d.cells||[],x=b[1]-1,p=function(r,m,q,t){const v=k[q];var u=f[v[a(357)]];u=S(u,v,t,l,!1);const y=q===k[a(467)]-1,{collapsed:A}=v;for(let I=0;I<u.length;I++){var z=u[I];e.length<=m&&(e[m]=[]);e[m][r]=z;if(y)if(1<l[a(467)])for(z=0;z<l[a(467)];z++){var C=l[z];e.length<=m+1&&(e[m+1]=[]);var D=C[a(401)]+" of";typeof g[0][C.columnIndex]!==
250
+ a(220)&&(D+=" "+g[0][C.columnIndex]);e[m+1][r]=D;r++}else r++;else if(typeof n[m]!==a(436)&&(n[m]={}),C=A&&A[a(353)](z),n[m][r]={columnIndex:v[a(357)],value:"undefined"!==typeof z?z:"",isCollapsed:C},C)if(0!==l[a(467)]){for(;x>=e.length;)e[a(383)]([]);for(C=0;C<l.length;C++){D=l[C];var F="";typeof z!==a(220)&&(F=z+" ");F+=D.method;"undefined"!==typeof g[0][D[a(357)]]&&(F+=a(273)+g[0][D[a(357)]]);e[x][r]=F;r++}}else r++;else if(C=r,r=p(r,m+1,q+1,t[a(279)](z)),C!==r)if(0!==l[a(467)])for(C=0;C<l.length;C++)D=
251
+ l[C],F="",typeof z!==a(220)&&(F=z+" "),F+=D[a(401)],typeof g[0][D[a(357)]]!==a(220)&&(F+=a(273)+g[0][D[a(357)]]),e[m][r]=F,r++;else e[m][r]=z+" Total",r++}return r};b=0!==k[a(467)]?p(b[0],1,0,h[a(279)](M)):b[0];if(1>l[a(467)])e[a(467)]<=c&&(e[c]=[]),e[c][b]=a(335);else for(e.length<=c&&(e[c]=[]),d=0;d<l[a(467)];d++){h=l[d];let r="Total "+h[a(401)];typeof g[0][h[a(357)]]!==a(220)&&(r+=a(273)+g[0][h[a(357)]]);e[c][b]=r;b++}};class T extends Error{constructor(b){super(a(199));this[a(426)]=b}}const Ma=
252
+ function({data:b,groups:c},[d,f],e,g){var h=g[a(242)]||[0,0];const [n,k]=h,{records:l,options:{data:x}}=e;e=b[a(467)];h=Math[a(395)](...b.map(y=>y[a(467)]));if(h>n)for(var p=0;p<k;p++){var r=f+p,m=l[r],q=x[r];for(var t=n;t<h;t++){var v=d+t;if(m){var u=m[v];if(u&&null!==u.v&&typeof u.v!==a(220))throw new T({x:v,y:r});}if(q&&(u=q[v],null!==u&&""!==u&&"undefined"!==typeof u))throw new T({x:v,y:r});}}for(p=k;p<e;p++)for(r=f+p,m=l[r],q=x[r],t=0;t<h;t++){v=d+t;if(m&&(u=m[v])&&null!==u.v&&typeof u.v!==a(220))throw new T({x:v,
253
+ y:r});if(q&&(u=q[v],null!==u&&""!==u&&typeof u!==a(220)))throw new T({x:v,y:r});}p=[];r=[];for(m=0;m<e;m++){v=b[m];u=c[m];q=f+m;for(t=0;t<h;){const y=d+t,A=v[t];p[a(383)]({x:y,y:q,value:typeof A!==a(220)?A:null});if(u&&u[t])r.push({x:y,y:q,value:{type:La,readOnly:!0,options:{...u[t],pivotTableId:g.id}}});else r[a(383)]({x:y,y:q,value:{type:a(537),readOnly:!0}});t++}for(;t<n;)v=d+t,p[a(383)]({x:v,y:q,value:null}),r[a(383)]({x:v,y:q,value:null}),t++}return{dataRecords:p,propertyRecords:r,size:[h,e]}},
254
+ ua=function(b,[c,d],[f],e){b=[{x:c,y:d,value:e?a(367):null}];e=[{x:c,y:d,value:e?"text":{type:Na}}];for(let g=1;g<f;g++){const h=c+g;b[a(383)]({x:h,y:d,value:null});e.push({x:h,y:d,value:null})}return{dataRecords:b,propertyRecords:e,size:[1,1]}},ka=Symbol(a(425)),Oa=function(b,c,d){var f=B[a(432)][a(384)](c.anchor);const [e,g]=f;var h=c.size||[0,0];const [n,k]=h;var l=[];let x=[];var p;let r=!1;try{b?(p=Ma(b,f,d,c),Aa(b[a(263)],h,p[a(242)],c,d)):(p=ua(c,f,h),aa(h,c,d)),delete c[ka]}catch(u){if(!(u instanceof
255
+ T))throw u;c[ka]=u.coords;r=!0;p=ua(c,f,h,!0);aa(h,c,d)}({dataRecords:l,propertyRecords:x}=p);[h,f]=p[a(242)];({records:p}=d);for(var m=0;m<f;m++){var q=g+m,t=p[q];for(var v=0;v<h;v++)d.getCellObject(e+v,q)[a(308)]=!0;for(q=h;q<n;q++)(v=t[e+q])&&delete v.pivot}for(m=f;m<k;m++)for(t=g+m,q=p[t],v=0;v<n;v++){const u=e+v;delete q[u].pivot;l[a(383)]({x:u,y:t,value:null});x[a(383)]({x:u,y:t,value:null})}pa(l,x,d);r&&(d[a(209)](e,g),d=d[a(418)](e,g),{data:l}=b,b=l[a(467)],l=Math[a(395)](...l[a(289)](u=>
256
+ u.length)),b=c[a(272)]+":"+B[a(432)][a(466)](l-1,b-1),d[a(528)](a(245),"For the table to be displayed, the range "+b+a(443)));c[a(242)]=[h,f]},L=function(b,c){var d=b[a(420)]||[],f=b[a(288)]||[];var e=b[a(369)]||[];if(0===d[a(467)]&&0===f[a(467)]&&0===e.length)e=null;else{var g,h=b[a(359)],n=c;h=J(h);n=n[a(446)](h[0]);n=n.records;h=B[a(432)][a(250)](h[1]);var k=[];for(g=h[1];g<=h[3];g++){var l=n[g],x=[];for(var p=h[0];p<=h[2];p++){var r=l[p];x[a(383)](r.v)}k[a(383)](x)}g=k;var {obj:m,fieldsPossibleValues:q}=
257
+ Ha(b,g);h=d[a(467)];l=f[a(467)];x=Array(h)[a(524)](null);k=g[0];n=[];if(0<l){for(p=0;p<l;p++)r=f[p],x[a(383)](k[r[a(357)]]);1<e.length&&x.push("Values");n[a(383)](x)}f=[h,0<l?l+1+(0===l||1<e[a(467)]?1:0):1];l={};Ka(f,n[a(467)],b,q,n,g,m,l);for(g=f[1]-1;n[a(467)]<=g;)n[a(383)]([]);g=n[g];for(x=0;x<h;x++)g[x]=k[d[x].columnIndex];h={headerHeight:f[1]-1,hasHighlightedColumn:1<h};d[a(467)]&&(d=Ja(f[1],b,q,n,m,l),h[a(252)]=d);e=(0!==e[a(467)]&&Ia(f[0],f[1],b,q,n,m),{data:n,groups:l,styleInfo:h})}Oa(e,b,
258
+ c)},Z=[a(420),a(288)],U=[a(369),a(420),a(288),"filters"],la=U[a(467)],va=(b,c)=>{const d={columnIndex:b[a(357)]};c===a(369)?(d.id=jSuites.guid(),d[a(401)]=a(442)):c!==a(420)&&c!==a(288)||(d.sortBy=b.sortBy||a(261),d.ascendingOrder=typeof b[a(394)]===a(292)?b[a(394)]:!0,"boolean"!==typeof b.collapsed||(d[a(224)]=b.collapsed));return d},Pa=function(){let b=this;b[a(420)]=[];b[a(288)]=[];b.cells=[];b[a(236)]=[];b[a(269)]=[];const c=f=>f?f[a(289)](e=>({...e,columnName:b[a(269)][e.columnIndex]})):[];b[a(402)]=
259
+ function(){const f={text:w(a(322)),value:a(261)};if(!b[a(438)][a(369)])return[f];const e=b[a(438)][a(369)].map(g=>({text:g[a(401)]+" of "+b[a(269)][g[a(357)]],value:g.id}));return e.unshift(f),e};b.updateSortableField=function(f){return function(){const e=a0_0x3744,g=b[e(402)]();b[f]=c(b[e(438)][f])[e(289)](h=>(h[e(208)]=G(g),h));b[e(535)](f)}};b[a(388)]=b[a(378)]("rows");b[a(360)]=b[a(378)](a(288));b[a(342)]=function(){b[a(369)]=c(b.pivotTable[a(369)]);b[a(535)]("cells")};b[a(218)]=function(){b[a(236)]=
260
+ c(b[a(438)].filters).map(({filter:f,...e})=>(e.filter1=f,e));b[a(535)](a(236))};b[a(490)]=function(){var f=J(b[a(438)].source);const e=B[a(432)].getCoordsFromRange(f[1]);e[3]=e[1];const g=J(B[a(432)].getRangeFromCoords(e))[1];f=b[a(430)][a(329)](f[0]+"!"+g);b[a(269)]=f[0][a(289)]((h,n)=>typeof h!==a(220)&&null!==h&&""!==h?h:a(290)+B[a(432)][a(488)](n+e[0]));b.updateCells();b[a(388)]();b[a(360)]();b[a(218)]()};b[a(243)]=function(){b.pivotTable=b[a(430)][a(526)][a(444)][b[a(512)]];b.sourcePicker.innerText=
261
+ b[a(438)][a(359)];b.loadModalLists()};b.open=function(){b[a(243)]();b.oldSource=b[a(438)][a(359)];b[a(531)].open()};b[a(311)]=f=>function(e){const g=jSuites.picker(e,{data:[],content:a(282),onchange:function(h,n,k,l,x){h={columnIndex:b[a(269)][a(198)](k),sortBy:a(261),ascendingOrder:!0};n=G(b[a(438)]);!n[f]&&(n[f]=[]);n[f].push(h);H.call(b[a(430)],n)}});e[a(226)][0][a(428)](a(389),function(){const h=[...b[a(420)],...b[a(288)]][a(289)](k=>k[a(357)]),n=b[a(269)][a(396)]((k,l)=>!h[a(353)](l));g.setOptions({data:n});
262
+ g[a(495)]()})};b[a(371)]=b.createPicker(a(420));b.createColumnPicker=b[a(311)](a(288));b[a(307)]=function(f){const e=jSuites.picker(f,{data:[],content:"add",onchange:function(g,h,n,k,l){g=a0_0x3744;n={id:jSuites[g(519)](),columnIndex:b.fields.indexOf(n),method:g(442)};h=G(b[g(438)]);!h[g(369)]&&(h[g(369)]=[]);h[g(369)][g(383)](n);H[g(305)](b[g(430)],h)}});f[a(226)][0][a(428)](a(389),function(){e[a(477)]({data:b[a(269)]});e.open()})};b[a(441)]=function(f){const e=jSuites[a(253)](f,{data:[],content:a(282),
263
+ onchange:function(g,h,n,k,l){g={columnIndex:b.fields.indexOf(n)};h=G(b[a(438)]);!h[a(236)]&&(h[a(236)]=[]);h[a(236)][a(383)](g);H[a(305)](b[a(430)],h)}});f[a(226)][0][a(428)](a(389),function(){const g=b.filters[a(289)](n=>n[a(357)]),h=b[a(269)][a(396)]((n,k)=>!g.includes(k));e[a(477)]({data:h});e[a(495)]()})};const d=function(){var f=b[a(359)];const e=G(b[a(438)]),g=e[a(359)];e[a(359)]=f;f=J(f);f=B[a(432)][a(250)](f[1]);const h=f[2]-f[0]+1;U[a(270)](n=>{var k=e[n];k&&(k=k[a(396)](l=>l[a(357)]<h),
264
+ Z[a(353)](n)&&k[a(270)](l=>{l[a(240)]!==a(261)&&0>e[a(369)][a(536)](x=>x.id===l.sortBy)&&(l[a(240)]=a(261),l.ascendingOrder=!0)}),e[n]=k)});H.call(b[a(430)],e);wa(e,b[a(430)],g)};return b[a(497)]=function(){B[a(253)](b[a(451)],{worksheetName:!0,onchange:function(f){b.source=f}});b[a(451)][a(428)](a(509),function(f){try{na(b[a(359)])}catch(e){jSuites[a(349)]({error:1,message:w(e[a(414)])});b[a(451)][a(496)]=b[a(500)];return}b[a(500)]=b[a(359)];d()})},b.updateField=function(f){return function(e,g){const h=
265
+ a0_0x3744,n=G(b[h(438)]),k=n[f][h(410)](l=>l[h(357)]===e);Object[h(408)](g).forEach(([l,x])=>{k[l]=x});H[h(305)](b[h(430)],n)}},b.updateRow=b.updateField(a(420)),b[a(362)]=b[a(547)](a(288)),b[a(187)]=b[a(547)](a(236)),b.removeField=function(f){return function(e){const g=a0_0x3744,h=G(b[g(438)]),n=h[f],k=n[g(536)](l=>l[g(357)]===e);n[g(457)](k,1);H[g(305)](b[g(430)],h)}},b.removeRow=b[a(505)](a(420)),b[a(327)]=b.removeField("columns"),b[a(548)]=b[a(505)](a(236)),b[a(523)]=function(f,e){const g=G(b.pivotTable),
266
+ h=g[a(369)][a(410)](n=>n.id===f);Object[a(408)](e)[a(270)](([n,k])=>{h[n]=k});H[a(305)](b[a(430)],g)},b[a(460)]=function(f){const e=G(b.pivotTable),g=e[a(369)][a(536)](h=>h.id===f);e[a(369)].splice(g,1);[...e[a(420)],...e[a(288)]].forEach(h=>{h[a(240)]===f&&(h[a(240)]=a(261),h[a(394)]=!0)});H[a(305)](b[a(430)],e)},b[a(352)]=function(f){return function(e,g,h){const n=a0_0x3744,k=G(b[n(438)]);var l=k[f];const x=typeof e===n(238)?l[n(536)](r=>r.columnIndex===e):l[n(536)](r=>r.id===e),p=l[n(457)](x,1)[0];
267
+ l=k[g];if(f===g)l.splice(h,0,p);else if(g===n(369))g=va(p,g),l[n(457)](h,0,g);else{f===n(369)&&Z.forEach(m=>{k[m][n(270)](q=>{q[n(240)]===p.id&&(q[n(240)]=n(261),q[n(394)]=!0)})});const r=p[n(357)];(g===n(236)?l:[...k.rows,...k[n(288)]]).some(m=>m[n(357)]===r)||(g=va(p,g),l[n(457)](h,0,g))}H[n(305)](b[n(430)],k)}},b[a(317)]=b[a(352)]("rows"),b[a(376)]=b[a(352)](a(288)),b[a(306)]=b.moveItem(a(369)),b[a(341)]=b[a(352)]("filters"),b[a(544)]=function(f){"cells"===f&&(b.updateRows(),b[a(360)]())},f=>f`
270
268
  <div class="jss_object">
271
- <lm-modal icon="pivot_table_chart" title="${w("Pivot table settings")}" position="right" overflow="true" :ref="self.modal" :closable="true" :width="600" :height="600" :closed="true" :onclose="self.cancel" :focus="false">
269
+ <lm-modal icon="pivot_table_chart" title="${w(a(463))}" position="right" overflow="true" :ref="self.modal" :closable="true" :width="600" :height="600" :closed="true" :onclose="self.cancel" :focus="false">
272
270
  <div>
273
271
  <div class="pivot-table-config">
274
272
  <div>
275
273
  <div class="pivot-table-title">
276
- <h3>${w(a(592))}</h3>
274
+ <h3>${w(a(366))}</h3>
277
275
  </div>
278
276
  <div class="pivot-table-title">
279
277
  <div class="lm-form-group">
@@ -283,7 +281,7 @@ f=>f`
283
281
  </div>
284
282
  <div>
285
283
  <div class="pivot-table-title">
286
- <h3>${w(a(411))}</h3>
284
+ <h3>${w(a(541))}</h3>
287
285
  <div :ready="self.createRowPicker"></div>
288
286
  </div>
289
287
  <div :loop="self.rows" class="pivot-table-config-list" id="pivot-table-rows-list">
@@ -301,7 +299,7 @@ f=>f`
301
299
  </div>
302
300
  <div>
303
301
  <div class="pivot-table-title">
304
- <h3>${w(a(512))}</h3>
302
+ <h3>${w(a(368))}</h3>
305
303
  <div :ready="self.createColumnPicker"></div>
306
304
  </div>
307
305
  <div :loop="self.columns" class="pivot-table-config-list" id="pivot-table-columns-list">
@@ -319,7 +317,7 @@ f=>f`
319
317
  </div>
320
318
  <div>
321
319
  <div class="pivot-table-title">
322
- <h3>${w(a(565))}</h3>
320
+ <h3>${w("Values")}</h3>
323
321
  <div :ready="self.createCellPicker"></div>
324
322
  </div>
325
323
  <div :loop="self.cells" class="pivot-table-config-list" id="pivot-table-cells-list">
@@ -336,7 +334,7 @@ f=>f`
336
334
  </div>
337
335
  <div>
338
336
  <div class="pivot-table-title">
339
- <h3>${w(a(377))}</h3>
337
+ <h3>${w(a(230))}</h3>
340
338
  <div :ready="self.createFilterPicker"></div>
341
339
  </div>
342
340
  <div :loop="self.filters" class="pivot-table-config-list" id="pivot-table-filters-list">
@@ -357,18 +355,18 @@ f=>f`
357
355
  </div>
358
356
  </lm-modal>
359
357
  </div>
360
- `},Na={createCell:(b,c,e,f,d,g)=>{b[a(307)]=a(587)},updateCell:(b,c)=>!1,openEditor:(b,c,e,f,d)=>!1,closeEditor:()=>!1},La={createCell:(b,c,e,f,d,{options:g})=>{e=document[a(353)]("div");e.classList.add(a(300));f=document[a(353)]("i");f.innerText=g[a(324)]?a(402):a(573);f.classList[a(402)]("material-icons");f[a(594)]=()=>{const h=a0_0x2579,{columnIndex:n,pivotTableId:k}=g,l=G(d[h(272)][h(449)][h(364)](p=>k===p.id)),x=(l[h(550)]||[])[h(605)](l[h(523)]||[])[h(364)](p=>p[h(530)]===n);if(g[h(324)]){if(x[h(574)]){const p=
361
- x[h(574)][h(453)](g.value);x.collapsed[h(391)](p,1)}}else!x[h(574)]&&(x[h(574)]=[]),0>x[h(574)][h(453)](g[h(428)])&&x.collapsed[h(500)](g[h(428)]);H[h(422)](d,l)};e[a(571)](f);f=document[a(353)](a(350));f[a(481)]=c||"";e[a(571)](f);b[a(307)]="";b[a(571)](e)},updateCell:(b,c)=>{b[a(444)][0].children[1][a(481)]=c||""},openEditor:(b,c,e,f,d)=>!1,closeEditor:()=>!1},Qa=function(b,c){Object.defineProperty(this,b,{get:c,configurable:!1,enumerable:!1,extensible:!1})},Ra=(b,c)=>{const e=c.w.options[a(449)],
362
- f=e.findIndex(d=>c.id===d.id);e[f]=G(b);L(e[f],c.w)},Sa=function(b,{from:c,to:e,quantity:f},d){if(b<c)return b>=e?b+f:b;if(b>c+f-1)return b<=e?b-f:b;b=e+b-c;return b<d[0]||b>d[2]?void 0:b},Ta=function(b,c){const e=c.length;for(let f=0;f<e;f++)b>=c[f]&&b++;return b},Ua=function(b,c){const e=c.length;let f=0;for(;f<e;){const d=c[f];if(b<d)break;else if(b===d)return;f++}return b-f},xa=(b,c)=>{const {value:e,updates:f}=b;b=c.w.options.pivotTables[a(364)](q=>c.id===q.id);e&&(b.source=e,c[a(510)]=e);var d=
363
- J(b[a(608)]);const g=B[a(322)].getCoordsFromRange(d[1]);if(f[a(482)]){let q,u;d=Object[a(489)](f[a(482)]);d[a(280)](v=>{v[0]=parseInt(v[0]);("undefined"===typeof q||v[0]<q)&&(q=v[0],u=v[1])});d=d[a(305)];d={from:q,to:u,quantity:d};var h=b.cells;for(var n=0;n<la;n++){var k=U[n],l=b[k];if(l){var x=[],p=l[a(305)];for(var r=0;r<p;r++){const v=l[r];var m=Sa(v[a(530)]+g[0],d,g);"undefined"!==typeof m?v[a(530)]=m-g[0]:x[a(500)](r);Z[a(330)](k)&&v.sortBy!==a(448)&&!h.find(t=>t.id===v[a(505)])&&(v[a(505)]=
364
- a(448),v[a(554)]=!0)}x[a(538)]((v,t)=>t-v);k=x[a(305)];for(p=0;p<k;p++)l[a(391)](x[p],1)}}}else if(f.insertedColumns)for(d=f[a(511)].map(q=>q-g[0]),h=0;h<la;h++){if(n=b[U[h]])for(l=n[a(305)],x=0;x<l;x++)k=n[x],k.columnIndex=Ta(k[a(530)],d)}else if(f[a(376)])for(d=[...(new Set(f[a(376)]))].sort((q,u)=>q-u)[a(595)](q=>q-g[0]),h=b[a(297)],n=0;n<la;n++)if(k=U[n],l=b[k]){x=[];p=l[a(305)];for(r=0;r<p;r++){const q=l[r];m=Ua(q[a(530)],d);typeof m!==a(535)?q[a(530)]=m:x.push(r);Z.includes(k)&&q[a(505)]!==
365
- a(448)&&!h[a(364)](u=>u.id===q[a(505)])&&(q[a(505)]=a(448),q[a(554)]=!0)}x.sort((q,u)=>u-q);k=x.length;for(p=0;p<k;p++)l[a(391)](x[p],1)}L(b,c.w)},wa=(b,c,e)=>{!c[a(478)].pivot&&(c[a(478)][a(306)]=[]);const {id:f}=b;if(e){var d=c[a(478)][a(306)][a(388)](g=>g.id===f);-1<d&&(d=c[a(478)][a(306)].splice(d,1)[0],c[a(591)](d,e))}e={type:a(306),id:f,range:b[a(608)],handler:function(g,h){if(h){if(B[a(384)][a(531)])return!1;var n=ea(f,c);const k=G(n);B.history.cascade=!0;B[a(384)].call(c[a(545)],{worksheet:c,
366
- undo:()=>{Ra(k,g)},redo:()=>{xa(h,g)}});B[a(384)].cascade=!1;xa(h,g)}else n=ea(f,c),L(n,c)}};Qa[a(422)](e,"w",()=>c);c[a(478)][a(306)][a(500)](e);c[a(591)](e,b[a(608)],!0)},Va=function(b){let c={};c[a(586)]=function(k){c[a(399)][a(516)]=k;c[a(399)].source=k.getRange();c.create[a(389)]()};c.openEditModal=function(k,l){c[a(506)][a(516)]=k;c[a(506)][a(264)]=l;c.edit[a(389)]()};c[a(378)]=function(k){return k.items[a(500)]({content:a(466),type:"i",tooltip:w("Insert pivot table"),onclick:function(){c.openCreateModal(B[a(612)])},
367
- updateState:function(l,x,p,r){r[a(373)]()?p[a(572)][a(573)](a(420)):p[a(572)].add(a(420))}}),k};var e=k=>function(l,x,p){if(l=x[a(272)][a(449)]){x=l.length;p=p[a(595)](m=>m[k?a(282):"column"]);const r=k?1:0;for(let m=0;m<x;m++){const q=l[m],u=B[a(322)][a(354)](q[a(475)]);let v=u[r];const t=q[a(487)][r];for(let y=0;y<p.length;y++){const A=p[y];if(A<=v)v++;else if(A<v+t)return!1}k?q[a(475)]=B.helpers[a(348)](u[0],v):q[a(475)]=B.helpers.getCellNameFromCoords(v,u[1])}}};const f=k=>function(l,x,p){if(l=
368
- x[a(272)].pivotTables){x=l.length;const r=k?1:0;for(let m=0;m<x;m++){const q=l[m],u=B[a(322)].getCoordsFromCellName(q[a(475)]);let v=u[r];const t=q.size[r];for(let y=p[a(305)]-1;-1<y;y--){const A=p[y];if(A<v)v--;else if(A<v+t)return!1}k?q[a(475)]=B[a(322)][a(348)](u[0],v):q[a(475)]=B[a(322)][a(348)](v,u[1])}}},d=k=>function(l,x,p,r,m){if(l=x[a(272)].pivotTables){x=k?1:0;const q=l[a(305)];for(let u=0;u<q;u++){const v=l[u],t=B[a(322)][a(354)](v.anchor);let y=t[x];const A=v.size[x];if(p<y+A&&p+m-1>=
369
- y)return!1;p<r&&r++;if(r>y&&r<y+A)return!1;p>r?p>y&&r<=y&&(y+=m):p<y&&r>y&&(y-=m);k?v[a(475)]=B[a(322)].getCellNameFromCoords(t[0],y):v.anchor=B[a(322)].getCellNameFromCoords(y,t[1])}}},g=(k,l)=>{if(k=k[a(272)][a(449)]){const x=k[a(305)];for(let p=0;p<x;p++){const r=k[p];if(l[3]-l[1]+1!==r[a(487)][1]||l[2]-l[0]+1!==r[a(487)][0])continue;const m=B[a(322)].getCoordsFromCellName(r[a(475)]);if(l[0]===m[0]&&l[1]===m[1])return r}}return null},h=new Set,n={onselection:function(k,l,x,p,r,m){if(x===r&&p===
370
- m)if(k=l[a(272)][a(449)])if(r=k[a(305)],0!==r)for(let q=0;q<r;q++){m=k[q];const u=B[a(322)][a(354)](m[a(475)]);u[a(500)](u[0]+m[a(487)][0]-1,u[1]+m.size[1]-1);if(x>=u[0]&&x<=u[2]&&p>=u[1]&&p<=u[3]){setTimeout(()=>{c[a(447)](l,q)},100);break}else!c[a(506)][a(508)][a(253)]&&c[a(506)][a(508)].close()}else c.edit[a(508)][a(542)]();else c[a(506)][a(508)][a(542)]();else c[a(506)][a(508)][a(542)]()},onbeforechanges:function(k,l,x){if(k=l[a(272)].pivotTables){const p=k[a(305)],r=x[a(305)];for(let m=0;m<p;m++){const q=
371
- k[m],u=B[a(322)][a(354)](q[a(475)]);u[a(500)](u[0]+q[a(487)][0]-1,u[1]+q[a(487)][1]-1);for(let v=0;v<r;v++){const t=x[v];if(l[a(252)](t.x,t.y,u)){ba(q,l);q[a(487)]=void 0;h[a(402)](q);break}}}}},onafterchanges:function(k,l,x){if(k=l.options[a(449)]){const r=k[a(305)];for(let m=0;m<r;m++){const q=k[m];if(h[a(513)](q)){L(q,l);h[a(476)](q);continue}var p=q[ka];if(!p)continue;const {x:u,y:v}=p;p=x;const t=p[a(305)];for(let y=0;y<t;y++){const A=p[y];if(A.y===v&&A.x===u){"undefined"!==typeof A[a(428)]&&
372
- null!==A[a(428)]&&""!==A[a(428)]||L(q,l);break}}}}},onbeforeinsertcolumn:e(!1),onbeforedeletecolumn:f(!1),onbeforemovecolumn:d(!1),onbeforeinsertrow:e(!0),onbeforedeleterow:f(!0),onbeforemoverow:d(!0),onbeforepaste:function(k,l,x,p,r,m){if(m[a(274)]&&1===m[a(274)][a(305)]&&(k=m[a(311)],x=g(k,[m[a(293)][0],m.selection[1],m[a(293)][0]+x[0][a(305)]-1,m[a(293)][1]+x[a(305)]-1])))return p=B.helpers[a(348)](p,r),m[a(263)]?(Ca(k,l,x.id,p),B[a(568)].reset[a(422)](k,!0)):(l=G(x),l.id=jSuites.guid(),l[a(475)]=
373
- p,H[a(422)](k,l)),!1},onkeydown:function(k,l,x){"Delete"===x.key&&(k=l[a(372)](),1===k[a(305)]&&(k=g(l,k[0]))&&Ba[a(422)](l,k.id))}};c[a(578)]=function(k){const l=n[k];if(l)return l[a(588)](this,arguments)};c[a(294)]=function(k){const l=k.options[a(449)];if(l){const x=l[a(305)];for(let p=0;p<x;p++){const r=l[p];L(r,k);wa(r,k)}}};e=document[a(353)]("div");return b.tools.append(e),lemonade[a(566)](function(){let k=a(540);return lemonade[a(332)](k,c,{Create:ya,Edit:Pa})},e),c},ma=function(b){return!0};
374
- return ma.oninit=function(b){var c;const e=a0_0x2579;var f="";(c=(8==b.status?(!b[e(598)]||-1==b[e(598)][e(453)](e(306)))&&(f=e(485)):f=e(562),f))?console.error(c):b[a(426)]({pivot:Va})},ma[a(557)]=function(){null===B&&(B=this)},ma});
358
+ `},Na={createCell:(b,c,d,f,e,g)=>{b[a(454)]='<i class="material-icons">pivot_table_chart</i>'},updateCell:(b,c)=>!1,openEditor:(b,c,d,f,e)=>!1,closeEditor:()=>!1},La={createCell:(b,c,d,f,e,{options:g})=>{d=document[a(287)](a(503));d[a(255)][a(282)](a(516));f=document[a(287)]("i");f[a(496)]=g[a(501)]?a(282):a(386);f[a(255)][a(282)](a(515));f[a(445)]=()=>{const h=a0_0x3744,{columnIndex:n,pivotTableId:k}=g,l=G(e.options[h(444)][h(410)](p=>k===p.id)),x=(l[h(420)]||[])[h(203)](l[h(288)]||[])[h(410)](p=>
359
+ p[h(357)]===n);if(g[h(501)]){if(x[h(224)]){const p=x.collapsed[h(198)](g[h(529)]);x[h(224)].splice(p,1)}}else!x[h(224)]&&(x[h(224)]=[]),0>x[h(224)].indexOf(g[h(529)])&&x.collapsed[h(383)](g[h(529)]);H.call(e,l)};d[a(499)](f);f=document[a(287)](a(503));f[a(496)]=c||"";d[a(499)](f);b[a(454)]="";b[a(499)](d)},updateCell:(b,c)=>{b[a(226)][0].children[1][a(496)]=c||""},openEditor:(b,c,d,f,e)=>!1,closeEditor:()=>!1},Qa=function(b,c){Object.defineProperty(this,b,{get:c,configurable:!1,enumerable:!1,extensible:!1})},
360
+ Ra=(b,c)=>{const d=c.w.options.pivotTables,f=d[a(536)](e=>c.id===e.id);d[f]=G(b);L(d[f],c.w)},Sa=function(b,{from:c,to:d,quantity:f},e){if(b<c)return b>=d?b+f:b;if(b>c+f-1)return b<=d?b-f:b;b=d+b-c;return b<e[0]||b>e[2]?void 0:b},Ta=function(b,c){const d=c[a(467)];for(let f=0;f<d;f++)b>=c[f]&&b++;return b},Ua=function(b,c){const d=c[a(467)];let f=0;for(;f<d;){const e=c[f];if(b<e)break;else if(b===e)return;f++}return b-f},xa=(b,c)=>{const {value:d,updates:f}=b;b=c.w[a(526)][a(444)][a(410)](q=>c.id===
361
+ q.id);d&&(b[a(359)]=d,c[a(337)]=d);var e=J(b.source);const g=B.helpers[a(250)](e[1]);if(f[a(421)]){let q,t;e=Object.entries(f[a(421)]);e[a(270)](v=>{v[0]=parseInt(v[0]);(typeof q===a(220)||v[0]<q)&&(q=v[0],t=v[1])});e=e[a(467)];e={from:q,to:t,quantity:e};var h=b.cells;for(var n=0;n<la;n++){var k=U[n],l=b[k];if(l){var x=[],p=l[a(467)];for(var r=0;r<p;r++){const v=l[r];var m=Sa(v[a(357)]+g[0],e,g);"undefined"!==typeof m?v.columnIndex=m-g[0]:x[a(383)](r);Z[a(353)](k)&&"name"!==v[a(240)]&&!h[a(410)](u=>
362
+ u.id===v[a(240)])&&(v[a(240)]=a(261),v[a(394)]=!0)}x.sort((v,u)=>u-v);k=x[a(467)];for(p=0;p<k;p++)l[a(457)](x[p],1)}}}else if(f[a(439)])for(e=f[a(439)].map(q=>q-g[0]),h=0;h<la;h++){if(n=b[U[h]])for(l=n[a(467)],x=0;x<l;x++)k=n[x],k[a(357)]=Ta(k.columnIndex,e)}else if(f[a(237)])for(e=[...(new Set(f.deletedColumns))].sort((q,t)=>q-t)[a(289)](q=>q-g[0]),h=b[a(369)],n=0;n<la;n++)if(k=U[n],l=b[k]){x=[];p=l[a(467)];for(r=0;r<p;r++){const q=l[r];m=Ua(q.columnIndex,e);"undefined"!==typeof m?q[a(357)]=m:x[a(383)](r);
363
+ Z.includes(k)&&q[a(240)]!==a(261)&&!h[a(410)](t=>t.id===q[a(240)])&&(q[a(240)]=a(261),q[a(394)]=!0)}x[a(356)]((q,t)=>t-q);k=x[a(467)];for(p=0;p<k;p++)l[a(457)](x[p],1)}L(b,c.w)},wa=(b,c,d)=>{!c[a(347)].pivot&&(c.controls[a(308)]=[]);const {id:f}=b;if(d){var e=c[a(347)].pivot[a(536)](g=>g.id===f);-1<e&&(e=c.controls.pivot[a(457)](e,1)[0],c[a(350)](e,d))}d={type:a(308),id:f,range:b[a(359)],handler:function(g,h){if(h){if(B.history[a(330)])return!1;var n=ea(f,c);const k=G(n);B.history[a(447)]=!0;B[a(301)].call(c[a(190)],
364
+ {worksheet:c,undo:()=>{Ra(k,g)},redo:()=>{xa(h,g)}});B[a(301)][a(447)]=!1;xa(h,g)}else n=ea(f,c),L(n,c)}};Qa[a(305)](d,"w",()=>c);c[a(347)].pivot.push(d);c[a(350)](d,b[a(359)],!0)},Va=function(b){let c={};c[a(448)]=function(k){c[a(485)][a(430)]=k;c[a(485)].source=k.getRange();c[a(485)].open()};c.openEditModal=function(k,l){c[a(229)][a(430)]=k;c[a(229)].tableIndex=l;c.edit[a(495)]()};c[a(453)]=function(k){return k.items[a(383)]({content:"pivot_table_chart",type:"i",tooltip:w("Insert pivot table"),
365
+ onclick:function(){c[a(448)](B.current)},updateState:function(l,x,p,r){r.isEditable()?p[a(255)][a(386)](a(304)):p[a(255)][a(282)](a(304))}}),k};var d=k=>function(l,x,p){if(l=x.options[a(444)]){x=l.length;p=p[a(289)](m=>m[k?a(316):"column"]);const r=k?1:0;for(let m=0;m<x;m++){const q=l[m],t=B[a(432)][a(384)](q.anchor);let v=t[r];const u=q[a(242)][r];for(let y=0;y<p[a(467)];y++){const A=p[y];if(A<=v)v++;else if(A<v+u)return!1}k?q[a(272)]=B.helpers[a(466)](t[0],v):q[a(272)]=B[a(432)][a(466)](v,t[1])}}};
366
+ const f=k=>function(l,x,p){if(l=x[a(526)][a(444)]){x=l[a(467)];const r=k?1:0;for(let m=0;m<x;m++){const q=l[m],t=B[a(432)].getCoordsFromCellName(q.anchor);let v=t[r];const u=q[a(242)][r];for(let y=p.length-1;-1<y;y--){const A=p[y];if(A<v)v--;else if(A<v+u)return!1}k?q[a(272)]=B[a(432)].getCellNameFromCoords(t[0],v):q[a(272)]=B.helpers[a(466)](v,t[1])}}},e=k=>function(l,x,p,r,m){if(l=x[a(526)].pivotTables){x=k?1:0;const q=l[a(467)];for(let t=0;t<q;t++){const v=l[t],u=B[a(432)].getCoordsFromCellName(v[a(272)]);
367
+ let y=u[x];const A=v[a(242)][x];if(p<y+A&&p+m-1>=y)return!1;p<r&&r++;if(r>y&&r<y+A)return!1;p>r?p>y&&r<=y&&(y+=m):p<y&&r>y&&(y-=m);k?v[a(272)]=B[a(432)][a(466)](u[0],y):v[a(272)]=B[a(432)].getCellNameFromCoords(y,u[1])}}},g=(k,l)=>{if(k=k[a(526)][a(444)]){const x=k[a(467)];for(let p=0;p<x;p++){const r=k[p];if(l[3]-l[1]+1!==r.size[1]||l[2]-l[0]+1!==r.size[0])continue;const m=B[a(432)][a(384)](r[a(272)]);if(l[0]===m[0]&&l[1]===m[1])return r}}return null},h=new Set,n={onselection:function(k,l,x,p,r,
368
+ m){if(x===r&&p===m)if(k=l[a(526)].pivotTables)if(r=k[a(467)],0!==r)for(let q=0;q<r;q++){m=k[q];const t=B[a(432)][a(384)](m[a(272)]);t[a(383)](t[0]+m[a(242)][0]-1,t[1]+m[a(242)][1]-1);if(x>=t[0]&&x<=t[2]&&p>=t[1]&&p<=t[3]){setTimeout(()=>{c.openEditModal(l,q)},100);break}else!c.edit[a(531)][a(299)]&&c[a(229)][a(531)].close()}else c[a(229)][a(531)].close();else c.edit[a(531)][a(452)]();else c[a(229)][a(531)][a(452)]()},onbeforechanges:function(k,l,x){if(k=l[a(526)][a(444)]){const p=k[a(467)],r=x[a(467)];
369
+ for(let m=0;m<p;m++){const q=k[m],t=B.helpers[a(384)](q.anchor);t[a(383)](t[0]+q[a(242)][0]-1,t[1]+q.size[1]-1);for(let v=0;v<r;v++){const u=x[v];if(l[a(364)](u.x,u.y,t)){ba(q,l);q.size=void 0;h[a(282)](q);break}}}}},onafterchanges:function(k,l,x){if(k=l.options.pivotTables){const r=k[a(467)];for(let m=0;m<r;m++){const q=k[m];if(h.has(q)){L(q,l);h[a(216)](q);continue}var p=q[ka];if(!p)continue;const {x:t,y:v}=p;p=x;const u=p[a(467)];for(let y=0;y<u;y++){const A=p[y];if(A.y===v&&A.x===t){"undefined"!==
370
+ typeof A[a(529)]&&null!==A[a(529)]&&""!==A[a(529)]||L(q,l);break}}}}},onbeforeinsertcolumn:d(!1),onbeforedeletecolumn:f(!1),onbeforemovecolumn:e(!1),onbeforeinsertrow:d(!0),onbeforedeleterow:f(!0),onbeforemoverow:e(!0),onbeforepaste:function(k,l,x,p,r,m){if(m[a(412)]&&1===m[a(412)][a(467)]&&(k=m.worksheet,x=g(k,[m[a(479)][0],m[a(479)][1],m[a(479)][0]+x[0].length-1,m[a(479)][1]+x.length-1])))return p=B.helpers[a(466)](p,r),m[a(196)]?(Ca(k,l,x.id,p),B[a(468)][a(324)][a(305)](k,!0)):(l=G(x),l.id=jSuites.guid(),
371
+ l[a(272)]=p,H[a(305)](k,l)),!1},onkeydown:function(k,l,x){x.key===a(328)&&(k=l.getHighlighted(),1===k[a(467)]&&(k=g(l,k[0]))&&Ba[a(305)](l,k.id))}};c[a(525)]=function(k){const l=n[k];if(l)return l[a(405)](this,arguments)};c[a(283)]=function(k){const l=k.options[a(444)];if(l){const x=l[a(467)];for(let p=0;p<x;p++){const r=l[p];L(r,k);wa(r,k)}}};d=document[a(287)](a(503));return b.tools[a(271)](d),lemonade[a(534)](function(){let k=a(361);return lemonade.element(k,c,{Create:ya,Edit:Pa})},d),c},ma=function(b){return!0};
372
+ return ma[a(476)]=function(b){var c;const d=a0_0x3744;var f="";(c=(8==b[d(409)]?(!b[d(338)]||-1==b[d(338)].indexOf("pivot"))&&(f=d(385)):f=d(521),f))?console.error(c):b[a(294)]({pivot:Va})},ma[a(472)]=function(){null===B&&(B=this)},ma});
package/package.json CHANGED
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "main": "dist/index.js",
33
33
  "types": "dist/index.d.ts",
34
- "version": "1.0.1",
34
+ "version": "1.0.3",
35
35
  "bugs": "https://github.com/jspreadsheet/pro/issues",
36
36
  "homepage": "https://github.com/jspreadsheet/pro",
37
37
  "download": "https://github.com/jspreadsheet/pro/archive/master.zip"