handsontable.min.js
586.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*!
Copyright (c) Handsoncode sp. z o.o. <hello@handsoncode.net>
This Handsontable Pro is a commercial software distributed by Handsoncode Sp. z o.o. with
its registered seat in Gdynia, Aleja Zwyciestwa 96/98 (81-451 Gdynia) Poland, entered into the Entrepreneurs
Register of the National Court Register under number 0000538651, hereinafter referred to as "HANDSONCODE".
By installing, copying, or otherwise using this software, you agree to be bound by the terms
of its EULA (End-User License Agreement). This software is copyrighted and protected by copyright laws
and international treaties.
YOU EXPRESSLY ACKNOWLEDGE AND AGREE THAT USE OF THE SOFTWARE IS AT YOUR OWN RISK AND THAT THE SOFTWARE
IS PROVIDED "AS IS" WITHOUT ANY WARRANTIES OR CONDITIONS WHATSOEVER. HANDSONCODE EXPRESSLY DISCLAIMS ANY WARRANTY,
EXPRESS OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
FITNESS FORA PARTICULAR PURPOSE, OR NONINFRINGMENT. HANDSONCODE DOES NOT WARRANT THAT THE SOFTWARE AND ITS FUNCTIONALITY,
RELIABILITY AND PERFORMANCE WILL MEET YOUR REQUIREMENTS OR THAT THE OPERATION OF THE SOFTWARE WILL BE
UNINTERRUPTED OR ERROR FREE.
YOU SHALL OBTAIN A COMMERCIAL LICENSE FOR THIS SOFTWARE AT HANDSONTABLE.COM.
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Handsontable=e()}}(function(){var e;return function t(e,o,n){function r(l,a){if(!o[l]){if(!e[l]){var u="function"==typeof require&&require;if(!a&&u)return u(l,!0);if(i)return i(l,!0);if(s[l]&&"undefined"!=typeof window[s[l]])return window[s[l]];var d=new Error("Cannot find module '"+l+"'");throw d.code="MODULE_NOT_FOUND",d}var c=o[l]={exports:{}};e[l][0].call(c.exports,function(t){var o=e[l][1][t];return r(o?o:t)},c,c.exports,t,e,o,n)}return o[l].exports}for(var i="function"==typeof require&&require,s=JSON.parse('{"zeroclipboard":"ZeroClipboard","moment":"moment","pikaday":"Pikaday"}')||{},l=0;l<n.length;l++)r(n[l]);return r}({1:[function(e,t,o){window.jQuery&&!function(e){e.fn.handsontable=function(e){var t,o,n,r,i,s=this.first(),l=s.data("handsontable");if("string"!=typeof e)return i=e||{},l?l.updateSettings(i):(l=new Handsontable.Core(s[0],i),s.data("handsontable",l),l.init()),s;if(n=[],arguments.length>1)for(t=1,o=arguments.length;o>t;t++)n.push(arguments[t]);if(l){if("undefined"==typeof l[e])throw new Error("Handsontable do not provide action: "+e);r=l[e].apply(l,n),"destroy"===e&&s.removeData()}return r}}(window.jQuery)},{}],2:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableBorder:{get:function(){return y}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),d=u.getComputedStyle,c=u.getTrimmingContainer,h=u.innerWidth,f=u.innerHeight,m=u.offset,p=u.outerHeight,g=u.outerWidth,w=(r=e("helpers/dom/event"),r&&r.__esModule&&r||{"default":r}).stopImmediatePropagation,v=(i=e("helpers/browser"),i&&i.__esModule&&i||{"default":i}).isMobileBrowser,b=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).EventManager,C=(l=e("cell/coords"),l&&l.__esModule&&l||{"default":l}).WalkontableCellCoords,y=((a=e("overlay/_base.js"),a&&a.__esModule&&a||{"default":a}).WalkontableOverlay,function(e,t){t&&(this.eventManager=new b(e),this.instance=e,this.wot=e,this.settings=t,this.mouseDown=!1,this.main=null,this.top=null,this.left=null,this.bottom=null,this.right=null,this.topStyle=null,this.leftStyle=null,this.bottomStyle=null,this.rightStyle=null,this.cornerDefaultStyle={width:"5px",height:"5px",borderWidth:"2px",borderStyle:"solid",borderColor:"#FFF"},this.corner=null,this.cornerStyle=null,this.createBorders(t),this.registerListeners())});$traceurRuntime.createClass(y,{registerListeners:function(){var e=this;this.eventManager.addEventListener(document.body,"mousedown",function(){return e.onMouseDown()}),this.eventManager.addEventListener(document.body,"mouseup",function(){return e.onMouseUp()});for(var t=this,o=function(o,n){t.eventManager.addEventListener(t.main.childNodes[o],"mouseenter",function(t){return e.onMouseEnter(t,e.main.childNodes[o])})},n=0,r=this.main.childNodes.length;r>n;n++)o(n,r)},onMouseDown:function(){this.mouseDown=!0},onMouseUp:function(){this.mouseDown=!1},onMouseEnter:function(e,t){function o(e){return e.clientY<Math.floor(i.top)?!0:e.clientY>Math.ceil(i.top+i.height)?!0:e.clientX<Math.floor(i.left)?!0:e.clientX>Math.ceil(i.left+i.width)?!0:void 0}function n(e){o(e)&&(r.eventManager.removeEventListener(document.body,"mousemove",n),t.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),w(e);var r=this,i=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",n)}},createBorders:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],o=this.main.style;o.position="absolute",o.top=0,o.left=0;for(var n=0;5>n;n++){var r=t[n],i=document.createElement("div");i.className="wtBorder "+(this.settings.className||""),this.settings[r]&&this.settings[r].hide&&(i.className+=" hidden"),o=i.style,o.backgroundColor=this.settings[r]&&this.settings[r].color?this.settings[r].color:e.border.color,o.height=this.settings[r]&&this.settings[r].width?this.settings[r].width+"px":e.border.width+"px",o.width=this.settings[r]&&this.settings[r].width?this.settings[r].width+"px":e.border.width+"px",this.main.appendChild(i)}this.top=this.main.childNodes[0],this.left=this.main.childNodes[1],this.bottom=this.main.childNodes[2],this.right=this.main.childNodes[3],this.topStyle=this.top.style,this.leftStyle=this.left.style,this.bottomStyle=this.bottom.style,this.rightStyle=this.right.style,this.corner=this.main.childNodes[4],this.corner.className+=" corner",this.cornerStyle=this.corner.style,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.height=this.cornerDefaultStyle.height,this.cornerStyle.border=[this.cornerDefaultStyle.borderWidth,this.cornerDefaultStyle.borderStyle,this.cornerDefaultStyle.borderColor].join(" "),v()&&this.createMultipleSelectorHandles(),this.disappear(),this.wot.wtTable.bordersHolder||(this.wot.wtTable.bordersHolder=document.createElement("div"),this.wot.wtTable.bordersHolder.className="htBorders",this.wot.wtTable.spreader.appendChild(this.wot.wtTable.bordersHolder)),this.wot.wtTable.bordersHolder.insertBefore(this.main,this.wot.wtTable.bordersHolder.firstChild)},createMultipleSelectorHandles:function(){this.selectionHandles={topLeft:document.createElement("DIV"),topLeftHitArea:document.createElement("DIV"),bottomRight:document.createElement("DIV"),bottomRightHitArea:document.createElement("DIV")};var e=10,t=40;this.selectionHandles.topLeft.className="topLeftSelectionHandle",this.selectionHandles.topLeftHitArea.className="topLeftSelectionHandle-HitArea",this.selectionHandles.bottomRight.className="bottomRightSelectionHandle",this.selectionHandles.bottomRightHitArea.className="bottomRightSelectionHandle-HitArea",this.selectionHandles.styles={topLeft:this.selectionHandles.topLeft.style,topLeftHitArea:this.selectionHandles.topLeftHitArea.style,bottomRight:this.selectionHandles.bottomRight.style,bottomRightHitArea:this.selectionHandles.bottomRightHitArea.style};var o={position:"absolute",height:t+"px",width:t+"px","border-radius":parseInt(t/1.5,10)+"px"};for(var n in o)o.hasOwnProperty(n)&&(this.selectionHandles.styles.bottomRightHitArea[n]=o[n],this.selectionHandles.styles.topLeftHitArea[n]=o[n]);var r={position:"absolute",height:e+"px",width:e+"px","border-radius":parseInt(e/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var i in r)r.hasOwnProperty(i)&&(this.selectionHandles.styles.bottomRight[i]=r[i],this.selectionHandles.styles.topLeft[i]=r[i]);this.main.appendChild(this.selectionHandles.topLeft),this.main.appendChild(this.selectionHandles.bottomRight),this.main.appendChild(this.selectionHandles.topLeftHitArea),this.main.appendChild(this.selectionHandles.bottomRightHitArea)},isPartRange:function(e,t){return this.wot.selections.area.cellRange&&(e!=this.wot.selections.area.cellRange.to.row||t!=this.wot.selections.area.cellRange.to.col)},updateMultipleSelectionHandlesPosition:function(e,t,o,n,r,i){var s=parseInt(this.selectionHandles.styles.topLeft.width,10),l=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(o-s,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(n-s,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(o-l/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(n-l/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(o+i,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(n+r,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(o+i-l/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(n+r-l/4,10)+"px",this.settings.border.multipleSelectionHandlesVisible&&this.settings.border.multipleSelectionHandlesVisible()?(this.selectionHandles.styles.topLeft.display="block",this.selectionHandles.styles.topLeftHitArea.display="block",this.isPartRange(e,t)?(this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"):(this.selectionHandles.styles.bottomRight.display="block",this.selectionHandles.styles.bottomRightHitArea.display="block")):(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none",this.selectionHandles.styles.topLeftHitArea.display="none",this.selectionHandles.styles.bottomRightHitArea.display="none"),e==this.wot.wtSettings.getSetting("fixedRowsTop")||t==this.wot.wtSettings.getSetting("fixedColumnsLeft")?(this.selectionHandles.styles.topLeft.zIndex="9999",this.selectionHandles.styles.topLeftHitArea.zIndex="9999"):(this.selectionHandles.styles.topLeft.zIndex="",this.selectionHandles.styles.topLeftHitArea.zIndex="")},appear:function(e){if(!this.disabled){var t,o,n,r,i,s,l,a,u,w,b,y,_,R,M,S,E,O,T;T=this.wot.wtTable.getRenderedRowsCount();for(var k=0;T>k;k++){var A=this.wot.wtTable.rowFilter.renderedToSource(k);if(A>=e[0]&&A<=e[2]){_=A;break}}for(var H=T-1;H>=0;H--){var P=this.wot.wtTable.rowFilter.renderedToSource(H);if(P>=e[0]&&P<=e[2]){M=P;break}}T=this.wot.wtTable.getRenderedColumnsCount();for(var x=0;T>x;x++){var L=this.wot.wtTable.columnFilter.renderedToSource(x);if(L>=e[1]&&L<=e[3]){R=L;break}}for(var N=T-1;N>=0;N--){var D=this.wot.wtTable.columnFilter.renderedToSource(N);if(D>=e[1]&&D<=e[3]){S=D;break}}if(void 0===_||void 0===R)return void this.disappear();t=_!==M||R!==S,o=this.wot.wtTable.getCell(new C(_,R)),n=t?this.wot.wtTable.getCell(new C(M,S)):o,r=m(o),i=t?m(n):r,s=m(this.wot.wtTable.TABLE),a=r.top,b=i.top+p(n)-a,w=r.left,y=i.left+g(n)-w,l=a-s.top-1,u=w-s.left-1;var I=d(o);parseInt(I.borderTopWidth,10)>0&&(l+=1,b=b>0?b-1:0),parseInt(I.borderLeftWidth,10)>0&&(u+=1,y=y>0?y-1:0),this.topStyle.top=l+"px",this.topStyle.left=u+"px",this.topStyle.width=y+"px",this.topStyle.display="block",this.leftStyle.top=l+"px",this.leftStyle.left=u+"px",this.leftStyle.height=b+"px",this.leftStyle.display="block";var W=Math.floor(this.settings.border.width/2);this.bottomStyle.top=l+b-W+"px",this.bottomStyle.left=u+"px",this.bottomStyle.width=y+"px",this.bottomStyle.display="block",this.rightStyle.top=l+"px",this.rightStyle.left=u+y-W+"px",this.rightStyle.height=b+1+"px",this.rightStyle.display="block",v()||!this.hasSetting(this.settings.border.cornerVisible)||this.isPartRange(M,S)?this.cornerStyle.display="none":(this.cornerStyle.top=l+b-4+"px",this.cornerStyle.left=u+y-4+"px",this.cornerStyle.borderRightWidth=this.cornerDefaultStyle.borderWidth,this.cornerStyle.width=this.cornerDefaultStyle.width,this.cornerStyle.display="block",E=c(this.wot.wtTable.TABLE),S===this.wot.getSetting("totalColumns")-1&&(O=n.offsetLeft+g(n)>=h(E),O&&(this.cornerStyle.left=Math.floor(u+y-3-parseInt(this.cornerDefaultStyle.width)/2)+"px",this.cornerStyle.borderRightWidth=0)),M===this.wot.getSetting("totalRows")-1&&(O=n.offsetTop+p(n)>=f(E),O&&(this.cornerStyle.top=Math.floor(l+b-3-parseInt(this.cornerDefaultStyle.height)/2)+"px",this.cornerStyle.borderBottomWidth=0))),v()&&this.updateMultipleSelectionHandlesPosition(_,R,l,u,y,b)}},disappear:function(){this.topStyle.display="none",this.leftStyle.display="none",this.bottomStyle.display="none",this.rightStyle.display="none",this.cornerStyle.display="none",v()&&(this.selectionHandles.styles.topLeft.display="none",this.selectionHandles.styles.bottomRight.display="none")},hasSetting:function(e){return"function"==typeof e?e():!!e}},{}),window.WalkontableBorder=y},{"cell/coords":5,eventManager:41,"helpers/browser":43,"helpers/dom/element":46,"helpers/dom/event":47,"overlay/_base.js":11}],3:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableViewportColumnsCalculator:{get:function(){return r}},__esModule:{value:!0}});var n=new WeakMap,r=function(e,t,o,r,i,s,l){var a=void 0!==arguments[7]?arguments[7]:function(e){return e};n.set(this,{viewportWidth:e,scrollOffset:t,totalColumns:o,columnWidthFn:r,overrideFn:i,onlyFullyVisible:s,stretchingColumnWidthFn:a}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=l,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()},i=r;$traceurRuntime.createClass(r,{calculate:function(){for(var e,t=0,o=!0,r=[],i=n.get(this),s=i.onlyFullyVisible,l=i.overrideFn,a=i.scrollOffset,u=i.totalColumns,d=i.viewportWidth,c=0;u>c;c++)if(e=this._getColumnWidth(c),a>=t&&!s&&(this.startColumn=c),t>=a&&a+d>=t+e&&(null==this.startColumn&&(this.startColumn=c),this.endColumn=c),r.push(t),t+=e,s||(this.endColumn=c),t>=a+d){o=!1;break}if(this.endColumn===u-1&&o)for(this.startColumn=this.endColumn;this.startColumn>0;){var h=r[this.endColumn]+e-r[this.startColumn-1];if((d>=h||!s)&&this.startColumn--,h>d)break}null!==this.startColumn&&l&&l(this),this.startPosition=r[this.startColumn],void 0==this.startPosition&&(this.startPosition=null),null!==this.startColumn&&(this.count=this.endColumn-this.startColumn+1)},refreshStretching:function(e){if("none"!==this.stretch){this.totalTargetWidth=e;for(var t=n.get(this),o=t.totalColumns,r=0,i=0;o>i;i++){var s=this._getColumnWidth(i),l=t.stretchingColumnWidthFn(void 0,i);"number"==typeof l?e-=l:r+=s}var a=e-r;if("all"===this.stretch&&a>0)this.stretchAllRatio=e/r,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&e!==1/0){var u=this._getColumnWidth(o-1),d=a+u;this.stretchLastWidth=d>=0?d:u}}},getStretchedColumnWidth:function(e,t){var o=null;return"all"===this.stretch&&0!==this.stretchAllRatio?o=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(o=this._getStretchedLastColumnWidth(e)),o},_getStretchedAllColumnWidth:function(e,t){var o=0,r=n.get(this),i=r.totalColumns;if(!this.stretchAllColumnsWidth[e]){var s=Math.round(t*this.stretchAllRatio),l=r.stretchingColumnWidthFn(s,e);void 0===l?this.stretchAllColumnsWidth[e]=s:this.stretchAllColumnsWidth[e]=isNaN(l)?this._getColumnWidth(e):l}if(this.stretchAllColumnsWidth.length===i&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var a=0;a<this.stretchAllColumnsWidth.length;a++)o+=this.stretchAllColumnsWidth[a];o!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-o)}return this.stretchAllColumnsWidth[e]},_getStretchedLastColumnWidth:function(e){var t=n.get(this),o=t.totalColumns;return e===o-1?this.stretchLastWidth:null},_getColumnWidth:function(e){var t=n.get(this).columnWidthFn(e);return void 0===t&&(t=i.DEFAULT_WIDTH),t}},{get DEFAULT_WIDTH(){return 50}}),window.WalkontableViewportColumnsCalculator=r},{}],4:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableViewportRowsCalculator:{get:function(){return r}},__esModule:{value:!0}});var n=new WeakMap,r=function(e,t,o,r,i,s,l){n.set(this,{viewportHeight:e,scrollOffset:t,totalRows:o,rowHeightFn:r,overrideFn:i,onlyFullyVisible:s,horizontalScrollbarHeight:l}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()},i=r;$traceurRuntime.createClass(r,{calculate:function(){for(var e=0,t=!0,o=[],r=n.get(this),s=r.onlyFullyVisible,l=r.overrideFn,a=r.rowHeightFn,u=r.scrollOffset,d=r.totalRows,c=r.viewportHeight,h=r.horizontalScrollbarHeight||0,f=0;d>f;f++){var m=a(f);if(void 0===m&&(m=i.DEFAULT_HEIGHT),u>=e&&!s&&(this.startRow=f),e>=u&&u+c-h>=e+m&&(null===this.startRow&&(this.startRow=f),this.endRow=f),o.push(e),e+=m,s||(this.endRow=f),e>=u+c-h){t=!1;break}}if(this.endRow===d-1&&t)for(this.startRow=this.endRow;this.startRow>0;){var p=o[this.endRow]+m-o[this.startRow-1];if((c-h>=p||!s)&&this.startRow--,p>=c-h)break}null!==this.startRow&&l&&l(this),this.startPosition=o[this.startRow],void 0==this.startPosition&&(this.startPosition=null),null!==this.startRow&&(this.count=this.endRow-this.startRow+1)}},{get DEFAULT_HEIGHT(){return 23}}),window.WalkontableViewportRowsCalculator=r},{}],5:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableCellCoords:{get:function(){return n}},__esModule:{value:!0}});var n=function(e,t){"undefined"!=typeof e&&"undefined"!=typeof t?(this.row=e,this.col=t):(this.row=null,this.col=null)};$traceurRuntime.createClass(n,{isValid:function(e){return this.row<0||this.col<0?!1:!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))},isEqual:function(e){return e===this?!0:this.row===e.row&&this.col===e.col},isSouthEastOf:function(e){return this.row>=e.row&&this.col>=e.col},isNorthWestOf:function(e){return this.row<=e.row&&this.col<=e.col},isSouthWestOf:function(e){return this.row>=e.row&&this.col<=e.col},isNorthEastOf:function(e){return this.row<=e.row&&this.col>=e.col}},{}),window.WalkontableCellCoords=n},{}],6:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableCellRange:{get:function(){return i}},__esModule:{value:!0}});var n,r=(n=e("cell/coords"),n&&n.__esModule&&n||{"default":n}).WalkontableCellCoords,i=function(e,t,o){this.highlight=e,this.from=t,this.to=o},s=i;$traceurRuntime.createClass(i,{isValid:function(e){return this.from.isValid(e)&&this.to.isValid(e)},isSingle:function(){return this.from.row===this.to.row&&this.from.col===this.to.col},getHeight:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1},getWidth:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1},includes:function(e){var t=e,o=t.row,n=t.col,r=this.getTopLeftCorner(),i=this.getBottomRightCorner();return r.row<=o&&i.row>=o&&r.col<=n&&i.col>=n},includesRange:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())},isEqual:function(e){return Math.min(this.from.row,this.to.row)==Math.min(e.from.row,e.to.row)&&Math.max(this.from.row,this.to.row)==Math.max(e.from.row,e.to.row)&&Math.min(this.from.col,this.to.col)==Math.min(e.from.col,e.to.col)&&Math.max(this.from.col,this.to.col)==Math.max(e.from.col,e.to.col)},overlaps:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())},isSouthEastOf:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)},isNorthWestOf:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)},expand:function(e){var t=this.getTopLeftCorner(),o=this.getBottomRightCorner();return e.row<t.row||e.col<t.col||e.row>o.row||e.col>o.col?(this.from=new r(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new r(Math.max(o.row,e.row),Math.max(o.col,e.col)),!0):!1},expandByRange:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getTopLeftCorner(),o=this.getBottomRightCorner(),n=(this.getTopRightCorner(),this.getBottomLeftCorner(),e.getTopLeftCorner()),i=e.getBottomRightCorner(),l=Math.min(t.row,n.row),a=Math.min(t.col,n.col),u=Math.max(o.row,i.row),d=Math.max(o.col,i.col),c=new r(l,a),h=new r(u,d),f=new s(c,c,h).isCorner(this.from,e),m=e.isEqual(new s(c,c,h));return f&&!m&&(this.from.col>c.col&&(c.col=d,h.col=a),this.from.row>c.row&&(c.row=u,h.row=l)),this.from=c,this.to=h,!0},getDirection:function(){return this.from.isNorthWestOf(this.to)?"NW-SE":this.from.isNorthEastOf(this.to)?"NE-SW":this.from.isSouthEastOf(this.to)?"SE-NW":this.from.isSouthWestOf(this.to)?"SW-NE":void 0},setDirection:function(e){switch(e){case"NW-SE":this.from=this.getTopLeftCorner(),this.to=this.getBottomRightCorner();break;case"NE-SW":this.from=this.getTopRightCorner(),this.to=this.getBottomLeftCorner();break;case"SE-NW":this.from=this.getBottomRightCorner(),this.to=this.getTopLeftCorner();break;case"SW-NE":this.from=this.getBottomLeftCorner(),this.to=this.getTopRightCorner()}},getTopLeftCorner:function(){return new r(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},getBottomRightCorner:function(){return new r(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getTopRightCorner:function(){return new r(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getBottomLeftCorner:function(){return new r(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},isCorner:function(e,t){return t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new r(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new r(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new r(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new r(t.to.row,t.to.col)))?!0:e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner())},getOppositeCorner:function(e,t){if(!(e instanceof r))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new r(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new r(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new r(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new r(t.to.row,t.to.col)))return this.getTopLeftCorner()}return e.isEqual(this.getBottomRightCorner())?this.getTopLeftCorner():e.isEqual(this.getTopLeftCorner())?this.getBottomRightCorner():e.isEqual(this.getTopRightCorner())?this.getBottomLeftCorner():e.isEqual(this.getBottomLeftCorner())?this.getTopRightCorner():void 0},getBordersSharedWith:function(e){if(!this.includesRange(e))return[];var t={top:Math.min(this.from.row,this.to.row),bottom:Math.max(this.from.row,this.to.row),left:Math.min(this.from.col,this.to.col),right:Math.max(this.from.col,this.to.col)},o={top:Math.min(e.from.row,e.to.row),bottom:Math.max(e.from.row,e.to.row),left:Math.min(e.from.col,e.to.col),right:Math.max(e.from.col,e.to.col)},n=[];return t.top==o.top&&n.push("top"),t.right==o.right&&n.push("right"),t.bottom==o.bottom&&n.push("bottom"),t.left==o.left&&n.push("left"),n},getInner:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),o=[],n=e.row;n<=t.row;n++)for(var i=e.col;i<=t.col;i++)this.from.row===n&&this.from.col===i||this.to.row===n&&this.to.col===i||o.push(new r(n,i));return o},getAll:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),o=[],n=e.row;n<=t.row;n++)for(var i=e.col;i<=t.col;i++)e.row===n&&e.col===i?o.push(e):t.row===n&&t.col===i?o.push(t):o.push(new r(n,i));return o},forAll:function(e){for(var t=this.getTopLeftCorner(),o=this.getBottomRightCorner(),n=t.row;n<=o.row;n++)for(var r=t.col;r<=o.col;r++){var i=e(n,r);if(i===!1)return}}},{}),window.WalkontableCellRange=i},{"cell/coords":5}],7:[function(e,t,o){"use strict";Object.defineProperties(o,{Walkontable:{get:function(){return P}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f,m,p,g,w=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),v=w.addClass,b=w.fastInnerText,C=w.isVisible,y=w.removeClass,_=(r=e("helpers/object"),r&&r.__esModule&&r||{"default":r}).objectEach,R=(i=e("helpers/string"),i&&i.__esModule&&i||{"default":i}),M=R.toUpperCaseFirst,S=R.randomString,E=(s=e("event"),s&&s.__esModule&&s||{"default":s}).WalkontableEvent,O=(l=e("overlays"),l&&l.__esModule&&l||{"default":l}).WalkontableOverlays,T=(a=e("scroll"),a&&a.__esModule&&a||{"default":a}).WalkontableScroll,k=(u=e("settings"),u&&u.__esModule&&u||{"default":u}).WalkontableSettings,A=(d=e("table"),d&&d.__esModule&&d||{"default":d}).WalkontableTable,H=(c=e("viewport"),c&&c.__esModule&&c||{"default":c}).WalkontableViewport,P=((h=e("overlay/_base.js"),h&&h.__esModule&&h||{"default":h}).WalkontableOverlay,(f=e("overlay/top.js"),f&&f.__esModule&&f||{"default":f}).WalkontableTopOverlay,(m=e("overlay/left.js"),m&&m.__esModule&&m||{"default":m}).WalkontableLeftOverlay,(p=e("overlay/debug.js"),p&&p.__esModule&&p||{"default":p}).WalkontableDebugOverlay,(g=e("overlay/topLeftCorner.js"),g&&g.__esModule&&g||{"default":g}).WalkontableTopLeftCornerOverlay,function(e){var t=[];if(this.guid="wt_"+S(),e.cloneSource?(this.cloneSource=e.cloneSource,this.cloneOverlay=e.cloneOverlay,this.wtSettings=e.cloneSource.wtSettings,this.wtTable=new A(this,e.table,e.wtRootElement),this.wtScroll=new T(this),this.wtViewport=e.cloneSource.wtViewport,this.wtEvent=new E(this),this.selections=this.cloneSource.selections):(this.wtSettings=new k(this,e),this.wtTable=new A(this,e.table),this.wtScroll=new T(this),this.wtViewport=new H(this),this.wtEvent=new E(this),this.selections=this.getSetting("selections"),this.wtOverlays=new O(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var o=0,n=this.wtTable.THEAD.childNodes[0].childNodes.length;n>o;o++)t.push(this.wtTable.THEAD.childNodes[0].childNodes[o].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,o){b(o,t[e])}])}this.drawn=!1,this.drawInterrupted=!1});$traceurRuntime.createClass(P,{draw:function(){var e=void 0!==arguments[0]?arguments[0]:!1;return this.drawInterrupted=!1,e||C(this.wtTable.TABLE)?this.wtTable.draw(e):this.drawInterrupted=!0,this},getCell:function(e){var t=void 0!==arguments[1]?arguments[1]:!1;if(!t)return this.wtTable.getCell(e);var o=this.wtSettings.getSetting("totalRows"),n=this.wtSettings.getSetting("fixedRowsTop"),r=this.wtSettings.getSetting("fixedRowsBottom"),i=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<n&&e.col<i)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<n)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<i&&e.row>=o-r){if(this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<i)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<o&&e.row>o-r&&this.wtOverlays.bottomOverlay.clone)return this.wtOverlays.bottomOverlay.clone.wtTable.getCell(e)}return this.wtTable.getCell(e)},update:function(e,t){return this.wtSettings.update(e,t)},scrollVertical:function(e){return this.wtOverlays.topOverlay.scrollTo(e),this.getSetting("onScrollVertically"),this},scrollHorizontal:function(e){return this.wtOverlays.leftOverlay.scrollTo(e),this.getSetting("onScrollHorizontally"),this},scrollViewport:function(e){return this.wtScroll.scrollViewport(e),this},getViewport:function(){return[this.wtTable.getFirstVisibleRow(),this.wtTable.getFirstVisibleColumn(),this.wtTable.getLastVisibleRow(),this.wtTable.getLastVisibleColumn()]},getOverlayName:function(){return this.cloneOverlay?this.cloneOverlay.type:"master"},isOverlayName:function(e){return this.cloneOverlay?this.cloneOverlay.type===e:!1},exportSettingsAsClassNames:function(){var e=this,t={rowHeaders:["array"],columnHeaders:["array"]},o=[],n=[];_(t,function(t,r){t.indexOf("array")>-1&&e.getSetting(r).length&&n.push("ht"+M(r)),o.push("ht"+M(r))}),y(this.wtTable.wtRootElement.parentNode,o),v(this.wtTable.wtRootElement.parentNode,n)},getSetting:function(e,t,o,n,r){return this.wtSettings.getSetting(e,t,o,n,r)},hasSetting:function(e){return this.wtSettings.has(e)},destroy:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{}),window.Walkontable=P},{event:8,"helpers/dom/element":46,"helpers/object":52,"helpers/string":54,"overlay/_base.js":11,"overlay/debug.js":12,"overlay/left.js":13,"overlay/top.js":14,"overlay/topLeftCorner.js":15,overlays:16,scroll:17,settings:19,table:20,viewport:22}],8:[function(e,t,o){"use strict";function n(e){var t=this,o=h(e);this.instance=e;var n=[null,null];this.dblClickTimeout=[null,null];var r,i=function(e){var o=t.parentCell(e.realTarget);u(e.realTarget,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,e.realTarget):o.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,o.coords,o.TD,t.instance),2!==e.button&&o.TD&&(n[0]=o.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){n[0]=null},1e3))},s=function(e){t.instance.touchMoving=!0},l=function(e){o.addEventListener(this,"touchmove",s),t.checkIfTouchMove=setTimeout(function(){return t.instance.touchMoving===!0?(t.instance.touchMoving=void 0,void o.removeEventListener("touchmove",s,!1)):void i(e)},30)},f=function(e){var o,n,r;t.instance.hasSetting("onCellMouseOver")&&(o=t.instance.wtTable.TABLE,n=a(e.realTarget,["TD","TH"],o),r=t.instance.cloneSource||t.instance,n&&n!==r.lastMouseOver&&d(n,o)&&(r.lastMouseOver=n,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(n),n,t.instance)))},m=function(e){if(2!==e.button){var o=t.parentCell(e.realTarget);o.TD===n[0]&&o.TD===n[1]?(u(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,o.coords,o.TD,t.instance):t.instance.getSetting("onCellDblClick",e,o.coords,o.TD,t.instance),n[0]=null,n[1]=null):o.TD===n[0]&&(n[1]=o.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){n[1]=null},500))}},p=function(e){clearTimeout(r),e.preventDefault(),m(e)};if(o.addEventListener(this.instance.wtTable.holder,"mousedown",i),o.addEventListener(this.instance.wtTable.TABLE,"mouseover",f),o.addEventListener(this.instance.wtTable.holder,"mouseup",m),this.instance.wtTable.holder.parentNode.parentNode&&c()&&!t.instance.wtTable.isWorkingOnClone()){var g="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");o.addEventListener(this.instance.wtTable.holder,"touchstart",function(e){t.instance.touchApplied=!0,d(e.target,g)&&l.call(e.target,e)}),o.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,d(e.target,g)&&p.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),o.addEventListener(this.instance.wtTable.holder,"scroll",function(e){clearTimeout(t.instance.momentumScrolling._timeout),t.instance.momentumScrolling.ongoing||t.instance.getSetting("onBeforeTouchScroll"),t.instance.momentumScrolling.ongoing=!0,t.instance.momentumScrolling._timeout=setTimeout(function(){t.instance.touchApplied||(t.instance.momentumScrolling.ongoing=!1,t.instance.getSetting("onAfterMomentumScroll"))},200)})}o.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),o.destroy()}}Object.defineProperties(o,{WalkontableEvent:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),a=l.closest,u=l.hasClass,d=l.isChildOf,c=(i=e("helpers/browser"),i&&i.__esModule&&i||{"default":i}).isMobileBrowser,h=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).eventManager;n.prototype.parentCell=function(e){var t={},o=this.instance.wtTable.TABLE,n=a(e,["TD","TH"],o),r=a(n,["TABLE"]);return n&&d(n,o)&&r==o?(t.coords=this.instance.wtTable.getCoords(n),t.TD=n):u(e,"wtBorder")&&u(e,"current")?(t.coords=this.instance.selections.current.cellRange.highlight,t.TD=this.instance.wtTable.getCell(t.coords)):u(e,"wtBorder")&&u(e,"area")&&this.instance.selections.area.cellRange&&(t.coords=this.instance.selections.area.cellRange.to,t.TD=this.instance.wtTable.getCell(t.coords)),t},window.WalkontableEvent=n},{eventManager:41,"helpers/browser":43,"helpers/dom/element":46}],9:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableColumnFilter:{get:function(){return n}},__esModule:{value:!0}});var n=function(e,t,o){this.offset=e,this.total=t,this.countTH=o};$traceurRuntime.createClass(n,{offsetted:function(e){return e+this.offset},unOffsetted:function(e){return e-this.offset},renderedToSource:function(e){return this.offsetted(e)},sourceToRendered:function(e){return this.unOffsetted(e)},offsettedTH:function(e){return e-this.countTH},unOffsettedTH:function(e){return e+this.countTH},visibleRowHeadedColumnToSourceColumn:function(e){return this.renderedToSource(this.offsettedTH(e))},sourceColumnToVisibleRowHeadedColumn:function(e){
return this.unOffsettedTH(this.sourceToRendered(e))}},{}),window.WalkontableColumnFilter=n},{}],10:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableRowFilter:{get:function(){return n}},__esModule:{value:!0}});var n=function(e,t,o){this.offset=e,this.total=t,this.countTH=o};$traceurRuntime.createClass(n,{offsetted:function(e){return e+this.offset},unOffsetted:function(e){return e-this.offset},renderedToSource:function(e){return this.offsetted(e)},sourceToRendered:function(e){return this.unOffsetted(e)},offsettedTH:function(e){return e-this.countTH},unOffsettedTH:function(e){return e+this.countTH},visibleColHeadedRowToSourceRow:function(e){return this.renderedToSource(this.offsettedTH(e))},sourceRowToVisibleColHeadedRow:function(e){return this.unOffsettedTH(this.sourceToRendered(e))}},{}),window.WalkontableRowFilter=n},{}],11:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableOverlay:{get:function(){return h}},__esModule:{value:!0}});var n,r,i,s=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),l=s.getScrollableElement,a=s.getTrimmingContainer,u=(r=e("helpers/object"),r&&r.__esModule&&r||{"default":r}).defineGetter,d=(i=e("eventManager"),i&&i.__esModule&&i||{"default":i}).eventManager,c={},h=function(e){u(this,"wot",e,{writable:!1}),this.instance=this.wot,this.type="",this.mainTableScrollableElement=null,this.TABLE=this.wot.wtTable.TABLE,this.hider=this.wot.wtTable.hider,this.spreader=this.wot.wtTable.spreader,this.holder=this.wot.wtTable.holder,this.wtRootElement=this.wot.wtTable.wtRootElement,this.trimmingContainer=a(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.areElementSizesAdjusted=!1},f=h;$traceurRuntime.createClass(h,{shouldBeRendered:function(){return!0},updateTrimmingContainer:function(){this.trimmingContainer=a(this.hider.parentNode.parentNode)},updateMainScrollableElement:function(){this.mainTableScrollableElement=l(this.wot.wtTable.TABLE)},makeClone:function(e){if(-1===f.CLONE_TYPES.indexOf(e))throw new Error('Clone type "'+e+'" is not supported.');var t=document.createElement("DIV"),o=document.createElement("TABLE");t.className="ht_clone_"+e+" handsontable",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.overflow="hidden",o.className=this.wot.wtTable.TABLE.className,t.appendChild(o),this.type=e,this.wot.wtTable.wtRootElement.parentNode.appendChild(t);var n=this.wot.getSetting("preventOverflow");return n===!0||"horizontal"===n&&this.type===f.CLONE_TOP||"vertical"===n&&this.type===f.CLONE_LEFT?this.mainTableScrollableElement=window:this.mainTableScrollableElement=l(this.wot.wtTable.TABLE),new Walkontable({cloneSource:this.wot,cloneOverlay:this,table:o})},refresh:function(){var e=void 0!==arguments[0]?arguments[0]:!1,t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t},destroy:function(){d(this.clone).destroy()}},{get CLONE_TOP(){return"top"},get CLONE_BOTTOM(){return"bottom"},get CLONE_LEFT(){return"left"},get CLONE_TOP_LEFT_CORNER(){return"top_left_corner"},get CLONE_BOTTOM_LEFT_CORNER(){return"bottom_left_corner"},get CLONE_DEBUG(){return"debug"},get CLONE_TYPES(){return[f.CLONE_TOP,f.CLONE_BOTTOM,f.CLONE_LEFT,f.CLONE_TOP_LEFT_CORNER,f.CLONE_BOTTOM_LEFT_CORNER,f.CLONE_DEBUG]},registerOverlay:function(e,t){if(-1===f.CLONE_TYPES.indexOf(e))throw new Error("Unsupported overlay ("+e+").");c[e]=t},createOverlay:function(e,t){return new c[e](t)},isOverlayTypeOf:function(e,t){return e&&c[t]?e instanceof c[t]:!1}}),window.WalkontableOverlay=h},{eventManager:41,"helpers/dom/element":46,"helpers/object":52}],12:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableDebugOverlay:{get:function(){return l}},__esModule:{value:!0}});var n,r,i=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).addClass,s=(r=e("_base"),r&&r.__esModule&&r||{"default":r}).WalkontableOverlay,l=function(e){$traceurRuntime.superConstructor(a).call(this,e),this.clone=this.makeClone(s.CLONE_DEBUG),this.clone.wtTable.holder.style.opacity=.4,this.clone.wtTable.holder.style.textShadow="0 0 2px #ff0000",i(this.clone.wtTable.holder.parentNode,"wtDebugVisible")},a=l;$traceurRuntime.createClass(l,{},{},s),window.WalkontableDebugOverlay=l,s.registerOverlay(s.CLONE_DEBUG,l)},{_base:11,"helpers/dom/element":46}],13:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableLeftOverlay:{get:function(){return w}},__esModule:{value:!0}});var n,r,i=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),s=i.addClass,l=i.getScrollbarWidth,a=i.getScrollLeft,u=i.getWindowScrollTop,d=i.hasClass,c=i.outerWidth,h=i.innerHeight,f=i.removeClass,m=i.setOverlayPosition,p=i.resetCssTransform,g=(r=e("_base"),r&&r.__esModule&&r||{"default":r}).WalkontableOverlay,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.clone=this.makeClone(g.CLONE_LEFT)},v=w;$traceurRuntime.createClass(w,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||o&&"horizontal"===o)t=this.getScrollPosition(),p(e);else{var n,r,i=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(i.left),l=Math.ceil(i.right);r=this.wot.wtTable.hider.style.top,r=""===r?0:r,n=0>s&&l-e.offsetWidth>0?-s:0,t=n,n+="px",m(e,n,r)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}},setScrollPosition:function(e){this.mainTableScrollableElement===window?window.scrollTo(e,u()):this.mainTableScrollableElement.scrollLeft=e},onScroll:function(){this.wot.getSetting("onScrollVertically")},sumCellSizes:function(e,t){for(var o=0,n=this.wot.wtSettings.defaultColumnWidth;t>e;)o+=this.wot.wtTable.getStretchedColumnWidth(e)||n,e++;return o},adjustElementsSize:function(){var e=void 0!==arguments[0]?arguments[0]:!1;this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,o=t.clientHeight===t.offsetHeight?0:l(),n=this.clone.wtTable.holder.parentNode,r=n.style,i=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===i){var s=this.wot.wtViewport.getWorkspaceHeight()-o;s=Math.min(s,h(this.wot.wtTable.wtRootElement)),r.height=s+"px"}else r.height="";this.clone.wtTable.holder.style.height=r.height,e=c(this.clone.wtTable.TABLE),r.width=(0===e?e:e+4)+"px"},adjustRootChildrenSize:function(){var e=l();this.clone.wtTable.hider.style.height=this.hider.style.height,this.clone.wtTable.holder.style.height=this.clone.wtTable.holder.parentNode.style.height,0===e&&(e=30),this.clone.wtTable.holder.style.width=parseInt(this.clone.wtTable.holder.parentNode.style.width,10)+e+"px"},applyToDOM:function(){var e=this.wot.getSetting("totalColumns");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition)this.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the columnsRenderCalculator");this.spreader.style.left="0"}this.spreader.style.right="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.top=""},scrollTo:function(e,t){var o=this.getTableParentOffset(),n=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=n.wtTable.holder,i=0;t&&r.offsetWidth!==r.clientWidth&&(i=l()),t?(o+=this.sumCellSizes(0,e+1),o-=this.wot.wtViewport.getViewportWidth()):o+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),o+=i,this.setScrollPosition(o)},getTableParentOffset:function(){var e=this.wot.getSetting("preventOverflow"),t=0;return e||this.trimmingContainer!==window||(t=this.wot.wtTable.holderOffset.left),t},getScrollPosition:function(){return a(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){var t=this.wot.wtTable.holder.parentNode,o=this.wot.getSetting("rowHeaders"),n=this.wot.getSetting("fixedColumnsLeft");if(n&&!o.length)s(t,"innerBorderLeft");else if(!n&&o.length){var r=d(t,"innerBorderLeft");e?s(t,"innerBorderLeft"):f(t,"innerBorderLeft"),(!r&&e||r&&!e)&&this.wot.wtOverlays.adjustElementsSize()}}},{},g),window.WalkontableLeftOverlay=w,g.registerOverlay(g.CLONE_LEFT,w)},{_base:11,"helpers/dom/element":46}],14:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableTopOverlay:{get:function(){return w}},__esModule:{value:!0}});var n,r,i=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),s=i.addClass,l=i.getScrollbarWidth,a=i.getScrollTop,u=i.getWindowScrollLeft,d=i.hasClass,c=i.outerHeight,h=i.innerWidth,f=i.removeClass,m=i.setOverlayPosition,p=i.resetCssTransform,g=(r=e("_base"),r&&r.__esModule&&r||{"default":r}).WalkontableOverlay,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.clone=this.makeClone(g.CLONE_TOP)},v=w;$traceurRuntime.createClass(w,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length)},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0,o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||o&&"vertical"===o)t=this.getScrollPosition(),p(e);else{var n,r,i=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(i.top),l=Math.ceil(i.bottom);n=this.wot.wtTable.hider.style.left,n=""===n?0:n,r=0>s&&l-e.offsetHeight>0?-s:0,t=r,r+="px",m(e,n,r)}this.adjustHeaderBordersPosition(t),this.adjustElementsSize()}},setScrollPosition:function(e){this.mainTableScrollableElement===window?window.scrollTo(u(),e):this.mainTableScrollableElement.scrollTop=e},onScroll:function(){this.wot.getSetting("onScrollHorizontally")},sumCellSizes:function(e,t){for(var o=0,n=this.wot.wtSettings.settings.defaultRowHeight;t>e;){var r=this.wot.wtTable.getRowHeight(e);o+=void 0===r?n:r,e++}return o},adjustElementsSize:function(){var e=void 0!==arguments[0]?arguments[0]:!1;this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,o=t.clientWidth===t.offsetWidth?0:l(),n=this.clone.wtTable.holder.parentNode,r=n.style,i=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===i){var s=this.wot.wtViewport.getWorkspaceWidth()-o;s=Math.min(s,h(this.wot.wtTable.wtRootElement)),r.width=s+"px"}else r.width="";this.clone.wtTable.holder.style.width=r.width,e=c(this.clone.wtTable.TABLE),r.height=(0===e?e:e+4)+"px"},adjustRootChildrenSize:function(){var e=l();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"},applyToDOM:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.left=""},scrollTo:function(e,t){var o=this.getTableParentOffset(),n=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=n.wtTable.holder,i=0;if(t&&r.offsetHeight!==r.clientHeight&&(i=l()),t){var s=this.wot.getSetting("fixedRowsBottom"),a=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));o+=this.sumCellSizes(0,e+1),o-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(a-s,a),o+=1}else o+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);o+=i,this.setScrollPosition(o)},getTableParentOffset:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0},getScrollPosition:function(){return a(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){if(0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var t=this.wot.wtTable.holder.parentNode,o=d(t,"innerBorderTop");e||0===this.wot.getSetting("totalRows")?s(t,"innerBorderTop"):f(t,"innerBorderTop"),(!o&&e||o&&!e)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var n=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(n)for(var r=0;r<n.length;r++)n[r].style["border-left-width"]=0}}},{},g),window.WalkontableTopOverlay=w,g.registerOverlay(g.CLONE_TOP,w)},{_base:11,"helpers/dom/element":46}],15:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableTopLeftCornerOverlay:{get:function(){return c}},__esModule:{value:!0}});var n,r,i=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),s=i.outerHeight,l=i.outerWidth,a=i.setOverlayPosition,u=i.resetCssTransform,d=(r=e("_base"),r&&r.__esModule&&r||{"default":r}).WalkontableOverlay,c=function(e){$traceurRuntime.superConstructor(h).call(this,e),this.clone=this.makeClone(d.CLONE_TOP_LEFT_CORNER)},h=c;$traceurRuntime.createClass(c,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedRowsTop")&&!this.wot.getSetting("columnHeaders").length||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)},resetFixedPosition:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=s(this.clone.wtTable.TABLE),o=l(this.clone.wtTable.TABLE),n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var r=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(r.top),d=Math.ceil(r.left),c=Math.ceil(r.bottom),h=Math.ceil(r.right),f="0",m="0";n&&"vertical"!==n||0>d&&h-e.offsetWidth>0&&(f=-d+"px"),n&&"horizontal"!==n||0>i&&c-e.offsetHeight>0&&(m=-i+"px"),a(e,f,m)}else u(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===o?o:o+4)+"px"}}},{},d),window.WalkontableTopLeftCornerOverlay=c,d.registerOverlay(d.CLONE_TOP_LEFT_CORNER,c)},{_base:11,"helpers/dom/element":46}],16:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableOverlays:{get:function(){return w}},__esModule:{value:!0}});var n,r,i,s,l,a=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),u=a.getScrollableElement,d=a.getScrollbarWidth,c=a.getScrollLeft,h=a.getScrollTop,f=(r=e("helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,m=(i=e("helpers/unicode"),i&&i.__esModule&&i||{"default":i}).isKey,p=(s=e("helpers/browser"),s&&s.__esModule&&s||{"default":s}).isMobileBrowser,g=(l=e("eventManager"),l&&l.__esModule&&l||{"default":l}).EventManager,w=function(e){this.wot=e,this.instance=this.wot,this.eventManager=new g(this.wot),this.wot.update("scrollbarWidth",d()),this.wot.update("scrollbarHeight",d()),this.scrollableElement=u(this.wot.wtTable.TABLE),this.topOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_TOP,this.wot),"undefined"==typeof WalkontableBottomOverlay?this.bottomOverlay={needFullRender:!1}:this.bottomOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_BOTTOM,this.wot),this.leftOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_LEFT,this.wot),this.topOverlay.needFullRender&&this.leftOverlay.needFullRender&&(this.topLeftCornerOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,this.wot)),this.bottomOverlay.needFullRender&&this.leftOverlay.needFullRender&&"undefined"!=typeof WalkontableBottomLeftCornerOverlay?this.bottomLeftCornerOverlay=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER,this.wot):this.bottomLeftCornerOverlay={needFullRender:!1},this.wot.getSetting("debug")&&(this.debug=WalkontableOverlay.createOverlay(WalkontableOverlay.CLONE_DEBUG,this.wot)),this.destroyed=!1,this.keyPressed=!1,this.spreaderLastSize={width:null,height:null},this.overlayScrollPositions={master:{top:0,left:0},top:{top:null,left:0},bottom:{top:null,left:0},left:{top:0,left:null}},this.pendingScrollCallbacks={master:{top:0,left:0},top:{left:0},bottom:{left:0},left:{top:0}},this.verticalScrolling=!1,this.horizontalScrolling=!1,this.delegatedScrollCallback=!1,this.registeredListeners=[],this.registerListeners()};$traceurRuntime.createClass(w,{refreshAll:function(){if(this.wot.drawn){if(!this.wot.wtTable.holder.parentNode)return void this.destroy();this.wot.draw(!0),this.verticalScrolling&&this.leftOverlay.onScroll(),this.horizontalScrolling&&this.topOverlay.onScroll(),this.verticalScrolling=!1,this.horizontalScrolling=!1}},registerListeners:function(){var e=this,t=this.topOverlay.mainTableScrollableElement,o=this.leftOverlay.mainTableScrollableElement,n=[];for(n.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),n.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),n.push([document,"visibilitychange",function(){return e.onKeyUp()}]),n.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==o&&n.push([o,"scroll",function(t){return e.onTableScroll(t)}]),this.topOverlay.needFullRender&&(n.push([this.topOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),n.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.bottomOverlay.needFullRender&&(n.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),n.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.leftOverlay.needFullRender&&(n.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),n.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&n.push([window,"wheel",function(t){var o,n=t.wheelDeltaY||t.deltaY,r=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?o="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?o="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)&&(o="left"),"top"==o&&0!==n?t.preventDefault():"left"==o&&0!==r?t.preventDefault():"bottom"==o&&0!==n&&t.preventDefault()}]);n.length;){var r=n.pop();this.eventManager.addEventListener(r[0],r[1],r[2]),this.registeredListeners.push(r)}},deregisterListeners:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}},onTableScroll:function(e){if(!p()){var t=this.leftOverlay.mainTableScrollableElement,o=this.topOverlay.mainTableScrollableElement,n=e.target;this.keyPressed&&(o!==window&&n!==window&&!e.target.contains(o)||t!==window&&n!==window&&!e.target.contains(t))||("scroll"===e.type?this.syncScrollPositions(e):this.translateMouseWheelToScroll(e))}},onKeyDown:function(e){this.keyPressed=m(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")},onKeyUp:function(){this.keyPressed=!1},translateMouseWheelToScroll:function(e){var t,o=this.topOverlay.clone.wtTable.holder,n=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,r=this.leftOverlay.clone.wtTable.holder,i={type:"wheel"},s=e.target,l=e.wheelDeltaY||-1*e.deltaY,a=e.wheelDeltaX||-1*e.deltaX;for(1===e.deltaMode&&(l=120*l,a=120*a);s!=document&&null!=s;){if(s.className.indexOf("wtHolder")>-1){t=s;break}s=s.parentNode}return i.target=t,t==o?this.syncScrollPositions(i,-.2*l):t==n?this.syncScrollPositions(i,-.2*l):t==r&&this.syncScrollPositions(i,-.2*a),!1},syncScrollPositions:function(e){var t=void 0!==arguments[1]?arguments[1]:null;if(!this.destroyed){if(0===arguments.length)return void this.syncScrollWithMaster();var o,n,r,i=this.leftOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,l=e.target,a=0,u=!1,d=!1,f=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(o=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(r=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(n=this.leftOverlay.clone.wtTable.holder),l===document&&(l=window),l===i||l===s?(a=c(f?this.scrollableElement:l),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=a,u=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(o&&o.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.top.left++,o.scrollLeft=a,d=i!==window),r&&r.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.bottom.left++,r.scrollLeft=a,d=i!==window)),a=h(l),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=a,u=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:n&&n.scrollTop!==a&&(null==t&&this.pendingScrollCallbacks.left.top++,n.scrollTop=a,d=s!==window)):l===r?(a=c(l),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=a,u=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==t&&this.pendingScrollCallbacks.master.left++,i.scrollLeft=a,o&&o.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.top.left++,o.scrollLeft=a,d=s!==window)),null!==t&&(u=!0,s.scrollTop+=t)):l===o?(a=c(l),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=a,u=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==t&&this.pendingScrollCallbacks.master.left++,i.scrollLeft=a),null!==t&&(u=!0,s.scrollTop+=t),r&&r.scrollLeft!==a&&(null==t&&this.pendingScrollCallbacks.bottom.left++,r.scrollLeft=a,d=s!==window)):l===n&&(a=h(l),this.overlayScrollPositions.left.top!==a&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=a,u=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==t&&this.pendingScrollCallbacks.master.top++,s.scrollTop=a)),null!==t&&(u=!0,s.scrollLeft+=t)),!this.keyPressed&&u&&"scroll"===e.type&&(this.delegatedScrollCallback?this.delegatedScrollCallback=!1:this.refreshAll(),d&&(this.delegatedScrollCallback=!0))}},syncScrollWithMaster:function(){var e=this.topOverlay.mainTableScrollableElement;this.topOverlay.needFullRender&&(this.topOverlay.clone.wtTable.holder.scrollLeft=e.scrollLeft),this.leftOverlay.needFullRender&&(this.leftOverlay.clone.wtTable.holder.scrollTop=e.scrollTop)},updateMainScrollableElements:function(){this.deregisterListeners(),this.leftOverlay.updateMainScrollableElement(),this.topOverlay.updateMainScrollableElement(),this.bottomOverlay.needFullRender&&this.bottomOverlay.updateMainScrollableElement(),this.scrollableElement=u(this.wot.wtTable.TABLE),this.registerListeners()},destroy:function(){this.eventManager.destroy(),this.topOverlay.destroy(),this.bottomOverlay.clone&&this.bottomOverlay.destroy(),this.leftOverlay.destroy(),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.destroy(),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.destroy(),this.debug&&this.debug.destroy(),this.destroyed=!0},refresh:function(){var e=void 0!==arguments[0]?arguments[0]:!1;if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,o=t.clientWidth,n=t.clientHeight;o===this.spreaderLastSize.width&&n===this.spreaderLastSize.height||(this.spreaderLastSize.width=o,this.spreaderLastSize.height=n,this.adjustElementsSize())}this.bottomOverlay.clone&&this.bottomOverlay.refresh(e),this.leftOverlay.refresh(e),this.topOverlay.refresh(e),this.topLeftCornerOverlay&&this.topLeftCornerOverlay.refresh(e),this.bottomLeftCornerOverlay&&this.bottomLeftCornerOverlay.clone&&this.bottomLeftCornerOverlay.refresh(e),this.debug&&this.debug.refresh(e)},adjustElementsSize:function(){var e=void 0!==arguments[0]?arguments[0]:!1,t=this.wot.getSetting("totalColumns"),o=this.wot.getSetting("totalRows"),n=this.wot.wtViewport.getRowHeaderWidth(),r=this.wot.wtViewport.getColumnHeaderHeight(),i=this.wot.wtTable.hider.style;i.width=n+this.leftOverlay.sumCellSizes(0,t)+"px",i.height=r+this.topOverlay.sumCellSizes(0,o)+1+"px",this.topOverlay.adjustElementsSize(e),this.leftOverlay.adjustElementsSize(e),this.bottomOverlay.clone&&this.bottomOverlay.adjustElementsSize(e)},applyToDOM:function(){this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted||this.adjustElementsSize(),this.topOverlay.applyToDOM(),this.bottomOverlay.clone&&this.bottomOverlay.applyToDOM(),this.leftOverlay.applyToDOM()},getParentOverlay:function(e){if(!e)return null;var t=[this.topOverlay,this.leftOverlay,this.bottomOverlay,this.topLeftCornerOverlay,this.bottomLeftCornerOverlay],o=null;return f(t,function(t,n){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(o=t.clone)}),o}},{}),window.WalkontableOverlays=w},{eventManager:41,"helpers/array":42,"helpers/browser":43,"helpers/dom/element":46,"helpers/unicode":55}],17:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableScroll:{get:function(){return m}},__esModule:{value:!0}});var n,r,i=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),s=i.innerHeight,l=i.innerWidth,a=i.getScrollLeft,u=i.getScrollTop,d=i.offset,c=(r=e("helpers/number"),r&&r.__esModule&&r||{"default":r}),h=c.rangeEach,f=c.rangeEachReverse,m=function(e){this.wot=e,this.instance=e};$traceurRuntime.createClass(m,{scrollViewport:function(e){if(this.wot.drawn){var t=this._getVariables(),o=t.topOverlay,n=t.leftOverlay,r=t.totalRows,i=t.totalColumns,s=t.fixedRowsTop,l=t.fixedRowsBottom,a=t.fixedColumnsLeft;if(e.row<0||e.row>r-1)throw new Error("row "+e.row+" does not exist");if(e.col<0||e.col>i-1)throw new Error("column "+e.col+" does not exist");e.row>=s&&e.row<this.getFirstVisibleRow()?o.scrollTo(e.row):e.row>this.getLastVisibleRow()&&e.row<r-l&&o.scrollTo(e.row,!0),e.col>=a&&e.col<this.getFirstVisibleColumn()?n.scrollTo(e.col):e.col>this.getLastVisibleColumn()&&n.scrollTo(e.col,!0)}},getFirstVisibleRow:function(){var e=this._getVariables(),t=e.topOverlay,o=e.wtTable,n=e.wtViewport,r=e.totalRows,i=e.fixedRowsTop,l=o.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var a=d(o.wtRootElement),c=s(o.hider),h=s(window),m=u(window);if(a.top+c-h<=m){var p=n.getColumnHeaderHeight();p+=t.sumCellSizes(0,i),f(r,1,function(e){return p+=t.sumCellSizes(e-1,e),a.top+c-p<=m?(l=e,!1):void 0})}}return l},getLastVisibleRow:function(){var e=this._getVariables(),t=e.topOverlay,o=e.wtTable,n=e.wtViewport,r=e.totalRows,i=o.getLastVisibleRow();if(t.mainTableScrollableElement===window){var l=d(o.wtRootElement),a=s(window),c=u(window);if(l.top>c){var f=n.getColumnHeaderHeight();h(1,r,function(e){return f+=t.sumCellSizes(e-1,e),l.top+f-c>=a?(i=e-2,!1):void 0})}}return i},getFirstVisibleColumn:function(){var e=this._getVariables(),t=e.leftOverlay,o=e.wtTable,n=e.wtViewport,r=e.totalColumns,i=(e.fixedColumnsLeft,o.getFirstVisibleColumn());if(t.mainTableScrollableElement===window){var s=d(o.wtRootElement),u=l(o.hider),c=l(window),h=a(window);if(s.left+u-c<=h){var m=n.getRowHeaderWidth();f(r,1,function(e){return m+=t.sumCellSizes(e-1,e),s.left+u-m<=h?(i=e,!1):void 0})}}return i},getLastVisibleColumn:function(){var e=this._getVariables(),t=e.leftOverlay,o=e.wtTable,n=e.wtViewport,r=e.totalColumns,i=o.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var s=d(o.wtRootElement),u=l(window),c=a(window);if(s.left>c){var f=n.getRowHeaderWidth();h(1,r,function(e){return f+=t.sumCellSizes(e-1,e),s.left+f-c>=u?(i=e-2,!1):void 0})}}return i},_getVariables:function(){var e=this.wot,t=e.wtOverlays.topOverlay,o=e.wtOverlays.leftOverlay,n=e.wtTable,r=e.wtViewport,i=e.getSetting("totalRows"),s=e.getSetting("totalColumns"),l=e.getSetting("fixedRowsTop"),a=e.getSetting("fixedRowsBottom"),u=e.getSetting("fixedColumnsLeft");return{topOverlay:t,leftOverlay:o,wtTable:n,wtViewport:r,totalRows:i,totalColumns:s,fixedRowsTop:l,fixedRowsBottom:a,fixedColumnsLeft:u}}},{}),window.WalkontableScroll=m},{"helpers/dom/element":46,"helpers/number":51}],18:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableSelection:{get:function(){return c}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).addClass,a=(r=e("border"),r&&r.__esModule&&r||{"default":r}).WalkontableBorder,u=(i=e("cell/coords"),i&&i.__esModule&&i||{"default":i}).WalkontableCellCoords,d=(s=e("cell/range"),s&&s.__esModule&&s||{"default":s}).WalkontableCellRange,c=function(e,t){this.settings=e,this.cellRange=t||null,this.instanceBorders={}};$traceurRuntime.createClass(c,{getBorder:function(e){return this.instanceBorders[e.guid]?this.instanceBorders[e.guid]:void(this.instanceBorders[e.guid]=new a(e,this.settings))},isEmpty:function(){return null===this.cellRange},add:function(e){this.isEmpty()?this.cellRange=new d(e,e,e):this.cellRange.expand(e)},replace:function(e,t){if(!this.isEmpty()){if(this.cellRange.from.isEqual(e))return this.cellRange.from=t,!0;if(this.cellRange.to.isEqual(e))return this.cellRange.to=t,!0}return!1},clear:function(){this.cellRange=null},getCorners:function(){var e=this.cellRange.getTopLeftCorner(),t=this.cellRange.getBottomRightCorner();return[e.row,e.col,t.row,t.col]},addClassAtCoords:function(e,t,o,n){var r=e.wtTable.getCell(new u(t,o));"object"==typeof r&&l(r,n)},draw:function(e){if(this.isEmpty()){if(this.settings.border){var t=this.getBorder(e);t&&t.disappear()}}else{for(var o,n,r,i=e.wtTable.getRenderedRowsCount(),s=e.wtTable.getRenderedColumnsCount(),a=this.getCorners(),u=0;s>u;u++)n=e.wtTable.columnFilter.renderedToSource(u),n>=a[1]&&n<=a[3]&&(r=e.wtTable.getColumnHeader(n),r&&this.settings.highlightColumnClassName&&l(r,this.settings.highlightColumnClassName));for(var d=0;i>d;d++){o=e.wtTable.rowFilter.renderedToSource(d),o>=a[0]&&o<=a[2]&&(r=e.wtTable.getRowHeader(o),r&&this.settings.highlightRowClassName&&l(r,this.settings.highlightRowClassName));for(var c=0;s>c;c++)n=e.wtTable.columnFilter.renderedToSource(c),o>=a[0]&&o<=a[2]&&n>=a[1]&&n<=a[3]?this.settings.className&&this.addClassAtCoords(e,o,n,this.settings.className):o>=a[0]&&o<=a[2]?this.settings.highlightRowClassName&&this.addClassAtCoords(e,o,n,this.settings.highlightRowClassName):n>=a[1]&&n<=a[3]&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,o,n,this.settings.highlightColumnClassName)}if(e.getSetting("onBeforeDrawBorders",a,this.settings.className),this.settings.border){var h=this.getBorder(e);h&&h.appear(a)}}}},{}),window.WalkontableSelection=c},{border:2,"cell/coords":5,"cell/range":6,"helpers/dom/element":46}],19:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableSettings:{get:function(){return i}},__esModule:{value:!0}});var n,r=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).fastInnerText,i=function(e,t){var o=this;this.wot=e,this.instance=e,this.defaults={table:void 0,debug:!1,externalRowCalculator:!1,stretchH:"none",currentRowClassName:null,currentColumnClassName:null,preventOverflow:function(){return!1},data:void 0,fixedColumnsLeft:0,fixedRowsTop:0,fixedRowsBottom:0,minSpareRows:0,rowHeaders:function(){return[]},columnHeaders:function(){return[]},totalRows:void 0,totalColumns:void 0,cellRenderer:function(e,t,n){var i=o.getSetting("data",e,t);r(n,void 0===i||null===i?"":i);
},columnWidth:function(e){},rowHeight:function(e){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellDblClick:null,onCellCornerMouseDown:null,onCellCornerDblClick:null,beforeDraw:null,onDraw:null,onBeforeDrawBorders:null,onScrollVertically:null,onScrollHorizontally:null,onBeforeTouchScroll:null,onAfterMomentumScroll:null,onBeforeStretchingColumnWidth:function(e){return e},scrollbarWidth:10,scrollbarHeight:10,renderAllRows:!1,groups:!1,rowHeaderWidth:null,columnHeaderHeight:null},this.settings={};for(var n in this.defaults)if(this.defaults.hasOwnProperty(n))if(void 0!==t[n])this.settings[n]=t[n];else{if(void 0===this.defaults[n])throw new Error('A required setting "'+n+'" was not provided');this.settings[n]=this.defaults[n]}};$traceurRuntime.createClass(i,{update:function(e,t){if(void 0===t)for(var o in e)e.hasOwnProperty(o)&&(this.settings[o]=e[o]);else this.settings[e]=t;return this.wot},getSetting:function(e,t,o,n,r){return"function"==typeof this.settings[e]?this.settings[e](t,o,n,r):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]},has:function(e){return!!this.settings[e]}},{}),window.WalkontableSettings=i},{"helpers/dom/element":46}],20:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableTable:{get:function(){return R}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),d=u.getStyle,c=u.getTrimmingContainer,h=u.hasClass,f=u.index,m=u.offset,p=u.removeClass,g=u.removeTextNodes,w=u.overlayContainsElement,v=u.closest,b=(r=e("cell/coords"),r&&r.__esModule&&r||{"default":r}).WalkontableCellCoords,C=((i=e("cell/range"),i&&i.__esModule&&i||{"default":i}).WalkontableCellRange,(s=e("filter/column"),s&&s.__esModule&&s||{"default":s}).WalkontableColumnFilter),y=(l=e("filter/row"),l&&l.__esModule&&l||{"default":l}).WalkontableRowFilter,_=(a=e("tableRenderer"),a&&a.__esModule&&a||{"default":a}).WalkontableTableRenderer,R=function(e,t){this.wot=e,this.instance=this.wot,this.TABLE=t,this.TBODY=null,this.THEAD=null,this.COLGROUP=null,this.tableOffset=0,this.holderOffset=0,g(this.TABLE),this.spreader=this.createSpreader(this.TABLE),this.hider=this.createHider(this.spreader),this.holder=this.createHolder(this.hider),this.wtRootElement=this.holder.parentNode,this.alignOverlaysWithTrimmingContainer(),this.fixTableDomTree(),this.colgroupChildrenLength=this.COLGROUP.childNodes.length,this.theadChildrenLength=this.THEAD.firstChild?this.THEAD.firstChild.childNodes.length:0,this.tbodyChildrenLength=this.TBODY.childNodes.length,this.rowFilter=null,this.columnFilter=null};$traceurRuntime.createClass(R,{fixTableDomTree:function(){this.TBODY=this.TABLE.querySelector("tbody"),this.TBODY||(this.TBODY=document.createElement("tbody"),this.TABLE.appendChild(this.TBODY)),this.THEAD=this.TABLE.querySelector("thead"),this.THEAD||(this.THEAD=document.createElement("thead"),this.TABLE.insertBefore(this.THEAD,this.TBODY)),this.COLGROUP=this.TABLE.querySelector("colgroup"),this.COLGROUP||(this.COLGROUP=document.createElement("colgroup"),this.TABLE.insertBefore(this.COLGROUP,this.THEAD)),this.wot.getSetting("columnHeaders").length&&!this.THEAD.childNodes.length&&this.THEAD.appendChild(document.createElement("TR"))},createSpreader:function(e){var t,o=e.parentNode;return o&&1===o.nodeType&&h(o,"wtHolder")||(t=document.createElement("div"),t.className="wtSpreader",o&&o.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t},createHider:function(e){var t,o=e.parentNode;return o&&1===o.nodeType&&h(o,"wtHolder")||(t=document.createElement("div"),t.className="wtHider",o&&o.insertBefore(t,e),t.appendChild(e)),t},createHolder:function(e){var t,o=e.parentNode;return o&&1===o.nodeType&&h(o,"wtHolder")||(t=document.createElement("div"),t.style.position="relative",t.className="wtHolder",o&&o.insertBefore(t,e),this.isWorkingOnClone()||(t.parentNode.className+="ht_master handsontable"),t.appendChild(e)),t},alignOverlaysWithTrimmingContainer:function(){var e=c(this.wtRootElement);if(!this.isWorkingOnClone())if(this.holder.parentNode.style.position="relative",e===window){var t=this.wot.getSetting("preventOverflow");t||(this.holder.style.overflow="visible",this.wtRootElement.style.overflow="visible")}else this.holder.style.width=d(e,"width"),this.holder.style.height=d(e,"height"),this.holder.style.overflow=""},isWorkingOnClone:function(){return!!this.wot.cloneSource},draw:function(e){var t=this.instance.getSetting("totalRows");if(this.isWorkingOnClone()||(this.holderOffset=m(this.holder),e=this.wot.wtViewport.createRenderCalculators(e)),e)this.isWorkingOnClone()||this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays&&this.wot.wtOverlays.refresh(!0);else{this.isWorkingOnClone()?this.tableOffset=this.wot.cloneSource.wtTable.tableOffset:this.tableOffset=m(this.TABLE);var o;o=WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP_LEFT_CORNER)?0:WalkontableOverlay.isOverlayTypeOf(this.instance.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM)||WalkontableOverlay.isOverlayTypeOf(this.instance.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER)?Math.max(t-this.wot.getSetting("fixedRowsBottom"),0):this.wot.wtViewport.rowsRenderCalculator.startRow;var n;n=WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_DEBUG)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_LEFT)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_TOP_LEFT_CORNER)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER)?0:this.wot.wtViewport.columnsRenderCalculator.startColumn,this.rowFilter=new y(o,t,this.wot.getSetting("columnHeaders").length),this.columnFilter=new C(n,this.wot.getSetting("totalColumns"),this.wot.getSetting("rowHeaders").length),this.alignOverlaysWithTrimmingContainer(),this._doDraw()}return this.refreshSelections(e),this.isWorkingOnClone()||(this.wot.wtOverlays.topOverlay.resetFixedPosition(),this.wot.wtOverlays.bottomOverlay.clone&&this.wot.wtOverlays.bottomOverlay.resetFixedPosition(),this.wot.wtOverlays.leftOverlay.resetFixedPosition(),this.wot.wtOverlays.topLeftCornerOverlay&&this.wot.wtOverlays.topLeftCornerOverlay.resetFixedPosition(),this.instance.wtOverlays.bottomLeftCornerOverlay&&this.instance.wtOverlays.bottomLeftCornerOverlay.clone&&this.wot.wtOverlays.bottomLeftCornerOverlay.resetFixedPosition()),this.wot.drawn=!0,this},_doDraw:function(){var e=new _(this);e.render()},removeClassFromCells:function(e){for(var t=this.TABLE.querySelectorAll("."+e),o=0,n=t.length;n>o;o++)p(t[o],e)},refreshSelections:function(e){if(this.wot.selections){var t=this.wot.selections.length;if(e)for(var o=0;t>o;o++)this.wot.selections[o].settings.className&&this.removeClassFromCells(this.wot.selections[o].settings.className),this.wot.selections[o].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[o].settings.highlightRowClassName),this.wot.selections[o].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[o].settings.highlightColumnClassName);for(var n=0;t>n;n++)this.wot.selections[n].draw(this.wot,e)}},getCell:function(e){if(this.isRowBeforeRenderedRows(e.row))return-1;if(this.isRowAfterRenderedRows(e.row))return-2;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e.row)];return t?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e.col)]:void 0},getColumnHeader:function(e){var t=void 0!==arguments[1]?arguments[1]:0,o=this.THEAD.childNodes[t];return o?o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]:void 0},getRowHeader:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0},getCoords:function(e){"TD"!==e.nodeName&&"TH"!==e.nodeName&&(e=v(e,["TD","TH"]));var t=e.parentNode,o=t.parentNode,n=f(t),r=e.cellIndex;return w(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,e)||w(WalkontableOverlay.CLONE_TOP,e)?"THEAD"===o.nodeName&&(n-=o.childNodes.length):n=o===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(n):this.rowFilter.renderedToSource(n),r=w(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,e)||w(WalkontableOverlay.CLONE_LEFT,e)?this.columnFilter.offsettedTH(r):this.columnFilter.visibleRowHeadedColumnToSourceColumn(r),new b(n,r)},getTrForRow:function(e){return this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)]},getFirstRenderedRow:function(){return this.wot.wtViewport.rowsRenderCalculator.startRow},getFirstVisibleRow:function(){return this.wot.wtViewport.rowsVisibleCalculator.startRow},getFirstRenderedColumn:function(){return this.wot.wtViewport.columnsRenderCalculator.startColumn},getFirstVisibleColumn:function(){return this.wot.wtViewport.columnsVisibleCalculator.startColumn},getLastRenderedRow:function(){return this.wot.wtViewport.rowsRenderCalculator.endRow},getLastVisibleRow:function(){return this.wot.wtViewport.rowsVisibleCalculator.endRow},getLastRenderedColumn:function(){return this.wot.wtViewport.columnsRenderCalculator.endColumn},getLastVisibleColumn:function(){return this.wot.wtViewport.columnsVisibleCalculator.endColumn},isRowBeforeRenderedRows:function(e){return this.rowFilter.sourceToRendered(e)<0&&e>=0},isRowAfterViewport:function(e){return this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()},isRowAfterRenderedRows:function(e){return this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()},isColumnBeforeViewport:function(e){return this.columnFilter.sourceToRendered(e)<0&&e>=0},isColumnAfterViewport:function(e){return this.columnFilter.sourceToRendered(e)>this.getLastVisibleColumn()},isLastRowFullyVisible:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()},isLastColumnFullyVisible:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()},getRenderedColumnsCount:function(){var e=this.wot.wtViewport.columnsRenderCalculator.count,t=this.wot.getSetting("totalColumns");if(this.wot.isOverlayName(WalkontableOverlay.CLONE_DEBUG))e=t;else if(this.wot.isOverlayName(WalkontableOverlay.CLONE_LEFT)||this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP_LEFT_CORNER)||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))return Math.min(this.wot.getSetting("fixedColumnsLeft"),t);return e},getRenderedRowsCount:function(){var e=this.wot.wtViewport.rowsRenderCalculator.count,t=this.wot.getSetting("totalRows");return this.wot.isOverlayName(WalkontableOverlay.CLONE_DEBUG)?e=t:this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP)||this.wot.isOverlayName(WalkontableOverlay.CLONE_TOP_LEFT_CORNER)?e=Math.min(this.wot.getSetting("fixedRowsTop"),t):(this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))&&(e=Math.min(this.wot.getSetting("fixedRowsBottom"),t)),e},getVisibleRowsCount:function(){return this.wot.wtViewport.rowsVisibleCalculator.count},allRowsInViewport:function(){return this.wot.getSetting("totalRows")==this.getVisibleRowsCount()},getRowHeight:function(e){var t=this.wot.wtSettings.settings.rowHeight(e),o=this.wot.wtViewport.oversizedRows[e];return void 0!==o&&(t=void 0===t?o:Math.max(t,o)),t},getColumnHeaderHeight:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,o=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==o&&(t=t?Math.max(t,o):o),t},getVisibleColumnsCount:function(){return this.wot.wtViewport.columnsVisibleCalculator.count},allColumnsInViewport:function(){return this.wot.getSetting("totalColumns")==this.getVisibleColumnsCount()},getColumnWidth:function(e){var t=this.wot.wtSettings.settings.columnWidth;return"function"==typeof t?t=t(e):"object"==typeof t&&(t=t[e]),t||this.wot.wtSettings.settings.defaultColumnWidth},getStretchedColumnWidth:function(e){var t=this.getColumnWidth(e),o=null==t?this.instance.wtSettings.settings.defaultColumnWidth:t,n=this.wot.wtViewport.columnsRenderCalculator;if(n){var r=n.getStretchedColumnWidth(e,o);r&&(o=r)}return o}},{}),window.WalkontableTable=R},{"cell/coords":5,"cell/range":6,"filter/column":9,"filter/row":10,"helpers/dom/element":46,tableRenderer:21}],21:[function(e,t,o){"use strict";function n(e,t){var o=document.createElement("TH");return t.insertBefore(o,e),t.removeChild(e),o}function r(e,t){var o=document.createElement("TD");return t.insertBefore(o,e),t.removeChild(e),o}Object.defineProperties(o,{WalkontableTableRenderer:{get:function(){return m}},__esModule:{value:!0}});var i,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),l=s.addClass,a=s.empty,u=s.getScrollbarWidth,d=s.hasClass,c=s.innerHeight,h=s.outerWidth,f=!1,m=function(e){this.wtTable=e,this.wot=e.instance,this.instance=e.instance,this.rowFilter=e.rowFilter,this.columnFilter=e.columnFilter,this.TABLE=e.TABLE,this.THEAD=e.THEAD,this.TBODY=e.TBODY,this.COLGROUP=e.COLGROUP,this.rowHeaders=[],this.rowHeaderCount=0,this.columnHeaders=[],this.columnHeaderCount=0,this.fixedRowsTop=0,this.fixedRowsBottom=0};$traceurRuntime.createClass(m,{render:function(){this.wtTable.isWorkingOnClone()||this.wot.getSetting("beforeDraw",!0),this.rowHeaders=this.wot.getSetting("rowHeaders"),this.rowHeaderCount=this.rowHeaders.length,this.fixedRowsTop=this.wot.getSetting("fixedRowsTop"),this.fixedRowsBottom=this.wot.getSetting("fixedRowsBottom"),this.columnHeaders=this.wot.getSetting("columnHeaders"),this.columnHeaderCount=this.columnHeaders.length;var e,t=this.wtTable.getRenderedColumnsCount(),o=this.wtTable.getRenderedRowsCount(),n=this.wot.getSetting("totalColumns"),r=this.wot.getSetting("totalRows"),i=!1;if((WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM)||WalkontableOverlay.isOverlayTypeOf(this.wot.cloneOverlay,WalkontableOverlay.CLONE_BOTTOM_LEFT_CORNER))&&(this.columnHeaders=[],this.columnHeaderCount=0),n>0&&(this.adjustAvailableNodes(),i=!0,this.renderColumnHeaders(),this.renderRows(r,o,t),this.wtTable.isWorkingOnClone()||(e=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(t),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),i||this.adjustAvailableNodes(),this.removeRedundantRows(o),this.wtTable.isWorkingOnClone()&&!this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.markOversizedRows(),this.wtTable.isWorkingOnClone())this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize();else{this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1);var s=h(this.wtTable.hider),l=h(this.wtTable.TABLE);if(0!==s&&l!==s&&this.adjustColumnWidths(t),this.wot.wtOverlays.applyToDOM(),e!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var a=this.wtTable.getFirstRenderedColumn(),u=this.wtTable.getLastRenderedColumn(),d=this.wot.getSetting("rowHeaderWidth");if(null!=d)for(var c=0;c<this.rowHeaderCount;c++)this.COLGROUP.childNodes[c].style.width=(isNaN(d)?d[c]:d)+"px";for(var f=a;u>f;f++){var m=this.wtTable.getStretchedColumnWidth(f),p=this.columnFilter.sourceToRendered(f);this.COLGROUP.childNodes[p+this.rowHeaderCount].style.width=m+"px"}}this.wot.getSetting("onDraw",!0)}},removeRedundantRows:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--},renderRows:function(e,t,o){for(var n,r,i=0,s=this.rowFilter.renderedToSource(i),l=this.wtTable.isWorkingOnClone();e>s&&s>=0&&(!f&&i>1e3&&(f=!0,console.warn('Performance tip: Handsontable rendered more than 1000 visible rows. Consider limiting the number of rendered rows by specifying the table height and/or turning off the "renderAllRows" option.')),void 0===t||i!==t);){if(r=this.getOrCreateTrForRow(i,r),this.renderRowHeaders(s,r),this.adjustColumns(r,o+this.rowHeaderCount),n=this.renderCells(s,r,o),l&&!this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.resetOversizedRow(s),r.firstChild){var a=this.wot.wtTable.getRowHeight(s);a?(a--,r.firstChild.style.height=a+"px"):r.firstChild.style.height=""}i++,s=this.rowFilter.renderedToSource(i)}},resetOversizedRow:function(e){this.wot.getSetting("externalRowCalculator")||this.wot.wtViewport.oversizedRows&&this.wot.wtViewport.oversizedRows[e]&&(this.wot.wtViewport.oversizedRows[e]=void 0)},markOversizedRows:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,o,n,r,i=this.instance.wtTable.TBODY.childNodes.length,s=i*this.instance.wtSettings.settings.defaultRowHeight,l=c(this.instance.wtTable.TBODY)-1;this.instance.getSetting("totalRows");if(s!==l||this.instance.getSetting("fixedRowsBottom"))for(;i;)i--,o=this.instance.wtTable.rowFilter.renderedToSource(i),e=this.instance.wtTable.getRowHeight(o),n=this.instance.wtTable.getTrForRow(o),r=n.querySelector("th"),t=r?c(r):c(n)-1,(!e&&this.instance.wtSettings.settings.defaultRowHeight<t||t>e)&&(this.instance.wtViewport.oversizedRows[o]=++t)}},markOversizedColumnHeaders:function(){var e=this.wot.getOverlayName();if(this.columnHeaderCount&&!this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]&&!this.wtTable.isWorkingOnClone()){for(var t=this.wtTable.getRenderedColumnsCount(),o=0;o<this.columnHeaderCount;o++)for(var n=-1*this.rowHeaderCount;t>n;n++)this.markIfOversizedColumnHeader(n);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}},adjustColumnHeaderHeights:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,o=this.wot.wtViewport.oversizedColumnHeaders,n=0,r=e.length;r>n;n++)if(o[n]){if(0===t[n].childNodes.length)return;t[n].childNodes[0].style.height=o[n]+"px"}},markIfOversizedColumnHeader:function(e){for(var t,o,n,r=this.wot.wtTable.columnFilter.renderedToSource(e),i=this.columnHeaderCount,s=this.wot.wtSettings.settings.defaultRowHeight,l=this.wot.getSetting("columnHeaderHeight")||[];i;)i--,t=this.wot.wtTable.getColumnHeaderHeight(i),o=this.wot.wtTable.getColumnHeader(r,i),o&&(n=c(o),(!t&&n>s||n>t)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=n),Array.isArray(l)?null!=l[i]&&(this.wot.wtViewport.oversizedColumnHeaders[i]=l[i]):isNaN(l)||(this.wot.wtViewport.oversizedColumnHeaders[i]=l),this.wot.wtViewport.oversizedColumnHeaders[i]<(l[i]||l)&&(this.wot.wtViewport.oversizedColumnHeaders[i]=l[i]||l))},renderCells:function(e,t,o){for(var n,i,s=0;o>s;s++)i=this.columnFilter.renderedToSource(s),n=0===s?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(i)]:n.nextSibling,"TH"==n.nodeName&&(n=r(n,t)),d(n,"hide")||(n.className=""),n.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,i,n);return n},adjustColumnWidths:function(e){var t=0,o=this.wot.cloneSource?this.wot.cloneSource:this.wot,n=o.wtTable.holder;n.offsetHeight<n.scrollHeight&&(t=u()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t);var r=this.wot.getSetting("rowHeaderWidth");if(null!=r)for(var i=0;i<this.rowHeaderCount;i++)this.COLGROUP.childNodes[i].style.width=(isNaN(r)?r[i]:r)+"px";for(var s=0;e>s;s++){var l=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(s));this.COLGROUP.childNodes[s+this.rowHeaderCount].style.width=l+"px"}},appendToTbody:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength++},getOrCreateTrForRow:function(e,t){var o;return e>=this.wtTable.tbodyChildrenLength?(o=this.createRow(),this.appendToTbody(o)):o=0===e?this.TBODY.firstChild:t.nextSibling,o.className&&o.removeAttribute("class"),o},createRow:function(){for(var e=document.createElement("TR"),t=0;t<this.rowHeaderCount;t++)e.appendChild(document.createElement("TH"));return e},renderRowHeader:function(e,t,o){o.className="",o.removeAttribute("style"),this.rowHeaders[t](e,o,t)},renderRowHeaders:function(e,t){for(var o=t.firstChild,r=0;r<this.rowHeaderCount;r++)o?"TD"==o.nodeName&&(o=n(o,t)):(o=document.createElement("TH"),t.appendChild(o)),this.renderRowHeader(e,r,o),o=o.nextSibling},adjustAvailableNodes:function(){this.adjustColGroups(),this.adjustThead()},renderColumnHeaders:function(){this.wot.getOverlayName();if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;t<this.columnHeaderCount;t++)for(var o=this.getTrForColumnHeaders(t),n=-1*this.rowHeaderCount;e>n;n++){var r=this.columnFilter.renderedToSource(n);this.renderColumnHeader(t,r,o.childNodes[n+this.rowHeaderCount])}},adjustColGroups:function(){for(var e=this.wtTable.getRenderedColumnsCount();this.wtTable.colgroupChildrenLength<e+this.rowHeaderCount;)this.COLGROUP.appendChild(document.createElement("COL")),this.wtTable.colgroupChildrenLength++;for(;this.wtTable.colgroupChildrenLength>e+this.rowHeaderCount;)this.COLGROUP.removeChild(this.COLGROUP.lastChild),this.wtTable.colgroupChildrenLength--;this.rowHeaderCount&&l(this.COLGROUP.childNodes[0],"rowHeader")},adjustThead:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var o=0,n=this.columnHeaders.length;n>o;o++){for(t=this.THEAD.childNodes[o],t||(t=document.createElement("TR"),this.THEAD.appendChild(t)),this.theadChildrenLength=t.childNodes.length;this.theadChildrenLength<e+this.rowHeaderCount;)t.appendChild(document.createElement("TH")),this.theadChildrenLength++;for(;this.theadChildrenLength>e+this.rowHeaderCount;)t.removeChild(t.lastChild),this.theadChildrenLength--}var r=this.THEAD.childNodes.length;if(r>this.columnHeaders.length)for(var i=this.columnHeaders.length;r>i;i++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&a(t)},getTrForColumnHeaders:function(e){return this.THEAD.childNodes[e]},renderColumnHeader:function(e,t,o){return o.className="",o.removeAttribute("style"),this.columnHeaders[e](t,o,e)},adjustColumns:function(e,t){for(var o=e.childNodes.length;t>o;){var n=document.createElement("TD");e.appendChild(n),o++}for(;o>t;)e.removeChild(e.lastChild),o--},removeRedundantColumns:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{}),window.WalkontableTableRenderer=m},{"helpers/dom/element":46}],22:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableViewport:{get:function(){return v}},__esModule:{value:!0}});var n,r,i,s,l,a=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],u=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),d=u.getScrollbarWidth,c=(u.getScrollTop,u.getStyle),h=u.offset,f=u.outerHeight,m=u.outerWidth,p=(i=e("eventManager"),i&&i.__esModule&&i||{"default":i}).EventManager,g=(s=e("calculator/viewportColumns"),s&&s.__esModule&&s||{"default":s}).WalkontableViewportColumnsCalculator,w=(l=e("calculator/viewportRows"),l&&l.__esModule&&l||{"default":l}).WalkontableViewportRowsCalculator,v=function(e){var t=this;this.wot=e,this.instance=this.wot,this.oversizedRows=[],this.oversizedColumnHeaders=[],this.hasOversizedColumnHeadersMarked={},this.clientHeight=0,this.containerWidth=NaN,this.rowHeaderWidth=NaN,this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,this.eventManager=new p(this.wot),this.eventManager.addEventListener(window,"resize",function(){t.clientHeight=t.getWorkspaceHeight()})};$traceurRuntime.createClass(v,{getWorkspaceHeight:function(){var e,t=this.instance.wtOverlays.topOverlay.trimmingContainer,o=0;return t===window?o=document.documentElement.clientHeight:(e=f(t),o=e>0&&t.clientHeight>0?t.clientHeight:1/0),o},getWorkspaceWidth:function(){var e,t,o=this.wot.getSetting("totalColumns"),n=this.instance.wtOverlays.leftOverlay.trimmingContainer,r=this.wot.getSetting("stretchH"),i=document.documentElement.offsetWidth,s=this.wot.getSetting("preventOverflow");return s?m(this.instance.wtTable.wtRootElement):(e=a.freezeOverlays?Math.min(i-this.getWorkspaceOffset().left,i):Math.min(this.getContainerFillWidth(),i-this.getWorkspaceOffset().left,i),n===window&&o>0&&this.sumColumnWidths(0,o-1)>e?document.documentElement.clientWidth:n!==window&&(t=c(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"),"scroll"==t||"hidden"==t||"auto"==t)?Math.max(e,n.clientWidth):"none"!==r&&r?e:Math.max(e,m(this.instance.wtTable.TABLE)))},hasVerticalScroll:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()},hasHorizontalScroll:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()},sumColumnWidths:function(e,t){for(var o=0;t>e;)o+=this.wot.wtTable.getColumnWidth(e),e++;return o},getContainerFillWidth:function(){if(this.containerWidth)return this.containerWidth;var e,t,o=this.instance.wtTable.holder;return t=document.createElement("div"),t.style.width="100%",t.style.height="1px",o.appendChild(t),e=t.offsetWidth,this.containerWidth=e,o.removeChild(t),e},getWorkspaceOffset:function(){return h(this.wot.wtTable.TABLE)},getWorkspaceActualHeight:function(){return f(this.wot.wtTable.TABLE)},getWorkspaceActualWidth:function(){return m(this.wot.wtTable.TABLE)||m(this.wot.wtTable.TBODY)||m(this.wot.wtTable.THEAD)},getColumnHeaderHeight:function(){return isNaN(this.columnHeaderHeight)&&(this.columnHeaderHeight=f(this.wot.wtTable.THEAD)),this.columnHeaderHeight},getViewportHeight:function(){var e,t=this.getWorkspaceHeight();return t===1/0?t:(e=this.getColumnHeaderHeight(),e>0&&(t-=e),t)},getRowHeaderWidth:function(){var e=this.instance.getSetting("rowHeaderWidth"),t=this.instance.getSetting("rowHeaders");if(e){this.rowHeaderWidth=0;for(var o=0,n=t.length;n>o;o++)this.rowHeaderWidth+=e[o]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var r=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var i=0,s=t.length;s>i;i++)r?(this.rowHeaderWidth+=m(r),r=r.nextSibling):this.rowHeaderWidth+=50}else this.rowHeaderWidth=0;return this.rowHeaderWidth},getViewportWidth:function(){var e,t=this.getWorkspaceWidth();return t===1/0?t:(e=this.getRowHeaderWidth(),e>0?t-e:t)},createRowsCalculator:function(){var e,t,o,n,r,i,s,l=void 0!==arguments[0]?arguments[0]:!1,a=this;return this.rowHeaderWidth=NaN,e=this.wot.wtSettings.settings.renderAllRows?1/0:this.getViewportHeight(),t=this.wot.wtOverlays.topOverlay.getScrollPosition()-this.wot.wtOverlays.topOverlay.getTableParentOffset(),0>t&&(t=0),o=this.wot.getSetting("fixedRowsTop"),r=this.wot.getSetting("fixedRowsBottom"),s=this.wot.getSetting("totalRows"),o&&(i=this.wot.wtOverlays.topOverlay.sumCellSizes(0,o),t+=i,e-=i),r&&this.wot.wtOverlays.bottomOverlay.clone&&(i=this.wot.wtOverlays.bottomOverlay.sumCellSizes(s-r,s),e-=i),n=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:d(),new w(e,t,this.wot.getSetting("totalRows"),function(e){return a.wot.wtTable.getRowHeight(e)},l?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,l,n)},createColumnsCalculator:function(){var e,t,o=void 0!==arguments[0]?arguments[0]:!1,n=this,r=this.getViewportWidth();if(this.columnHeaderHeight=NaN,e=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset(),0>e&&(e=0),t=this.wot.getSetting("fixedColumnsLeft")){var i=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,t);e+=i,r-=i}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(r-=d()),new g(r,e,this.wot.getSetting("totalColumns"),function(e){return n.wot.wtTable.getColumnWidth(e)},o?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,o,this.wot.getSetting("stretchH"),function(e,t){return n.wot.getSetting("onBeforeStretchingColumnWidth",e,t)})},createRenderCalculators:function(){var e=void 0!==arguments[0]?arguments[0]:!1;if(e){var t=this.createRowsCalculator(!0),o=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(o)||(e=!1)}return e||(this.rowsRenderCalculator=this.createRowsCalculator(),this.columnsRenderCalculator=this.createColumnsCalculator()),this.rowsVisibleCalculator=null,this.columnsVisibleCalculator=null,e},createVisibleCalculators:function(){this.rowsVisibleCalculator=this.createRowsCalculator(!0),this.columnsVisibleCalculator=this.createColumnsCalculator(!0)},areAllProposedVisibleRowsAlreadyRendered:function(e){return this.rowsVisibleCalculator?e.startRow<this.rowsRenderCalculator.startRow||e.startRow===this.rowsRenderCalculator.startRow&&e.startRow>0?!1:!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1):!1},areAllProposedVisibleColumnsAlreadyRendered:function(e){return this.columnsVisibleCalculator?e.startColumn<this.columnsRenderCalculator.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0?!1:!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1):!1}},{}),window.WalkontableViewport=v},{browser:23,"calculator/viewportColumns":3,"calculator/viewportRows":4,eventManager:41,"helpers/dom/element":46}],23:[function(e,t,o){"use strict";function n(e,t){var o=new n.Core(e,t||{});return o.init(),o}var r,i,s,l,a,u,d,c,h,f,m,p,g,w,v,b,C,y,_,R,M,S;t.exports=n,n.utils={},r=e("shims/runtime"),r&&r.__esModule&&r||{"default":r},i=e("es6collections"),i&&i.__esModule&&i||{"default":i};var E=(s=e("pluginHooks"),s&&s.__esModule&&s||{"default":s}).Hooks;n.hooks||(n.hooks=new E),n.utils.Hooks=E,l=e("core"),l&&l.__esModule&&l||{"default":l},a=e("renderers/_cellDecorator"),a&&a.__esModule&&a||{"default":a},u=e("cellTypes"),u&&u.__esModule&&u||{"default":u},d=e("plugins/jqueryHandsontable"),d&&d.__esModule&&d||{"default":d};var O=(c=e("helpers/array"),c&&c.__esModule&&c||{"default":c}),T=(h=e("helpers/browser"),h&&h.__esModule&&h||{"default":h}),k=(f=e("helpers/data"),f&&f.__esModule&&f||{"default":f}),A=(m=e("helpers/date"),m&&m.__esModule&&m||{"default":m}),H=(p=e("helpers/feature"),p&&p.__esModule&&p||{"default":p}),P=(g=e("helpers/function"),g&&g.__esModule&&g||{"default":g}),x=(w=e("helpers/mixed"),w&&w.__esModule&&w||{"default":w}),L=(v=e("helpers/number"),v&&v.__esModule&&v||{"default":v}),N=(b=e("helpers/object"),b&&b.__esModule&&b||{"default":b}),D=(C=e("helpers/setting"),C&&C.__esModule&&C||{"default":C}),I=(y=e("helpers/string"),y&&y.__esModule&&y||{"default":y}),W=(_=e("helpers/unicode"),_&&_.__esModule&&_||{"default":_}),F=(R=e("helpers/dom/element"),R&&R.__esModule&&R||{"default":R}),B=(M=e("helpers/dom/event"),M&&M.__esModule&&M||{"default":M}),j=[O,T,k,A,H,P,x,L,N,D,I,W],V=[F,B];n.buildDate="Mon Jun 06 2016 13:39:18 GMT+0200 (CEST)",n.packageName="handsontable-pro",n.version="1.4.1";var U="0.25.1";/^@@/.test(U)||(n.baseVersion=U),n.plugins={};var z=(S=e("plugins"),S&&S.__esModule&&S||{"default":S}).registerPlugin;n.plugins.registerPlugin=z,n.helper={},n.dom={},n.Dom=n.dom,O.arrayEach(j,function(e){O.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(n.helper[t]=e[t])})}),O.arrayEach(V,function(e){O.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(n.dom[t]=e[t])})})},{cellTypes:24,core:25,es6collections:"es6collections","helpers/array":42,"helpers/browser":43,"helpers/data":44,"helpers/date":45,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/feature":48,"helpers/function":49,"helpers/mixed":50,"helpers/number":51,"helpers/object":52,"helpers/setting":53,"helpers/string":54,"helpers/unicode":55,pluginHooks:60,plugins:61,"plugins/jqueryHandsontable":1,"renderers/_cellDecorator":95,"shims/runtime":102}],24:[function(e,t,o){"use strict";var n,r,i,s,l,a,u,d,c,h,f,m,p,g,w,v,b,C,y,_,R,M,S,E,O=(n=e("helpers/browser"),
n&&n.__esModule&&n||{"default":n}).isMobileBrowser,T=(r=e("editors"),r&&r.__esModule&&r||{"default":r}).getEditorConstructor,k=(i=e("renderers"),i&&i.__esModule&&i||{"default":i}).getRenderer,A=((s=e("editors/autocompleteEditor"),s&&s.__esModule&&s||{"default":s}).AutocompleteEditor,(l=e("editors/checkboxEditor"),l&&l.__esModule&&l||{"default":l}).CheckboxEditor,(a=e("editors/dateEditor"),a&&a.__esModule&&a||{"default":a}).DateEditor,(u=e("editors/dropdownEditor"),u&&u.__esModule&&u||{"default":u}).DropdownEditor,(d=e("editors/handsontableEditor"),d&&d.__esModule&&d||{"default":d}).HandsontableEditor,(c=e("editors/mobileTextEditor"),c&&c.__esModule&&c||{"default":c}).MobileTextEditor,(h=e("editors/numericEditor"),h&&h.__esModule&&h||{"default":h}).NumericEditor,(f=e("editors/passwordEditor"),f&&f.__esModule&&f||{"default":f}).PasswordEditor,(m=e("editors/selectEditor"),m&&m.__esModule&&m||{"default":m}).SelectEditor,(p=e("editors/textEditor"),p&&p.__esModule&&p||{"default":p}).TextEditor,(g=e("renderers/autocompleteRenderer"),g&&g.__esModule&&g||{"default":g}).AutocompleteRenderer,(w=e("renderers/checkboxRenderer"),w&&w.__esModule&&w||{"default":w}).CheckboxRenderer,(v=e("renderers/htmlRenderer"),v&&v.__esModule&&v||{"default":v}).HtmlRenderer,(b=e("renderers/numericRenderer"),b&&b.__esModule&&b||{"default":b}).NumericRenderer,(C=e("renderers/passwordRenderer"),C&&C.__esModule&&C||{"default":C}).PasswordRenderer,(y=e("renderers/textRenderer"),y&&y.__esModule&&y||{"default":y}).TextRenderer,(_=e("validators/autocompleteValidator"),_&&_.__esModule&&_||{"default":_}).AutocompleteValidator,(R=e("validators/dateValidator"),R&&R.__esModule&&R||{"default":R}).DateValidator,(M=e("validators/timeValidator"),M&&M.__esModule&&M||{"default":M}).TimeValidator,(S=e("validators/numericValidator"),S&&S.__esModule&&S||{"default":S}).NumericValidator,(E=e("browser"),E&&E.__esModule&&E||{"default":E})["default"]);A.AutocompleteCell={editor:T("autocomplete"),renderer:k("autocomplete"),validator:A.AutocompleteValidator},A.CheckboxCell={editor:T("checkbox"),renderer:k("checkbox")},A.TextCell={editor:T(O()?"mobile":"text"),renderer:k("text")},A.NumericCell={editor:T("numeric"),renderer:k("numeric"),validator:A.NumericValidator,dataType:"number"},A.DateCell={editor:T("date"),validator:A.DateValidator,renderer:k("autocomplete")},A.TimeCell={editor:T("text"),validator:A.TimeValidator,renderer:k("text")},A.HandsontableCell={editor:T("handsontable"),renderer:k("autocomplete")},A.PasswordCell={editor:T("password"),renderer:k("password"),copyable:!1},A.DropdownCell={editor:T("dropdown"),renderer:k("autocomplete"),validator:A.AutocompleteValidator},A.cellTypes={text:A.TextCell,date:A.DateCell,time:A.TimeCell,numeric:A.NumericCell,checkbox:A.CheckboxCell,autocomplete:A.AutocompleteCell,handsontable:A.HandsontableCell,password:A.PasswordCell,dropdown:A.DropdownCell},A.cellLookup={validator:{numeric:A.NumericValidator,autocomplete:A.AutocompleteValidator}}},{browser:23,editors:29,"editors/autocompleteEditor":31,"editors/checkboxEditor":32,"editors/dateEditor":33,"editors/dropdownEditor":34,"editors/handsontableEditor":35,"editors/mobileTextEditor":36,"editors/numericEditor":37,"editors/passwordEditor":38,"editors/selectEditor":39,"editors/textEditor":40,"helpers/browser":43,renderers:94,"renderers/autocompleteRenderer":96,"renderers/checkboxRenderer":97,"renderers/htmlRenderer":98,"renderers/numericRenderer":99,"renderers/passwordRenderer":100,"renderers/textRenderer":101,"validators/autocompleteValidator":107,"validators/dateValidator":108,"validators/numericValidator":109,"validators/timeValidator":110}],25:[function(e,t,o){"use strict";var n,r,i,s,l,a,u,d,c,h,f,m,p,g,w,v,b,C,y,_,R,M=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],S=(r=e("numeral"),r&&r.__esModule&&r||{"default":r})["default"],E=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),O=E.addClass,T=E.empty,k=E.isChildOfWebComponentTable,A=E.removeClass,H=(s=e("helpers/setting"),s&&s.__esModule&&s||{"default":s}).columnFactory,P=(l=e("helpers/browser"),l&&l.__esModule&&l||{"default":l}).isMobileBrowser,x=(a=e("dataMap"),a&&a.__esModule&&a||{"default":a}).DataMap,L=(u=e("editorManager"),u&&u.__esModule&&u||{"default":u}).EditorManager,N=(d=e("eventManager"),d&&d.__esModule&&d||{"default":d}).eventManager,D=(c=e("helpers/object"),c&&c.__esModule&&c||{"default":c}),I=D.extend,W=D.duckSchema,F=D.isObjectEquals,B=D.deepClone,j=(h=e("helpers/array"),h&&h.__esModule&&h||{"default":h}),V=j.arrayFlatten,U=j.arrayMap,z=(f=e("plugins"),f&&f.__esModule&&f||{"default":f}).getPlugin,G=(m=e("renderers"),m&&m.__esModule&&m||{"default":m}).getRenderer,$=(p=e("helpers/string"),p&&p.__esModule&&p||{"default":p}).randomString,Y=(g=e("helpers/number"),g&&g.__esModule&&g||{"default":g}).rangeEach,K=(w=e("tableView"),w&&w.__esModule&&w||{"default":w}).TableView,X=(v=e("dataSource"),v&&v.__esModule&&v||{"default":v}).DataSource,q=(b=e("helpers/data"),b&&b.__esModule&&b||{"default":b}),Q=q.translateRowsToColumns,J=q.cellMethodLookupFactory,Z=q.spreadsheetColumnLabel,ee=(C=e("3rdparty/walkontable/src/cell/coords"),C&&C.__esModule&&C||{"default":C}).WalkontableCellCoords,te=(y=e("3rdparty/walkontable/src/cell/range"),y&&y.__esModule&&y||{"default":y}).WalkontableCellRange,oe=((_=e("3rdparty/walkontable/src/selection"),_&&_.__esModule&&_||{"default":_}).WalkontableSelection,(R=e("3rdparty/walkontable/src/calculator/viewportColumns"),R&&R.__esModule&&R||{"default":R}).WalkontableViewportColumnsCalculator);M.activeGuid=null,M.Core=function(e,t){function o(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=this.validatorsInQueue-1<0?0:this.validatorsInQueue-1,this.checkIfQueueIsEmpty()},onQueueEmpty:function(e){},checkIfQueueIsEmpty:function(){0==this.validatorsInQueue&&0==e&&(e=!0,this.onQueueEmpty(this.valid))}}}function n(e,t,n){function r(){var o;e.length&&(o=M.hooks.run(g,"beforeChange",e,t),"function"==typeof o?console.warn("Your beforeChange callback returns a function. It's not supported since Handsontable 0.12.1 (and the returned function will not be executed)."):o===!1&&e.splice(0,e.length)),n()}var i=new o;i.onQueueEmpty=r;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var l=e[s][0],a=c.propToCol(e[s][1]),u=g.getCellMeta(l,a);if("numeric"===u.type&&"string"==typeof e[s][3]&&e[s][3].length>0&&(/^-?[\d\s]*(\.|\,)?\d*$/.test(e[s][3])||u.format)){var d=e[s][3].length;"undefined"==typeof u.language?S.language("en"):e[s][3].indexOf(".")===d-3&&-1===e[s][3].indexOf(",")?S.language("en"):S.language(u.language),S.validate(e[s][3])&&(e[s][3]=S().unformat(e[s][3]))}g.getCellValidator(u)&&(i.addValidatorToQueue(),g.validateCell(e[s][3],u,function(t,o){return function(n){if("boolean"!=typeof n)throw new Error("Validation error: result is not boolean");n===!1&&o.allowInvalid===!1&&(e.splice(t,1),o.valid=!0,--t),i.removeValidatorFormQueue()}}(s,u),t))}i.checkIfQueueIsEmpty()}function r(e,t){var o=e.length-1;if(!(0>o)){for(;o>=0;o--)if(null!==e[o]){if(null!=e[o][2]||null!=e[o][3]){if(d.settings.allowInsertRow)for(;e[o][0]>g.countRows()-1;)c.createRow();if("array"===g.dataType&&(!d.settings.columns||0===d.settings.columns.length)&&d.settings.allowInsertColumn)for(;c.propToCol(e[o][1])>g.countCols()-1;)c.createCol();c.set(e[o][0],e[o][1],e[o][3])}}else e.splice(o,1);g.forceFullRender=!0,f.adjustRowsAndCols(),M.hooks.run(g,"beforeChangeRender",e,t),m.refreshBorders(null,!0),g.view.wt.wtOverlays.adjustElementsSize(),M.hooks.run(g,"afterChange",e,t||"edit")}}function i(e,t,o){return"object"==typeof e?e:[[e,t,o]]}function s(e){if(e.hasOwnProperty("type")){var t,o={};if("object"==typeof e.type)t=e.type;else if("string"==typeof e.type&&(t=M.cellTypes[e.type],void 0===t))throw new Error('You declared cell type "'+e.type+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(o[n]=t[n]);return o}}function l(e){return M.hooks.run(g,"modifyRow",e)}function a(e){return M.hooks.run(g,"modifyCol",e)}function u(){throw new Error("This method cannot be called because this Handsontable instance has been destroyed")}var d,c,h,f,m,p,g=this,w=function(){},v=N(g);I(w.prototype,ne.prototype),I(w.prototype,t),I(w.prototype,s(t)),this.rootElement=e,this.isHotTableEnv=k(this.rootElement),M.eventManager.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+$(),h=new X(g),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),d={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new w,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},f={alter:function(e,t,o,n,r){function i(e,t,o,n){var r=function(){var e;return"array"===n?e=[]:"object"===n&&(e={}),e},i=U(new Array(o),function(){return r()});i.unshift(t,0),e.splice.apply(e,i)}var s;switch(o=o||1,e){case"insert_row":if(g.getSettings().maxRows===g.countSourceRows())return;s=c.createRow(t,o),i(d.cellSettings,t,o,"array"),s&&(m.isSelected()&&d.selRange.from.row>=t?(d.selRange.from.row=d.selRange.from.row+s,m.transformEnd(s,0)):m.refreshBorders());break;case"insert_col":s=c.createCol(t,o);for(var l=0,u=g.countSourceRows();u>l;l++)d.cellSettings[l]&&i(d.cellSettings[l],t,o);if(s){if(Array.isArray(g.getSettings().colHeaders)){var h=[t,0];h.length+=s,Array.prototype.splice.apply(g.getSettings().colHeaders,h)}m.isSelected()&&d.selRange.from.col>=t?(d.selRange.from.col=d.selRange.from.col+s,m.transformEnd(0,s)):m.refreshBorders()}break;case"remove_row":c.removeRow(t,o),d.cellSettings.splice(t,o);var p=g.countRows(),w=g.getSettings().fixedRowsTop;w>=t+1&&(g.getSettings().fixedRowsTop-=Math.min(o,w-t));var v=g.getSettings().fixedRowsBottom;v&&t>=p-v&&(g.getSettings().fixedRowsBottom-=Math.min(o,v)),f.adjustRowsAndCols(),m.refreshBorders();break;case"remove_col":var b=a(t);c.removeCol(t,o);for(var C=0,y=g.countSourceRows();y>C;C++)d.cellSettings[C]&&d.cellSettings[C].splice(b,o);var _=g.getSettings().fixedColumnsLeft;_>=t+1&&(g.getSettings().fixedColumnsLeft-=Math.min(o,_-t)),Array.isArray(g.getSettings().colHeaders)&&("undefined"==typeof b&&(b=-1),g.getSettings().colHeaders.splice(b,o)),f.adjustRowsAndCols(),m.refreshBorders();break;default:throw new Error('There is no such action "'+e+'"')}r||f.adjustRowsAndCols()},adjustRowsAndCols:function(){if(d.settings.minRows){var e=g.countRows();if(e<d.settings.minRows)for(var t=0,o=d.settings.minRows;o-e>t;t++)c.createRow(g.countRows(),1,!0)}if(d.settings.minSpareRows){var n=g.countEmptyRows(!0);if(n<d.settings.minSpareRows)for(;n<d.settings.minSpareRows&&g.countRows()<d.settings.maxRows;n++)c.createRow(g.countRows(),1,!0)}var r;if((d.settings.minCols||d.settings.minSpareCols)&&(r=g.countEmptyCols(!0)),d.settings.minCols&&!d.settings.columns&&g.countCols()<d.settings.minCols)for(;g.countCols()<d.settings.minCols;r++)c.createCol(g.countCols(),1,!0);if(d.settings.minSpareCols&&!d.settings.columns&&"array"===g.dataType&&r<d.settings.minSpareCols)for(;r<d.settings.minSpareCols&&g.countCols()<d.settings.maxCols;r++)c.createCol(g.countCols(),1,!0);var i=g.countRows(),s=g.countCols();if(0!==i&&0!==s||m.deselect(),m.isSelected()){var l=!1,a=d.selRange.from.row,u=d.selRange.from.col,h=d.selRange.to.row,f=d.selRange.to.col;a>i-1?(a=i-1,l=!0,h>a&&(h=a)):h>i-1&&(h=i-1,l=!0,a>h&&(a=h)),u>s-1?(u=s-1,l=!0,f>u&&(f=u)):f>s-1&&(f=s-1,l=!0,u>f&&(u=f)),l&&g.selectCell(a,u,h,f)}g.view&&g.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,o,n,r,i,s){var l,a,u,c,h=[],f={};if(a=t.length,0===a)return!1;var m,p,w,v;({row:null===o?null:o.row,col:null===o?null:o.col});switch(r){case"shift_down":for(m=o?o.col-e.col+1:0,p=o?o.row-e.row+1:0,t=Q(t),u=0,c=t.length,w=Math.max(c,m);w>u;u++)if(c>u){for(l=0,a=t[u].length;p-a>l;l++)t[u].push(t[u][l%a]);t[u].unshift(e.col+u,e.row,0),g.spliceCol.apply(g,t[u])}else t[u%c][0]=e.col+u,g.spliceCol.apply(g,t[u%c]);break;case"shift_right":for(m=o?o.col-e.col+1:0,p=o?o.row-e.row+1:0,l=0,a=t.length,v=Math.max(a,p);v>l;l++)if(a>l){for(u=0,c=t[l].length;m-c>u;u++)t[l].push(t[l][u%c]);t[l].unshift(e.row+l,e.col,0),g.spliceRow.apply(g,t[l])}else t[l%a][0]=e.row+l,g.spliceRow.apply(g,t[l%a]);break;case"overwrite":default:f.row=e.row,f.col=e.col;var b,C={row:o&&e?o.row-e.row+1:1,col:o&&e?o.col-e.col+1:1},y=0,_=0,R=!0,M=function(e){var o=void 0!==arguments[1]?arguments[1]:null,n=t[e%t.length];return null!==o?n[o%n.length]:n},S=t.length,E=o?o.row-e.row+1:0;for(a=o?E:Math.max(S,E),l=0;a>l&&!(o&&f.row>o.row&&E>S||!d.settings.allowInsertRow&&f.row>g.countRows()-1||f.row>=d.settings.maxRows);l++){var O=l-y,T=M(O).length,k=o?o.col-e.col+1:0;if(c=o?k:Math.max(T,k),f.col=e.col,b=g.getCellMeta(f.row,f.col),"paste"!==n&&"autofill"!==n||!b.skipRowOnPaste){for(_=0,u=0;c>u&&!(o&&f.col>o.col&&k>T||!d.settings.allowInsertColumn&&f.col>g.countCols()-1||f.col>=d.settings.maxCols);u++)if(b=g.getCellMeta(f.row,f.col),"paste"!==n&&"autofill"!==n||!b.skipColumnOnPaste)if(b.readOnly)f.col++;else{var A=u-_,H=M(O,A),P=g.getDataAtCell(f.row,f.col),x={row:O,col:A};if("autofill"===n){var L=g.runHooks("beforeAutofillInsidePopulate",x,i,t,s,{},C);L&&(H="undefined"==typeof L.value?H:L.value)}if(null!==H&&"object"==typeof H)if(null===P||"object"!=typeof P)R=!1;else{var N=W(P[0]||P),D=W(H[0]||H);F(N,D)?H=B(H):R=!1}else null!==P&&"object"==typeof P&&(R=!1);R&&h.push([f.row,f.col,H]),R=!0,f.col++}else _++,f.col++,c++;f.row++}else y++,f.row++,a++}g.setDataAtCell(h,null,null,n||"populateFromArray")}}},this.selection=m={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(e,t){g.selection.selectedHeader.rows=e,g.selection.selectedHeader.cols=t},begin:function(){g.selection.inProgress=!0},finish:function(){var e=g.getSelected();M.hooks.run(g,"afterSelectionEnd",e[0],e[1],e[2],e[3]),M.hooks.run(g,"afterSelectionEndByProp",e[0],g.colToProp(e[1]),e[2],g.colToProp(e[3])),g.selection.inProgress=!1},isInProgress:function(){return g.selection.inProgress},setRangeStart:function(e,t){M.hooks.run(g,"beforeSetRangeStart",e),d.selRange=new te(e,e,e),m.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){M.hooks.run(g,"beforeSetRangeStartOnly",e),d.selRange=new te(e,e,e)},setRangeEnd:function(e,t,o){if(null!==d.selRange){var n,r=!1,i=!0,s=g.view.wt.wtTable.getFirstVisibleRow(),l=g.view.wt.wtTable.getFirstVisibleColumn(),a={row:null,col:null};M.hooks.run(g,"beforeSetRangeEnd",e),g.selection.begin(),a.row=e.row<0?s:e.row,a.col=e.col<0?l:e.col,d.selRange.to=new ee(a.row,a.col),d.settings.multiSelect||(d.selRange.from=e),g.view.wt.selections.current.clear(),n=g.getCellMeta(d.selRange.highlight.row,d.selRange.highlight.col).disableVisualSelection,"string"==typeof n&&(n=[n]),(n===!1||Array.isArray(n)&&-1===n.indexOf("current"))&&g.view.wt.selections.current.add(d.selRange.highlight),g.view.wt.selections.area.clear(),(n===!1||Array.isArray(n)&&-1===n.indexOf("area"))&&m.isMultiple()&&(g.view.wt.selections.area.add(d.selRange.from),g.view.wt.selections.area.add(d.selRange.to)),(d.settings.currentRowClassName||d.settings.currentColClassName)&&(g.view.wt.selections.highlight.clear(),g.view.wt.selections.highlight.add(d.selRange.from),g.view.wt.selections.highlight.add(d.selRange.to)),M.hooks.run(g,"afterSelection",d.selRange.from.row,d.selRange.from.col,d.selRange.to.row,d.selRange.to.col),M.hooks.run(g,"afterSelectionByProp",d.selRange.from.row,c.colToProp(d.selRange.from.col),d.selRange.to.row,c.colToProp(d.selRange.to.col)),(0===d.selRange.from.row&&d.selRange.to.row===g.countRows()-1&&g.countRows()>1||0===d.selRange.from.col&&d.selRange.to.col===g.countCols()-1&&g.countCols()>1)&&(r=!0),(e.row<0||e.col<0)&&(i=!1),t!==!1&&!r&&i&&(d.selRange.from&&!m.isMultiple()?g.view.scrollViewport(d.selRange.from):g.view.scrollViewport(e)),m.refreshBorders(null,o)}},refreshBorders:function(e,t){t||p.destroyEditor(e),g.view.render(),m.isSelected()&&!t&&p.prepareEditor()},isMultiple:function(){var e=!(d.selRange.to.col===d.selRange.from.col&&d.selRange.to.row===d.selRange.from.row),t=M.hooks.run(g,"afterIsMultipleSelection",e);return e?t:void 0},transformStart:function(e,t,o,n){var r,i,s,l,a=new ee(e,t),u=0,c=0;g.runHooks("modifyTransformStart",a),r=g.countRows(),i=g.countCols(),l=g.getSettings().fixedRowsBottom,d.selRange.highlight.row+e>r-1?o&&d.settings.minSpareRows>0&&!(l&&d.selRange.highlight.row>=r-l-1)?(g.alter("insert_row",r),r=g.countRows()):d.settings.autoWrapCol&&(a.row=1-r,a.col=d.selRange.highlight.col+a.col==i-1?1-i:1):d.settings.autoWrapCol&&d.selRange.highlight.row+a.row<0&&d.selRange.highlight.col+a.col>=0&&(a.row=r-1,a.col=d.selRange.highlight.col+a.col==0?i-1:-1),d.selRange.highlight.col+a.col>i-1?o&&d.settings.minSpareCols>0?(g.alter("insert_col",i),i=g.countCols()):d.settings.autoWrapRow&&(a.row=d.selRange.highlight.row+a.row==r-1?1-r:1,a.col=1-i):d.settings.autoWrapRow&&d.selRange.highlight.col+a.col<0&&d.selRange.highlight.row+a.row>=0&&(a.row=d.selRange.highlight.row+a.row==0?r-1:-1,a.col=i-1),s=new ee(d.selRange.highlight.row+a.row,d.selRange.highlight.col+a.col),s.row<0?(u=-1,s.row=0):s.row>0&&s.row>=r&&(u=1,s.row=r-1),s.col<0?(c=-1,s.col=0):s.col>0&&s.col>=i&&(c=1,s.col=i-1),g.runHooks("afterModifyTransformStart",s,u,c),m.setRangeStart(s,n)},transformEnd:function(e,t){var o,n,r,i=new ee(e,t),s=0,l=0;g.runHooks("modifyTransformEnd",i),o=g.countRows(),n=g.countCols(),r=new ee(d.selRange.to.row+i.row,d.selRange.to.col+i.col),r.row<0?(s=-1,r.row=0):r.row>0&&r.row>=o&&(s=1,r.row=o-1),r.col<0?(l=-1,r.col=0):r.col>0&&r.col>=n&&(l=1,r.col=n-1),g.runHooks("afterModifyTransformEnd",r,s,l),m.setRangeEnd(r,!0)},isSelected:function(){return null!==d.selRange},inInSelection:function(e){return m.isSelected()?d.selRange.includes(e):!1},deselect:function(){m.isSelected()&&(g.selection.inProgress=!1,d.selRange=null,g.view.wt.selections.current.clear(),g.view.wt.selections.area.clear(),(d.settings.currentRowClassName||d.settings.currentColClassName)&&g.view.wt.selections.highlight.clear(),p.destroyEditor(),m.refreshBorders(),M.hooks.run(g,"afterDeselect"))},selectAll:function(){d.settings.multiSelect&&(m.setRangeStart(new ee(0,0)),m.setRangeEnd(new ee(g.countRows()-1,g.countCols()-1),!1))},empty:function(){if(m.isSelected()){var e,t,o=d.selRange.getTopLeftCorner(),n=d.selRange.getBottomRightCorner(),r=[];for(e=o.row;e<=n.row;e++)for(t=o.col;t<=n.col;t++)g.getCellMeta(e,t).readOnly||r.push([e,t,""]);g.setDataAtCell(r)}}},this.init=function(){h.setData(d.settings.data),M.hooks.run(g,"beforeInit"),P()&&O(g.rootElement,"mobile"),this.updateSettings(d.settings,!0),this.view=new K(this),p=new L(g,d,m,c),this.forceFullRender=!0,M.hooks.run(g,"init"),this.view.render(),"object"==typeof d.firstRun&&(M.hooks.run(g,"afterChange",d.firstRun[0],d.firstRun[1]),d.firstRun=!1),M.hooks.run(g,"afterInit")},this.validateCell=function(e,t,o,n){function r(e){var n=t.visualCol,r=t.visualRow,i=g.getCell(r,n,!0);i&&"TH"!=i.nodeName&&g.view.wt.wtSettings.settings.cellRenderer(r,n,i),o(e)}var i=g.getCellValidator(t);"[object RegExp]"===Object.prototype.toString.call(i)&&(i=function(e){return function(t,o){o(e.test(t))}}(i)),"function"==typeof i?(e=M.hooks.run(g,"beforeValidate",e,t.visualRow,t.prop,n),g._registerTimeout(setTimeout(function(){i.call(t,e,function(o){o=M.hooks.run(g,"afterValidate",o,e,t.visualRow,t.prop,n),t.valid=o,r(o),M.hooks.run(g,"postAfterValidate",o,e,t.visualRow,t.prop,n)})},0))):g._registerTimeout(setTimeout(function(){t.valid=!0,r(t.valid)},0))},this.setDataAtCell=function(e,t,o,s){var l,a,u,d=i(e,t,o),h=[];for(l=0,a=d.length;a>l;l++){if("object"!=typeof d[l])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof d[l][1])throw new Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");u=c.colToProp(d[l][1]),h.push([d[l][0],u,c.get(d[l][0],u),d[l][2]])}s||"object"!=typeof e||(s=t),n(h,s,function(){r(h,s)})},this.setDataAtRowProp=function(e,t,o,s){var l,a,u=i(e,t,o),d=[];for(l=0,a=u.length;a>l;l++)d.push([u[l][0],u[l][1],c.get(u[l][0],u[l][1]),u[l][2]]);s||"object"!=typeof e||(s=t),n(d,s,function(){r(d,s)})},this.listen=function(){M.activeGuid=g.guid},this.unlisten=function(){M.activeGuid=null},this.isListening=function(){return M.activeGuid===g.guid},this.destroyEditor=function(e){m.refreshBorders(e)},this.populateFromArray=function(e,t,o,n,r,i,s,l,a){var u;if("object"!=typeof o||"object"!=typeof o[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");return u="number"==typeof n?new ee(n,r):null,f.populateFromArray(new ee(e,t),o,u,i,s,l,a)},this.spliceCol=function(e,t,o){return c.spliceCol.apply(c,arguments)},this.spliceRow=function(e,t,o){return c.spliceRow.apply(c,arguments)},this.getSelected=function(){return m.isSelected()?[d.selRange.from.row,d.selRange.from.col,d.selRange.to.row,d.selRange.to.col]:void 0},this.getSelectedRange=function(){return m.isSelected()?d.selRange:void 0},this.render=function(){g.view&&(g.renderCall=!0,g.forceFullRender=!0,m.refreshBorders(null,!0))},this.loadData=function(e){function t(){d.cellSettings.length=0}if("object"==typeof e&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw new Error("loadData only accepts array of objects or array of arrays ("+typeof e+" given)");e=[];for(var o,n=0,r=d.settings.startRows;r>n;n++){o=[];for(var i=0,s=d.settings.startCols;s>i;i++)o.push(null);e.push(o)}}d.isPopulated=!1,w.prototype.data=e,Array.isArray(d.settings.dataSchema)||Array.isArray(e[0])?g.dataType="array":"function"==typeof d.settings.dataSchema?g.dataType="function":g.dataType="object",c&&c.destroy(),c=new x(g,d,w),h.data=e,h.dataType=g.dataType,h.colToProp=c.colToProp.bind(c),h.propToCol=c.propToCol.bind(c),t(),f.adjustRowsAndCols(),M.hooks.run(g,"afterLoadData",d.firstRun),d.firstRun?d.firstRun=[null,"loadData"]:(M.hooks.run(g,"afterChange",null,"loadData"),g.render()),d.isPopulated=!0},this.getData=function(e,t,o,n){return"undefined"==typeof e?c.getAll():c.getRange(new ee(e,t),new ee(o,n),c.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,o,n){return c.getCopyableText(new ee(e,t),new ee(o,n))},this.getCopyableData=function(e,t){return c.getCopyable(e,c.colToProp(t))},this.getSchema=function(){return c.getSchema()},this.updateSettings=function(e,t){var o,n;if("undefined"!=typeof e.rows)throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if("undefined"!=typeof e.cols)throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(o in e)"data"!==o&&(M.hooks.getRegistered().indexOf(o)>-1?("function"==typeof e[o]||Array.isArray(e[o]))&&g.addHook(o,e[o]):!t&&e.hasOwnProperty(o)&&(w.prototype[o]=e[o]));if(void 0===e.data&&void 0===d.settings.data?g.loadData(null):void 0!==e.data?g.loadData(e.data):void 0!==e.columns&&c.createMap(),n=g.countCols(),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(d.cellSettings.length=0),n>0){var r,i;for(o=0;n>o;o++)d.columnSettings[o]=H(w,d.columnsSettingConflicts),r=d.columnSettings[o].prototype,w.prototype.columns&&(i=w.prototype.columns[o],i&&(I(r,i),I(r,s(i))))}if("undefined"!=typeof e.cell)for(o in e.cell)if(e.cell.hasOwnProperty(o)){var l=e.cell[o];g.setCellMetaObject(l.row,l.col,l)}M.hooks.run(g,"afterCellMetaReset"),"undefined"!=typeof e.className&&(w.prototype.className&&A(g.rootElement,w.prototype.className),e.className&&O(g.rootElement,e.className));var a=g.rootElement.style.height;""!==a&&(a=parseInt(g.rootElement.style.height,10));var u=e.height;if("function"==typeof u&&(u=u()),t){var h=g.rootElement.getAttribute("style");h&&g.rootElement.setAttribute("data-initialstyle",g.rootElement.getAttribute("style"))}if(null===u){var p=g.rootElement.getAttribute("data-initialstyle");p&&(p.indexOf("height")>-1||p.indexOf("overflow")>-1)?g.rootElement.setAttribute("style",p):(g.rootElement.style.height="",g.rootElement.style.overflow="")}else void 0!==u&&(g.rootElement.style.height=u+"px",g.rootElement.style.overflow="hidden");if("undefined"!=typeof e.width){var v=e.width;"function"==typeof v&&(v=v()),g.rootElement.style.width=v+"px"}t||(c.clearLengthCache(),M.hooks.run(g,"afterUpdateSettings")),f.adjustRowsAndCols(),g.view&&!d.firstRun&&(g.forceFullRender=!0,m.refreshBorders(null,!0)),t||!g.view||""!==a&&""!==u&&void 0!==u||a===u||g.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=g.getSelected();if(w.prototype.getValue){if("function"==typeof w.prototype.getValue)return w.prototype.getValue.call(g);if(e)return g.getData()[e[0]][w.prototype.getValue]}else if(e)return g.getDataAtCell(e[0],e[1])},this.getSettings=function(){return d.settings},this.clear=function(){m.selectAll(),m.empty()},this.alter=function(e,t,o,n,r){f.alter(e,t,o,n,r)},this.getCell=function(e,t,o){return g.view.getCellAtCoords(new ee(e,t),o)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return c.colToProp(e)},this.propToCol=function(e){return c.propToCol(e)},this.getDataAtCell=function(e,t){return c.get(e,c.colToProp(t))},this.getDataAtRowProp=function(e,t){return c.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,c.getRange(new ee(0,e),new ee(d.settings.data.length-1,e),c.DESTINATION_RENDERER))},this.getDataAtProp=function(e){var t,o=[];return t=c.getRange(new ee(0,c.propToCol(e)),new ee(d.settings.data.length-1,c.propToCol(e)),c.DESTINATION_RENDERER),o.concat.apply(o,t)},this.getSourceData=function(e,t,o,n){var r;return r=void 0===e?h.getData():h.getByRange(new ee(e,t),new ee(o,n))},this.getSourceDataAtCol=function(e){return h.getAtColumn(e)},this.getSourceDataAtRow=function(e){return h.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return h.getAtCell(e,t)},this.getDataAtRow=function(e){var t=c.getRange(new ee(e,0),new ee(e,this.countCols()-1),c.DESTINATION_RENDERER);return t[0]},this.getDataType=function(e,t,o,n){var r=this,i=null,s=null;void 0===e&&(e=0,o=this.countRows(),t=0,n=this.countCols()),void 0===o&&(o=e),void 0===n&&(n=t);var l="mixed";return Y(Math.min(e,o),Math.max(e,o),function(e){var o=!0;return Y(Math.min(t,n),Math.max(t,n),function(t){var n=r.getCellMeta(e,t);return s=n.type,i?o=i===s:i=s,o}),l=o?s:"mixed",o}),l},this.removeCellMeta=function(e,t,o){var n=g.getCellMeta(e,t);void 0!=n[o]&&delete d.cellSettings[e][t][o]},this.setCellMetaObject=function(e,t,o){if("object"==typeof o)for(var n in o)if(o.hasOwnProperty(n)){var r=o[n];this.setCellMeta(e,t,n,r)}},this.setCellMeta=function(e,t,o,n){d.cellSettings[e]||(d.cellSettings[e]=[]),d.cellSettings[e][t]||(d.cellSettings[e][t]=new d.columnSettings[t]),d.cellSettings[e][t][o]=n,M.hooks.run(g,"afterSetCellMeta",e,t,o,n)},this.getCellsMeta=function(){return V(d.cellSettings)},this.getCellMeta=function(e,t){var o,n=c.colToProp(t),r=e,i=t;if(e=l(e),t=a(t),d.columnSettings[t]||(d.columnSettings[t]=H(w,d.columnsSettingConflicts)),d.cellSettings[e]||(d.cellSettings[e]=[]),d.cellSettings[e][t]||(d.cellSettings[e][t]=new d.columnSettings[t]),o=d.cellSettings[e][t],o.row=e,o.col=t,o.visualRow=r,o.visualCol=i,o.prop=n,o.instance=g,M.hooks.run(g,"beforeGetCellMeta",e,t,o),I(o,s(o)),o.cells){var u=o.cells.call(o,e,t,n);u&&(I(o,u),I(o,s(u)))}return M.hooks.run(g,"afterGetCellMeta",e,t,o),o},this.isColumnModificationAllowed=function(){return!("object"===g.dataType||g.getSettings().columns)};var b=J("renderer");this.getCellRenderer=function(e,t){var o=b.call(this,e,t);return G(o)},this.getCellEditor=J("editor"),this.getCellValidator=J("validator"),this.validateCells=function(e){var t=new o;e&&(t.onQueueEmpty=e);for(var n=g.countRows()-1;n>=0;){for(var r=g.countCols()-1;r>=0;)t.addValidatorToQueue(),g.validateCell(g.getDataAtCell(n,r),g.getCellMeta(n,r),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");e===!1&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),r--;n--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=d.settings.rowHeaders;return void 0!==e&&(e=M.hooks.run(g,"modifyRowHeader",e)),void 0===e?(t=[],Y(g.countRows()-1,function(e){t.push(g.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:"function"==typeof t?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!d.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==d.settings.colHeaders&&null!==d.settings.colHeaders)return!!d.settings.colHeaders;for(var e=0,t=g.countCols();t>e;e++)if(g.getColHeader(e))return!0;return!1},this.getColHeader=function(e){if(e=M.hooks.run(g,"modifyColHeader",e),void 0===e){for(var t=[],o=0,n=g.countCols();n>o;o++)t.push(g.getColHeader(o));return t}var r=e;return e=M.hooks.run(g,"modifyCol",e),d.settings.columns&&d.settings.columns[e]&&d.settings.columns[e].title?d.settings.columns[e].title:Array.isArray(d.settings.colHeaders)&&void 0!==d.settings.colHeaders[e]?d.settings.colHeaders[e]:"function"==typeof d.settings.colHeaders?d.settings.colHeaders(e):d.settings.colHeaders&&"string"!=typeof d.settings.colHeaders&&"number"!=typeof d.settings.colHeaders?Z(r):d.settings.colHeaders},this._getColWidthFromSettings=function(e){var t=g.getCellMeta(0,e),o=t.width;if(void 0!==o&&o!==d.settings.width||(o=t.colWidths),void 0!==o&&null!==o){switch(typeof o){case"object":o=o[e];break;case"function":o=o(e)}"string"==typeof o&&(o=parseInt(o,10))}return o},this.getColWidth=function(e){var t=g._getColWidthFromSettings(e);return t=M.hooks.run(g,"modifyColWidth",t,e),void 0===t&&(t=oe.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=d.settings.rowHeights;if(void 0!==t&&null!==t){switch(typeof t){case"object":t=t[e];break;case"function":t=t(e)}"string"==typeof t&&(t=parseInt(t,10))}return t},this.getRowHeight=function(e){var t=g._getRowHeightFromSettings(e);return t=M.hooks.run(g,"modifyRowHeight",t,e)},this.countSourceRows=function(){return g.getSourceData()?g.getSourceData().length:0},this.countRows=function(){return c.getLength()},this.countCols=function(){return"object"===g.dataType||"function"===g.dataType?d.settings.columns&&d.settings.columns.length?d.settings.columns.length:c.colToPropCache.length:"array"===g.dataType?d.settings.columns&&d.settings.columns.length?d.settings.columns.length:d.settings.data&&d.settings.data[0]&&d.settings.data[0].length?d.settings.data[0].length:0:void 0},this.rowOffset=function(){return g.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return g.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return g.view.wt.drawn?g.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return g.view.wt.drawn?g.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return g.view.wt.drawn?g.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return g.view.wt.drawn?g.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,o=g.countRows()-1,n=0;o>=0;){if(t=M.hooks.run(this,"modifyRow",o),g.isEmptyRow(t))n++;else if(e)break;o--}return n},this.countEmptyCols=function(e){if(g.countRows()<1)return 0;for(var t=g.countCols()-1,o=0;t>=0;){if(g.isEmptyCol(t))o++;else if(e)break;t--}return o},this.isEmptyRow=function(e){return d.settings.isEmptyRow.call(g,e)},this.isEmptyCol=function(e){return d.settings.isEmptyCol.call(g,e)},this.selectCell=function(e,t,o,n,r,i){var s;if(i="undefined"==typeof i||i===!0,"number"!=typeof e||0>e||e>=g.countRows())return!1;if("number"!=typeof t||0>t||t>=g.countCols())return!1;if("undefined"!=typeof o){if("number"!=typeof o||0>o||o>=g.countRows())return!1;if("number"!=typeof n||0>n||n>=g.countCols())return!1;
}return s=new ee(e,t),d.selRange=new te(s,s,s),i&&g.listen(),"undefined"==typeof o?m.setRangeEnd(d.selRange.from,r):m.setRangeEnd(new ee(o,n),r),g.selection.finish(),!0},this.selectCellByProp=function(e,t,o,n,r){return arguments[1]=c.propToCol(arguments[1]),"undefined"!=typeof arguments[3]&&(arguments[3]=c.propToCol(arguments[3])),g.selectCell.apply(g,arguments)},this.deselectCell=function(){m.deselect()},this.scrollViewportTo=function(e,t){if(void 0!==e&&(0>e||e>=g.countRows()))return!1;if(void 0!==t&&(0>t||t>=g.countCols()))return!1;var o=!1;return void 0!==e&&void 0!==t&&(g.view.wt.scrollVertical(e),g.view.wt.scrollHorizontal(t),o=!0),"number"==typeof e&&"number"!=typeof t&&(g.view.wt.scrollVertical(e),o=!0),"number"==typeof t&&"number"!=typeof e&&(g.view.wt.scrollHorizontal(t),o=!0),o},this.destroy=function(){g._clearTimeouts(),g.view&&g.view.destroy(),h&&h.destroy(),h=null,T(g.rootElement),v.destroy(),M.hooks.run(g,"afterDestroy"),M.hooks.destroy(g);for(var e in g)g.hasOwnProperty(e)&&("function"==typeof g[e]?g[e]=u:"guid"!==e&&(g[e]=null));c&&c.destroy(),c=null,d=null,f=null,m=null,p=null,g=null,w=null},this.getActiveEditor=function(){return p.getActiveEditor()},this.getPlugin=function(e){return z(this,e)},this.getInstance=function(){return g},this.addHook=function(e,t){M.hooks.add(e,t,g)},this.hasHook=function(e){return M.hooks.has(e,g)},this.addHookOnce=function(e,t){M.hooks.once(e,t,g)},this.removeHook=function(e,t){M.hooks.remove(e,t,g)},this.runHooks=function(e,t,o,n,r,i,s){return M.hooks.run(g,e,t,o,n,r,i,s)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;t>e;e++)clearTimeout(this.timeouts[e])},this.version=M.version,M.hooks.run(g,"construct")};var ne=function(){};ne.prototype={data:void 0,dataSchema:void 0,width:void 0,height:void 0,startRows:5,startCols:5,rowHeaders:void 0,colHeaders:null,colWidths:void 0,rowHeights:void 0,columns:void 0,cells:void 0,cell:[],comments:!1,customBorders:!1,minRows:0,minCols:0,maxRows:1/0,maxCols:1/0,minSpareRows:0,minSpareCols:0,allowInsertRow:!0,allowInsertColumn:!0,allowRemoveRow:!0,allowRemoveColumn:!0,multiSelect:!0,fillHandle:!0,fixedRowsTop:0,fixedRowsBottom:0,fixedColumnsLeft:0,outsideClickDeselects:!0,enterBeginsEditing:!0,enterMoves:{row:1,col:0},tabMoves:{row:0,col:1},autoWrapRow:!1,autoWrapCol:!1,copyRowsLimit:1e3,copyColsLimit:1e3,pasteMode:"overwrite",persistentState:void 0,currentRowClassName:void 0,currentColClassName:void 0,className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,o,n,r;for(t=0,o=this.countCols();o>t;t++)if(n=this.getDataAtCell(e,t),""!==n&&null!==n&&"undefined"!=typeof n)return"object"==typeof n?(r=this.getCellMeta(e,t),F(this.getSchema()[r.prop],n)):!1;return!0},isEmptyCol:function(e){var t,o,n;for(t=0,o=this.countRows();o>t;t++)if(n=this.getDataAtCell(t,e),""!==n&&null!==n&&"undefined"!=typeof n)return!1;return!0},observeDOMVisibility:!0,allowInvalid:!0,allowEmpty:!0,invalidCellClassName:"htInvalid",placeholder:!1,placeholderCellClassName:"htPlaceholder",readOnlyCellClassName:"htDimmed",renderer:void 0,commentedCellClassName:"htCommentCell",fragmentSelection:!1,readOnly:!1,skipColumnOnPaste:!1,search:!1,type:"text",copyable:!0,editor:void 0,autoComplete:void 0,visibleRows:10,trimDropdown:!0,debug:!1,wordWrap:!0,noWordWrapClassName:"htNoWrap",contextMenu:void 0,contextMenuCopyPaste:void 0,copyPaste:void 0,undo:void 0,columnSorting:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,mergeCells:!1,viewportRowRenderingOffset:"auto",viewportColumnRenderingOffset:"auto",validator:void 0,disableVisualSelection:!1,sortIndicator:void 0,manualColumnFreeze:void 0,trimWhitespace:!0,settings:void 0,source:void 0,title:void 0,checkedTemplate:void 0,uncheckedTemplate:void 0,label:void 0,format:void 0,language:void 0,selectOptions:void 0,autoColumnSize:void 0,autoRowSize:void 0,dateFormat:void 0,correctFormat:!1,defaultDate:void 0,strict:void 0,renderAllRows:void 0,preventOverflow:!1,bindRowsWithHeaders:void 0,collapsibleColumns:void 0,columnSummary:void 0,dropdownMenu:void 0,filters:void 0,ganttChart:void 0,headerTooltips:void 0,hiddenColumns:void 0,hiddenRows:void 0,nestedHeaders:void 0,trimRows:void 0,rowHeaderWidth:void 0,columnHeaderHeight:void 0,observeChanges:void 0,sortFunction:void 0,sortByRelevance:!0,filter:!0,filteringCaseSensitive:!1},M.DefaultSettings=ne},{"3rdparty/walkontable/src/calculator/viewportColumns":3,"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/cell/range":6,"3rdparty/walkontable/src/selection":18,browser:23,dataMap:26,dataSource:27,editorManager:28,eventManager:41,"helpers/array":42,"helpers/browser":43,"helpers/data":44,"helpers/dom/element":46,"helpers/number":51,"helpers/object":52,"helpers/setting":53,"helpers/string":54,numeral:"numeral",plugins:61,renderers:94,tableView:103}],26:[function(e,t,o){"use strict";function n(e,t,o){var n=this;this.instance=e,this.priv=t,this.GridSettings=o,this.dataSource=this.instance.getSettings().data,this.cachedLength=null,this.latestSourceRowsCount=0,this.dataSource[0]?this.duckSchema=this.recursiveDuckSchema(this.dataSource[0]):this.duckSchema={},this.createMap(),this.interval=M.create(function(){return n.clearLengthCache()},"15fps")}Object.defineProperties(o,{DataMap:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l,a,u,d,c,h,f=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],m=(i=e("SheetClip"),i&&i.__esModule&&i||{"default":i})["default"],p=(s=e("helpers/data"),s&&s.__esModule&&s||{"default":s}).cellMethodLookupFactory,g=(l=e("helpers/setting"),l&&l.__esModule&&l||{"default":l}).columnFactory,w=(a=e("helpers/object"),a&&a.__esModule&&a||{"default":a}),v=w.duckSchema,b=w.deepExtend,C=w.deepClone,y=(u=e("helpers/array"),u&&u.__esModule&&u||{"default":u}),_=y.extendArray,R=y.to2dArray,M=(d=e("utils/interval"),d&&d.__esModule&&d||{"default":d}).Interval,S=(c=e("helpers/number"),c&&c.__esModule&&c||{"default":c}).rangeEach,E=(h=e("multiMap"),h&&h.__esModule&&h||{"default":h}).MultiMap;n.prototype.DESTINATION_RENDERER=1,n.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,n.prototype.recursiveDuckSchema=function(e){return v(e)},n.prototype.recursiveDuckColumns=function(e,t,o){var n,r;if("undefined"==typeof t&&(t=0,o=""),"object"==typeof e&&!Array.isArray(e))for(r in e)e.hasOwnProperty(r)&&(null===e[r]?(n=o+r,this.colToPropCache.push(n),this.propToColCache.set(n,t),t++):t=this.recursiveDuckColumns(e[r],t,r+"."));return t},n.prototype.createMap=function(){var e,t,o=this.getSchema();if("undefined"==typeof o)throw new Error("trying to create `columns` definition but you didnt' provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new E;var n=this.instance.getSettings().columns;if(n)for(e=0,t=n.length;t>e;e++)"undefined"!=typeof n[e].data&&(this.colToPropCache[e]=n[e].data,this.propToColCache.set(n[e].data,e));else this.recursiveDuckColumns(o)},n.prototype.colToProp=function(e){return e=f.hooks.run(this.instance,"modifyCol",e),this.colToPropCache&&"undefined"!=typeof this.colToPropCache[e]?this.colToPropCache[e]:e},n.prototype.propToCol=function(e){var t;return t="undefined"==typeof this.propToColCache.get(e)?e:this.propToColCache.get(e),t=f.hooks.run(this.instance,"unmodifyCol",t)},n.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},n.prototype.createRow=function(e,t,o){var n,r,i=this.instance.countCols(),s=0;t||(t=1),("number"!=typeof e||e>=this.instance.countSourceRows())&&(e=this.instance.countSourceRows()),r=e;for(var l=this.instance.getSettings().maxRows;t>s&&this.instance.countSourceRows()<l;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?n=C(this.getSchema()):(n=[],S(i-1,function(){return n.push(null)})):"function"===this.instance.dataType?n=this.instance.getSettings().dataSchema(e):(n={},b(n,this.getSchema())),e===this.instance.countSourceRows()?this.dataSource.push(n):this.dataSource.splice(e,0,n),s++,r++;return f.hooks.run(this.instance,"afterCreateRow",e,s,o),this.instance.forceFullRender=!0,s},n.prototype.createCol=function(e,t,o){if(!this.instance.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");var n,r,i=this.instance.countSourceRows(),s=this.dataSource,l=0;t||(t=1),("number"!=typeof e||e>=this.instance.countCols())&&(e=this.instance.countCols()),r=e;for(var a=this.instance.getSettings().maxCols;t>l&&this.instance.countCols()<a;){if(n=g(this.GridSettings,this.priv.columnsSettingConflicts),"number"!=typeof e||e>=this.instance.countCols()){for(var u=0;i>u;u++)"undefined"==typeof s[u]&&(s[u]=[]),s[u].push(null);this.priv.columnSettings.push(n)}else{for(var u=0;i>u;u++)s[u].splice(r,0,null);this.priv.columnSettings.splice(r,0,n)}l++,r++}return f.hooks.run(this.instance,"afterCreateCol",e,l,o),this.instance.forceFullRender=!0,l},n.prototype.removeRow=function(e,t){t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countSourceRows()+e)%this.instance.countSourceRows();var o=this.physicalRowsToLogical(e,t),n=(o.slice(0).sort(function(e,t){return t-e}),f.hooks.run(this.instance,"beforeRemoveRow",e,t,o));if(n!==!1){var r,i=this.dataSource;r=i.filter(function(e,t){return-1==o.indexOf(t)}),i.length=0,Array.prototype.push.apply(i,r),f.hooks.run(this.instance,"afterRemoveRow",e,t,o),this.instance.forceFullRender=!0}},n.prototype.removeCol=function(e,t){if("object"===this.instance.dataType||this.instance.getSettings().columns)throw new Error("cannot remove column with object data source or columns option specified");t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countCols()+e)%this.instance.countCols();var o=this.physicalColumnsToLogical(e,t),n=o.slice(0).sort(function(e,t){return t-e}),r=f.hooks.run(this.instance,"beforeRemoveCol",e,t,o);if(r!==!1){for(var i=!0,s=n.length,l=this.dataSource,a=0;s>a;a++)i&&o[0]!==o[a]-a&&(i=!1);if(i)for(var u=0,d=this.instance.countSourceRows();d>u;u++)l[u].splice(o[0],t);else{for(var c=0,h=this.instance.countSourceRows();h>c;c++)for(var m=0;s>m;m++)l[c].splice(n[m],1);for(var p=0;s>p;p++)this.priv.columnSettings.splice(o[p],1)}f.hooks.run(this.instance,"afterRemoveCol",e,t),this.instance.forceFullRender=!0}},n.prototype.spliceCol=function(e,t,o){var n=4<=arguments.length?[].slice.call(arguments,3):[],r=this.instance.getDataAtCol(e),i=r.slice(t,t+o),s=r.slice(t+o);_(n,s);for(var l=0;o>l;)n.push(null),l++;return R(n),this.instance.populateFromArray(t,e,n,null,null,"spliceCol"),i},n.prototype.spliceRow=function(e,t,o){var n=4<=arguments.length?[].slice.call(arguments,3):[],r=this.instance.getSourceDataAtRow(e),i=r.slice(t,t+o),s=r.slice(t+o);_(n,s);for(var l=0;o>l;)n.push(null),l++;return this.instance.populateFromArray(e,t,[n],null,null,"spliceRow"),i},n.prototype.get=function(e,t){e=f.hooks.run(this.instance,"modifyRow",e);var o=this.dataSource[e];if(o&&o.hasOwnProperty&&o.hasOwnProperty(t))return o[t];if("string"==typeof t&&t.indexOf(".")>-1){var n=t.split("."),r=o;if(!r)return null;for(var i=0,s=n.length;s>i;i++)if(r=r[n[i]],"undefined"==typeof r)return null;return r}return"function"==typeof t?t(this.dataSource.slice(e,e+1)[0]):null};var O=p("copyable",!1);n.prototype.getCopyable=function(e,t){return O.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},n.prototype.set=function(e,t,o,n){e=f.hooks.run(this.instance,"modifyRow",e,n||"datamapGet");var r=this.dataSource[e];if(r&&r.hasOwnProperty&&r.hasOwnProperty(t))r[t]=o;else if("string"==typeof t&&t.indexOf(".")>-1){for(var i=t.split("."),s=r,l=0,a=i.length-1;a>l;l++)"undefined"==typeof s[i[l]]&&(s[i[l]]={}),s=s[i[l]];s[i[l]]=o}else"function"==typeof t?t(this.dataSource.slice(e,e+1)[0],o):r[t]=o},n.prototype.physicalRowsToLogical=function(e,t){for(var o,n=this.instance.countSourceRows(),r=(n+e)%n,i=[],s=t;n>r&&s;)o=f.hooks.run(this.instance,"modifyRow",r),i.push(o),s--,r++;return i},n.prototype.physicalColumnsToLogical=function(e,t){for(var o=this.instance.countCols(),n=(o+e)%o,r=[],i=t;o>n&&i;){var s=f.hooks.run(this.instance,"modifyCol",n);r.push(s),i--,n++}return r},n.prototype.clear=function(){for(var e=0;e<this.instance.countSourceRows();e++)for(var t=0;t<this.instance.countCols();t++)this.set(e,this.colToProp(t),"")},n.prototype.clearLengthCache=function(){this.cachedLength=null},n.prototype.getLength=function(){var e=this,t=this.instance.countSourceRows();if(f.hooks.has("modifyRow",this.instance)){var o=!1;this.interval.start(),t!==this.latestSourceRowsCount&&(o=!0),this.latestSourceRowsCount=t,null===this.cachedLength||o?(S(t-1,function(o){o=f.hooks.run(e.instance,"modifyRow",o),null===o&&--t}),this.cachedLength=t):t=this.cachedLength}else this.interval.stop();return t},n.prototype.getAll=function(){var e={row:0,col:0},t={row:Math.max(this.instance.countSourceRows()-1,0),col:Math.max(this.instance.countCols()-1,0)};return e.row-t.row!==0||this.instance.countSourceRows()?this.getRange(e,t,n.prototype.DESTINATION_RENDERER):[]},n.prototype.getRange=function(e,t,o){var n,r,i,s,l,a=[],u=o===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(r=Math.max(e.row,t.row),s=Math.max(e.col,t.col),n=Math.min(e.row,t.row);r>=n;n++){l=[];var d=f.hooks.run(this.instance,"modifyRow",n);for(i=Math.min(e.col,t.col);s>=i;i++){if(null===d)break;l.push(u.call(this,n,this.colToProp(i)))}null!==d&&a.push(l)}return a},n.prototype.getText=function(e,t){return m.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},n.prototype.getCopyableText=function(e,t){return m.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},n.prototype.destroy=function(){this.interval.stop(),this.interval=null,this.instance=null,this.priv=null,this.GridSettings=null,this.dataSource=null,this.cachedLength=null,this.duckSchema=null}},{SheetClip:"SheetClip",browser:23,"helpers/array":42,"helpers/data":44,"helpers/number":51,"helpers/object":52,"helpers/setting":53,multiMap:59,"utils/interval":105}],27:[function(e,t,o){"use strict";Object.defineProperties(o,{DataSource:{get:function(){return f}},__esModule:{value:!0}});var n,r,i,s,l,a=((n=e("helpers/data"),n&&n.__esModule&&n||{"default":n}).cellMethodLookupFactory,(r=e("helpers/setting"),r&&r.__esModule&&r||{"default":r}).columnFactory,i=e("helpers/object"),i&&i.__esModule&&i||{"default":i}),u=(a.duckSchema,a.deepExtend,a.getProperty),d=(s=e("helpers/array"),s&&s.__esModule&&s||{"default":s}),c=(d.extendArray,d.arrayEach),h=(l=e("helpers/number"),l&&l.__esModule&&l||{"default":l}).rangeEach,f=function(e){var t=void 0!==arguments[1]?arguments[1]:[];this.hot=e,this.data=t,this.dataType="array",this.colToProp=function(){},this.propToCol=function(){}};$traceurRuntime.createClass(f,{getData:function(){return this.data},setData:function(e){this.data=e},getAtColumn:function(e){var t=this,o=[];return c(this.data,function(n){var r=t.colToProp(e);n="string"==typeof r?u(n,r):n[r],o.push(n)}),o},getAtRow:function(e){return this.data[e]},getAtCell:function(e,t){return this.data[e][this.colToProp(t)]},getByRange:function(e,t){var o=this,n=Math.min(e.row,t.row),r=Math.min(e.col,t.col),i=Math.max(e.row,t.row),s=Math.max(e.col,t.col),l=[];return h(n,i,function(e){var t,n=o.getAtRow(e);"array"===o.dataType?t=n.slice(r,s):"object"===o.dataType&&(t={},h(r,s,function(e){var r=o.colToProp(e);t[r]=n[r]})),l.push(t)}),l},destroy:function(){this.data=null,this.hot=null}},{})},{"helpers/array":42,"helpers/data":44,"helpers/number":51,"helpers/object":52,"helpers/setting":53}],28:[function(e,t,o){"use strict";function n(e,t,o){function n(e){var n="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?o.transformStart(-n.row,-n.col):o.transformStart(n.row,n.col,!0)}function r(e){e?o.transformEnd(-1,0):o.transformStart(-1,0)}function i(e){e?o.transformEnd(1,0):o.transformStart(1,0)}function s(e){e?o.transformEnd(0,1):o.transformStart(0,1)}function l(e){e?o.transformEnd(0,-1):o.transformStart(0,-1)}function a(a){var u,h;if(e.isListening()&&(d.hooks.run(e,"beforeKeyDown",a),!_&&!b(a)&&(t.lastKeyCode=a.keyCode,o.isSelected()))){if(u=(a.ctrlKey||a.metaKey)&&!a.altKey,g&&!g.isWaiting()&&!(m(a.keyCode)||p(a.keyCode)||u||y.isEditorOpened()))return void y.openEditor("",a);switch(h=a.shiftKey?o.setRangeEnd:o.setRangeStart,a.keyCode){case f.A:!y.isEditorOpened()&&u&&(o.selectAll(),a.preventDefault(),w(a));break;case f.ARROW_UP:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),r(a.shiftKey),a.preventDefault(),w(a);break;case f.ARROW_DOWN:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),i(a.shiftKey),a.preventDefault(),w(a);break;case f.ARROW_RIGHT:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),s(a.shiftKey),a.preventDefault(),w(a);break;case f.ARROW_LEFT:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),l(a.shiftKey),a.preventDefault(),w(a);break;case f.TAB:var C="function"==typeof t.settings.tabMoves?t.settings.tabMoves(a):t.settings.tabMoves;a.shiftKey?o.transformStart(-C.row,-C.col):o.transformStart(C.row,C.col,!0),a.preventDefault(),w(a);break;case f.BACKSPACE:case f.DELETE:o.empty(a),y.prepareEditor(),a.preventDefault();break;case f.F2:y.openEditor(null,a),g&&g.enableFullEditMode(),a.preventDefault();break;case f.ENTER:y.isEditorOpened()?(g&&g.state!==d.EditorState.WAITING&&y.closeEditorAndSaveChanges(u),n(a.shiftKey)):e.getSettings().enterBeginsEditing?(y.openEditor(null,a),g&&g.enableFullEditMode()):n(a.shiftKey),a.preventDefault(),v(a);break;case f.ESCAPE:y.isEditorOpened()&&y.closeEditorAndRestoreOriginalValue(u),a.preventDefault();break;case f.HOME:h(a.ctrlKey||a.metaKey?new c(0,t.selRange.from.col):new c(t.selRange.from.row,0)),a.preventDefault(),w(a);break;case f.END:h(a.ctrlKey||a.metaKey?new c(e.countRows()-1,t.selRange.from.col):new c(t.selRange.from.row,e.countCols()-1)),a.preventDefault(),w(a);break;case f.PAGE_UP:o.transformStart(-e.countVisibleRows(),0),a.preventDefault(),w(a);break;case f.PAGE_DOWN:o.transformStart(e.countVisibleRows(),0),a.preventDefault(),w(a)}}}function u(){function t(e,t,o){"TD"==o.nodeName&&(y.openEditor(),g&&g.enableFullEditMode())}e.addHook("afterDocumentKeyDown",a),h.addEventListener(document.documentElement,"keydown",function(t){e.runHooks("afterDocumentKeyDown",t)}),e.view.wt.update("onCellDblClick",t),e.addHook("afterDestroy",function(){_=!0})}var h,g,y=this,_=!1;h=C(e),this.destroyEditor=function(e){this.closeEditor(e)},this.getActiveEditor=function(){return g},this.prepareEditor=function(){var o,n,r,i,s,l,a;return g&&g.isWaiting()?void this.closeEditor(!1,!1,function(e){e&&y.prepareEditor()}):(o=t.selRange.highlight.row,n=t.selRange.highlight.col,r=e.colToProp(n),i=e.getCell(o,n),s=e.getDataAtCell(o,n),l=e.getCellMeta(o,n),a=e.getCellEditor(l),void(a?(g=d.editors.getEditor(a,e),g.prepare(o,n,r,i,s,l)):g=void 0))},this.isEditorOpened=function(){return g&&g.isOpened()},this.openEditor=function(e,t){g&&!g.cellProperties.readOnly?g.beginEditing(e,t):g&&g.cellProperties.readOnly&&t&&t.keyCode===f.ENTER&&n()},this.closeEditor=function(e,t,o){g?g.finishEditing(e,t,o):o&&o(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},u()}Object.defineProperties(o,{EditorManager:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l,a,u,d=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],c=(i=e("3rdparty/walkontable/src/cell/coords"),i&&i.__esModule&&i||{"default":i}).WalkontableCellCoords,h=(s=e("helpers/unicode"),s&&s.__esModule&&s||{"default":s}),f=h.KEY_CODES,m=h.isMetaKey,p=h.isCtrlKey,g=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{"default":l}),w=g.stopPropagation,v=g.stopImmediatePropagation,b=g.isImmediatePropagationStopped,C=((a=e("editors"),a&&a.__esModule&&a||{"default":a}).getEditor,(u=e("eventManager"),u&&u.__esModule&&u||{"default":u}).eventManager);d.EditorManager=n},{"3rdparty/walkontable/src/cell/coords":5,browser:23,editors:29,eventManager:41,"helpers/dom/event":47,"helpers/unicode":55}],29:[function(e,t,o){"use strict";function n(e){var t,o;o={},t=e,this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in o||(o[e.guid]=new t(e)),o[e.guid]}}function r(e,t){var o=new n(t);"string"==typeof e&&(h[e]=o,d.editors[c(e)+"Editor"]=t),f.set(t,o)}function i(e,t){var o;if("function"==typeof e)f.get(e)||r(null,e),o=f.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter ');o=h[e]}if(!o)throw Error('No editor registered under name "'+e+'"');return o.getInstance(t)}function s(e){var t;if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter ');if(t=h[e],!t)throw Error('No editor registered under name "'+e+'"');return t.getConstructor()}function l(e){return!!h[e]}Object.defineProperties(o,{registerEditor:{get:function(){return r}},getEditor:{get:function(){return i}},hasEditor:{get:function(){return l}},getEditorConstructor:{get:function(){return s}},__esModule:{value:!0}});var a,u,d=(a=e("browser"),a&&a.__esModule&&a||{"default":a})["default"],c=(u=e("helpers/string"),u&&u.__esModule&&u||{"default":u}).toUpperCaseFirst,h={},f=new WeakMap;d.editors=d.editors||{},d.editors.registerEditor=r,d.editors.getEditor=i},{browser:23,"helpers/string":54}],30:[function(e,t,o){"use strict";function n(e){this.instance=e,this.state=l.EditorState.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}Object.defineProperties(o,{BaseEditor:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],a=(i=e("helpers/mixed"),i&&i.__esModule&&i||{"default":i}).stringify,u=(s=e("3rdparty/walkontable/src/cell/coords"),s&&s.__esModule&&s||{"default":s}).WalkontableCellCoords;l.editors=l.editors||{},l.editors.BaseEditor=n,l.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"},n.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},n.prototype.init=function(){},n.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},n.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},n.prototype.open=function(){throw Error("Editor open() method unimplemented")},n.prototype.close=function(){throw Error("Editor close() method unimplemented")},n.prototype.prepare=function(e,t,o,n,r,i){this.TD=n,this.row=e,this.col=t,this.prop=o,this.originalValue=r,this.cellProperties=i,this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body?document.activeElement.blur():document.activeElement||document.body.focus(),this.state=l.EditorState.VIRGIN},n.prototype.extend=function(){function e(){o.apply(this,arguments)}function t(e,t){function o(){}return o.prototype=t.prototype,e.prototype=new o,e.prototype.constructor=e,e}var o=this.constructor;return t(e,o)},n.prototype.saveValue=function(e,t){var o,n;t?(o=this.instance.getSelected(),o[0]>o[2]&&(n=o[0],o[0]=o[2],o[2]=n),o[1]>o[3]&&(n=o[1],o[1]=o[3],o[3]=n),this.instance.populateFromArray(o[0],o[1],e,o[2],o[3],"edit")):this.instance.populateFromArray(this.row,this.col,e,null,null,"edit")},n.prototype.beginEditing=function(e,t){this.state==l.EditorState.VIRGIN&&(this.instance.view.scrollViewport(new u(this.row,this.col)),this.instance.view.render(),this.state=l.EditorState.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue(a(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render())},n.prototype.finishEditing=function(e,t,o){var n,r=this;if(o){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),o(e)}}if(!this.isWaiting()){if(this.state==l.EditorState.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){r._fireCallbacks(!0)},0));if(this.state==l.EditorState.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();n=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=l.EditorState.WAITING,this.saveValue(n,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){r.state=l.EditorState.FINISHED,r.discardEditor(e)}):(this.state=l.EditorState.FINISHED,this.discardEditor(!0))}}},n.prototype.cancelChanges=function(){this.state=l.EditorState.FINISHED,this.discardEditor()},n.prototype.discardEditor=function(e){this.state===l.EditorState.FINISHED&&(e===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=l.EditorState.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=l.EditorState.VIRGIN,this._fireCallbacks(!0)))},n.prototype.enableFullEditMode=function(){this._fullEditMode=!0},n.prototype.isInFullEditMode=function(){return this._fullEditMode},n.prototype.isOpened=function(){return this._opened},n.prototype.isWaiting=function(){return this.state===l.EditorState.WAITING},n.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row<this.instance.getSettings().fixedRowsTop?t=this.col<this.instance.getSettings().fixedColumnsLeft?"top-left-corner":"top":this.instance.getSettings().fixedRowsBottom&&this.row>=e-this.instance.getSettings().fixedRowsBottom?t=this.col<this.instance.getSettings().fixedColumnsLeft?"bottom-left-corner":"bottom":this.col<this.instance.getSettings().fixedColumnsLeft&&(t="left"),t}},{"3rdparty/walkontable/src/cell/coords":5,browser:23,"helpers/mixed":50}],31:[function(e,t,o){"use strict";function n(e){k=!1;var t=this.getActiveEditor();if(f(e.keyCode)||e.keyCode===h.BACKSPACE||e.keyCode===h.DELETE||e.keyCode===h.INSERT){var o=0;if(e.keyCode===h.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(o+=10),t.htEditor&&t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value),k=!0},o))}}Object.defineProperties(o,{AutocompleteEditor:{get:function(){return T}},__esModule:{value:!0}});var r,i,s,l,a,u,d,c=((r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],i=e("helpers/unicode"),i&&i.__esModule&&i||{"default":i}),h=c.KEY_CODES,f=c.isPrintableChar,m=(s=e("helpers/mixed"),s&&s.__esModule&&s||{"default":s}).stringify,p=(l=e("helpers/array"),l&&l.__esModule&&l||{"default":l}).pivot,g=(a=e("helpers/dom/element"),a&&a.__esModule&&a||{"default":a}),w=g.addClass,v=g.getCaretPosition,b=g.getScrollbarWidth,C=g.getSelectionEndPosition,y=g.outerWidth,_=g.outerHeight,R=g.offset,M=g.getTrimmingContainer,S=g.setCaretPosition,E=(u=e("editors"),u&&u.__esModule&&u||{"default":u}).registerEditor,O=(d=e("handsontableEditor"),d&&d.__esModule&&d||{"default":d}).HandsontableEditor,T=O.prototype.extend();T.prototype.init=function(){O.prototype.init.apply(this,arguments),this.query=null,this.choices=[]},T.prototype.createElements=function(){O.prototype.createElements.apply(this,arguments),w(this.htContainer,"autocompleteEditor"),w(this.htContainer,-1===window.navigator.platform.indexOf("Mac")?"":"htMacScroll")};var k=!1;T.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",n),O.prototype.prepare.apply(this,arguments)},T.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",O.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var e=this.htEditor.getInstance(),t=this,o=void 0===this.cellProperties.trimDropdown?!0:this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),e.updateSettings({colWidths:o?[y(this.TEXTAREA)-2]:void 0,width:o?y(this.TEXTAREA)+b()+2:void 0,afterRenderer:function(e,o,n,r,i){var s,l,a=this.getCellMeta(o,n).filteringCaseSensitive===!0;i=m(i),i&&(s=a?i.indexOf(this.query):i.toLowerCase().indexOf(t.query.toLowerCase()),-1!=s&&(l=i.substr(s,t.query.length),e.innerHTML=i.replace(l,"<strong>"+l+"</strong>")))},autoColumnSize:!0,modifyColWidth:function(e,t){var n=this.getPlugin("autoColumnSize").widths;return n[t]&&(e=n[t]),o?e:e+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=b()+2+"px",k&&(k=!1),t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value)},0))},T.prototype.close=function(){O.prototype.close.apply(this,arguments)},T.prototype.queryChoices=function(e){this.query=e;var t=this.cellProperties.source,o=this.cellProperties.filter,n=this.cellProperties.filteringCaseSensitive;if("function"==typeof t){var r=this;t.call(this.cellProperties,e,function(e){r.updateChoicesList(e)})}else if(Array.isArray(t)){var i;if(e&&o!==!1){var s=e.toLowerCase();i=t.filter(function(t){return n?-1!=t.indexOf(e):-1!=t.toLowerCase().indexOf(s)})}else i=t;this.updateChoicesList(i)}else this.updateChoicesList([])},T.prototype.updateChoicesList=function(e){var t=v(this.TEXTAREA),o=C(this.TEXTAREA),n=this.cellProperties.sortByRelevance,r=this.cellProperties.filter,i=null,s=null;if(n&&(i=T.sortByRelevance(this.getValue(),e,this.cellProperties.filteringCaseSensitive)),r===!1)s=i?i[0]:0;else{for(var l=[],a=0,u=e.length;u>a;a++)i?l.push(e[i[a]]):l.push(e[a]);s=0,e=l}this.choices=e,this.htEditor.loadData(p([e])),this.updateDropdownHeight(),this.flipDropdownIfNeeded(),this.cellProperties.strict===!0&&this.highlightBestMatchingChoice(s),this.instance.listen(),this.TEXTAREA.focus(),S(this.TEXTAREA,t,t===o?void 0:o)},T.prototype.flipDropdownIfNeeded=function(){var e=R(this.TEXTAREA),t=_(this.TEXTAREA),o=this.getDropdownHeight(),n=M(this.instance.view.wt.wtTable.TABLE),r={row:0,col:0};n!==window&&(r=R(n));var i=r.top+(n.scrollHeight-n.scrollTop),s=r.top+n.scrollHeight,l=e.top+t+o>i;l&&s>i?this.flipDropdown(o):this.unflipDropdown()},T.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},T.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},T.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+b()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},T.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",n),O.prototype.finishEditing.apply(this,arguments)},T.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0):this.htEditor.deselectCell()},T.sortByRelevance=function(e,t,o){var n,r,i,s,l=[],a=e.length,u=[],d=t.length;if(0===a){for(s=0;d>s;s++)u.push(s);return u}for(s=0;d>s;s++)n=m(t[s]),r=o?n.indexOf(e):n.toLowerCase().indexOf(e.toLowerCase()),-1!=r&&(i=n.length-r-a,l.push({baseIndex:s,index:r,charsLeft:i,value:n}));for(l.sort(function(e,t){return-1===t.index?-1:-1===e.index?1:e.index<t.index?-1:t.index<e.index?1:e.index===t.index?e.charsLeft<t.charsLeft?-1:e.charsLeft>t.charsLeft?1:0:void 0}),s=0,d=l.length;d>s;s++)u.push(l[s].baseIndex);return u},T.prototype.getDropdownHeight=function(){var e=this.htEditor.getInstance().getRowHeight(0)||23,t=this.cellProperties.visibleRows;return this.choices.length>=t?t*e:this.choices.length*e+8},T.prototype.allowKeyEventPropagation=function(e){var t={row:this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1},o=!1;return e===h.ARROW_DOWN&&t.row>0&&t.row<this.htEditor.countRows()-1&&(o=!0),e===h.ARROW_UP&&t.row>-1&&(o=!0),o},E("autocomplete",T)},{browser:23,editors:29,handsontableEditor:35,"helpers/array":42,"helpers/dom/element":46,"helpers/mixed":50,"helpers/unicode":55}],32:[function(e,t,o){
"use strict";Object.defineProperties(o,{CheckboxEditor:{get:function(){return u}},__esModule:{value:!0}});var n,r,i,s=(n=e("editors"),n&&n.__esModule&&n||{"default":n}).registerEditor,l=(r=e("_baseEditor"),r&&r.__esModule&&r||{"default":r}).BaseEditor,a=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}).hasClass,u=function(){$traceurRuntime.superConstructor(d).apply(this,arguments)},d=u;$traceurRuntime.createClass(u,{beginEditing:function(e,t){if(void 0===t){var o=this.TD.querySelector('input[type="checkbox"]');a(o,"htBadValue")||o.click()}},finishEditing:function(){},init:function(){},open:function(){},close:function(){},getValue:function(){},setValue:function(){},focus:function(){}},{},l),s("checkbox",u)},{_baseEditor:30,editors:29,"helpers/dom/element":46}],33:[function(e,t,o){"use strict";Object.defineProperties(o,{DateEditor:{get:function(){return E}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],m=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),p=m.addClass,g=m.outerHeight,w=(i=e("helpers/object"),i&&i.__esModule&&i||{"default":i}).deepExtend,v=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).EventManager,b=(l=e("editors"),l&&l.__esModule&&l||{"default":l}),C=(b.getEditor,b.registerEditor),y=(a=e("helpers/unicode"),a&&a.__esModule&&a||{"default":a}).isMetaKey,_=(u=e("helpers/dom/event"),u&&u.__esModule&&u||{"default":u}).stopPropagation,R=(d=e("textEditor"),d&&d.__esModule&&d||{"default":d}).TextEditor,M=(c=e("moment"),c&&c.__esModule&&c||{"default":c})["default"],S=(h=e("pikaday"),h&&h.__esModule&&h||{"default":h})["default"];f.editors=f.editors||{},f.editors.DateEditor=E;var E=function(e){this.$datePicker=null,this.datePicker=null,this.datePickerStyle=null,this.defaultDateFormat="DD/MM/YYYY",this.isCellEdited=!1,this.parentDestroyed=!1,$traceurRuntime.superConstructor(O).call(this,e)},O=E;$traceurRuntime.createClass(E,{init:function(){var e=this;if("function"!=typeof M)throw new Error("You need to include moment.js to your project.");if("function"!=typeof S)throw new Error("You need to include Pikaday to your project.");$traceurRuntime.superGet(this,O.prototype,"init").call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})},createElements:function(){$traceurRuntime.superGet(this,O.prototype,"createElements").call(this),this.datePicker=document.createElement("DIV"),this.datePickerStyle=this.datePicker.style,this.datePickerStyle.position="absolute",this.datePickerStyle.top=0,this.datePickerStyle.left=0,this.datePickerStyle.zIndex=9999,p(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new S(this.getDatePickerConfig());var e=new v(this);e.addEventListener(this.datePicker,"mousedown",function(e){return _(e)}),this.hideDatepicker()},destroyElements:function(){this.$datePicker.destroy()},prepare:function(e,t,o,n,r,i){this._opened=!1,$traceurRuntime.superGet(this,O.prototype,"prepare").call(this,e,t,o,n,r,i)},open:function(){var e=void 0!==arguments[0]?arguments[0]:null;$traceurRuntime.superGet(this,O.prototype,"open").call(this),this.showDatepicker(e)},close:function(){var e=this;this._opened=!1,this.instance._registerTimeout(setTimeout(function(){e.instance.selection.refreshBorders()},0)),$traceurRuntime.superGet(this,O.prototype,"close").call(this)},finishEditing:function(){var e=void 0!==arguments[0]?arguments[0]:!1,t=void 0!==arguments[1]?arguments[1]:!1;if(e){var o=this.originalValue;void 0!==o&&this.setValue(o)}this.hideDatepicker(),$traceurRuntime.superGet(this,O.prototype,"finishEditing").call(this,e,t)},showDatepicker:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,o=this.TD.getBoundingClientRect(),n=this.cellProperties.dateFormat||this.defaultDateFormat,r=this.$datePicker.config(),i=this.instance.view.isMouseDown(),s=e?y(e.keyCode):!1;this.datePickerStyle.top=window.pageYOffset+o.top+g(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+o.left+"px",this.$datePicker._onInputFocus=function(){},r.format=n,this.originalValue?(t=this.originalValue,M(t,n,!0).isValid()&&this.$datePicker.setMoment(M(t,n),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||i||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,r.defaultDate=t,M(t,n,!0).isValid()&&this.$datePicker.setMoment(M(t,n),!0),s||i||this.setValue("")):this.$datePicker.gotoToday(),this.datePickerStyle.display="block",this.$datePicker.show()},hideDatepicker:function(){this.datePickerStyle.display="none",this.$datePicker.hide()},getDatePickerConfig:function(){var e=this,t=this.TEXTAREA,o={};this.cellProperties&&this.cellProperties.datePickerConfig&&w(o,this.cellProperties.datePickerConfig);var n=o.onSelect,r=o.onClose;return o.field=t,o.trigger=t,o.container=this.datePicker,o.bound=!1,o.format=o.format||this.defaultDateFormat,o.reposition=o.reposition||!1,o.onSelect=function(t){isNaN(t.getTime())||(t=M(t).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(t),e.hideDatepicker(),n&&n()},o.onClose=function(){e.parentDestroyed||e.finishEditing(!1),r&&r()},o}},{},R),C("date",E)},{browser:23,editors:29,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/object":52,"helpers/unicode":55,moment:void 0,pikaday:void 0,textEditor:40}],34:[function(e,t,o){"use strict";Object.defineProperties(o,{DropdownEditor:{get:function(){return d}},__esModule:{value:!0}});var n,r,i,s=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],l=(r=e("editors"),r&&r.__esModule&&r||{"default":r}),a=(l.getEditor,l.registerEditor),u=(l.getEditorConstructor,(i=e("autocompleteEditor"),i&&i.__esModule&&i||{"default":i}).AutocompleteEditor),d=function(){$traceurRuntime.superConstructor(c).apply(this,arguments)},c=d;$traceurRuntime.createClass(d,{prepare:function(e,t,o,n,r,i){$traceurRuntime.superGet(this,c.prototype,"prepare").call(this,e,t,o,n,r,i),this.cellProperties.filter=!1,this.cellProperties.strict=!0}},{},u),s.hooks.add("beforeValidate",function(e,t,o,n){var r=this.getCellMeta(t,this.propToCol(o));r.editor===s.editors.DropdownEditor&&void 0===r.strict&&(r.filter=!1,r.strict=!0)}),a("dropdown",d)},{autocompleteEditor:31,browser:23,editors:29}],35:[function(e,t,o){"use strict";Object.defineProperties(o,{HandsontableEditor:{get:function(){return C}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],c=(r=e("helpers/unicode"),r&&r.__esModule&&r||{"default":r}).KEY_CODES,h=(i=e("helpers/object"),i&&i.__esModule&&i||{"default":i}).extend,f=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{"default":s}).setCaretPosition,m=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{"default":l}),p=m.stopImmediatePropagation,g=m.isImmediatePropagationStopped,w=(a=e("editors"),a&&a.__esModule&&a||{"default":a}),v=(w.getEditor,w.registerEditor),b=(u=e("textEditor"),u&&u.__esModule&&u||{"default":u}).TextEditor,C=b.prototype.extend();C.prototype.createElements=function(){b.prototype.createElements.apply(this,arguments);var e=document.createElement("DIV");e.className="handsontableEditor",this.TEXTAREA_PARENT.appendChild(e),this.htContainer=e,this.assignHooks()},C.prototype.prepare=function(e,t,o,n,r,i){b.prototype.prepare.apply(this,arguments);var s=this,l={startRows:0,startCols:0,minRows:0,minCols:0,className:"listbox",copyPaste:!1,autoColumnSize:!1,autoRowSize:!1,readOnly:!0,fillHandle:!1,afterOnCellMouseDown:function(){var e=this.getValue();void 0!==e&&s.setValue(e),s.instance.destroyEditor()}};this.cellProperties.handsontable&&h(l,i.handsontable),this.htOptions=l};var y=function(e){if(!g(e)){var t,o=this.getActiveEditor(),n=o.htEditor.getInstance();if(e.keyCode==c.ARROW_DOWN)if(n.getSelected()||n.flipped){if(n.getSelected())if(n.flipped)t=n.getSelected()[0]+1;else if(!n.flipped){var r=n.getSelected()[0],i=n.countRows()-1;t=Math.min(i,r+1)}}else t=0;else if(e.keyCode==c.ARROW_UP)if(!n.getSelected()&&n.flipped)t=n.countRows()-1;else if(n.getSelected())if(n.flipped){var r=n.getSelected()[0];t=Math.max(0,r-1)}else{var r=n.getSelected()[0];t=r-1}void 0!==t&&(0>t||n.flipped&&t>n.countRows()-1?n.deselectCell():n.selectCell(t,0),n.getData().length&&(e.preventDefault(),p(e),o.instance.listen(),o.TEXTAREA.focus()))}};C.prototype.open=function(){this.instance.addHook("beforeKeyDown",y),b.prototype.open.apply(this,arguments),this.htEditor&&this.htEditor.destroy(),this.htEditor=new d(this.htContainer,this.htOptions),this.cellProperties.strict?(this.htEditor.selectCell(0,0),this.TEXTAREA.style.visibility="hidden"):(this.htEditor.deselectCell(),this.TEXTAREA.style.visibility="visible"),f(this.TEXTAREA,0,this.TEXTAREA.value.length)},C.prototype.close=function(){this.instance.removeHook("beforeKeyDown",y),this.instance.listen(),b.prototype.close.apply(this,arguments)},C.prototype.focus=function(){this.instance.listen(),b.prototype.focus.apply(this,arguments)},C.prototype.beginEditing=function(e){var t=this.instance.getSettings().onBeginEditing;t&&t()===!1||b.prototype.beginEditing.apply(this,arguments)},C.prototype.finishEditing=function(e,t){if(this.htEditor&&this.htEditor.isListening()&&this.instance.listen(),this.htEditor&&this.htEditor.getSelected()){var o=this.htEditor.getInstance().getValue();void 0!==o&&this.setValue(o)}return b.prototype.finishEditing.apply(this,arguments)},C.prototype.assignHooks=function(){var e=this;this.instance.addHook("afterDestroy",function(){e.htEditor&&e.htEditor.destroy()})},v("handsontable",C)},{browser:23,editors:29,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/object":52,"helpers/unicode":55,textEditor:40}],36:[function(e,t,o){"use strict";Object.defineProperties(o,{MobileTextEditor:{get:function(){return k}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d=((n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],(r=e("helpers/unicode"),r&&r.__esModule&&r||{"default":r}).KEY_CODES),c=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{"default":i}),h=c.stopImmediatePropagation,f=c.isImmediatePropagationStopped,m=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{"default":s}),p=m.addClass,g=m.getScrollLeft,w=m.getScrollTop,v=m.hasClass,b=m.isChildOf,C=m.offset,y=m.outerHeight,_=m.outerWidth,R=m.removeClass,M=m.setCaretPosition,S=(l=e("editors"),l&&l.__esModule&&l||{"default":l}),E=(S.getEditor,S.registerEditor),O=(a=e("_baseEditor"),a&&a.__esModule&&a||{"default":a}).BaseEditor,T=(u=e("eventManager"),u&&u.__esModule&&u||{"default":u}).eventManager,k=O.prototype.extend(),A={},H=function(){this.controls={},this.controls.leftButton=document.createElement("DIV"),this.controls.leftButton.className="leftButton",this.controls.rightButton=document.createElement("DIV"),this.controls.rightButton.className="rightButton",this.controls.upButton=document.createElement("DIV"),this.controls.upButton.className="upButton",this.controls.downButton=document.createElement("DIV"),this.controls.downButton.className="downButton";for(var e in this.controls)this.controls.hasOwnProperty(e)&&this.positionControls.appendChild(this.controls[e])};k.prototype.valueChanged=function(){return this.initValue!=this.getValue()},k.prototype.init=function(){var e=this;this.eventManager=T(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){e.destroy()})},k.prototype.getValue=function(){return this.TEXTAREA.value},k.prototype.setValue=function(e){this.initValue=e,this.TEXTAREA.value=e},k.prototype.createElements=function(){this.editorContainer=document.createElement("DIV"),this.editorContainer.className="htMobileEditorContainer",this.cellPointer=document.createElement("DIV"),this.cellPointer.className="cellPointer",this.moveHandle=document.createElement("DIV"),this.moveHandle.className="moveHandle",this.inputPane=document.createElement("DIV"),this.inputPane.className="inputs",this.positionControls=document.createElement("DIV"),this.positionControls.className="positionControls",this.TEXTAREA=document.createElement("TEXTAREA"),p(this.TEXTAREA,"handsontableInput"),this.inputPane.appendChild(this.TEXTAREA),this.editorContainer.appendChild(this.cellPointer),this.editorContainer.appendChild(this.moveHandle),this.editorContainer.appendChild(this.inputPane),this.editorContainer.appendChild(this.positionControls),H.call(this),document.body.appendChild(this.editorContainer)},k.prototype.onBeforeKeyDown=function(e){var t=this,o=t.getActiveEditor();if(e.target===o.TEXTAREA&&!f(e))switch(e.keyCode){case d.ENTER:o.close(),e.preventDefault();break;case d.BACKSPACE:h(e)}},k.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),p(this.editorContainer,"active"),R(this.cellPointer,"hidden"),this.updateEditorPosition()},k.prototype.focus=function(){this.TEXTAREA.focus(),M(this.TEXTAREA,this.TEXTAREA.value.length)},k.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),R(this.editorContainer,"active")},k.prototype.scrollToView=function(){var e=this.instance.getSelectedRange().highlight;this.instance.view.scrollViewport(e)},k.prototype.hideCellPointer=function(){v(this.cellPointer,"hidden")||p(this.cellPointer,"hidden")},k.prototype.updateEditorPosition=function(e,t){if(e&&t)e=parseInt(e,10),t=parseInt(t,10),this.editorContainer.style.top=t+"px",this.editorContainer.style.left=e+"px";else{var o=this.instance.getSelected(),n=this.instance.getCell(o[0],o[1]);if(A.cellPointer||(A.cellPointer={height:y(this.cellPointer),width:_(this.cellPointer)}),A.editorContainer||(A.editorContainer={width:_(this.editorContainer)}),void 0!==n){var r=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:g(this.instance.view.wt.wtOverlays.leftOverlay.holder),i=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:w(this.instance.view.wt.wtOverlays.topOverlay.holder),s=C(n),l=_(n),a={x:r,y:i};this.editorContainer.style.top=parseInt(s.top+y(n)-a.y+A.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-A.editorContainer.width/2,10)+"px",s.left+l/2>parseInt(this.editorContainer.style.left,10)+A.editorContainer.width?this.editorContainer.style.left=window.innerWidth-A.editorContainer.width+"px":s.left+l/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(s.left-A.cellPointer.width/2-C(this.editorContainer).left+l/2-a.x,10)+"px"}}},k.prototype.updateEditorData=function(){var e=this.instance.getSelected(),t=this.instance.getDataAtCell(e[0],e[1]);this.row=e[0],this.col=e[1],this.setValue(t),this.updateEditorPosition()},k.prototype.prepareAndSave=function(){var e;return this.valueChanged()?(e=this.instance.getSettings().trimWhitespace?[[String.prototype.trim.call(this.getValue())]]:[[this.getValue()]],void this.saveValue(e)):!0},k.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.controls.leftButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,-1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.rightButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(0,1,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.upButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(-1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.controls.downButton,"touchend",function(t){e.prepareAndSave(),e.instance.selection.transformStart(1,0,null,!0),e.updateEditorData(),t.preventDefault()}),this.eventManager.addEventListener(this.moveHandle,"touchstart",function(t){if(1==t.touches.length){var o=t.touches[0],n={x:e.editorContainer.offsetLeft,y:e.editorContainer.offsetTop},r={x:o.pageX-n.x,y:o.pageY-n.y};e.eventManager.addEventListener(this,"touchmove",function(t){var o=t.touches[0];e.updateEditorPosition(o.pageX-r.x,o.pageY-r.y),e.hideCellPointer(),t.preventDefault()})}}),this.eventManager.addEventListener(document.body,"touchend",function(t){b(t.target,e.editorContainer)||b(t.target,e.instance.rootElement)||e.close()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.leftOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer!=window&&e.hideCellPointer()}),this.eventManager.addEventListener(this.instance.view.wt.wtOverlays.topOverlay.holder,"scroll",function(t){e.instance.view.wt.wtOverlays.topOverlay.trimmingContainer!=window&&e.hideCellPointer()})},k.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},E("mobile",k)},{_baseEditor:30,browser:23,editors:29,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/unicode":55}],37:[function(e,t,o){"use strict";Object.defineProperties(o,{NumericEditor:{get:function(){return u}},__esModule:{value:!0}});var n,r,i,s=(n=e("numeral"),n&&n.__esModule&&n||{"default":n})["default"],l=(r=e("editors"),r&&r.__esModule&&r||{"default":r}).registerEditor,a=(i=e("textEditor"),i&&i.__esModule&&i||{"default":i}).TextEditor,u=function(){$traceurRuntime.superConstructor(d).apply(this,arguments)},d=u;$traceurRuntime.createClass(u,{beginEditing:function(e){if("undefined"==typeof e&&this.originalValue){"undefined"!=typeof this.cellProperties.language&&s.language(this.cellProperties.language);var t=s.languageData().delimiters.decimal;e=(""+this.originalValue).replace(".",t)}$traceurRuntime.superGet(this,d.prototype,"beginEditing").call(this,e)}},{},a),l("numeric",u)},{editors:29,numeral:"numeral",textEditor:40}],38:[function(e,t,o){"use strict";Object.defineProperties(o,{PasswordEditor:{get:function(){return c}},__esModule:{value:!0}});var n,r,i,s,l=((n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}).empty),a=(i=e("editors"),i&&i.__esModule&&i||{"default":i}),u=(a.getEditor,a.registerEditor),d=(s=e("textEditor"),s&&s.__esModule&&s||{"default":s}).TextEditor,c=function(){$traceurRuntime.superConstructor(h).apply(this,arguments)},h=c;$traceurRuntime.createClass(c,{createElements:function(){$traceurRuntime.superGet(this,h.prototype,"createElements").call(this),this.TEXTAREA=document.createElement("input"),this.TEXTAREA.setAttribute("type","password"),this.TEXTAREA.className="handsontableInput",this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,l(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}},{},d),u("password",c)},{browser:23,editors:29,"helpers/dom/element":46,textEditor:40}],39:[function(e,t,o){"use strict";Object.defineProperties(o,{SelectEditor:{get:function(){return E}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],d=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),c=d.addClass,h=d.empty,f=d.fastInnerHTML,m=d.getComputedStyle,p=d.getCssTransform,g=d.getScrollableElement,w=d.offset,v=d.outerHeight,b=d.outerWidth,C=d.resetCssTransform,y=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{"default":i}).stopImmediatePropagation,_=(s=e("helpers/unicode"),s&&s.__esModule&&s||{"default":s}).KEY_CODES,R=(l=e("editors"),l&&l.__esModule&&l||{"default":l}),M=(R.getEditor,R.registerEditor),S=(a=e("_baseEditor"),a&&a.__esModule&&a||{"default":a}).BaseEditor,E=S.prototype.extend();E.prototype.init=function(){this.select=document.createElement("SELECT"),c(this.select,"htSelectEditor"),this.select.style.display="none",this.instance.rootElement.appendChild(this.select),this.registerHooks()},E.prototype.registerHooks=function(){var e=this;this.instance.addHook("afterScrollHorizontally",function(){return e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){return e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){return e.refreshDimensions()}),this.instance.addHook("afterRowResize",function(){return e.refreshDimensions()})},E.prototype.prepare=function(){S.prototype.prepare.apply(this,arguments);var e,t=this.cellProperties.selectOptions;e="function"==typeof t?this.prepareOptions(t(this.row,this.col,this.prop)):this.prepareOptions(t),h(this.select);for(var o in e)if(e.hasOwnProperty(o)){var n=document.createElement("OPTION");n.value=o,f(n,e[o]),this.select.appendChild(n)}},E.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var o=0,n=e.length;n>o;o++)t[e[o]]=e[o];else"object"==typeof e&&(t=e);return t},E.prototype.getValue=function(){return this.select.value},E.prototype.setValue=function(e){this.select.value=e};var O=function(e){var t=this,o=t.getActiveEditor();switch(e.keyCode){case _.ARROW_UP:var n=o.select.selectedIndex-1;n>=0&&(o.select[n].selected=!0),y(e),e.preventDefault();break;case _.ARROW_DOWN:var r=o.select.selectedIndex+1;r<=o.select.length-1&&(o.select[r].selected=!0),y(e),e.preventDefault()}};E.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",O)},E.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",O)},E.prototype.focus=function(){this.select.focus()},E.prototype.refreshDimensions=function(){if(this.state===u.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close();var e,t=b(this.TD)+1,o=v(this.TD)+1,n=w(this.TD),r=w(this.instance.rootElement),i=g(this.TD),s=n.top-r.top-1-(i.scrollTop||0),l=n.left-r.left-1-(i.scrollLeft||0),a=this.checkEditorSection(),d=this.instance.getSettings();d.rowHeaders?1:0,d.colHeaders?1:0;switch(a){case"top":e=p(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=p(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=p(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=p(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=p(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(s+=1),0===this.instance.getSelected()[1]&&(l+=1);var c=this.select.style;e&&-1!=e?c[e[0]]=e[1]:C(this.select);var h=m(this.TD);parseInt(h.borderTopWidth,10)>0&&(o-=1),parseInt(h.borderLeftWidth,10)>0&&(t-=1),c.height=o+"px",c.minWidth=t+"px",c.top=s+"px",c.left=l+"px",c.margin="0px"}},E.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=101;break;case"corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.select.style.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.select.style.zIndex=""}return-1!=e&&-2!=e?e:void 0},M("select",E)},{_baseEditor:30,browser:23,editors:29,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/unicode":55}],40:[function(e,t,o){"use strict";Object.defineProperties(o,{TextEditor:{get:function(){return N}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],h=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),f=h.addClass,m=h.getCaretPosition,p=h.getComputedStyle,g=h.getCssTransform,w=h.getScrollableElement,v=h.getScrollbarWidth,b=h.innerWidth,C=h.offset,y=h.resetCssTransform,_=h.setCaretPosition,R=h.hasVerticalScrollbar,M=h.hasHorizontalScrollbar,S=(i=e("autoResize"),i&&i.__esModule&&i||{"default":i})["default"],E=(s=e("_baseEditor"),s&&s.__esModule&&s||{"default":s}).BaseEditor,O=(l=e("eventManager"),l&&l.__esModule&&l||{"default":l}).eventManager,T=(a=e("editors"),a&&a.__esModule&&a||{"default":a}),k=(T.getEditor,T.registerEditor),A=(u=e("helpers/unicode"),u&&u.__esModule&&u||{"default":u}).KEY_CODES,H=(d=e("helpers/dom/event"),d&&d.__esModule&&d||{"default":d}),P=H.stopPropagation,x=H.stopImmediatePropagation,L=H.isImmediatePropagationStopped,N=E.prototype.extend();N.prototype.init=function(){var e=this;this.createElements(),this.eventManager=O(this),this.bindEvents(),this.autoResize=S(),this.instance.addHook("afterDestroy",function(){e.destroy()})},N.prototype.getValue=function(){return this.TEXTAREA.value},N.prototype.setValue=function(e){this.TEXTAREA.value=e};var D=function(e){var t,o=this,n=o.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===n.TEXTAREA&&!L(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void x(e);switch(e.keyCode){case A.ARROW_RIGHT:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&x(e);break;case A.ARROW_LEFT:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&x(e);break;case A.ARROW_UP:case A.ARROW_DOWN:n.isInFullEditMode()&&(!n.isWaiting()&&!n.allowKeyEventPropagation||!n.isWaiting()&&n.allowKeyEventPropagation&&!n.allowKeyEventPropagation(e.keyCode))&&x(e);break;case A.ENTER:var r=n.instance.getSelected(),i=!(r[0]===r[2]&&r[1]===r[3]);if(t&&!i||e.altKey){if(n.isOpened()){var s=m(n.TEXTAREA),l=n.getValue(),a=l.slice(0,s)+"\n"+l.slice(s);n.setValue(a),_(n.TEXTAREA,s+1)}else n.beginEditing(n.originalValue+"\n");x(e)}e.preventDefault();break;case A.A:case A.X:case A.C:case A.V:t&&x(e);break;case A.BACKSPACE:case A.DELETE:case A.HOME:case A.END:x(e)}-1===[A.ARROW_UP,A.ARROW_RIGHT,A.ARROW_DOWN,A.ARROW_LEFT].indexOf(e.keyCode)&&n.autoResize.resize(String.fromCharCode(e.keyCode))}};N.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",D)},N.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",D)},N.prototype.focus=function(){this.TEXTAREA.focus(),_(this.TEXTAREA,this.TEXTAREA.value.length)},N.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),f(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),f(this.TEXTAREA_PARENT,"handsontableInputHolder"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.textareaParentStyle.top=0,this.textareaParentStyle.left=0,this.textareaParentStyle.display="none",this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.instance.rootElement.appendChild(this.TEXTAREA_PARENT);var e=this;this.instance._registerTimeout(setTimeout(function(){e.refreshDimensions()},0))},N.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return-1!=e&&-2!=e?e:void 0},N.prototype.refreshDimensions=function(){if(this.state===c.EditorState.EDITING){if(this.TD=this.getEditedCell(),!this.TD)return void this.close(!0);var e,t=C(this.TD),o=C(this.instance.rootElement),n=w(this.TD),r=this.instance.countRows(),i=t.top-o.top-1-(n.scrollTop||0),s=t.left-o.left-1-(n.scrollLeft||0),l=this.instance.getSettings(),a=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),u=this.checkEditorSection(),d=this.TD.style.backgroundColor;switch(u){case"top":e=g(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=g(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=g(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=g(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=g(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(a&&0===this.instance.getSelected()[0]||l.fixedRowsBottom&&this.instance.getSelected()[0]===r-l.fixedRowsBottom)&&(i+=1),0===this.instance.getSelected()[1]&&(s+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:y(this.TEXTAREA_PARENT),this.textareaParentStyle.top=i+"px",this.textareaParentStyle.left=s+"px";var h=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,f=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,m=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),_=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),S=v(),E=this.TD.offsetTop+h-_,O=this.TD.offsetLeft+f-m,T=b(this.TD)-8,k=R(n)?S:0,A=M(n)?S:0,H=this.instance.view.maximumVisibleElementWidth(O)-9-k,P=this.TD.scrollHeight+1,x=Math.max(this.instance.view.maximumVisibleElementHeight(E)-A,23),L=p(this.TD);this.TEXTAREA.style.fontSize=L.fontSize,this.TEXTAREA.style.fontFamily=L.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=d?d:p(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(P,x),maxHeight:x,minWidth:Math.min(T,H),maxWidth:H},!0),this.textareaParentStyle.display="block"}},N.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){P(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){P(e)}),this.instance.addHook("afterScrollHorizontally",function(){e.refreshDimensions()}),this.instance.addHook("afterScrollVertically",function(){e.refreshDimensions()}),this.instance.addHook("afterColumnResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterRowResize",function(){e.refreshDimensions(),e.focus()}),this.instance.addHook("afterDestroy",function(){e.eventManager.destroy()})},N.prototype.destroy=function(){this.eventManager.destroy()},k("text",N)},{_baseEditor:30,autoResize:"autoResize",browser:23,editors:29,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/unicode":55}],41:[function(e,t,o){"use strict";function n(e,t){var o,n,r,i,s,l,a="HOT-TABLE";if(t.isTargetWebComponent=!1,t.realTarget=t.target,l=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){l.apply(this),m(this)},!u.eventManager.isHotTableEnv)return t;for(t=c(t),s=t.path?t.path.length:0;s--;){if(t.path[s].nodeName===a)o=!0;else if(o&&t.path[s].shadowRoot){i=t.path[s];break}0!==s||i||(i=t.path[s])}return i||(i=t.target),t.isTargetWebComponent=!0,f()?t.realTarget=t.srcElement||t.toElement:(e instanceof u.Core||e instanceof Walkontable)&&(e instanceof u.Core?n=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(n=e.wtTable.TABLE.parentNode.parentNode),r=h(t.target,[a],n),r?t.realTarget=n.querySelector(a)||t.target:t.realTarget=t.target),Object.defineProperty(t,"target",{get:function(){return c(i)},enumerable:!0,
configurable:!0}),t}function r(e){return new p(e)}Object.defineProperties(o,{EventManager:{get:function(){return p}},eventManager:{get:function(){return r}},__esModule:{value:!0}});var i,s,l,a,u=(i=e("browser"),i&&i.__esModule&&i||{"default":i})["default"],d=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{"default":s}),c=d.polymerWrap,h=d.closest,f=(l=e("helpers/feature"),l&&l.__esModule&&l||{"default":l}).isWebComponentSupportedNatively,m=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{"default":a}).stopImmediatePropagation,p=function(){var e=void 0!==arguments[0]?arguments[0]:null;this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])};$traceurRuntime.createClass(p,{addEventListener:function(e,t,o){function r(e){e=n(s,e),o.call(this,e)}var i=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:o,callbackProxy:r}),window.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r),u.countEventManagerListeners++,function(){i.removeEventListener(e,t,o)}},removeEventListener:function(e,t,o){for(var n,r=this.context.eventListeners.length;r--;)if(n=this.context.eventListeners[r],n.event==t&&n.element==e){if(o&&o!=n.callback)continue;this.context.eventListeners.splice(r,1),n.element.removeEventListener?n.element.removeEventListener(n.event,n.callbackProxy,!1):n.element.detachEvent("on"+n.event,n.callbackProxy),u.countEventManagerListeners--}},clearEvents:function(){if(this.context)for(var e=this.context.eventListeners.length;e--;){var t=this.context.eventListeners[e];t&&this.removeEventListener(t.element,t.event,t.callback)}},clear:function(){this.clearEvents()},destroy:function(){this.clearEvents(),this.context=null},fireEvent:function(e,t){var o,n={bubbles:!0,cancelable:"mousemove"!==t,view:window,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};document.createEvent?(o=document.createEvent("MouseEvents"),o.initMouseEvent(t,n.bubbles,n.cancelable,n.view,n.detail,n.screenX,n.screenY,n.clientX,n.clientY,n.ctrlKey,n.altKey,n.shiftKey,n.metaKey,n.button,n.relatedTarget||document.body.parentNode)):o=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(o):e.fireEvent("on"+t,o)}},{}),u.countEventManagerListeners=0,u.eventManager=r},{browser:23,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/feature":48}],42:[function(e,t,o){"use strict";function n(e){for(var t=0,o=e.length;o>t;)e[t]=[e[t]],t++}function r(e,t){for(var o=0,n=t.length;n>o;)e.push(t[o]),o++}function i(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var o=e.length,n=e[0].length,r=0;o>r;r++)for(var i=0;n>i;i++)t[i]||(t[i]=[]),t[i][r]=e[r][i];return t}function s(e,t,o,n){var r=-1,i=e.length;for(n&&i&&(o=e[++r]);++r<i;)o=t(o,e[r],r,e);return o}function l(e,t){for(var o=-1,n=e.length,r=-1,i=[];++o<n;){var s=e[o];t(s,o,e)&&(i[++r]=s)}return i}function a(e,t){for(var o=-1,n=e.length,r=-1,i=[];++o<n;){var s=e[o];i[++r]=t(s,o,e)}return i}function u(e,t){for(var o=-1,n=e.length;++o<n&&t(e[o],o,e)!==!1;);return e}function d(e){return s(e,function(e,t){return e+t},0)}function c(e){return s(e,function(e,t){return e>t?e:t},Array.isArray(e)?e[0]:void 0)}function h(e){return s(e,function(e,t){return t>e?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?d(e)/e.length:0}function m(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?m(t):t)},[])}function p(e){var t=[];return u(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}Object.defineProperties(o,{to2dArray:{get:function(){return n}},extendArray:{get:function(){return r}},pivot:{get:function(){return i}},arrayReduce:{get:function(){return s}},arrayFilter:{get:function(){return l}},arrayMap:{get:function(){return a}},arrayEach:{get:function(){return u}},arraySum:{get:function(){return d}},arrayMax:{get:function(){return c}},arrayMin:{get:function(){return h}},arrayAvg:{get:function(){return f}},arrayFlatten:{get:function(){return m}},arrayUnique:{get:function(){return p}},__esModule:{value:!0}})},{}],43:[function(e,t,o){"use strict";function n(){return a}function r(){return u}function i(){return d}function s(){return c}function l(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}Object.defineProperties(o,{isIE8:{get:function(){return n}},isIE9:{get:function(){return r}},isSafari:{get:function(){return i}},isChrome:{get:function(){return s}},isMobileBrowser:{get:function(){return l}},__esModule:{value:!0}});var a=!document.createTextNode("test").textContent,u=!!document.documentMode,d=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),c=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},{}],44:[function(e,t,o){"use strict";function n(e){for(var t,o=e+1,n="";o>0;)t=(o-1)%26,n=String.fromCharCode(65+t)+n,o=parseInt((o-t)/26,10);return n}function r(e,t){e="number"==typeof e?e:100,t="number"==typeof t?t:4;var o,r,i=[];for(o=0;e>o;o++){var s=[];for(r=0;t>r;r++)s.push(n(r)+(o+1));i.push(s)}return i}function i(e,t){e="number"==typeof e?e:100,t="number"==typeof t?t:4;var o,r,i=[];for(o=0;e>o;o++){var s={};for(r=0;t>r;r++)s["prop"+r]=n(r)+(o+1);i.push(s)}return i}function s(e,t){for(var o,n=[],r=0;e>r;r++){o=[];for(var i=0;t>i;i++)o.push("");n.push(o)}return n}function l(e){var t,o,n,r,i=[],s=0;for(t=0,o=e.length;o>t;t++)for(n=0,r=e[t].length;r>n;n++)n==s&&(i.push([]),s++),i[n].push(e[t][n]);return i}function a(e,t){function o(e){var t=c.cellTypes[e];if("undefined"==typeof t)throw new Error('You declared cell type "'+e+'" as a string that is not mapped to a known object. Cell type must be an object or a string mapped to an object in Handsontable.cellTypes');return t}return t="undefined"==typeof t?!0:t,function(n,r){return function i(n){if(n){if(n.hasOwnProperty(e)&&void 0!==n[e])return n[e];if(n.hasOwnProperty("type")&&n.type){var r;if("string"!=typeof n.type)throw new Error("Cell type must be a string ");if(r=o(n.type),r.hasOwnProperty(e))return r[e];if(t)return}return i(h(n))}}("number"==typeof n?this.getCellMeta(n,r):n)}}Object.defineProperties(o,{spreadsheetColumnLabel:{get:function(){return n}},createSpreadsheetData:{get:function(){return r}},createSpreadsheetObjectData:{get:function(){return i}},createEmptySpreadsheetData:{get:function(){return s}},translateRowsToColumns:{get:function(){return l}},cellMethodLookupFactory:{get:function(){return a}},__esModule:{value:!0}});var u,d,c=(u=e("browser"),u&&u.__esModule&&u||{"default":u})["default"],h=(d=e("object"),d&&d.__esModule&&d||{"default":d}).getPrototypeOf},{browser:23,object:52}],45:[function(e,t,o){"use strict";function n(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}Object.defineProperties(o,{getNormalizedDate:{get:function(){return n}},__esModule:{value:!0}})},{}],46:[function(e,t,o){"use strict";function n(e,t,o){for(;null!=e&&e!==o;){if(e.nodeType===Node.ELEMENT_NODE&&(t.indexOf(e.nodeName)>-1||t.indexOf(e)>-1))return e;e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode}return null}function r(e,t){var o=e.parentNode,n=[];for("string"==typeof t?n=Array.prototype.slice.call(document.querySelectorAll(t),0):n.push(t);null!=o;){if(n.indexOf(o)>-1)return!0;o=o.parentNode}return!1}function i(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===n.toUpperCase()}var o,n="hot-table",r=!1;for(o=s(e);null!=o;){if(t(o)){r=!0;break}if(o.host&&o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r=t(o.host))break;o=o.host}o=o.parentNode}return r}function s(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function l(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function a(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t}function u(e,t){var o=document.querySelector(".ht_clone_"+e);return o?o.contains(t):null}function d(e){var t=0,o=[];if(!e||!e.length)return o;for(;e[t];)o.push(e[t]),t++;return o}function c(e,t){return X(e,t)}function h(e,t){return q(e,t)}function f(e,t){return Q(e,t)}function m(e,t){if(3===e.nodeType)t.removeChild(e);else if(["TABLE","THEAD","TBODY","TFOOT","TR"].indexOf(e.nodeName)>-1)for(var o=e.childNodes,n=o.length-1;n>=0;n--)m(o[n],e)}function p(e){for(var t;t=e.lastChild;)e.removeChild(t)}function g(e,t){le.test(t)?e.innerHTML=t:w(e,t)}function w(e,t){var o=e.firstChild;o&&3===o.nodeType&&null===o.nextSibling?ae?o.textContent=t:o.data=t:(p(e),e.appendChild(document.createTextNode(t)))}function v(e){for(var t=e;l(t)!==document.documentElement;){if(null===t)return!1;if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t.host){if(t.host.impl)return v(t.host.impl);if(t.host)return v(t.host);throw new Error("Lost in Web Components world")}return!1}if("none"===t.style.display)return!1;t=t.parentNode}return!0}function b(e){var t,o,n,r,i;if(r=document.documentElement,oe()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return i=e.getBoundingClientRect(),{top:i.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0),left:i.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)};for(t=e.offsetLeft,o=e.offsetTop,n=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,o+=e.offsetTop,n=e;return n&&"fixed"===n.style.position&&(t+=window.pageXOffset||r.scrollLeft,o+=window.pageYOffset||r.scrollTop),{left:t,top:o}}function C(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function y(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function _(e){return e===window?C():e.scrollTop}function R(e){return e===window?y():e.scrollLeft}function M(e){for(var t,o,n,r=e.parentNode,i=["auto","scroll"],s="",l="",a="",u="";r&&r.style&&document.body!==r;){if(t=r.style.overflow,o=r.style.overflowX,n=r.style.overflowY,"scroll"==t||"scroll"==o||"scroll"==n)return r;if(window.getComputedStyle&&(s=window.getComputedStyle(r),l=s.getPropertyValue("overflow"),a=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===l||"scroll"===u||"scroll"===a))return r;if(r.clientHeight<=r.scrollHeight&&(-1!==i.indexOf(n)||-1!==i.indexOf(t)||-1!==i.indexOf(l)||-1!==i.indexOf(a)))return r;if(r.clientWidth<=r.scrollWidth&&(-1!==i.indexOf(o)||-1!==i.indexOf(t)||-1!==i.indexOf(l)||-1!==i.indexOf(u)))return r;r=r.parentNode}return window}function S(e){for(var t=e.parentNode;t&&t.style&&document.body!==t;){if("visible"!==t.style.overflow&&""!==t.style.overflow)return t;if(window.getComputedStyle){var o=window.getComputedStyle(t);if("visible"!==o.getPropertyValue("overflow")&&""!==o.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function E(e,t){if(e){if(e!==window){var o,n=e.style[t];return""!==n&&void 0!==n?n:(o=O(e),""!==o[t]&&void 0!==o[t]?o[t]:void 0)}if("width"===t)return window.innerWidth+"px";if("height"===t)return window.innerHeight+"px"}}function O(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function T(e){return e.offsetWidth}function k(e){return oe()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function A(e){return e.clientHeight||e.innerHeight}function H(e){return e.clientWidth||e.innerWidth}function P(e,t,o){window.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o)}function x(e,t,o){window.removeEventListener?e.removeEventListener(t,o,!1):e.detachEvent("on"+t,o)}function L(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var o=e.createTextRange(),n=o.duplicate();return o.moveToBookmark(t.getBookmark()),n.setEndPoint("EndToStart",o),n.text.length}return 0}function N(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;var o=e.createTextRange();return o.text.indexOf(t.text)+t.text.length}}function D(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function I(e,t,o){if(void 0===o&&(o=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,o)}catch(n){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,o),r.style.display=i}}else if(e.createTextRange){var s=e.createTextRange();s.collapse(!0),s.moveEnd("character",o),s.moveStart("character",t),s.select()}}function W(){var e=document.createElement("p");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),(document.body||document.documentElement).appendChild(t);var o=e.offsetWidth;t.style.overflow="scroll";var n=e.offsetWidth;return o==n&&(n=t.clientWidth),(document.body||document.documentElement).removeChild(t),o-n}function F(){return void 0===se&&(se=W()),se}function B(e){return e.offsetWidth!==e.clientWidth}function j(e){return e.offsetHeight!==e.clientHeight}function V(e,t,o){Z()||ee()?(e.style.top=o,e.style.left=t):te()?e.style["-webkit-transform"]="translate3d("+t+","+o+",0)":e.style.transform="translate3d("+t+","+o+",0)"}function U(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function z(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function G(e){var t=["INPUT","SELECT","TEXTAREA"];return e&&(t.indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function $(e){return G(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")}Object.defineProperties(o,{closest:{get:function(){return n}},isChildOf:{get:function(){return r}},isChildOfWebComponentTable:{get:function(){return i}},polymerWrap:{get:function(){return s}},polymerUnwrap:{get:function(){return l}},index:{get:function(){return a}},overlayContainsElement:{get:function(){return u}},hasClass:{get:function(){return c}},addClass:{get:function(){return h}},removeClass:{get:function(){return f}},removeTextNodes:{get:function(){return m}},empty:{get:function(){return p}},HTML_CHARACTERS:{get:function(){return le}},fastInnerHTML:{get:function(){return g}},fastInnerText:{get:function(){return w}},isVisible:{get:function(){return v}},offset:{get:function(){return b}},getWindowScrollTop:{get:function(){return C}},getWindowScrollLeft:{get:function(){return y}},getScrollTop:{get:function(){return _}},getScrollLeft:{get:function(){return R}},getScrollableElement:{get:function(){return M}},getTrimmingContainer:{get:function(){return S}},getStyle:{get:function(){return E}},getComputedStyle:{get:function(){return O}},outerWidth:{get:function(){return T}},outerHeight:{get:function(){return k}},innerHeight:{get:function(){return A}},innerWidth:{get:function(){return H}},addEvent:{get:function(){return P}},removeEvent:{get:function(){return x}},getCaretPosition:{get:function(){return L}},getSelectionEndPosition:{get:function(){return N}},getSelectionText:{get:function(){return D}},setCaretPosition:{get:function(){return I}},getScrollbarWidth:{get:function(){return F}},hasVerticalScrollbar:{get:function(){return B}},hasHorizontalScrollbar:{get:function(){return j}},setOverlayPosition:{get:function(){return V}},getCssTransform:{get:function(){return U}},resetCssTransform:{get:function(){return z}},isInput:{get:function(){return G}},isOutsideInput:{get:function(){return $}},__esModule:{value:!0}});var Y,K,X,q,Q,J=(Y=e("../browser"),Y&&Y.__esModule&&Y||{"default":Y}),Z=J.isIE8,ee=J.isIE9,te=J.isSafari,oe=(K=e("../feature"),K&&K.__esModule&&K||{"default":K}).hasCaptionProblem,ne=!!document.documentElement.classList;if(ne){var re=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();X=function(e,t){return""===t?!1:e.classList.contains(t)},q=function(e,t){var o=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),re)e.classList.add.apply(e.classList,t);else for(;t&&t[o];)e.classList.add(t[o]),o++},Q=function(e,t){var o=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),re)e.classList.remove.apply(e.classList,t);else for(;t&&t[o];)e.classList.remove(t[o]),o++}}else{var ie=function(e){return new RegExp("(\\s|^)"+e+"(\\s|$)")};X=function(e,t){return!!e.className.match(ie(t))},q=function(e,t){var o=0,n=e.className;if("string"==typeof t&&(t=t.split(" ")),""===n)n=t.join(" ");else for(;t&&t[o];)ie(t[o]).test(n)||(n+=" "+t[o]),o++;e.className=n},Q=function(e,t){var o=0,n=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[o];)n=n.replace(ie(t[o])," ").trim(),o++;e.className!==n&&(e.className=n)}}var se,le=/(<(.*)>|&(.*);)/,ae=!!document.createTextNode("test").textContent},{"../browser":43,"../feature":48}],47:[function(e,t,o){"use strict";function n(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function r(e){return e.isImmediatePropagationEnabled===!1}function i(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+c()}function l(e){return e.pageY?e.pageY:e.clientY+d()}Object.defineProperties(o,{stopImmediatePropagation:{get:function(){return n}},isImmediatePropagationStopped:{get:function(){return r}},stopPropagation:{get:function(){return i}},pageX:{get:function(){return s}},pageY:{get:function(){return l}},__esModule:{value:!0}});var a,u=(a=e("element"),a&&a.__esModule&&a||{"default":a}),d=u.getWindowScrollTop,c=u.getWindowScrollLeft},{element:46}],48:[function(e,t,o){"use strict";function n(e){return h.call(window,e)}function r(e){f.call(window,e)}function i(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))}function l(){var e=document.createElement("TABLE");e.style.borderSpacing=0,e.style.borderWidth=0,e.style.padding=0;var t=document.createElement("TBODY");e.appendChild(t),t.appendChild(document.createElement("TR")),t.firstChild.appendChild(document.createElement("TD")),t.firstChild.firstChild.innerHTML="<tr><td>t<br>t</td></tr>";var o=document.createElement("CAPTION");o.innerHTML="c<br>c<br>c<br>c",o.style.padding=0,o.style.margin=0,e.insertBefore(o,t),document.body.appendChild(e),p=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}function a(){return void 0===p&&l(),p}function u(e){var t=void 0!==arguments[1]?arguments[1]:{};return g?g:g="object"==typeof Intl?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return(e+"").localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1}}Object.defineProperties(o,{requestAnimationFrame:{get:function(){return n}},cancelAnimationFrame:{get:function(){return r}},isTouchSupported:{get:function(){return i}},isWebComponentSupportedNatively:{get:function(){return s}},hasCaptionProblem:{get:function(){return a}},getComparisonFunction:{get:function(){return u}},__esModule:{value:!0}});for(var d=0,c=["ms","moz","webkit","o"],h=window.requestAnimationFrame,f=window.cancelAnimationFrame,m=0;m<c.length&&!h;++m)h=window[c[m]+"RequestAnimationFrame"],f=window[c[m]+"CancelAnimationFrame"]||window[c[m]+"CancelRequestAnimationFrame"];h||(h=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-d)),n=window.setTimeout(function(){e(t+o)},o);return d=t+o,n}),f||(f=function(e){clearTimeout(e)});var p,g},{}],49:[function(e,t,o){"use strict";function n(e,t){return function(){return e.apply(t,arguments)}}function r(e){function t(){var t=this,s=arguments,l=Date.now(),a=!1;r.lastCallThrottled=!0,n||(n=l,a=!0);var u=o-(l-n);return a?(r.lastCallThrottled=!1,e.apply(this,s)):(i&&clearTimeout(i),i=setTimeout(function(){r.lastCallThrottled=!1,e.apply(t,s),n=0,i=void 0},u)),r}var o=void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},i=null;return t}function i(e){function t(){l=i}function o(){return l?(l--,e.apply(this,arguments)):s.apply(this,arguments)}var n=void 0!==arguments[1]?arguments[1]:200,i=void 0!==arguments[2]?arguments[2]:10,s=r(e,n),l=i;return o.clearHits=t,o}function s(e){function t(){var t=this,i=arguments;return r&&clearTimeout(r),r=setTimeout(function(){o=e.apply(t,i)},n),o}var o,n=void 0!==arguments[1]?arguments[1]:200,r=null;return t}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e,n=o[0],r=Array.prototype.slice.call(o,1);return function(){return h(r,function(e,t){return t(e)},n.apply(this,arguments))}}function a(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return e.apply(this,t.concat(o))}}function u(e){function t(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s,l=n.concat(r);return s=l.length>=o?e.apply(this,l):t(l)}}var o=e.length;return t([])}function d(e){function t(n){return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var s,l=n.concat(r.reverse());return s=l.length>=o?e.apply(this,l):t(l)}}var o=e.length;return t([])}Object.defineProperties(o,{proxy:{get:function(){return n}},throttle:{get:function(){return r}},throttleAfterHits:{get:function(){return i}},debounce:{get:function(){return s}},pipe:{get:function(){return l}},partial:{get:function(){return a}},curry:{get:function(){return u}},curryRight:{get:function(){return d}},__esModule:{value:!0}});var c,h=(c=e("array"),c&&c.__esModule&&c||{"default":c}).arrayReduce},{array:42}],50:[function(e,t,o){"use strict";function n(e){switch(typeof e){case"string":case"number":return e+"";case"object":return null===e?"":e.toString();case"undefined":return"";default:return e.toString()}}Object.defineProperties(o,{stringify:{get:function(){return n}},__esModule:{value:!0}})},{}],51:[function(e,t,o){"use strict";function n(e){var t=typeof e;return"number"==t?!isNaN(e)&&isFinite(e):"string"==t?e.length?1==e.length?/\d/.test(e):/^\s*[+-]?\s*(?:(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)|(?:0x[a-f\d]+))\s*$/i.test(e):!1:"object"==t?!(!e||"number"!=typeof e.valueOf()||e instanceof Date):!1}function r(e,t,o){var n=-1;for("function"==typeof t?(o=t,t=e):n=e-1;++n<=t&&o(n)!==!1;);}function i(e,t,o){var n=e+1;for("function"==typeof t&&(o=t,t=0);--n>=t&&o(n)!==!1;);}function s(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100)}Object.defineProperties(o,{isNumeric:{get:function(){return n}},rangeEach:{get:function(){return r}},rangeEachReverse:{get:function(){return i}},valueAccordingPercent:{get:function(){return s}},__esModule:{value:!0}})},{}],52:[function(e,t,o){"use strict";function n(e){var t;return Array.isArray(e)?t=[]:(t={},m(e,function(e,o){e&&"object"==typeof e&&!Array.isArray(e)?t[o]=n(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?t[o]=[n(e[0])]:t[o]=[]:t[o]=null})),t}function r(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function i(e,t){return m(t,function(t,o){e[o]=t}),e}function s(e,t){m(t,function(o,n){t[n]&&"object"==typeof t[n]?(e[n]||(Array.isArray(t[n])?e[n]=[]:"[object Date]"===Object.prototype.toString.call(t[n])?e[n]=t[n]:e[n]={}),s(e[n],t[n])):e[n]=t[n]})}function l(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function a(e){var t={};return m(e,function(e,o){t[o]=e}),t}function u(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return e.MIXINS||(e.MIXINS=[]),w(t,function(t){e.MIXINS.push(t.MIXIN_NAME),m(t,function(t,o){if(void 0!==e.prototype[o])throw new Error("Mixin conflict. Property '"+o+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[o]=t;else{var n=function(e,t){e="_"+e;var o=function(e){return(Array.isArray(e)||c(e))&&(e=l(e)),e};return function(){return void 0===this[e]&&(this[e]=o(t)),this[e]}},r=function(e){return e="_"+e,function(t){this[e]=t}};Object.defineProperty(e.prototype,o,{get:n(o,t),set:r(o),configurable:!0})}})}),e}function d(e,t){return JSON.stringify(e)===JSON.stringify(t)}function c(e){return"[object Object]"==Object.prototype.toString.call(e)}function h(e){var t;if("object"==typeof e.__proto__)t=e.__proto__;else{var o,n=e.constructor;"function"==typeof e.constructor&&(o=n,delete e.constructor&&(n=e.constructor,e.constructor=o)),t=n?n.prototype:null}return t}function f(e,t,o,n){n.value=o,n.writable=n.writable!==!1,n.enumerable=n.enumerable!==!1,n.configurable=n.configurable!==!1,Object.defineProperty(e,t,n)}function m(e,t){for(var o in e)if((!e.hasOwnProperty||e.hasOwnProperty&&e.hasOwnProperty(o))&&t(e[o],o,e)===!1)break;return e}function p(e,t){var o=t.split("."),n=e;return m(o,function(e){return n=n[e],void 0===n?(n=void 0,!1):void 0}),n}Object.defineProperties(o,{duckSchema:{get:function(){return n}},inherit:{get:function(){return r}},extend:{get:function(){return i}},deepExtend:{get:function(){return s}},deepClone:{get:function(){return l}},clone:{get:function(){return a}},mixin:{get:function(){return u}},isObjectEquals:{get:function(){return d}},isObject:{get:function(){return c}},getPrototypeOf:{get:function(){return h}},defineGetter:{get:function(){return f}},objectEach:{get:function(){return m}},getProperty:{get:function(){return p}},__esModule:{value:!0}});var g,w=(g=e("array"),g&&g.__esModule&&g||{"default":g}).arrayEach},{array:42}],53:[function(e,t,o){"use strict";function n(e,t){function o(){}i(o,e);for(var n=0,r=t.length;r>n;n++)o.prototype[t[n]]=void 0;return o}Object.defineProperties(o,{columnFactory:{get:function(){return n}},__esModule:{value:!0}});var r,i=(r=e("object"),r&&r.__esModule&&r||{"default":r}).inherit},{object:52}],54:[function(e,t,o){"use strict";function n(e){return e[0].toUpperCase()+e.substr(1)}function r(e,t){var o=!0;return m(t.length-1,function(n){return e.charAt(n)!==t.charAt(n)?(o=!1,!1):void 0}),o}function i(e,t){var o=!0,n=t.length-1,r=e.length-1;return m(n,function(i){var s=r-i,l=n-i;return e.charAt(s)!==t.charAt(l)?(o=!1,!1):void 0}),o}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=[],n=e.length;n--;){var r=f(e[n]).toLowerCase();-1===o.indexOf(r)&&o.push(r)}return 1===o.length}function l(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function a(e){return/^([0-9][0-9]?\%$)|(^100\%$)/.test(e)}function u(e){var t=void 0!==arguments[1]?arguments[1]:{};return(e+"").replace(/(?:\\)?\[([^\[\]]+)]/g,function(e,o){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[o]?"":t[o]})}function d(e,t){var o=void 0!==arguments[2]?arguments[2]:" ";if(e+="",e.length>=t)return e;o=String(o);var n=o.length;n||(o=" ");var r=t-e.length,i=Math.ceil(r/o.length),s="";return m(i,function(e){s+=o}),s=s.slice(0,r),s+e}Object.defineProperties(o,{toUpperCaseFirst:{get:function(){return n}},startsWith:{get:function(){return r}},endsWith:{get:function(){return i}},equalsIgnoreCase:{get:function(){return s}},randomString:{get:function(){return l}},isPercentValue:{get:function(){return a}},substitute:{get:function(){return u}},padStart:{get:function(){return d}},__esModule:{value:!0}});var c,h,f=(c=e("mixed"),c&&c.__esModule&&c||{"default":c}).stringify,m=(h=e("number"),h&&h.__esModule&&h||{"default":h}).rangeEach},{mixed:50,number:51}],55:[function(e,t,o){"use strict";function n(e){return 32==e||e>=48&&57>=e||e>=96&&111>=e||e>=186&&192>=e||e>=219&&222>=e||e>=226||e>=65&&90>=e}function r(e){var t=[u.ARROW_DOWN,u.ARROW_UP,u.ARROW_LEFT,u.ARROW_RIGHT,u.HOME,u.END,u.DELETE,u.BACKSPACE,u.F1,u.F2,u.F3,u.F4,u.F5,u.F6,u.F7,u.F8,u.F9,u.F10,u.F11,u.F12,u.TAB,u.PAGE_DOWN,u.PAGE_UP,u.ENTER,u.ESCAPE,u.SHIFT,u.CAPS_LOCK,u.ALT];return-1!==t.indexOf(e)}function i(e){return-1!==[u.CONTROL_LEFT,224,u.COMMAND_LEFT,u.COMMAND_RIGHT].indexOf(e)}function s(e,t){var o=t.split("|"),n=!1;return a(o,function(t){return e===u[t]?(n=!0,!1):void 0}),n}Object.defineProperties(o,{KEY_CODES:{get:function(){return u}},isPrintableChar:{get:function(){return n}},isMetaKey:{get:function(){return r}},isCtrlKey:{get:function(){return i}},isKey:{get:function(){return s}},__esModule:{value:!0}});var l,a=(l=e("array"),l&&l.__esModule&&l||{"default":l}).arrayEach,u={MOUSE_LEFT:1,MOUSE_RIGHT:3,MOUSE_MIDDLE:2,BACKSPACE:8,COMMA:188,INSERT:45,DELETE:46,END:35,ENTER:13,ESCAPE:27,CONTROL_LEFT:91,COMMAND_LEFT:17,COMMAND_RIGHT:93,ALT:18,HOME:36,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,SPACE:32,SHIFT:16,CAPS_LOCK:20,TAB:9,ARROW_RIGHT:39,ARROW_LEFT:37,ARROW_UP:38,ARROW_DOWN:40,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,A:65,X:88,C:67,V:86}},{array:42}],56:[function(e,t,o){"use strict";Object.defineProperties(o,{arrayMapper:{get:function(){return p}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("helpers/array"),r&&r.__esModule&&r||{"default":r}),u=(a.arrayEach,a.arrayReduce),d=a.arrayMap,c=a.arrayMax,h=(i=e("helpers/object"),i&&i.__esModule&&i||{"default":i}).defineGetter,f=(s=e("helpers/number"),s&&s.__esModule&&s||{"default":s}).rangeEach,m="arrayMapper",p={_arrayMap:[],getValueByIndex:function(e){var t;return void 0===(t=this._arrayMap[e])?null:t},getIndexByValue:function(e){var t;return-1===(t=this._arrayMap.indexOf(e))?null:t},insertItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,o=this,n=c(this._arrayMap)+1,r=[];return f(t-1,function(t){r.push(o._arrayMap.splice(e+t,0,n+t))}),r},removeItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,o=this,n=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),n=u(e,function(e,t){return o._arrayMap.splice(t,1),e.concat(r.slice(t,t+1))},[])}else n=this._arrayMap.splice(e,t);return n},unshiftItems:function(e){function t(e){return u(n,function(t,o){return e>o&&t++,t},0)}var o=void 0!==arguments[1]?arguments[1]:1,n=this.removeItems(e,o);this._arrayMap=d(this._arrayMap,function(e,o){var n=t(e);return n&&(e-=n),e})},shiftItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,o=this;this._arrayMap=d(this._arrayMap,function(o){return o>=e&&(o+=t),o}),f(t-1,function(t){o._arrayMap.splice(e+t,0,e+t)})},clearMap:function(){this._arrayMap.length=0}};h(p,"MIXIN_NAME",m,{writable:!1,enumerable:!1}),l.utils.arrayMapper=p},{browser:23,"helpers/array":42,"helpers/number":51,"helpers/object":52}],57:[function(e,t,o){"use strict";Object.defineProperties(o,{localHooks:{get:function(){return d}},__esModule:{value:!0}});var n,r,i,s=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],l=(r=e("helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,a=(i=e("helpers/object"),i&&i.__esModule&&i||{"default":i}).defineGetter,u="localHooks",d={_localHooks:Object.create(null),addLocalHook:function(e,t){this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t)},runLocalHooks:function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var n=this;this._localHooks[e]&&l(this._localHooks[e],function(e){return e.apply(n,t)})},clearLocalHooks:function(){this._localHooks={}}};a(d,"MIXIN_NAME",u,{writable:!1,enumerable:!1}),s.utils.localHooks=d},{browser:23,"helpers/array":42,"helpers/object":52}],58:[function(e,t,o){"use strict";var n;Object.defineProperties(o,{stateSaver:{get:function(){return m}},__esModule:{value:!0}});var r,i,s,l=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],a=((i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,(s=e("helpers/object"),s&&s.__esModule&&s||{"default":s}).defineGetter),u="stateSaver",d="state_",c="_states",h=function(e,t){return e[c][d+t]},f=function(e,t,o){e[c][d+t]=o},m=(n={},Object.defineProperty(n,c,{value:{},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"getCachedState",{value:function(e){return h(this,e)},configurable:!0,
enumerable:!0,writable:!0}),Object.defineProperty(n,"setCachedState",{value:function(e,t){f(this,e,t)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"saveState",{value:function(e){f(this,e,this.getState())},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"restoreState",{value:function(e){this.setState(h(this,e))},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"hasSavedState",{value:function(e){return void 0!==h(this,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"clearState",{value:function(e){f(this,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"clearStates",{value:function(){this[c]={}},configurable:!0,enumerable:!0,writable:!0}),n);a(m,"MIXIN_NAME",u,{writable:!1,enumerable:!1}),l.utils.stateSaver=m},{browser:23,"helpers/array":42,"helpers/object":52}],59:[function(e,t,o){"use strict";function n(){function e(e){return null!==e&&!o(e)&&("string"==typeof e||"number"==typeof e)}function t(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function o(e){return e!==e}var n={arrayMap:[],weakMap:new WeakMap};return{get:function(o){return e(o)?n.arrayMap[o]:t(o)?n.weakMap.get(o):void 0},set:function(o,r){if(e(o))n.arrayMap[o]=r;else{if(!t(o))throw new Error("Invalid key type");n.weakMap.set(o,r)}},"delete":function(o){e(o)?delete n.arrayMap[o]:t(o)&&n.weakMap["delete"](o)}}}Object.defineProperties(o,{MultiMap:{get:function(){return n}},__esModule:{value:!0}}),window.MultiMap=n},{}],60:[function(e,t,o){"use strict";Object.defineProperties(o,{Hooks:{get:function(){return a}},__esModule:{value:!0}});var n,r,i=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","afterCreateCol","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellMouseDown","afterOnCellMouseOver","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","construct","init","modifyCol","unmodifyCol","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","afterAutofillApplyValues","modifyCopyableRange","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight"],s=(n=e("helpers/array"),n&&n.__esModule&&n||{"default":n}).arrayEach,l=(r=e("helpers/object"),r&&r.__esModule&&r||{"default":r}).objectEach,a=function(){this.globalBucket=this.createEmptyBucket()};$traceurRuntime.createClass(a,{createEmptyBucket:function(){var e=Object.create(null);return s(i,function(t){return e[t]=[]}),e},getBucket:function(){var e=void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket},add:function(e,t){var o=void 0!==arguments[2]?arguments[2]:null,n=this;if(Array.isArray(t))s(t,function(t){return n.add(e,t,o)});else{var r=this.getBucket(o);"undefined"==typeof r[e]&&(this.register(e),r[e]=[]),t.skip=!1,-1===r[e].indexOf(t)&&r[e].push(t)}return this},once:function(e,t){var o=void 0!==arguments[2]?arguments[2]:null,n=this;Array.isArray(t)?s(t,function(t){return n.once(e,t,o)}):(t.runOnce=!0,this.add(e,t,o))},remove:function(e,t){var o=void 0!==arguments[2]?arguments[2]:null,n=this.getBucket(o);return"undefined"!=typeof n[e]&&n[e].indexOf(t)>=0?(t.skip=!0,!0):!1},has:function(e){var t=void 0!==arguments[1]?arguments[1]:null,o=this.getBucket(t);return!(void 0===o[e]||!o[e].length)},run:function(e,t,o,n,r,i,s,l){var a=this.globalBucket[t],u=-1,d=a?a.length:0;if(d)for(;++u<d;)if(a[u]&&!a[u].skip){var c=a[u].call(e,o,n,r,i,s,l);void 0!==c&&(o=c),a[u]&&a[u].runOnce&&this.remove(t,a[u])}var h=this.getBucket(e)[t],f=-1,m=h?h.length:0;if(m)for(;++f<m;)if(h[f]&&!h[f].skip){var p=h[f].call(e,o,n,r,i,s,l);void 0!==p&&(o=p),h[f]&&h[f].runOnce&&this.remove(t,h[f],e)}return o},destroy:function(){var e=void 0!==arguments[0]?arguments[0]:null;l(this.getBucket(e),function(e,t,o){return o[t].length=0})},register:function(e){this.isRegistered(e)||i.push(e)},deregister:function(e){this.isRegistered(e)&&i.splice(i.indexOf(e),1)},isRegistered:function(e){return i.indexOf(e)>=0},getRegistered:function(){return i}},{})},{"helpers/array":42,"helpers/object":52}],61:[function(e,t,o){"use strict";function n(e,t){e=h(e),d.plugins[e]=t,d.hooks.add("construct",function(){var o;f.has(this)||f.set(this,{}),o=f.get(this),o[e]||(o[e]=new t(this))}),d.hooks.add("afterDestroy",function(){if(f.has(this)){var e=f.get(this);c(e,function(e){return e.destroy()}),f["delete"](this)}})}function r(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var o=h(t);if(f.has(e)&&f.get(e)[o])return f.get(e)[o]}function i(e){return f.has(e)?Object.keys(f.get(e)):[]}function s(e,t){var o=null;return f.has(e)&&c(f.get(e),function(e,n){e===t&&(o=n)}),o}Object.defineProperties(o,{registerPlugin:{get:function(){return n}},getPlugin:{get:function(){return r}},getRegistredPluginNames:{get:function(){return i}},getPluginName:{get:function(){return s}},__esModule:{value:!0}});var l,a,u,d=(l=e("browser"),l&&l.__esModule&&l||{"default":l})["default"],c=(a=e("helpers/object"),a&&a.__esModule&&a||{"default":a}).objectEach,h=(u=e("helpers/string"),u&&u.__esModule&&u||{"default":u}).toUpperCaseFirst,f=new WeakMap},{browser:23,"helpers/object":52,"helpers/string":54}],62:[function(e,t,o){"use strict";Object.defineProperties(o,{"default":{get:function(){return v}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("helpers/object"),r&&r.__esModule&&r||{"default":r}),u=a.defineGetter,d=a.objectEach,c=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,h=(s=e("plugins"),s&&s.__esModule&&s||{"default":s}),f=h.getRegistredPluginNames,m=h.getPluginName,p=new WeakMap,g=null,w=function(e){var t=this;u(this,"hot",e,{writable:!1}),p.set(this,{hooks:{}}),g=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return t.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(){return t.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return t.init()})};$traceurRuntime.createClass(w,{init:function(){this.pluginName=m(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),g||(g=f(this.hot)),g.indexOf(this.pluginName)>=0&&g.splice(g.indexOf(this.pluginName),1),g.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0},enablePlugin:function(){this.enabled=!0},disablePlugin:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1},addHook:function(e,t){var o=p.get(this).hooks[e]=p.get(this).hooks[e]||[];this.hot.addHook(e,t),o.push(t),p.get(this).hooks[e]=o},removeHooks:function(e){var t=this;c(p.get(this).hooks[e]||[],function(o){t.hot.removeHook(e,o)})},clearHooks:function(){var e=this,t=p.get(this).hooks;d(t,function(t,o){return e.removeHooks(o)}),t.length=0},callOnPluginsReady:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)},onAfterPluginsInitialized:function(){c(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0},onUpdateSettings:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())},updatePlugin:function(){},destroy:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),d(this,function(t,o){"hot"!==o&&(e[o]=null)}),delete this.hot}},{});var v=w;l.plugins.BasePlugin=w},{browser:23,"helpers/array":42,"helpers/object":52,plugins:61}],63:[function(e,t,o){"use strict";Object.defineProperties(o,{AutoColumnSize:{get:function(){return P}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f,m=(n=e("_base"),n&&n.__esModule&&n||{"default":n})["default"],p=(r=e("helpers/array"),r&&r.__esModule&&r||{"default":r}),g=p.arrayEach,w=p.arrayFilter,v=(i=e("helpers/feature"),i&&i.__esModule&&i||{"default":i}),b=v.cancelAnimationFrame,C=v.requestAnimationFrame,y=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{"default":s}).isVisible,_=(l=e("utils/ghostTable"),l&&l.__esModule&&l||{"default":l}).GhostTable,R=(a=e("helpers/object"),a&&a.__esModule&&a||{"default":a}),M=R.isObject,S=(R.objectEach,u=e("helpers/number"),u&&u.__esModule&&u||{"default":u}),E=S.valueAccordingPercent,O=S.rangeEach,T=(d=e("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin,k=(c=e("utils/samplesGenerator"),c&&c.__esModule&&c||{"default":c}).SamplesGenerator,A=(h=e("helpers/string"),h&&h.__esModule&&h||{"default":h}).isPercentValue,H=(f=e("3rdparty/walkontable/src/calculator/viewportColumns"),f&&f.__esModule&&f||{"default":f}).WalkontableViewportColumnsCalculator,P=function(e){var t=this;$traceurRuntime.superConstructor(x).call(this,e),this.widths=[],this.ghostTable=new _(this.hot),this.samplesGenerator=new k(function(e,o){return t.hot.getDataAtCell(e,o)}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeColumnResize",function(e,o,n){return t.onBeforeColumnResize(e,o,n)})},x=P;$traceurRuntime.createClass(P,{isEnabled:function(){return this.hot.getSettings().autoColumnSize!==!1&&!this.hot.getSettings().colWidths},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().autoColumnSize,o=t&&t.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0;o&&!isNaN(o)&&(this.samplesGenerator.customSampleCount=parseInt(o,10)),t&&null!=t.useHeaders&&this.ghostTable.setSetting("useHeaders",t.useHeaders),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("modifyColWidth",function(t,o){return e.getColumnWidth(o,t)}),$traceurRuntime.superGet(this,x.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,x.prototype,"disablePlugin").call(this)},calculateColumnsWidth:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countRows()-1},o=void 0!==arguments[2]?arguments[2]:!1,n=this;"number"==typeof e&&(e={from:e,to:e}),"number"==typeof t&&(t={from:t,to:t}),O(e.from,e.to,function(e){if(o||void 0===n.widths[e]&&!n.hot._getColWidthFromSettings(e)){var r=n.samplesGenerator.generateColumnSamples(e,t);r.forEach(function(e,t){return n.ghostTable.addColumn(t,e)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,t){return n.widths[e]=t}),this.ghostTable.clean())},calculateAllColumnsWidth:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=this,o=0,n=this.hot.countCols()-1,r=null;this.inProgress=!0;var i=function(){return t.hot?(t.calculateColumnsWidth({from:o,to:Math.min(o+x.CALCULATION_STEP,n)},e),o=o+x.CALCULATION_STEP+1,void(n>o?r=C(i):(b(r),t.inProgress=!1,t.hot.view.wt.wtOverlays.adjustElementsSize(!0),t.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&t.hot.view.wt.wtOverlays.leftOverlay.clone.draw()))):(b(r),void(t.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},e),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),n>o?i():this.inProgress=!1},recalculateAllColumnsWidth:function(){this.hot.view&&y(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())},getSyncCalculationLimit:function(){var e=x.SYNC_CALCULATION_LIMIT,t=this.hot.countCols()-1;return M(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,A(e)?e=E(t,e):e>>=0),Math.min(e,t)},getColumnWidth:function(e){var t=arguments[1],o=void 0!==arguments[2]?arguments[2]:!0,n=t;return void 0===n&&(n=this.widths[e],o&&"number"==typeof n&&(n=Math.max(n,H.DEFAULT_WIDTH))),n},getFirstVisibleColumn:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getFirstVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getFirstRenderedColumn():-1},getLastVisibleColumn:function(){var e=this.hot.view.wt;return e.wtViewport.columnsVisibleCalculator?e.wtTable.getLastVisibleColumn():e.wtViewport.columnsRenderCalculator?e.wtTable.getLastRenderedColumn():-1},clearCache:function(){this.widths.length=0},isNeedRecalculate:function(){return!!w(this.widths,function(e){return void 0===e}).length},onBeforeRender:function(){var e=this.hot.renderCall,t=this.hot.countRows();t&&(this.calculateColumnsWidth({from:this.getFirstVisibleColumn(),to:this.getLastVisibleColumn()},void 0,e),this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllColumnsWidth())},onAfterLoadData:function(){var e=this;this.hot.view?this.recalculateAllColumnsWidth():setTimeout(function(){e.hot&&e.recalculateAllColumnsWidth()},0)},onBeforeChange:function(e){var t=this;g(e,function(e){return t.widths[t.hot.propToCol(e[1])]=void 0})},onBeforeColumnResize:function(e,t,o){return o&&(this.calculateColumnsWidth(e,void 0,!0),t=this.getColumnWidth(e,void 0,!1)),t},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,x.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 50}},m),T("autoColumnSize",P)},{"3rdparty/walkontable/src/calculator/viewportColumns":3,_base:62,"helpers/array":42,"helpers/dom/element":46,"helpers/feature":48,"helpers/number":51,"helpers/object":52,"helpers/string":54,plugins:61,"utils/ghostTable":104,"utils/samplesGenerator":106}],64:[function(e,t,o){"use strict";Object.defineProperties(o,{AutoRowSize:{get:function(){return k}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f=(n=e("_base"),n&&n.__esModule&&n||{"default":n})["default"],m=(r=e("helpers/array"),r&&r.__esModule&&r||{"default":r}),p=(m.arrayEach,m.arrayFilter),g=(i=e("helpers/feature"),i&&i.__esModule&&i||{"default":i}),w=g.cancelAnimationFrame,v=g.requestAnimationFrame,b=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{"default":s}).isVisible,C=(l=e("utils/ghostTable"),l&&l.__esModule&&l||{"default":l}).GhostTable,y=(a=e("helpers/object"),a&&a.__esModule&&a||{"default":a}),_=y.isObject,R=(y.objectEach,u=e("helpers/number"),u&&u.__esModule&&u||{"default":u}),M=R.valueAccordingPercent,S=R.rangeEach,E=(d=e("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin,O=(c=e("utils/samplesGenerator"),c&&c.__esModule&&c||{"default":c}).SamplesGenerator,T=(h=e("helpers/string"),h&&h.__esModule&&h||{"default":h}).isPercentValue,k=function(e){var t=this;$traceurRuntime.superConstructor(A).call(this,e),this.heights=[],this.ghostTable=new C(this.hot),this.samplesGenerator=new O(function(e,o){return e>=0?t.hot.getDataAtCell(e,o):-1===e?t.hot.getColHeader(o):null}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeRowResize",function(e,o,n){return t.onBeforeRowResize(e,o,n)})},A=k;$traceurRuntime.createClass(k,{isEnabled:function(){return this.hot.getSettings().autoRowSize===!0||_(this.hot.getSettings().autoRowSize)},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().autoRowSize,o=t&&t.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0;o&&!isNaN(o)&&(this.samplesGenerator.customSampleCount=parseInt(o,10)),this.addHook("afterLoadData",function(){return e.onAfterLoadData()}),this.addHook("beforeChange",function(t){return e.onBeforeChange(t)}),this.addHook("beforeColumnMove",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnResize",function(){return e.recalculateAllRowsHeight()}),this.addHook("beforeColumnSort",function(){return e.clearCache()}),this.addHook("beforeRender",function(t){return e.onBeforeRender(t)}),this.addHook("beforeRowMove",function(t,o){return e.onBeforeRowMove(t,o)}),this.addHook("modifyRowHeight",function(t,o){return e.getRowHeight(o,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),$traceurRuntime.superGet(this,A.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,A.prototype,"disablePlugin").call(this)},calculateRowsHeight:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countRows()-1},t=void 0!==arguments[1]?arguments[1]:{from:0,to:this.hot.countCols()-1},o=void 0!==arguments[2]?arguments[2]:!1,n=this;if("number"==typeof e&&(e={from:e,to:e}),"number"==typeof t&&(t={from:t,to:t}),null!==this.hot.getColHeader(0)){var r=this.samplesGenerator.generateRowSamples(-1,t);this.ghostTable.addColumnHeadersRow(r.get(-1))}S(e.from,e.to,function(e){if(o||void 0===n.heights[e]){var r=n.samplesGenerator.generateRowSamples(e,t);r.forEach(function(e,t){return n.ghostTable.addRow(t,e)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,t){return n.heights[e]=t}),this.ghostTable.clean())},calculateAllRowsHeight:function(){var e=void 0!==arguments[0]?arguments[0]:{from:0,to:this.hot.countCols()-1},t=this,o=0,n=this.hot.countRows()-1,r=null;this.inProgress=!0;var i=function(){return t.hot?(t.calculateRowsHeight({from:o,to:Math.min(o+A.CALCULATION_STEP,n)},e),o=o+A.CALCULATION_STEP+1,void(n>o?r=v(i):(w(r),t.inProgress=!1,t.hot.view.wt.wtOverlays.adjustElementsSize(!0),t.hot.view.wt.wtOverlays.leftOverlay.needFullRender&&t.hot.view.wt.wtOverlays.leftOverlay.clone.draw()))):(w(r),void(t.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},e),this.firstCalculation=!1,o=this.getSyncCalculationLimit()+1),n>o?i():this.inProgress=!1},recalculateAllRowsHeight:function(){b(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())},getSyncCalculationLimit:function(){var e=A.SYNC_CALCULATION_LIMIT,t=this.hot.countRows()-1;return _(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,T(e)?e=M(t,e):e>>=0),Math.min(e,t)},getRowHeight:function(e){var t=arguments[1],o=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(o=this.heights[e]),o},getColumnHeaderHeight:function(){return this.heights[-1]},getFirstVisibleRow:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getFirstVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getFirstRenderedRow():-1},getLastVisibleRow:function(){var e=this.hot.view.wt;return e.wtViewport.rowsVisibleCalculator?e.wtTable.getLastVisibleRow():e.wtViewport.rowsRenderCalculator?e.wtTable.getLastRenderedRow():-1},clearCache:function(){this.heights.length=0,this.heights[-1]=void 0},clearCacheByRange:function(e){var t=this;"number"==typeof e&&(e={from:e,to:e}),S(Math.min(e.from,e.to),Math.max(e.from,e.to),function(e){return t.heights[e]=void 0})},isNeedRecalculate:function(){return!!p(this.heights,function(e){return void 0===e}).length},onBeforeRender:function(){var e=this.hot.renderCall;this.calculateRowsHeight({from:this.getFirstVisibleRow(),to:this.getLastVisibleRow()},void 0,e);var t=this.hot.getSettings().fixedRowsBottom;if(t){var o=this.hot.countRows()-1;this.calculateRowsHeight({from:o-t,to:o})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()},onBeforeRowMove:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()},onBeforeRowResize:function(e,t,o){return o&&(this.calculateRowsHeight(e,void 0,!0),t=this.getRowHeight(e)),t},onAfterLoadData:function(){var e=this;this.hot.view?this.recalculateAllRowsHeight():setTimeout(function(){e.hot&&e.recalculateAllRowsHeight()},0)},onBeforeChange:function(e){var t=null;1===e.length?t=e[0][0]:e.length>1&&(t={from:e[0][0],to:e[e.length-1][0]}),null!==t&&this.clearCacheByRange(t)},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,A.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 500}},f),E("autoRowSize",k)},{_base:62,"helpers/array":42,"helpers/dom/element":46,"helpers/feature":48,"helpers/number":51,"helpers/object":52,"helpers/string":54,plugins:61,"utils/ghostTable":104,"utils/samplesGenerator":106}],65:[function(e,t,o){"use strict";function n(e,t,o,n){var r,i,s,l,a,u=o.length,d=o?o[0].length:0,c=[],h=[];if(r=t.row-e.row,i=t.col-e.col,-1!==["down","up"].indexOf(n)){for(var f=0;i>=f;f++)s=parseInt(o[0][f],10),l=parseInt(o[u-1][f],10),a=("down"===n?l-s:s-l)/(u-1)||0,h.push(a);c.push(h)}if(-1!==["right","left"].indexOf(n))for(var m=0;r>=m;m++)s=parseInt(o[m][0],10),l=parseInt(o[m][d-1],10),a=("right"===n?l-s:s-l)/(d-1)||0,h=[],h.push(a),c.push(h);return c}function r(e){function t(t){return e.autofill?void(e.autofill.handle&&e.autofill.handle.isDragged&&(e.autofill.handle.isDragged>1&&e.autofill.apply(),e.autofill.handle.isDragged=0,l=!1)):!0}function o(e){var t,o;return s.instance.autofill?(t=f(s.instance.table).top-(window.pageYOffset||document.documentElement.scrollTop)+m(s.instance.table),o=f(s.instance.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+p(s.instance.table),s.addingStarted===!1&&s.instance.autofill.handle.isDragged>0&&e.clientY>t&&e.clientX<=o?(s.instance.mouseDragOutside=!0,s.addingStarted=!0):s.instance.mouseDragOutside=!1,void(s.instance.mouseDragOutside&&v("autoInsertRow")&&setTimeout(function(){s.addingStarted=!1,s.instance.alter("insert_row")},200))):!1}var n,r,i,s=this,l=!1;this.instance=e,this.addingStarted=!1,i=g(e),i.addEventListener(document,"mouseup",t),i.addEventListener(document,"mousemove",o),n=this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown,this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown=function(t){e.autofill.handle.isDragged=1,l=!0,n(t)},r=this.instance.view.wt.wtSettings.settings.onCellMouseOver,this.instance.view.wt.wtSettings.settings.onCellMouseOver=function(t,o,n,i){e.autofill&&l&&!e.view.isMouseDown()&&e.autofill.handle&&e.autofill.handle.isDragged&&(e.autofill.handle.isDragged++,e.autofill.showBorder(o),e.autofill.checkIfNewRowNeeded()),r(t,o,n,i)},this.instance.view.wt.wtSettings.settings.onCellCornerDblClick=function(){e.autofill.selectAdjacent()}}function i(e){return function(t){var o;return"direction"===t?o="string"==typeof e?e:"object"==typeof e&&void 0!==e[t]?e[t]:!0:"autoInsertRow"===t?o="object"==typeof e&&void 0!==e[t]?e[t]:!0:"fillHandle"===t&&(o=!!e),o}}Object.defineProperties(o,{Autofill:{get:function(){return r}},__esModule:{value:!0}});var s,l,a,u,d,c=(s=e("browser"),s&&s.__esModule&&s||{"default":s})["default"],h=(l=e("helpers/dom/element"),l&&l.__esModule&&l||{"default":l}),f=h.offset,m=h.outerHeight,p=h.outerWidth,g=(a=e("eventManager"),a&&a.__esModule&&a||{"default":a}).eventManager,w=((u=e("plugins"),u&&u.__esModule&&u||{"default":u}).registerPlugin,(d=e("3rdparty/walkontable/src/cell/coords"),d&&d.__esModule&&d||{"default":d}).WalkontableCellCoords);r.prototype.init=function(){this.handle={}},r.prototype.disable=function(){this.handle.disabled=!0},r.prototype.selectAdjacent=function(){var e,t,o,n,r;e=this.instance.selection.isMultiple()?this.instance.view.wt.selections.area.getCorners():this.instance.view.wt.selections.current.getCorners(),t=this.instance.getData();e:for(o=e[2]+1;o<this.instance.countRows();o++){for(r=e[1];r<=e[3];r++)if(t[o][r])break e;(t[o][e[1]-1]||t[o][e[3]+1])&&(n=o)}n&&(this.instance.view.wt.selections.fill.clear(),this.instance.view.wt.selections.fill.add(new w(e[0],e[1])),this.instance.view.wt.selections.fill.add(new w(n,e[3])),this.apply())},r.prototype.apply=function(){var e,t,o,r,i,s,l,a;this.handle.isDragged=0,this.instance.view.wt.selections.fill.isEmpty()||(e=this.instance.view.wt.selections.fill.getCorners(),this.instance.view.wt.selections.fill.clear(),t=this.instance.selection.isMultiple()?this.instance.view.wt.selections.area.getCorners():this.instance.view.wt.selections.current.getCorners(),c.hooks.run(this.instance,"afterAutofillApplyValues",t,e),e[0]===t[0]&&e[1]<t[1]?(s="left",o=new w(e[0],e[1]),r=new w(e[2],t[1]-1)):e[0]===t[0]&&e[3]>t[3]?(s="right",o=new w(e[0],t[3]+1),r=new w(e[2],e[3])):e[0]<t[0]&&e[1]===t[1]?(s="up",o=new w(e[0],e[1]),r=new w(t[0]-1,e[3])):e[2]>t[2]&&e[1]===t[1]&&(s="down",o=new w(t[2]+1,e[1]),r=new w(e[2],e[3])),o&&o.row>-1&&o.col>-1?(a={from:this.instance.getSelectedRange().from,to:this.instance.getSelectedRange().to},i=this.instance.getData(a.from.row,a.from.col,a.to.row,a.to.col),l=n(o,r,i,s),c.hooks.run(this.instance,"beforeAutofill",o,r,i),this.instance.populateFromArray(o.row,o.col,i,r.row,r.col,"autofill",null,s,l),this.instance.selection.setRangeStart(new w(e[0],e[1])),this.instance.selection.setRangeEnd(new w(e[2],e[3]))):this.instance.selection.refreshBorders())},r.prototype.showBorder=function(e){var t=this.instance.getSelectedRange().getTopLeftCorner(),o=this.instance.getSelectedRange().getBottomRightCorner();if("horizontal"!==v("direction")&&(o.row<e.row||t.row>e.row))e=new w(e.row,o.col);else{if("vertical"===v("direction"))return;e=new w(o.row,e.col)}this.instance.view.wt.selections.fill.clear(),this.instance.view.wt.selections.fill.add(this.instance.getSelectedRange().from),this.instance.view.wt.selections.fill.add(this.instance.getSelectedRange().to),this.instance.view.wt.selections.fill.add(e),this.instance.view.render()},r.prototype.checkIfNewRowNeeded=function(){var e,t,o=this.instance.countRows(),n=this;this.instance.view.wt.selections.fill.cellRange&&this.addingStarted===!1&&v("autoInsertRow")&&(t=this.instance.getSelected(),e=this.instance.view.wt.selections.fill.getCorners(),t[2]<o-1&&e[2]===o-1&&(this.addingStarted=!0,this.instance._registerTimeout(setTimeout(function(){n.instance.alter("insert_row"),n.addingStarted=!1},200))))},c.hooks.add("afterInit",function(){var e=new r(this);v=i(this.getSettings().fillHandle),void 0!==v("fillHandle")&&(e.handle&&v("fillHandle")===!1?e.disable():e.handle||v("fillHandle")===!1||(this.autofill=e,this.autofill.init()))});var v;c.Autofill=r},{"3rdparty/walkontable/src/cell/coords":5,browser:23,eventManager:41,"helpers/dom/element":46,plugins:61}],66:[function(e,t,o){"use strict";Object.defineProperties(o,{ColumnSorting:{get:function(){return _}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],d=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),c=d.addClass,h=d.closest,f=d.hasClass,m=d.index,p=d.removeClass,g=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}),w=(g.arrayEach,g.arrayMap),v=g.arrayReduce,b=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).eventManager,C=(l=e("_base"),l&&l.__esModule&&l||{"default":l})["default"],y=(a=e("plugins"),a&&a.__esModule&&a||{"default":a}).registerPlugin;u.hooks.register("beforeColumnSort"),u.hooks.register("afterColumnSort");var _=function(e){$traceurRuntime.superConstructor(R).call(this,e),this.sortIndicators=[],this.lastSortedColumn=null},R=_;$traceurRuntime.createClass(_,{isEnabled:function(){return!!this.hot.getSettings().columnSorting},enablePlugin:function(){var e=this;if(!this.enabled){var t=this;this.hot.sortIndex=[],this.hot.sort=function(){var e=Array.prototype.slice.call(arguments);return t.sortByColumn.apply(t,e)},"undefined"==typeof this.hot.getSettings().observeChanges&&this.enableObserveChangesPlugin(),this.bindColumnSortingAfterClick(),this.addHook("afterTrimRow",function(t){return e.sort()}),this.addHook("afterUntrimRow",function(t){return e.sort()}),this.addHook("modifyRow",function(t){return e.translateRow(t)}),this.addHook("afterUpdateSettings",function(){return e.onAfterUpdateSettings()}),this.addHook("afterGetColHeader",function(t,o){return e.getColHeader(t,o)}),this.addHook("afterCreateRow",function(){t.afterCreateRow.apply(t,arguments)}),this.addHook("afterRemoveRow",function(){t.afterRemoveRow.apply(t,arguments)}),this.addHook("afterInit",function(){return e.sortBySettings()}),this.addHook("afterLoadData",function(){e.hot.sortIndex=[],e.hot.view&&e.sortBySettings()}),this.hot.view&&this.sortBySettings(),$traceurRuntime.superGet(this,R.prototype,"enablePlugin").call(this)}},disablePlugin:function(){this.hot.sort=void 0,$traceurRuntime.superGet(this,R.prototype,"disablePlugin").call(this)},onAfterUpdateSettings:function(){this.sortBySettings()},sortBySettings:function(){var e,t,o=this.hot.getSettings().columnSorting,n=this.loadSortingState();"undefined"==typeof n?(e=o.column,t=o.sortOrder):(e=n.sortColumn,t=n.sortOrder),"number"==typeof e&&(this.lastSortedColumn=e,this.sortByColumn(e,t))},setSortingColumn:function(e,t){return"undefined"==typeof e?(this.hot.sortColumn=void 0,void(this.hot.sortOrder=void 0)):(this.hot.sortColumn===e&&"undefined"==typeof t?this.hot.sortOrder===!1?this.hot.sortOrder=void 0:this.hot.sortOrder=!this.hot.sortOrder:this.hot.sortOrder="undefined"==typeof t?!0:t,void(this.hot.sortColumn=e))},sortByColumn:function(e,t){if(this.setSortingColumn(e,t),"undefined"!=typeof this.hot.sortColumn){var o=u.hooks.run(this.hot,"beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder);o!==!1&&this.sort(),this.updateOrderClass(),this.updateSortIndicator(),this.hot.render(),this.saveSortingState(),u.hooks.run(this.hot,"afterColumnSort",this.hot.sortColumn,this.hot.sortOrder)}},saveSortingState:function(){var e={};"undefined"!=typeof this.hot.sortColumn&&(e.sortColumn=this.hot.sortColumn),"undefined"!=typeof this.hot.sortOrder&&(e.sortOrder=this.hot.sortOrder),(e.hasOwnProperty("sortColumn")||e.hasOwnProperty("sortOrder"))&&u.hooks.run(this.hot,"persistentStateSave","columnSorting",e)},loadSortingState:function(){var e={};return u.hooks.run(this.hot,"persistentStateLoad","columnSorting",e),e.value},updateOrderClass:function(){var e;this.hot.sortOrder===!0?e="ascending":this.hot.sortOrder===!1&&(e="descending"),this.sortOrderClass=e},bindColumnSortingAfterClick:function(){function e(){var e=r.hot.view.TBODY.querySelector("tr"),t=1;return e&&(t=e.querySelectorAll("th").length),t}function t(t){var o=h(t,"TH");return r.hot.view.wt.wtTable.getFirstRenderedColumn()+m(o)-e()}var o=this;if(!this.bindedSortEvent){var n=b(this.hot),r=this;this.bindedSortEvent=!0,n.addEventListener(this.hot.rootElement,"click",function(e){if(f(e.target,"columnSorting")){var n=t(e.target);n!==o.lastSortedColumn&&(o.hot.sortOrder=!0),o.lastSortedColumn=n,o.sortByColumn(n)}})}},enableObserveChangesPlugin:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))},defaultSort:function(e){return function(t,o){return"string"==typeof t[1]&&(t[1]=t[1].toLowerCase()),"string"==typeof o[1]&&(o[1]=o[1].toLowerCase()),t[1]===o[1]?0:null===t[1]||""===t[1]?1:null===o[1]||""===o[1]?-1:isNaN(t[1])&&!isNaN(o[1])?e?1:-1:!isNaN(t[1])&&isNaN(o[1])?e?-1:1:t[1]<o[1]?e?-1:1:t[1]>o[1]?e?1:-1:0}},dateSort:function(e){return function(t,o){if(t[1]===o[1])return 0;if(null===t[1]||""===t[1])return 1;
if(null===o[1]||""===o[1])return-1;var n=new Date(t[1]),r=new Date(o[1]);return r>n?e?-1:1:n>r?e?1:-1:0}},numericSort:function(e){return function(t,o){var n=parseFloat(t[1]),r=parseFloat(o[1]);return n===r||isNaN(n)&&isNaN(r)?0:isNaN(n)?1:isNaN(r)?-1:r>n?e?-1:1:n>r?e?1:-1:0}},sort:function(){if("undefined"==typeof this.hot.sortOrder)return void(this.hot.sortIndex.length=0);var e,t;this.hot.sortingEnabled=!1,this.hot.sortIndex.length=0;for(var o=0,n=this.hot.countRows()-this.hot.getSettings().minSpareRows;n>o;o++)this.hot.sortIndex.push([o,this.hot.getDataAtCell(o,this.hot.sortColumn)]);if(e=this.hot.getCellMeta(0,this.hot.sortColumn),e.sortFunction)t=e.sortFunction;else switch(e.type){case"date":t=this.dateSort;break;case"numeric":t=this.numericSort;break;default:t=this.defaultSort}this.hot.sortIndex.sort(t(this.hot.sortOrder));for(var r=this.hot.sortIndex.length;r<this.hot.countRows();r++)this.hot.sortIndex.push([r,this.hot.getDataAtCell(r,this.hot.sortColumn)]);this.hot.sortingEnabled=!0},updateSortIndicator:function(){if("undefined"!=typeof this.hot.sortOrder){var e=this.hot.getCellMeta(0,this.hot.sortColumn);this.sortIndicators[this.hot.sortColumn]=e.sortIndicator}},translateRow:function(e){return this.hot.sortingEnabled&&"undefined"!=typeof this.hot.sortOrder&&this.hot.sortIndex&&this.hot.sortIndex.length&&this.hot.sortIndex[e]?this.hot.sortIndex[e][0]:e},untranslateRow:function(e){if(this.hot.sortingEnabled&&this.hot.sortIndex&&this.hot.sortIndex.length)for(var t=0;t<this.hot.sortIndex.length;t++)if(this.hot.sortIndex[t][0]==e)return t},getColHeader:function(e,t){var o=t.querySelector(".colHeader"),n=(t.getAttribute("colspan"),t.parentNode.parentNode.childNodes),r=Array.prototype.indexOf.call(n,t.parentNode);r-=n.length,o&&(this.hot.getSettings().columnSorting&&e>=0&&-1===r&&c(o,"columnSorting"),p(o,"descending"),p(o,"ascending"),this.sortIndicators[e]&&e===this.hot.sortColumn&&("ascending"===this.sortOrderClass?c(o,"ascending"):"descending"===this.sortOrderClass&&c(o,"descending")))},isSorted:function(){return"undefined"!=typeof this.hot.sortColumn},afterCreateRow:function(e,t){if(this.isSorted()){for(var o=0;o<this.hot.sortIndex.length;o++)this.hot.sortIndex[o][0]>=e&&(this.hot.sortIndex[o][0]+=t);for(var o=0;t>o;o++)this.hot.sortIndex.splice(e+o,0,[e+o,this.hot.getSourceData()[e+o][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}},afterRemoveRow:function(e,t){function o(e){return v(n,function(t,o){return e>o&&t++,t},0)}if(this.isSorted()){var n=this.hot.sortIndex.splice(e,t);n=w(n,function(e){return e[0]}),this.hot.sortIndex=w(this.hot.sortIndex,function(e,t){var n=o(e[0]);return n&&(e[0]-=n),e}),this.saveSortingState()}}},{},C),y("columnSorting",_)},{_base:62,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,plugins:61}],67:[function(e,t,o){"use strict";Object.defineProperties(o,{CommentEditor:{get:function(){return i}},__esModule:{value:!0}});var n,r=(n=e("helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).addClass,i=function(){this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.editorStyle.position="absolute",this.editorStyle.zIndex=100,this.hide()},s=i;$traceurRuntime.createClass(i,{setPosition:function(e,t){this.editorStyle.left=e+"px",this.editorStyle.top=t+"px"},show:function(){this.editorStyle.display="block"},hide:function(){this.editorStyle.display="none"},isVisible:function(){return"block"===this.editorStyle.display},setValue:function(){var e=void 0!==arguments[0]?arguments[0]:"";e=e||"",this.getInputElement().value=e},getValue:function(){return this.getInputElement().value},isFocused:function(){return document.activeElement===this.getInputElement()},focus:function(){this.getInputElement().focus()},createEditor:function(){var e,t,o=document.querySelector("."+s.CLASS_EDITOR_CONTAINER);return o||(o=document.createElement("div"),r(o,s.CLASS_EDITOR_CONTAINER),document.body.appendChild(o)),e=document.createElement("div"),r(e,s.CLASS_EDITOR),t=document.createElement("textarea"),r(t,s.CLASS_INPUT),e.appendChild(t),o.appendChild(e),e},getInputElement:function(){return this.editor.querySelector("."+s.CLASS_INPUT)},destroy:function(){this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null}},{get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"},get CLASS_EDITOR(){return"htComments"},get CLASS_INPUT(){return"htCommentTextArea"},get CLASS_CELL(){return"htCommentCell"}})},{"helpers/dom/element":46}],68:[function(e,t,o){"use strict";Object.defineProperties(o,{Comments:{get:function(){return M}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),h=c.addClass,f=c.closest,m=c.getWindowScrollLeft,p=c.getWindowScrollTop,g=c.hasClass,w=c.offset,v=(i=e("eventManager"),i&&i.__esModule&&i||{"default":i}).EventManager,b=(s=e("3rdparty/walkontable/src/cell/coords"),s&&s.__esModule&&s||{"default":s}).WalkontableCellCoords,C=(l=e("plugins"),l&&l.__esModule&&l||{"default":l}),y=C.registerPlugin,_=(C.getPlugin,(a=e("_base"),a&&a.__esModule&&a||{"default":a})["default"]),R=(u=e("commentEditor"),u&&u.__esModule&&u||{"default":u}).CommentEditor,M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.editor=null,this.eventManager=null,this.range={},this.mouseDown=!1,this.contextMenuEvent=!1,this.timer=null},S=M;$traceurRuntime.createClass(M,{isEnabled:function(){return this.hot.getSettings().comments},enablePlugin:function(){var e=this;this.enabled||(this.editor||(this.editor=new R),this.eventManager||(this.eventManager=new v(this)),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,o,n,r,i,s){return e.onAfterRenderer(t,s)}),this.addHook("afterScrollHorizontally",function(){return e.refreshEditorPosition()}),this.addHook("afterScrollVertically",function(){return e.refreshEditorPosition()}),this.addHook("afterColumnResize",function(){return e.refreshEditorPosition()}),this.addHook("afterRowResize",function(){return e.refreshEditorPosition()}),this.registerListeners(),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this))},disablePlugin:function(){$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this)},registerListeners:function(){var e=this;this.eventManager.addEventListener(document,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(document,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(document,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document,"mouseup",function(t){return e.onMouseUp(t)}),this.eventManager.addEventListener(this.editor.getInputElement(),"blur",function(t){return e.onEditorBlur(t)})},setRange:function(e){this.range=e},clearRange:function(){this.range={}},targetIsCellWithComment:function(e){return!(!g(e.target,"htCommentCell")||!f(e.target,[this.hot.rootElement]))},targetIsCommentTextArea:function(e){return this.editor.getInputElement()===e.target},saveComment:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.editor.getValue(),t=this.range.from.row,o=this.range.from.col;this.hot.setCellMeta(t,o,"comment",e),this.hot.render()},saveCommentAtCell:function(e,t){this.setRange({from:new b(e,t)}),this.saveComment()},removeComment:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');this.hot.removeCellMeta(this.range.from.row,this.range.from.col,"comment"),this.hot.render(),this.hide()},removeCommentAtCell:function(e,t){this.setRange({from:new b(e,t)}),this.removeComment()},show:function(){if(!this.range.from)throw new Error('Before using this method, first set cell range (hot.getPlugin("comment").setRange())');var e=this.hot.getCellMeta(this.range.from.row,this.range.from.col);return this.refreshEditorPosition(!0),this.editor.setValue(e.comment||""),this.editor.show(),!0},showAtCell:function(e,t){return this.setRange({from:new b(e,t)}),this.show()},hide:function(){this.editor.hide()},refreshEditorPosition:function(){var e=void 0!==arguments[0]?arguments[0]:!1;if(e||this.range.from&&this.editor.isVisible()){var t=this.hot.view.wt.wtTable.getCell(this.range.from),o=w(t),n=this.hot.getColWidth(this.range.from.col),r=o.top,i=o.left,s=0,l=0;this.hot.view.wt.wtViewport.hasVerticalScroll()&&(r-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition(),s=20),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&(i-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition(),l=20);var a=i+n,u=r,d=this.hot.view.wt.wtTable.holder.getBoundingClientRect(),c={left:d.left+m()+l,right:d.right+m()-15,top:d.top+p()+s,bottom:d.bottom+p()};a<=c.left||a>c.right||u<=c.top||u>c.bottom?this.hide():this.editor.setPosition(a,u)}},onMouseDown:function(e){this.mouseDown=!0,this.hot.view&&this.hot.view.wt&&(this.contextMenuEvent||this.targetIsCommentTextArea(e)||this.targetIsCellWithComment(e)||this.hide(),this.contextMenuEvent=!1)},onMouseOver:function(e){if(!this.mouseDown&&!this.editor.isFocused())if(this.targetIsCellWithComment(e)){var t=this.hot.view.wt.wtTable.getCoords(e.target),o={from:new b(t.row,t.col)};this.setRange(o),this.show()}else this.targetIsCommentTextArea(e)||this.editor.isFocused()||this.hide()},onMouseMove:function(e){var t=this;this.targetIsCommentTextArea(e)&&(this.mouseDown=!0,clearTimeout(this.timer),this.timer=setTimeout(function(){t.mouseDown=!1},200))},onMouseUp:function(e){this.mouseDown=!1},onAfterRenderer:function(e,t){t.comment&&h(e,t.commentedCellClassName)},onEditorBlur:function(e){this.saveComment()},checkSelectionCommentsConsistency:function(){var e=this.hot.getSelectedRange();if(!e)return!1;var t=!1,o=e.from;return this.hot.getCellMeta(o.row,o.col).comment&&(t=!0),t},onContextMenuAddComment:function(){var e=this,t=this.hot.getSelectedRange();this.contextMenuEvent=!0,this.setRange({from:t.from}),this.show(),setTimeout(function(){e.hot&&(e.hot.deselectCell(),e.editor.focus())},10)},onContextMenuRemoveComment:function(e,t){this.contextMenuEvent=!0,this.removeCommentAtCell(t.start.row,t.start.col)},addToContextMenu:function(e){var t=this;e.items.push(d.plugins.ContextMenu.SEPARATOR,{key:"commentsAddEdit",name:function(){return t.checkSelectionCommentsConsistency()?"Edit Comment":"Add Comment"},callback:function(){return t.onContextMenuAddComment()},disabled:function(){return!this.getSelected()}},{key:"commentsRemove",name:function(){return"Delete Comment"},callback:function(e,o){return t.onContextMenuRemoveComment(e,o)},disabled:function(){return!t.checkSelectionCommentsConsistency()}})},destroy:function(){this.editor&&this.editor.destroy(),$traceurRuntime.superGet(this,S.prototype,"destroy").call(this)}},{},_),y("comments",M)},{"3rdparty/walkontable/src/cell/coords":5,_base:62,browser:23,commentEditor:67,eventManager:41,"helpers/dom/element":46,plugins:61}],69:[function(e,t,o){"use strict";function n(e,t){var o;return i(t,function(t){var n=t.key?t.key.split(":"):null;return Array.isArray(n)&&n[1]===e?(o=t,!1):void 0}),o}Object.defineProperties(o,{CommandExecutor:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,s=function(e){this.hot=e,this.commands={},this.commonCallback=null};$traceurRuntime.createClass(s,{registerCommand:function(e,t){this.commands[e]=t},setCommonCallback:function(e){this.commonCallback=e},execute:function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var r=this,s=e.split(":");e=s[0];var l=2===s.length?s[1]:null,a=this.commands[e];if(!a)throw new Error("Menu command '"+e+"' not exists.");if(l&&a.submenu&&(a=n(l,a.submenu.items)),a.disabled!==!0&&("function"!=typeof a.disabled||a.disabled.call(this.hot)!==!0)&&!a.hasOwnProperty("submenu")){var u=[];"function"==typeof a.callback&&u.push(a.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),t.unshift(s.join(":")),i(u,function(e){return e.apply(r.hot,t)})}}},{})},{"helpers/array":42}],70:[function(e,t,o){"use strict";Object.defineProperties(o,{ContextMenu:{get:function(){return V}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,a,f,m=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],p=(r=e("_base"),r&&r.__esModule&&r||{"default":r})["default"],g=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,w=(s=e("commandExecutor"),s&&s.__esModule&&s||{"default":s}).CommandExecutor,v=(l=e("eventManager"),l&&l.__esModule&&l||{"default":l}).EventManager,b=(a=e("helpers/dom/element"),a&&a.__esModule&&a||{"default":a}).hasClass,C=(u=e("itemsFactory"),u&&u.__esModule&&u||{"default":u}).ItemsFactory,y=(d=e("menu"),d&&d.__esModule&&d||{"default":d}).Menu,_=(c=e("plugins"),c&&c.__esModule&&c||{"default":c}).registerPlugin,R=(h=e("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}),M=R.stopPropagation,S=R.pageX,E=R.pageY,O=(a=e("helpers/dom/element"),a&&a.__esModule&&a||{"default":a}),T=O.getWindowScrollLeft,k=O.getWindowScrollTop,A=(f=e("predefinedItems"),f&&f.__esModule&&f||{"default":f}),H=A.ROW_ABOVE,P=A.ROW_BELOW,x=A.COLUMN_LEFT,L=A.COLUMN_RIGHT,N=A.REMOVE_ROW,D=A.REMOVE_COLUMN,I=A.UNDO,W=A.REDO,F=A.READ_ONLY,B=A.ALIGNMENT,j=A.SEPARATOR,V=function(e){$traceurRuntime.superConstructor(U).call(this,e),this.eventManager=new v(this),this.commandExecutor=new w(this.hot),this.itemsFactory=null,this.menu=null},U=V;$traceurRuntime.createClass(V,{isEnabled:function(){return this.hot.getSettings().contextMenu},enablePlugin:function(){var e=this;if(!this.enabled){this.itemsFactory=new C(this.hot,U.DEFAULT_ITEMS);var t=this.hot.getSettings().contextMenu,o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),$traceurRuntime.superGet(this,U.prototype,"enablePlugin").call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterContextMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var n=e.itemsFactory.getItems(t);e.menu=new y(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.menu.setMenuItems(n),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.executeCommand.apply(e,t)}),g(n,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,U.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),$traceurRuntime.superGet(this,U.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"contextmenu",function(t){return e.onContextMenu(t)})},open:function(e){this.menu&&(this.menu.open(),this.menu.setPosition({top:parseInt(E(e),10)-k(),left:parseInt(S(e),10)-T()}),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv,m.eventManager.isHotTableEnv=this.hot.isHotTableEnv)},close:function(){this.menu&&this.menu.close()},executeCommand:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.commandExecutor.execute.apply(this.commandExecutor,e)},onContextMenu:function(e){function t(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}var o=this.hot.getSettings(),n=o.rowHeaders,r=o.colHeaders,i=e.realTarget;if(this.close(),e.preventDefault(),M(e),n||r){if(n&&r){var s=i.parentNode.querySelectorAll(".cornerHeader").length>0;if(s)return}}else if(!(t(i)||b(i,"current")&&b(i,"wtBorder")))return;this.open(e)},onMenuAfterOpen:function(){this.hot.runHooks("afterContextMenuShow",this)},onMenuAfterClose:function(){this.hot.listen(),this.hot.runHooks("afterContextMenuHide",this)},destroy:function(){this.close(),this.menu&&this.menu.destroy(),$traceurRuntime.superGet(this,U.prototype,"destroy").call(this)}},{get DEFAULT_ITEMS(){return[H,P,j,x,L,j,N,D,j,I,W,j,F,j,B]}},p),V.SEPARATOR={name:j},m.hooks.register("afterContextMenuDefaultOptions"),m.hooks.register("afterContextMenuShow"),m.hooks.register("afterContextMenuHide"),m.hooks.register("afterContextMenuExecute"),_("contextMenu",V)},{_base:62,browser:23,commandExecutor:69,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,itemsFactory:72,menu:73,plugins:61,predefinedItems:74}],71:[function(e,t,o){"use strict";Object.defineProperties(o,{Cursor:{get:function(){return f}},__esModule:{value:!0}});var n,r,i,s=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),a=l.getWindowScrollLeft,u=l.getWindowScrollTop,d=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{"default":i}),c=d.pageX,h=d.pageY,f=function(e){var t,o,n,r,i,s,l=u(),d=a();this.type=this.getSourceType(e),"literal"===this.type?(t=parseInt(e.top,10),n=parseInt(e.left,10),i=e.height||0,s=e.width||0,o=t,r=n,t+=l,n+=d):"event"===this.type&&(t=parseInt(h(e),10),n=parseInt(c(e),10),i=e.target.clientHeight,s=e.target.clientWidth,o=t-l,r=n-d),this.top=t,this.topRelative=o,this.left=n,this.leftRelative=r,this.scrollTop=l,this.scrollLeft=d,this.cellHeight=i,this.cellWidth=s};$traceurRuntime.createClass(f,{getSourceType:function(e){var t="literal";return e instanceof Event&&(t="event"),t},fitsAbove:function(e){return this.topRelative>=e.offsetHeight},fitsBelow:function(e){var t=void 0!==arguments[1]?arguments[1]:window.innerHeight;return this.topRelative+e.offsetHeight<=t},fitsOnRight:function(e){var t=void 0!==arguments[1]?arguments[1]:window.innerWidth;return this.leftRelative+this.cellWidth+e.offsetWidth<=t},fitsOnLeft:function(e){return this.leftRelative>=e.offsetWidth}},{}),s.plugins.utils=s.plugins.utils||{},s.plugins.utils.Cursor=f},{browser:23,"helpers/dom/element":46,"helpers/dom/event":47}],72:[function(e,t,o){"use strict";function n(){var e=void 0!==arguments[0]?arguments[0]:null,t=void 0!==arguments[1]?arguments[1]:[],o=void 0!==arguments[2]?arguments[2]:{},n=[];return e&&e.items?e=e.items:Array.isArray(e)||(e=t),u(e)?a(e,function(e,t){var r=o["string"==typeof e?e:t];r||(r=e),u(e)?d(r,e):"string"==typeof r&&(r={name:r}),void 0===r.key&&(r.key=t),n.push(r)}):c(e,function(e,t){var r=o[e];!r&&m.indexOf(e)>=0||(r||(r={name:e,key:t+""}),u(e)&&d(r,e),void 0===r.key&&(r.key=t),n.push(r))}),n}Object.defineProperties(o,{ItemsFactory:{get:function(){return g}},__esModule:{value:!0}});var r,i,s,l=(r=e("helpers/object"),r&&r.__esModule&&r||{"default":r}),a=l.objectEach,u=l.isObject,d=l.extend,c=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,h=(s=e("predefinedItems"),s&&s.__esModule&&s||{"default":s}),f=h.SEPARATOR,m=h.ITEMS,p=h.predefinedItems,g=function(e){var t=void 0!==arguments[1]?arguments[1]:null;this.hot=e,this.predefinedItems=p(),this.defaultOrderPattern=t};$traceurRuntime.createClass(g,{setPredefinedItems:function(e){var t=this,o={};this.defaultOrderPattern.length=0,a(e,function(e,n){var r="";e.name===f?(o[f]=e,r=f):isNaN(parseInt(n,10))?(e.key=void 0===e.key?n:e.key,o[n]=e,r=e.key):(o[e.key]=e,r=e.key),t.defaultOrderPattern.push(r)}),this.predefinedItems=o},getItems:function(){var e=void 0!==arguments[0]?arguments[0]:null;return n(e,this.defaultOrderPattern,this.predefinedItems)}},{})},{"helpers/array":42,"helpers/object":52,predefinedItems:74}],73:[function(e,t,o){"use strict";Object.defineProperties(o,{Menu:{get:function(){return U}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f,m,p=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],g=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),w=g.addClass,v=g.empty,b=g.fastInnerHTML,C=g.getScrollbarWidth,y=g.isChildOf,_=g.removeClass,R=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}),M=R.arrayEach,S=R.arrayFilter,E=R.arrayReduce,O=(s=e("cursor"),s&&s.__esModule&&s||{"default":s}).Cursor,T=(l=e("eventManager"),l&&l.__esModule&&l||{"default":l}).EventManager,k=(a=e("helpers/object"),a&&a.__esModule&&a||{"default":a}).mixin,A=(u=e("helpers/function"),u&&u.__esModule&&u||{"default":u}).debounce,H=(d=e("utils"),d&&d.__esModule&&d||{"default":d}),P=H.filterSeparators,x=H.hasSubMenu,L=H.isDisabled,N=H.isItemHidden,D=H.isSeparator,I=H.isSelectionDisabled,W=H.normalizeSelection,F=(c=e("helpers/unicode"),c&&c.__esModule&&c||{"default":c}).KEY_CODES,B=(h=e("mixins/localHooks"),h&&h.__esModule&&h||{"default":h}).localHooks,j=(f=e("predefinedItems"),f&&f.__esModule&&f||{"default":f}).SEPARATOR,V=(m=e("helpers/dom/event"),m&&m.__esModule&&m||{"default":m}).stopImmediatePropagation,U=function(e,t){this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new T(this),this.container=this.createContainer(this.options.name),this.hotMenu=null,this.hotSubMenus={},this.parentMenu=this.options.parent||null,this.menuItems=null,this.origOutsideClickDeselects=null,this.offset={above:0,below:0,left:0,right:0},this._afterScrollCallback=null,this.registerEvents()},z=U;$traceurRuntime.createClass(U,{registerEvents:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){return e.onDocumentMouseDown(t)})},setMenuItems:function(e){this.menuItems=e},setOffset:function(e){var t=void 0!==arguments[1]?arguments[1]:0;this.offset[e]=t},isSubMenu:function(){return null!==this.parentMenu},open:function(){var e=this;this.container.removeAttribute("style"),this.container.style.display="block";var t=A(function(t){return e.openSubMenu(t)},300),o=S(this.menuItems,function(t){return N(t,e.hot)});o=P(o,j);var n={data:o,colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,o,n,r,i,s){return e.menuItemRenderer(t,o,n,r,i,s)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(o,n,r){e.isAllSubMenusClosed()?t(n.row):e.openSubMenu(n.row)}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new p.Core(this.container,n),this.hotMenu.addHook("afterInit",function(){return e.onAfterInit()}),this.hotMenu.init(),this.hotMenu.listen(),this.blockMainTableCallbacks(),this.runLocalHooks("afterOpen")},close:function(){var e=void 0!==arguments[0]?arguments[0]:!1;this.isOpened()&&(e&&this.parentMenu?this.parentMenu.close():(this.closeAllSubMenus(),this.container.style.display="none",this.releaseMainTableCallbacks(),this.hotMenu.destroy(),this.hotMenu=null,this.hot.getSettings().outsideClickDeselects=this.origOutsideClickDeselects,this.runLocalHooks("afterClose")))},openSubMenu:function(e){if(!this.hotMenu)return!1;var t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!x(t))return!1;var o=this.hotMenu.getSourceDataAtRow(e),n=new z(this.hot,{parent:this,name:o.name,className:this.options.className,keepInViewport:!0});return n.setMenuItems(o.submenu.items),n.open(),n.setPosition(t.getBoundingClientRect()),this.hotSubMenus[o.key]=n,n},closeSubMenu:function(e){var t=this.hotMenu.getSourceDataAtRow(e),o=this.hotSubMenus[t.key];o&&(o.destroy(),delete this.hotSubMenus[t.key])},closeAllSubMenus:function(){var e=this;M(this.hotMenu.getData(),function(t,o){return e.closeSubMenu(o)})},isAllSubMenusClosed:function(){return 0===Object.keys(this.hotSubMenus).length},destroy:function(){this.clearLocalHooks(),this.close(),this.parentMenu=null,this.eventManager.destroy()},isOpened:function(){return null!==this.hotMenu},executeCommand:function(e){if(this.isOpened()&&this.hotMenu.getSelected()){var t=this.hotMenu.getSourceDataAtRow(this.hotMenu.getSelected()[0]);if(this.runLocalHooks("select",t,e),t.isCommand!==!1&&t.name!==j){var o=this.hot.getSelectedRange(),n=o?W(o):{};this.runLocalHooks("executeCommand",t.key,n,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,n,e),t.disabled===!0||"function"==typeof t.disabled&&t.disabled.call(this.hot)===!0||t.submenu||this.close(!0)}}},setPosition:function(e){var t=new O(e);this.options.keepInViewport?(t.fitsBelow(this.container)?this.setPositionBelowCursor(t):t.fitsAbove(this.container)?this.setPositionAboveCursor(t):this.setPositionBelowCursor(t),t.fitsOnRight(this.container)?this.setPositionOnRightOfCursor(t):this.setPositionOnLeftOfCursor(t)):(this.setPositionBelowCursor(t),this.setPositionOnRightOfCursor(t))},setPositionAboveCursor:function(e){var t=this.offset.above+e.top-this.container.offsetHeight;this.isSubMenu()&&(t=e.top+e.cellHeight-this.container.offsetHeight+3),this.container.style.top=t+"px"},setPositionBelowCursor:function(e){var t=this.offset.below+e.top;this.isSubMenu()&&(t=e.top-1),this.container.style.top=t+"px"},setPositionOnRightOfCursor:function(e){var t;t=this.isSubMenu()?1+e.left+e.cellWidth:this.offset.right+1+e.left,this.container.style.left=t+"px"},setPositionOnLeftOfCursor:function(e){var t=this.offset.left+e.left-this.container.offsetWidth+C()+4;this.container.style.left=t+"px"},selectFirstCell:function(){var e=this.hotMenu.getCell(0,0);D(e)||L(e)||I(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)},selectLastCell:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);D(t)||L(t)||I(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)},selectNextCell:function(e,t){var o=e+1,n=o<this.hotMenu.countRows()?this.hotMenu.getCell(o,t):null;n&&(D(n)||L(n)||I(n)?this.selectNextCell(o,t):this.hotMenu.selectCell(o,t))},selectPrevCell:function(e,t){var o=e-1,n=o>=0?this.hotMenu.getCell(o,t):null;n&&(D(n)||L(n)||I(n)?this.selectPrevCell(o,t):this.hotMenu.selectCell(o,t))},menuItemRenderer:function(e,t,o,n,r,i){var s=this,l=e.getSourceDataAtRow(o),a=document.createElement("div"),u=function(e){return e.hasOwnProperty("submenu")},d=function(e){return new RegExp(j,"i").test(e.name)},c=function(e){return e.disabled===!0||"function"==typeof e.disabled&&e.disabled.call(s.hot)===!0},h=function(e){return e.disableSelection};"function"==typeof i&&(i=i.call(this.hot)),v(t),w(a,"htItemWrapper"),t.appendChild(a),d(l)?w(t,"htSeparator"):"function"==typeof l.renderer?(w(t,"htCustomMenuRenderer"),t.appendChild(l.renderer(e,a,o,n,r,i))):b(a,i),c(l)?(w(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):h(l)?(w(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):u(l)?(w(t,"htSubmenu"),h(l)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(o,n,void 0,void 0,void 0,!1)})):(_(t,"htSubmenu"),_(t,"htDisabled"),h(l)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(o,n,void 0,void 0,void 0,!1)}))},createContainer:function(){var e=void 0!==arguments[0]?arguments[0]:null;e&&(e=e.replace(/ /g,"_"),e=this.options.className+"Sub_"+e);var t;return t=e?document.querySelector("."+this.options.className+"."+e):document.querySelector("."+this.options.className),t||(t=document.createElement("div"),w(t,"htMenu "+this.options.className),e&&w(t,e),document.getElementsByTagName("body")[0].appendChild(t)),t},blockMainTableCallbacks:function(){this._afterScrollCallback=function(){},this.hot.addHook("afterScrollVertically",this._afterScrollCallback),this.hot.addHook("afterScrollHorizontally",this._afterScrollCallback)},releaseMainTableCallbacks:function(){this._afterScrollCallback&&(this.hot.removeHook("afterScrollVertically",this._afterScrollCallback),this.hot.removeHook("afterScrollHorizontally",this._afterScrollCallback),this._afterScrollCallback=null)},onBeforeKeyDown:function(e){var t=this.hotMenu.getSelected(),o=!1;switch(e.keyCode){case F.ESCAPE:this.close(),o=!0;break;case F.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?o=!0:(this.executeCommand(e),this.close(!0)));break;case F.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),o=!0;break;case F.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),o=!0;break;case F.ARROW_RIGHT:if(t){var n=this.openSubMenu(t[0]);n&&n.selectFirstCell()}o=!0;break;case F.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),o=!0)}o&&(e.preventDefault(),V(e))},onAfterInit:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,o=this.hotMenu.view.wt.wtTable.holder.style,n=parseInt(t.width,10),r=E(e,function(e,t){return e+(t.name===j?1:26)},0);o.width=n+22+"px",o.height=r+4+"px"},onDocumentMouseDown:function(e){this.isOpened()&&(this.container&&y(e.target,this.container)&&this.executeCommand(e),this.options.standalone&&this.hotMenu&&!y(e.target,this.hotMenu.rootElement)?this.close(!0):(this.isAllSubMenusClosed()||this.isSubMenu())&&!y(e.target,".htMenu")&&y(e.target,document)&&this.close(!0))}},{}),k(U,B)},{browser:23,cursor:71,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/function":49,"helpers/object":52,"helpers/unicode":55,"mixins/localHooks":57,predefinedItems:74,utils:75}],74:[function(e,t,o){"use strict";function n(){var e={};return d(H,function(t,o){return e[o]=c(t)}),e}function r(e,t){-1===A.indexOf(e)&&(H[e]=t)}var i;Object.defineProperties(o,{ROW_ABOVE:{get:function(){return v}},ROW_BELOW:{get:function(){return b}},COLUMN_LEFT:{get:function(){return C}},COLUMN_RIGHT:{get:function(){return y}},CLEAR_COLUMN:{get:function(){return _}},REMOVE_ROW:{get:function(){return R}},REMOVE_COLUMN:{get:function(){return M}},UNDO:{get:function(){return S}},REDO:{get:function(){return E}},READ_ONLY:{get:function(){return O}},ALIGNMENT:{get:function(){return T}},SEPARATOR:{get:function(){return k}},ITEMS:{get:function(){return A}},predefinedItems:{get:function(){return n}},addItem:{get:function(){return r}},__esModule:{value:!0}});var s,l,a,u=(s=e("helpers/object"),s&&s.__esModule&&s||{"default":s}),d=u.objectEach,c=u.clone,h=((l=e("helpers/number"),l&&l.__esModule&&l||{"default":l}).rangeEach,a=e("utils"),a&&a.__esModule&&a||{"default":a}),f=h.align,m=h.getAlignmentClasses,p=h.getValidSelection,g=h.checkSelectionConsistency,w=h.markLabelAsSelected,v="row_above",b="row_below",C="col_left",y="col_right",_="clear_column",R="remove_row",M="remove_col",S="undo",E="redo",O="make_read_only",T="alignment",k="---------",A=[v,b,C,y,_,R,M,S,E,O,T,k],H=(i={},Object.defineProperty(i,k,{value:{name:k},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,v,{value:{key:v,name:"Insert row above",callback:function(e,t){this.alter("insert_row",t.start.row)},disabled:function(){var e=p(this);if(!e||this.countRows()>=this.getSettings().maxRows)return!0;var t=this.countRows(),o=[0,e[1],t-1,e[1]];return o.join(",")===e.join(",")&&t>1},hidden:function(){return!this.getSettings().allowInsertRow}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,b,{value:{key:b,name:"Insert row below",callback:function(e,t){this.alter("insert_row",t.end.row+1)},disabled:function(){var e=p(this);if(!e||this.countRows()>=this.getSettings().maxRows)return!0;var t=this.countRows(),o=[0,e[1],t-1,e[1]];return o.join(",")===e.join(",")&&t>1},hidden:function(){return!this.getSettings().allowInsertRow}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,C,{value:{key:C,name:"Insert column on the left",callback:function(e,t){this.alter("insert_col",t.start.col)},disabled:function(){var e=p(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],o=t.join(",")==e.join(","),n=1==this.countCols();
return e[1]<0||this.countCols()>=this.getSettings().maxCols||!n&&o},hidden:function(){return!this.getSettings().allowInsertColumn}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,y,{value:{key:y,name:"Insert column on the right",callback:function(e,t){this.alter("insert_col",t.end.col+1)},disabled:function(){var e=p(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],o=t.join(",")==e.join(","),n=1==this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!n&&o},hidden:function(){return!this.getSettings().allowInsertColumn}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,_,{value:{key:_,name:"Clear column",callback:function(e,t){var o=t.start.col;this.countRows()&&this.populateFromArray(0,o,[[null]],Math.max(t.start.row,t.end.row),o)},disabled:function(){var e=p(this);if(!e)return!0;var t=[e[0],0,e[0],this.countCols()-1],o=t.join(",")==e.join(",");return e[1]<0||this.countCols()>=this.getSettings().maxCols||o}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,R,{value:{key:R,name:"Remove row",callback:function(e,t){var o=t.end.row-t.start.row+1;this.alter("remove_row",t.start.row,o)},disabled:function(){var e=p(this);if(!e||this.selection.selectedHeader.cols)return!0;var t=[0,e[1],this.countRows()-1,e[1]];return t.join(",")===e.join(",")},hidden:function(){return!this.getSettings().allowRemoveRow}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,M,{value:{key:M,name:"Remove column",callback:function(e,t){var o=t.end.col-t.start.col+1;this.alter("remove_col",t.start.col,o)},disabled:function(){var e=p(this);if(!e||this.selection.selectedHeader.rows)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],o=t.join(",")==e.join(",");return e[1]<0||o},hidden:function(){return!this.getSettings().allowRemoveColumn}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,S,{value:{key:S,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,E,{value:{key:E,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,O,{value:{key:O,name:function(){var e=this,t="Read only",o=g(this.getSelectedRange(),function(t,o){return e.getCellMeta(t,o).readOnly});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=g(t,function(t,o){return e.getCellMeta(t,o).readOnly});t.forAll(function(t,n){e.getCellMeta(t,n).readOnly=!o}),this.render()},disabled:function(){return!this.getSelectedRange()}},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(i,T,{value:{key:T,name:"Alignment",disabled:function(){return!this.getSelectedRange()},submenu:{items:[{key:T+":left",name:function(){var e=this,t="Left",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htLeft")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="horizontal",r="htLeft";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1},{key:T+":center",name:function(){var e=this,t="Center",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htCenter")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="horizontal",r="htCenter";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1},{key:T+":right",name:function(){var e=this,t="Right",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htRight")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="horizontal",r="htRight";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1},{key:T+":justify",name:function(){var e=this,t="Justify",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htJustify")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="horizontal",r="htJustify";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1},{name:k},{key:T+":top",name:function(){var e=this,t="Top",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htTop")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="vertical",r="htTop";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1},{key:T+":middle",name:function(){var e=this,t="Middle",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htMiddle")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="vertical",r="htMiddle";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1},{key:T+":bottom",name:function(){var e=this,t="Bottom",o=g(this.getSelectedRange(),function(t,o){var n=e.getCellMeta(t,o).className;return n&&-1!==n.indexOf("htBottom")?!0:void 0});return o&&(t=w(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),o=m(t,function(t,o){return e.getCellMeta(t,o).className}),n="vertical",r="htBottom";this.runHooks("beforeCellAlignment",o,t,n,r),f(t,n,r,function(t,o){return e.getCellMeta(t,o)}),this.render()},disabled:!1}]}},configurable:!0,enumerable:!0,writable:!0}),i)},{"helpers/number":51,"helpers/object":52,utils:75}],75:[function(e,t,o){"use strict";function n(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function r(e){return S(e,"htSeparator")}function i(e){return S(e,"htSubmenu")}function s(e){return S(e,"htDisabled")}function l(e){return S(e,"htSelectionDisabled")}function a(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function u(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function d(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function c(e,t){for(var o={},n=e.from.row;n<=e.to.row;n++)for(var r=e.from.col;r<=e.to.col;r++)o[n]||(o[n]=[]),o[n][r]=t(n,r);return o}function h(e,t,o,n){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,o,n);else for(var r=e.from.row;r<=e.to.row;r++)for(var i=e.from.col;i<=e.to.col;i++)f(r,i,t,o,n)}function f(e,t,o,n,r){var i=r(e,t),s=n;i.className&&(s="vertical"===o?u(i.className,n):d(i.className,n)),i.className=s}function m(e,t){var o=!1;return e&&e.forAll(function(e,n){return t(e,n)?(o=!0,!1):void 0}),o}function p(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e}function g(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function w(e,t){for(var o=e.slice(0),n=0;n<o.length&&o[n].name===t;)o.shift();return o}function v(e,t){var o=e.slice(0);return o.reverse(),o=w(o,t),o.reverse(),o}function b(e){var t=[];return M(e,function(e,o){o>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}function C(e){var t=void 0!==arguments[1]?arguments[1]:E,o=e.slice(0);return o=w(o,t),o=v(o,t),o=b(o)}Object.defineProperties(o,{normalizeSelection:{get:function(){return n}},isSeparator:{get:function(){return r}},hasSubMenu:{get:function(){return i}},isDisabled:{get:function(){return s}},isSelectionDisabled:{get:function(){return l}},getValidSelection:{get:function(){return a}},prepareVerticalAlignClass:{get:function(){return u}},prepareHorizontalAlignClass:{get:function(){return d}},getAlignmentClasses:{get:function(){return c}},align:{get:function(){return h}},checkSelectionConsistency:{get:function(){return m}},markLabelAsSelected:{get:function(){return p}},isItemHidden:{get:function(){return g}},filterSeparators:{get:function(){return C}},__esModule:{value:!0}});var y,_,R,M=(y=e("helpers/array"),y&&y.__esModule&&y||{"default":y}).arrayEach,S=(_=e("helpers/dom/element"),_&&_.__esModule&&_||{"default":_}).hasClass,E=(R=e("predefinedItems"),R&&R.__esModule&&R||{"default":R}).SEPARATOR},{"helpers/array":42,"helpers/dom/element":46,predefinedItems:74}],76:[function(e,t,o){"use strict";Object.defineProperties(o,{ContextMenuCopyPaste:{get:function(){return w}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}).removeClass,h=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,f=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).EventManager,m=(l=e("plugins"),l&&l.__esModule&&l||{"default":l}).registerPlugin,p=(a=e("_base"),a&&a.__esModule&&a||{"default":a})["default"],g=(u=e("zeroclipboard"),u&&u.__esModule&&u||{"default":u})["default"],w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.eventManager=new f(this),this.swfPath=null,this.outsideClickDeselectsCache=null},v=w;$traceurRuntime.createClass(w,{isEnabled:function(){return this.hot.getSettings().contextMenuCopyPaste},enablePlugin:function(){var e=this;if(!this.enabled){"object"==typeof this.hot.getSettings().contextMenuCopyPaste&&(this.swfPath=this.hot.getSettings().contextMenuCopyPaste.swfPath),"undefined"==typeof g&&console.error("To be able to use the Copy/Paste feature from the context menu, you need to manually include ZeroClipboard.js file to your website.");try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){"undefined"==typeof navigator.mimeTypes["application/x-shockwave-flash"]&&console.error("To be able to use the Copy/Paste feature from the context menu, your browser needs to have Flash Plugin installed.")}this.swfPath&&g.config({swfPath:this.swfPath}),this.hot.addHook("afterContextMenuShow",function(){return e.onAfterContextMenuShow()}),this.hot.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.registerEvents(),$traceurRuntime.superGet(this,v.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,v.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(document,"mouseenter",function(){return e.removeCurrentClass()}),this.eventManager.addEventListener(document,"mouseleave",function(){return e.removeZeroClipboardClass()})},getCopyValue:function(){return this.hot.copyPaste.setCopyableText(),this.hot.copyPaste.copyPasteInstance.elTextarea.value},onAfterContextMenuDefaultOptions:function(e){e.items.unshift({key:"copy",name:"Copy"},{key:"paste",name:"Paste",callback:function(){this.copyPaste.triggerPaste()}},d.plugins.ContextMenu.SEPARATOR)},onAfterContextMenuShow:function(){var e=this,t=this.hot.getPlugin("contextMenu"),o=t.menu.hotMenu.getSourceData();h(o,function(o,n){if("copy"===o.key){var r=new g(t.menu.hotMenu.getCell(n,0));return r.off(),r.on("copy",function(t){var o=t.clipboardData;o.setData("text/plain",e.getCopyValue()),e.hot.getSettings().outsideClickDeselects=e.outsideClickDeselectsCache}),!1}})},removeCurrentClass:function(){var e=this.hot.getPlugin("contextMenu");if(e.menu.isOpened()){var t=e.menu.hotMenu.rootElement.querySelector("td.current");t&&c(t,"current")}this.outsideClickDeselectsCache=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1},removeZeroClipboardClass:function(){var e=this.hot.getPlugin("contextMenu");if(e.menu.isOpened()){var t=e.menu.hotMenu.rootElement.querySelector("td.zeroclipboard-is-hover");t&&c(t,"zeroclipboard-is-hover")}this.hot.getSettings().outsideClickDeselects=this.outsideClickDeselectsCache}},{},p),m("contextMenuCopyPaste",w)},{_base:62,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,plugins:61,zeroclipboard:void 0}],77:[function(e,t,o){"use strict";function n(e){function t(){e.isListening()&&e.selection.empty()}function o(t){var o,n,r,i,s,l,a,u,d,c;if(e.isListening()&&e.selection.isSelected()){o=t,n=b.parse(o),r=e.getSelected(),i=new A(r[0],r[1]),s=new A(r[2],r[3]),l=new H(i,i,s),a=l.getTopLeftCorner(),u=l.getBottomRightCorner(),d=a,c=new A(Math.max(u.row,n.length-1+a.row),Math.max(u.col,n[0].length-1+a.col));var h=s.row-i.row>=n.length-1,f=s.col-i.col>=n[0].length-1;e.addHookOnce("afterChange",function(t,o){var n=t?t.length:0;if(n){var r={row:0,col:0},i=-1;R(t,function(e,o){var s=n>o+1?t[o+1]:null;s&&(h||(r.row=r.row+Math.max(s[0]-e[0]-1,0)),!f&&e[1]>i&&(i=e[1],r.col=r.col+Math.max(s[1]-e[1]-1,0)))}),e.selectCell(d.row,d.col,c.row+r.row,c.col+r.col)}}),e.populateFromArray(d.row,d.col,n,c.row,c.col,"paste",e.getSettings().pasteMode)}}function n(t){if(e.getSelected()&&!(e.getActiveEditor()&&e.getActiveEditor().isOpened()||O(t))){if(_(t.keyCode)){if(e.getSettings().fragmentSelection&&T())return;return r.setCopyableText(),void E(t)}var o=(t.ctrlKey||t.metaKey)&&!t.altKey;t.keyCode==y.A&&o&&e._registerTimeout(setTimeout(k(r.setCopyableText,r),0))}}var r=this;this.copyPasteInstance=v(),this.copyPasteInstance.onCut(t),this.copyPasteInstance.onPaste(o),this.onPaste=o,e.addHook("beforeKeyDown",n),this.destroy=function(){this.copyPasteInstance&&(this.copyPasteInstance.removeCallback(t),this.copyPasteInstance.removeCallback(o),this.copyPasteInstance.destroy(),this.copyPasteInstance=null),e.removeHook("beforeKeyDown",n)},e.addHook("afterDestroy",k(this.destroy,this)),this.triggerPaste=k(this.copyPasteInstance.triggerPaste,this.copyPasteInstance),this.triggerCut=k(this.copyPasteInstance.triggerCut,this.copyPasteInstance),this.setCopyableText=function(){var t=e.getSettings(),o=t.copyRowsLimit,n=t.copyColsLimit,r=e.getSelectedRange(),i=r.getTopLeftCorner(),s=r.getBottomRightCorner(),l=i.row,a=i.col,u=s.row,d=s.col,c=Math.min(u,l+o-1),h=Math.min(d,a+n-1),f=[];f.push({startRow:l,startCol:a,endRow:c,endCol:h}),f=w.hooks.run(e,"modifyCopyableRange",f);var m=this.getRangedCopyableData(f);e.copyPaste.copyPasteInstance.copyable(m),u===c&&d===h||w.hooks.run(e,"afterCopyLimit",u-l+1,d-a+1,o,n)},this.getRangedCopyableData=function(t){var o=[],n=[],r=[];return R(t,function(e){M(e.startRow,e.endRow,function(e){-1===n.indexOf(e)&&n.push(e)}),M(e.startCol,e.endCol,function(e){-1===r.indexOf(e)&&r.push(e)})}),R(n,function(t){var n=[];R(r,function(o){n.push(e.getCopyableData(t,o))}),o.push(n)}),b.stringify(o)}}function r(){var e=this,t=e.getSettings().copyPaste!==!1;t&&!e.copyPaste?e.copyPaste=new n(e):!t&&e.copyPaste&&(e.copyPaste.destroy(),e.copyPaste=null)}Object.defineProperties(o,{CopyPastePlugin:{get:function(){return n}},__esModule:{value:!0}});var i,s,l,a,u,d,c,h,f,m,p,g,w=(i=e("browser"),i&&i.__esModule&&i||{"default":i})["default"],v=(s=e("copyPaste"),s&&s.__esModule&&s||{"default":s})["default"],b=(l=e("SheetClip"),l&&l.__esModule&&l||{"default":l})["default"],C=(a=e("helpers/unicode"),a&&a.__esModule&&a||{"default":a}),y=C.KEY_CODES,_=C.isCtrlKey,R=(u=e("helpers/array"),u&&u.__esModule&&u||{"default":u}).arrayEach,M=(d=e("helpers/number"),d&&d.__esModule&&d||{"default":d}).rangeEach,S=(c=e("helpers/dom/event"),c&&c.__esModule&&c||{"default":c}),E=S.stopImmediatePropagation,O=S.isImmediatePropagationStopped,T=(h=e("helpers/dom/element"),h&&h.__esModule&&h||{"default":h}).getSelectionText,k=(f=e("helpers/function"),f&&f.__esModule&&f||{"default":f}).proxy,A=((m=e("plugins"),m&&m.__esModule&&m||{"default":m}).registerPlugin,(p=e("3rdparty/walkontable/src/cell/coords"),p&&p.__esModule&&p||{"default":p}).WalkontableCellCoords),H=(g=e("3rdparty/walkontable/src/cell/range"),g&&g.__esModule&&g||{"default":g}).WalkontableCellRange;w.hooks.add("afterInit",r),w.hooks.add("afterUpdateSettings",r),w.hooks.register("afterCopyLimit"),w.hooks.register("modifyCopyableRange")},{"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/cell/range":6,SheetClip:"SheetClip",browser:23,copyPaste:"copyPaste","helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/function":49,"helpers/number":51,"helpers/unicode":55,plugins:61}],78:[function(e,t,o){"use strict";function n(){}var r,i,s,l,a,u=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],d=((i=e("plugins"),i&&i.__esModule&&i||{"default":i}).registerPlugin,(s=e("3rdparty/walkontable/src/cell/range"),s&&s.__esModule&&s||{"default":s}).WalkontableCellRange),c=(l=e("3rdparty/walkontable/src/selection"),l&&l.__esModule&&l||{"default":l}).WalkontableSelection,h=function(e){return"boolean"==typeof e&&e===!0?!0:"object"==typeof e&&e.length>0},f=function(){h(this.getSettings().customBorders)&&(this.customBorders||(a=this,this.customBorders=new n))},m=function(e){for(var t=0;t<a.view.wt.selections.length;t++)if(a.view.wt.selections[t].settings.className==e)return t;return-1},p=function(e){var t={row:e.row,col:e.col},o=new c(e,new d(t,t,t)),n=m(e.className);n>=0?a.view.wt.selections[n]=o:a.view.wt.selections.push(o)},g=function(e,t,o){var n=_(e,t);n=R(n,o),this.setCellMeta(e,t,"borders",n),p(n)},w=function(e){for(var t=e.range,o=t.from.row;o<=t.to.row;o++)for(var n=t.from.col;n<=t.to.col;n++){var r=_(o,n),i=0;o==t.from.row&&(i++,e.hasOwnProperty("top")&&(r.top=e.top)),o==t.to.row&&(i++,e.hasOwnProperty("bottom")&&(r.bottom=e.bottom)),n==t.from.col&&(i++,e.hasOwnProperty("left")&&(r.left=e.left)),n==t.to.col&&(i++,e.hasOwnProperty("right")&&(r.right=e.right)),i>0&&(this.setCellMeta(o,n,"borders",r),p(r))}},v=function(e,t){return"border_row"+e+"col"+t},b=function(){return{width:1,color:"#000"}},C=function(){return{hide:!0}},y=function(){return{width:1,color:"#000",cornerVisible:!1}},_=function(e,t){return{className:v(e,t),border:y(),row:e,col:t,top:C(),right:C(),bottom:C(),left:C()}},R=function(e,t){return t.hasOwnProperty("border")&&(e.border=t.border),t.hasOwnProperty("top")&&(e.top=t.top),t.hasOwnProperty("right")&&(e.right=t.right),t.hasOwnProperty("bottom")&&(e.bottom=t.bottom),t.hasOwnProperty("left")&&(e.left=t.left),e},M=function(e){for(var t=document.querySelectorAll("."+e),o=0;o<t.length;o++)if(t[o]&&"TD"!=t[o].nodeName){var n=t[o].parentNode;n.parentNode&&n.parentNode.removeChild(n)}},S=function(e,t){var o=v(e,t);M(o),this.removeCellMeta(e,t,"borders")},E=function(e,t,o,n){var r=this.getCellMeta(e,t).borders;r&&void 0!=r.border||(r=_(e,t)),n?r[o]=C():r[o]=b(),this.setCellMeta(e,t,"borders",r);var i=v(e,t);M(i),p(r),this.render()},O=function(e,t,o){if(e.from.row==e.to.row&&e.from.col==e.to.col)"noBorders"==t?S.call(this,e.from.row,e.from.col):E.call(this,e.from.row,e.from.col,t,o);else switch(t){case"noBorders":for(var n=e.from.col;n<=e.to.col;n++)for(var r=e.from.row;r<=e.to.row;r++)S.call(this,r,n);break;case"top":for(var i=e.from.col;i<=e.to.col;i++)E.call(this,e.from.row,i,t,o);break;case"right":for(var s=e.from.row;s<=e.to.row;s++)E.call(this,s,e.to.col,t);break;case"bottom":for(var l=e.from.col;l<=e.to.col;l++)E.call(this,e.to.row,l,t);break;case"left":for(var a=e.from.row;a<=e.to.row;a++)E.call(this,a,e.from.col,t)}},T=function(e,t){var o=!1;return e.getSelectedRange().forAll(function(n,r){var i=e.getCellMeta(n,r).borders;if(i){if(!t)return o=!0,!1;if(!i[t].hasOwnProperty("hide"))return o=!0,!1}}),o},k=function(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e},A=function(e){this.getSettings().customBorders&&(e.items.push(u.plugins.ContextMenu.SEPARATOR),e.items.push({key:"borders",name:"Borders",submenu:{items:[{key:"borders:top",name:function(){var e="Top",t=T(this,"top");return t&&(e=k(e)),e},callback:function(){var e=T(this,"top");O.call(this,this.getSelectedRange(),"top",e)},disabled:!1},{key:"borders:right",name:function(){var e="Right",t=T(this,"right");return t&&(e=k(e)),e},callback:function(){var e=T(this,"right");O.call(this,this.getSelectedRange(),"right",e)},disabled:!1},{key:"borders:bottom",name:function(){var e="Bottom",t=T(this,"bottom");return t&&(e=k(e)),e},callback:function(){var e=T(this,"bottom");O.call(this,this.getSelectedRange(),"bottom",e)},disabled:!1},{key:"borders:left",name:function(){var e="Left",t=T(this,"left");return t&&(e=k(e)),e},callback:function(){var e=T(this,"left");O.call(this,this.getSelectedRange(),"left",e)},disabled:!1},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){O.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!T(this)}}]}}))};u.hooks.add("beforeInit",f),u.hooks.add("afterContextMenuDefaultOptions",A),u.hooks.add("afterInit",function(){var e=this.getSettings().customBorders;if(e){for(var t=0;t<e.length;t++)e[t].range?w.call(this,e[t]):g.call(this,e[t].row,e[t].col,e[t]);this.render(),this.view.wt.draw(!0)}}),u.CustomBorders=n},{"3rdparty/walkontable/src/cell/range":6,"3rdparty/walkontable/src/selection":18,browser:23,plugins:61}],79:[function(e,t,o){"use strict";function n(){this.boundaries=null,this.callback=null}Object.defineProperties(o,{DragToScroll:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],a=(i=e("eventManager"),i&&i.__esModule&&i||{"default":i}).eventManager;(s=e("plugins"),s&&s.__esModule&&s||{"default":s}).registerPlugin;l.plugins.DragToScroll=n,n.prototype.setBoundaries=function(e){this.boundaries=e},n.prototype.setCallback=function(e){this.callback=e},n.prototype.check=function(e,t){var o=0,n=0;t<this.boundaries.top?n=t-this.boundaries.top:t>this.boundaries.bottom&&(n=t-this.boundaries.bottom),e<this.boundaries.left?o=e-this.boundaries.left:e>this.boundaries.right&&(o=e-this.boundaries.right),this.callback(o,n)};var u,d=function(e){e.dragToScrollListening=!1;var t=e.view.wt.wtTable.holder;u=new n,t!==window&&(u.setBoundaries(t.getBoundingClientRect()),u.setCallback(function(e,o){0>e?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),0>o?t.scrollTop-=20:o>0&&(t.scrollTop+=20)}),e.dragToScrollListening=!0)};l.hooks.add("afterInit",function(){var e=this,t=a(this);t.addEventListener(document,"mouseup",function(){e.dragToScrollListening=!1}),t.addEventListener(document,"mousemove",function(t){e.dragToScrollListening&&u.check(t.clientX,t.clientY)})}),l.hooks.add("afterDestroy",function(){a(this).clear()}),l.hooks.add("afterOnCellMouseDown",function(){d(this)}),l.hooks.add("afterOnCellCornerMouseDown",function(){d(this)}),l.plugins.DragToScroll=n},{browser:23,eventManager:41,plugins:61}],80:[function(e,t,o){"use strict";Object.defineProperties(o,{ManualColumnFreeze:{get:function(){return u}},__esModule:{value:!0}});var n,r,i,s=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],l=(r=e("_base"),r&&r.__esModule&&r||{"default":r})["default"],a=(i=e("plugins"),i&&i.__esModule&&i||{"default":i}).registerPlugin,u=function(e){$traceurRuntime.superConstructor(d).call(this,e),this.manualColumnMovePlugin=null,this.frozenColumnsBasePositions=[]},d=u;$traceurRuntime.createClass(u,{isEnabled:function(){return!!this.hot.getSettings().manualColumnFreeze},enablePlugin:function(){var e=this;this.enabled||(this.addHook("modifyCol",function(t){return e.onModifyCol(t)}),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addContextMenuEntry(t)}),$traceurRuntime.superGet(this,d.prototype,"enablePlugin").call(this))},init:function(){$traceurRuntime.superGet(this,d.prototype,"init").call(this),this.fixedColumnsCount=this.hot.getSettings().fixedColumnsLeft},getManualColumnMovePlugin:function(){return this.manualColumnMovePlugin||(this.manualColumnMovePlugin=this.hot.getPlugin("manualColumnMove")),this.manualColumnMovePlugin},onModifyCol:function(e){return this.getManualColumnMovePlugin().isEnabled()?e:this.getLogicalColumnIndex(e)},addContextMenuEntry:function(e){var t=this;e.items.push(s.plugins.ContextMenu.SEPARATOR,{key:"freeze_column",name:function(){var e=t.hot.getSelected()[1];return e>t.fixedColumnsCount-1?"Freeze this column":"Unfreeze this column"},disabled:function(){var e=t.hot.getSelected();return e[1]!==e[3]},callback:function(){var e=t.hot.getSelected()[1];e>t.fixedColumnsCount-1?t.freezeColumn(e):t.unfreezeColumn(e)}})},freezeColumn:function(e){e<=this.fixedColumnsCount-1||(e!==this.getLogicalColumnIndex(e)&&(this.frozenColumnsBasePositions[this.fixedColumnsCount]=e),this.changeColumnPositions(e,this.fixedColumnsCount),this.addFixedColumn(),this.hot.view.wt.wtOverlays.leftOverlay.refresh(),this.hot.view.wt.wtOverlays.adjustElementsSize())},unfreezeColumn:function(e){if(!(e>this.fixedColumnsCount-1)){var t=this.getBestColumnReturnPosition(e);this.changeColumnPositions(e,t),this.removeFixedColumn(),this.hot.view.wt.wtOverlays.leftOverlay.refresh(),this.hot.view.wt.wtOverlays.adjustElementsSize()}},addFixedColumn:function(){this.hot.updateSettings({fixedColumnsLeft:this.fixedColumnsCount+1}),this.fixedColumnsCount++},removeFixedColumn:function(){this.hot.updateSettings({fixedColumnsLeft:this.fixedColumnsCount-1}),this.fixedColumnsCount--},getBestColumnReturnPosition:function(e){var t,o=this.fixedColumnsCount,n=this.getLogicalColumnIndex(o);if(null==this.frozenColumnsBasePositions[e])for(t=this.getLogicalColumnIndex(e);t>n;)o++,n=this.getLogicalColumnIndex(o);else{for(t=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;t>=n;)o++,n=this.getLogicalColumnIndex(o);o=n}return o-1},getVisibleColumnIndex:function(e){return this.getManualColumnMovePlugin().getVisibleColumnIndex(e)},getLogicalColumnIndex:function(e){return this.getManualColumnMovePlugin().getLogicalColumnIndex(e)},changeColumnPositions:function(e,t){this.getManualColumnMovePlugin().changeColumnPositions(e,t)}},{},l),a("manualColumnFreeze",u)},{_base:62,browser:23,plugins:61}],81:[function(e,t,o){"use strict";Object.defineProperties(o,{ManualColumnMove:{get:function(){return O}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c=(n=e("_base.js"),n&&n.__esModule&&n||{"default":n})["default"],h=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),m=f.addClass,p=f.hasClass,g=f.removeClass,w=f.outerHeight,v=(s=e("helpers/array"),s&&s.__esModule&&s||{"default":s}),b=v.arrayEach,C=v.arrayMap,y=(l=e("helpers/number"),l&&l.__esModule&&l||{"default":l}).rangeEach,_=(a=e("eventManager"),a&&a.__esModule&&a||{"default":a}).eventManager,R=(u=e("helpers/dom/event"),u&&u.__esModule&&u||{"default":u}),M=R.pageX,S=(R.pageY,(d=e("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin),E=new WeakMap,O=function(e){var t=this;$traceurRuntime.superConstructor(T).call(this,e),E.set(this,{guideClassName:"manualColumnMoverGuide",handleClassName:"manualColumnMover",startOffset:null,pressed:null,startCol:null,endCol:null,currentCol:null,startX:null,startY:null}),this.guideElement=null,this.handleElement=null,this.currentTH=null,this.columnPositions=[],this.eventManager=_(this),this.addHook("init",function(){return t.onInit()})},T=O;$traceurRuntime.createClass(O,{isEnabled:function(){return!!this.hot.getSettings().manualColumnMove},enablePlugin:function(){var e=this,t=E.get(this),o=this.hot.getSettings().manualColumnMove,n=this.loadManualColumnPositions();this.handleElement=document.createElement("DIV"),this.handleElement.className=t.handleClassName,this.guideElement=document.createElement("DIV"),this.guideElement.className=t.guideClassName,this.addHook("modifyCol",function(t){return e.onModifyCol(t)}),this.addHook("unmodifyCol",function(t){return e.onUnmodifyCol(t)}),this.addHook("afterRemoveCol",function(t,o){return e.onAfterRemoveCol(t,o)}),this.addHook("afterCreateCol",function(t,o){return e.onAfterCreateCol(t,o)}),this.registerEvents(),"undefined"!=typeof n?this.columnPositions=n:Array.isArray(o)?this.columnPositions=o:o&&void 0!==this.columnPositions||(this.columnPositions=[]),$traceurRuntime.superGet(this,T.prototype,"enablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,T.prototype,"updatePlugin").call(this)},disablePlugin:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&(this.unregisterEvents(),this.columnPositions=[]),$traceurRuntime.superGet(this,T.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})},unregisterEvents:function(){this.eventManager.clear()},saveManualColumnPositions:function(){h.hooks.run(this.hot,"persistentStateSave","manualColumnPositions",this.columnPositions)},loadManualColumnPositions:function(){var e={};return h.hooks.run(this.hot,"persistentStateLoad","manualColumnPositions",e),e.value},completeSettingsArray:function(){var e=this,t=this.hot.countCols();this.columnPositions.length!==t&&y(0,t-1,function(t){-1===e.columnPositions.indexOf(t)&&e.columnPositions.push(t)})},setupHandlePosition:function(e){this.currentTH=e;var t=E.get(this),o=this.hot.view.wt.wtTable.getCoords(e).col,n=w(this.currentTH);if(o>=0){var r=this.currentTH.getBoundingClientRect();t.currentCol=o,t.startOffset=r.left,this.handleElement.style.top=r.top+"px",this.handleElement.style.left=t.startOffset+"px",this.handleElement.style.height=n+"px",this.hot.rootElement.appendChild(this.handleElement)}},refreshHandlePosition:function(e,t){var o=e.getBoundingClientRect(),n=6;t>0?this.handleElement.style.left=o.left+o.width-n+"px":this.handleElement.style.left=o.left+"px"},setupGuidePosition:function(){var e=this.currentTH.getBoundingClientRect(),t=E.get(this),o=parseInt(w(this.handleElement),10),n=parseInt(this.handleElement.style.top,10)+o,r=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);m(this.handleElement,"active"),m(this.guideElement,"active"),this.guideElement.style.width=e.width+"px",this.guideElement.style.height=r-o+"px",this.guideElement.style.top=n+"px",this.guideElement.style.left=t.startOffset+"px",this.hot.rootElement.appendChild(this.guideElement)},refreshGuidePosition:function(e){var t=E.get(this);this.guideElement.style.left=t.startOffset+e+"px"},hideHandleAndGuide:function(){g(this.handleElement,"active"),g(this.guideElement,"active")},checkColumnHeader:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName?!0:this.checkColumnHeader(t)}return!1},createPositionData:function(e){var t=this.columnPositions;t.length<e&&y(t.length,e-1,function(e){t[e]=e})},getTHFromTargetElement:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null},changeColumnPositions:function(e,t){var o=Math.max(e,t);o>this.columnPositions.length-1&&this.createPositionData(o+1),this.columnPositions.splice(t,0,this.columnPositions.splice(e,1)[0])},getVisibleColumnIndex:function(e){return e>this.columnPositions.length-1&&this.createPositionData(e),this.columnPositions.indexOf(e)},getLogicalColumnIndex:function(e){return this.columnPositions[e]},onMouseOver:function(e){var t=E.get(this);if(this.checkColumnHeader(e.target)){var o=this.getTHFromTargetElement(e.target);if(o)if(t.pressed){var n=this.hot.view.wt.wtTable.getCoords(o).col;n>=0&&(t.endCol=n,
this.refreshHandlePosition(o,t.endCol-t.startCol))}else this.setupHandlePosition(o)}},onMouseDown:function(e){var t=E.get(this);p(e.target,t.handleClassName)&&(t.startX=M(e),this.setupGuidePosition(),t.pressed=this.hot,t.startCol=t.currentCol,t.endCol=t.currentCol)},onMouseMove:function(e){var t=E.get(this);t.pressed&&this.refreshGuidePosition(M(e)-t.startX)},onMouseUp:function(e){var t=E.get(this);t.pressed&&(this.hideHandleAndGuide(),t.pressed=!1,this.createPositionData(this.hot.countCols()),this.changeColumnPositions(t.startCol,t.endCol),h.hooks.run(this.hot,"beforeColumnMove",t.startCol,t.endCol),this.hot.forceFullRender=!0,this.hot.view.render(),this.saveManualColumnPositions(),h.hooks.run(this.hot,"afterColumnMove",t.startCol,t.endCol),this.setupHandlePosition(this.currentTH))},onModifyCol:function(e){return-1==typeof this.getVisibleColumnIndex(e)&&this.createPositionData(e+1),this.getLogicalColumnIndex(e)},onUnmodifyCol:function(e){return-1==typeof this.getVisibleColumnIndex(e)&&this.createPositionData(e+1),this.getVisibleColumnIndex(e)},onAfterRemoveCol:function(e,t){if(this.isEnabled()){var o,n=this.columnPositions;o=n.splice(e,t),n=C(n,function(e,t){var n=e;return b(o,function(t,o){e>t&&n--}),n}),this.columnPositions=n}},onAfterCreateCol:function(e,t){if(this.isEnabled()){var o=this.columnPositions;if(o.length){var n=[];y(0,t-1,function(t){n.push(e+t)}),e>=o.length?o.concat(n):(o=C(o,function(o,n){return o>=e?o+t:o}),o.splice.apply(o,[e,0].concat(n))),this.columnPositions=o}}},onInit:function(){this.completeSettingsArray()}},{},c),S("manualColumnMove",O),h.hooks.register("beforeColumnMove"),h.hooks.register("afterColumnMove"),h.hooks.register("unmodifyCol")},{"_base.js":62,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:61}],82:[function(e,t,o){"use strict";Object.defineProperties(o,{ManualColumnResize:{get:function(){return M}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],h=(r=e("_base.js"),r&&r.__esModule&&r||{"default":r})["default"],f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),m=f.addClass,p=f.hasClass,g=f.removeClass,w=f.outerHeight,v=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).eventManager,b=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{"default":l}),C=b.pageX,y=(b.pageY,(a=e("helpers/array"),a&&a.__esModule&&a||{"default":a}).arrayEach),_=(u=e("helpers/number"),u&&u.__esModule&&u||{"default":u}).rangeEach,R=(d=e("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin,M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.currentTH=null,this.currentCol=null,this.selectedCols=[],this.currentWidth=null,this.newSize=null,this.startY=null,this.startWidth=null,this.startOffset=null,this.handle=document.createElement("DIV"),this.guide=document.createElement("DIV"),this.eventManager=v(this),this.pressed=null,this.dblclick=0,this.autoresizeTimeout=null,this.manualColumnWidths=[],m(this.handle,"manualColumnResizer"),m(this.guide,"manualColumnResizerGuide")},S=M;$traceurRuntime.createClass(M,{isEnabled:function(){return this.hot.getSettings().manualColumnResize},enablePlugin:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var t=this.hot.getSettings().manualColumnResize,o=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(t,o){return e.onModifyColWidth(t,o)}),this.addHook("beforeStretchingColumnWidth",function(t,o){return e.onBeforeStretchingColumnWidth(t,o)}),this.addHook("beforeColumnResize",function(t,o,n){return e.onBeforeColumnResize(t,o,n)}),"undefined"!=typeof o?this.manualColumnWidths=o:Array.isArray(t)?this.manualColumnWidths=t:this.manualColumnWidths=[],c.hooks.register("beforeColumnResize"),c.hooks.register("afterColumnResize"),this.bindEvents(),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var e=this.hot.getSettings().manualColumnResize;Array.isArray(e)?this.manualColumnWidths=e:e||(this.manualColumnWidths=[])},disablePlugin:function(){$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this)},saveManualColumnWidths:function(){this.hot.runHooks("persistentStateSave","manualColumnWidths",this.manualColumnWidths)},loadManualColumnWidths:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualColumnWidths",e),e.value},setupHandlePosition:function(e){var t=this;if(!e.parentNode)return!1;this.currentTH=e;var o=this.hot.view.wt.wtTable.getCoords(e).col,n=w(this.currentTH);if(o>=0){var r=this.currentTH.getBoundingClientRect();if(this.currentCol=o,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var i=this.hot.getSelectedRange(),s=i.from,l=i.to,a=s.col,u=l.col;a>=u&&(a=l.col,u=s.col),this.currentCol>=a&&this.currentCol<=u?_(a,u,function(e){return t.selectedCols.push(e)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=r.left-6,this.startWidth=parseInt(r.width,10),this.handle.style.top=r.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=n+"px",this.hot.rootElement.appendChild(this.handle)}},refreshHandlePosition:function(){this.handle.style.left=this.startOffset+this.currentWidth+"px"},setupGuidePosition:function(){var e=parseInt(w(this.handle),10),t=parseInt(this.handle.style.top,10)+e,o=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);m(this.handle,"active"),m(this.guide,"active"),this.guide.style.top=t+"px",this.guide.style.left=this.handle.style.left,this.guide.style.height=o-e+"px",this.hot.rootElement.appendChild(this.guide)},refreshGuidePosition:function(){this.guide.style.left=this.handle.style.left},hideHandleAndGuide:function(){g(this.handle,"active"),g(this.guide,"active")},checkIfColumnHeader:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"THEAD"===t.tagName?!0:this.checkIfColumnHeader(t)}return!1},getTHFromTargetElement:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null},onMouseOver:function(e){if(this.checkIfColumnHeader(e.target)){var t=this.getTHFromTargetElement(e.target);if(!t)return;var o=t.getAttribute("colspan");!t||null!==o&&1!==o||this.pressed||this.setupHandlePosition(t)}},afterMouseDownTimeout:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(o,n){var r=e.hot.runHooks("beforeColumnResize",o,e.newSize,!0);void 0!==r&&(e.newSize=r),"all"===e.hot.getSettings().stretchH?e.clearManualSize(o):e.setManualSize(o,e.newSize),n&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",o,e.newSize,!0)};if(this.dblclick>=2){var n=this.selectedCols.length;n>1?(y(this.selectedCols,function(e){o(e)}),t()):y(this.selectedCols,function(e){o(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(e){var t=this;p(e.target,"manualColumnResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null===this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startX=C(e),this.newSize=this.startWidth)},onMouseMove:function(e){var t=this;this.pressed&&(this.currentWidth=this.startWidth+(C(e)-this.startX),y(this.selectedCols,function(e){t.newSize=t.setManualSize(e,t.currentWidth)}),this.refreshHandlePosition(),this.refreshGuidePosition())},onMouseUp:function(e){var t=this,o=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(e,n){t.hot.runHooks("beforeColumnResize",e,t.newSize),n&&o(),t.saveManualColumnWidths(),t.hot.runHooks("afterColumnResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth){var r=this.selectedCols.length;r>1?(y(this.selectedCols,function(e){n(e)}),o()):y(this.selectedCols,function(e){n(e,!0)})}this.setupHandlePosition(this.currentTH)}},bindEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})},setManualSize:function(e,t){return t=Math.max(t,20),e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=t,t},clearManualSize:function(e){e=this.hot.runHooks("modifyCol",e),this.manualColumnWidths[e]=void 0},onModifyColWidth:function(e,t){return this.enabled&&(t=this.hot.runHooks("modifyCol",t),this.hot.getSettings().manualColumnResize&&this.manualColumnWidths[t])?this.manualColumnWidths[t]:e},onBeforeStretchingColumnWidth:function(e,t){var o=this.manualColumnWidths[t];return void 0===o&&(o=e),o},onBeforeColumnResize:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}},{},h),R("manualColumnResize",M)},{"_base.js":62,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:61}],83:[function(e,t,o){"use strict";Object.defineProperties(o,{ManualRowMove:{get:function(){return O}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c=(n=e("_base.js"),n&&n.__esModule&&n||{"default":n})["default"],h=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),m=f.addClass,p=f.hasClass,g=f.removeClass,w=f.outerWidth,v=(s=e("helpers/array"),s&&s.__esModule&&s||{"default":s}),b=v.arrayEach,C=v.arrayMap,y=(l=e("helpers/number"),l&&l.__esModule&&l||{"default":l}).rangeEach,_=(a=e("eventManager"),a&&a.__esModule&&a||{"default":a}).eventManager,R=(u=e("helpers/dom/event"),u&&u.__esModule&&u||{"default":u}),M=(R.pageX,R.pageY),S=(d=e("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin,E=new WeakMap,O=function(e){$traceurRuntime.superConstructor(T).call(this,e),E.set(this,{guideClassName:"manualRowMoverGuide",handleClassName:"manualRowMover",startOffset:null,pressed:null,startRow:null,endRow:null,currentRow:null,startX:null,startY:null}),this.guideElement=null,this.handleElement=null,this.currentTH=null,this.rowPositions=[],this.eventManager=_(this)},T=O;$traceurRuntime.createClass(O,{isEnabled:function(){return!!this.hot.getSettings().manualRowMove},enablePlugin:function(){var e=this,t=E.get(this),o=this.hot.getSettings().manualRowMove,n=this.loadManualRowPositions();this.handleElement=document.createElement("DIV"),this.handleElement.className=t.handleClassName,this.guideElement=document.createElement("DIV"),this.guideElement.className=t.guideClassName,this.addHook("modifyRow",function(t){return e.onModifyRow(t)}),this.addHook("afterRemoveRow",function(t,o){return e.onAfterRemoveRow(t,o)}),this.addHook("afterCreateRow",function(t,o){return e.onAfterCreateRow(t,o)}),this.addHook("init",function(){return e.onInit()}),this.registerEvents(),"undefined"!=typeof n?this.rowPositions=n:Array.isArray(o)?this.rowPositions=o:o&&void 0!==this.rowPositions||(this.rowPositions=[]),$traceurRuntime.superGet(this,T.prototype,"enablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,T.prototype,"updatePlugin").call(this)},disablePlugin:function(){var e=this.hot.getSettings().manualRowMove;Array.isArray(e)&&(this.unregisterEvents(),this.rowPositions=[]),$traceurRuntime.superGet(this,T.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})},unregisterEvents:function(){this.eventManager.clear()},saveManualRowPositions:function(){h.hooks.run(this.hot,"persistentStateSave","manualRowPositions",this.rowPositions)},loadManualRowPositions:function(){var e={};return h.hooks.run(this.hot,"persistentStateLoad","manualRowPositions",e),e.value},completeSettingsArray:function(){var e=this,t=this.hot.countRows();this.rowPositions.length!==t&&y(0,t-1,function(t){-1===e.rowPositions.indexOf(t)&&e.rowPositions.push(t)})},setupHandlePosition:function(e){this.currentTH=e;var t=E.get(this),o=this.hot.view.wt.wtTable.getCoords(e).row,n=w(this.currentTH);if(o>=0){var r=this.currentTH.getBoundingClientRect();t.currentRow=o,t.startOffset=r.top,this.handleElement.style.top=t.startOffset+"px",this.handleElement.style.left=r.left+"px",this.handleElement.style.width=n+"px",this.hot.rootElement.appendChild(this.handleElement)}},refreshHandlePosition:function(e,t){var o=e.getBoundingClientRect(),n=6;t>0?this.handleElement.style.top=o.top+o.height-n+"px":this.handleElement.style.top=o.top+"px"},setupGuidePosition:function(){var e=this.currentTH.getBoundingClientRect(),t=E.get(this),o=parseInt(w(this.handleElement),10),n=parseInt(this.handleElement.style.left,10)+o,r=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);m(this.handleElement,"active"),m(this.guideElement,"active"),this.guideElement.style.height=e.height+"px",this.guideElement.style.width=r-o+"px",this.guideElement.style.top=t.startOffset+"px",this.guideElement.style.left=n+"px",this.hot.rootElement.appendChild(this.guideElement)},refreshGuidePosition:function(e){var t=E.get(this);this.guideElement.style.top=t.startOffset+e+"px"},hideHandleAndGuide:function(){g(this.handleElement,"active"),g(this.guideElement,"active")},checkRowHeader:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName?!0:this.checkRowHeader(t)}return!1},createPositionData:function(e){var t=this.rowPositions;t.length<e&&y(t.length,e-1,function(e){t[e]=e})},getTHFromTargetElement:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null},changeRowPositions:function(e,t){var o=Math.max(e,t);o>this.rowPositions.length-1&&this.createPositionData(o+1),this.rowPositions.splice(t,0,this.rowPositions.splice(e,1)[0])},getVisibleRowIndex:function(e){return e>this.rowPositions.length-1&&this.createPositionData(e),this.rowPositions.indexOf(e)},getLogicalRowIndex:function(e){return this.rowPositions[e]},onMouseOver:function(e){var t=E.get(this);if(this.checkRowHeader(e.target)){var o=this.getTHFromTargetElement(e.target);o&&(t.pressed?(t.endRow=this.hot.view.wt.wtTable.getCoords(o).row,this.refreshHandlePosition(o,t.endRow-t.startRow)):this.setupHandlePosition(o))}},onMouseDown:function(e){var t=E.get(this);p(e.target,t.handleClassName)&&(t.startY=M(e),this.setupGuidePosition(),t.pressed=this.hot,t.startRow=t.currentRow,t.endRow=t.currentRow)},onMouseMove:function(e){var t=E.get(this);t.pressed&&this.refreshGuidePosition(M(e)-t.startY)},onMouseUp:function(e){var t=E.get(this);t.pressed&&(this.hideHandleAndGuide(),t.pressed=!1,this.createPositionData(this.hot.countRows()),this.changeRowPositions(t.startRow,t.endRow),h.hooks.run(this.hot,"beforeRowMove",t.startRow,t.endRow),this.hot.forceFullRender=!0,this.hot.view.render(),this.saveManualRowPositions(),h.hooks.run(this.hot,"afterRowMove",t.startRow,t.endRow),this.setupHandlePosition(this.currentTH))},onModifyRow:function(e){return"undefined"==typeof this.getVisibleRowIndex(e)&&this.createPositionData(e+1),this.getLogicalRowIndex(e)},onAfterRemoveRow:function(e,t){if(this.isEnabled()){var o,n=this.rowPositions;o=n.splice(e,t),n=C(n,function(e,t){var n=e;return b(o,function(t,o){e>t&&n--}),n}),this.rowPositions=n}},onAfterCreateRow:function(e,t){if(this.isEnabled()){var o=this.rowPositions;if(o.length){for(var n=[],r=0;t>r;r++)n.push(e+r);e>=o.length?o.concat(n):(o=C(o,function(o,n){return o>=e?o+t:o}),o.splice.apply(o,[e,0].concat(n))),this.rowPositions=o}}},onInit:function(){this.completeSettingsArray()}},{},c),S("ManualRowMove",O),h.hooks.register("beforeRowMove"),h.hooks.register("afterRowMove")},{"_base.js":62,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:61}],84:[function(e,t,o){"use strict";Object.defineProperties(o,{ManualRowResize:{get:function(){return M}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],h=(r=e("_base.js"),r&&r.__esModule&&r||{"default":r})["default"],f=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),m=f.addClass,p=f.hasClass,g=f.removeClass,w=f.outerWidth,v=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).eventManager,b=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{"default":l}),C=(b.pageX,b.pageY),y=(a=e("helpers/array"),a&&a.__esModule&&a||{"default":a}).arrayEach,_=(u=e("helpers/number"),u&&u.__esModule&&u||{"default":u}).rangeEach,R=(d=e("plugins"),d&&d.__esModule&&d||{"default":d}).registerPlugin,M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.currentTH=null,this.currentRow=null,this.selectedRows=[],this.currentHeight=null,this.newSize=null,this.startY=null,this.startHeight=null,this.startOffset=null,this.handle=document.createElement("DIV"),this.guide=document.createElement("DIV"),this.eventManager=v(this),this.pressed=null,this.dblclick=0,this.autoresizeTimeout=null,this.manualRowHeights=[],m(this.handle,"manualRowResizer"),m(this.guide,"manualRowResizerGuide")},S=M;$traceurRuntime.createClass(M,{isEnabled:function(){return this.hot.getSettings().manualRowResize},enablePlugin:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var t=this.hot.getSettings().manualRowResize,o=this.loadManualRowHeights();"undefined"!=typeof o?this.manualRowHeights=o:Array.isArray(t)?this.manualRowHeights=t:this.manualRowHeights=[],this.addHook("modifyRowHeight",function(t,o){return e.onModifyRowHeight(t,o)}),c.hooks.register("beforeRowResize"),c.hooks.register("afterRowResize"),this.bindEvents(),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this)}},updatePlugin:function(){var e=this.hot.getSettings().manualRowResize;Array.isArray(e)?this.manualRowHeights=e:e||(this.manualRowHeights=[])},disablePlugin:function(){$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this)},saveManualRowHeights:function(){this.hot.runHooks("persistentStateSave","manualRowHeights",this.manualRowHeights)},loadManualRowHeights:function(){var e={};return this.hot.runHooks("persistentStateLoad","manualRowHeights",e),e.value},setupHandlePosition:function(e){var t=this;this.currentTH=e;var o=this.hot.view.wt.wtTable.getCoords(e).row,n=w(this.currentTH);if(o>=0){var r=this.currentTH.getBoundingClientRect();if(this.currentRow=o,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var i=this.hot.getSelectedRange(),s=i.from,l=i.to,a=s.row,u=l.row;a>=u&&(a=l.row,u=s.row),this.currentRow>=a&&this.currentRow<=u?_(a,u,function(e){return t.selectedRows.push(e)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=r.top-6,this.startHeight=parseInt(r.height,10),this.handle.style.left=r.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=n+"px",this.hot.rootElement.appendChild(this.handle)}},refreshHandlePosition:function(){this.handle.style.top=this.startOffset+this.currentHeight+"px"},setupGuidePosition:function(){var e=parseInt(w(this.handle),10),t=parseInt(this.handle.style.left,10)+e,o=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);m(this.handle,"active"),m(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left=t+"px",this.guide.style.width=o-e+"px",this.hot.rootElement.appendChild(this.guide)},refreshGuidePosition:function(){this.guide.style.top=this.handle.style.top},hideHandleAndGuide:function(){g(this.handle,"active"),g(this.guide,"active")},checkIfRowHeader:function(e){if(e!=this.hot.rootElement){var t=e.parentNode;return"TBODY"===t.tagName?!0:this.checkIfRowHeader(t)}return!1},getTHFromTargetElement:function(e){return"TABLE"!=e.tagName?"TH"==e.tagName?e:this.getTHFromTargetElement(e.parentNode):null},onMouseOver:function(e){if(this.checkIfRowHeader(e.target)){var t=this.getTHFromTargetElement(e.target);t&&(this.pressed||this.setupHandlePosition(t))}},afterMouseDownTimeout:function(){var e=this,t=function(){e.hot.forceFullRender=!0,e.hot.view.render(),e.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(o,n){var r=e.hot.runHooks("beforeRowResize",o,e.newSize,!0);void 0!==r&&(e.newSize=r),e.setManualSize(o,e.newSize),n&&t(),e.hot.runHooks("afterRowResize",o,e.newSize,!0)};if(this.dblclick>=2){var n=this.selectedRows.length;n>1?(y(this.selectedRows,function(e){o(e)}),t()):y(this.selectedRows,function(e){o(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(e){var t=this;p(e.target,"manualRowResizer")&&(this.setupGuidePosition(),this.pressed=this.hot,null==this.autoresizeTimeout&&(this.autoresizeTimeout=setTimeout(function(){return t.afterMouseDownTimeout()},500),this.hot._registerTimeout(this.autoresizeTimeout)),this.dblclick++,this.startY=C(e),this.newSize=this.startHeight)},onMouseMove:function(e){var t=this;this.pressed&&(this.currentHeight=this.startHeight+(C(e)-this.startY),y(this.selectedRows,function(e){t.newSize=t.setManualSize(e,t.currentHeight)}),this.refreshHandlePosition(),this.refreshGuidePosition())},onMouseUp:function(e){var t=this,o=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},n=function(e,n){t.hot.runHooks("beforeRowResize",e,t.newSize),n&&o(),t.saveManualRowHeights(),t.hot.runHooks("afterRowResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight){var r=this.selectedRows.length;r>1?(y(this.selectedRows,function(e){n(e)}),o()):y(this.selectedRows,function(e){n(e,!0)})}this.setupHandlePosition(this.currentTH)}},bindEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"mouseover",function(t){return e.onMouseOver(t)}),this.eventManager.addEventListener(this.hot.rootElement,"mousedown",function(t){return e.onMouseDown(t)}),this.eventManager.addEventListener(window,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(window,"mouseup",function(t){return e.onMouseUp(t)})},setManualSize:function(e,t){return e=this.hot.runHooks("modifyRow",e),this.manualRowHeights[e]=t,t},onModifyRowHeight:function(e,t){if(this.enabled){var o=this.hot.getPlugin("autoRowSize"),n=o?o.heights[t]:null;t=this.hot.runHooks("modifyRow",t);var r=this.manualRowHeights[t];if(void 0!==r&&(r===n||r>(e||0)))return r}return e}},{},h),R("manualRowResize",M)},{"_base.js":62,browser:23,eventManager:41,"helpers/array":42,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/number":51,plugins:61}],85:[function(e,t,o){"use strict";function n(){var e=[];return e.getInfo=function(e,t){for(var o=0,n=this.length;n>o;o++)if(this[o].row<=e&&this[o].row+this[o].rowspan-1>=e&&this[o].col<=t&&this[o].col+this[o].colspan-1>=t)return this[o]},e.setInfo=function(e){for(var t=0,o=this.length;o>t;t++)if(this[t].row===e.row&&this[t].col===e.col)return void(this[t]=e);this.push(e)},e.removeInfo=function(e,t){for(var o=0,n=this.length;n>o;o++)if(this[o].row===e&&this[o].col===t){this.splice(o,1);break}},e}function r(e){if(this.mergedCellInfoCollection=new n,Array.isArray(e))for(var t=0,o=e.length;o>t;t++)this.mergedCellInfoCollection.setInfo(e[t])}function i(e,t){var o=this.getSettings().mergeCells;if(o&&!this.selection.isMultiple()){var n=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);n&&(e[0]=n.row,e[1]=n.col,e[2]=n.row+n.rowspan-1,e[3]=n.col+n.colspan-1)}}function s(e,t){this.mergeCells&&this.mergeCells.shiftCollection("right",e,t)}function l(e,t){this.mergeCells&&this.mergeCells.shiftCollection("left",e,t)}function a(e,t){this.mergeCells&&this.mergeCells.shiftCollection("down",e,t)}function u(e,t){this.mergeCells&&this.mergeCells.shiftCollection("up",e,t)}Object.defineProperties(o,{MergeCells:{get:function(){return r}},__esModule:{value:!0}});var d,c,h,f,m,p,g=(d=e("browser"),d&&d.__esModule&&d||{"default":d})["default"],w=((c=e("plugins"),c&&c.__esModule&&c||{"default":c}).registerPlugin,(h=e("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}).stopImmediatePropagation),v=(f=e("3rdparty/walkontable/src/cell/coords"),f&&f.__esModule&&f||{"default":f}).WalkontableCellCoords,b=(m=e("3rdparty/walkontable/src/cell/range"),m&&m.__esModule&&m||{"default":m}).WalkontableCellRange,C=(p=e("3rdparty/walkontable/src/table"),p&&p.__esModule&&p||{"default":p}).WalkontableTable;r.prototype.canMergeRange=function(e){return!e.isSingle()},r.prototype.mergeRange=function(e){if(this.canMergeRange(e)){var t=e.getTopLeftCorner(),o=e.getBottomRightCorner(),n={};n.row=t.row,n.col=t.col,n.rowspan=o.row-t.row+1,n.colspan=o.col-t.col+1,this.mergedCellInfoCollection.setInfo(n)}},r.prototype.mergeOrUnmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.from.row,e.from.col);t?this.unmergeSelection(e.from):this.mergeSelection(e)},r.prototype.mergeSelection=function(e){this.mergeRange(e)},r.prototype.unmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.row,e.col);this.mergedCellInfoCollection.removeInfo(t.row,t.col)},r.prototype.applySpanProperties=function(e,t,o){var n=this.mergedCellInfoCollection.getInfo(t,o);n?n.row===t&&n.col===o?(e.setAttribute("rowspan",n.rowspan),e.setAttribute("colspan",n.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"))},r.prototype.modifyTransform=function(e,t,o){var n=function(e,t){return t.row>=e.row&&t.row<=e.row+e.rowspan-1},r=function(e,t){return t.col>=e.col&&t.col<=e.col+e.colspan-1},i=function(e){return new v(t.to.row+e.row,t.to.col+e.col)},s={row:o.row,col:o.col};if("modifyTransformStart"==e){this.lastDesiredCoords||(this.lastDesiredCoords=new v(null,null));for(var l,a=new v(t.highlight.row,t.highlight.col),u=this.mergedCellInfoCollection.getInfo(a.row,a.col),d=0,c=this.mergedCellInfoCollection.length;c>d;d++){var h=this.mergedCellInfoCollection[d];if(h=new v(h.row+h.rowspan-1,h.col+h.colspan-1),t.includes(h)){l=!0;break}}if(u){var f=new v(u.row,u.col),m=new v(u.row+u.rowspan-1,u.col+u.colspan-1),p=new b(f,f,m);p.includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new v(null,null)),s.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-a.row:s.row,s.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-a.col:s.col,o.row>0?s.row=u.row+u.rowspan-1-a.row+o.row:o.row<0&&(s.row=a.row-u.row+o.row),o.col>0?s.col=u.col+u.colspan-1-a.col+o.col:o.col<0&&(s.col=a.col-u.col+o.col)}var g=new v(t.highlight.row+s.row,t.highlight.col+s.col),w=this.mergedCellInfoCollection.getInfo(g.row,g.col);w&&(this.lastDesiredCoords=g,s={row:w.row-a.row,col:w.col-a.col})}else if("modifyTransformEnd"==e)for(var d=0,c=this.mergedCellInfoCollection.length;c>d;d++){var C=this.mergedCellInfoCollection[d],f=new v(C.row,C.col),m=new v(C.row+C.rowspan-1,C.col+C.colspan-1),y=new b(f,f,m),_=t.getBordersSharedWith(y);if(y.isEqual(t))t.setDirection("NW-SE");else if(_.length>0){var R=t.highlight.isEqual(y.from);_.indexOf("top")>-1?t.to.isSouthEastOf(y.from)&&R?t.setDirection("NW-SE"):t.to.isSouthWestOf(y.from)&&R&&t.setDirection("NE-SW"):_.indexOf("bottom")>-1&&(t.to.isNorthEastOf(y.from)&&R?t.setDirection("SW-NE"):t.to.isNorthWestOf(y.from)&&R&&t.setDirection("SE-NW"))}var g=i(s),M=n(C,g),S=r(C,g);t.includesRange(y)&&(y.includes(g)||M||S)&&(M&&(s.row<0?s.row-=C.rowspan-1:s.row>0&&(s.row+=C.rowspan-1)),S&&(s.col<0?s.col-=C.colspan-1:s.col>0&&(s.col+=C.colspan-1)))}0!==s.row&&(o.row=s.row),0!==s.col&&(o.col=s.col)},r.prototype.shiftCollection=function(e,t,o){var n=[0,0];switch(e){case"right":n[0]+=1;break;case"left":n[0]-=1;break;case"down":n[1]+=1;break;case"up":n[1]-=1}for(var r=0;r<this.mergedCellInfoCollection.length;r++){var i=this.mergedCellInfoCollection[r];"right"===e||"left"===e?t<=i.col&&(i.col+=n[0]):t<=i.row&&(i.row+=n[1])}};var y=function(){var e=this,t=e.getSettings().mergeCells;t&&(e.mergeCells||(e.mergeCells=new r(t)))},_=function(){var e=this;e.mergeCells&&(e.view.wt.wtTable.getCell=function(t){if(e.getSettings().mergeCells){var o=e.mergeCells.mergedCellInfoCollection.getInfo(t.row,t.col);o&&(t=o)}return C.prototype.getCell.call(this,t)})},R=function(){var e=this,t=e.getSettings().mergeCells;if(t)if(e.mergeCells){if(e.mergeCells.mergedCellInfoCollection=new n,Array.isArray(t))for(var o=0,i=t.length;i>o;o++)e.mergeCells.mergedCellInfoCollection.setInfo(t[o])}else e.mergeCells=new r(t);else e.mergeCells&&(e.mergeCells.mergedCellInfoCollection=new n)},M=function(e){if(this.mergeCells){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;t&&77===e.keyCode&&(this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render(),w(e))}},S=function(e){this.getSettings().mergeCells&&(e.items.push(g.plugins.ContextMenu.SEPARATOR),e.items.push({key:"mergeCells",name:function(){var e=this.getSelected(),t=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);return t?"Unmerge cells":"Merge cells"},callback:function(){this.mergeCells.mergeOrUnmergeSelection(this.getSelectedRange()),this.render()},disabled:function(){return!1}}))},E=function(e,t,o,n,r,i){this.mergeCells&&this.mergeCells.applySpanProperties(e,t,o)},O=function(e){return function(t){var o=this.getSettings().mergeCells;if(o){var n=this.getSelectedRange();if(this.mergeCells.modifyTransform(e,n,t),"modifyTransformEnd"===e){var r=this.countRows(),i=this.countCols();n.from.row<0?n.from.row=0:n.from.row>0&&n.from.row>=r&&(n.from.row=n.from-1),n.from.col<0?n.from.col=0:n.from.col>0&&n.from.col>=i&&(n.from.col=i-1)}}}},T=function(e){this.lastDesiredCoords=null;var t=this.getSettings().mergeCells;if(t){var o=this.getSelectedRange();o.highlight=new v(o.highlight.row,o.highlight.col),o.to=e;var n=!1;do{n=!1;for(var r=0,i=this.mergeCells.mergedCellInfoCollection.length;i>r;r++){var s=this.mergeCells.mergedCellInfoCollection[r],l=new v(s.row,s.col),a=new v(s.row+s.rowspan-1,s.col+s.colspan-1),u=new b(l,l,a);o.expandByRange(u)&&(e.row=o.to.row,e.col=o.to.col,n=!0)}}while(n)}},k=function(e,t){if(t&&"area"==t){var o=this.getSettings().mergeCells;if(o)for(var n=this.getSelectedRange(),r=new b(n.from,n.from,n.from),i=new b(n.to,n.to,n.to),s=0,l=this.mergeCells.mergedCellInfoCollection.length;l>s;s++){var a=this.mergeCells.mergedCellInfoCollection[s],u=new v(a.row,a.col),d=new v(a.row+a.rowspan-1,a.col+a.colspan-1),c=new b(u,u,d);r.expandByRange(c)&&(e[0]=r.from.row,e[1]=r.from.col),i.expandByRange(c)&&(e[2]=i.from.row,e[3]=i.from.col)}}},A=function(e,t,o){var n=this.getSettings().mergeCells;if(n){var r=this.mergeCells.mergedCellInfoCollection.getInfo(e,t);!r||r.row==e&&r.col==t||(o.copyable=!1)}},H=function(e){var t=this.getSettings().mergeCells;if(t)for(var o,n=this.countCols(),r=0;n>r;r++){if(o=this.mergeCells.mergedCellInfoCollection.getInfo(e.startRow,r),o&&o.row<e.startRow)return e.startRow=o.row,H.call(this,e);if(o=this.mergeCells.mergedCellInfoCollection.getInfo(e.endRow,r)){var i=o.row+o.rowspan-1;if(i>e.endRow)return e.endRow=i,H.call(this,e)}}},P=function(e){var t=this.getSettings().mergeCells;if(t)for(var o,n=this.countRows(),r=0;n>r;r++){if(o=this.mergeCells.mergedCellInfoCollection.getInfo(r,e.startColumn),o&&o.col<e.startColumn)return e.startColumn=o.col,P.call(this,e);if(o=this.mergeCells.mergedCellInfoCollection.getInfo(r,e.endColumn)){var i=o.col+o.colspan-1;if(i>e.endColumn)return e.endColumn=i,P.call(this,e)}}},x=function(e){if(e&&this.mergeCells){var t=this.mergeCells.mergedCellInfoCollection,o=this.getSelectedRange();
for(var n in t)if(o.highlight.row==t[n].row&&o.highlight.col==t[n].col&&o.to.row==t[n].row+t[n].rowspan-1&&o.to.col==t[n].col+t[n].colspan-1)return!1}return e};g.hooks.add("beforeInit",y),g.hooks.add("afterInit",_),g.hooks.add("afterUpdateSettings",R),g.hooks.add("beforeKeyDown",M),g.hooks.add("modifyTransformStart",O("modifyTransformStart")),g.hooks.add("modifyTransformEnd",O("modifyTransformEnd")),g.hooks.add("beforeSetRangeEnd",T),g.hooks.add("beforeDrawBorders",k),g.hooks.add("afterIsMultipleSelection",x),g.hooks.add("afterRenderer",E),g.hooks.add("afterContextMenuDefaultOptions",S),g.hooks.add("afterGetCellMeta",A),g.hooks.add("afterViewportRowCalculatorOverride",H),g.hooks.add("afterViewportColumnCalculatorOverride",P),g.hooks.add("afterAutofillApplyValues",i),g.hooks.add("afterCreateCol",s),g.hooks.add("afterRemoveCol",l),g.hooks.add("afterCreateRow",a),g.hooks.add("afterRemoveRow",u),g.MergeCells=r},{"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/cell/range":6,"3rdparty/walkontable/src/table":20,browser:23,"helpers/dom/event":47,plugins:61}],86:[function(e,t,o){"use strict";Object.defineProperties(o,{MultipleSelectionHandles:{get:function(){return w}},__esModule:{value:!0}});var n,r,i,s,l,a,u=((n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),d=u.getWindowScrollTop,c=u.hasClass,h=u.getWindowScrollLeft,f=(i=e("helpers/browser"),i&&i.__esModule&&i||{"default":i}).isMobileBrowser,m=(s=e("_base"),s&&s.__esModule&&s||{"default":s})["default"],p=(l=e("eventManager"),l&&l.__esModule&&l||{"default":l}).EventManager,g=(a=e("plugins"),a&&a.__esModule&&a||{"default":a}).registerPlugin,w=function(e){$traceurRuntime.superConstructor(v).call(this,e),this.dragged=[],this.eventManager=null,this.lastSetCell=null},v=w;$traceurRuntime.createClass(w,{isEnabled:function(){return f()},enablePlugin:function(){this.enabled||(this.eventManager||(this.eventManager=new p(this)),this.registerListeners(),$traceurRuntime.superGet(this,v.prototype,"enablePlugin").call(this))},registerListeners:function(){function e(e){if(1===t.dragged.length)return t.dragged.splice(0,t.dragged.length),!0;var o=t.dragged.indexOf(e);return-1==o?!1:void(0===o?t.dragged=t.dragged.slice(0,1):1==o&&(t.dragged=t.dragged.slice(-1)))}var t=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(e){var o;return c(e.target,"topLeftSelectionHandle-HitArea")?(o=t.hot.getSelectedRange(),t.dragged.push("topLeft"),t.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},e.preventDefault(),!1):c(e.target,"bottomRightSelectionHandle-HitArea")?(o=t.hot.getSelectedRange(),t.dragged.push("bottomRight"),t.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(o){return c(o.target,"topLeftSelectionHandle-HitArea")?(e.call(t,"topLeft"),t.touchStartRange=void 0,o.preventDefault(),!1):c(o.target,"bottomRightSelectionHandle-HitArea")?(e.call(t,"bottomRight"),t.touchStartRange=void 0,o.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(e){var o,n,r,i,s,l,a,u=d(),c=h();0!==t.dragged.length&&(o=document.elementFromPoint(e.touches[0].screenX-c,e.touches[0].screenY-u),o&&o!==t.lastSetCell&&("TD"!=o.nodeName&&"TH"!=o.nodeName||(n=t.hot.getCoords(o),-1==n.col&&(n.col=0),r=t.hot.getSelectedRange(),i=r.getWidth(),s=r.getHeight(),l=r.getDirection(),1==i&&1==s&&t.hot.selection.setRangeEnd(n),a=t.getCurrentRangeCoords(r,n,t.touchStartRange.direction,l,t.dragged[0]),null!==a.start&&t.hot.selection.setRangeStart(a.start),t.hot.selection.setRangeEnd(a.end),t.lastSetCell=o),e.preventDefault()))})},getCurrentRangeCoords:function(e,t,o,n,r){var i=e.getTopLeftCorner(),s=e.getBottomRightCorner(),l=e.getBottomLeftCorner(),a=e.getTopRightCorner(),u={start:null,end:null};switch(o){case"NE-SW":switch(n){case"NE-SW":case"NW-SE":u="topLeft"==r?{start:new WalkontableCellCoords(t.row,e.highlight.col),end:new WalkontableCellCoords(l.row,t.col)}:{start:new WalkontableCellCoords(e.highlight.row,t.col),end:new WalkontableCellCoords(t.row,i.col)};break;case"SE-NW":"bottomRight"==r&&(u={start:new WalkontableCellCoords(s.row,t.col),end:new WalkontableCellCoords(t.row,i.col)})}break;case"NW-SE":switch(n){case"NE-SW":"topLeft"==r?u={start:t,end:l}:u.end=t;break;case"NW-SE":"topLeft"==r?u={start:t,end:s}:u.end=t;break;case"SE-NW":"topLeft"==r?u={start:t,end:i}:u.end=t;break;case"SW-NE":"topLeft"==r?u={start:t,end:a}:u.end=t}break;case"SW-NE":switch(n){case"NW-SE":u="bottomRight"==r?{start:new WalkontableCellCoords(t.row,i.col),end:new WalkontableCellCoords(l.row,t.col)}:{start:new WalkontableCellCoords(i.row,t.col),end:new WalkontableCellCoords(t.row,s.col)};break;case"SW-NE":u="topLeft"==r?{start:new WalkontableCellCoords(e.highlight.row,t.col),end:new WalkontableCellCoords(t.row,s.col)}:{start:new WalkontableCellCoords(t.row,i.col),end:new WalkontableCellCoords(i.row,t.col)};break;case"SE-NW":"bottomRight"==r?u={start:new WalkontableCellCoords(t.row,a.col),end:new WalkontableCellCoords(i.row,t.col)}:"topLeft"==r&&(u={start:l,end:t})}break;case"SE-NW":switch(n){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==r&&(u.end=t);break;case"SE-NW":"topLeft"==r?u.end=t:u={start:t,end:i}}}return u},isDragged:function(){return this.dragged.length>0}},{},m),g("multipleSelectionHandles",w)},{_base:62,browser:23,eventManager:41,"helpers/browser":43,"helpers/dom/element":46,plugins:61}],87:[function(e,t,o){"use strict";Object.defineProperties(o,{DataObserver:{get:function(){return c}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("jsonpatch"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("../../mixins/localHooks"),r&&r.__esModule&&r||{"default":r}).localHooks,u=(i=e("../../helpers/object"),i&&i.__esModule&&i||{"default":i}).mixin,d=(s=e("utils"),s&&s.__esModule&&s||{"default":s}).cleanPatches,c=function(e){this.observedData=null,this.observer=null,this.paused=!1,this.setObservedData(e)};$traceurRuntime.createClass(c,{setObservedData:function(e){var t=this;this.observer&&l.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=l.observe(this.observedData,function(e){return t.onChange(e)})},isPaused:function(){return this.paused},pause:function(){this.paused=!0},resume:function(){this.paused=!1},onChange:function(e){this.runLocalHooks("change",d(e))},destroy:function(){l.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}},{}),u(c,a)},{"../../helpers/object":52,"../../mixins/localHooks":57,jsonpatch:"jsonpatch",utils:89}],88:[function(e,t,o){"use strict";Object.defineProperties(o,{ObserveChanges:{get:function(){return m}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],d=(r=e("_base"),r&&r.__esModule&&r||{"default":r})["default"],c=((i=e("jsonpatch"),i&&i.__esModule&&i||{"default":i})["default"],(s=e("dataObserver"),s&&s.__esModule&&s||{"default":s}).DataObserver),h=(l=e("helpers/array"),l&&l.__esModule&&l||{"default":l}).arrayEach,f=(a=e("plugins"),a&&a.__esModule&&a||{"default":a}).registerPlugin;u.hooks.register("afterChangesObserved");var m=function(e){$traceurRuntime.superConstructor(p).call(this,e),this.observer=null},p=m;$traceurRuntime.createClass(m,{isEnabled:function(){return this.hot.getSettings().observeChanges},enablePlugin:function(){var e=this;this.enabled||(this.observer||(this.observer=new c(this.hot.getSourceData()),this._exposePublicApi()),this.observer.addLocalHook("change",function(t){return e.onDataChange(t)}),this.addHook("afterCreateRow",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveRow",function(){return e.onAfterTableAlter()}),this.addHook("afterCreateCol",function(){return e.onAfterTableAlter()}),this.addHook("afterRemoveCol",function(){return e.onAfterTableAlter()}),this.addHook("afterChange",function(t,o){return e.onAfterTableAlter(o)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),$traceurRuntime.superGet(this,p.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),$traceurRuntime.superGet(this,p.prototype,"disablePlugin").call(this)},onDataChange:function(e){var t=this;if(!this.observer.isPaused()){var o={add:function(e){isNaN(e.col)?t.hot.runHooks("afterCreateRow",e.row):t.hot.runHooks("afterCreateCol",e.col)},remove:function(e){isNaN(e.col)?t.hot.runHooks("afterRemoveRow",e.row,1):t.hot.runHooks("afterRemoveCol",e.col,1)},replace:function(e){t.hot.runHooks("afterChange",[e.row,e.col,null,e.value],"external")}};h(e,function(e){o[e.op]&&o[e.op](e)}),this.hot.render()}this.hot.runHooks("afterChangesObserved")},onAfterTableAlter:function(e){var t=this;"loadData"!==e&&(this.observer.pause(),this.hot.addHookOnce("afterChangesObserved",function(){return t.observer.resume()}))},onAfterLoadData:function(e){e||this.observer.setObservedData(this.hot.getSourceData())},destroy:function(){this.observer&&(this.observer.destroy(),this._deletePublicApi()),$traceurRuntime.superGet(this,p.prototype,"destroy").call(this)},_exposePublicApi:function(){var e=this,t=this.hot;t.pauseObservingChanges=function(){return e.observer.pause()},t.resumeObservingChanges=function(){return e.observer.resume()},t.isPausedObservingChanges=function(){return e.observer.isPaused()}},_deletePublicApi:function(){var e=this.hot;delete e.pauseObservingChanges,delete e.resumeObservingChanges,delete e.isPausedObservingChanges}},{},d),f("observeChanges",m)},{_base:62,browser:23,dataObserver:87,"helpers/array":42,jsonpatch:"jsonpatch",plugins:61}],89:[function(e,t,o){"use strict";function n(e){var t=[];return e=l(e,function(e){return/[\/]length/gi.test(e.path)?!1:!!r(e.path)}),e=a(e,function(e){var t=r(e.path);return e.row=t.row,e.col=t.col,e}),e=l(e,function(e){if(-1!==["add","remove"].indexOf(e.op)&&!isNaN(e.col)){if(-1!==t.indexOf(e.col))return!1;t.push(e.col)}return!0}),t.length=0,e}function r(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var o=t,n=o[1],r=o[2];return{row:parseInt(n,10),col:/^\d*$/.test(r)?parseInt(r,10):r}}Object.defineProperties(o,{cleanPatches:{get:function(){return n}},parsePath:{get:function(){return r}},__esModule:{value:!0}});var i,s=(i=e("../../helpers/array"),i&&i.__esModule&&i||{"default":i}),l=s.arrayFilter,a=s.arrayMap},{"../../helpers/array":42}],90:[function(e,t,o){"use strict";function n(e){var t,o=function(){window.localStorage[e+"__persistentStateKeys"]=JSON.stringify(t)},n=function(){var o=window.localStorage[e+"__persistentStateKeys"],n="string"==typeof o?JSON.parse(o):void 0;t=n?n:[]},r=function(){t=[],o()};n(),this.saveValue=function(n,r){window.localStorage[e+"_"+n]=JSON.stringify(r),-1==t.indexOf(n)&&(t.push(n),o())},this.loadValue=function(t,o){t="undefined"==typeof t?o:t;var n=window.localStorage[e+"_"+t];return"undefined"==typeof n?void 0:JSON.parse(n)},this.reset=function(t){window.localStorage.removeItem(e+"_"+t)},this.resetAll=function(){for(var o=0;o<t.length;o++)window.localStorage.removeItem(e+"_"+t[o]);r()}}function r(){function e(){var e=this;for(var t in r)r.hasOwnProperty(t)&&e.addHook(t,r[t])}function t(){var e=this;for(var t in r)r.hasOwnProperty(t)&&e.removeHook(t,r[t])}var o=this;this.init=function(){var r=this,i=r.getSettings().persistentState;return o.enabled=!!i,o.enabled?(r.storage||(r.storage=new n(r.rootElement.id)),r.resetState=o.resetValue,void e.call(r)):void t.call(r)},this.saveValue=function(e,t){var o=this;o.storage.saveValue(e,t)},this.loadValue=function(e,t){var o=this;t.value=o.storage.loadValue(e)},this.resetValue=function(e){var t=this;"undefined"==typeof e?t.storage.resetAll():t.storage.reset(e)};var r={persistentStateSave:o.saveValue,persistentStateLoad:o.loadValue,persistentStateReset:o.resetValue};for(var i in r)r.hasOwnProperty(i)&&l.hooks.register(i)}Object.defineProperties(o,{HandsontablePersistentState:{get:function(){return r}},__esModule:{value:!0}});var i,s,l=(i=e("browser"),i&&i.__esModule&&i||{"default":i})["default"],a=((s=e("plugins"),s&&s.__esModule&&s||{"default":s}).registerPlugin,new r);l.hooks.add("beforeInit",a.init),l.hooks.add("afterUpdateSettings",a.init)},{browser:23,plugins:61}],91:[function(e,t,o){"use strict";function n(){var e=this,t=!!e.getSettings().search;t?e.search=new l.Search(e):delete e.search}var r,i,s,l=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],a=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),u=a.addClass,d=a.removeClass,c=(s=e("renderers"),s&&s.__esModule&&s||{"default":s}),h=c.registerRenderer,f=c.getRenderer;l.Search=function(e){this.query=function(t,o,n){var r=e.countRows(),i=e.countCols(),s=[];o||(o=l.Search.global.getDefaultCallback()),n||(n=l.Search.global.getDefaultQueryMethod());for(var a=0;r>a;a++)for(var u=0;i>u;u++){var d=e.getDataAtCell(a,u),c=e.getCellMeta(a,u),h=c.search.callback||o,f=c.search.queryMethod||n,m=f(t,d);if(m){var p={row:a,col:u,data:d};s.push(p)}h&&h(e,a,u,d,m)}return s}},l.Search.DEFAULT_CALLBACK=function(e,t,o,n,r){e.getCellMeta(t,o).isSearchResult=r},l.Search.DEFAULT_QUERY_METHOD=function(e,t){return"undefined"!=typeof e&&null!=e&&e.toLowerCase&&0!==e.length?"undefined"==typeof t||null==t?!1:-1!=t.toString().toLowerCase().indexOf(e.toLowerCase()):!1},l.Search.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",l.Search.global=function(){var e=l.Search.DEFAULT_CALLBACK,t=l.Search.DEFAULT_QUERY_METHOD,o=l.Search.DEFAULT_SEARCH_RESULT_CLASS;return{getDefaultCallback:function(){return e},setDefaultCallback:function(t){e=t},getDefaultQueryMethod:function(){return t},setDefaultQueryMethod:function(e){t=e},getDefaultSearchResultClass:function(){return o},setDefaultSearchResultClass:function(e){o=e}}}(),l.SearchCellDecorator=function(e,t,o,n,r,i,s){var a=null!==s.search&&"object"==typeof s.search&&s.search.searchResultClass||l.Search.global.getDefaultSearchResultClass();s.isSearchResult?u(t,a):d(t,a)};var m=f("base");h("base",function(e,t,o,n,r,i,s){m.apply(this,arguments),l.SearchCellDecorator.apply(this,arguments)}),l.hooks.add("afterInit",n),l.hooks.add("afterUpdateSettings",n)},{browser:23,"helpers/dom/element":46,renderers:94}],92:[function(e,t,o){"use strict";Object.defineProperties(o,{TouchScroll:{get:function(){return f}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),u=a.addClass,d=a.removeClass,c=(i=e("_base"),i&&i.__esModule&&i||{"default":i})["default"],h=(s=e("plugins"),s&&s.__esModule&&s||{"default":s}).registerPlugin,f=function(e){var t=this;$traceurRuntime.superConstructor(m).call(this,e),this.hot.addHook("afterInit",function(){return t.afterInit()}),this.hot.addHook("afterUpdateSettings",function(){return t.onAfterUpdateSettings()}),this.scrollbars=[],this.clones=[]},m=f;$traceurRuntime.createClass(f,{afterInit:function(){this.registerEvents(),this.onAfterUpdateSettings()},onAfterUpdateSettings:function(){var e=this;this.hot.addHookOnce("afterRender",function(){var t=e.hot.view.wt.wtOverlays;e.scrollbars=[],e.scrollbars.push(t.topOverlay),t.bottomOverlay.clone&&e.scrollbars.push(t.bottomOverlay),e.scrollbars.push(t.leftOverlay),t.topLeftCornerOverlay&&e.scrollbars.push(t.topLeftCornerOverlay),t.bottomLeftCornerOverlay&&t.bottomLeftCornerOverlay.clone&&e.scrollbars.push(t.bottomLeftCornerOverlay),e.clones=[],t.topOverlay.needFullRender&&e.clones.push(t.topOverlay.clone.wtTable.holder.parentNode),t.bottomOverlay.needFullRender&&e.clones.push(t.bottomOverlay.clone.wtTable.holder.parentNode),t.leftOverlay.needFullRender&&e.clones.push(t.leftOverlay.clone.wtTable.holder.parentNode),t.topLeftCornerOverlay&&e.clones.push(t.topLeftCornerOverlay.clone.wtTable.holder.parentNode),t.bottomLeftCornerOverlay&&t.bottomLeftCornerOverlay.clone&&e.clones.push(t.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode)})},registerEvents:function(){var e=this;this.hot.addHook("beforeTouchScroll",function(){return e.onBeforeTouchScroll()}),this.hot.addHook("afterMomentumScroll",function(){return e.onAfterMomentumScroll()})},onBeforeTouchScroll:function(){l.freezeOverlays=!0;for(var e=0,t=this.clones.length;t>e;e++)u(this.clones[e],"hide-tween")},onAfterMomentumScroll:function(){l.freezeOverlays=!1;for(var e=this,t=0,o=this.clones.length;o>t;t++)d(this.clones[t],"hide-tween");for(var n=0,r=this.clones.length;r>n;n++)u(this.clones[n],"show-tween");setTimeout(function(){for(var t=0,o=e.clones.length;o>t;t++)d(e.clones[t],"show-tween")},400);for(var i=0,s=this.scrollbars.length;s>i;i++)this.scrollbars[i].refresh(),this.scrollbars[i].resetFixedPosition();this.hot.view.wt.wtOverlays.syncScrollWithMaster()}},{},c),h("touchScroll",f)},{_base:62,browser:23,"helpers/dom/element":46,plugins:61}],93:[function(e,t,o){"use strict";function n(){var e=this,t="undefined"==typeof e.getSettings().undo||e.getSettings().undo;t?e.undoRedo||(e.undoRedo=new f.UndoRedo(e),s(e),e.addHook("beforeKeyDown",r),e.addHook("afterChange",i)):e.undoRedo&&(delete e.undoRedo,l(e),e.removeHook("beforeKeyDown",r),e.removeHook("afterChange",i))}function r(e){var t=this,o=(e.ctrlKey||e.metaKey)&&!e.altKey;o&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(t.undoRedo.redo(),b(e)):90===e.keyCode&&(t.undoRedo.undo(),b(e)))}function i(e,t){var o=this;return"loadData"==t?o.undoRedo.clear():void 0}function s(e){e.undo=function(){return e.undoRedo.undo()},e.redo=function(){return e.undoRedo.redo()},e.isUndoAvailable=function(){return e.undoRedo.isUndoAvailable()},e.isRedoAvailable=function(){return e.undoRedo.isRedoAvailable()},e.clearUndo=function(){return e.undoRedo.clear()}}function l(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}var a,u,d,c,h,f=(a=e("browser"),a&&a.__esModule&&a||{"default":a})["default"],m=(u=e("helpers/array"),u&&u.__esModule&&u||{"default":u}).arrayMap,p=(d=e("helpers/number"),d&&d.__esModule&&d||{"default":d}).rangeEach,g=(c=e("helpers/object"),c&&c.__esModule&&c||{"default":c}),w=g.inherit,v=g.deepClone,b=(h=e("helpers/dom/event"),h&&h.__esModule&&h||{"default":h}).stopImmediatePropagation;f.UndoRedo=function(e){var t=this;this.instance=e,this.doneActions=[],this.undoneActions=[],this.ignoreNewActions=!1,e.addHook("afterChange",function(e,o){if(e){var n=new f.UndoRedo.ChangeAction(e);t.done(n)}}),e.addHook("afterCreateRow",function(e,o,n){if(!n){var r=new f.UndoRedo.CreateRowAction(e,o);t.done(r)}}),e.addHook("beforeRemoveRow",function(e,o){var n=t.instance.getSourceData();e=(n.length+e)%n.length;var r=n.slice(e,e+o),i=new f.UndoRedo.RemoveRowAction(e,r);t.done(i)}),e.addHook("afterCreateCol",function(e,o,n){if(!n){var r=new f.UndoRedo.CreateColumnAction(e,o);t.done(r)}}),e.addHook("beforeRemoveCol",function(o,n){var r=t.instance.getData();o=(t.instance.countCols()+o)%t.instance.countCols();var i=[],s=[],l=[];p(0,r.length-1,function(e){i[e]=r[e].slice(o,o+n)}),p(0,n-1,function(t){l.push(e.runHooks("modifyCol",o+t))}),Array.isArray(e.getSettings().colHeaders)&&p(0,n-1,function(t){s.push(e.getSettings().colHeaders[e.runHooks("modifyCol",o+t)]||null)});var a=t.instance.getPlugin("manualColumnMove"),u=new f.UndoRedo.RemoveColumnAction(l,i,s,a?a.columnPositions:[]);t.done(u)}),e.addHook("beforeCellAlignment",function(e,o,n,r){var i=new f.UndoRedo.CellAlignmentAction(e,o,n,r);t.done(i)}),e.addHook("beforeFilter",function(e){t.done(new f.UndoRedo.FiltersAction(e))})},f.UndoRedo.prototype.done=function(e){this.ignoreNewActions||(this.doneActions.push(e),this.undoneActions.length=0)},f.UndoRedo.prototype.undo=function(){if(this.isUndoAvailable()){var e=this.doneActions.pop();this.ignoreNewActions=!0;var t=this;e.undo(this.instance,function(){t.ignoreNewActions=!1,t.undoneActions.push(e)})}},f.UndoRedo.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop();this.ignoreNewActions=!0;var t=this;e.redo(this.instance,function(){t.ignoreNewActions=!1,t.doneActions.push(e)})}},f.UndoRedo.prototype.isUndoAvailable=function(){return this.doneActions.length>0},f.UndoRedo.prototype.isRedoAvailable=function(){return this.undoneActions.length>0},f.UndoRedo.prototype.clear=function(){this.doneActions.length=0,this.undoneActions.length=0},f.UndoRedo.Action=function(){},f.UndoRedo.Action.prototype.undo=function(){},f.UndoRedo.Action.prototype.redo=function(){},f.UndoRedo.ChangeAction=function(e){this.changes=e},w(f.UndoRedo.ChangeAction,f.UndoRedo.Action),f.UndoRedo.ChangeAction.prototype.undo=function(e,t){for(var o=v(this.changes),n=e.countEmptyRows(!0),r=e.countEmptyCols(!0),i=0,s=o.length;s>i;i++)o[i].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(o,null,null,"undo");for(var i=0,s=o.length;s>i;i++)e.getSettings().minSpareRows&&o[i][0]+1+e.getSettings().minSpareRows===e.countRows()&&n==e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(o[i][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&o[i][1]+1+e.getSettings().minSpareCols===e.countCols()&&r==e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(o[i][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},f.UndoRedo.ChangeAction.prototype.redo=function(e,t){for(var o=v(this.changes),n=0,r=o.length;r>n;n++)o[n].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(o,null,null,"redo")},f.UndoRedo.CreateRowAction=function(e,t){this.index=e,this.amount=t},w(f.UndoRedo.CreateRowAction,f.UndoRedo.Action),f.UndoRedo.CreateRowAction.prototype.undo=function(e,t){var o=e.countRows(),n=e.getSettings().minSpareRows;this.index>=o&&this.index-n<o&&(this.index-=n),e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.amount)},f.UndoRedo.CreateRowAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateRow",t),e.alter("insert_row",this.index+1,this.amount)},f.UndoRedo.RemoveRowAction=function(e,t){this.index=e,this.data=t},w(f.UndoRedo.RemoveRowAction,f.UndoRedo.Action),f.UndoRedo.RemoveRowAction.prototype.undo=function(e,t){var o=[this.index,0];Array.prototype.push.apply(o,this.data),Array.prototype.splice.apply(e.getSourceData(),o),e.addHookOnce("afterRender",t),e.render()},f.UndoRedo.RemoveRowAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveRow",t),e.alter("remove_row",this.index,this.data.length)},f.UndoRedo.CreateColumnAction=function(e,t){this.index=e,this.amount=t},w(f.UndoRedo.CreateColumnAction,f.UndoRedo.Action),f.UndoRedo.CreateColumnAction.prototype.undo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",this.index,this.amount)},f.UndoRedo.CreateColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterCreateCol",t),e.alter("insert_col",this.index+1,this.amount)},f.UndoRedo.CellAlignmentAction=function(e,t,o,n){this.stateBefore=e,this.range=t,this.type=o,this.alignment=n},f.UndoRedo.CellAlignmentAction.prototype.undo=function(e,t){if(e.getPlugin("contextMenu").isEnabled()){for(var o=this.range.from.row;o<=this.range.to.row;o++)for(var n=this.range.from.col;n<=this.range.to.col;n++)e.setCellMeta(o,n,"className",this.stateBefore[o][n]||" htLeft");e.addHookOnce("afterRender",t),e.render()}},f.UndoRedo.CellAlignmentAction.prototype.redo=function(e,t){e.getPlugin("contextMenu").isEnabled()&&(e.selectCell(this.range.from.row,this.range.from.col,this.range.to.row,this.range.to.col),e.getPlugin("contextMenu").executeCommand("alignment:"+this.alignment.replace("ht","").toLowerCase()),e.addHookOnce("afterRender",t),e.render())},f.UndoRedo.RemoveColumnAction=function(e,t,o,n){this.indexes=e,this.data=t,this.amount=this.data[0].length,this.headers=o,this.columnPositions=n.slice(0)},w(f.UndoRedo.RemoveColumnAction,f.UndoRedo.Action),f.UndoRedo.RemoveColumnAction.prototype.undo=function(e,t){var o,n=this,r=this.indexes.slice(0).sort(),i=function(e,t,o){return o[n.indexes.indexOf(r[t])]},s=[];p(0,this.data.length-1,function(e){s[e]=m(n.data[e],i)});var l=[];l=m(this.headers,i),p(0,this.data.length-1,function(t){o=e.getSourceDataAtRow(t),p(0,r.length-1,function(e){o.splice(r[e],0,s[t][e])})}),"undefined"!=typeof this.headers&&p(0,l.length-1,function(t){e.getSettings().colHeaders.splice(r[t],0,l[t])}),e.getPlugin("manualColumnMove")&&(e.getPlugin("manualColumnMove").columnPositions=this.columnPositions),e.addHookOnce("afterRender",t),e.render()},f.UndoRedo.RemoveColumnAction.prototype.redo=function(e,t){e.addHookOnce("afterRemoveCol",t),e.alter("remove_col",e.runHooks("unmodifyCol",this.indexes[0]),this.amount)},f.UndoRedo.FiltersAction=function(e){this.formulaStacks=e},w(f.UndoRedo.FiltersAction,f.UndoRedo.Action),f.UndoRedo.FiltersAction.prototype.undo=function(e,t){var o=e.getPlugin("filters");e.addHookOnce("afterRender",t),o.formulaCollection.importAllFormulas(this.formulaStacks.slice(0,this.formulaStacks.length-1)),o.filter()},f.UndoRedo.FiltersAction.prototype.redo=function(e,t){var o=e.getPlugin("filters");e.addHookOnce("afterRender",t),o.formulaCollection.importAllFormulas(this.formulaStacks),o.filter()},f.hooks.add("afterInit",n),f.hooks.add("afterUpdateSettings",n)},{browser:23,"helpers/array":42,"helpers/dom/event":47,"helpers/number":51,"helpers/object":52}],94:[function(e,t,o){"use strict";function n(e,t){var o;d[e]=t,o=u(e)+"Renderer",a.renderers[o]=t,a[o]=t,"base"===e&&(a.renderers.cellDecorator=t)}function r(e){if("function"==typeof e)return e;if("string"!=typeof e)throw Error('Only strings and functions can be passed as "renderer" parameter');if(!(e in d))throw Error('No editor registered under name "'+e+'"');return d[e]}function i(e){return e in d}Object.defineProperties(o,{registerRenderer:{get:function(){return n}},getRenderer:{get:function(){return r}},hasRenderer:{get:function(){return i}},__esModule:{value:!0}});var s,l,a=(s=e("browser"),s&&s.__esModule&&s||{"default":s})["default"],u=(l=e("helpers/string"),l&&l.__esModule&&l||{"default":l}).toUpperCaseFirst,d={};a.renderers=a.renderers||{},a.renderers.registerRenderer=n,a.renderers.getRenderer=r},{browser:23,"helpers/string":54}],95:[function(e,t,o){"use strict";function n(e,t,o,n,r,i,s){s.className&&(t.className?t.className=t.className+" "+s.className:t.className=s.className),s.readOnly&&l(t,s.readOnlyCellClassName),s.valid===!1&&s.invalidCellClassName?l(t,s.invalidCellClassName):a(t,s.invalidCellClassName),s.wordWrap===!1&&s.noWordWrapClassName&&l(t,s.noWordWrapClassName),!i&&s.placeholder&&l(t,s.placeholderCellClassName)}Object.defineProperties(o,{cellDecorator:{get:function(){return n}},__esModule:{value:!0}});var r,i,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),l=s.addClass,a=s.removeClass,u=(i=e("renderers"),i&&i.__esModule&&i||{"default":i}).registerRenderer;u("base",n)},{"helpers/dom/element":46,renderers:94}],96:[function(e,t,o){"use strict";function n(e,t,o,n,r,i,s){var l=(g.cloneNode(!0),w.cloneNode(!0));if(f("text")(e,t,o,n,r,i,s),t.appendChild(l),u(t,"htAutocomplete"),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),!e.acArrowListener){var a=c(e);e.acArrowListener=function(r){d(r.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new p(o,n),t)},a.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){a.destroy()})}}Object.defineProperties(o,{autocompleteRenderer:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l,a=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),u=a.addClass,d=a.hasClass,c=(a.empty,(i=e("eventManager"),i&&i.__esModule&&i||{"default":i}).eventManager),h=(s=e("renderers"),s&&s.__esModule&&s||{"default":s}),f=h.getRenderer,m=h.registerRenderer,p=(l=e("3rdparty/walkontable/src/cell/coords"),l&&l.__esModule&&l||{"default":l}).WalkontableCellCoords,g=document.createElement("DIV");g.className="htAutocompleteWrapper";var w=document.createElement("DIV");w.className="htAutocompleteArrow",w.appendChild(document.createTextNode(String.fromCharCode(9660)));m("autocomplete",n)},{"3rdparty/walkontable/src/cell/coords":5,eventManager:41,"helpers/dom/element":46,renderers:94}],97:[function(e,t,o){"use strict";function n(e,t,o,n,u,d,c){function h(e){var t=[S.SPACE,S.ENTER,S.DELETE,S.BACKSPACE];-1===t.indexOf(e.keyCode)||T(e)||p(function(){O(e),e.preventDefault()}),e.keyCode!==S.SPACE&&e.keyCode!==S.ENTER||f(),e.keyCode!==S.DELETE&&e.keyCode!==S.BACKSPACE||f(!1)}function f(){var e=void 0!==arguments[0]?arguments[0]:null;p(function(t){for(var o=0,n=t.length;n>o;o++){if(b(t[o],H)&&null===e)return;m(t[o],e)}})}function m(e){var t=void 0!==arguments[1]?arguments[1]:null;null===t?e.checked=!e.checked:e.checked=t,g.fireEvent(e,"change")}function p(t){var o=e.getSelectedRange();if(o)for(var n=o.getTopLeftCorner(),r=o.getBottomRightCorner(),i=n.row;i<=r.row;i++)for(var s=n.col;s<=r.col;s++){var l=e.getCell(i,s),a=e.getCellMeta(i,s),u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!a.readOnly&&t(u)}}R("base").apply(this,arguments);var g=new y(e),_=r(),M=c.label,E=!1;if("undefined"==typeof c.checkedTemplate&&(c.checkedTemplate=!0),"undefined"==typeof c.uncheckedTemplate&&(c.uncheckedTemplate=!1),w(t),d===c.checkedTemplate||C(d,c.checkedTemplate)?_.checked=!0:d===c.uncheckedTemplate||C(d,c.uncheckedTemplate)?_.checked=!1:null===d?v(_,"noValue"):(_.style.display="none",v(_,H),E=!0),_.setAttribute("data-row",o),_.setAttribute("data-col",n),!E&&M){var P="";M.value?P="function"==typeof M.value?M.value.call(this,o,n,u,d):M.value:M.property&&(P=e.getDataAtRowProp(o,M.property));var x=i(P);"before"===M.position?x.appendChild(_):x.insertBefore(_,x.firstChild),_=x}t.appendChild(_),E&&t.appendChild(document.createTextNode("#bad-value#")),A.has(e)||(c.readOnly?g.addEventListener(e.rootElement,"click",s):(g.addEventListener(e.rootElement,"mouseup",function(t){return l(t,e)}),g.addEventListener(e.rootElement,"change",function(t){return a(t,e)})),A.set(e,!0)),k.has(e)||(k.set(e,!0),e.addHook("beforeKeyDown",h))}function r(){var e=document.createElement("input");return e.className="htCheckboxRendererInput",e.type="checkbox",e.setAttribute("autocomplete","off"),e.setAttribute("tabindex","-1"),e.cloneNode(!1)}function i(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}function s(e){u(e.target)&&e.preventDefault()}function l(e,t){u(e.target)&&setTimeout(t.listen,10)}function a(e,t){if(!u(e.target))return!1;var o=parseInt(e.target.getAttribute("data-row"),10),n=parseInt(e.target.getAttribute("data-col"),10),r=t.getCellMeta(o,n);t.setDataAtCell(o,n,e.target.checked?r.checkedTemplate||!0:r.uncheckedTemplate||!1)}function u(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}Object.defineProperties(o,{checkboxRenderer:{get:function(){return n}},__esModule:{value:!0}});var d,c,h,f,m,p,g=(d=e("helpers/dom/element"),d&&d.__esModule&&d||{"default":d}),w=g.empty,v=g.addClass,b=g.hasClass,C=(c=e("helpers/string"),c&&c.__esModule&&c||{"default":c}).equalsIgnoreCase,y=(h=e("eventManager"),h&&h.__esModule&&h||{"default":h}).EventManager,_=(f=e("renderers"),f&&f.__esModule&&f||{"default":f}),R=_.getRenderer,M=_.registerRenderer,S=(m=e("helpers/unicode"),m&&m.__esModule&&m||{"default":m}).KEY_CODES,E=(p=e("helpers/dom/event"),p&&p.__esModule&&p||{"default":p}),O=(E.stopPropagation,E.stopImmediatePropagation),T=E.isImmediatePropagationStopped,k=new WeakMap,A=new WeakMap,H="htBadValue";M("checkbox",n)},{eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47,"helpers/string":54,"helpers/unicode":55,renderers:94}],98:[function(e,t,o){"use strict";function n(e,t,o,n,r,i,l){a("base").apply(this,arguments),null!==i&&void 0!==i||(i=""),s(t,i)}Object.defineProperties(o,{htmlRenderer:{get:function(){return n}},__esModule:{value:!0}});var r,i,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}).fastInnerHTML,l=(i=e("renderers"),
i&&i.__esModule&&i||{"default":i}),a=l.getRenderer,u=l.registerRenderer;u("html",n)},{"helpers/dom/element":46,renderers:94}],99:[function(e,t,o){"use strict";function n(e,t,o,n,r,i,s){if(c(i)){"undefined"!=typeof s.language&&l.language(s.language),i=l(i).format(s.format||"0");var a=s.className||"",d=a.length?a.split(" "):[];d.indexOf("htLeft")<0&&d.indexOf("htCenter")<0&&d.indexOf("htRight")<0&&d.indexOf("htJustify")<0&&d.push("htRight"),d.indexOf("htNumeric")<0&&d.push("htNumeric"),s.className=d.join(" ")}u("text")(e,t,o,n,r,i,s)}Object.defineProperties(o,{numericRenderer:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l=(r=e("numeral"),r&&r.__esModule&&r||{"default":r})["default"],a=(i=e("renderers"),i&&i.__esModule&&i||{"default":i}),u=a.getRenderer,d=a.registerRenderer,c=(s=e("helpers/number"),s&&s.__esModule&&s||{"default":s}).isNumeric;d("numeric",n)},{"helpers/number":51,numeral:"numeral",renderers:94}],100:[function(e,t,o){"use strict";function n(e,t,o,n,r,i,l){a("text").apply(this,arguments),i=t.innerHTML;var u,d=l.hashLength||i.length,c=l.hashSymbol||"*";for(u="";u.split(c).length-1<d;u+=c);s(t,u)}Object.defineProperties(o,{passwordRenderer:{get:function(){return n}},__esModule:{value:!0}});var r,i,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}).fastInnerHTML,l=(i=e("renderers"),i&&i.__esModule&&i||{"default":i}),a=l.getRenderer,u=l.registerRenderer;u("password",n)},{"helpers/dom/element":46,renderers:94}],101:[function(e,t,o){"use strict";function n(e,t,o,n,r,i,s){h("base").apply(this,arguments),!i&&s.placeholder&&(i=s.placeholder);var l=d(i);if(e.getSettings().trimWhitespace||(l=l.replace(/ /g,String.fromCharCode(160))),s.rendererTemplate){a(t);var c=document.createElement("TEMPLATE");c.setAttribute("bind","{{}}"),c.innerHTML=s.rendererTemplate,HTMLTemplateElement.decorate(c),c.model=e.getSourceDataAtRow(o),t.appendChild(c)}else u(t,l)}Object.defineProperties(o,{textRenderer:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),a=l.empty,u=l.fastInnerText,d=(i=e("helpers/mixed"),i&&i.__esModule&&i||{"default":i}).stringify,c=(s=e("renderers"),s&&s.__esModule&&s||{"default":s}),h=c.getRenderer,f=c.registerRenderer;f("text",n)},{"helpers/dom/element":46,"helpers/mixed":50,renderers:94}],102:[function(e,t,o){!function(e){"use strict";function t(e){return{configurable:!0,enumerable:!1,value:e,writable:!0}}function o(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++P+"$__"}function n(e){return I[e]}function r(){var e=o();return I[e]=!0,e}function i(e){return"object"==typeof e&&e instanceof a}function s(e){return i(e)?"symbol":typeof e}function l(e){var t=new a(e);if(!(this instanceof l))return t;throw new TypeError("Symbol cannot be new'ed")}function a(e){var t=o();S(this,N,{value:this}),S(this,x,{value:t}),S(this,L,{value:e}),d(this),D[t]=this}function u(e){var t=e[W];return t&&t.self===e?t:A(e)?(B.hash.value=j++,B.self.value=e,F.value=R(null,B),S(e,W,F),F.value):void 0}function d(e){return u(e),E.apply(this,arguments)}function c(e){return D[e]||I[e]}function h(e){return i(e)?e[x]:e}function f(e){for(var t=[],o=T(e),n=0;n<o.length;n++){var r=D[o[n]];r&&t.push(r)}return t}function m(t){return e.traceur&&e.traceur.options[t]}function p(e){for(var t=1;t<arguments.length;t++)for(var o=T(arguments[t]),n=0;n<o.length;n++){var r=o[n];c(r)||!function(t,o){S(e,o,{get:function(){return t[o]},enumerable:!0})}(arguments[t],o[n])}return e}function g(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function w(e){if(null==e)throw _();return y(e)}function v(e){if(null==e)throw new TypeError("Value cannot be converted to an Object");return e}function b(e,t){e.Symbol||(e.Symbol=t,Object.getOwnPropertySymbols=f),e.Symbol.iterator||(e.Symbol.iterator=t("Symbol.iterator"))}function C(e){b(e,l),e.Reflect=e.Reflect||{},e.Reflect.global=e.Reflect.global||e}if(!e.$traceurRuntime){var y=Object,_=TypeError,R=y.create,M=y.defineProperties,S=y.defineProperty,E=y.freeze,O=y.getOwnPropertyDescriptor,T=y.getOwnPropertyNames,k=y.keys,A=Object.isExtensible,H=t,P=0,x=o(),L=o(),N=o(),D=R(null),I=R(null);S(l.prototype,"constructor",t(l)),S(l.prototype,"toString",H(function(){var e=this[N];if(!m("symbols"))return e[x];if(!e)throw TypeError("Conversion from symbol to string");var t=e[L];return void 0===t&&(t=""),"Symbol("+t+")"})),S(l.prototype,"valueOf",H(function(){var e=this[N];if(!e)throw TypeError("Conversion from symbol to string");return m("symbols")?e:e[x]})),S(a.prototype,"constructor",t(l)),S(a.prototype,"toString",{value:l.prototype.toString,enumerable:!1}),S(a.prototype,"valueOf",{value:l.prototype.valueOf,enumerable:!1});var W=r(),F={value:void 0},B={hash:{value:void 0},self:{value:void 0}},j=0;d(a.prototype),C(e),e.$traceurRuntime={checkObjectCoercible:v,createPrivateName:r,defineProperties:M,defineProperty:S,exportStar:p,getOwnHashObject:u,getOwnPropertyDescriptor:O,getOwnPropertyNames:T,isObject:g,isPrivateName:n,isSymbolString:c,keys:k,setupGlobals:C,toObject:w,toProperty:h,"typeof":s}}}(window),function(){"use strict";function e(){for(var e,o=[],n=0,r=0;r<arguments.length;r++){var i=$traceurRuntime.checkObjectCoercible(arguments[r]);"function"!=typeof i[t(Symbol.iterator)]&&(i[t(Symbol.iterator)]=function(){var e=this,t=e.length,o=0;return{next:function(){var n={done:!0};return t>o&&(n.done=!1,n.value=e[o],++o),n}}});for(var s=i[t(Symbol.iterator)]();!(e=s.next()).done;)o[n++]=e.value}return o}var t=$traceurRuntime.toProperty;$traceurRuntime.spread=e}(),function(){"use strict";function e(e,t){var o=p(e);do{var n=m(o,t);if(n)return n;o=p(o)}while(o)}function t(e){return e.__proto__}function o(e,t,o,r){return n(e,t,o).apply(e,r)}function n(t,o,n){var r=e(o,n);return r?r.get?r.get.call(t):r.value:void 0}function r(t,o,n,r){var i=e(o,n);if(i&&i.set)return i.set.call(t,r),r;throw d("super has no setter '"+n+"'.")}function i(e){for(var t={},o=v(e),n=0;n<o.length;n++){var r=o[n];t[r]=m(e,r)}for(var i=b(e),n=0;n<i.length;n++){var s=i[n];t[g(s)]=m(e,g(s))}return t}function s(e,t,o,n){return f(t,"constructor",{value:e,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof n&&(e.__proto__=n),e.prototype=c(l(n),i(t))):e.prototype=t,f(e,"prototype",{configurable:!1,writable:!1}),h(e,i(o))}function l(e){if("function"==typeof e){var t=e.prototype;if(u(t)===t||null===t)return e.prototype;throw new d("super prototype must be an Object or null")}if(null===e)return null;throw new d("Super expression must either be null or a function, not "+typeof e+".")}function a(e,t,n){null!==p(t)&&o(e,t,"constructor",n)}var u=Object,d=TypeError,c=u.create,h=$traceurRuntime.defineProperties,f=$traceurRuntime.defineProperty,m=$traceurRuntime.getOwnPropertyDescriptor,p=Object.getPrototypeOf,g=$traceurRuntime.toProperty,w=Object,v=w.getOwnPropertyNames,b=w.getOwnPropertySymbols;$traceurRuntime.createClass=s,$traceurRuntime.defaultSuperCall=a,$traceurRuntime.superCall=o,$traceurRuntime.superConstructor=t,$traceurRuntime.superGet=n,$traceurRuntime.superSet=r}()},{}],103:[function(e,t,o){"use strict";function n(e){var t=this,o=this;this.eventManager=_(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var n=e.rootElement.getAttribute("style");n&&e.rootElement.setAttribute("data-originalstyle",n),f(e.rootElement,"handsontable");var r=document.createElement("TABLE");f(r,"htCore"),e.getSettings().tableClassName&&f(r,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),r.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),r.appendChild(this.TBODY),e.table=r,e.container.insertBefore(r,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){this.selectionMouseDown=!0,o.isTextSelectionAllowed(e.target)||(s(),e.preventDefault(),window.focus())}),this.eventManager.addEventListener(e.rootElement,"mouseup",function(e){this.selectionMouseDown=!1}),this.eventManager.addEventListener(e.rootElement,"mousemove",function(e){this.selectionMouseDown&&!o.isTextSelectionAllowed(e.target)&&(s(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var i;this.isMouseDown=function(){return i},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),i=!1,y(document.activeElement)&&e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var n=t.target,r=t.target,s=t.x||t.clientX,l=t.y||t.clientY;if(!i&&e.rootElement){if(r===e.view.wt.wtTable.holder){var a=w();if(document.elementFromPoint(s+a,l)!==e.view.wt.wtTable.holder||document.elementFromPoint(s,l+a)!==e.view.wt.wtTable.holder)return}else for(;r!==document.documentElement;){if(null===r){if(t.isTargetWebComponent)break;return}if(r===e.rootElement)return;r=r.parentNode}var u="function"==typeof o.settings.outsideClickDeselects?o.settings.outsideClickDeselects(n):o.settings.outsideClickDeselects;u?e.deselectCell():e.destroyEditor()}}),this.eventManager.addEventListener(r,"selectstart",function(e){o.settings.fragmentSelection||C(e.target)||e.preventDefault()});var s=function(){window.getSelection?window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},l=[new O({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return o.settings.fillHandle&&!o.isCellEdited()&&!e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!o.isCellEdited()&&!e.selection.isMultiple()}}}),new O({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return o.settings.fillHandle&&!o.isCellEdited()&&e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!o.isCellEdited()&&e.selection.isMultiple()}}}),new O({className:"highlight",highlightRowClassName:o.settings.currentRowClassName,highlightColumnClassName:o.settings.currentColClassName}),new O({className:"fill",border:{width:1,color:"red"}})];l.current=l[0],l.area=l[1],l.highlight=l[2],l.fill=l[3];var a={debug:function(){return o.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:r,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return o.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return o.settings.fixedColumnsLeft},fixedRowsTop:function(){return o.settings.fixedRowsTop},fixedRowsBottom:function(){return o.settings.fixedRowsBottom},minSpareRows:function(){return o.settings.minSpareRows},renderAllRows:o.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){o.appendRowHeader(e,t)}),c.hooks.run(e,"afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){o.appendColHeader(e,t)}),c.hooks.run(e,"afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,n){var r=o.instance.getCellMeta(e,t),i=o.instance.colToProp(t),s=o.instance.getDataAtRowProp(e,i);c.hooks.run(o.instance,"beforeRenderer",n,e,t,i,s,r),o.instance.getCellRenderer(r)(o.instance,n,e,t,i,s,r),c.hooks.run(o.instance,"afterRenderer",n,e,t,i,s,r)},selections:l,hideBorderOnMouseDownOver:function(){return o.settings.fragmentSelection},onCellMouseDown:function(t,n,r,s){if(e.listen(),o.activeWt=s,i=!0,c.hooks.run(e,"beforeOnCellMouseDown",t,n,r),!S(t)){var l=e.getSelectedRange(),a=e.selection,u=a.selectedHeader;if(t.shiftKey&&l)n.row>=0&&n.col>=0?(a.setRangeEnd(n),a.setSelectedHeaders(!1,!1)):(u.cols||u.rows)&&n.row>=0&&n.col>=0?(a.setRangeEnd(new E(n.row,n.col)),a.setSelectedHeaders(!1,!1)):u.cols&&n.row<0?a.setRangeEnd(new E(l.to.row,n.col)):u.rows&&n.col<0?a.setRangeEnd(new E(n.row,l.to.col)):!u.cols&&!u.rows&&n.col<0||u.cols&&n.col<0?(a.setRangeStartOnly(new E(l.from.row,0)),a.setRangeEnd(new E(n.row,e.countCols()-1)),a.setSelectedHeaders(!0,!1)):(!u.cols&&!u.rows&&n.row<0||u.rows&&n.row<0)&&(a.setRangeStartOnly(new E(0,l.from.col)),a.setRangeEnd(new E(e.countRows()-1,n.col)),a.setSelectedHeaders(!1,!0));else{var d=!0;if(l){var h=l,f=h.from,m=h.to,p=!a.inInSelection(n);if(n.row<0&&u.cols){var g=Math.min(f.col,m.col),w=Math.max(f.col,m.col);d=n.col<g||n.col>w}else if(n.col<0&&u.rows){var v=Math.min(f.row,m.row),b=Math.max(f.row,m.row);d=n.row<v||n.row>b}else d=p}(0===t.button||2===t.button&&d)&&(n.row<0&&n.col>=0?(a.setSelectedHeaders(!1,!0),a.setRangeStartOnly(new E(0,n.col)),a.setRangeEnd(new E(e.countRows()-1,n.col),!1)):n.col<0&&n.row>=0?(a.setSelectedHeaders(!0,!1),a.setRangeStartOnly(new E(n.row,0)),a.setRangeEnd(new E(n.row,e.countCols()-1),!1)):(n.row=n.row<0?0:n.row,n.col=n.col<0?0:n.col,a.setSelectedHeaders(!1,!1),a.setRangeStart(n)))}c.hooks.run(e,"afterOnCellMouseDown",t,n,r),o.activeWt=o.wt}},onCellMouseOver:function(t,n,r,s){var l={row:!1,column:!1};o.activeWt=s,c.hooks.run(e,"beforeOnCellMouseOver",t,n,r,l),0===t.button&&(n.row>=0&&n.col>=0?i&&e.selection.setRangeEnd(n):i&&(n.row<0&&!l.column&&(e.selection.selectedHeader.cols?(e.selection.setRangeEnd(new E(e.countRows()-1,n.col),!1),e.selection.setSelectedHeaders(!1,!0)):e.selection.setRangeEnd(new E(n.row,n.col),!1)),n.col<0&&!l.row&&(e.selection.selectedHeader.rows?(e.selection.setRangeEnd(new E(n.row,e.countCols()-1),!1),e.selection.setSelectedHeaders(!0,!1)):e.selection.setRangeEnd(new E(n.row,n.col),!1)))),c.hooks.run(e,"afterOnCellMouseOver",t,n,r),o.activeWt=o.wt},onCellCornerMouseDown:function(t){t.preventDefault(),c.hooks.run(e,"afterOnCellCornerMouseDown",t)},beforeDraw:function(e){o.beforeRender(e)},onDraw:function(e){o.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,o){e.runHooks("beforeDrawBorders",t,o)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,o){return e.runHooks("beforeStretchingColumnWidth",t,o)},viewportRowCalculatorOverride:function(t){var n=e.countRows(),r=o.settings.viewportRowRenderingOffset;if("auto"===r&&o.settings.fixedRowsTop&&(r=10),"number"==typeof r&&(t.startRow=Math.max(t.startRow-r,0),t.endRow=Math.min(t.endRow+r,n-1)),"auto"===r){var i=t.startRow+t.endRow-t.startRow,s=Math.ceil(i/n*12);t.startRow=Math.max(t.startRow-s,0),t.endRow=Math.min(t.endRow+s,n-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var n=e.countCols(),r=o.settings.viewportColumnRenderingOffset;if("auto"===r&&o.settings.fixedColumnsLeft&&(r=10),"number"==typeof r&&(t.startColumn=Math.max(t.startColumn-r,0),t.endColumn=Math.min(t.endColumn+r,n-1)),"auto"===r){var i=t.startColumn+t.endColumn-t.startColumn,s=Math.ceil(i/n*12);t.startRow=Math.max(t.startColumn-s,0),t.endColumn=Math.min(t.endColumn+s,n-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return o.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return o.settings.columnHeaderHeight||t}};c.hooks.run(e,"beforeInitWalkontable",a),this.wt=new T(a),this.activeWt=this.wt,this.eventManager.addEventListener(o.wt.wtTable.spreader,"mousedown",function(e){e.target===o.wt.wtTable.spreader&&3===e.which&&M(e)}),this.eventManager.addEventListener(o.wt.wtTable.spreader,"contextmenu",function(e){e.target===o.wt.wtTable.spreader&&3===e.which&&M(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){o.settings.observeDOMVisibility&&o.wt.drawInterrupted&&(o.instance.forceFullRender=!0,o.render())})}Object.defineProperties(o,{TableView:{get:function(){return n}},__esModule:{value:!0}});var r,i,s,l,a,u,d,c=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],h=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),f=h.addClass,m=h.empty,p=h.fastInnerHTML,g=h.fastInnerText,w=h.getScrollbarWidth,v=h.hasClass,b=h.isChildOf,C=h.isInput,y=h.isOutsideInput,_=(s=e("eventManager"),s&&s.__esModule&&s||{"default":s}).eventManager,R=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{"default":l}),M=R.stopPropagation,S=R.isImmediatePropagationStopped,E=(a=e("3rdparty/walkontable/src/cell/coords"),a&&a.__esModule&&a||{"default":a}).WalkontableCellCoords,O=(u=e("3rdparty/walkontable/src/selection"),u&&u.__esModule&&u||{"default":u}).WalkontableSelection,T=(d=e("3rdparty/walkontable/src/core"),d&&d.__esModule&&d||{"default":d}).Walkontable;c.TableView=n,n.prototype.isTextSelectionAllowed=function(e){if(C(e))return!0;var t=b(e,this.instance.view.wt.wtTable.spreader);return this.settings.fragmentSelection===!0&&t?!0:"cell"===this.settings.fragmentSelection&&this.isSelectedOnlyCell()&&t?!0:!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell())},n.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelected()||[],t=e[0],o=e[1],n=e[2],r=e[3];return void 0!==t&&t===n&&o===r},n.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},n.prototype.beforeRender=function(e){e&&c.hooks.run(this.instance,"beforeRender",this.instance.forceFullRender)},n.prototype.onDraw=function(e){e&&c.hooks.run(this.instance,"afterRender",this.instance.forceFullRender)},n.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},n.prototype.getCellAtCoords=function(e,t){var o=this.wt.getCell(e,t);return 0>o?null:o},n.prototype.scrollViewport=function(e){this.wt.scrollViewport(e)},n.prototype.appendRowHeader=function(e,t){if(t.firstChild){var o=t.firstChild;if(!v(o,"relative"))return m(t),void this.appendRowHeader(e,t);this.updateCellHeader(o.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var n=document.createElement("div"),r=document.createElement("span");n.className="relative",r.className="rowHeader",this.updateCellHeader(r,e,this.instance.getRowHeader),n.appendChild(r),t.appendChild(n)}c.hooks.run(this.instance,"afterGetRowHeader",e,t)},n.prototype.appendColHeader=function(e,t){if(t.firstChild){var o=t.firstChild;v(o,"relative")?this.updateCellHeader(o.querySelector(".colHeader"),e,this.instance.getColHeader):(m(t),this.appendColHeader(e,t))}else{var n=document.createElement("div"),r=document.createElement("span");n.className="relative",r.className="colHeader",this.updateCellHeader(r,e,this.instance.getColHeader),n.appendChild(r),t.appendChild(n)}c.hooks.run(this.instance,"afterGetColHeader",e,t)},n.prototype.updateCellHeader=function(e,t,o){var n=t,r=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&(v(e,"colHeader")?n=r.wtTable.columnFilter.sourceToRendered(t):v(e,"rowHeader")&&(n=r.wtTable.rowFilter.sourceToRendered(t))),n>-1?p(e,o(t)):(g(e,String.fromCharCode(160)),f(e,"cornerHeader"))},n.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),o=t-e;return o>0?o:0},n.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),o=t-e;return o>0?o:0},n.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},n.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()}},{"3rdparty/walkontable/src/cell/coords":5,"3rdparty/walkontable/src/core":7,"3rdparty/walkontable/src/selection":18,browser:23,eventManager:41,"helpers/dom/element":46,"helpers/dom/event":47}],104:[function(e,t,o){"use strict";Object.defineProperties(o,{GhostTable:{get:function(){return p}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],d=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),c=d.addClass,h=d.outerHeight,f=d.outerWidth,m=(i=e("helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,p=((s=e("helpers/object"),s&&s.__esModule&&s||{"default":s}).objectEach,(l=e("helpers/number"),l&&l.__esModule&&l||{"default":l}).rangeEach,(a=e("helpers/mixed"),a&&a.__esModule&&a||{"default":a}).stringify,function(e){this.hot=e,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}});$traceurRuntime.createClass(p,{addRow:function(e,t){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));var o={row:e};this.rows.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table},addColumnHeadersRow:function(e){if(null!=this.hot.getColHeader(0)){var t={row:-1};this.rows.push(t),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.table.tHead.appendChild(this.createColumnHeadersRow()),this.container.container.appendChild(this.table.fragment),t.table=this.table.table}},addColumn:function(e,t){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));var o={col:e};this.columns.push(o),this.samples=t,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&null!==this.hot.getColHeader(e)&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),o.table=this.table.table},getHeights:function(e){this.injected||this.injectTable(),m(this.rows,function(t){e(t.row,h(t.table)-1)})},getWidths:function(e){this.injected||this.injectTable(),m(this.columns,function(t){e(t.col,f(t.table))})},setSettings:function(e){this.settings=e},setSetting:function(e,t){this.settings||(this.settings={}),this.settings[e]=t},getSettings:function(){return this.settings},getSetting:function(e){return this.settings?this.settings[e]:null},createColGroupsCol:function(){var e=this,t=document,o=t.createDocumentFragment();return this.hot.hasRowHeaders()&&o.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){m(t.strings,function(t){o.appendChild(e.createColElement(t.col))})}),o},createRow:function(e){var t=this,o=document,n=o.createDocumentFragment(),r=o.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),n.appendChild(r)),this.samples.forEach(function(r){m(r.strings,function(r){var i=r.col,s=t.hot.getCellMeta(e,i);s.col=i,s.row=e;var l=t.hot.getCellRenderer(s),a=o.createElement("td");l(t.hot,a,e,i,t.hot.colToProp(i),r.value,s),n.appendChild(a)})}),n},createColumnHeadersRow:function(){var e=this,t=document,o=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var n=t.createElement("th");this.hot.view.appendColHeader(-1,n),o.appendChild(n)}return this.samples.forEach(function(n){m(n.strings,function(n){var r=n.col,i=t.createElement("th");e.hot.view.appendColHeader(r,i),o.appendChild(i)})}),o},createCol:function(e){var t=this,o=document,n=o.createDocumentFragment();return this.samples.forEach(function(r){m(r.strings,function(r){var i=r.row,s=t.hot.getCellMeta(i,e);s.col=e,s.row=i;var l=t.hot.getCellRenderer(s),a=o.createElement("td"),u=o.createElement("tr");l(t.hot,a,i,e,t.hot.colToProp(e),r.value,s),u.appendChild(a),n.appendChild(u)})}),n},clean:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()},injectTable:function(){var e=void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)},removeTable:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)},createColElement:function(e){var t=document,o=t.createElement("col");return o.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",o},createTable:function(){var e=void 0!==arguments[0]?arguments[0]:"",t=document,o=t.createDocumentFragment(),n=t.createElement("table"),r=t.createElement("thead"),i=t.createElement("tbody"),s=t.createElement("colgroup"),l=t.createElement("tr"),a=t.createElement("th");return this.isVertical()&&n.appendChild(s),this.isHorizontal()&&(l.appendChild(a),r.appendChild(l),n.style.tableLayout="auto",n.style.width="auto"),n.appendChild(r),this.isVertical()&&i.appendChild(l),n.appendChild(i),c(n,e),o.appendChild(n),{fragment:o,table:n,tHead:r,tBody:i,colGroup:s,tr:l,th:a}},createContainer:function(){var e=void 0!==arguments[0]?arguments[0]:"",t=document,o=t.createDocumentFragment(),n=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),c(n,e),o.appendChild(n),{fragment:o,container:n}},isVertical:function(){return!(!this.rows.length||this.columns.length)},isHorizontal:function(){return!(!this.columns.length||this.rows.length)}},{}),u.utils.GhostTable=p},{browser:23,"helpers/array":42,"helpers/dom/element":46,"helpers/mixed":50,"helpers/number":51,"helpers/object":52}],105:[function(e,t,o){"use strict";function n(e){return"string"==typeof e&&/fps$/.test(e)&&(e=1e3/parseInt(e.replace("fps","")||0,10)),e}Object.defineProperties(o,{Interval:{get:function(){return m}},__esModule:{value:!0}});var r,i,s,l,a,u,d=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],c=(i=e("helpers/feature"),i&&i.__esModule&&i||{"default":i}),h=c.requestAnimationFrame,f=c.cancelAnimationFrame,m=((s=e("helpers/array"),s&&s.__esModule&&s||{"default":s}).arrayEach,(l=e("helpers/object"),l&&l.__esModule&&l||{"default":l}).objectEach,(a=e("helpers/number"),a&&a.__esModule&&a||{"default":a}).rangeEach,(u=e("helpers/mixed"),u&&u.__esModule&&u||{"default":u}).stringify,function(e,t){var o=this;this.timer=null,this.func=e,this.delay=n(t),this.stopped=!0,this._then=null,this._callback=function(){return o.__callback()}}),p=m;$traceurRuntime.createClass(m,{start:function(){return this.stopped&&(this._then=Date.now(),this.stopped=!1,this.timer=h(this._callback)),this},stop:function(){return this.stopped||(this.stopped=!0,f(this.timer),this.timer=null),this},__callback:function(){if(this.timer=h(this._callback),this.delay){var e=Date.now(),t=e-this._then;t>this.delay&&(this._then=e-t%this.delay,this.func())}else this.func()}},{create:function(e,t){return new p(e,t)}}),d.utils.Interval=m},{browser:23,"helpers/array":42,"helpers/feature":48,"helpers/mixed":50,"helpers/number":51,"helpers/object":52}],106:[function(e,t,o){"use strict";var n;Object.defineProperties(o,{SamplesGenerator:{get:function(){return g}},__esModule:{value:!0}});var r,i,s,l,a,u,d=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],c=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),h=(c.addClass,c.outerHeight,c.outerWidth,(s=e("helpers/array"),s&&s.__esModule&&s||{"default":s}).arrayEach,l=e("helpers/object"),l&&l.__esModule&&l||{"default":l}),f=(h.objectEach,h.isObject),m=(a=e("helpers/number"),a&&a.__esModule&&a||{"default":a}).rangeEach,p=(u=e("helpers/mixed"),u&&u.__esModule&&u||{"default":u}).stringify,g=function(e){this.samples=null,this.dataFactory=e,this.customSampleCount=null},w=g;$traceurRuntime.createClass(g,(n={},Object.defineProperty(n,"getSampleCount",{value:function(){return this.customSampleCount?this.customSampleCount:w.SAMPLE_COUNT},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"generateRowSamples",{value:function(e,t){return this.generateSamples("row",t,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"generateColumnSamples",{value:function(e,t){return this.generateSamples("col",t,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"generateSamples",{value:function(e,t,o){var n=this,r=new Map;return"number"==typeof o&&(o={from:o,to:o}),m(o.from,o.to,function(o){var i=n.generateSample(e,t,o);r.set(o,i)}),r},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(n,"generateSample",{value:function(e,t,o){var n,r=this,i=new Map,s=[];return m(t.from,t.to,function(t){var l,a;if("row"===e)a=r.dataFactory(o,t);else{if("col"!==e)throw new Error("Unsupported sample type");a=r.dataFactory(t,o)}n=f(a)?Object.keys(a).length:Array.isArray(a)?a.length:p(a).length,i.has(n)||i.set(n,{needed:r.getSampleCount(),strings:[]});var u=i.get(n);if(u.needed){var d=s.indexOf(a)>-1;if(!d){var c="row"===e?"col":"row";u.strings.push((l={},Object.defineProperty(l,"value",{value:a,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(l,c,{value:t,configurable:!0,enumerable:!0,writable:!0}),l)),s.push(a),u.needed--}}}),i},configurable:!0,enumerable:!0,writable:!0}),n),{get SAMPLE_COUNT(){return 3}}),d.utils.SamplesGenerator=g},{browser:23,"helpers/array":42,"helpers/dom/element":46,"helpers/mixed":50,"helpers/number":51,"helpers/object":52}],107:[function(e,t,o){"use strict";function n(e,t){var o=e,n="string"==typeof o?o.toLowerCase():null;return function(e){for(var r=!1,i=0,s=e.length;s>i;i++){if(o===e[i]){r=!0;break}if(n===l(e[i]).toLowerCase()){r=!0;break}}t(r)}}var r,i,s=(r=e("browser"),r&&r.__esModule&&r||{"default":r})["default"],l=(i=e("helpers/mixed"),i&&i.__esModule&&i||{"default":i}).stringify;s.AutocompleteValidator=function(e,t){return null==e&&(e=""),this.allowEmpty&&""===e?void t(!0):void(this.strict&&this.source?"function"==typeof this.source?this.source(e,n(e,t)):n(e,t)(this.source):t(!0))}},{browser:23,"helpers/mixed":50}],108:[function(e,t,o){"use strict";var n,r,i,s,l=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("moment"),r&&r.__esModule&&r||{"default":r})["default"],u=(i=e("../helpers/date"),i&&i.__esModule&&i||{"default":i}).getNormalizedDate,d=(s=e("editors"),s&&s.__esModule&&s||{"default":s}).getEditor;l.DateValidator=function(e,t){var o=!0,n=d("date",this.instance);null==e&&(e="");var r=a(new Date(e)).isValid(),i=a(e,this.dateFormat||n.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===e&&(r=!0,i=!0),r||(o=!1),!r&&i&&(o=!0),r&&!i)if(this.correctFormat===!0){var s=c(e,this.dateFormat);this.instance.setDataAtCell(this.row,this.col,s,"dateValidator"),o=!0}else o=!1;t(o)};var c=function(e,t){var o=a(u(e)),n=o.format("YYYY"),r=a().format("YYYY");return n.substr(0,2)!==r.substr(0,2)?e.match(new RegExp(n))||o.year(n.replace(n.substr(0,2),r.substr(0,2))):n.length>4&&o.year((o.year()+"").substr(0,4)),o.format(t)}},{"../helpers/date":45,browser:23,editors:29,moment:void 0}],109:[function(e,t,o){"use strict";var n,r=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"];r.NumericValidator=function(e,t){null==e&&(e=""),t(this.allowEmpty&&""===e?!0:""===e?!1:/^-?\d*(\.|\,)?\d*$/.test(e))}},{browser:23}],110:[function(e,t,o){"use strict";var n,r,i=(n=e("browser"),n&&n.__esModule&&n||{"default":n})["default"],s=(r=e("moment"),r&&r.__esModule&&r||{"default":r})["default"],l=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];i.TimeValidator=function(e,t){var o=!0,n=this.timeFormat||"h:mm:ss a";null===e&&(e=""),e=/^\d{3,}$/.test(e)?parseInt(e,10):e;var r=/^\d{1,2}$/.test(e);r&&(e+=":00");var i=s(e,l,!0).isValid()?s(e):s(e,n),a=i.isValid(),u=s(e,n,!0).isValid()&&!r;if(this.allowEmpty&&""===e&&(a=!0,u=!0),a||(o=!1),!a&&u&&(o=!0),a&&!u)if(this.correctFormat===!0){var d=i.format(n);this.instance.setDataAtCell(this.row,this.col,d,"timeValidator"),o=!0}else o=!1;t(o)}},{browser:23,moment:void 0}],111:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableBottomOverlay:{
get:function(){return p}},__esModule:{value:!0}});var n,r,i=(n=e("../../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),s=i.addClass,l=i.getScrollbarWidth,a=i.getScrollTop,u=i.getWindowScrollLeft,d=i.hasClass,c=i.outerHeight,h=(i.innerHeight,i.removeClass),f=(i.setOverlayPosition,i.resetCssTransform),m=(r=e("../../../../../node_modules/hot-builder/node_modules/handsontable/src/3rdparty/walkontable/src/overlay/_base.js"),r&&r.__esModule&&r||{"default":r}).WalkontableOverlay,p=function(e){$traceurRuntime.superConstructor(g).call(this,e),this.clone=this.makeClone(m.CLONE_BOTTOM)},g=p;$traceurRuntime.createClass(p,{repositionOverlay:function(){var e=l(),t=this.clone.wtTable.holder.parentNode;this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight&&(e=0),t.style.top="",t.style.bottom=e+"px"},shouldBeRendered:function(){return!!this.wot.getSetting("fixedRowsBottom")},resetFixedPosition:function(){if(this.needFullRender&&this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=0;if(e.style.top="",this.wot.wtOverlays.leftOverlay.trimmingContainer===window){var o,n,r=this.wot.wtTable.hider.getBoundingClientRect(),i=Math.ceil(r.bottom),s=document.body.offsetHeight;o=this.wot.wtTable.hider.style.left,o=""===o?0:o,n=i>s?i-s:0,t=n,n+="px",e.style.top="",e.style.left=o,e.style.bottom=n}else t=this.getScrollPosition(),f(e),this.repositionOverlay();this.adjustHeaderBordersPosition(t)}},setScrollPosition:function(e){this.mainTableScrollableElement===window?window.scrollTo(u(),e):this.mainTableScrollableElement.scrollTop=e},onScroll:function(){this.wot.getSetting("onScrollVertically")},sumCellSizes:function(e,t){for(var o=0,n=this.wot.wtSettings.settings.defaultRowHeight;t>e;){var r=this.wot.wtTable.getRowHeight(e);o+=void 0===r?n:r,e++}return o},adjustElementsSize:function(){var e=void 0!==arguments[0]?arguments[0]:!1;this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,o=t.clientWidth===t.offsetWidth?0:l(),n=this.clone.wtTable.holder.parentNode,r=n.style;this.trimmingContainer===window?r.width="":r.width=this.wot.wtViewport.getWorkspaceWidth()-o+"px",this.clone.wtTable.holder.style.width=r.width,e=c(this.clone.wtTable.TABLE),r.height=(0===e?e:e)+"px"},adjustRootChildrenSize:function(){var e=l();this.clone.wtTable.hider.style.width=this.hider.style.width,this.clone.wtTable.holder.style.width=this.clone.wtTable.holder.parentNode.style.width,0===e&&(e=30),this.clone.wtTable.holder.style.height=parseInt(this.clone.wtTable.holder.parentNode.style.height,10)+e+"px"},applyToDOM:function(){var e=this.wot.getSetting("totalRows");if(this.areElementSizesAdjusted||this.adjustElementsSize(),"number"==typeof this.wot.wtViewport.rowsRenderCalculator.startPosition)this.spreader.style.top=this.wot.wtViewport.rowsRenderCalculator.startPosition+"px";else{if(0!==e)throw new Error("Incorrect value of the rowsRenderCalculator");this.spreader.style.top="0"}this.spreader.style.bottom="",this.needFullRender&&this.syncOverlayOffset()},syncOverlayOffset:function(){"number"==typeof this.wot.wtViewport.columnsRenderCalculator.startPosition?this.clone.wtTable.spreader.style.left=this.wot.wtViewport.columnsRenderCalculator.startPosition+"px":this.clone.wtTable.spreader.style.left=""},scrollTo:function(e,t){var o=this.getTableParentOffset(),n=this.wot.cloneSource?this.wot.cloneSource:this.wot,r=n.wtTable.holder,i=0;t&&r.offsetHeight!==r.clientHeight&&(i=l()),t?(o+=this.sumCellSizes(0,e+1),o-=this.wot.wtViewport.getViewportHeight(),o+=1):o+=this.sumCellSizes(this.wot.getSetting("fixedRowsBottom"),e),o+=i,this.setScrollPosition(o)},getTableParentOffset:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0},getScrollPosition:function(){return a(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){if(0===this.wot.getSetting("fixedRowsBottom")&&this.wot.getSetting("columnHeaders").length>0){var t=this.wot.wtTable.holder.parentNode,o=d(t,"innerBorderTop");e?s(t,"innerBorderTop"):h(t,"innerBorderTop"),(!o&&e||o&&!e)&&this.wot.wtOverlays.adjustElementsSize()}if(0===this.wot.getSetting("rowHeaders").length){var n=this.clone.wtTable.THEAD.querySelector("th:nth-of-type(2)");n&&(n.style["border-left-width"]=0)}}},{},m),window.WalkontableBottomOverlay=p,m.registerOverlay(m.CLONE_BOTTOM,p)},{"../../../../../node_modules/hot-builder/node_modules/handsontable/src/3rdparty/walkontable/src/overlay/_base.js":11,"../../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46}],112:[function(e,t,o){"use strict";Object.defineProperties(o,{WalkontableBottomLeftCornerOverlay:{get:function(){return c}},__esModule:{value:!0}});var n,r,i=(n=e("../../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),s=i.getScrollbarWidth,l=i.outerHeight,a=i.outerWidth,u=(i.setOverlayPosition,i.resetCssTransform),d=(r=e("../../../../../node_modules/hot-builder/node_modules/handsontable/src/3rdparty/walkontable/src/overlay/_base.js"),r&&r.__esModule&&r||{"default":r}).WalkontableOverlay,c=function(e){$traceurRuntime.superConstructor(h).call(this,e),this.clone=this.makeClone(d.CLONE_BOTTOM_LEFT_CORNER)},h=c;$traceurRuntime.createClass(c,{shouldBeRendered:function(){return!(!this.wot.getSetting("fixedRowsBottom")||!this.wot.getSetting("fixedColumnsLeft")&&!this.wot.getSetting("rowHeaders").length)},repositionOverlay:function(){var e=s(),t=this.clone.wtTable.holder.parentNode;this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight&&(e=0),t.style.top="",t.style.bottom=e+"px"},resetFixedPosition:function(){if(this.updateTrimmingContainer(),this.wot.wtTable.holder.parentNode){var e=this.clone.wtTable.holder.parentNode,t=l(this.clone.wtTable.TABLE),o=a(this.clone.wtTable.TABLE);if(e.style.top="",this.trimmingContainer===window){var n,r,i=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(i.bottom),d=Math.ceil(i.left),c=document.body.offsetHeight;n=0>d?-d:0,r=s>c?s-c:0,r+="px",n+="px",e.style.top="",e.style.left=n,e.style.bottom=r}else u(e),this.repositionOverlay();e.style.height=(0===t?t:t)+"px",e.style.width=(0===o?o:o)+"px"}}},{},d),window.WalkontableBottomLeftCornerOverlay=c,d.registerOverlay(d.CLONE_BOTTOM_LEFT_CORNER,c)},{"../../../../../node_modules/hot-builder/node_modules/handsontable/src/3rdparty/walkontable/src/overlay/_base.js":11,"../../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46}],113:[function(e,t,o){"use strict";var n,r,i,s=(n=e("../node_modules/hot-builder/node_modules/handsontable/src/browser"),n&&n.__esModule&&n||{"default":n})["default"];(r=e("3rdparty/walkontable/src/overlay/bottom"),r&&r.__esModule&&r||{"default":r}).WalkontableBottomOverlay,(i=e("3rdparty/walkontable/src/overlay/bottomLeftCorner"),i&&i.__esModule&&i||{"default":i}).WalkontableBottomLeftCornerOverlay;t.exports=s},{"../node_modules/hot-builder/node_modules/handsontable/src/browser":23,"3rdparty/walkontable/src/overlay/bottom":111,"3rdparty/walkontable/src/overlay/bottomLeftCorner":112}],114:[function(e,t,o){"use strict";Object.defineProperties(o,{BindRowsWithHeaders:{get:function(){return h}},__esModule:{value:!0}});var n,r,i,s,l,a=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),n&&n.__esModule&&n||{"default":n})["default"],u=((r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach),d=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),s&&s.__esModule&&s||{"default":s}).registerPlugin,c=(l=e("bindStrategy"),l&&l.__esModule&&l||{"default":l}).BindStrategy,h=function(e){$traceurRuntime.superConstructor(f).call(this,e),this.bindStrategy=new c,this.removedRows=[]},f=h;$traceurRuntime.createClass(h,{isEnabled:function(){return!!this.hot.getSettings().bindRowsWithHeaders},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().bindRowsWithHeaders;"string"!=typeof t&&(t=c.DEFAULT_STRATEGY),this.bindStrategy.setStrategy(t),this.bindStrategy.createMap(this.hot.countSourceRows()),this.addHook("modifyRowHeader",function(t){return e.onModifyRowHeader(t)}),this.addHook("afterCreateRow",function(t,o){return e.onAfterCreateRow(t,o)}),this.addHook("beforeRemoveRow",function(t,o){return e.onBeforeRemoveRow(t,o)}),this.addHook("afterRemoveRow",function(t,o){return e.onAfterRemoveRow(t,o)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),$traceurRuntime.superGet(this,f.prototype,"enablePlugin").call(this)}},updatePlugin:function(){$traceurRuntime.superGet(this,f.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.removedRows.length=0,this.bindStrategy.clearMap(),$traceurRuntime.superGet(this,f.prototype,"disablePlugin").call(this)},onModifyRowHeader:function(e){return this.bindStrategy.translate(this.hot.runHooks("modifyRow",e))},onAfterCreateRow:function(e,t){this.bindStrategy.createRow(e,t)},onBeforeRemoveRow:function(e,t){var o=this;this.removedRows.length=0,e!==!1&&u(e,e+t-1,function(e){o.removedRows.push(o.hot.runHooks("modifyRow",e))})},onAfterRemoveRow:function(e,t){this.bindStrategy.removeRow(this.removedRows)},onAfterLoadData:function(e){e||this.bindStrategy.createMap(this.hot.countSourceRows())},destroy:function(){this.bindStrategy.destroy(),$traceurRuntime.superGet(this,f.prototype,"destroy").call(this)}},{},a),d("bindRowsWithHeaders",h)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,bindStrategy:115}],115:[function(e,t,o){"use strict";Object.defineProperties(o,{BindStrategy:{get:function(){return d}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("../../browser"),n&&n.__esModule&&n||{"default":n})["default"],a=((r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper"),r&&r.__esModule&&r||{"default":r}).arrayMapper,(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),i&&i.__esModule&&i||{"default":i}).mixin,(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),s&&s.__esModule&&s||{"default":s}).rangeEach),u={},d=function(){this.strategy=null};$traceurRuntime.createClass(d,{setStrategy:function(e){var t=u[e];if(!t)throw new Error('Bind strategy "'+e+'" does not exist.');this.strategy=new t},createMap:function(e){var t=this.strategy,o=void 0===e?t._arrayMap.length:e;t._arrayMap.length=0,a(o-1,function(e){t._arrayMap.push(e)})},createRow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.strategy.createRow.apply(this.strategy,e)},removeRow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.strategy.removeRow.apply(this.strategy,e)},translate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.strategy.getValueByIndex.apply(this.strategy,e)},clearMap:function(){this.strategy.clearMap()},destroy:function(){this.strategy&&this.strategy.destroy(),this.strategy=null}},{get DEFAULT_STRATEGY(){return"loose"},registerStrategy:function(e,t){u[e]=t}}),l.utils.BindStrategy=d},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper":56,"../../browser":113}],116:[function(e,t,o){"use strict";Object.defineProperties(o,{LooseBindStrategy:{get:function(){return u}},__esModule:{value:!0}});var n,r,i,s=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper"),n&&n.__esModule&&n||{"default":n}).arrayMapper,l=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}).mixin,a=(i=e("bindStrategy"),i&&i.__esModule&&i||{"default":i}).BindStrategy,u=function(){};$traceurRuntime.createClass(u,{createRow:function(e,t){this.shiftItems(e,t)},removeRow:function(e,t){this.unshiftItems(e,t)},destroy:function(){this._arrayMap=null}},{get STRATEGY_NAME(){return"loose"}}),l(u,s),a.registerStrategy(u.STRATEGY_NAME,u)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper":56,bindStrategy:115}],117:[function(e,t,o){"use strict";Object.defineProperties(o,{StrictBindStrategy:{get:function(){return u}},__esModule:{value:!0}});var n,r,i,s=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper"),n&&n.__esModule&&n||{"default":n}).arrayMapper,l=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}).mixin,a=(i=e("bindStrategy"),i&&i.__esModule&&i||{"default":i}).BindStrategy,u=function(){};$traceurRuntime.createClass(u,{createRow:function(e,t){this.insertItems(e,t)},removeRow:function(e,t){this.removeItems(e,t)},destroy:function(){this._arrayMap=null}},{get STRATEGY_NAME(){return"strict"}}),l(u,s),a.registerStrategy(u.STRATEGY_NAME,u)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper":56,bindStrategy:115}],118:[function(e,t,o){"use strict";Object.defineProperties(o,{CollapsibleColumns:{get:function(){return R}},__esModule:{value:!0}});var n,r,i,s,l,a,u,l,d,c=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),n&&n.__esModule&&n||{"default":n}).objectEach,h=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,f=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,m=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),s&&s.__esModule&&s||{"default":s}),p=m.addClass,g=m.hasClass,w=m.fastInnerText,v=((l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager"),l&&l.__esModule&&l||{"default":l}).EventManager,a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),a&&a.__esModule&&a||{"default":a}),b=v.registerPlugin,C=(v.getPlugin,(u=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event"),u&&u.__esModule&&u||{"default":u}).stopImmediatePropagation),y=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager"),l&&l.__esModule&&l||{"default":l}).eventManager,_=(d=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),d&&d.__esModule&&d||{"default":d})["default"],R=function(e){$traceurRuntime.superConstructor(M).call(this,e),this.settings=null,this.buttonEnabledList={},this.hiddenColumnsPlugin=null,this.nestedHeadersPlugin=null,this.collapsedSections={},this.columnHeaderLevelCount=null,this.eventManager=null},M=R;$traceurRuntime.createClass(R,{isEnabled:function(){return!!this.hot.getSettings().collapsibleColumns},enablePlugin:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().collapsibleColumns,"boolean"!=typeof this.settings&&this.parseSettings(),this.hiddenColumnsPlugin=this.hot.getPlugin("hiddenColumns"),this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.checkDependencies(),this.addHook("afterRender",function(){return e.onAfterRender()}),this.addHook("afterInit",function(){return e.onAfterInit()}),this.addHook("afterGetColHeader",function(t,o){return e.onAfterGetColHeader(t,o)}),this.addHook("beforeOnCellMouseDown",function(t,o,n){return e.onBeforeOnCellMouseDown(t,o,n)}),this.eventManager=y(this.hot),$traceurRuntime.superGet(this,M.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.settings=null,this.buttonEnabledList={},this.hiddenColumnsPlugin=null,this.collapsedSections={},this.clearButtons(),$traceurRuntime.superGet(this,M.prototype,"disablePlugin").call(this)},clearButtons:function(){if(this.hot.view){var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,o=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,r=function(e){e&&e.parentNode.removeChild(e)};f(0,e-1,function(e){var i=t.childNodes[e],s=o.childNodes[e],l=n?n.childNodes[e]:null;f(0,i.childNodes.length-1,function(e){var t=i.childNodes[e].querySelector(".collapsibleIndicator");r(t),s&&s.childNodes[e]&&(t=s.childNodes[e].querySelector(".collapsibleIndicator"),r(t)),n&&l&&l.childNodes[e]&&(t=l.childNodes[e].querySelector(".collapsibleIndicator"),r(t))})},!0)}},parseSettings:function(){var e=this;c(this.settings,function(t){e.buttonEnabledList[t.row]||(e.buttonEnabledList[t.row]={}),e.buttonEnabledList[t.row][t.col]=t.collapsible})},meetsDependencies:function(){var e=this.hot.getSettings();return e.nestedHeaders&&e.hiddenColumns},checkDependencies:function(){var e=this.hot.getSettings();this.meetsDependencies()||(e.nestedHeaders||console.warn("You need to configure the Nested Headers plugin in order to use collapsible headers."),e.hiddenColumns||console.warn("You need to configure the Hidden Columns plugin in order to use collapsible headers."))},generateIndicator:function(e,t){var o=t.parentNode,n=o.parentNode,r=-1*n.childNodes.length+Array.prototype.indexOf.call(n.childNodes,o);if(Object.keys(this.buttonEnabledList).length>0&&(!this.buttonEnabledList[r]||!this.buttonEnabledList[r][e]))return null;var i=document.createElement("DIV");return p(i,"collapsibleIndicator"),this.collapsedSections[r]&&this.collapsedSections[r][e]===!0?(p(i,"collapsed"),w(i,"+")):(p(i,"expanded"),w(i,"-")),i},markSectionAs:function(e,t,o,n){switch(this.collapsedSections[t]||(this.collapsedSections[t]={}),e){case"collapsed":this.collapsedSections[t][o]=!0;break;case"expanded":this.collapsedSections[t][o]=void 0}if(n)for(var r=this.nestedHeadersPlugin.colspanArray,i=this.nestedHeadersPlugin.rowCoordsToLevel(t),s=this.nestedHeadersPlugin.getChildHeaders(t,o),l=r[i+1],a=1;a<s.length;a++)l&&l[s[a]].colspan>1&&this.markSectionAs(e,t+1,s[a],!0)},expandSection:function(e){this.markSectionAs("expanded",e.row,e.col,!0),this.toggleCollapsibleSection(e,"expand")},collapseSection:function(e){this.markSectionAs("collapsed",e.row,e.col,!0),this.toggleCollapsibleSection(e,"collapse")},toggleAllCollapsibleSections:function(e){var t=this,o=this.nestedHeadersPlugin.colspanArray;this.settings===!0?h(o,function(o,n){h(o,function(o,r){if(o.colspan>1){var i=t.nestedHeadersPlugin.levelToRowCoords(n),s=r;t.markSectionAs("collapse"===e?"collapsed":"expanded",i,s,!0),t.toggleCollapsibleSection({row:i,col:s},e)}})}):c(this.buttonEnabledList,function(o,n){c(o,function(o,r){t.markSectionAs("collapse"===e?"collapsed":"expanded",n,r,!0),t.toggleCollapsibleSection({row:n,col:r},e)})})},collapseAll:function(){this.toggleAllCollapsibleSections("collapse")},expandAll:function(){this.toggleAllCollapsibleSections("expand")},toggleCollapsibleSection:function(e,t){var o=this;e.row&&(e.row=parseInt(e.row,10)),e.col&&(e.col=parseInt(e.col,10));for(var n=this.hiddenColumnsPlugin.hiddenColumns,r=this.nestedHeadersPlugin.colspanArray,i=this.nestedHeadersPlugin.rowCoordsToLevel(e.row),s=r[i][e.col].colspan,l=this.nestedHeadersPlugin.getChildHeaders(e.row,e.col),a=i+1,u=r[a],d=u?u[l[0]].colspan||1:1;d===s&&a<this.columnHeaderLevelCount;)a+=1,u=r[a],d=u?u[l[0]].colspan||1:1;f(d,s-1,function(r){var i=e.col+r;switch(t){case"collapse":o.hiddenColumnsPlugin.isHidden(i)||n.push(i);break;case"expand":o.hiddenColumnsPlugin.isHidden(i)&&n.splice(n.indexOf(i),1)}}),this.hot.render()},onAfterGetColHeader:function(e,t){if(t.hasAttribute("colspan")&&t.getAttribute("colspan")>1&&e>=this.hot.getSettings().fixedColumnsLeft){var o=this.generateIndicator(e,t);null!==o&&t.querySelector("div:first-child").appendChild(o)}},onBeforeOnCellMouseDown:function(e,t){return g(e.target,"collapsibleIndicator")?(g(e.target,"expanded")?(this.collapsedSections[t.row]||(this.collapsedSections[t.row]=[]),this.markSectionAs("collapsed",t.row,t.col,!0),this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection(t,"collapse")):g(e.target,"collapsed")&&(this.markSectionAs("expanded",t.row,t.col,!0),this.eventManager.fireEvent(e.target,"mouseup"),this.toggleCollapsibleSection(t,"expand")),C(e),!1):void 0},onAfterInit:function(){this.columnHeaderLevelCount=this.hot.view.wt.getSetting("columnHeaders").length},onAfterRender:function(){this.nestedHeadersPlugin.enabled&&this.hiddenColumnsPlugin.enabled||this.disablePlugin()},destroy:function(){this.settings=null,this.buttonEnabledList=null,this.hiddenColumnsPlugin=null,this.nestedHeadersPlugin=null,this.collapsedSections=null,this.columnHeaderLevelCount=null,$traceurRuntime.superGet(this,M.prototype,"destroy").call(this)}},{},_),b("collapsibleColumns",R)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager":41,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event":47,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62}],119:[function(e,t,o){"use strict";Object.defineProperties(o,{ColumnSummary:{get:function(){return m}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base.js"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}),u=a.deepClone,d=a.objectEach,c=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,h=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins.js"),s&&s.__esModule&&s||{"default":s}),f=h.registerPlugin,m=(h.getPlugin,function(e){$traceurRuntime.superConstructor(p).call(this,e),this.endpoints=[],this.settings=null,this.currentEndpoint=null}),p=m;$traceurRuntime.createClass(m,{isEnabled:function(){return!!this.hot.getSettings().columnSummary},enablePlugin:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().columnSummary,this.hot.addHook("afterInit",function(){return e.onAfterInit()}),this.hot.addHook("afterChange",function(t,o){return e.onAfterChange(t,o)}),this.hot.addHook("afterCreateRow",function(t,o,n){return e.resetSetupAfterStructureAlteration("insert_row",t,o,n)}),this.hot.addHook("afterCreateCol",function(t,o,n){return e.resetSetupAfterStructureAlteration("insert_col",t,o,n)}),this.hot.addHook("afterRemoveRow",function(t,o,n){return e.resetSetupAfterStructureAlteration("remove_row",t,o,n)}),this.hot.addHook("afterRemoveCol",function(t,o,n){return e.resetSetupAfterStructureAlteration("remove_col",t,o,n)}),$traceurRuntime.superGet(this,p.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.endpoints=null,this.settings=null,this.currentEndpoint=null},resetSetupAfterStructureAlteration:function(e,t,o,n){if(!n){var r=e.indexOf("row")>-1?"row":"col",i=u(this.endpoints);d(i,function(n,i,s){"row"===r&&n.destinationRow>=t&&("insert_row"===e?n.alterRowOffset=o:"remove_row"===e&&(n.alterRowOffset=-1*o)),"col"===r&&n.destinationColumn>=t&&("insert_col"===e?n.alterColumnOffset=o:"remove_col"===e&&(n.alterColumnOffset=-1*o))}),this.endpoints=[],this.resetAllEndpoints(i),this.parseSettings(),d(this.endpoints,function(n,i,s){"row"===r&&n.destinationRow>=t&&("insert_row"===e?n.alterRowOffset=o:"remove_row"===e&&(n.alterRowOffset=-1*o)),"col"===r&&n.destinationColumn>=t&&("insert_col"===e?n.alterColumnOffset=o:"remove_col"===e&&(n.alterColumnOffset=-1*o))}),this.refreshAllEndpoints(!0)}},onAfterInit:function(){this.parseSettings(this.settings),this.refreshAllEndpoints(!0)},onAfterChange:function(e,t){e&&"columnSummary"!==t&&"loadData"!==t&&this.refreshChangedEndpoints(e)},parseSettings:function(){var e=this;d(this.settings,function(t,o,n){var r={};e.assignSetting(t,r,"ranges",[[0,e.hot.countRows()-1]]),e.assignSetting(t,r,"reversedRowCoords",!1),e.assignSetting(t,r,"destinationRow",new Error("You must provide a destination row for the Column Summary plugin in order to work properly!")),e.assignSetting(t,r,"destinationColumn",new Error("You must provide a destination column for the Column Summary plugin in order to work properly!")),e.assignSetting(t,r,"sourceColumn",t.destinationColumn),e.assignSetting(t,r,"type","sum"),e.assignSetting(t,r,"forceNumeric",!1),e.assignSetting(t,r,"suppressDataTypeErrors",!0),e.assignSetting(t,r,"suppressDataTypeErrors",!0),e.assignSetting(t,r,"customFunction",null),e.assignSetting(t,r,"readOnly",!0),e.assignSetting(t,r,"roundFloat",!1),e.endpoints.push(r)})},assignSetting:function(e,t,o,n){if("ranges"===o&&void 0===e[o])return void(t[o]=n);if("ranges"!==o||0!==e[o].length)if(void 0===e[o]){if(n instanceof Error)throw n;t[o]=n}else"destinationRow"===o&&t.reversedRowCoords?t[o]=this.hot.countRows()-e[o]-1:t[o]=e[o]},calculate:function(e){switch(e.type.toLowerCase()){case"sum":e.result=this.calculateSum(e);break;case"min":e.result=this.calculateMinMax(e,e.type);break;case"max":e.result=this.calculateMinMax(e,e.type);break;case"count":e.result=this.countEntries(e);break;case"average":e.result=this.calculateAverage(e);break;case"custom":e.result=e.customFunction.call(this,e)}},resetAllEndpoints:function(e){var t=this;e||(e=this.endpoints),c(e,function(e){t.resetEndpointValue(e)})},refreshAllEndpoints:function(e){var t=this;c(this.endpoints,function(e){t.currentEndpoint=e,t.calculate(e),t.setEndpointValue(e,"init")}),this.currentEndpoint=null},refreshChangedEndpoints:function(e){var t=this,o=[];c(e,function(e,n,r){(e[2]||"")+""!=e[3]+""&&c(t.endpoints,function(e,i){t.hot.propToCol(r[n][1])===e.sourceColumn&&-1===o.indexOf(i)&&o.push(i)})}),c(o,function(e){t.refreshEndpoint(t.endpoints[e])})},refreshEndpoint:function(e){this.currentEndpoint=e,this.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null},resetEndpointValue:function(e){var t=e.alterRowOffset||0,o=e.alterColumnOffset||0;return e.destinationRow+t>this.hot.countRows()||e.destinationColumn+o>this.hot.countCols()?void this.throwOutOfBoundsWarning():(this.hot.setCellMeta(e.destinationRow,e.destinationColumn,"readOnly",!1),this.hot.setCellMeta(e.destinationRow,e.destinationColumn,"className",""),void this.hot.setDataAtCell(e.destinationRow+t,e.destinationColumn+o,"","columnSummary"))},setEndpointValue:function(e,t){var o=e.alterRowOffset||0,n=e.alterColumnOffset||0,r=Math.max(-o,0),i=Math.max(-n,0);return e.destinationRow+r>this.hot.countRows()||e.destinationColumn+i>this.hot.countCols()?void this.throwOutOfBoundsWarning():("init"===t&&(this.hot.setCellMeta(e.destinationRow+r,e.destinationColumn+i,"readOnly",e.readOnly),this.hot.setCellMeta(e.destinationRow+r,e.destinationColumn+i,"className","columnSummaryResult")),e.roundFloat&&!isNaN(e.result)&&(e.result=e.result.toFixed(e.roundFloat)),this.hot.setDataAtCell(e.destinationRow,e.destinationColumn,e.result,"columnSummary"),e.alterRowOffset=void 0,void(e.alterColOffset=void 0))},throwOutOfBoundsWarning:function(){console.warn("One of the Column Summary plugins' destination points you provided is beyond the table boundaries!")},calculateSum:function(e){var t=0;for(var o in e.ranges)e.ranges.hasOwnProperty(o)&&(t+=this.getPartialSum(e.ranges[o],e.sourceColumn));return t},getPartialSum:function(e,t){var o=0,n=e[1]||e[0];do o+=this.getCellValue(n,t)||0,n--;while(n>=e[0]);return o},calculateMinMax:function(e,t){var o=null;for(var n in e.ranges)if(e.ranges.hasOwnProperty(n)){var r=this.getPartialMinMax(e.ranges[n],e.sourceColumn,t);if(null===o&&null!==r&&(o=r),null!==r)switch(t){case"min":o=Math.min(o,r);break;case"max":o=Math.max(o,r)}}return null===o?"Not enough data":o},getPartialMinMax:function(e,t,o){var n,r=null,i=e[1]||e[0];do{if(n=this.getCellValue(i,t)||null,null===r)r=n;else if(null!==n)switch(o){case"min":r=Math.min(r,n);break;case"max":r=Math.max(r,n)}i--}while(i>=e[0]);return r},countEmpty:function(e,t){var o,n=0,r=e[1]||e[0];do o=this.getCellValue(r,t),o||n++,r--;while(r>=e[0]);return n},countEntries:function(e){var t=0,o=e.ranges;for(var n in o)if(o.hasOwnProperty(n)){var r=void 0===o[n][1]?1:o[n][1]-o[n][0]+1,i=this.countEmpty(o[n],e.sourceColumn);t+=r,t-=i}return t},calculateAverage:function(e){var t=this.calculateSum(e),o=this.countEntries(e);return t/o},getCellValue:function(e,t){var o=this.hot.getDataAtCell(e,t),n=this.hot.getCellMeta(e,t).className||"";if(n.indexOf("columnSummaryResult")>-1)return null;if(this.currentEndpoint.forceNumeric&&("string"==typeof o&&(o=o.replace(/,/,".")),o=parseFloat(o,10)),isNaN(o)&&!this.currentEndpoint.suppressDataTypeErrors)throw new Error("ColumnSummary plugin: cell at (${row}, ${col}) is not in a numeric format. Cannot do the calculation.");return o}},{},l),f("columnSummary",m)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins.js":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base.js":62}],120:[function(e,t,o){"use strict";Object.defineProperties(o,{DropdownMenu:{get:function(){return N}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f,m,p=(n=e("../../browser"),n&&n.__esModule&&n||{"default":n})["default"],g=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),r&&r.__esModule&&r||{"default":r})["default"],w=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,v=((s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),s&&s.__esModule&&s||{"default":s}).objectEach,(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/commandExecutor"),l&&l.__esModule&&l||{"default":l}).CommandExecutor),b=(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager"),a&&a.__esModule&&a||{"default":a}).EventManager,C=(u=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),u&&u.__esModule&&u||{"default":u}),y=(C.getWindowScrollTop,C.getWindowScrollLeft,C.hasClass),_=(C.closest,(d=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/itemsFactory"),d&&d.__esModule&&d||{"default":d}).ItemsFactory),R=(c=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/menu"),c&&c.__esModule&&c||{"default":c}).Menu,M=(h=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),h&&h.__esModule&&h||{"default":h}).registerPlugin,S=(f=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event"),f&&f.__esModule&&f||{
"default":f}).stopPropagation,E=(m=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems"),m&&m.__esModule&&m||{"default":m}),O=E.COLUMN_LEFT,T=E.COLUMN_RIGHT,k=E.REMOVE_COLUMN,A=E.CLEAR_COLUMN,H=E.READ_ONLY,P=E.ALIGNMENT,x=E.SEPARATOR,L="changeType",N=function(e){var t=this;$traceurRuntime.superConstructor(D).call(this,e),this.eventManager=new b(this),this.commandExecutor=new v(this.hot),this.itemsFactory=null,this.menu=null,this.hot.addHook("afterGetColHeader",function(e,o){return t.onAfterGetColHeader(e,o)})},D=N;$traceurRuntime.createClass(N,{isEnabled:function(){return this.hot.getSettings().dropdownMenu},enablePlugin:function(){var e=this;if(!this.enabled){this.itemsFactory=new _(this.hot,D.DEFAULT_ITEMS);var t=this.hot.getSettings().dropdownMenu,o={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),$traceurRuntime.superGet(this,D.prototype,"enablePlugin").call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterDropdownMenuDefaultOptions",o),e.itemsFactory.setPredefinedItems(o.items);var n=e.itemsFactory.getItems(t);e.menu=new R(e.hot,{className:"htDropdownMenu",keepInViewport:!0}),e.menu.setMenuItems(n),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return e.executeCommand.apply(e,t)}),w(n,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,D.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.close(),this.menu&&this.menu.destroy(),$traceurRuntime.superGet(this,D.prototype,"disablePlugin").call(this)},registerEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",function(t){return e.onTableClick(t)})},open:function(e){this.menu&&(this.menu.open(),e.width&&this.menu.setOffset("left",e.width),this.menu.setPosition(e),this.menu.hotMenu.isHotTableEnv=this.hot.isHotTableEnv,p.eventManager.isHotTableEnv=this.hot.isHotTableEnv)},close:function(){this.menu&&this.menu.close()},executeCommand:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.commandExecutor.execute.apply(this.commandExecutor,e)},onTableClick:function(e){if(S(e),y(e.target,L)&&!this.menu.isOpened()){var t=e.target.getBoundingClientRect();this.open({left:t.left,top:t.top+e.target.offsetHeight+3,width:t.width,height:t.height})}},onAfterGetColHeader:function(e,t){var o=t.parentNode;if(o){var n=o.parentNode.childNodes,r=Array.prototype.indexOf.call(n,o);if(!(0>e||r!==n.length-1)){var i=t.querySelector("."+L);if(!this.enabled||!i){if(!this.enabled)return void(i&&i.parentNode.removeChild(i));var s=document.createElement("button");s.className=L,s.onclick=function(){return!1},t.firstChild.insertBefore(s,t.firstChild.firstChild)}}}},onMenuAfterOpen:function(){this.hot.runHooks("afterDropdownMenuShow",this)},onMenuAfterClose:function(){this.hot.listen(),this.hot.runHooks("afterDropdownMenuHide",this)},destroy:function(){this.close(),this.menu&&this.menu.destroy(),$traceurRuntime.superGet(this,D.prototype,"destroy").call(this)}},{get DEFAULT_ITEMS(){return[O,T,x,k,x,A,x,H,x,P]}},g),N.SEPARATOR={name:x},p.hooks.register("afterDropdownMenuDefaultOptions"),p.hooks.register("afterDropdownMenuShow"),p.hooks.register("afterDropdownMenuHide"),p.hooks.register("afterDropdownMenuExecute"),M("dropdownMenu",N)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager":41,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event":47,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/commandExecutor":69,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/itemsFactory":72,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/menu":73,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems":74,"../../browser":113}],121:[function(e,t,o){"use strict";Object.defineProperties(o,{DataProvider:{get:function(){return a}},__esModule:{value:!0}});var n,r,i,s=((n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),n&&n.__esModule&&n||{"default":n}).arrayEach,r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}),l=(s.extend,s.clone,(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach),a=function(e){this.hot=e,this.options={}};$traceurRuntime.createClass(a,{setOptions:function(e){this.options=e},getData:function(){var e=this,t=this._getDataRange(),o=t.startRow,n=t.startCol,r=t.endRow,i=t.endCol,s=this.options,a=[];return l(o,r,function(t){var o=[];!s.exportHiddenRows&&e._isHiddenRow(t)||(l(n,i,function(n){!s.exportHiddenColumns&&e._isHiddenColumn(n)||o.push(e.hot.getDataAtCell(t,n))}),a.push(o))}),a},getRowHeaders:function(){var e=this,t=[];if(this.options.rowHeaders){var o=this._getDataRange(),n=o.startRow,r=o.endRow,i=this.hot.getRowHeader();l(n,r,function(o){!e.options.exportHiddenRows&&e._isHiddenRow(o)||t.push(i[o])})}return t},getColumnHeaders:function(){var e=this,t=[];if(this.options.columnHeaders){var o=this._getDataRange(),n=o.startCol,r=o.endCol,i=this.hot.getColHeader();l(n,r,function(o){!e.options.exportHiddenColumns&&e._isHiddenColumn(o)||t.push(i[o])})}return t},_getDataRange:function(){var e,t,o,n,r=this.hot.countCols()-1,i=this.hot.countRows()-1,s=this.options.range,l=void 0===(e=s[0])?0:e,a=void 0===(t=s[1])?0:t,u=void 0===(o=s[2])?i:o,d=void 0===(n=s[3])?r:n;return l=Math.max(l,0),a=Math.max(a,0),u=Math.min(u,i),d=Math.min(d,r),{startRow:l,startCol:a,endRow:u,endCol:d}},_isHiddenRow:function(e){return this.hot.hasHook("hiddenRow")&&this.hot.runHooks("hiddenRow",e)},_isHiddenColumn:function(e){return this.hot.hasHook("hiddenColumn")&&this.hot.runHooks("hiddenColumn",e)}},{})},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52}],122:[function(e,t,o){"use strict";Object.defineProperties(o,{ExportFile:{get:function(){return p}},__esModule:{value:!0}});var n,r,i,s,l,a=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),n&&n.__esModule&&n||{"default":n})["default"],u=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}),d=(u.objectEach,u.extend,u.clone,(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),i&&i.__esModule&&i||{"default":i}).registerPlugin),c=(s=e("dataProvider"),s&&s.__esModule&&s||{"default":s}).DataProvider,h=(l=e("typeFactory"),l&&l.__esModule&&l||{"default":l}),f=h.typeFactory,m=h.EXPORT_TYPES,p=function(e){$traceurRuntime.superConstructor(g).call(this,e)},g=p;$traceurRuntime.createClass(p,{isEnabled:function(){return!0},exportAsString:function(e){var t=void 0!==arguments[1]?arguments[1]:{};return this._createTypeFormatter(e,t)["export"]()},exportAsBlob:function(e){var t=void 0!==arguments[1]?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,t))},downloadFile:function(e){var t=void 0!==arguments[1]?arguments[1]:{},o=this._createTypeFormatter(e,t),n=this._createBlob(o),r=window.URL||window.webkitURL,i=document.createElement("a"),s=o.options.filename+"."+o.options.fileExtension;if(void 0!==i.download){var l=r.createObjectURL(n);i.style.display="none",i.setAttribute("href",l),i.setAttribute("download",s),document.body.appendChild(i),i.dispatchEvent(new MouseEvent("click")),document.body.removeChild(i),setTimeout(function(){r.revokeObjectURL(l)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(n,s)},_createTypeFormatter:function(e){var t=void 0!==arguments[1]?arguments[1]:{};if(!m[e])throw new Error('Export format type "'+e+'" is not supported.');return f(e,new c(this.hot),t)},_createBlob:function(e){var t=null;return"undefined"!=typeof Blob&&(t=new Blob([e["export"]()],{type:e.options.mimeType+";charset="+e.options.encoding})),t}},{},a),d("exportFile",p)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,dataProvider:121,typeFactory:123}],123:[function(e,t,o){"use strict";function n(e,t,o){return"function"==typeof d[e]?new d[e](t,o):null}var r;Object.defineProperties(o,{TYPE_CSV:{get:function(){return l}},TYPE_EXCEL:{get:function(){return a}},TYPE_PDF:{get:function(){return u}},EXPORT_TYPES:{get:function(){return d}},typeFactory:{get:function(){return n}},__esModule:{value:!0}});var i,s=(i=e("types/csv.js"),i&&i.__esModule&&i||{"default":i}).Csv,l="csv",a="excel",u="pdf",d=(r={},Object.defineProperty(r,l,{value:s,configurable:!0,enumerable:!0,writable:!0}),r)},{"types/csv.js":125}],124:[function(e,t,o){"use strict";Object.defineProperties(o,{BaseType:{get:function(){return f}},__esModule:{value:!0}});var n,r,i,s,l=((n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),n&&n.__esModule&&n||{"default":n}).arrayEach,r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}),a=l.extend,u=l.clone,d=((i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string"),s&&s.__esModule&&s||{"default":s}),c=d.substitute,h=d.padStart,f=function(e,t){this.dataProvider=e,this.options=this._mergeOptions(t),this.dataProvider.setOptions(this.options)},m=f;$traceurRuntime.createClass(f,{_mergeOptions:function(e){var t=u(this.constructor.DEFAULT_OPTIONS),o=new Date;return t=a(u(m.DEFAULT_OPTIONS),t),t=a(t,e),t.filename=c(t.filename,{YYYY:o.getFullYear(),MM:h(o.getMonth()+1,2,"0"),DD:h(o.getDate(),2,"0")}),t}},{get DEFAULT_OPTIONS(){return{mimeType:"text/plain",fileExtension:"txt",filename:"Handsontable [YYYY]-[MM]-[DD]",encoding:"utf-8",columnHeaders:!1,rowHeaders:!1,exportHiddenColumns:!1,exportHiddenRows:!1,range:[]}}})},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string":54}],125:[function(e,t,o){"use strict";Object.defineProperties(o,{Csv:{get:function(){return m}},__esModule:{value:!0}});var n,r,i,s=(n=e("_base.js"),n&&n.__esModule&&n||{"default":n}).BaseType,l=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}),a=l.arrayEach,u=l.arrayMap,d=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed"),i&&i.__esModule&&i||{"default":i}).stringify,c=String.fromCharCode(13),h=String.fromCharCode(34),f=String.fromCharCode(10),m=function(e,t){$traceurRuntime.superConstructor(p).call(this,e,t)},p=m;$traceurRuntime.createClass(m,{"export":function(){var e=this,t=this.options,o=this.dataProvider.getData(),n=this.dataProvider.getColumnHeaders(),r=n.length>0,i=this.dataProvider.getRowHeaders(),s=i.length>0,l="\ufeff";return r&&(n=u(n,function(t){return e._escapeCell(t,!0)}),s&&(l+=t.columnDelimiter),l+=n.join(t.columnDelimiter),l+=t.rowDelimiter),a(o,function(o,n){n>0&&(l+=t.rowDelimiter),s&&(l+=e._escapeCell(i[n])+t.columnDelimiter),l+=o.map(function(t){return e._escapeCell(t)}).join(t.columnDelimiter)}),l},_escapeCell:function(e){var t=void 0!==arguments[1]?arguments[1]:!1;return e=d(e),""!==e&&(t||e.indexOf(c)>=0||e.indexOf(h)>=0||e.indexOf(f)>=0||e.indexOf(this.options.columnDelimiter)>=0)&&(e=e.replace(new RegExp('"',"g"),'""'),e='"'+e+'"'),e}},{get DEFAULT_OPTIONS(){return{mimeType:"text/csv",fileExtension:"csv",columnDelimiter:",",rowDelimiter:"\r\n"}}},s)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed":50,"_base.js":124}],126:[function(e,t,o){"use strict";Object.defineProperties(o,{BaseComponent:{get:function(){return c}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),n&&n.__esModule&&n||{"default":n}).arrayEach,a=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}).mixin,u=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks"),i&&i.__esModule&&i||{"default":i}).localHooks,d=(s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/stateSaver"),s&&s.__esModule&&s||{"default":s}).stateSaver,c=function(e){this.hot=e,this.elements=[],this.hidden=!1};$traceurRuntime.createClass(c,{reset:function(){l(this.elements,function(e){return e.reset()})},hide:function(){this.hidden=!0},show:function(){this.hidden=!1},isHidden:function(){return this.hidden},destroy:function(){this.clearLocalHooks(),l(this.elements,function(e){return e.destroy()}),this.elements=null,this.hot=null}},{}),a(c,u),a(c,d)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks":57,"../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/stateSaver":58}],127:[function(e,t,o){"use strict";Object.defineProperties(o,{ActionBarComponent:{get:function(){return h}},__esModule:{value:!0}});var n,r,i,s,l,a=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).addClass,u=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,d=(i=e("_base"),i&&i.__esModule&&i||{"default":i}).BaseComponent,c=(s=e("ui/input"),s&&s.__esModule&&s||{"default":s}).InputUI,h=((l=e("ui/select"),l&&l.__esModule&&l||{"default":l}).SelectUI,function(e){$traceurRuntime.superConstructor(f).call(this,e),this.elements.push(new c(this.hot,{type:"button",value:"OK",className:"htUIButton htUIButtonOK",identifier:f.BUTTON_OK})),this.elements.push(new c(this.hot,{type:"button",value:"Cancel",className:"htUIButton htUIButtonCancel",identifier:f.BUTTON_CANCEL})),this.registerHooks()}),f=h;$traceurRuntime.createClass(h,{registerHooks:function(){var e=this;u(this.elements,function(t){t.addLocalHook("click",function(t,o){return e.onButtonClick(t,o)})})},getMenuItemDescriptor:function(){var e=this;return{key:"filter_action_bar",name:"Action bar",isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,o,n,r,i,s){return a(o.parentNode,"htFiltersMenuActionBar"),u(e.elements,function(e){return o.appendChild(e.element)}),o}}},accept:function(){this.runLocalHooks("accept")},cancel:function(){this.runLocalHooks("cancel")},onButtonClick:function(e,t){t.options.identifier===f.BUTTON_OK?this.accept():this.cancel()}},{get BUTTON_OK(){return"ok"},get BUTTON_CANCEL(){return"cancel"}},d)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,_base:126,"ui/input":158,"ui/select":160}],128:[function(e,t,o){"use strict";Object.defineProperties(o,{ConditionComponent:{get:function(){return O}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).addClass,m=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event"),r&&r.__esModule&&r||{"default":r}).stopImmediatePropagation,p=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),i&&i.__esModule&&i||{"default":i}),g=p.arrayEach,w=p.arrayFilter,v=((s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),s&&s.__esModule&&s||{"default":s}).extend,(l=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/unicode"),l&&l.__esModule&&l||{"default":l}).isKey),b=(a=e("_base"),a&&a.__esModule&&a||{"default":a}).BaseComponent,C=(u=e("constants"),u&&u.__esModule&&u||{"default":u}),y=C.getOptionsList,_=C.FORMULA_NONE,R=C.FORMULA_BY_VALUE,M=(d=e("ui/input"),d&&d.__esModule&&d||{"default":d}).InputUI,S=(c=e("ui/select"),c&&c.__esModule&&c||{"default":c}).SelectUI,E=(h=e("formulaRegisterer"),h&&h.__esModule&&h||{"default":h}).getFormulaDescriptor,O=function(e){$traceurRuntime.superConstructor(T).call(this,e),this.elements.push(new S(this.hot)),this.elements.push(new M(this.hot,{placeholder:"Value"})),this.elements.push(new M(this.hot,{placeholder:"Second value"})),this.registerHooks()},T=O;$traceurRuntime.createClass(O,{registerHooks:function(){var e=this;this.getSelectElement().addLocalHook("select",function(t){return e.onConditionSelect(t)}),g(this.getInputElements(),function(t){t.addLocalHook("keydown",function(t){return e.onInputKeyDown(t)})})},setState:function(e){var t=this;this.reset(),e&&(this.getSelectElement().setValue(e.command),g(e.args,function(o,n){var r=t.getInputElement(n);r.setValue(o),r[e.command.inputsCount>n?"show":"hide"](),n||setTimeout(function(){return r.focus()},10)}))},getState:function(){var e=this.getSelectElement().getValue()||E(_),t=[];return g(this.getInputElements(),function(o,n){e.inputsCount>n&&t.push(o.getValue())}),{command:e,args:t}},updateState:function(e){var t=e,o=t.column,n=t.formulas,r=w(n,function(e){return e.name!==R})[0];r&&r.name===R||this.setCachedState(o,{command:E(r?r.name:_),args:r?r.args:[]})},getSelectElement:function(){return this.elements.filter(function(e){return e instanceof S})[0]},getInputElement:function(){var e=void 0!==arguments[0]?arguments[0]:0;return this.getInputElements()[e]},getInputElements:function(){return this.elements.filter(function(e){return e instanceof M})},getMenuItemDescriptor:function(){var e=this;return{key:"filter_by_condition",name:"",isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,o,n,r,i,s){f(o.parentNode,"htFiltersMenuCondition");var l=document.createElement("div");return f(l,"htFiltersMenuLabel"),l.textContent="Filter by condition:",o.appendChild(l),g(e.elements,function(e){return o.appendChild(e.element)}),o}}},reset:function(){var e=this.hot.getPlugin("filters").getSelectedColumn(),t=this.hot.getDataType.apply(this.hot,this.hot.getSelected()||[0,e]),o=y(t);g(this.getInputElements(),function(e){return e.hide()}),this.getSelectElement().setItems(o),$traceurRuntime.superGet(this,T.prototype,"reset").call(this),this.getSelectElement().setValue(o[0])},onConditionSelect:function(e){g(this.getInputElements(),function(t,o){t[e.inputsCount>o?"show":"hide"](),o||setTimeout(function(){return t.focus()},10)})},onInputKeyDown:function(e){v(e.keyCode,"ENTER")?(this.runLocalHooks("accept"),m(e)):v(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),m(e))}},{},b)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event":47,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/unicode":55,_base:126,constants:130,formulaRegisterer:155,"ui/input":158,"ui/select":160}],129:[function(e,t,o){"use strict";Object.defineProperties(o,{ValueComponent:{get:function(){return k}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}).addClass,m=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event"),r&&r.__esModule&&r||{"default":r}).stopImmediatePropagation,p=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),i&&i.__esModule&&i||{"default":i}),g=p.arrayEach,w=(p.arrayUnique,p.arrayFilter),v=p.arrayMap,b=((s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string"),s&&s.__esModule&&s||{"default":s}).stringify,l=e("utils"),l&&l.__esModule&&l||{"default":l}),C=b.unifyColumnValues,y=b.intersectValues,_=(a=e("_base"),a&&a.__esModule&&a||{"default":a}).BaseComponent,R=(u=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/unicode"),u&&u.__esModule&&u||{"default":u}).isKey,M=(d=e("ui/multipleSelect"),d&&d.__esModule&&d||{"default":d}).MultipleSelectUI,S=(c=e("constants"),c&&c.__esModule&&c||{"default":c}),E=S.FORMULA_BY_VALUE,O=S.FORMULA_NONE,T=(h=e("formulaRegisterer"),h&&h.__esModule&&h||{"default":h}).getFormulaDescriptor,k=function(e){$traceurRuntime.superConstructor(A).call(this,e),this.elements.push(new M(this.hot)),this.registerHooks()},A=k;$traceurRuntime.createClass(k,{registerHooks:function(){var e=this;this.getMultipleSelectElement().addLocalHook("keydown",function(t){return e.onInputKeyDown(t)})},setState:function(e){if(this.reset(),e&&e.command.key===E){var t=this.getMultipleSelectElement();t.setItems(e.itemsSnapshot),t.setValue(e.args[0])}},getState:function(){var e=this.getMultipleSelectElement(),t=e.getItems();return{command:{key:e.isSelectedAllValues()||!t.length?O:E},args:[e.getValue()],itemsSnapshot:t}},updateState:function(e,t,o){var n=this,r=e,i=r.column,s=r.formulas,l=function(e,t,r){var i=w(t,function(e){return e.name===E})[0],s={};if(i){var l=v(o(e,r),function(e){return e.value});l=C(l);var a=[],u=y(l,i.args[0],function(e){e.checked&&a.push(e.value)});s.args=[a],s.command=T(E),s.itemsSnapshot=u}else s.args=[],s.command=T(O);n.setCachedState(e,s)};if(l(i,s),t.length){var a=t[0],u=a.column,d=a.formulas;l(u,d,e)}},getMultipleSelectElement:function(){return this.elements.filter(function(e){return e instanceof M})[0]},getMenuItemDescriptor:function(){var e=this;return{key:"filter_by_value",name:"Filter by value",isCommand:!1,disableSelection:!0,hidden:function(){return e.isHidden()},renderer:function(t,o,n,r,i,s){f(o.parentNode,"htFiltersMenuValue");var l=document.createElement("div");return f(l,"htFiltersMenuLabel"),l.textContent="Filter by value:",o.appendChild(l),g(e.elements,function(e){return o.appendChild(e.element)}),o}}},reset:function(){var e=this._getColumnVisibleValues();e=C(e),this.getMultipleSelectElement().setItems(y(e,e)),$traceurRuntime.superGet(this,A.prototype,"reset").call(this),this.getMultipleSelectElement().setValue(e)},onInputKeyDown:function(e){R(e.keyCode,"ESCAPE")&&(this.runLocalHooks("cancel"),m(e))},_getColumnVisibleValues:function(){var e=this.hot.getPlugin("filters").getSelectedColumn();return this.hot.getDataAtCol(e)}},{},_)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event":47,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string":54,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/unicode":55,_base:126,constants:130,formulaRegisterer:155,"ui/multipleSelect":159,utils:161}],130:[function(e,t,o){"use strict";function n(e){var t=[];return re[e]||(e=oe),H(re[e],function(e){var o;o=e===P?{name:P}:A(x(e)),t.push(o)}),t}var r;Object.defineProperties(o,{FORMULA_NONE:{get:function(){return L}},FORMULA_EMPTY:{get:function(){return N}},FORMULA_NOT_EMPTY:{get:function(){return D}},FORMULA_EQUAL:{get:function(){return I}},FORMULA_NOT_EQUAL:{get:function(){return W}},FORMULA_GREATER_THAN:{get:function(){return F}},FORMULA_GREATER_THAN_OR_EQUAL:{get:function(){return B}},FORMULA_LESS_THAN:{get:function(){return j}},FORMULA_LESS_THAN_OR_EQUAL:{get:function(){return V}},FORMULA_BETWEEN:{get:function(){return U}},FORMULA_NOT_BETWEEN:{get:function(){return z}},FORMULA_BEGINS_WITH:{get:function(){return G}},FORMULA_ENDS_WITH:{get:function(){return $}},FORMULA_CONTAINS:{get:function(){return Y}},FORMULA_NOT_CONTAINS:{get:function(){return K}},FORMULA_DATE_BEFORE:{get:function(){return X}},FORMULA_DATE_AFTER:{get:function(){return q}},FORMULA_TOMORROW:{get:function(){return Q}},FORMULA_TODAY:{get:function(){return J}},FORMULA_YESTERDAY:{get:function(){return Z}},FORMULA_BY_VALUE:{get:function(){return ee}},TYPE_NUMERIC:{get:function(){return te}},TYPE_TEXT:{get:function(){return oe}},TYPE_DATE:{get:function(){return ne}},TYPES:{get:function(){return re}},getOptionsList:{get:function(){return n}},__esModule:{value:!0}});var i,s,l,a,u,d,c,h,f,m,p,g,w,v,b,C,y,_,R,M,S,E,O,T,k,A=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),i&&i.__esModule&&i||{"default":i}).clone,H=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),s&&s.__esModule&&s||{"default":s}).arrayEach,P=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems"),l&&l.__esModule&&l||{"default":l}).SEPARATOR,x=(a=e("formulaRegisterer"),a&&a.__esModule&&a||{"default":a}).getFormulaDescriptor,L=(u=e("formula/none"),u&&u.__esModule&&u||{"default":u}).FORMULA_NAME,N=(d=e("formula/empty"),d&&d.__esModule&&d||{"default":d}).FORMULA_NAME,D=(c=e("formula/notEmpty"),c&&c.__esModule&&c||{"default":c}).FORMULA_NAME,I=(h=e("formula/equal"),h&&h.__esModule&&h||{"default":h}).FORMULA_NAME,W=(f=e("formula/notEqual"),f&&f.__esModule&&f||{"default":f}).FORMULA_NAME,F=(m=e("formula/greaterThan"),m&&m.__esModule&&m||{"default":m}).FORMULA_NAME,B=(p=e("formula/greaterThanOrEqual"),p&&p.__esModule&&p||{"default":p}).FORMULA_NAME,j=(g=e("formula/lessThan"),g&&g.__esModule&&g||{"default":g}).FORMULA_NAME,V=(w=e("formula/lessThanOrEqual"),w&&w.__esModule&&w||{"default":w}).FORMULA_NAME,U=(v=e("formula/between"),v&&v.__esModule&&v||{"default":v}).FORMULA_NAME,z=(b=e("formula/notBetween"),b&&b.__esModule&&b||{"default":b}).FORMULA_NAME,G=(C=e("formula/beginsWith"),C&&C.__esModule&&C||{"default":C}).FORMULA_NAME,$=(y=e("formula/endsWith"),y&&y.__esModule&&y||{"default":y}).FORMULA_NAME,Y=(_=e("formula/contains"),_&&_.__esModule&&_||{"default":_}).FORMULA_NAME,K=(R=e("formula/notContains"),R&&R.__esModule&&R||{"default":R}).FORMULA_NAME,X=(M=e("formula/date/before"),M&&M.__esModule&&M||{"default":M}).FORMULA_NAME,q=(S=e("formula/date/after"),S&&S.__esModule&&S||{"default":S}).FORMULA_NAME,Q=(E=e("formula/date/tomorrow"),E&&E.__esModule&&E||{"default":E}).FORMULA_NAME,J=(O=e("formula/date/today"),O&&O.__esModule&&O||{"default":O}).FORMULA_NAME,Z=(T=e("formula/date/yesterday"),T&&T.__esModule&&T||{"default":T}).FORMULA_NAME,ee=(k=e("formula/byValue"),k&&k.__esModule&&k||{"default":k}).FORMULA_NAME,te="numeric",oe="text",ne="date",re=(r={},Object.defineProperty(r,te,{value:[L,P,N,D,P,I,W,P,F,B,j,V,U,z],configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,oe,{value:[L,P,N,D,P,I,W,P,G,$,P,Y,K],configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,ne,{value:[L,P,N,D,P,I,W,P,X,q,U,P,Q,J,Z],configurable:!0,enumerable:!0,writable:!0}),r)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems":74,"formula/beginsWith":133,"formula/between":134,"formula/byValue":135,"formula/contains":136,"formula/date/after":137,"formula/date/before":138,"formula/date/today":139,"formula/date/tomorrow":140,"formula/date/yesterday":141,"formula/empty":142,"formula/endsWith":143,"formula/equal":144,"formula/greaterThan":145,"formula/greaterThanOrEqual":146,"formula/lessThan":147,"formula/lessThanOrEqual":148,"formula/none":149,"formula/notBetween":150,"formula/notContains":151,"formula/notEmpty":152,"formula/notEqual":153,formulaRegisterer:155}],131:[function(e,t,o){"use strict";Object.defineProperties(o,{DataFilter:{get:function(){return l}},__esModule:{value:!0}});var n,r,i=(n=e("../../browser"),n&&n.__esModule&&n||{"default":n})["default"],s=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,l=function(e){var t=void 0!==arguments[1]?arguments[1]:function(e){return[]};this.formulaCollection=e,this.columnDataFactory=t};$traceurRuntime.createClass(l,{filter:function(){var e=this,t=[];return this.formulaCollection.isEmpty()||s(this.formulaCollection.orderStack,function(o,n){var r=e.columnDataFactory(o);n&&(r=e._getIntersectData(r,t)),t=e.filterByColumn(o,r)}),t},filterByColumn:function(e){var t=void 0!==arguments[1]?arguments[1]:[],o=this,n=[];return s(t,function(t){void 0!==t&&o.formulaCollection.isMatch(t,e)&&n.push(t)}),n},_getIntersectData:function(e,t){var o=[];return s(t,function(t){var n=t.meta.visualRow;void 0!==e[n]&&(o[n]=e[n])}),o}},{}),i.utils.FiltersDataFilter=l},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../browser":113}],132:[function(e,t,o){"use strict";Object.defineProperties(o,{Filters:{get:function(){return I}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h,f,m,p,g,w,v=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),n&&n.__esModule&&n||{"default":n})["default"],b=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}),C=b.arrayEach,y=b.arrayMap,_=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,R=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager"),s&&s.__esModule&&s||{"default":s}).EventManager,M=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),l&&l.__esModule&&l||{"default":l}),S=M.addClass,E=M.removeClass,O=M.closest,T=(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),a&&a.__esModule&&a||{"default":a}).registerPlugin,k=(u=e("component/condition"),u&&u.__esModule&&u||{"default":u}).ConditionComponent,A=(d=e("component/value"),d&&d.__esModule&&d||{"default":d}).ValueComponent,H=(c=e("component/actionBar"),c&&c.__esModule&&c||{"default":c}).ActionBarComponent,P=(h=e("formulaCollection"),h&&h.__esModule&&h||{"default":h}).FormulaCollection,x=(f=e("dataFilter"),f&&f.__esModule&&f||{"default":f}).DataFilter,L=(m=e("formulaUpdateObserver"),m&&m.__esModule&&m||{"default":m}).FormulaUpdateObserver,N=((p=e("formulaRegisterer"),p&&p.__esModule&&p||{"default":p}).getFormulaDescriptor,(g=e("constants"),g&&g.__esModule&&g||{
"default":g}).FORMULA_NONE),D=(w=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems"),w&&w.__esModule&&w||{"default":w}).SEPARATOR,I=function(e){var t=this;$traceurRuntime.superConstructor(W).call(this,e),this.eventManager=new R(this),this.trimRowsPlugin=null,this.dropdownMenuPlugin=null,this.formulaCollection=null,this.formulaUpdateObserver=null,this.conditionComponent=null,this.valueComponent=null,this.actionBarComponent=null,this.lastSelectedColumn=null,this.hot.addHook("afterGetColHeader",function(e,o){return t.onAfterGetColHeader(e,o)})},W=I;$traceurRuntime.createClass(I,{isEnabled:function(){return!!this.hot.getSettings().filters},enablePlugin:function(){var e=this;if(!this.enabled){this.trimRowsPlugin=this.hot.getPlugin("trimRows"),this.dropdownMenuPlugin=this.hot.getPlugin("dropdownMenu");var t=function(t){return t.addLocalHook("accept",function(){return e.onActionBarSubmit("accept")}),t.addLocalHook("cancel",function(){return e.onActionBarSubmit("cancel")}),t};this.conditionComponent||(this.conditionComponent=t(new k(this.hot))),this.valueComponent||(this.valueComponent=t(new A(this.hot))),this.actionBarComponent||(this.actionBarComponent=t(new H(this.hot))),this.formulaCollection||(this.formulaCollection=new P),this.formulaUpdateObserver||(this.formulaUpdateObserver=new L(this.formulaCollection,function(t){return e.getDataMapAtColumn(t)}),this.formulaUpdateObserver.addLocalHook("update",function(){for(var t,o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return(t=e.conditionComponent).updateState.apply(t,$traceurRuntime.spread(o))}),this.formulaUpdateObserver.addLocalHook("update",function(){for(var t,o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];return(t=e.valueComponent).updateState.apply(t,$traceurRuntime.spread(o))})),this.conditionComponent.show(),this.valueComponent.show(),this.actionBarComponent.show(),this.registerEvents(),this.addHook("afterDropdownMenuDefaultOptions",function(t){return e.onAfterDropdownMenuDefaultOptions(t)}),this.addHook("afterDropdownMenuShow",function(){return e.onAfterDropdownMenuShow()}),this.addHook("afterDropdownMenuHide",function(){return e.onAfterDropdownMenuHide()}),this.hot.getSettings().trimRows=!0,this.trimRowsPlugin.enablePlugin(),this.hot.getSettings().dropdownMenu&&(this.dropdownMenuPlugin.disablePlugin(),this.dropdownMenuPlugin.enablePlugin()),$traceurRuntime.superGet(this,W.prototype,"enablePlugin").call(this)}},registerEvents:function(){var e=this;this.eventManager.addEventListener(this.hot.rootElement,"click",function(t){return e.onTableClick(t)})},disablePlugin:function(){this.enabled&&(this.conditionComponent.hide(),this.valueComponent.hide(),this.actionBarComponent.hide(),this.formulaCollection.clean(),this.trimRowsPlugin.untrimAll()),$traceurRuntime.superGet(this,W.prototype,"disablePlugin").call(this)},addFormula:function(e,t,o){this.formulaCollection.addFormula(e,{command:{key:t},args:o})},removeFormulas:function(e){this.formulaCollection.removeFormulas(e)},clearFormulas:function(e){void 0===e?this.formulaCollection.clean():this.formulaCollection.clearFormulas(e)},filter:function(){var e=this._createDataFilter(),t=!this.formulaCollection.isEmpty(),o=[],n=this.formulaCollection.exportAllFormulas(),r=this.hot.runHooks("beforeFilter",n);if(r!==!1)if(t){var i=[];this.trimRowsPlugin.trimmedRows.length=0,o=y(e.filter(),function(e){return e.meta.visualRow}),_(this.hot.countSourceRows()-1,function(e){-1===o.indexOf(e)&&i.push(e)}),this.trimRowsPlugin.trimRows(i),o.length||this.hot.deselectCell()}else this.trimRowsPlugin.untrimAll();this.hot.view.wt.wtOverlays.adjustElementsSize(!0),this.hot.render(),this.clearColumnSelection(),this.hot.runHooks("afterFilter",n)},getSelectedColumn:function(){return this.lastSelectedColumn},clearColumnSelection:function(){var e=this.hot.getSelected()||[],t=e[0],o=e[1];void 0!==t&&void 0!==o&&this.hot.selectCell(t,o)},getDataMapAtColumn:function(e){var t=this,o=[];return C(this.hot.getSourceDataAtCol(e),function(n,r){var i=t.hot.getCellMeta(r,e),s=i.row,l=i.col,a=i.visualCol,u=i.visualRow,d=i.type,c=i.instance,h=i.dateFormat;o.push({meta:{row:s,col:l,visualCol:a,visualRow:u,type:d,instance:c,dateFormat:h},value:n})}),o},onAfterDropdownMenuShow:function(){var e=this.getSelectedColumn();this.conditionComponent.restoreState(e),this.valueComponent.restoreState(e)},onAfterDropdownMenuHide:function(){this.conditionComponent.getSelectElement().closeOptions()},onAfterDropdownMenuDefaultOptions:function(e){e.items.push({name:D}),e.items.push(this.conditionComponent.getMenuItemDescriptor()),e.items.push(this.valueComponent.getMenuItemDescriptor()),e.items.push(this.actionBarComponent.getMenuItemDescriptor())},onActionBarSubmit:function(e){if("accept"===e){var t=this.getSelectedColumn(),o=this.conditionComponent.getState(),n=this.valueComponent.getState();this.formulaUpdateObserver.groupChanges(),this.formulaCollection.clearFormulas(t),o.command.key===N&&n.command.key===N&&this.formulaCollection.removeFormulas(t),o.command.key!==N&&this.formulaCollection.addFormula(t,o),n.command.key!==N&&this.formulaCollection.addFormula(t,n),this.formulaUpdateObserver.flush(),this.conditionComponent.saveState(t),this.valueComponent.saveState(t)}this.dropdownMenuPlugin.close(),this.filter()},onAfterGetColHeader:function(e,t){this.enabled&&this.formulaCollection.hasFormulas(e)?S(t,"htFiltersActive"):E(t,"htFiltersActive")},onTableClick:function(e){var t=O(e.target,"TH");t&&(this.lastSelectedColumn=this.hot.getCoords(t).col)},destroy:function(){this.enabled&&(this.conditionComponent.destroy(),this.valueComponent.destroy(),this.actionBarComponent.destroy(),this.formulaCollection.destroy(),this.formulaUpdateObserver.destroy()),$traceurRuntime.superGet(this,W.prototype,"destroy").call(this)},_createDataFilter:function(){var e=void 0!==arguments[0]?arguments[0]:this.formulaCollection,t=this;return new x(e,function(e){return t.getDataMapAtColumn(e)})}},{},v),T("filters",I)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager":41,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems":74,"component/actionBar":127,"component/condition":128,"component/value":129,constants:130,dataFilter:131,formulaCollection:154,formulaRegisterer:155,formulaUpdateObserver:156}],133:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return a(u(e.value).toLowerCase(),u(t))}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return d}},__esModule:{value:!0}});var r,i,s,l=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,a=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string"),i&&i.__esModule&&i||{"default":i}).startsWith,u=(s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed"),s&&s.__esModule&&s||{"default":s}).stringify,d="begins_with";l(d,n,{name:"Begins with",inputsCount:1})},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed":50,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string":54,formulaRegisterer:155}],134:[function(e,t,o){"use strict";function n(e){var t=void 0!==arguments[1]?arguments[1]:inputValues,o=t[0],n=t[1];if("numeric"===e.meta.type){var r=parseFloat(o,10),i=parseFloat(n,10);o=Math.min(r,i),n=Math.max(r,i)}else if("date"===e.meta.type){var s=u(c,[n]),l=u(d,[o]);return s(e)&&l(e)}return e.value>=o&&e.value<=n}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return h}},__esModule:{value:!0}});var r,i,s,l=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}),a=l.registerFormula,u=l.getFormula,d=(i=e("date/after"),i&&i.__esModule&&i||{"default":i}).FORMULA_NAME,c=(s=e("date/before"),s&&s.__esModule&&s||{"default":s}).FORMULA_NAME,h="between";a(h,n,{name:"Is between",inputsCount:2})},{"date/after":137,"date/before":138,formulaRegisterer:155}],135:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0],o=t.indexOf(e.value)>=0;return o||(o=t.indexOf(null==e.value?"":e.value)>=0),o}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="by_value";i(s,n,{name:"By value",inputsCount:0})},{formulaRegisterer:155}],136:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return l(e.value).toLowerCase().indexOf(l(t))>=0}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,l=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed"),i&&i.__esModule&&i||{"default":i}).stringify,a="contains";s(a,n,{name:"Contains",inputsCount:1})},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed":50,formulaRegisterer:155}],137:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0],o=l(e.value,e.meta.dateFormat),n=l(t,e.meta.dateFormat);return o.isValid()&&n.isValid()?o.diff(n)>=0:!1}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,l=(i=e("moment"),i&&i.__esModule&&i||{"default":i})["default"],a="date_after";s(a,n,{name:"After",inputsCount:1})},{formulaRegisterer:155,moment:void 0}],138:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0],o=l(e.value,e.meta.dateFormat),n=l(t,e.meta.dateFormat);return o.isValid()&&n.isValid()?o.diff(n)<=0:!1}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,l=(i=e("moment"),i&&i.__esModule&&i||{"default":i})["default"],a="date_before";s(a,n,{name:"Before",inputsCount:1})},{formulaRegisterer:155,moment:void 0}],139:[function(e,t,o){"use strict";function n(e){var t=l(e.value,e.meta.dateFormat);return t.isValid()?t.isSame(l().startOf("day"),"d"):!1}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,l=(i=e("moment"),i&&i.__esModule&&i||{"default":i})["default"],a="date_today";s(a,n,{name:"Today",inputsCount:0})},{formulaRegisterer:155,moment:void 0}],140:[function(e,t,o){"use strict";function n(e){var t=l(e.value,e.meta.dateFormat);return t.isValid()?t.isSame(l().subtract(-1,"days").startOf("day"),"d"):!1}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,l=(i=e("moment"),i&&i.__esModule&&i||{"default":i})["default"],a="date_tomorrow";s(a,n,{name:"Tomorrow",inputsCount:0})},{formulaRegisterer:155,moment:void 0}],141:[function(e,t,o){"use strict";function n(e){var t=l(e.value,e.meta.dateFormat);return t.isValid()?t.isSame(l().subtract(1,"days").startOf("day"),"d"):!1}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,l=(i=e("moment"),i&&i.__esModule&&i||{"default":i})["default"],a="date_yesterday";s(a,n,{name:"Yesterday",inputsCount:0})},{formulaRegisterer:155,moment:void 0}],142:[function(e,t,o){"use strict";function n(e){return""===e.value||null===e.value||void 0===e.value}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="empty";i(s,n,{name:"Is empty",inputsCount:0})},{formulaRegisterer:155}],143:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return a(u(e.value).toLowerCase(),u(t))}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return d}},__esModule:{value:!0}});var r,i,s,l=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,a=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string"),i&&i.__esModule&&i||{"default":i}).endsWith,u=(s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed"),s&&s.__esModule&&s||{"default":s}).stringify,d="ends_with";l(d,n,{name:"Ends with",inputsCount:1})},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed":50,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string":54,formulaRegisterer:155}],144:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return s(e.value).toLowerCase()===s(t)}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return a}},__esModule:{value:!0}});var r,i,s=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed"),r&&r.__esModule&&r||{"default":r}).stringify,l=(i=e("formulaRegisterer"),i&&i.__esModule&&i||{"default":i}).registerFormula,a="eq";l(a,n,{name:"Is equal to",inputsCount:1})},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/mixed":50,formulaRegisterer:155}],145:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return"numeric"===e.meta.type&&(t=parseFloat(t,10)),e.value>t}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="gt";i(s,n,{name:"Greater than",inputsCount:1})},{formulaRegisterer:155}],146:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return"numeric"===e.meta.type&&(t=parseFloat(t,10)),e.value>=t}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="gte";i(s,n,{name:"Greater than or equal to",inputsCount:1})},{formulaRegisterer:155}],147:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return"numeric"===e.meta.type&&(t=parseFloat(t,10)),e.value<t}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="lt";i(s,n,{name:"Less than",inputsCount:1})},{formulaRegisterer:155}],148:[function(e,t,o){"use strict";function n(e){var t=(void 0!==arguments[1]?arguments[1]:inputValues)[0];return"numeric"===e.meta.type&&(t=parseFloat(t,10)),e.value<=t}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="lte";i(s,n,{name:"Less than or equal to",inputsCount:1})},{formulaRegisterer:155}],149:[function(e,t,o){"use strict";function n(){return!0}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return s}},__esModule:{value:!0}});var r,i=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}).registerFormula,s="none";i(s,n,{name:"None",inputsCount:0})},{formulaRegisterer:155}],150:[function(e,t,o){"use strict";function n(e,t){return!a(u,t)(e)}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return d}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}),l=s.registerFormula,a=s.getFormula,u=(i=e("between"),i&&i.__esModule&&i||{"default":i}).FORMULA_NAME,d="not_between";l(d,n,{name:"Is not between",inputsCount:2})},{between:134,formulaRegisterer:155}],151:[function(e,t,o){"use strict";function n(e,t){return!a(u,t)(e)}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return d}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}),l=s.registerFormula,a=s.getFormula,u=(i=e("contains"),i&&i.__esModule&&i||{"default":i}).FORMULA_NAME,d="not_contains";l(d,n,{name:"Does not contain",inputsCount:1})},{contains:136,formulaRegisterer:155}],152:[function(e,t,o){"use strict";function n(e,t){return!a(u,t)(e)}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return d}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}),l=s.registerFormula,a=s.getFormula,u=(i=e("empty"),i&&i.__esModule&&i||{"default":i}).FORMULA_NAME,d="not_empty";l(d,n,{name:"Is not empty",inputsCount:0})},{empty:142,formulaRegisterer:155}],153:[function(e,t,o){"use strict";function n(e,t){return!a(u,t)(e)}Object.defineProperties(o,{FORMULA_NAME:{get:function(){return d}},__esModule:{value:!0}});var r,i,s=(r=e("formulaRegisterer"),r&&r.__esModule&&r||{"default":r}),l=s.registerFormula,a=s.getFormula,u=(i=e("equal"),i&&i.__esModule&&i||{"default":i}).FORMULA_NAME,d="neq";l(d,n,{name:"Is not equal to",inputsCount:1})},{equal:144,formulaRegisterer:155}],154:[function(e,t,o){"use strict";Object.defineProperties(o,{FormulaCollection:{get:function(){return g}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),n&&n.__esModule&&n||{"default":n}),a=l.arrayEach,u=l.arrayMap,d=l.arrayFilter,c=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}),h=c.objectEach,f=c.mixin,m=(i=e("formulaRegisterer"),i&&i.__esModule&&i||{"default":i}).getFormula,p=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks"),s&&s.__esModule&&s||{"default":s}).localHooks,g=function(){this.formulas=Object.create(null),this.orderStack=[]};$traceurRuntime.createClass(g,{isEmpty:function(){return!this.orderStack.length},isMatch:function(e,t){var o=this,n=!0;return void 0===t?h(this.formulas,function(t){return n=o.isMatchInFormulas(t,e)}):n=this.isMatchInFormulas(this.getFormulas(t),e),n},isMatchInFormulas:function(e,t){var o=!1;return e.length?a(e,function(e){return o=e.func(t)}):o=!0,o},addFormula:function(e,t){var o=u(t.args,function(e){return"string"==typeof e?e.toLowerCase():e}),n=t.name||t.command.key;this.runLocalHooks("beforeAdd",e),-1===this.orderStack.indexOf(e)&&this.orderStack.push(e),this.hasFormulas(e,n)?a(this.getFormulas(e),function(e){return e.name===n?(e.func=m(e.name,o),e.args=o,!1):void 0}):this.getFormulas(e).push({name:n,args:o,func:m(n,o)}),this.runLocalHooks("afterAdd",e)},getFormulas:function(e){return this.formulas[e]||(this.formulas[e]=[]),this.formulas[e]},exportAllFormulas:function(){var e=this,t=[];return a(this.orderStack,function(o){var n=u(e.getFormulas(o),function(){var e=void 0!==arguments[0]?arguments[0]:formula,t=e.name,o=e.args;return{name:t,args:o}});t.push({column:o,formulas:n})}),t},importAllFormulas:function(e){var t=this;this.clean(),a(e,function(e){t.orderStack.push(e.column),a(e.formulas,function(o){return t.addFormula(e.column,o)})})},removeFormulas:function(e){this.runLocalHooks("beforeRemove",e),this.orderStack.indexOf(e)>=0&&this.orderStack.splice(this.orderStack.indexOf(e),1),this.clearFormulas(e),this.runLocalHooks("afterRemove",e)},clearFormulas:function(e){this.runLocalHooks("beforeClear",e),this.getFormulas(e).length=0,this.runLocalHooks("afterClear",e)},hasFormulas:function(e,t){var o=!1,n=this.getFormulas(e);return o=t?d(n,function(e){return e.name===t}).length>0:n.length>0},clean:function(){this.runLocalHooks("beforeClean"),this.formulas=Object.create(null),this.orderStack.length=0,this.runLocalHooks("afterClean")},destroy:function(){this.clearLocalHooks(),this.formulas=null,this.orderStack=null}},{}),f(g,p)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks":57,formulaRegisterer:155}],155:[function(e,t,o){"use strict";function n(e,t){return function(o){if(!a[e])throw Error('Filter formula "'+e+'" does not exist.');return a[e].formula.apply(o.meta.instance,[].concat([o],[t]))}}function r(e){if(!a[e])throw Error('Filter formula "'+e+'" does not exist.');return a[e].descriptor}function i(e,t,o){o.key=e,a[e]={formula:t,descriptor:o}}Object.defineProperties(o,{getFormula:{get:function(){return n}},getFormulaDescriptor:{get:function(){return r}},registerFormula:{get:function(){return i}},__esModule:{value:!0}});var s,l=(s=e("../../browser"),s&&s.__esModule&&s||{"default":s})["default"],a={};l.utils.FiltersFormulaRegisterer={getFormula:n,registerFormula:i,getFormulaDescriptor:r,formulas:a}},{"../../browser":113}],156:[function(e,t,o){"use strict";Object.defineProperties(o,{FormulaUpdateObserver:{get:function(){return y}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),n&&n.__esModule&&n||{"default":n}),d=u.arrayEach,c=u.arrayMap,h=u.arrayFilter,f=(r=e("formulaCollection"),r&&r.__esModule&&r||{"default":r}).FormulaCollection,m=(i=e("dataFilter"),i&&i.__esModule&&i||{"default":i}).DataFilter,p=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),s&&s.__esModule&&s||{"default":s}),g=p.mixin,w=p.objectEach,v=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/function"),l&&l.__esModule&&l||{"default":l}),b=v.curry,C=(v.debounce,(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks"),a&&a.__esModule&&a||{"default":a}).localHooks),y=function(e){var t=void 0!==arguments[1]?arguments[1]:function(e){return[]},o=this;this.formulaCollection=e,this.columnDataFactory=t,this.changes=[],this.grouping=!1,this.latestEditedColumnPosition=-1,this.latestOrderStack=[],this.formulaCollection.addLocalHook("beforeRemove",function(e){return o._onFormulaBeforeModify(e)}),this.formulaCollection.addLocalHook("afterAdd",function(e){return o._onFormulaAfterModify(e)}),this.formulaCollection.addLocalHook("afterClear",function(e){return o._onFormulaAfterModify(e)}),this.formulaCollection.addLocalHook("beforeClean",function(){return o._onFormulaBeforeClean()}),this.formulaCollection.addLocalHook("afterClean",function(){return o._onFormulaAfterClean()})};$traceurRuntime.createClass(y,{groupChanges:function(){this.grouping=!0},flush:function(){var e=this;this.grouping=!1,d(this.changes,function(t){return e._onFormulaAfterModify(t)}),this.changes.length=0},_onFormulaBeforeModify:function(e){this.latestEditedColumnPosition=this.formulaCollection.orderStack.indexOf(e)},_onFormulaAfterModify:function(e){var t=this;if(this.grouping)return void(-1===this.changes.indexOf(e)&&this.changes.push(e));var o=this.formulaCollection.exportAllFormulas(),n=this.formulaCollection.orderStack.indexOf(e);-1===n&&(n=this.latestEditedColumnPosition);var r=o.slice(0,n),i=o.slice(n);i.length&&i[0].column===e&&i.shift();var s=b(function(e,o){var n=void 0!==arguments[2]?arguments[2]:[],r=new f;e=[].concat(e,n),r.importAllFormulas(e);var i,s=t.columnDataFactory(o);return i=r.isEmpty()?s:new m(r,function(e){return t.columnDataFactory(e)}).filter(),i=c(i,function(e){return e.meta.visualRow}),h(s,function(e){return i.indexOf(e.meta.visualRow)>=0})})(r),l=[].concat(this.formulaCollection.getFormulas(e));this.runLocalHooks("update",{column:e,formulas:l},i,s)},_onFormulaBeforeClean:function(){this.latestOrderStack=[].concat(this.formulaCollection.orderStack)},_onFormulaAfterClean:function(){var e=this;d(this.latestOrderStack,function(t){return e._onFormulaAfterModify(t)})},destroy:function(){var e=this;this.clearLocalHooks(),w(this,function(t,o){return e[o]=null})}},{}),g(y,C)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/function":49,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks":57,dataFilter:131,formulaCollection:154}],157:[function(e,t,o){"use strict";Object.defineProperties(o,{BaseUI:{get:function(){return C}},__esModule:{value:!0}});var n,r,i,s,l,n,a=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),n&&n.__esModule&&n||{"default":n}),u=a.clone,d=a.extend,c=a.mixin,h=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks"),r&&r.__esModule&&r||{"default":r}).localHooks,f=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager"),i&&i.__esModule&&i||{"default":i}).EventManager,m=(s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),s&&s.__esModule&&s||{"default":s}).addClass,p=(l=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),l&&l.__esModule&&l||{"default":l}).arrayEach,g=(n=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),n&&n.__esModule&&n||{"default":n}).objectEach,w="built",v="building",b=["click","input","keydown","keypress","keyup","focus","blur"],C=function(e,t){this.hot=e,this.eventManager=new f(this),this.options=d(y.DEFAULTS,t),this._element=document.createElement(this.options.wrapIt?"div":this.options.tagName),this.buildState=!1},y=C;$traceurRuntime.createClass(C,{setValue:function(e){this.options.value=e,this.update()},getValue:function(){return this.options.value},get element(){return this.buildState===v?this._element:this.buildState===w?(this.update(),this._element):(this.buildState=v,this.build(),this.buildState=w,this._element)},isBuilt:function(){return this.buildState===w},build:function(){var e=this,t=function(t,o){e.eventManager.addEventListener(t,o,function(t){return e.runLocalHooks(o,t,e)})};if(this.buildState||(this.buildState=v),this.options.className&&m(this._element,this.options.className),this.options.children.length)p(this.options.children,function(t){return e._element.appendChild(t.element)});else if(this.options.wrapIt){var o=document.createElement(this.options.tagName);g(this.options,function(e,t){void 0!==o[t]&&"className"!==t&&"tagName"!==t&&"children"!==t&&(o[t]=e)}),this._element.appendChild(o),p(b,function(e){return t(o,e)})}else p(b,function(o){return t(e._element,o)})},update:function(){},reset:function(){this.options.value="",this.update()},show:function(){this.element.style.display=""},hide:function(){this.element.style.display="none"},focus:function(){},destroy:function(){this.eventManager.destroy(),this.eventManager=null,this.hot=null,this._element.parentNode&&this._element.parentNode.removeChild(this._element),this._element=null}},{get DEFAULTS(){return u({className:"",value:"",tagName:"div",children:[],wrapIt:!0})}}),c(C,h)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/eventManager":41,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/localHooks":57}],158:[function(e,t,o){"use strict";Object.defineProperties(o,{InputUI:{get:function(){return f}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("_base"),n&&n.__esModule&&n||{"default":n}).BaseUI,a=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),r&&r.__esModule&&r||{"default":r}).addClass,u=(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),i&&i.__esModule&&i||{"default":i}),d=u.clone,c=u.extend,h=((s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),s&&s.__esModule&&s||{"default":s}).arrayEach,new WeakMap),f=function(e,t){h.set(this,{}),$traceurRuntime.superConstructor(m).call(this,e,c(m.DEFAULTS,t)),this.registerHooks()},m=f;$traceurRuntime.createClass(f,{registerHooks:function(){var e=this;this.addLocalHook("click",function(t){return e.onClick(t)}),this.addLocalHook("keyup",function(t){return e.onKeyup(t)})},build:function(){$traceurRuntime.superGet(this,m.prototype,"build").call(this);var e=h.get(this),t=document.createElement("div");e.input=this._element.firstChild,a(this._element,"htUIInput"),a(t,"htUIInputIcon"),this._element.appendChild(t),this.update()},update:function(){if(this.isBuilt()){var e=h.get(this).input;e.type=this.options.type,e.value=this.options.value}},focus:function(){this.isBuilt()&&h.get(this).input.focus()},onClick:function(e){},onKeyup:function(e){this.options.value=e.target.value}},{get DEFAULTS(){return d({placeholder:"",type:"text",tagName:"input"})}},l)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,_base:157}],159:[function(e,t,o){"use strict";function n(e,t){return _(e,function(e){return e.checked=-1!==t.indexOf(e.value),e})}function r(e){var t=[];return R(e,function(e){e.checked&&t.push(e.value)}),t}Object.defineProperties(o,{MultipleSelectUI:{get:function(){return k}},__esModule:{value:!0}});var i,s,l,a,u,d,c,h,f,m,p=(i=e("_base"),i&&i.__esModule&&i||{"default":i}).BaseUI,g=(s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),s&&s.__esModule&&s||{"default":s}).addClass,w=((l=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/menu"),l&&l.__esModule&&l||{"default":l}).Menu,a=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),a&&a.__esModule&&a||{"default":a}),v=w.clone,b=w.extend,C=(u=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),u&&u.__esModule&&u||{"default":u}),y=C.arrayFilter,_=C.arrayMap,R=C.arrayEach,M=((d=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string"),d&&d.__esModule&&d||{"default":d}).startsWith,(c=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/unicode"),c&&c.__esModule&&c||{"default":c}).isKey),S=(h=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/function"),h&&h.__esModule&&h||{"default":h}).partial,E=(f=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event"),f&&f.__esModule&&f||{"default":f}).stopImmediatePropagation,O=(m=e("input"),m&&m.__esModule&&m||{"default":m}).InputUI,T=new WeakMap,k=function(e,t){T.set(this,{}),$traceurRuntime.superConstructor(A).call(this,e,b(A.DEFAULTS,t)),this.searchInput=new O(this.hot,{placeholder:"Search...",className:"htUIMultipleSelectSearch"}),this.selectAllUI=new p(this.hot,{tagName:"a",textContent:"Select all",href:"#",className:"htUISelectAll"}),this.clearAllUI=new p(this.hot,{tagName:"a",textContent:"Clear",href:"#",className:"htUIClearAll"}),this.items=[],this.itemsBox=null,this.registerHooks()},A=k;$traceurRuntime.createClass(k,{registerHooks:function(){var e=this;this.searchInput.addLocalHook("keydown",function(t){return e.onInputKeyDown(t)}),this.searchInput.addLocalHook("input",function(t){return e.onInput(t)}),this.selectAllUI.addLocalHook("click",function(t){return e.onSelectAllClick(t);
}),this.clearAllUI.addLocalHook("click",function(t){return e.onClearAllClick(t)})},setItems:function(e){this.items=e,this.itemsBox&&this.itemsBox.loadData(this.items)},getItems:function(){return $traceurRuntime.spread(this.items)},getValue:function(){return r(this.items)},isSelectedAllValues:function(){return this.items.length===this.getValue().length},build:function(){var e=this;$traceurRuntime.superGet(this,A.prototype,"build").call(this);var t=document.createElement("div"),o=new p(this.hot,{className:"htUISelectionControls",children:[this.selectAllUI,this.clearAllUI]});this._element.appendChild(this.searchInput.element),this._element.appendChild(o.element),this._element.appendChild(t);var r=function(t){e._element&&(e.itemsBox&&e.itemsBox.destroy(),g(t,"htUIMultipleSelectHot"),e.itemsBox=new Handsontable(t,{data:n(e.items,e.options.value),columns:[{data:"checked",type:"checkbox",label:{property:"visualValue",position:"after"}}],autoWrapCol:!0,colWidths:150,height:110,width:168,copyPaste:!1,disableVisualSelection:"area",fillHandle:!1,fragmentSelection:"cell",tabMoves:{row:1,col:0},beforeKeyDown:function(t){return e.onItemsBoxBeforeKeyDown(t)}}))};r(t),setTimeout(function(){return r(t)},100),this.update()},reset:function(){this.searchInput.reset()},update:function(){this.isBuilt()&&(this.itemsBox.loadData(n(this.items,this.options.value)),$traceurRuntime.superGet(this,A.prototype,"update").call(this))},destroy:function(){this.itemsBox&&this.itemsBox.destroy(),this.itemsBox=null,this.searchInput=null,this.items=null,$traceurRuntime.superGet(this,A.prototype,"destroy").call(this)},onInput:function(e){var t,o=e.target.value.toLowerCase();t=""===o?$traceurRuntime.spread(this.items):y(this.items,function(e){return(e.value+"").toLowerCase().indexOf(o)>=0}),this.itemsBox.loadData(t)},onInputKeyDown:function(e){this.runLocalHooks("keydown",e,this);var t=S(M,e.keyCode);t("ARROW_DOWN|TAB")&&!this.itemsBox.isListening()&&(E(e),this.itemsBox.listen(),this.itemsBox.selectCell(0,0))},onItemsBoxBeforeKeyDown:function(e){var t=S(M,e.keyCode);t("ESCAPE")&&this.runLocalHooks("keydown",e,this),t("ARROW_UP|ARROW_DOWN|ARROW_LEFT|ARROW_RIGHT|TAB|SPACE|ENTER")||(E(e),this.itemsBox.unlisten(),this.itemsBox.deselectCell(),this.searchInput.focus())},onSelectAllClick:function(e){e.preventDefault(),R(this.itemsBox.getSourceData(),function(e){e.checked=!0}),this.itemsBox.render()},onClearAllClick:function(e){e.preventDefault(),R(this.itemsBox.getSourceData(),function(e){e.checked=!1}),this.itemsBox.render()}},{get DEFAULTS(){return v({className:"htUIMultipleSelect",value:[]})}},p)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/event":47,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/function":49,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/string":54,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/unicode":55,"../../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/menu":73,_base:157,input:158}],160:[function(e,t,o){"use strict";Object.defineProperties(o,{SelectUI:{get:function(){return v}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("_base"),n&&n.__esModule&&n||{"default":n}).BaseUI,d=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),c=(d.addClass,d.getWindowScrollTop,d.getWindowScrollLeft,(i=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/menu"),i&&i.__esModule&&i||{"default":i}).Menu),h=(s=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),s&&s.__esModule&&s||{"default":s}),f=h.clone,m=h.extend,p=(l=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),l&&l.__esModule&&l||{"default":l}).arrayEach,g=(a=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems"),a&&a.__esModule&&a||{"default":a}).SEPARATOR,w=new WeakMap,v=function(e,t){w.set(this,{}),$traceurRuntime.superConstructor(b).call(this,e,m(b.DEFAULTS,t)),this.menu=null,this.items=[],this.registerHooks()},b=v;$traceurRuntime.createClass(v,{registerHooks:function(){var e=this;this.addLocalHook("click",function(t){return e.onClick(t)})},setItems:function(e){this.items=e,this.menu&&this.menu.setMenuItems(this.items)},build:function(){var e=this;$traceurRuntime.superGet(this,b.prototype,"build").call(this),this.menu=new c(this.hot,{className:"htSelectUI htFiltersConditionsMenu",keepInViewport:!1,standalone:!0}),this.menu.setMenuItems(this.items);var t=new u(this.hot,{className:"htUISelectCaption"}),o=new u(this.hot,{className:"htUISelectDropdown"});w.get(this).caption=t.element,p([t,o],function(t){return e._element.appendChild(t.element)}),this.menu.addLocalHook("select",function(t){return e.onMenuSelect(t)}),this.update()},update:function(){this.isBuilt()&&(w.get(this).caption.textContent=this.options.value?this.options.value.name:"None",$traceurRuntime.superGet(this,b.prototype,"update").call(this))},openOptions:function(){var e=this.element.getBoundingClientRect();this.menu&&(this.menu.open(),this.menu.setPosition({left:e.left-5,top:e.top,width:e.width,height:e.height}))},closeOptions:function(){this.menu&&this.menu.close()},onMenuSelect:function(e){e.name!==g&&(this.options.value=e,this.closeOptions(),this.update(),this.runLocalHooks("select",this.options.value))},onClick:function(e){this.openOptions()},destroy:function(){this.menu&&(this.menu.destroy(),this.menu=null),$traceurRuntime.superGet(this,b.prototype,"destroy").call(this)}},{get DEFAULTS(){return f({className:"htUISelect",wrapIt:!1})}},u)},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/menu":73,"../../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems":74,_base:157}],161:[function(e,t,o){"use strict";function n(e,t){return"number"==typeof e&&"number"==typeof t?e-t:m(e,t)}function r(e){return""===e&&(e="(Blank cells)"),e}function i(e){return e=c(e,function(e){return null==e?"":e}),e=h(e),e=e.sort(n)}function s(e,t,o){var n=[];return f(e,function(e){var i=!1;t.indexOf(e)>=0&&(i=!0);var s={checked:i,value:e,visualValue:r(e)};o&&o(s),n.push(s)}),n}Object.defineProperties(o,{sortComparison:{get:function(){return n}},toVisualValue:{get:function(){return r}},unifyColumnValues:{get:function(){return i}},intersectValues:{get:function(){return s}},__esModule:{value:!0}});var l,a,u=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/feature"),l&&l.__esModule&&l||{"default":l}).getComparisonFunction,d=(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),a&&a.__esModule&&a||{"default":a}),c=d.arrayMap,h=d.arrayUnique,f=d.arrayEach,m=u()},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/feature":48}],162:[function(e,t,o){"use strict";Object.defineProperties(o,{DateCalculator:{get:function(){return l}},__esModule:{value:!0}});var n,r,i=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),n&&n.__esModule&&n||{"default":n}).arrayEach,s=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}).objectEach,l=function(e){this.year=e,this.firstWeekDay="monday",this.weekSectionCount=0,this.monthList=this.calculateMonthData(),this.daysInColumns={},this.calculateWeekStructure()};$traceurRuntime.createClass(l,{setYear:function(e){this.year=e,this.monthList=this.calculateMonthData(),this.calculateWeekStructure()},setFirstWeekDay:function(e){"monday"!==e.toLowerCase()&&"sunday"!==e.toLowerCase()&&console.warn("First day of the week must be set to either Monday or Sunday"),this.firstWeekDay=e.toLowerCase()},countWeekSections:function(){return this.weekSectionCount},getFirstWeekDay:function(){return this.firstWeekDay},getYear:function(){return this.year},getMonthList:function(){return this.monthList},parseDate:function(e){return e instanceof Date||(e=new Date(e),"Invalid Date"!==e.toString())?e:null},dateToColumn:function(e){if(e=this.parseDate(e),!e||e.getFullYear()!==this.year)return!1;var t=e.getMonth(),o=e.getDate()-1,n=this.daysInColumns[t],r=null;return s(n,function(e,t){return e.indexOf(o+1)>-1?(r=parseInt(t,10),!1):void 0}),r},columnToDate:function(e){var t=null;return s(this.daysInColumns,function(o,n){return o[e]?(t=n,!1):void 0}),1===this.daysInColumns[t][e].length?new Date(this.year,t,this.daysInColumns[t][e][0]):this.daysInColumns[t][e]},isOnTheEdgeOfWeek:function(e){if(e=this.parseDate(e),!e)return null;var t=e.getMonth(),o=e.getDate()-1,n=this.daysInColumns[t],r=!1;return s(n,function(e){var t=e.indexOf(o+1);return 0===t?(r=[1,0],!1):t===e.length-1?(r=[0,1],!1):void 0}),r},addDaysToCache:function(e,t,o,n){this.daysInColumns[e]||(this.daysInColumns[e]={}),this.daysInColumns[e][t]||(this.daysInColumns[e][t]=[]);for(var r=o;n>=r;r++)this.daysInColumns[e][t].push(r)},isValidRangeBarData:function(e,t){var o=this.parseDate(e),n=this.parseDate(t);return o&&n&&o.getTime()<=n.getTime()},calculateMonthData:function(){return[{name:"January",days:31},{name:"February",days:new Date(this.year,2,0).getDate()},{name:"March",days:31},{name:"April",days:30},{name:"May",days:31},{name:"June",days:30},{name:"July",days:31},{name:"August",days:31},{name:"September",days:30},{name:"October",days:31},{name:"November",days:30},{name:"December",days:31}]},countMonths:function(){return this.monthList.length},countMonthDays:function(e){return this.monthList[e-1].days},countMonthFullWeeks:function(e){return this.monthList[e-1].fullWeeks},calculateWeekStructure:function(){var e=0,t=0,o=this.getFirstWeekDay(),n=this.getMonthList(),r=this.getYear();"monday"===o&&(e=1),i(n,function(o,n){var i=new Date(r,n,1).getDay();o.daysBeforeFullWeeks=(7-i+e)%7,o.fullWeeks=Math.floor((o.days-o.daysBeforeFullWeeks)/7),o.daysAfterFullWeeks=o.days-o.daysBeforeFullWeeks-7*o.fullWeeks,t+=o.fullWeeks+(o.daysBeforeFullWeeks?1:0)+(o.daysAfterFullWeeks?1:0)}),this.weekSectionCount=t}},{})},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52}],163:[function(e,t,o){"use strict";Object.defineProperties(o,{GanttChart:{get:function(){return M}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d,c,h=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),f=h.addClass,m=h.removeClass,p=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),r&&r.__esModule&&r||{"default":r}),g=p.objectEach,w=p.deepClone,v=p.extend,b=((i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),s&&s.__esModule&&s||{"default":s}).rangeEach,(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/data"),l&&l.__esModule&&l||{"default":l}).createEmptySpreadsheetData),C=(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins.js"),a&&a.__esModule&&a||{"default":a}).registerPlugin,y=(u=e("dateCalculator"),u&&u.__esModule&&u||{"default":u}).DateCalculator,_=(d=e("ganttChartDataFeed"),d&&d.__esModule&&d||{"default":d}).GanttChartDataFeed,R=(c=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base.js"),c&&c.__esModule&&c||{"default":c})["default"],M=function(e){$traceurRuntime.superConstructor(S).call(this,e),this.settings={},this.dateCalculator=null,this.currentYear=null,this.monthList=[],this.monthHeadersArray=[],this.weekHeadersArray=[],this.rangeBars={},this.rangeList={},this.nestedHeadersPlugin=null,this.hotSource=null,this.overallWeekSectionCount=null,this.initialSettings=null,this.dataFeed=null,this.colorData={},this.rangeBarMeta=Object.create(null)},S=M;$traceurRuntime.createClass(M,{checkDependencies:function(){this.hot.getSettings().colHeaders||console.warn("You need to enable the colHeaders property in your Gantt Chart Handsontable in order for it to work properly.")},isEnabled:function(){return!!this.hot.getSettings().ganttChart},enablePlugin:function(){var e=this;this.enabled||(this.checkDependencies(),this.parseSettings(),this.currentYear=this.settings.startYear||(new Date).getFullYear(),this.dateCalculator=new y(this.currentYear),this.dateCalculator.setFirstWeekDay(this.settings.firstWeekDay),this.monthList=this.dateCalculator.getMonthList(),this.monthHeadersArray=this.generateMonthHeaders(),this.weekHeadersArray=this.generateWeekHeaders(),this.overallWeekSectionCount=this.dateCalculator.countWeekSections(),this.assignGanttSettings(),this.nestedHeadersPlugin&&(this.applyDataSource(),this.colorData&&this.setRangeBarColors(this.colorData)),this.addHook("afterInit",function(){return e.onAfterInit()}),f(this.hot.rootElement,"ganttChart"),$traceurRuntime.superGet(this,S.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.internalUpdateSettings||(this.dataFeed&&this.dataFeed.hotSource&&this.dataFeed.removeSourceHotHooks(this.dataFeed.hotSource),this.settings={},this.dataFeed={},this.currentYear=null,this.monthList=[],this.rangeBars={},this.rangeList={},this.rangeBarMeta={},this.hotSource=null,this.deassignGanttSettings(),this.hot.getPlugin("collapsibleColumns").disablePlugin(),this.hot.getPlugin("nestedHeaders").disablePlugin(),m(this.hot.rootElement,"ganttChart"),$traceurRuntime.superGet(this,S.prototype,"disablePlugin").call(this))},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,S.prototype,"updatePlugin").call(this)},parseSettings:function(){this.settings=this.hot.getSettings().ganttChart,"boolean"==typeof this.settings&&(this.settings={}),this.settings.firstWeekDay||(this.settings.firstWeekDay="monday")},applyDataSource:function(){if(this.settings.dataSource){var e=this.settings.dataSource;e.instance?this.loadData(e.instance,e.startDateColumn,e.endDateColumn,e.additionalData,e.asyncUpdates):this.loadData(e)}},loadData:function(e,t,o,n,r){this.dataFeed=new _(this.hot,e,t,o,n,r)},clearRangeBars:function(){this.rangeBars={}},clearRangeList:function(){this.rangeList={}},getRangeBarCoordinates:function(e){return this.rangeList[e]},generateHeaderSet:function(e){var t=this,o=[];return g(this.monthList,function(n,r){var i=n.daysBeforeFullWeeks>0?1:0,s=n.daysAfterFullWeeks>0?1:0,l=n.fullWeeks+i+s,a=parseInt(r,10);if("months"===e)o.push({label:n.name,colspan:l});else if("weeks"===e)for(var u=0;l>u;u++)if(i&&0===u){var d=u+1,c=n.daysBeforeFullWeeks;d===c?o.push(d):o.push(d+" - "+c),t.dateCalculator.addDaysToCache(a,o.length-1,d,c)}else if(s&&u===l-1){var h=n.days-n.daysAfterFullWeeks+1,f=n.days;h===f?o.push(h):o.push(h+" - "+f),t.dateCalculator.addDaysToCache(a,o.length-1,h,f)}else{var m=n.daysBeforeFullWeeks+7*(u-i)+1,p=m+6;o.push(m+" - "+p),t.dateCalculator.addDaysToCache(a,o.length-1,m,p)}else if("days"===e)for(var g=0;g<n.days;g++)o.push(g+1)}),o},generateMonthHeaders:function(){return this.generateHeaderSet("months")},generateWeekHeaders:function(){return this.generateHeaderSet("weeks")},generateDayHeaders:function(){return this.generateHeaderSet("days")},assignGanttSettings:function(){var e=this;this.initialSettings=w(this.hot.getSettings());var t={data:b(1,this.overallWeekSectionCount),readOnly:!0,renderer:function(t,o,n,r,i,s,l){return e.uniformBackgroundRenderer(t,o,n,r,i,s,l)},colWidths:60,hiddenColumns:!0,nestedHeaders:[this.monthHeadersArray,this.weekHeadersArray],collapsibleColumns:!0,columnSorting:!1};this.internalUpdateSettings=!0,this.hot.updateSettings(t),this.internalUpdateSettings=void 0},deassignGanttSettings:function(){this.internalUpdateSettings=!0,this.initialSettings&&this.hot.updateSettings(this.initialSettings),this.internalUpdateSettings=void 0},cacheRangeBarMeta:function(e,t,o,n){this.rangeBarMeta[e]||(this.rangeBarMeta[e]={}),this.rangeBarMeta[e][t]||(this.rangeBarMeta[e][t]={}),this.rangeBarMeta[e][t][o]=n},applyRangeBarMetaCache:function(){var e=this;g(this.rangeBarMeta,function(t,o){g(t,function(t,n){g(t,function(t,r){e.hot.setCellMeta(o,n,r,t)})})})},addRangeBar:function(e,t,o,n){var r=this,i=this.dateCalculator.dateToColumn(t),s=this.dateCalculator.dateToColumn(o),l=this.hot.countRows();return this.dateCalculator.isValidRangeBarData(t,o)&&i!==!1&&s!==!1?(this.rangeBars[e]||(this.rangeBars[e]={}),this.rangeBars[e][i]={barLength:s-i+1,partialStart:!this.dateCalculator.isOnTheEdgeOfWeek(t)[0],partialEnd:!this.dateCalculator.isOnTheEdgeOfWeek(o)[1],additionalData:{}},g(n,function(t,o){r.rangeBars[e][i].additionalData[o]=t}),this.colorData[e]&&(this.rangeBars[e][i].colors=this.colorData[e]),this.rangeList[e]=[e,i],this.renderRangeBar(e,i,s,n),[e,i]):(e>l-1&&this.hot.alter("insert_row",l,e-l+1),!1)},getRangeBarData:function(e,t){var o=this.getRangeBarCoordinates(e);if(!o)return!1;var n=this.rangeBars[o[0]][o[1]];return n&&e===o[0]&&(t===o[1]||t>o[1]&&t<o[1]+n.barLength)?n:!1},updateRangeBarData:function(e,t,o){var n=this.getRangeBarData(e,t);g(o,function(e,t){n[t]!==e&&(n[t]=e)})},renderRangeBar:function(e,t,o,n){var r=this.rangeBars[e][t],i=this.hot.countRows();e>i-1&&this.hot.alter("insert_row",i,e-i+1);for(var s=t;o>=s;s++){var l=this.hot.getCellMeta(e,s),a=(l.className||"")+" rangeBar color-green";(s===t&&r.partialStart||s===o&&r.partialEnd)&&(a+=" partial"),this.hot.setCellMeta(e,s,"originalClassName",l.className),this.hot.setCellMeta(e,s,"className",a),this.hot.setCellMeta(e,s,"additionalData",r.additionalData),this.cacheRangeBarMeta(e,s,"originalClassName",l.className),this.cacheRangeBarMeta(e,s,"className",a),this.cacheRangeBarMeta(e,s,"additionalData",r.additionalData)}this.hot.render()},removeRangeBarByDate:function(e,t){var o=this.dateCalculator.dateToColumn(t);this.removeRangeBarByColumn(e,o)},removeRangeBarByColumn:function(e,t){var o=this,n=this.rangeBars[e][t];n&&(this.unrenderRangeBar(e,t,t+n.barLength-1),this.rangeBars[e][t]=null,g(this.rangeList,function(n,r){r=parseInt(r,10),JSON.stringify(n)===JSON.stringify([e,t])&&(o.rangeList[r]=null)}))},removeAllRangeBars:function(){var e=this;g(this.rangeBars,function(t,o){g(t,function(t,n){e.removeRangeBarByColumn(o,n)})})},unrenderRangeBar:function(e,t,o){for(var n=t;o>=n;n++){var r=this.hot.getCellMeta(e,n);this.hot.setCellMeta(e,n,"className",r.originalClassName),this.hot.setCellMeta(e,n,"originalClassName",void 0),this.cacheRangeBarMeta(e,n,"className",r.originalClassName),this.cacheRangeBarMeta(e,n,"originalClassName",void 0)}this.hot.render()},uniformBackgroundRenderer:function(e,t,o,n,r,i,s){var l=this.getRangeBarData(o,n),a=this.getRangeBarCoordinates(o);s.className&&(t.className=s.className);var u="";g(s.additionalData,function(e,t){u+=t+": "+e+"\n"}),u=u.replace(/\n$/,""),t.title=u,l&&l.colors?n===a[1]&&l.partialStart||n===a[1]+l.barLength-1&&l.partialEnd?t.style.background=l.colors[1]:t.style.background=l.colors[0]:t.style.background=""},setRangeBarColors:function(e){var t=this;this.colorData=e,g(e,function(e,o){var n=t.getRangeBarCoordinates(o);n&&t.updateRangeBarData(n[0],n[1],{colors:e})}),this.hot.render()},setYear:function(e){var t=v(this.hot.getSettings().ganttChart,{startYear:e});this.hot.updateSettings({ganttChart:t})},onAfterInit:function(){this.nestedHeadersPlugin=this.hot.getPlugin("nestedHeaders"),this.applyDataSource()},onUpdateSettings:function(){return this.internalUpdateSettings?void this.applyRangeBarMetaCache():void $traceurRuntime.superGet(this,S.prototype,"onUpdateSettings").call(this)},destroy:function(){this.hotSource&&this.dataFeed.removeSourceHotHooks(this.hotSource),$traceurRuntime.superGet(this,S.prototype,"destroy").call(this)}},{},R),C("ganttChart",M)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/data":44,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins.js":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base.js":62,dateCalculator:162,ganttChartDataFeed:164}],164:[function(e,t,o){"use strict";Object.defineProperties(o,{GanttChartDataFeed:{get:function(){return u}},__esModule:{value:!0}});var n,r,i,s=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),n&&n.__esModule&&n||{"default":n}),l=s.objectEach,a=(s.deepClone,(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach),u=((i=e("dateCalculator"),i&&i.__esModule&&i||{"default":i}).DateCalculator,function(e,t,o,n,r,i){this.data=t,this.chartInstance=e,this.chartPlugin=this.chartInstance.getPlugin("ganttChart"),this.hotSource=null,this.sourceHooks={},this.ongoingAsync=!1,this.applyData(t,o,n,r,i||!1)});$traceurRuntime.createClass(u,{applyData:function(e,t,o,n,r){"[object Array]"===Object.prototype.toString.call(e)?this.loadData(e):e.guid&&this.bindWithHotInstance(e,t,o,n,r)},bindWithHotInstance:function(e,t,o,n,r){this.hotSource={instance:e,startColumn:t,endColumn:o,additionalData:n,asyncUpdates:r},this.addSourceHotHooks(),this.asyncCall(this.updateFromSource)},asyncCall:function(e){var t=this;return this.hotSource.asyncUpdates?(this.asyncStart(),void setTimeout(function(){e.call(t),t.asyncEnd()},0)):void e.call(this)},asyncStart:function(){this.ongoingAsync=!0},asyncEnd:function(){this.ongoingAsync=!1},addSourceHotHooks:function(){var e=this;this.sourceHooks={afterLoadData:function(t){return e.onAfterSourceLoadData(t)},afterChange:function(t,o){return e.onAfterSourceChange(t,o)},afterColumnSort:function(t,o){return e.onAfterColumnSort(t,o)}},this.hotSource.instance.addHook("afterLoadData",this.sourceHooks.afterLoadData),this.hotSource.instance.addHook("afterChange",this.sourceHooks.afterChange),this.hotSource.instance.addHook("afterColumnSort",this.sourceHooks.afterColumnSort)},removeSourceHotHooks:function(e){this.sourceHooks.afterLoadData&&e.instance.removeHook("afterLoadData",this.sourceHooks.afterLoadData),this.sourceHooks.afterChange&&e.instance.removeHook("afterChange",this.sourceHooks.afterChange),this.sourceHooks.afterColumnSort&&e.instance.removeHook("afterColumnSort",this.sourceHooks.afterColumnSort)},getDataFromSource:function(e){var t,o={},n=this.hotSource,r=[];void 0===e?t=n.instance.getData(0,0,n.instance.countRows()-1,n.instance.countCols()-1):(t=[],t[e]=n.instance.getDataAtRow(e));var i,s=function(e,i){o={};var s=t[e];return null===s[n.startColumn]||""===s[n.startColumn]?0:(l(n.additionalData,function(e,t){o[t]=s[e]}),void r.push([e,s[n.startColumn],s[n.endColumn],o,e]))};e:for(var a=e||0,u=t.length;(e?e+1:u)>a;a++)switch(i=s(a,u)){case 0:continue e}return r},updateFromSource:function(e){var t=this,o=this.getDataFromSource(e);!e&&isNaN(e)&&(this.chartPlugin.clearRangeBars(),this.chartPlugin.clearRangeList()),a(o,function(e){e=t.trimRangeIfNeeded(e),t.chartPlugin.addRangeBar.apply(t.chartPlugin,e)})},loadData:function(e){var t=this;a(e,function(e,o){e=t.trimRangeIfNeeded(e),t.chartPlugin.addRangeBar(o,e.startDate,e.endDate,e.additionalData)})},trimRangeIfNeeded:function(e){var t=new Date(e[1]),o=new Date(e[2]);if("string"==typeof t||"string"==typeof o)return!1;var n=t.getFullYear(),r=o.getFullYear();return n<this.chartPlugin.currentYear&&r>=this.chartPlugin.currentYear&&(e[1]="01/01/"+this.chartPlugin.currentYear),r>this.chartPlugin.currentYear&&n<=this.chartPlugin.currentYear&&(e[2]="12/31/"+this.chartPlugin.currentYear),e},onAfterSourceChange:function(e,t){var o=this;this.asyncCall(function(){if(e){for(var t={},n=0,r=e.length;r>n;n++){var i=e[n],s=parseInt(i[0],10),a=parseInt(i[1],10);t[s]||(t[s]={}),t[s][a]=[i[2],i[3]]}l(t,function(e,t){t=parseInt(t,10),o.chartPlugin.getRangeBarCoordinates(t)&&o.chartPlugin.removeRangeBarByColumn(t,o.chartPlugin.rangeList[t][1]),o.updateFromSource(t)})}})},onAfterSourceLoadData:function(e){var t=this;this.asyncCall(function(e){t.chartPlugin.removeAllRangeBars(),t.updateFromSource()})},onAfterColumnSort:function(e,t){var o=this;this.asyncCall(function(){o.chartPlugin.removeAllRangeBars(),o.updateFromSource()})}},{})},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,dateCalculator:162}],165:[function(e,t,o){"use strict";Object.defineProperties(o,{HeaderTooltips:{get:function(){return c}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element.js"),n&&n.__esModule&&n||{"default":n}).outerWidth,a=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins.js"),r&&r.__esModule&&r||{"default":r}).registerPlugin,u=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,d=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base.js"),s&&s.__esModule&&s||{"default":s})["default"],c=function(e){$traceurRuntime.superConstructor(h).call(this,e),this.settings=null},h=c;$traceurRuntime.createClass(c,{isEnabled:function(){return!!this.hot.getSettings().headerTooltips},enablePlugin:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().headerTooltips,this.parseSettings(),this.addHook("afterGetColHeader",function(t,o){return e.onAfterGetHeader(t,o)}),this.addHook("afterGetRowHeader",function(t,o){return e.onAfterGetHeader(t,o)}),$traceurRuntime.superGet(this,h.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.settings=null,this.clearTitleAttributes(),$traceurRuntime.superGet(this,h.prototype,"disablePlugin").call(this)},parseSettings:function(){"boolean"==typeof this.settings&&(this.settings={rows:!0,columns:!0,onlyTrimmed:!1})},clearTitleAttributes:function(){var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,o=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null;u(0,e-1,function(e){var r=t.childNodes[e],i=o.childNodes[e],s=n?n.childNodes[e]:null;u(0,r.childNodes.length-1,function(e){r.childNodes[e].removeAttribute("title"),i&&i.childNodes[e]&&i.childNodes[e].removeAttribute("title"),n&&s&&s.childNodes[e]&&s.childNodes[e].removeAttribute("title")})},!0)},onAfterGetHeader:function(e,t){var o=t.querySelector("span"),n="THEAD"===t.parentNode.parentNode.nodeName;(n&&this.settings.columns||!n&&this.settings.rows)&&(this.settings.onlyTrimmed?l(o)>=l(t)&&0!==l(o)&&t.setAttribute("title",o.textContent):t.setAttribute("title",o.textContent))},destroy:function(){this.settings=null,$traceurRuntime.superGet(this,h.prototype,"destroy").call(this)}},{},d),a("headerTooltips",c)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element.js":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins.js":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base.js":62}],166:[function(e,t,o){"use strict";function n(e){return{key:"hidden_columns_hide",name:"Hide column",callback:function(){var t=this.getSelectedRange(),o=t.from,n=t.to,r=Math.min(o.col,n.col),s=Math.max(o.col,n.col);i(r,s,function(t){return e.hideColumn(e.getLogicalColumnIndex(t))}),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!this.selection.selectedHeader.cols}}}Object.defineProperties(o,{hideColumnItem:{get:function(){return n}},__esModule:{value:!0}});var r,i=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),r&&r.__esModule&&r||{"default":r}).rangeEach},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51}],167:[function(e,t,o){"use strict";function n(e){var t=[],o=[];return{key:"hidden_columns_show",name:"Show column",callback:function(){var n=this.getSelectedRange(),r=n.from,s=n.to,l=r.col,a=s.col;l>a&&(l=s.col,a=r.col),l===a?(t.length===l&&(e.showColumns(t),t.length=0),o.length===this.countCols()-(l+1)&&(e.showColumns(o),o.length=0)):i(l,a,function(t){return e.showColumn(e.getLogicalColumnIndex(t))}),this.render()},disabled:!1,hidden:function(){if(!e.hiddenColumns.length)return!0;if(!this.selection.selectedHeader.cols)return!0;t.length=0,o.length=0;var n=this.getSelectedRange(),r=n.from,s=n.to,l=r.col,a=s.col,u=!1;if(l===a){var d=this.countCols();i(0,d,function(n){var r=t.length+o.length;return r===e.hiddenColumns.length?!1:void(l>n?e.isHidden(e.getLogicalColumnIndex(n))&&t.push(e.getLogicalColumnIndex(n)):e.isHidden(e.getLogicalColumnIndex(n))&&o.push(e.getLogicalColumnIndex(n)))}),d-=1,(t.length===l&&l>0||o.length===d-l&&d>l)&&(u=!0)}else l>a&&(l=s.col,a=r.col),i(l,a,function(t){return e.isHidden(e.getLogicalColumnIndex(t))?(u=!0,!1):void 0});return!u}}}Object.defineProperties(o,{showColumnItem:{get:function(){return n}},__esModule:{value:!0}});var r,i=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),r&&r.__esModule&&r||{"default":r}).rangeEach},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51}],168:[function(e,t,o){"use strict";function n(e,t){t.textContent=""}Object.defineProperties(o,{HiddenColumns:{get:function(){return _}},__esModule:{value:!0}});var r,i,s,l,a,u,d,c,h=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),r&&r.__esModule&&r||{"default":r})["default"],f=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),i&&i.__esModule&&i||{"default":i}),m=f.addClass,p=(f.removeClass,(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),s&&s.__esModule&&s||{"default":s}).rangeEach),g=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),l&&l.__esModule&&l||{"default":l}).arrayEach,w=(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),a&&a.__esModule&&a||{"default":a}),v=w.registerPlugin,b=(w.getPlugin,(u=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems"),u&&u.__esModule&&u||{"default":u}).SEPARATOR),C=(d=e("contextMenuItem/hideColumn"),d&&d.__esModule&&d||{"default":d}).hideColumnItem,y=(c=e("contextMenuItem/showColumn"),c&&c.__esModule&&c||{"default":c}).showColumnItem,_=function(e){$traceurRuntime.superConstructor(R).call(this,e),this.settings={},this.hiddenColumns=[],this.lastSelectedColumn=-1},R=_;$traceurRuntime.createClass(_,{isEnabled:function(){return!!this.hot.getSettings().hiddenColumns},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenColumns;"object"==typeof t&&(this.settings=t,void 0===t.copyPasteEnabled&&(t.copyPasteEnabled=!0),Array.isArray(t.columns)&&this.hideColumns(t.columns),
t.copyPasteEnabled||this.addHook("modifyCopyableRange",function(t){return e.onModifyCopyableRange(t)})),this.hot.hasColHeaders()?this.addHook("afterGetColHeader",function(t,o){return e.onAfterGetColHeader(t,o)}):this.addHook("afterRenderer",function(t,o,n){return e.onAfterGetColHeader(n,t)}),this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterGetCellMeta",function(t,o,n){return e.onAfterGetCellMeta(t,o,n)}),this.addHook("modifyColWidth",function(t,o){return e.onModifyColWidth(t,o)}),this.addHook("beforeSetRangeStartOnly",function(t){return e.onBeforeSetRangeStart(t)}),this.addHook("beforeSetRangeEnd",function(t){return e.onBeforeSetRangeEnd(t)}),this.addHook("hiddenColumn",function(t){return e.isHidden(t)}),this.addHook("beforeStretchingColumnWidth",function(t,o){return e.onBeforeStretchingColumnWidth(t,o)}),this.addHook("afterCreateCol",function(t,o){return e.onAfterCreateCol(t,o)}),this.addHook("afterRemoveCol",function(t,o){return e.onAfterRemoveCol(t,o)}),$traceurRuntime.superGet(this,R.prototype,"enablePlugin").call(this)}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,R.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.settings={},this.hiddenColumns=[],this.lastSelectedColumn=-1,this.hot.render(),$traceurRuntime.superGet(this,R.prototype,"disablePlugin").call(this),this.resetCellsMeta()},hideColumns:function(e){var t=this;g(e,function(e){e=parseInt(e,10),t.isHidden(e)||t.hiddenColumns.push(e)})},hideColumn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.hideColumns(e)},showColumns:function(e){var t=this;g(e,function(e){e=parseInt(e,10),t.isHidden(e)&&t.hiddenColumns.splice(t.hiddenColumns.indexOf(e),1)})},showColumn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.showColumns(e)},isHidden:function(e){return this.hiddenColumns.indexOf(e)>-1},resetCellsMeta:function(){g(this.hot.getCellsMeta(),function(e){e&&(e.skipColumnOnPaste=!1,null!==e.baseRenderer&&(e.renderer=e.baseRenderer,e.baseRenderer=null))})},getLogicalColumnIndex:function(e){return this.hot.runHooks("modifyCol",e)},onBeforeStretchingColumnWidth:function(e,t){return this.hiddenColumns.indexOf(t)>-1&&(e=0),e},onModifyColWidth:function(e,t){return this.isHidden(this.getLogicalColumnIndex(t))?.1:this.settings.indicators&&(this.isHidden(this.getLogicalColumnIndex(t+1))||this.isHidden(this.getLogicalColumnIndex(t-1)))?e+(this.hot.hasColHeaders()?15:0):void 0},onAfterGetCellMeta:function(e,t,o){if(this.settings.copyPasteEnabled===!1&&this.isHidden(t)&&(o.skipColumnOnPaste=!0),this.isHidden(t)?(o.renderer!==n&&(o.baseRenderer=o.renderer),o.renderer=n):null!==o.baseRenderer&&(o.renderer=o.baseRenderer,o.baseRenderer=null),this.isHidden(this.getLogicalColumnIndex(o.visualCol-1))){var r=!0,i=o.visualCol-1;o.className=o.className||"",-1===o.className.indexOf("afterHiddenColumn")&&(o.className+=" afterHiddenColumn");do{if(!this.isHidden(this.getLogicalColumnIndex(i))){r=!1;break}i--}while(i>=0);r&&-1===o.className.indexOf("firstVisibleColumn")&&(o.className+=" firstVisibleColumn")}else if(o.className){var s=o.className.split(" ");if(s.length){var l=s.indexOf("afterHiddenColumn"),a=s.indexOf("firstVisibleColumn");l>-1&&s.splice(l,1),a>-1&&s.splice(a,1),o.className=s.join(" ")}}},onModifyCopyableRange:function(e){var t=this,o=[],n=function(e,t,n,r){o.push({startRow:e,endRow:t,startCol:n,endCol:r})};return g(e,function(e){var o=!0,r=0;p(e.startCol,e.endCol,function(i){t.isHidden(i)?(o||n(e.startRow,e.endRow,r,i-1),o=!0):(o&&(r=i),i===e.endCol&&n(e.startRow,e.endRow,r,i),o=!1)})}),o},onAfterGetColHeader:function(e,t){if(!this.isHidden(this.getLogicalColumnIndex(e))){var o=!0,n=e-1;do{if(!this.isHidden(this.getLogicalColumnIndex(n))){o=!1;break}n--}while(n>=0);o&&m(t,"firstVisibleColumn"),this.settings.indicators&&(this.isHidden(this.getLogicalColumnIndex(e-1))&&m(t,"afterHiddenColumn"),this.isHidden(this.getLogicalColumnIndex(e+1))&&e>-1&&m(t,"beforeHiddenColumn"))}},onBeforeSetRangeStart:function(e){var t=this;if(!(e.col>0)){e.col=0;var o=function(e){var n=t.getLogicalColumnIndex(e);return t.isHidden(n)&&(e=o(++e)),e};e.col=o(e.col)}},onBeforeSetRangeEnd:function(e){var t=this,o=this.hot.countCols(),n=function(r){var i=t.getLogicalColumnIndex(r);return t.isHidden(i)&&(t.lastSelectedColumn>r||e.col===o-1?r>0?r=n(--r):p(0,t.lastSelectedColumn,function(e){return t.isHidden(t.getLogicalColumnIndex(e))?void 0:(r=e,!1)}):r=n(++r)),r};e.col=n(e.col),this.lastSelectedColumn=e.col},onAfterContextMenuDefaultOptions:function(e){e.items.push({name:b},C(this),y(this))},onAfterCreateCol:function(e,t){var o=[];g(this.hiddenColumns,function(n){n>=e&&(n+=t),o.push(n)}),this.hiddenColumns=o},onAfterRemoveCol:function(e,t){var o=[];g(this.hiddenColumns,function(n){n>=e&&(n-=t),o.push(n)}),this.hiddenColumns=o},destroy:function(){$traceurRuntime.superGet(this,R.prototype,"destroy").call(this)}},{},h),v("hiddenColumns",_)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/contextMenu/predefinedItems":74,"contextMenuItem/hideColumn":166,"contextMenuItem/showColumn":167}],169:[function(e,t,o){"use strict";function n(e){return{key:"hidden_rows_hide",name:"Hide row",callback:function(){var t=this.getSelectedRange(),o=t.from,n=t.to,r=Math.min(o.row,n.row),s=Math.max(o.row,n.row);i(r,s,function(t){return e.hideRow(t)}),this.render(),this.view.wt.wtOverlays.adjustElementsSize(!0)},disabled:!1,hidden:function(){return!this.selection.selectedHeader.rows}}}Object.defineProperties(o,{hideRowItem:{get:function(){return n}},__esModule:{value:!0}});var r,i=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),r&&r.__esModule&&r||{"default":r}).rangeEach},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51}],170:[function(e,t,o){"use strict";function n(e){var t=[],o=[];return{key:"hidden_rows_show",name:"Show row",callback:function(){var n=this.getSelectedRange(),r=n.from,s=n.to,l=Math.min(r.row,s.row),a=Math.max(r.row,s.row);l===a?(t.length===l&&(e.showRows(t),t.length=0),o.length===this.countSourceRows()-(l+1)&&(e.showRows(o),o.length=0)):i(l,a,function(t){return e.showRow(t)}),this.render()},disabled:!1,hidden:function(){if(!e.hiddenRows.length)return!0;if(!this.selection.selectedHeader.rows)return!0;t.length=0,o.length=0;var n=this.getSelectedRange(),r=n.from,s=n.to,l=Math.min(r.row,s.row),a=Math.max(r.row,s.row),u=!1;if(l===a){var d=this.countSourceRows();i(0,d,function(n){var r=t.length+o.length;return r===e.hiddenRows.length?!1:void(l>n?e.isHidden(n)&&t.push(n):e.isHidden(n)&&o.push(n))}),d-=1,(t.length===l&&l>0||o.length===d-l&&d>l)&&(u=!0)}else i(l,a,function(t){return e.isHidden(t)?(u=!0,!1):void 0});return!u}}}Object.defineProperties(o,{showRowItem:{get:function(){return n}},__esModule:{value:!0}});var r,i=(r=e("../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),r&&r.__esModule&&r||{"default":r}).rangeEach},{"../../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51}],171:[function(e,t,o){"use strict";Object.defineProperties(o,{HiddenRows:{get:function(){return y}},__esModule:{value:!0}});var n,r,i,s,l,a,u,d=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),n&&n.__esModule&&n||{"default":n})["default"],c=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),r&&r.__esModule&&r||{"default":r}),h=c.addClass,f=c.removeClass,m=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,p=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),s&&s.__esModule&&s||{"default":s}),g=p.arrayEach,w=(p.arrayFilter,l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),l&&l.__esModule&&l||{"default":l}),v=w.registerPlugin,b=(w.getPlugin,(a=e("contextMenuItem/hideRow"),a&&a.__esModule&&a||{"default":a}).hideRowItem),C=(u=e("contextMenuItem/showRow"),u&&u.__esModule&&u||{"default":u}).showRowItem,y=function(e){$traceurRuntime.superConstructor(_).call(this,e),this.settings={},this.hiddenRows=[],this.lastSelectedRow=-1},_=y;$traceurRuntime.createClass(y,{isEnabled:function(){return!!this.hot.getSettings().hiddenRows},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().hiddenRows;"object"==typeof t&&(this.settings=t,void 0===t.copyPasteEnabled&&(t.copyPasteEnabled=!0),Array.isArray(t.rows)&&this.hideRows(t.rows),t.copyPasteEnabled||this.addHook("modifyCopyableRange",function(t){return e.onModifyCopyableRange(t)})),this.hot.hasRowHeaders()?this.addHook("afterGetRowHeader",function(t,o){return e.onAfterGetRowHeader(t,o)}):this.addHook("afterRenderer",function(t,o){return e.onAfterGetRowHeader(o,t)}),this.addHook("afterContextMenuDefaultOptions",function(t){return e.onAfterContextMenuDefaultOptions(t)}),this.addHook("afterGetCellMeta",function(t,o,n){return e.onAfterGetCellMeta(t,o,n)}),this.addHook("modifyRowHeight",function(t,o){return e.onModifyRowHeight(t,o)}),this.addHook("beforeSetRangeStartOnly",function(t){return e.onBeforeSetRangeStart(t)}),this.addHook("beforeSetRangeEnd",function(t){return e.onBeforeSetRangeEnd(t)}),this.addHook("hiddenRow",function(t){return e.isHidden(t)}),this.addHook("afterRowMove",function(t,o){return e.onAfterRowMove(t,o)}),this.addHook("afterCreateRow",function(t,o){return e.onAfterCreateRow(t,o)}),this.addHook("afterRemoveRow",function(t,o){return e.onAfterRemoveRow(t,o)}),$traceurRuntime.superGet(this,_.prototype,"enablePlugin").call(this)}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,_.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.settings={},this.hiddenRows=[],this.lastSelectedRow=-1,$traceurRuntime.superGet(this,_.prototype,"disablePlugin").call(this),this.resetCellsMeta()},showRows:function(e){var t=this;g(e,function(e){e=parseInt(e,10),t.isHidden(e)&&t.hiddenRows.splice(t.hiddenRows.indexOf(e),1)})},showRow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.showRows(e)},hideRows:function(e){var t=this;g(e,function(e){e=parseInt(e,10),t.isHidden(e)||t.hiddenRows.push(e)})},hideRow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.hideRows(e)},isHidden:function(e){return this.hiddenRows.indexOf(e)>-1},resetCellsMeta:function(){g(this.hot.getCellsMeta(),function(e){e&&(e.skipRowOnPaste=!1)})},onAfterGetCellMeta:function(e,t,o){if(this.settings.copyPasteEnabled===!1&&this.isHidden(e)?o.skipRowOnPaste=!0:o.skipRowOnPaste=!1,this.isHidden(e-1)){var n=!0,r=e-1;o.className=o.className||"",-1===o.className.indexOf("afterHiddenRow")&&(o.className+=" afterHiddenRow");do{if(!this.isHidden(r)){n=!1;break}r--}while(r>=0);n&&-1===o.className.indexOf("firstVisibleRow")&&(o.className+=" firstVisibleRow")}else if(o.className){var i=o.className.split(" ");if(i.length){var s=i.indexOf("afterHiddenRow"),l=i.indexOf("firstVisibleRow");s>-1&&i.splice(s,1),l>-1&&i.splice(l,1),o.className=i.join(" ")}}},onAfterGetRowHeader:function(e,t){var o=t.parentNode;o&&(this.isHidden(e)?h(o,"hide"):f(o,"hide"));var n=!0,r=e-1;do{if(!this.isHidden(r)){n=!1;break}r--}while(r>=0);n&&h(t,"firstVisibleRow"),this.settings.indicators&&this.hot.hasRowHeaders()&&(this.isHidden(e-1)&&h(t,"afterHiddenRow"),this.isHidden(e+1)&&h(t,"beforeHiddenRow"))},onModifyRowHeight:function(e,t){return this.isHidden(t)?.1:e},onModifyCopyableRange:function(e){var t=this,o=[],n=function(e,t,n,r){o.push({startRow:e,endRow:t,startCol:n,endCol:r})};return g(e,function(e){var o=!0,r=0;m(e.startRow,e.endRow,function(i){t.isHidden(i)?(o||n(r,i-1,e.startCol,e.endCol),o=!0):(o&&(r=i),i===e.endRow&&n(r,i,e.startCol,e.endCol),o=!1)})}),o},onBeforeSetRangeStart:function(e){var t=this;if(!(e.row>0)){e.row=0;var o=function(e){return t.isHidden(e)&&(e=o(++e)),e};e.row=o(e.row)}},onBeforeSetRangeEnd:function(e){var t=this,o=this.hot.countRows(),n=function(r){return t.isHidden(r)&&(t.lastSelectedRow>r||e.row===o-1?r>0?r=n(--r):m(0,t.lastSelectedRow,function(e){return t.isHidden(e)?void 0:(r=e,!1)}):r=n(++r)),r};e.row=n(e.row),this.lastSelectedRow=e.row},onAfterContextMenuDefaultOptions:function(e){e.items.push(Handsontable.plugins.ContextMenu.SEPARATOR,b(this),C(this))},onAfterRowMove:function(e,t){var o=[];g(this.hiddenRows,function(n){t>e?n>e&&t>n&&n--:e>n&&n>t&&n++,o.push(n)}),this.hiddenRows=o,this.hot.render()},onAfterCreateRow:function(e,t){var o=[];g(this.hiddenRows,function(n){n>=e&&(n+=t),o.push(n)}),this.hiddenRows=o},onAfterRemoveRow:function(e,t){var o=[];g(this.hiddenRows,function(n){n>=e&&(n-=t),o.push(n)}),this.hiddenRows=o},destroy:function(){$traceurRuntime.superGet(this,_.prototype,"destroy").call(this)}},{},d),v("hiddenRows",y)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,"contextMenuItem/hideRow":169,"contextMenuItem/showRow":170}],172:[function(e,t,o){"use strict";Object.defineProperties(o,{NestedHeaders:{get:function(){return C}},__esModule:{value:!0}});var n,r,i,s,l,a,u=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element"),n&&n.__esModule&&n||{"default":n}),d=u.addClass,c=u.removeClass,h=u.fastInnerHTML,f=u.empty,m=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),r&&r.__esModule&&r||{"default":r}).rangeEach,p=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),i&&i.__esModule&&i||{"default":i}).arrayEach,g=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),s&&s.__esModule&&s||{"default":s}).objectEach,w=(l=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),l&&l.__esModule&&l||{"default":l}),v=w.registerPlugin,b=(w.getPlugin,(a=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),a&&a.__esModule&&a||{"default":a})["default"]),C=function(e){$traceurRuntime.superConstructor(y).call(this,e),this.settings=[],this.columnHeaderLevelCount=0,this.colspanArray=[]},y=C;$traceurRuntime.createClass(C,{isEnabled:function(){return!!this.hot.getSettings().nestedHeaders},enablePlugin:function(){var e=this;this.enabled||(this.settings=this.hot.getSettings().nestedHeaders,this.addHook("afterGetColumnHeaderRenderers",function(t){return e.onAfterGetColumnHeaderRenderers(t)}),this.addHook("afterInit",function(){return e.onAfterInit()}),this.addHook("afterOnCellMouseDown",function(t,o,n){return e.onAfterOnCellMouseDown(t,o,n)}),this.addHook("beforeOnCellMouseOver",function(t,o,n,r){return e.onBeforeOnCellMouseOver(t,o,n,r)}),this.addHook("afterViewportColumnCalculatorOverride",function(t){return e.onAfterViewportColumnCalculatorOverride(t)}),this.setupColspanArray(),this.checkForFixedColumnsCollision(),this.columnHeaderLevelCount=this.hot.view?this.hot.view.wt.getSetting("columnHeaders").length:0,$traceurRuntime.superGet(this,y.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.clearColspans(),this.settings=[],this.columnHeaderLevelCount=0,this.colspanArray=[],$traceurRuntime.superGet(this,y.prototype,"disablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,y.prototype,"updatePlugin").call(this)},clearColspans:function(){if(this.hot.view)for(var e=this.hot.view.wt.getSetting("columnHeaders").length,t=this.hot.view.wt.wtTable.THEAD,o=this.hot.view.wt.wtOverlays.topOverlay.clone.wtTable.THEAD,n=this.hot.view.wt.wtOverlays.topLeftCornerOverlay?this.hot.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.THEAD:null,r=0;e>r;r++){var i=t.childNodes[r];if(!i)break;for(var s=o.childNodes[r],l=n?n.childNodes[r]:null,a=0,u=i.childNodes.length;u>a;a++)i.childNodes[a].removeAttribute("colspan"),s&&s.childNodes[a]&&s.childNodes[a].removeAttribute("colspan"),n&&l&&l.childNodes[a]&&l.childNodes[a].removeAttribute("colspan")}},checkForFixedColumnsCollision:function(){var e=this,t=this.hot.getSettings().fixedColumnsLeft;p(this.colspanArray,function(o,n){e.getNestedParent(n,t)!==t&&console.warn("You have declared a Nested Header overlapping the Fixed Columns section - it may lead to visual glitches. To prevent that kind of problems, split the nested headers between the fixed and non-fixed columns.")})},checkForOverlappingHeaders:function(){var e=this;p(this.colspanArray,function(t,o){p(e.colspanArray[o],function(t,n){if(t.colspan>1){var r=e.levelToRowCoords(o),i=e.getChildHeaders(r,n);if(i.length>0){var s=0;return p(i,function(t,o){s+=e.getColspan(r+1,t)}),s>t.colspan&&console.warn("Your Nested Headers plugin setup contains overlapping headers. This kind of configuration is currently not supported and might result in glitches."),!1}}})})},setupColspanArray:function(){function e(e,t){e[t]||(e[t]=[])}var t=this;g(this.settings,function(o,n){g(o,function(o,r,i){if(e(t.colspanArray,n),void 0===i[r].colspan)t.colspanArray[n].push({label:i[r]||"",colspan:1,hidden:!1});else{var s=i[r].colspan||1;t.colspanArray[n].push({label:i[r].label||"",colspan:s,hidden:!1}),t.fillColspanArrayWithDummies(s,n)}})})},fillColspanArrayWithDummies:function(e,t){var o=this;m(0,e-2,function(e){o.colspanArray[t].push({label:"",colspan:1,hidden:!0})})},headerRendererFactory:function(e){var t=this;return function(o,n){if(n.removeAttribute("colspan"),c(n,"hiddenHeader"),t.colspanArray[e][o]&&t.colspanArray[e][o].colspan){var r=t.colspanArray[e][o].colspan,i=t.hot.getSettings().fixedColumnsLeft||0,s=t.hot.view.wt.wtOverlays.topLeftCornerOverlay,l=t.hot.view.wt.wtOverlays.leftOverlay,a=s?s.clone.wtTable.THEAD.contains(n):!1,u=l?l.clone.wtTable.THEAD.contains(n):!1;r>1&&n.setAttribute("colspan",a||u?Math.min(r,i-o):r),(a||u&&o===i-1)&&d(n,"overlayEdge")}t.colspanArray[e][o]&&t.colspanArray[e][o].hidden&&d(n,"hiddenHeader"),f(n);var m=document.createElement("DIV");d(m,"relative");var p=document.createElement("SPAN");d(p,"colHeader"),h(p,t.colspanArray[e][o]?t.colspanArray[e][o].label||"":""),m.appendChild(p),n.appendChild(m),t.hot.runHooks("afterGetColHeader",o,n)}},getColspan:function(e,t){return this.colspanArray[this.rowCoordsToLevel(e)][t].colspan},levelToRowCoords:function(e){return e-this.columnHeaderLevelCount},rowCoordsToLevel:function(e){return e+this.columnHeaderLevelCount},getNestedParent:function(e,t){var o=this.colspanArray[e][t]?this.colspanArray[e][t].colspan:1,n=this.colspanArray[e][t]?this.colspanArray[e][t].hidden:!1;if(o>1||1===o&&n===!1)return t;var r=t-1;do{if(this.colspanArray[e][r].colspan>1)break;r--}while(t>=0);return r},getChildHeaders:function(e,t){var o=this.rowCoordsToLevel(e),n=this.colspanArray[o+1],r=this.getNestedParent(o,t),i=this.colspanArray[o][t].colspan,s=[];return n?(m(r,r+i-1,function(e){n[e]&&n[e].colspan>1&&(i-=n[e].colspan-1),n[e]&&!n[e].hidden&&-1===s.indexOf(e)&&s.push(e)}),s):s},fillTheRemainingColspans:function(){var e=this;g(this.settings,function(t,o){m(e.colspanArray[o].length-1,e.hot.countCols()-1,function(n){e.colspanArray[o].push({label:t[n]||"",colspan:1,hidden:!1})},!0)})},onAfterViewportColumnCalculatorOverride:function(e){var t=this,o=e.startColumn;m(0,Math.max(this.columnHeaderLevelCount-1,0),function(n){var r=t.getNestedParent(n,e.startColumn);if(r<e.startColumn){var i=Math.min(o,r);o=i}}),e.startColumn=o},onAfterOnCellMouseDown:function(e,t,o){if(t.row<0){var n=this.getColspan(t.row,t.col),r=t.col+n-1;if(n>1){var i=this.hot.countRows()-1;this.hot.selection.setRangeEnd(new WalkontableCellCoords(i,r))}}},onBeforeOnCellMouseOver:function(e,t,o,n){var r;if(t.row<0&&t.col>=0&&this.hot.view.isMouseDown()){var i=this.hot.getSelectedRange(),s=i.from,l=i.to,a=this.getColspan(t.row,t.col),u=t.col+a-1,d=!1;s.col<=l.col?(t.col<s.col&&u===l.col||t.col<s.col&&u<s.col||t.col<s.col&&u>=s.col&&u<l.col)&&(d=!0):(t.col<l.col&&u>s.col||t.col>s.col||t.col<=l.col&&u>s.col||t.col>l.col&&u>s.col)&&(d=!0),d&&(r=[l.col,s.col],s.col=r[0],l.col=r[1],r),a>1&&(n.column=!0,this.hot.selection.setSelectedHeaders(!1,!0),s.col===l.col&&(u<=s.col&&t.col<s.col?(this.hot.selection.setRangeStartOnly(new WalkontableCellCoords(s.row,l.col)),this.hot.selection.setRangeEnd(new WalkontableCellCoords(l.row,t.col))):(this.hot.selection.setRangeStartOnly(new WalkontableCellCoords(s.row,t.col<s.col?t.col:s.col)),this.hot.selection.setRangeEnd(new WalkontableCellCoords(l.row,u>l.col?u:l.col)))),s.col<l.col&&(this.hot.selection.setRangeStartOnly(new WalkontableCellCoords(s.row,t.col<s.col?t.col:s.col)),this.hot.selection.setRangeEnd(new WalkontableCellCoords(l.row,u))),s.col>l.col&&(this.hot.selection.setRangeStartOnly(new WalkontableCellCoords(s.row,s.col)),this.hot.selection.setRangeEnd(new WalkontableCellCoords(l.row,t.col))))}},onAfterInit:function(){this.columnHeaderLevelCount=this.hot.view.wt.getSetting("columnHeaders").length,this.fillTheRemainingColspans(),this.checkForOverlappingHeaders()},onAfterGetColumnHeaderRenderers:function(e){if(e){e.length=0;for(var t=this.colspanArray.length,o=t-1;o>=0;o--)e.push(this.headerRendererFactory(o));e.reverse()}},destroy:function(){this.settings=null,this.columnHeaderLevelCount=null,this.colspanArray=null,$traceurRuntime.superGet(this,y.prototype,"destroy").call(this)}},{},b),v("nestedHeaders",C)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/dom/element":46,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62}],173:[function(e,t,o){"use strict";Object.defineProperties(o,{RowsMapper:{get:function(){return c}},__esModule:{value:!0}});var n,r,i,s,l=(n=e("../../browser"),n&&n.__esModule&&n||{"default":n})["default"],a=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper"),r&&r.__esModule&&r||{"default":r}).arrayMapper,u=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object"),i&&i.__esModule&&i||{"default":i}).mixin,d=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),s&&s.__esModule&&s||{"default":s}).rangeEach,c=function(e){this.trimRows=e};$traceurRuntime.createClass(c,{createMap:function(e){var t=this,o=0,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,d(n-1,function(e){t.trimRows.isTrimmed(e)?o++:t._arrayMap[e-o]=e})},destroy:function(){this._arrayMap=null}},{}),u(c,a),l.utils.TrimRowsRowsMapper=c},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/object":52,"../../../node_modules/hot-builder/node_modules/handsontable/src/mixins/arrayMapper":56,"../../browser":113}],174:[function(e,t,o){"use strict";Object.defineProperties(o,{TrimRows:{get:function(){return f}},__esModule:{value:!0}});var n,r,i,s,l,a=(n=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base"),n&&n.__esModule&&n||{"default":n})["default"],u=(r=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array"),r&&r.__esModule&&r||{"default":r}).arrayEach,d=(i=e("../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number"),i&&i.__esModule&&i||{"default":i}).rangeEach,c=(s=e("../../../node_modules/hot-builder/node_modules/handsontable/src/plugins"),s&&s.__esModule&&s||{"default":s}).registerPlugin,h=(l=e("rowsMapper"),l&&l.__esModule&&l||{"default":l}).RowsMapper,f=function(e){$traceurRuntime.superConstructor(m).call(this,e),this.trimmedRows=[],this.removedRows=[],this.rowsMapper=new h(this)},m=f;$traceurRuntime.createClass(f,{isEnabled:function(){return!!this.hot.getSettings().trimRows},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().trimRows;Array.isArray(t)&&(this.trimmedRows=t),this.rowsMapper.createMap(this.hot.countSourceRows()),this.addHook("modifyRow",function(t,o){return e.onModifyRow(t,o)}),this.addHook("afterCreateRow",function(t,o){return e.onAfterCreateRow(t,o)}),this.addHook("beforeRemoveRow",function(t,o){return e.onBeforeRemoveRow(t,o)}),this.addHook("afterRemoveRow",function(t,o){return e.onAfterRemoveRow(t,o)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),$traceurRuntime.superGet(this,m.prototype,"enablePlugin").call(this)}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,m.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.trimmedRows=[],this.removedRows.length=0,this.rowsMapper.clearMap(),$traceurRuntime.superGet(this,m.prototype,"disablePlugin").call(this)},trimRows:function(e){var t=this;u(e,function(e){e=parseInt(e,10),t.isTrimmed(e)||t.trimmedRows.push(e)}),this.rowsMapper.createMap(this.hot.countSourceRows()),this.hot.runHooks("afterTrimRow",e)},trimRow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.trimRows(e)},untrimRows:function(e){var t=this;u(e,function(e){e=parseInt(e,10),t.isTrimmed(e)&&t.trimmedRows.splice(t.trimmedRows.indexOf(e),1)}),this.rowsMapper.createMap(this.hot.countSourceRows()),this.hot.runHooks("afterUntrimRow",e)},untrimRow:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.untrimRows(e)},isTrimmed:function(e){return this.trimmedRows.indexOf(e)>-1},untrimAll:function(){this.untrimRows([].concat(this.trimmedRows))},onModifyRow:function(e,t){return t!==this.pluginName&&(e=this.rowsMapper.getValueByIndex(e)),e},onAfterCreateRow:function(e,t){this.rowsMapper.shiftItems(e,t)},onBeforeRemoveRow:function(e,t){var o=this;this.removedRows.length=0,e!==!1&&d(e,e+t-1,function(e){o.removedRows.push(o.hot.runHooks("modifyRow",e,o.pluginName))})},onAfterRemoveRow:function(e,t){this.rowsMapper.unshiftItems(this.removedRows)},onAfterLoadData:function(e){e||this.rowsMapper.createMap(this.hot.countSourceRows())},destroy:function(){this.rowsMapper.destroy(),$traceurRuntime.superGet(this,m.prototype,"destroy").call(this)}},{},a),c("trimRows",f)},{"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/array":42,"../../../node_modules/hot-builder/node_modules/handsontable/src/helpers/number":51,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins":61,"../../../node_modules/hot-builder/node_modules/handsontable/src/plugins/_base":62,rowsMapper:173}],SheetClip:[function(e,t,o){!function(e){"use strict";function t(e){return e.split('"').length-1}var n={parse:function(e){var o,n,r,i,s,l,a,u=[],d=0;for(r=e.split("\n"),r.length>1&&""===r[r.length-1]&&r.pop(),o=0,n=r.length;n>o;o+=1){for(r[o]=r[o].split(" "),i=0,s=r[o].length;s>i;i+=1)u[d]||(u[d]=[]),l&&0===i?(a=u[d].length-1,u[d][a]=u[d][a]+"\n"+r[o][0],l&&1&t(r[o][0])&&(l=!1,u[d][a]=u[d][a].substring(0,u[d][a].length-1).replace(/""/g,'"'))):i===s-1&&0===r[o][i].indexOf('"')&&1&t(r[o][i])?(u[d].push(r[o][i].substring(1).replace(/""/g,'"')),l=!0):(u[d].push(r[o][i].replace(/""/g,'"')),l=!1);l||(d+=1)}return u},stringify:function(e){var t,o,n,r,i,s="";for(t=0,o=e.length;o>t;t+=1){for(r=e[t].length,n=0;r>n;n+=1)n>0&&(s+=" "),i=e[t][n],s+="string"==typeof i?i.indexOf("\n")>-1?'"'+i.replace(/"/g,'""')+'"':i:null===i||void 0===i?"":i;s+="\n"}return s}};"undefined"!=typeof o?(o.parse=n.parse,o.stringify=n.stringify):e.SheetClip=n}(window)},{}],autoResize:[function(e,t,o){function n(){function e(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}var t,o={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},n=document.body,r=document.createTextNode(""),i=document.createElement("SPAN"),s=function(e,t,o){window.attachEvent?e.attachEvent("on"+t,o):e.addEventListener(t,o,!1)},l=function(e,t,o){window.removeEventListener?e.removeEventListener(t,o,!1):e.detachEvent("on"+t,o)},a=function(s){var l,a;s?/^[a-zA-Z \.,\\\/\|0-9]$/.test(s)||(s="."):s="",void 0!==r.textContent?r.textContent=t.value+s:r.data=t.value+s,i.style.fontSize=e(t).fontSize,i.style.fontFamily=e(t).fontFamily,i.style.whiteSpace="pre",n.appendChild(i),l=i.clientWidth+2,n.removeChild(i),t.style.height=o.minHeight+"px",o.minWidth>l?t.style.width=o.minWidth+"px":l>o.maxWidth?t.style.width=o.maxWidth+"px":t.style.width=l+"px",a=t.scrollHeight?t.scrollHeight-1:0,o.minHeight>a?t.style.height=o.minHeight+"px":o.maxHeight<a?(t.style.height=o.maxHeight+"px",t.style.overflowY="visible"):t.style.height=a+"px"},u=function(){window.setTimeout(a,0)},d=function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)o.minHeight=t.clientHeight;else{var n=parseInt(e.minHeight);isNaN(n)||(o.minHeight=n)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)o.maxHeight=t.clientHeight;else{var s=parseInt(e.maxHeight);isNaN(s)||(o.maxHeight=s)}if(e&&e.minWidth)if("inherit"==e.minWidth)o.minWidth=t.clientWidth;else{var l=parseInt(e.minWidth);isNaN(l)||(o.minWidth=l)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)o.maxWidth=t.clientWidth;else{var a=parseInt(e.maxWidth);isNaN(a)||(o.maxWidth=a)}i.firstChild||(i.className="autoResize",i.style.display="inline-block",i.appendChild(r))},c=function(e,n,r){t=e,d(n),"TEXTAREA"==t.nodeName&&(t.style.resize="none",t.style.overflowY="",t.style.height=o.minHeight+"px",t.style.minWidth=o.minWidth+"px",t.style.maxWidth=o.maxWidth+"px",t.style.overflowY="hidden"),r&&(s(t,"change",a),s(t,"cut",u),s(t,"paste",u),s(t,"drop",u),s(t,"keydown",u),s(t,"focus",a)),a()};return{init:function(e,t,o){c(e,t,o)},unObserve:function(){l(t,"change",a),l(t,"cut",u),l(t,"paste",u),l(t,"drop",u),l(t,"keydown",u),l(t,"focus",a)},resize:a}}"undefined"!=typeof o&&(t.exports=n)},{}],copyPaste:[function(e,t,o){function n(){return i?i.hasBeenDestroyed()&&i.init():i=new r,i.refCounter++,i}function r(){this.refCounter=0,this.init()}var i;"undefined"!=typeof o&&(t.exports=n),r.prototype.init=function(){var e,t;this.copyCallbacks=[],this.cutCallbacks=[],this.pasteCallbacks=[],t=document.body,document.getElementById("CopyPasteDiv")?(this.elDiv=document.getElementById("CopyPasteDiv"),this.elTextarea=this.elDiv.firstChild):(this.elDiv=document.createElement("div"),this.elDiv.id="CopyPasteDiv",e=this.elDiv.style,e.position="fixed",e.top="-10000px",e.left="-10000px",t.appendChild(this.elDiv),this.elTextarea=document.createElement("textarea"),this.elTextarea.className="copyPaste",this.elTextarea.onpaste=function(e){var t,o;"WebkitAppearance"in document.documentElement.style&&(t=e.clipboardData.getData("Text"),-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&(o=t.split("\n"),""===o[o.length-1]&&o.pop(),t=o.join("\n")),this.value=t,e.preventDefault())},e=this.elTextarea.style,e.width="10000px",e.height="10000px",e.overflow="hidden",this.elDiv.appendChild(this.elTextarea),"undefined"!=typeof e.opacity&&(e.opacity=0)),this.onKeyDownRef=this.onKeyDown.bind(this),document.documentElement.addEventListener("keydown",this.onKeyDownRef,!1)},r.prototype.onKeyDown=function(e){function t(){var e=document.activeElement;return e.shadowRoot&&e.shadowRoot.activeElement&&(e=e.shadowRoot.activeElement),
["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable}var o=this,n=!1;if(e.metaKey?n=!0:e.ctrlKey&&-1===navigator.userAgent.indexOf("Mac")&&(n=!0),n){if(document.activeElement!==this.elTextarea&&(""!==this.getSelectionText()||t()))return;this.selectNodeText(this.elTextarea),setTimeout(function(){document.activeElement!==o.elTextarea&&o.selectNodeText(o.elTextarea)},0)}e.isImmediatePropagationEnabled===!1||!n||67!==e.keyCode&&86!==e.keyCode&&88!==e.keyCode||(88===e.keyCode?setTimeout(function(){o.triggerCut(e)},0):86===e.keyCode&&setTimeout(function(){o.triggerPaste(e)},0))},r.prototype.selectNodeText=function(e){e&&e.select()},r.prototype.getSelectionText=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e},r.prototype.copyable=function(e){if("string"!=typeof e&&void 0===e.toString)throw new Error("copyable requires string parameter");this.elTextarea.value=e,this.selectNodeText(this.elTextarea)},r.prototype.onCut=function(e){this.cutCallbacks.push(e)},r.prototype.onPaste=function(e){this.pasteCallbacks.push(e)},r.prototype.removeCallback=function(e){var t,o;for(t=0,o=this.copyCallbacks.length;o>t;t++)if(this.copyCallbacks[t]===e)return this.copyCallbacks.splice(t,1),!0;for(t=0,o=this.cutCallbacks.length;o>t;t++)if(this.cutCallbacks[t]===e)return this.cutCallbacks.splice(t,1),!0;for(t=0,o=this.pasteCallbacks.length;o>t;t++)if(this.pasteCallbacks[t]===e)return this.pasteCallbacks.splice(t,1),!0;return!1},r.prototype.triggerCut=function(e){var t=this;t.cutCallbacks&&setTimeout(function(){for(var o=0,n=t.cutCallbacks.length;n>o;o++)t.cutCallbacks[o](e)},50)},r.prototype.triggerPaste=function(e,t){var o=this;o.pasteCallbacks&&setTimeout(function(){for(var n=t||o.elTextarea.value,r=0,i=o.pasteCallbacks.length;i>r;r++)o.pasteCallbacks[r](n,e)},50)},r.prototype.destroy=function(){this.hasBeenDestroyed()||0!==--this.refCounter||(this.elDiv&&this.elDiv.parentNode&&(this.elDiv.parentNode.removeChild(this.elDiv),this.elDiv=null,this.elTextarea=null),document.documentElement.removeEventListener("keydown",this.onKeyDownRef),this.onKeyDownRef=null)},r.prototype.hasBeenDestroyed=function(){return!this.refCounter}},{}],es6collections:[function(e,t,o){/*!
* Copyright (C) 2011 by Andrea Giammarchi, @WebReflection
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
!function(e){"use strict";function t(e,t){function n(e){return this&&this.constructor===n?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,void(e&&o.call(this,e))):new n(e)}return t||b(e,"size",{get:g}),e.constructor=n,n.prototype=e,n}function o(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}function n(e){return this.has(e)&&(this._keys.splice(v,1),this._values.splice(v,1),this._itp.forEach(function(e){v<e[0]&&e[0]--})),v>-1}function r(e){return this.has(e)?this._values[v]:void 0}function i(e,t){if(this.objectOnly&&t!==Object(t))throw new TypeError("Invalid value used as weak collection key");if(t!=t||0===t)for(v=e.length;v--&&!C(e[v],t););else v=e.indexOf(t);return v>-1}function s(e){return i.call(this,this._values,e)}function l(e){return i.call(this,this._keys,e)}function a(e,t){return this.has(e)?this._values[v]=t:this._values[this._keys.push(e)-1]=t,this}function u(e){return this.has(e)||this._values.push(e),this}function d(){this._values.length=0}function c(){return p(this._itp,this._keys)}function h(){return p(this._itp,this._values)}function f(){return p(this._itp,this._keys,this._values)}function m(){return p(this._itp,this._values,this._values)}function p(e,t,o){var n=[0],r=!1;return e.push(n),{next:function(){var i,s=n[0];return!r&&s<t.length?(i=o?[t[s],o[s]]:t[s],n[0]++):(r=!0,e.splice(e.indexOf(n),1)),{done:r,value:i}}}}function g(){return this._values.length}function w(e,t){for(var o=this.entries();;){var n=o.next();if(n.done)break;e.call(t,n.value[1],n.value[0],this)}}var v,b=Object.defineProperty,C=function(e,t){return isNaN(e)?isNaN(t):e===t};"undefined"==typeof WeakMap&&(e.WeakMap=t({"delete":n,clear:d,get:r,has:l,set:a},!0)),"undefined"==typeof Map&&(e.Map=t({"delete":n,has:l,get:r,set:a,keys:c,values:h,entries:f,forEach:w,clear:d})),"undefined"==typeof Set&&(e.Set=t({has:s,add:u,"delete":n,clear:d,keys:h,values:h,entries:m,forEach:w})),"undefined"==typeof WeakSet&&(e.WeakSet=t({"delete":n,add:u,clear:d,has:s},!0))}("undefined"!=typeof o&&"undefined"!=typeof global?global:window)},{}],jsonpatch:[function(e,t,o){/*!
* https://github.com/Starcounter-Jack/JSON-Patch
* json-patch-duplex.js version: 0.5.7
* (c) 2013 Joachim Wester
* MIT license
*/
var n,r=this&&this.__extends||function(e,t){function o(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)},i=Error;!function(e){function t(e,o){switch(typeof e){case"undefined":case"boolean":case"string":case"number":return e===o;case"object":if(null===e)return null===o;if(E(e)){if(!E(o)||e.length!==o.length)return!1;for(var n=0,r=e.length;r>n;n++)if(!t(e[n],o[n]))return!1;return!0}var i=b(o),s=i.length;if(b(e).length!==s)return!1;for(var n=0;s>n;n++)if(!t(e[n],o[n]))return!1;return!0;default:return!1}}function o(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function n(e){for(var t=0,o=R.length;o>t;t++)if(R[t].obj===e)return R[t]}function s(e,t){for(var o=0,n=e.observers.length;n>o;o++)if(e.observers[o].callback===t)return e.observers[o].observer}function l(e,t){for(var o=0,n=e.observers.length;n>o;o++)if(e.observers[o].observer===t)return void e.observers.splice(o,1)}function a(e,t){t.unobserve()}function u(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function d(e,t){var o,r=[],a=n(e);if(a?o=s(a,t):(a=new M(e),R.push(a)),o)return o;if(o={},a.value=u(e),t){o.callback=t,o.next=null;var d=this.intervals||[100,1e3,1e4,6e4];if(void 0===d.push)throw new i("jsonpatch.intervals must be an array");var h=0,f=function(){c(o)},m=function(){clearTimeout(o.next),o.next=setTimeout(function(){f(),h=0,o.next=setTimeout(p,d[h++])},0)},p=function(){f(),h==d.length&&(h=d.length-1),o.next=setTimeout(p,d[h++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",m),window.addEventListener("mouseup",m),window.addEventListener("keydown",m)):(document.documentElement.attachEvent("onmousedown",m),document.documentElement.attachEvent("onmouseup",m),document.documentElement.attachEvent("onkeydown",m))),o.next=setTimeout(p,d[h++])}return o.patches=r,o.object=e,o.unobserve=function(){c(o),clearTimeout(o.next),l(a,o),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",m),window.removeEventListener("mouseup",m),window.removeEventListener("keydown",m)):(document.documentElement.detachEvent("onmousedown",m),document.documentElement.detachEvent("onmouseup",m),document.documentElement.detachEvent("onkeydown",m)))},a.observers.push(new S(t,o)),o}function c(e){for(var t,o=0,n=R.length;n>o;o++)if(R[o].obj===e.object){t=R[o];break}h(t.value,e.object,e.patches,""),e.patches.length&&m(t.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function h(e,t,n,r){for(var i=b(t),s=b(e),l=!1,a=!1,d=s.length-1;d>=0;d--){var c=s[d],f=e[c];if(t.hasOwnProperty(c)){var m=t[c];"object"==typeof f&&null!=f&&"object"==typeof m&&null!=m?h(f,m,n,r+"/"+o(c)):f!=m&&(l=!0,n.push({op:"replace",path:r+"/"+o(c),value:u(m)}))}else n.push({op:"remove",path:r+"/"+o(c)}),a=!0}if(a||i.length!=s.length)for(var d=0;d<i.length;d++){var c=i[d];e.hasOwnProperty(c)||n.push({op:"add",path:r+"/"+o(c),value:u(t[c])})}}function f(e){for(var t,o=0,n=e.length;n>o;){t=e.charCodeAt(o);{if(!(t>=48&&57>=t))return!1;o++}}return!0}function m(e,t,o){for(var n,r,i=!1,s=0,l=t.length;l>s;){n=t[s],s++;for(var a=n.path||"",u=a.split("/"),d=e,c=1,h=u.length,m=void 0;;){if(r=u[c],o&&void 0===m&&(void 0===d[r]?m=u.slice(0,c).join("/"):c==h-1&&(m=n.path),void 0!==m&&this.validator(n,s-1,e,m)),c++,void 0===r&&c>=h){i=_[n.op].call(n,d,r,e);break}if(E(d)){if("-"===r)r=d.length;else{if(o&&!f(r))throw new O("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s-1,n.path,n);r=parseInt(r,10)}if(c>=h){if(o&&"add"===n.op&&r>d.length)throw new O("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s-1,n.path,n);i=y[n.op].call(n,d,r,e);break}}else if(r&&-1!=r.indexOf("~")&&(r=r.replace(/~1/g,"/").replace(/~0/g,"~")),c>=h){i=C[n.op].call(n,d,r,e);break}d=d[r]}}return i}function p(e,t){var o=[];return h(e,t,o,""),o}function g(e){if(void 0===e)return!0;if("array"==typeof e||"object"==typeof e)for(var t in e)if(g(e[t]))return!0;return!1}function w(t,o,n,r){if("object"!=typeof t||null===t||E(t))throw new O("Operation is not an object","OPERATION_NOT_AN_OBJECT",o,t,n);if(!C[t.op])throw new O("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",o,t,n);if("string"!=typeof t.path)throw new O("Operation `path` property is not a string","OPERATION_PATH_INVALID",o,t,n);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new O("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",o,t,n);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new O("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",o,t,n);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&g(t.value))throw new O("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",o,t,n);if(n)if("add"==t.op){var i=t.path.split("/").length,s=r.split("/").length;if(i!==s+1&&i!==s)throw new O("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",o,t,n)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==r)throw new O("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",o,t,n)}else if("move"===t.op||"copy"===t.op){var l={op:"_get",path:t.from,value:void 0},a=e.validate([l],n);if(a&&"OPERATION_PATH_UNRESOLVABLE"===a.name)throw new O("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",o,t,n)}}function v(e,t){try{if(!E(e))throw new O("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),m.call(this,t,e,!0);else for(var o=0;o<e.length;o++)this.validator(e[o],o)}catch(n){if(n instanceof O)return n;throw n}}var b=function(e){if(E(e)){for(var t=new Array(e.length),o=0;o<t.length;o++)t[o]=""+o;return t}if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t},C={add:function(e,t){return e[t]=this.value,!0},remove:function(e,t){return delete e[t],!0},replace:function(e,t){return e[t]=this.value,!0},move:function(e,t,o){var n={op:"_get",path:this.from};return m(o,[n]),m(o,[{op:"remove",path:this.from}]),m(o,[{op:"add",path:this.path,value:n.value}]),!0},copy:function(e,t,o){var n={op:"_get",path:this.from};return m(o,[n]),m(o,[{op:"add",path:this.path,value:n.value}]),!0},test:function(e,o){return t(e[o],this.value)},_get:function(e,t){this.value=e[t]}},y={add:function(e,t){return e.splice(t,0,this.value),!0},remove:function(e,t){return e.splice(t,1),!0},replace:function(e,t){return e[t]=this.value,!0},move:C.move,copy:C.copy,test:C.test,_get:C._get},_={add:function(e){_.remove.call(this,e);for(var t in this.value)this.value.hasOwnProperty(t)&&(e[t]=this.value[t]);return!0},remove:function(e){for(var t in e)e.hasOwnProperty(t)&&C.remove.call(this,e,t);return!0},replace:function(e){return m(e,[{op:"remove",path:this.path}]),m(e,[{op:"add",path:this.path,value:this.value}]),!0},move:C.move,copy:C.copy,test:function(e){return JSON.stringify(e)===JSON.stringify(this.value)},_get:function(e){this.value=e}},R=[],M=function(){function e(e){this.observers=[],this.obj=e}return e}(),S=function(){function e(e,t){this.callback=e,this.observer=t}return e}();e.unobserve=a,e.observe=d,e.generate=c;var E;E=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=m,e.compare=p;var O=function(e){function t(t,o,n,r,i){e.call(this,t),this.message=t,this.name=o,this.index=n,this.operation=r,this.tree=i}return r(t,e),t}(i);e.JsonPatchError=O,e.Error=O,e.validator=w,e.validate=v}(n||(n={})),"undefined"!=typeof o&&(o.apply=n.apply,o.observe=n.observe,o.unobserve=n.unobserve,o.generate=n.generate,o.compare=n.compare,o.validate=n.validate,o.validator=n.validator,o.JsonPatchError=n.JsonPatchError,o.Error=n.Error)},{}],numeral:[function(t,o,n){/*!
* numeral.js
* version : 1.5.3
* author : Adam Draper
* license : MIT
* http://adamwdraper.github.com/Numeral-js/
*/
(function(){function t(e){this._value=e}function n(e,t,o,n){var r,i,s=Math.pow(10,t);return i=(o(e*s)/s).toFixed(t),n&&(r=new RegExp("0{1,"+n+"}$"),i=i.replace(r,"")),i}function r(e,t,o){var n;return n=t.indexOf("$")>-1?s(e,t,o):t.indexOf("%")>-1?l(e,t,o):t.indexOf(":")>-1?a(e,t):d(e._value,t,o)}function i(e,t){var o,n,r,i,s,l=t,a=["KB","MB","GB","TB","PB","EB","ZB","YB"],d=!1;if(t.indexOf(":")>-1)e._value=u(t);else if(t===v)e._value=0;else{for("."!==g[w].delimiters.decimal&&(t=t.replace(/\./g,"").replace(g[w].delimiters.decimal,".")),o=new RegExp("[^a-zA-Z]"+g[w].abbreviations.thousand+"(?:\\)|(\\"+g[w].currency.symbol+")?(?:\\))?)?$"),n=new RegExp("[^a-zA-Z]"+g[w].abbreviations.million+"(?:\\)|(\\"+g[w].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+g[w].abbreviations.billion+"(?:\\)|(\\"+g[w].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+g[w].abbreviations.trillion+"(?:\\)|(\\"+g[w].currency.symbol+")?(?:\\))?)?$"),s=0;s<=a.length&&!(d=t.indexOf(a[s])>-1?Math.pow(1024,s+1):!1);s++);e._value=(d?d:1)*(l.match(o)?Math.pow(10,3):1)*(l.match(n)?Math.pow(10,6):1)*(l.match(r)?Math.pow(10,9):1)*(l.match(i)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*Number(t.replace(/[^0-9\.]+/g,"")),e._value=d?Math.ceil(e._value):e._value}return e._value}function s(e,t,o){var n,r,i=t.indexOf("$"),s=t.indexOf("("),l=t.indexOf("-"),a="";return t.indexOf(" $")>-1?(a=" ",t=t.replace(" $","")):t.indexOf("$ ")>-1?(a=" ",t=t.replace("$ ","")):t=t.replace("$",""),r=d(e._value,t,o),1>=i?r.indexOf("(")>-1||r.indexOf("-")>-1?(r=r.split(""),n=1,(s>i||l>i)&&(n=0),r.splice(n,0,g[w].currency.symbol+a),r=r.join("")):r=g[w].currency.symbol+a+r:r.indexOf(")")>-1?(r=r.split(""),r.splice(-1,0,a+g[w].currency.symbol),r=r.join("")):r=r+a+g[w].currency.symbol,r}function l(e,t,o){var n,r="",i=100*e._value;return t.indexOf(" %")>-1?(r=" ",t=t.replace(" %","")):t=t.replace("%",""),n=d(i,t,o),n.indexOf(")")>-1?(n=n.split(""),n.splice(-1,0,r+"%"),n=n.join("")):n=n+r+"%",n}function a(e){var t=Math.floor(e._value/60/60),o=Math.floor((e._value-60*t*60)/60),n=Math.round(e._value-60*t*60-60*o);return t+":"+(10>o?"0"+o:o)+":"+(10>n?"0"+n:n)}function u(e){var t=e.split(":"),o=0;return 3===t.length?(o+=60*Number(t[0])*60,o+=60*Number(t[1]),o+=Number(t[2])):2===t.length&&(o+=60*Number(t[0]),o+=Number(t[1])),Number(o)}function d(e,t,o){var r,i,s,l,a,u,d=!1,c=!1,h=!1,f="",m=!1,p=!1,b=!1,C=!1,y=!1,_="",R="",M=Math.abs(e),S=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],E="",O=!1;if(0===e&&null!==v)return v;if(t.indexOf("(")>-1?(d=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(c=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(m=t.indexOf("aK")>=0,p=t.indexOf("aM")>=0,b=t.indexOf("aB")>=0,C=t.indexOf("aT")>=0,y=m||p||b||C,t.indexOf(" a")>-1?(f=" ",t=t.replace(" a","")):t=t.replace("a",""),M>=Math.pow(10,12)&&!y||C?(f+=g[w].abbreviations.trillion,e/=Math.pow(10,12)):M<Math.pow(10,12)&&M>=Math.pow(10,9)&&!y||b?(f+=g[w].abbreviations.billion,e/=Math.pow(10,9)):M<Math.pow(10,9)&&M>=Math.pow(10,6)&&!y||p?(f+=g[w].abbreviations.million,e/=Math.pow(10,6)):(M<Math.pow(10,6)&&M>=Math.pow(10,3)&&!y||m)&&(f+=g[w].abbreviations.thousand,e/=Math.pow(10,3))),t.indexOf("b")>-1)for(t.indexOf(" b")>-1?(_=" ",t=t.replace(" b","")):t=t.replace("b",""),s=0;s<=S.length;s++)if(r=Math.pow(1024,s),i=Math.pow(1024,s+1),e>=r&&i>e){_+=S[s],r>0&&(e/=r);break}return t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(R=" ",t=t.replace(" o","")):t=t.replace("o",""),R+=g[w].ordinal(e)),t.indexOf("[.]")>-1&&(h=!0,t=t.replace("[.]",".")),l=e.toString().split(".")[0],a=t.split(".")[1],u=t.indexOf(","),a?(a.indexOf("[")>-1?(a=a.replace("]",""),a=a.split("["),E=n(e,a[0].length+a[1].length,o,a[1].length)):E=n(e,a.length,o),l=E.split(".")[0],E=E.split(".")[1].length?g[w].delimiters.decimal+E.split(".")[1]:"",h&&0===Number(E.slice(1))&&(E="")):l=n(e,null,o),l.indexOf("-")>-1&&(l=l.slice(1),O=!0),u>-1&&(l=l.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+g[w].delimiters.thousands)),0===t.indexOf(".")&&(l=""),(d&&O?"(":"")+(!d&&O?"-":"")+(!O&&c?"+":"")+l+E+(R?R:"")+(f?f:"")+(_?_:"")+(d&&O?")":"")}function c(e,t){g[e]=t}function h(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function f(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var o=h(e),n=h(t);return o>n?o:n},-(1/0))}var m,p="1.5.3",g={},w="en",v=null,b="0,0",C="undefined"!=typeof o&&o.exports;m=function(e){return m.isNumeral(e)?e=e.value():0===e||"undefined"==typeof e?e=0:Number(e)||(e=m.fn.unformat(e)),new t(Number(e))},m.version=p,m.isNumeral=function(e){return e instanceof t},m.language=function(e,t){if(!e)return w;if(e&&!t){if(!g[e])throw new Error("Unknown language : "+e);w=e}return!t&&g[e]||c(e,t),m},m.languageData=function(e){if(!e)return g[w];if(!g[e])throw new Error("Unknown language : "+e);return g[e]},m.language("en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),m.zeroFormat=function(e){v="string"==typeof e?e:null},m.defaultFormat=function(e){b="string"==typeof e?e:"0.0"},m.validate=function(e,t){var o,n,r,i,s,l,a,u;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),""===e)return!1;e=e.replace(/^[+-]?/,"");try{a=m.languageData(t)}catch(d){a=m.languageData(m.language())}return r=a.currency.symbol,s=a.abbreviations,o=a.delimiters.decimal,n="."===a.delimiters.thousands?"\\.":a.delimiters.thousands,u=e.match(/^[^\d\.\,]+/),null!==u&&(e=e.substr(1),u[0]!==r)?!1:(u=e.match(/[^\d]+$/),null!==u&&(e=e.slice(0,-1),u[0]!==s.thousand&&u[0]!==s.million&&u[0]!==s.billion&&u[0]!==s.trillion)?!1:e.match(/^\d+$/)?!0:(l=new RegExp(n+"{2}"),e.match(/[^\d.,]/g)?!1:(i=e.split(o),i.length>2?!1:i.length<2?!!i[0].match(/^\d+.*\d$/)&&!i[0].match(l):""===i[0]?!i[0].match(l)&&!!i[1].match(/^\d+$/):1===i[0].length?!!i[0].match(/^\d+$/)&&!i[0].match(l)&&!!i[1].match(/^\d+$/):!!i[0].match(/^\d+.*\d$/)&&!i[0].match(l)&&!!i[1].match(/^\d+$/))))},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){"use strict";if(null===this||"undefined"==typeof this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof e)throw new TypeError(e+" is not a function");var o,n,r=this.length>>>0,i=!1;for(1<arguments.length&&(n=t,i=!0),o=0;r>o;++o)this.hasOwnProperty(o)&&(i?n=e(n,this[o],o,this):(n=this[o],i=!0));if(!i)throw new TypeError("Reduce of empty array with no initial value");return n}),m.fn=t.prototype={clone:function(){return m(this)},format:function(e,t){return r(this,e?e:b,void 0!==t?t:Math.round)},unformat:function(e){return"[object Number]"===Object.prototype.toString.call(e)?e:i(this,e?e:b)},value:function(){return this._value},valueOf:function(){return this._value},set:function(e){return this._value=Number(e),this},add:function(e){function t(e,t,n,r){return e+o*t}var o=f.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/o,this},subtract:function(e){function t(e,t,n,r){return e-o*t}var o=f.call(null,this._value,e);return this._value=[e].reduce(t,this._value*o)/o,this},multiply:function(e){function t(e,t,o,n){var r=f(e,t);return e*r*(t*r)/(r*r)}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t,o,n){var r=f(e,t);return e*r/(t*r)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(m(this._value).subtract(e).value())}},C&&(o.exports=m),"undefined"==typeof ender&&(this.numeral=m),"function"==typeof e&&e.amd&&e([],function(){return m})}).call(window)},{}]},{},[113,63,65,64,66,87,88,89,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,90,91,92,93,107,108,109,110,96,97,98,99,100,101,31,35,32,33,40,34,36,37,38,39,114,115,116,117,118,172,166,167,168,119,120,121,122,123,125,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,158,159,160,161,162,163,164,165,169,170,171,173,174])(113)});