text: webpackJsonp([5,18,43],{102:function(e,t,n){var o=n(1)(n(279),n(330),null,null);e.exports=o.exports},137:function(e,t,n){var o=n(1)(n(570),n(780),null,null);e.exports=o.exports},143:function(e,t,n){"use strict";t.a={props:{card:Boolean,visible:Boolean,closable:Boolean,transition:{type:String,default:"fade"}},data:function(){return{show:this.visible}},mounted:function(){document.body.appendChild(this.$el)},methods:{beforeEnter:function(){this.$emit("open")},afterLeave:function(){this.$emit("close")},active:function(){this.show=!0},deactive:function(){this.show=!1}},computed:{enterClass:function(){return this.transition+"In"},leaveClass:function(){return this.transition+"Out"}},watch:{visible:function(e){this.show=e}}}},147:function(e,t,n){"use strict";var o=n(153),i=n.n(o),r=(n(143),n(151)),s=n.n(r),a=n(152),l=n.n(a);n.d(t,"a",function(){return i.a}),n.d(t,"c",function(){return s.a}),n.d(t,"b",function(){return l.a})},148:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(143);t.default={mixins:[o.a],props:{title:{type:String},okText:{type:String,default:"Ok"},cancelText:{type:String,default:"Cancel"}},computed:{classes:function(){return["modal","animated","is-active"]}},methods:{ok:function(){this.$emit("ok")},cancel:function(){this.$emit("cancel")}}}},149:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(143);t.default={mixins:[o.a],props:{closable:{type:Boolean,default:!0}},computed:{classes:function(){return["modal","animated","is-active"]}}}},150:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(143);t.default={mixins:[o.a],props:{closable:{type:Boolean,default:!0}},computed:{classes:function(){return["modal","animated","is-active"]}}}},151:function(e,t,n){var o=n(1)(n(148),n(156),null,null);e.exports=o.exports},152:function(e,t,n){var o=n(1)(n(149),n(154),null,null);e.exports=o.exports},153:function(e,t,n){var o=n(1)(n(150),n(155),null,null);e.exports=o.exports},154:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.transition,mode:"in-out",appear:"","appear-active-class":e.enterClass,"enter-active-class":e.enterClass,"leave-active-class":e.leaveClass},on:{beforeEnter:e.beforeEnter,afterLeave:e.afterLeave}},[e.show?n("div",{class:e.classes},[n("div",{staticClass:"modal-background",on:{click:e.deactive}}),e._v(" "),n("div",{staticClass:"modal-content"},[e._t("default")],2),e._v(" "),e.closable?n("button",{staticClass:"modal-close",on:{click:e.deactive}}):e._e()]):e._e()])},staticRenderFns:[]}},155:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.transition,mode:"in-out",appear:"","appear-active-class":e.enterClass,"enter-active-class":e.enterClass,"leave-active-class":e.leaveClass},on:{beforeEnter:e.beforeEnter,afterLeave:e.afterLeave}},[e.show?n("div",{class:e.classes},[n("div",{staticClass:"modal-background",on:{click:e.deactive}}),e._v(" "),n("div",{staticClass:"modal-container"},[n("div",{staticClass:"modal-content"},[e._t("default")],2)]),e._v(" "),e.closable?n("button",{staticClass:"modal-close",on:{click:e.deactive}}):e._e()]):e._e()])},staticRenderFns:[]}},156:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:e.transition,mode:"in-out",appear:"","appear-active-class":e.enterClass,"enter-active-class":e.enterClass,"leave-active-class":e.leaveClass},on:{beforeEnter:e.beforeEnter,afterLeave:e.afterLeave}},[e.show?n("div",{class:e.classes},[n("div",{staticClass:"modal-background",on:{click:e.deactive}}),e._v(" "),n("div",{staticClass:"modal-card"},[n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[e._v(e._s(e.title))]),e._v(" "),n("button",{staticClass:"delete",on:{click:e.deactive}})]),e._v(" "),n("section",{staticClass:"modal-card-body"},[e._t("default")],2),e._v(" "),n("footer",{staticClass:"modal-card-foot"},[n("a",{staticClass:"button is-primary",on:{click:e.ok}},[e._v(e._s(e.okText))]),e._v(" "),n("a",{staticClass:"button",on:{click:e.cancel}},[e._v(e._s(e.cancelText))])])])]):e._e()])},staticRenderFns:[]}},279:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(147);t.default={components:{Modal:o.a},props:{visible:Boolean},methods:{close:function(){this.$emit("close")}}}},330:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal",{attrs:{visible:e.visible},on:{close:e.close}},[n("div",{staticClass:"box"},[n("article",{staticClass:"media"},[n("div",{staticClass:"media-left"},[n("figure",{staticClass:"image is-64x64"},[n("img",{attrs:{src:"http://placehold.it/128x128",alt:"Image"}})])]),e._v(" "),n("div",{staticClass:"media-content"},[n("div",{staticClass:"content"},[n("p",[n("strong",[e._v("John Smith")]),e._v(" "),n("small",[e._v("@johnsmith")]),e._v(" "),n("small",[e._v("31m")]),e._v(" "),n("br"),e._v("\n            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.\n          ")])]),e._v(" "),n("nav",{staticClass:"level"},[n("div",{staticClass:"level-left"},[n("a",{staticClass:"level-item"},[n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-reply"})])]),e._v(" "),n("a",{staticClass:"level-item"},[n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-retweet"})])]),e._v(" "),n("a",{staticClass:"level-item"},[n("span",{staticClass:"icon is-small"},[n("i",{staticClass:"fa fa-heart"})])])])])])])])])},staticRenderFns:[]}},570:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(741),i=n.n(o),r=n(102),s=n.n(r),a="https://jsonplaceholder.typicode.com/users";t.default={components:{Modal:s.a,Handsontable:i.a},mounted:function(){var e=this;this.$http.get("https://jsonplaceholder.typicode.com/posts/1").then(function(t){e.test=t.data.body},function(e){console.log(e)}),this.loadData()},testFunction:function(){console.log("ok !")},data:function(){return{showModal:!1,rawData:[["","Kia","Nissan","Toyota","Honda"],["2008",10,11,12,13],["2009",20,11,14,13],["2010",30,15,12,13]],test:"ok",users:[],global:this.$store.state.pkg}},methods:{openModalBasic:function(){this.showModal=!0},closeModalBasic:function(){this.showModal=!1},loadData:function(){var e=this;console.log(this.test),console.log("run loadData !!!!"),this.$http({url:a}).then(function(t){e.users=t.data}).catch(function(e){console.log(e)})},postData:function(){var e=this.global.apiUrl+"/test";this.$http.post(e,{}).then(function(e){return console.log(e)}).catch(function(e){return console.log(e)})}}}},597:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(707),i=n.n(o);t.default={props:{data:{type:Array,required:!0,default:function(){return[]}},settings:{type:Object,default:function(){return{}}}},mounted:function(){this.settings.data=this.data,this.table=new i.a(this.$el,this.settings)},beforeDestroy:function(){this.table.destroy()}}},615:function(e,t,n){t=e.exports=n(99)(),t.push([e.i,'@charset "UTF-8";\n/*!\n(The MIT License)\n\nCopyright (c) 2012-2014 Marcin Warpechowski\nCopyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\'Software\'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \'AS IS\', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/.handsontable{position:relative}.handsontable .hide{display:none}.handsontable .relative{position:relative}.handsontable.htAutoSize{visibility:hidden;left:-99000px;position:absolute;top:-99000px}.handsontable .wtHider{width:0}.handsontable .wtSpreader{position:relative;width:0;height:auto}.handsontable div,.handsontable input,.handsontable table,.handsontable tbody,.handsontable td,.handsontable textarea,.handsontable th,.handsontable thead{box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box}.handsontable input,.handsontable textarea{min-height:0}.handsontable table.htCore{border-collapse:separate;border-spacing:0;margin:0;border-width:0;table-layout:fixed;width:0;outline-width:0;max-width:none;max-height:none}.handsontable col,.handsontable col.rowHeader{width:50px}.handsontable td,.handsontable th{border-top-width:0;border-left-width:0;border-right:1px solid #ccc;border-bottom:1px solid #ccc;height:22px;empty-cells:show;line-height:21px;padding:0 4px;background-color:#fff;vertical-align:top;overflow:hidden;outline-width:0;white-space:pre-line}.handsontable td.htInvalid{background-color:#ff4c42!important}.handsontable td.htNoWrap{white-space:nowrap}.handsontable th:last-child{border-right:1px solid #ccc;border-bottom:1px solid #ccc}.handsontable th.htNoFrame,.handsontable th:first-child.htNoFrame,.handsontable tr:first-child th.htNoFrame{border-left-width:0;background-color:#fff;border-color:#fff}.handsontable .htNoFrame+td,.handsontable .htNoFrame+th,.handsontable.htRowHeaders thead tr th:nth-child(2),.handsontable td:first-of-type,.handsontable th:first-child{border-left:1px solid #ccc}.handsontable tr:first-child td,.handsontable tr:first-child th{border-top:1px solid #ccc}.ht_master:not(.innerBorderLeft):not(.emptyColumns)~.handsontable:not(.ht_clone_top) thead tr th:first-child,.ht_master:not(.innerBorderLeft):not(.emptyColumns)~.handsontable tbody tr th{border-right-width:0}.ht_master:not(.innerBorderTop) thead tr.lastChild th,.ht_master:not(.innerBorderTop) thead tr:last-child th,.ht_master:not(.innerBorderTop)~.handsontable thead tr.lastChild th,.ht_master:not(.innerBorderTop)~.handsontable thead tr:last-child th{border-bottom-width:0}.handsontable th{background-color:#f3f3f3;color:#222;text-align:center;font-weight:400;white-space:nowrap}.handsontable thead th{padding:0}.handsontable th.active{background-color:#ccc}.handsontable thead th .relative{padding:2px 4px}.handsontable tbody th.ht__highlight,.handsontable thead th.ht__highlight{background-color:#ddd}.handsontable.ht__selection--columns thead th.ht__highlight,.handsontable.ht__selection--rows tbody th.ht__highlight{background-color:#8fb1e8;color:#000}.handsontable .manualColumnMover{position:fixed;left:0;top:0;background-color:transparent;width:5px;height:25px;z-index:999;cursor:move}.handsontable .manualColumnMoverGuide{position:fixed;left:0;top:0;background-color:#ccc;width:25px;height:25px;opacity:.7;display:none}.handsontable .manualColumnMoverGuide.active{display:block;z-index:199}.handsontable .manualColumnMover.active,.handsontable .manualColumnMover:hover{background-color:#88f}.handsontable .manualColumnResizer{position:fixed;top:0;cursor:col-resize;z-index:110;width:5px;height:25px}.handsontable .manualRowResizer{position:fixed;left:0;cursor:row-resize;z-index:110;height:5px;width:50px}.handsontable .manualColumnResizer.active,.handsontable .manualColumnResizer:hover,.handsontable .manualRowResizer.active,.handsontable .manualRowResizer:hover{background-color:#aab}.handsontable .manualColumnResizerGuide{position:fixed;right:0;top:0;background-color:#aab;display:none;width:0;border-right:1px dashed #777;margin-left:5px}.handsontable .manualRowResizerGuide{position:fixed;left:0;bottom:0;background-color:#aab;display:none;height:0;border-bottom:1px dashed #777;margin-top:5px}.handsontable .manualColumnResizerGuide.active,.handsontable .manualRowResizerGuide.active{display:block;z-index:199}.handsontable .columnSorting{position:relative}.handsontable .columnSorting:hover{text-decoration:underline;cursor:pointer}.handsontable .columnSorting.ascending:after{content:"\\25B2";color:#5f5f5f;position:absolute;right:-15px}.handsontable .columnSorting.descending:after{content:"\\25BC";color:#5f5f5f;position:absolute;right:-15px}.handsontable th.beforeHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:before,.handsontable th.beforeHiddenColumn:after{content:"\\25C0";color:#bbb;position:absolute;right:1px;top:2px;font-size:5pt}.handsontable th.afterHiddenColumn{position:relative}.handsontable th.afterHiddenColumn:before{left:1px;top:2px;right:auto;content:"\\25B6"}.handsontable td.afterHiddenColumn.firstVisible{border-left:1px solid #ccc}.handsontable thead th.hiddenHeader{display:none}.handsontable .wtBorder{position:absolute;font-size:0}.handsontable .wtBorder.hidden{display:none!important}.handsontable td.area{background:-moz-linear-gradient(top,rgba(181,209,255,.34) 0,rgba(181,209,255,.34) 100%);background:-webkit-gradient(linear,left top,left bottom,color-stop(0,rgba(181,209,255,.34)),color-stop(100%,rgba(181,209,255,.34)));background:-webkit-linear-gradient(top,rgba(181,209,255,.34),rgba(181,209,255,.34));background:-o-linear-gradient(top,rgba(181,209,255,.34) 0,rgba(181,209,255,.34) 100%);background:-ms-linear-gradient(top,rgba(181,209,255,.34) 0,rgba(181,209,255,.34) 100%);background:linear-gradient(180deg,rgba(181,209,255,.34) 0,rgba(181,209,255,.34));filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#57b5d1ff",endColorstr="#57b5d1ff",GradientType=0);background-color:#fff}.handsontable .wtBorder.corner{font-size:0;cursor:crosshair}.handsontable .htBorder.htFillBorder{background:red;width:1px;height:1px}.handsontableInput{border:none;outline-width:0;margin:0;padding:1px 5px 0;font-family:inherit;line-height:21px;font-size:inherit;box-shadow:inset 0 0 0 2px #5292f7;resize:none;display:inline-block;color:#000;border-radius:0;background-color:#fff}.handsontableInputHolder{position:absolute;top:0;left:0;z-index:100}.htSelectEditor{-webkit-appearance:menulist-button!important;position:absolute;width:auto}.handsontable .htDimmed{color:#777}.handsontable .htSubmenu{position:relative}.handsontable .htSubmenu :after{content:"\\25B6";color:#777;position:absolute;right:5px}.handsontable .htLeft{text-align:left}.handsontable .htCenter{text-align:center}.handsontable .htRight{text-align:right}.handsontable .htJustify{text-align:justify}.handsontable .htTop{vertical-align:top}.handsontable .htMiddle{vertical-align:middle}.handsontable .htBottom{vertical-align:bottom}.handsontable .htPlaceholder{color:#999}.handsontable .htAutocompleteArrow{float:right;font-size:10px;color:#eee;cursor:default;width:16px;text-align:center}.handsontable td .htAutocompleteArrow:hover{color:#777}.handsontable td.area .htAutocompleteArrow{color:#d3d3d3}.handsontable .htCheckboxRendererInput{display:inline-block;vertical-align:middle}.handsontable .htCheckboxRendererInput.noValue{opacity:.5}.handsontable .htCheckboxRendererLabel{cursor:pointer;display:inline-block;width:100%}.htCommentCell{position:relative}.htCommentCell:after{content:"";position:absolute;top:0;right:0;border-left:6px solid transparent;border-top:6px solid red}@-webkit-keyframes opacity-hide{0%{opacity:1}to{opacity:0}}@keyframes opacity-hide{0%{opacity:1}to{opacity:0}}@-webkit-keyframes opacity-show{0%{opacity:0}to{opacity:1}}@keyframes opacity-show{0%{opacity:0}to{opacity:1}}.handsontable .handsontable.ht_clone_top .wtHider{padding:0 0 5px}.handsontable .autocompleteEditor.handsontable{padding-right:17px}.handsontable .autocompleteEditor.handsontable.htMacScroll{padding-right:15px}.handsontable.listbox{margin:0}.handsontable.listbox .ht_master table{border:1px solid #ccc;border-collapse:separate;background:#fff}.handsontable.listbox td,.handsontable.listbox th,.handsontable.listbox tr:first-child td,.handsontable.listbox tr:first-child th,.handsontable.listbox tr:last-child th{border-color:transparent}.handsontable.listbox td,.handsontable.listbox th{white-space:nowrap;text-overflow:ellipsis}.handsontable.listbox td.htDimmed{cursor:default;color:inherit;font-style:inherit}.handsontable.listbox .wtBorder{visibility:hidden}.handsontable.listbox tr:hover td,.handsontable.listbox tr td.current{background:#eee}.ht_clone_top{z-index:101}.ht_clone_left{z-index:102}.ht_clone_bottom_left_corner,.ht_clone_debug,.ht_clone_top_left_corner{z-index:103}.handsontable td.htSearchResult{background:#fcedd9;color:#583707}.htBordered{border-width:1px}.htBordered.htTopBorderSolid{border-top-style:solid;border-top-color:#000}.htBordered.htRightBorderSolid{border-right-style:solid;border-right-color:#000}.htBordered.htBottomBorderSolid{border-bottom-style:solid;border-bottom-color:#000}.htBordered.htLeftBorderSolid{border-left-style:solid;border-left-color:#000}.htCommentTextArea{-moz-box-shadow:1px 1px 2px #bbb;-webkit-box-shadow:1px 1px 2px #bbb;background-color:#fffacd;border:1px solid #999;box-shadow:1px 1px 2px #bbb;font-family:Arial}.handsontable tbody tr th:nth-last-child(2){border-right:1px solid #ccc}.handsontable thead tr:nth-last-child(2) th.htGroupIndicatorContainer{border-bottom:1px solid #ccc;padding-bottom:5px}.ht_clone_top_left_corner thead tr th:nth-last-child(2){border-right:1px solid #ccc}.htCollapseButton{width:10px;height:10px;line-height:10px;text-align:center;border-radius:5px;border:1px solid #f3f3f3;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.4);box-shadow:1px 1px 3px rgba(0,0,0,.4);cursor:pointer;margin-bottom:3px;position:relative}.htCollapseButton:after{content:"";height:300%;width:1px;display:block;background:#ccc;margin-left:4px;position:absolute;bottom:10px}thead .htCollapseButton{right:5px;position:absolute;top:5px;background:#fff}thead .htCollapseButton:after{height:1px;width:700%;right:10px;top:4px}.handsontable tr th .htExpandButton{position:absolute;width:10px;height:10px;line-height:10px;text-align:center;border-radius:5px;border:1px solid #f3f3f3;-webkit-box-shadow:1px 1px 3px rgba(0,0,0,.4);box-shadow:1px 1px 3px rgba(0,0,0,.4);cursor:pointer;top:0;display:none}.handsontable thead tr th .htExpandButton{top:5px}.handsontable tr th .htExpandButton.clickable{display:block}.collapsibleIndicator{position:absolute;top:50%;transform:translateY(-50%);right:5px;border:1px solid #a6a6a6;line-height:10px;color:#222;border-radius:10px;font-size:10px;width:10px;height:10px;cursor:pointer;-webkit-box-shadow:0 0 0 6px #eee;-moz-box-shadow:0 0 0 6px #eee;box-shadow:0 0 0 6px #eee;background:#eee}.handsontable col.hidden{width:0!important}.handsontable table tr th.lightRightBorder{border-right:1px solid #e6e6e6}.handsontable tr.hidden,.handsontable tr.hidden td,.handsontable tr.hidden th{display:none}.ht_clone_bottom,.ht_clone_left,.ht_clone_top,.ht_master{overflow:hidden}.ht_master .wtHolder{overflow:auto}.ht_clone_left .wtHolder{overflow-x:hidden;overflow-y:auto}.ht_clone_bottom .wtHolder,.ht_clone_top .wtHolder{overflow-x:auto;overflow-y:hidden}.wtDebugHidden{display:none}.wtDebugVisible{display:block;-webkit-animation-duration:.5s;-webkit-animation-name:wtFadeInFromNone;animation-duration:.5s;animation-name:wtFadeInFromNone}@keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}@-webkit-keyframes wtFadeInFromNone{0%{display:none;opacity:0}1%{display:block;opacity:0}to{display:block;opacity:1}}.handsontable.mobile,.handsontable.mobile .wtHolder{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-overflow-scrolling:touch}.htMobileEditorContainer{display:none;position:absolute;top:0;width:70%;height:54pt;background:#f8f8f8;border-radius:20px;border:1px solid #ebebeb;z-index:999;box-sizing:border-box;-webkit-box-sizing:border-box;-webkit-text-size-adjust:none}.topLeftSelectionHandle-HitArea:not(.ht_master .topLeftSelectionHandle-HitArea),.topLeftSelectionHandle:not(.ht_master .topLeftSelectionHandle){z-index:9999}.bottomRightSelectionHandle,.bottomRightSelectionHandle-HitArea,.topLeftSelectionHandle,.topLeftSelectionHandle-HitArea{left:-10000px;top:-10000px}.htMobileEditorContainer.active{display:block}.htMobileEditorContainer .inputs{position:absolute;right:210pt;bottom:10pt;top:10pt;left:14px;height:34pt}.htMobileEditorContainer .inputs textarea{font-size:13pt;border:1px solid #a1a1a1;-webkit-appearance:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none;position:absolute;left:14px;right:14px;top:0;bottom:0;padding:7pt}.htMobileEditorContainer .cellPointer{position:absolute;top:-13pt;height:0;width:0;left:30px;border-left:13pt solid transparent;border-right:13pt solid transparent;border-bottom:13pt solid #ebebeb}.htMobileEditorContainer .cellPointer.hidden{display:none}.htMobileEditorContainer .cellPointer:before{content:"";display:block;position:absolute;top:2px;height:0;width:0;left:-13pt;border-left:13pt solid transparent;border-right:13pt solid transparent;border-bottom:13pt solid #f8f8f8}.htMobileEditorContainer .moveHandle{position:absolute;top:10pt;left:5px;width:30px;bottom:0;cursor:move;z-index:9999}.htMobileEditorContainer .moveHandle:after{content:"..\\A..\\A..\\A..";white-space:pre;line-height:10px;font-size:20pt;display:inline-block;margin-top:-8px;color:#ebebeb}.htMobileEditorContainer .positionControls{width:205pt;position:absolute;right:5pt;top:0;bottom:0}.htMobileEditorContainer .positionControls>div{width:50pt;height:100%;float:left}.htMobileEditorContainer .positionControls>div:after{content:" ";display:block;width:15pt;height:15pt;text-align:center;line-height:50pt}.htMobileEditorContainer .downButton:after,.htMobileEditorContainer .leftButton:after,.htMobileEditorContainer .rightButton:after,.htMobileEditorContainer .upButton:after{transform-origin:5pt 5pt;-webkit-transform-origin:5pt 5pt;margin:21pt 0 0 21pt}.htMobileEditorContainer .leftButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(-45deg)}.htMobileEditorContainer .leftButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .rightButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(135deg)}.htMobileEditorContainer .rightButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .upButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(45deg)}.htMobileEditorContainer .upButton:active:after{border-color:#cfcfcf}.htMobileEditorContainer .downButton:after{border-top:2px solid #288ffe;border-left:2px solid #288ffe;-webkit-transform:rotate(225deg)}.htMobileEditorContainer .downButton:active:after{border-color:#cfcfcf}.handsontable.hide-tween{-webkit-animation:opacity-hide .3s;animation:opacity-hide .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}.handsontable.show-tween{-webkit-animation:opacity-show .3s;animation:opacity-show .3s;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards}\n/*!\n * Handsontable ContextMenu\n */.htContextMenu{display:none;position:absolute;z-index:1060}.htContextMenu .ht_clone_corner,.htContextMenu .ht_clone_debug,.htContextMenu .ht_clone_left,.htContextMenu .ht_clone_top{display:none}.htContextMenu table.htCore{border:1px solid #ccc;border-bottom-width:2px;border-right-width:2px}.htContextMenu .wtBorder{visibility:hidden}.htContextMenu table tbody tr td{background:#fff;border-width:0;padding:4px 6px 0;cursor:pointer;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.htContextMenu table tbody tr td:first-child{border:0}.htContextMenu table tbody tr td.htDimmed{font-style:normal;color:#323232}.htContextMenu table tbody tr td.current,.htContextMenu table tbody tr td.zeroclipboard-is-hover{background:#f3f3f3}.htContextMenu table tbody tr td.htSeparator{border-top:1px solid #bbb;height:0;padding:0;cursor:default}.htContextMenu table tbody tr td.htDisabled{color:#999}.htContextMenu table tbody tr td.htDisabled:hover{background:#fff;color:#999;cursor:default}.htContextMenu table tbody tr.htHidden{display:none}.htContextMenu table tbody tr td .htItemWrapper{margin-left:10px;margin-right:6px}.htContextMenu table tbody tr td div span.selected{margin-top:-2px;position:absolute;left:4px}.htContextMenu .ht_master .wtHolder{overflow:hidden}.handsontable .wtHider{position:relative}.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grab;cursor:-webkit-grab;cursor:grab}.handsontable.ht__manualRowMove.on-moving--rows,.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight{cursor:move;cursor:-moz-grabbing;cursor:-webkit-grabbing;cursor:grabbing}.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer{display:none}.handsontable .ht__manualRowMove--backlight,.handsontable .ht__manualRowMove--guideline{position:absolute;width:100%;display:none}.handsontable .ht__manualRowMove--guideline{background:#777;height:2px;left:0;margin-top:-1px;z-index:105}.handsontable .ht__manualRowMove--backlight{background:#333;background:rgba(51,51,51,.25);display:none;z-index:105;pointer-events:none}\n\n/*!\n * Pikaday\n * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/\n */.handsontable.on-moving--rows .ht__manualRowMove--backlight,.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline,.pika-single{display:block}.pika-single{z-index:9999;position:relative;color:#333;background:#fff;border:1px solid #ccc;border-bottom-color:#bbb;font-family:Helvetica Neue,Helvetica,Arial,sans-serif}.pika-single:after,.pika-single:before{content:" ";display:table}.pika-single:after{clear:both}.pika-single{*zoom:1}.pika-single.is-hidden{display:none}.pika-single.is-bound{position:absolute;box-shadow:0 5px 15px -5px rgba(0,0,0,.5)}.pika-lendar{float:left;width:240px;margin:8px}.pika-title{position:relative;text-align:center}.pika-label{display:inline-block;*display:inline;position:relative;z-index:9999;overflow:hidden;margin:0;padding:5px 3px;font-size:14px;line-height:20px;font-weight:700;background-color:#fff}.pika-title select{cursor:pointer;position:absolute;z-index:9998;margin:0;left:0;top:5px;filter:alpha(opacity=0);opacity:0}.pika-next,.pika-prev{display:block;cursor:pointer;position:relative;outline:none;border:0;padding:0;width:20px;height:30px;text-indent:20px;white-space:nowrap;overflow:hidden;background-color:transparent;background-position:50%;background-repeat:no-repeat;background-size:75% 75%;opacity:.5;*position:absolute;*top:0}.pika-next:hover,.pika-prev:hover{opacity:1}.is-rtl .pika-next,.pika-prev{float:left;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==");*left:0}.is-rtl .pika-prev,.pika-next{float:right;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=");*right:0}.pika-next.is-disabled,.pika-prev.is-disabled{cursor:default;opacity:.2}.pika-select{display:inline-block;*display:inline}.pika-table{width:100%;border-collapse:collapse;border-spacing:0;border:0}.pika-table td,.pika-table th{width:14.285714285714286%;padding:0}.pika-table th{color:#999;font-size:12px;line-height:25px;font-weight:700;text-align:center}.pika-button{cursor:pointer;display:block;box-sizing:border-box;-moz-box-sizing:border-box;outline:none;border:0;margin:0;width:100%;padding:5px;color:#666;font-size:12px;line-height:15px;text-align:right;background:#f5f5f5}.pika-week{font-size:11px;color:#999}.is-today .pika-button{color:#3af;font-weight:700}.is-selected .pika-button{color:#fff;font-weight:700;background:#3af;box-shadow:inset 0 1px 3px #178fe5;border-radius:3px}.is-inrange .pika-button{background:#d5e9f7}.is-startrange .pika-button{color:#fff;background:#6cb31d;box-shadow:none;border-radius:3px}.is-endrange .pika-button{color:#fff;background:#3af;box-shadow:none;border-radius:3px}.is-disabled .pika-button{pointer-events:none;cursor:default;color:#999;opacity:.3}.pika-button:hover{color:#fff;background:#ff8000;box-shadow:none;border-radius:3px}.pika-table abbr{border-bottom:none;cursor:help}',"",{version:3,sources:["/./node_modules/handsontable/dist/handsontable.full.css"],names:[],mappings:"AA0rCA,iBAGG;AA7rCH;;;;;;;;;;;;;;;;;;;;;;;;;EAyBE,AACF,cACE,iBAAmB,CACpB,AAED,oBACE,YAAc,CACf,AACD,wBACE,iBAAmB,CACpB,AAED,yBACE,kBAAmB,AACnB,cAAe,AACf,kBAAmB,AACnB,YAAc,CACf,AAED,uBACE,OAAS,CACV,AAED,0BACE,kBAAmB,AACnB,QAAS,AACT,WAAa,CACd,AAED,2JAQE,uBAAwB,AACxB,+BAAgC,AAChC,2BAA6B,CAC9B,AAED,2CAEE,YAAoB,CACrB,AAED,2BACE,yBAA0B,AAS1B,iBAAkB,AAClB,SAAU,AACV,eAAgB,AAChB,mBAAoB,AACpB,QAAS,AACT,gBAAiB,AAEjB,eAAgB,AAChB,eAAiB,CAClB,AAMD,8CACE,UAAY,CACb,AAED,kCAEE,mBAAoB,AACpB,oBAAqB,AACrB,4BAA6B,AAC7B,6BAA8B,AAC9B,YAAa,AACb,iBAAkB,AAClB,iBAAkB,AAClB,cAAqB,AAErB,sBAAuB,AACvB,mBAAoB,AACpB,gBAAiB,AACjB,gBAAiB,AACjB,oBAAsB,CAEvB,AAED,2BACE,kCAAqC,CACtC,AAED,0BACE,kBAAoB,CACrB,AAED,4BAEE,4BAA6B,AAC7B,4BAA8B,CAC/B,AAED,4GAGE,oBAAqB,AACrB,sBAAwB,AACxB,iBAAmB,CACpB,AASD,wKACE,0BAA4B,CAC7B,AAED,gEAEE,yBAA2B,CAC5B,AAED,2LAEE,oBAAsB,CACvB,AAED,sPAIE,qBAAuB,CACxB,AAED,iBACE,yBAA0B,AAC1B,WAAY,AACZ,kBAAmB,AACnB,gBAAoB,AACpB,kBAAoB,CACrB,AAED,uBACE,SAAW,CACZ,AAED,wBACE,qBAAuB,CACxB,AACD,iCACE,eAAiB,CAClB,AAGD,0EAEE,qBAA0B,CAC3B,AACD,qHAEE,yBAA0B,AAC1B,UAAY,CACb,AAID,iCACE,eAAgB,AAChB,OAAQ,AACR,MAAO,AACP,6BAA8B,AAC9B,UAAW,AACX,YAAa,AACb,YAAa,AACb,WAAa,CACd,AAED,sCACE,eAAgB,AAChB,OAAQ,AACR,MAAO,AACP,sBAAuB,AACvB,WAAY,AACZ,YAAa,AACb,WAAa,AACb,YAAc,CACf,AAED,6CACE,cAAe,AACf,WAAa,CACd,AAED,+EAEE,qBAAuB,CACxB,AAID,mCACE,eAAgB,AAChB,MAAO,AACP,kBAAmB,AACnB,YAAa,AACb,UAAW,AACX,WAAa,CACd,AAED,gCACE,eAAgB,AAChB,OAAQ,AACR,kBAAmB,AACnB,YAAa,AACb,WAAY,AACZ,UAAY,CACb,AAED,gKAIE,qBAAuB,CACxB,AAED,wCACE,eAAgB,AAChB,QAAS,AACT,MAAO,AACP,sBAAuB,AACvB,aAAc,AACd,QAAS,AACT,6BAA8B,AAC9B,eAAiB,CAClB,AAED,qCACE,eAAgB,AAChB,OAAQ,AACR,SAAU,AACV,sBAAuB,AACvB,aAAc,AACd,SAAU,AACV,8BAA+B,AAC/B,cAAgB,CACjB,AAED,2FAEE,cAAe,AACf,WAAa,CACd,AAED,6BACE,iBAAmB,CACpB,AAED,mCACE,0BAA2B,AAC3B,cAAgB,CACjB,AAED,6CACE,gBAAiB,AACjB,cAAe,AACf,kBAAmB,AACnB,WAAa,CACd,AAED,8CACE,gBAAiB,AACjB,cAAe,AACf,kBAAmB,AACnB,WAAa,CACd,AAED,oCACE,iBAAmB,CACpB,AAED,oFAEE,gBAAiB,AACjB,WAAY,AACZ,kBAAmB,AACnB,UAAW,AACX,QAAS,AACT,aAAe,CAChB,AAED,mCACE,iBAAmB,CACpB,AAED,0CACE,SAAU,AACV,QAAS,AACT,WAAY,AACZ,eAAiB,CAClB,AAED,gDACE,0BAA4B,CAC7B,AAED,oCACE,YAAc,CACf,AAID,wBACE,kBAAmB,AACnB,WAAa,CACd,AACD,+BACE,sBAAwB,CACzB,AAED,sBACE,wFAA+F,AAC/F,oIAA4I,AAC5I,oFAAiG,AACjG,sFAA4F,AAC5F,uFAA6F,AAC7F,iFAA+F,AAC/F,oHAAwH,AACxH,qBAAuB,CACxB,AAID,+BACE,YAAa,AACb,gBAAkB,CACnB,AAED,qCACE,eAAgB,AAChB,UAAW,AACX,UAAY,CACb,AAED,mBACE,YAAY,AACZ,gBAAiB,AACjB,SAAW,AACX,kBAAuB,AACvB,oBAAqB,AACrB,iBAAkB,AAClB,kBAAmB,AACnB,mCAAoC,AACpC,YAAa,AAEb,qBAAsB,AACtB,WAAY,AACZ,gBAAiB,AACjB,qBAAuB,CAExB,AAED,yBACE,kBAAmB,AACnB,MAAO,AACP,OAAQ,AACR,WAAa,CACd,AAED,gBACE,6CAA+C,AAC/C,kBAAmB,AACnB,UAAY,CACb,AAMD,wBACE,UAAY,CACb,AAED,yBACE,iBAAmB,CACpB,AAED,gCACE,gBAAa,AACb,WAAY,AACZ,kBAAmB,AACnB,SAAW,CACZ,AAMD,sBACE,eAAiB,CAClB,AACD,wBACE,iBAAmB,CACpB,AACD,uBACE,gBAAkB,CACnB,AACD,yBACE,kBAAoB,CACrB,AAID,qBACE,kBAAoB,CACrB,AACD,wBACE,qBAAuB,CACxB,AACD,wBACE,qBAAuB,CACxB,AAMD,6BACE,UAAY,CACb,AAMD,mCACE,YAAa,AACb,eAAgB,AAChB,WAAY,AACZ,eAAgB,AAChB,WAAY,AACZ,iBAAmB,CACpB,AAED,4CACE,UAAY,CACb,AAED,2CACE,aAAe,CAChB,AAKD,uCACE,qBAAsB,AACtB,qBAAuB,CACxB,AACD,+CACE,UAAa,CACd,AACD,uCACE,eAAgB,AAChB,qBAAsB,AACtB,UAAY,CACb,AAKD,eACE,iBAAmB,CACpB,AACD,qBACE,WAAY,AACZ,kBAAmB,AACnB,MAAO,AACP,QAAS,AACT,kCAAmC,AACnC,wBAA0B,CAC3B,AAED,gCACE,GACE,SAAW,CACZ,AACD,GACE,SAAW,CAEZ,CACF,AACD,wBACE,GAEE,SAAW,CACZ,AACD,GACE,SAAW,CAEZ,CACF,AAED,gCACE,GACE,SAAW,CAEZ,AACD,GACE,SAAW,CAEZ,CACF,AACD,wBACE,GACE,SAAW,CAEZ,AACD,GACE,SAAW,CAEZ,CACF,AAMD,kDACE,eAAmB,CACpB,AAWD,+CACE,kBAAoB,CACrB,AACD,2DACE,kBAAoB,CACrB,AAOD,sBACE,QAAU,CACX,AAED,uCACE,sBAAuB,AACvB,yBAA0B,AAC1B,eAAkB,CACnB,AAED,yKAKE,wBAA0B,CAC3B,AAED,kDAEE,mBAAoB,AACpB,sBAAwB,CACzB,AAED,kCACE,eAAgB,AAChB,cAAe,AACf,kBAAoB,CACrB,AAED,gCACE,iBAAmB,CACpB,AAED,sEAEE,eAAiB,CAClB,AAED,cACE,WAAa,CACd,AAED,eACE,WAAa,CACd,AAOD,uEACE,WAAa,CACd,AAED,gCACE,mBAAoB,AACpB,aAAe,CAChB,AAKD,YAEE,gBAAkB,CACnB,AACD,6BACE,uBAAwB,AACxB,qBAAuB,CACxB,AACD,+BACE,yBAA0B,AAC1B,uBAAyB,CAC1B,AACD,gCACE,0BAA2B,AAC3B,wBAA0B,CAC3B,AACD,8BACE,wBAAyB,AACzB,sBAAwB,CACzB,AAED,mBACE,iCAAkC,AAClC,oCAAqC,AACrC,yBAA0B,AAC1B,sBAAuB,AACvB,4BAA6B,AAC7B,iBAAqB,CACtB,AAED,4CACE,2BAA6B,CAC9B,AAED,sEACE,6BAA8B,AAC9B,kBAAoB,CACrB,AAGD,wDACE,2BAA6B,CAC9B,AAED,kBACE,WAAY,AACZ,YAAa,AACb,iBAAkB,AAClB,kBAAmB,AACnB,kBAAmB,AACnB,yBAA0B,AAC1B,8CAAmD,AACnD,sCAA2C,AAC3C,eAAgB,AAChB,kBAAmB,AACnB,iBAAmB,CACpB,AAED,wBACE,WAAY,AACZ,YAAa,AACb,UAAW,AACX,cAAe,AACf,gBAAiB,AACjB,gBAAiB,AACjB,kBAAmB,AAEnB,WAAa,CACd,AAGD,wBACE,UAAW,AACX,kBAAmB,AACnB,QAAS,AACT,eAAiB,CAClB,AAED,8BACE,WAAY,AACZ,WAAY,AACZ,WAAY,AACZ,OAAS,CACV,AAED,oCACE,kBAAmB,AACnB,WAAY,AACZ,YAAa,AACb,iBAAkB,AAClB,kBAAmB,AACnB,kBAAmB,AACnB,yBAA0B,AAC1B,8CAAmD,AACnD,sCAA2C,AAC3C,eAAgB,AAChB,MAAO,AACP,YAAc,CACf,AAED,0CAEE,OAAS,CACV,AAED,8CACE,aAAe,CAChB,AAED,sBACE,kBAAmB,AACnB,QAAS,AACT,2BAA+B,AAC/B,UAAW,AACX,yBAA0B,AAC1B,iBAAkB,AAClB,WAAY,AACZ,mBAAoB,AACpB,eAAgB,AAChB,WAAY,AACZ,YAAa,AACb,eAAgB,AAChB,kCAAwD,AACxD,+BAAqD,AACrD,0BAAgD,AAChD,eAAiB,CAClB,AAED,yBACE,iBAAoB,CACrB,AAED,2CACE,8BAAgC,CACjC,AAED,8EAGE,YAAc,CACf,AAED,yDAIE,eAAiB,CAClB,AAED,qBACE,aAAe,CAChB,AAED,yBACE,kBAAmB,AACnB,eAAiB,CAClB,AAED,mDAEE,gBAAiB,AACjB,iBAAmB,CACpB,AAKD,eACE,YAAc,CACf,AAED,gBACE,cAAe,AACf,+BAAiC,AACjC,wCAAyC,AACzC,uBAAyB,AACzB,+BAAiC,CAClC,AAED,4BACE,GACE,aAAc,AACd,SAAW,CACZ,AAED,GACE,cAAe,AACf,SAAW,CACZ,AAED,GACE,cAAe,AACf,SAAW,CACZ,CACF,AAED,oCACE,GACE,aAAc,AACd,SAAW,CACZ,AAED,GACE,cAAe,AACf,SAAW,CACZ,AAED,GACE,cAAe,AACf,SAAW,CACZ,CACF,AAOD,oDAEE,2BAA2B,AAC3B,yBAAyB,AACzB,wBAAwB,AACxB,sBAAsB,AACtB,qBAAqB,AACrB,iBAAiB,AACjB,0CAA0C,AAC1C,gCAAkC,CACnC,AAED,yBACE,aAAc,AACd,kBAAmB,AACnB,MAAO,AACP,UAAW,AACX,YAAa,AACb,mBAAoB,AACpB,mBAAoB,AACpB,yBAA0B,AAC1B,YAAa,AACb,sBAAuB,AACvB,8BAA+B,AAC/B,6BAA+B,CAChC,AAED,gJAEE,YAAc,CACf,AAGD,wHAIE,cAAe,AACf,YAAc,CACf,AAED,gCACE,aAAe,CAChB,AAED,iCACE,kBAAmB,AACnB,YAAa,AACb,YAAa,AACb,SAAU,AACV,UAAW,AACX,WAAa,CACd,AAED,0CACE,eAAgB,AAChB,yBAA0B,AAC1B,wBAAyB,AACzB,wBAAyB,AACzB,qBAAsB,AACtB,gBAAiB,AACjB,kBAAmB,AACnB,UAAW,AACX,WAAY,AACZ,MAAO,AACP,SAAU,AACV,WAAa,CACd,AAED,sCACE,kBAAmB,AACnB,UAAW,AACX,SAAU,AACV,QAAS,AACT,UAAW,AAEX,mCAAoC,AACpC,oCAAqC,AACrC,gCAAkC,CACnC,AAED,6CACE,YAAc,CACf,AAED,6CACE,WAAY,AACZ,cAAe,AACf,kBAAmB,AACnB,QAAS,AACT,SAAU,AACV,QAAS,AACT,WAAY,AAEZ,mCAAoC,AACpC,oCAAqC,AACrC,gCAAkC,CACnC,AAED,qCACE,kBAAmB,AACnB,SAAU,AACV,SAAU,AACV,WAAY,AACZ,SAAY,AACZ,YAAa,AACb,YAAc,CACf,AAED,2CACE,yBAA0B,AAC1B,gBAAiB,AACjB,iBAAkB,AAClB,eAAgB,AAChB,qBAAsB,AACtB,gBAAiB,AACjB,aAAe,CAChB,AAED,2CACE,YAAa,AACb,kBAAmB,AACnB,UAAW,AACX,MAAO,AACP,QAAU,CACX,AAED,+CACE,WAAY,AACZ,YAAa,AACb,UAAY,CACb,AAED,qDACE,YAAa,AACb,cAAe,AACf,WAAY,AACZ,YAAa,AACb,kBAAmB,AACnB,gBAAkB,CACnB,AAED,2KAIE,yBAA0B,AAC1B,iCAAkC,AAClC,oBAAsB,CACvB,AAED,2CACE,6BAA8B,AAC9B,8BAA+B,AAC/B,gCAAkC,CAGnC,AACD,kDACE,oBAAsB,CACvB,AAED,4CACE,6BAA8B,AAC9B,8BAA+B,AAC/B,gCAAkC,CAGnC,AACD,mDACE,oBAAsB,CACvB,AAED,yCAEE,6BAA8B,AAC9B,8BAA+B,AAC/B,+BAAiC,CAGlC,AACD,gDACE,oBAAsB,CACvB,AAED,2CACE,6BAA8B,AAC9B,8BAA+B,AAC/B,gCAAkC,CAGnC,AACD,kDACE,oBAAsB,CACvB,AAED,yBACE,mCAAqC,AACrC,2BAA6B,AAC7B,6BAA8B,AAC9B,oCAAsC,CACvC,AAED,yBACE,mCAAqC,AACrC,2BAA6B,AAC7B,6BAA8B,AAC9B,oCAAsC,CACvC;AACD;;GAEG,AAEH,eACE,aAAc,AACd,kBAAmB,AACnB,YAAc,CACf,AAED,0HAIE,YAAc,CACf,AAED,4BACE,sBAAuB,AACvB,wBAAyB,AACzB,sBAAwB,CACzB,AAED,yBACE,iBAAmB,CACpB,AAED,iCACE,gBAAkB,AAClB,eAAgB,AAChB,kBAAuB,AACvB,eAAgB,AAChB,gBAAiB,AACjB,mBAAoB,AACpB,sBAAwB,CACzB,AAED,6CACE,QAAU,CACX,AAED,0CACE,kBAAmB,AACnB,aAAe,CAChB,AAED,iGAEE,kBAAoB,CACrB,AAED,6CACE,0BAA2B,AAC3B,SAAU,AACV,UAAW,AACX,cAAgB,CACjB,AAED,4CACE,UAAY,CACb,AAED,kDACE,gBAAiB,AACjB,WAAY,AACZ,cAAgB,CACjB,AAED,uCACE,YAAc,CACf,AAED,gDACE,iBAAkB,AAClB,gBAAkB,CACnB,AAED,mDACE,gBAAiB,AACjB,kBAAmB,AACnB,QAAU,CACX,AAED,oCACE,eAAiB,CAClB,AACD,uBACE,iBAAmB,CACpB,AACD,6EACE,YAAa,AACb,iBAAkB,AAClB,oBAAqB,AACrB,WAAa,CACd,AACD,uHAEE,YAAa,AACb,qBAAsB,AACtB,wBAAyB,AACzB,eAAiB,CAClB,AACD,kEACE,YAAc,CACf,AACD,wFAEE,kBAAmB,AACnB,WAAY,AACZ,YAAc,CACf,AACD,4CACE,gBAAiB,AACjB,WAAY,AACZ,OAAQ,AACR,gBAAiB,AACjB,WAAa,CACd,AACD,4CACE,gBAAiB,AACjB,8BAAmC,AACnC,aAAc,AACd,YAAa,AACb,mBAAqB,CACtB;;AAOD;;;GAGG,AAEH,6IATE,aAAe,CAkBhB,AATD,aACI,aAAc,AAEd,kBAAmB,AACnB,WAAY,AACZ,gBAAiB,AACjB,sBAAuB,AACvB,yBAA0B,AAC1B,qDAA4D,CAC/D,AAMD,uCAEI,YAAa,AACb,aAAe,CAClB,AACD,mBAAqB,UAAW,CAAE,AAClC,cAAe,MAAQ,CAAE,AAEzB,uBACI,YAAc,CACjB,AAED,sBACI,kBAAmB,AACnB,yCAA2C,CAC9C,AAED,aACI,WAAY,AACZ,YAAa,AACb,UAAY,CACf,AAED,YACI,kBAAmB,AACnB,iBAAmB,CACtB,AAED,YACI,qBAAsB,CACtB,eAAiB,AACjB,kBAAmB,AACnB,aAAc,AACd,gBAAiB,AACjB,SAAU,AACV,gBAAiB,AACjB,eAAgB,AAChB,iBAAkB,AAClB,gBAAkB,AAClB,qBAAuB,CAC1B,AACD,mBACI,eAAgB,AAChB,kBAAmB,AACnB,aAAc,AACd,SAAU,AACV,OAAQ,AACR,QAAS,AACT,wBAAyB,AACzB,SAAW,CACd,AAED,sBAEI,cAAe,AACf,eAAgB,AAChB,kBAAmB,AACnB,aAAc,AACd,SAAU,AACV,UAAW,AACX,WAAY,AACZ,YAAa,AAEb,iBAAkB,AAClB,mBAAoB,AACpB,gBAAiB,AACjB,6BAA8B,AAC9B,wBAAmC,AACnC,4BAA6B,AAC7B,wBAAyB,AACzB,WAAY,CACZ,kBAAoB,CACpB,KAAQ,CACX,AAED,kCAEI,SAAW,CACd,AAED,8BAEI,WAAY,AACZ,2OAA4O,CAC5O,MAAS,CACZ,AAED,8BAEI,YAAa,AACb,2OAA4O,CAC5O,OAAU,CACb,AAED,8CAEI,eAAgB,AAChB,UAAY,CACf,AAED,aACI,qBAAsB,CACtB,cAAiB,CACpB,AAED,YACI,WAAY,AACZ,yBAA0B,AAC1B,iBAAkB,AAClB,QAAU,CACb,AAED,8BAEI,0BAA2B,AAC3B,SAAW,CACd,AAED,eACI,WAAY,AACZ,eAAgB,AAChB,iBAAkB,AAClB,gBAAkB,AAClB,iBAAmB,CACtB,AAED,aACI,eAAgB,AAChB,cAAe,AACf,sBAAuB,AACvB,2BAA4B,AAC5B,aAAc,AACd,SAAU,AACV,SAAU,AACV,WAAY,AACZ,YAAa,AACb,WAAY,AACZ,eAAgB,AAChB,iBAAkB,AAClB,iBAAkB,AAClB,kBAAoB,CACvB,AAED,WACI,eAAgB,AAChB,UAAY,CACf,AAED,uBACI,WAAe,AACf,eAAkB,CACrB,AAED,0BACI,WAAY,AACZ,gBAAkB,AAClB,gBAAoB,AACpB,mCAAoC,AACpC,iBAAmB,CACtB,AAED,yBACI,kBAAoB,CACvB,AAED,4BACI,WAAY,AACZ,mBAAoB,AACpB,gBAAiB,AACjB,iBAAmB,CACtB,AAED,0BACI,WAAY,AACZ,gBAAoB,AACpB,gBAAiB,AACjB,iBAAmB,CACtB,AAED,0BACI,oBAAqB,AACrB,eAAgB,AAChB,WAAY,AACZ,UAAY,CACf,AAED,mBACI,WAAY,AACZ,mBAAoB,AACpB,gBAAiB,AACjB,iBAAmB,CACtB,AAGD,iBACI,mBAAoB,AACpB,WAAa,CAChB",
  file:"handsontable.full.css",sourcesContent:["/*!\n(The MIT License)\n\nCopyright (c) 2012-2014 Marcin Warpechowski\nCopyright (c) 2015 Handsoncode sp. z o.o. <hello@handsoncode.net>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n*/\n.handsontable {\n  position: relative;\n}\n\n.handsontable .hide{\n  display: none;\n}\n.handsontable .relative {\n  position: relative;\n}\n\n.handsontable.htAutoSize {\n  visibility: hidden;\n  left: -99000px;\n  position: absolute;\n  top: -99000px;\n}\n\n.handsontable .wtHider {\n  width: 0;\n}\n\n.handsontable .wtSpreader {\n  position: relative;\n  width: 0; /*must be 0, otherwise blank space appears in scroll demo after scrolling max to the right */\n  height: auto;\n}\n\n.handsontable table,\n.handsontable tbody,\n.handsontable thead,\n.handsontable td,\n.handsontable th,\n.handsontable input,\n.handsontable textarea,\n.handsontable div {\n  box-sizing: content-box;\n  -webkit-box-sizing: content-box;\n  -moz-box-sizing: content-box;\n}\n\n.handsontable input,\n.handsontable textarea {\n  min-height: initial;\n}\n\n.handsontable table.htCore {\n  border-collapse: separate;\n  /*it must be separate, otherwise there are offset miscalculations in WebKit: http://stackoverflow.com/questions/2655987/border-collapse-differences-in-ff-and-webkit*/\n  /*this actually only changes appearance of user selection - does not make text unselectable\n  -webkit-user-select: none;\n  -khtml-user-select: none;\n  -moz-user-select: none;\n  -o-user-select: none;\n  -ms-user-select: none;\n  /*user-select: none; /*no browser supports unprefixed version*/\n  border-spacing: 0;\n  margin: 0;\n  border-width: 0;\n  table-layout: fixed;\n  width: 0;\n  outline-width: 0;\n  /* reset bootstrap table style. for more info see: https://github.com/handsontable/handsontable/issues/224 */\n  max-width: none;\n  max-height: none;\n}\n\n.handsontable col {\n  width: 50px;\n}\n\n.handsontable col.rowHeader {\n  width: 50px;\n}\n\n.handsontable th,\n.handsontable td {\n  border-top-width: 0;\n  border-left-width: 0;\n  border-right: 1px solid #CCC;\n  border-bottom: 1px solid #CCC;\n  height: 22px;\n  empty-cells: show;\n  line-height: 21px;\n  padding: 0 4px 0 4px;\n  /* top, bottom padding different than 0 is handled poorly by FF with HTML5 doctype */\n  background-color: #FFF;\n  vertical-align: top;\n  overflow: hidden;\n  outline-width: 0;\n  white-space: pre-line;\n  /* preserve new line character in cell */\n}\n\n.handsontable td.htInvalid {\n  background-color: #ff4c42 !important; /*gives priority over td.area selection background*/\n}\n\n.handsontable td.htNoWrap {\n  white-space: nowrap;\n}\n\n.handsontable th:last-child {\n  /*Foundation framework fix*/\n  border-right: 1px solid #CCC;\n  border-bottom: 1px solid #CCC;\n}\n\n.handsontable tr:first-child th.htNoFrame,\n.handsontable th:first-child.htNoFrame,\n.handsontable th.htNoFrame {\n  border-left-width: 0;\n  background-color: white;\n  border-color: #FFF;\n}\n\n.handsontable th:first-child,\n.handsontable td:first-of-type,\n.handsontable .htNoFrame + th,\n.handsontable .htNoFrame + td {\n  border-left: 1px solid #CCC;\n}\n\n.handsontable.htRowHeaders thead tr th:nth-child(2) {\n  border-left: 1px solid #CCC;\n}\n\n.handsontable tr:first-child th,\n.handsontable tr:first-child td {\n  border-top: 1px solid #CCC;\n}\n\n.ht_master:not(.innerBorderLeft):not(.emptyColumns) ~ .handsontable tbody tr th,\n.ht_master:not(.innerBorderLeft):not(.emptyColumns) ~ .handsontable:not(.ht_clone_top) thead tr th:first-child {\n  border-right-width: 0;\n}\n\n.ht_master:not(.innerBorderTop) thead tr:last-child th,\n.ht_master:not(.innerBorderTop) ~ .handsontable thead tr:last-child th,\n.ht_master:not(.innerBorderTop) thead tr.lastChild th,\n.ht_master:not(.innerBorderTop) ~ .handsontable thead tr.lastChild th {\n  border-bottom-width: 0;\n}\n\n.handsontable th {\n  background-color: #f3f3f3;\n  color: #222;\n  text-align: center;\n  font-weight: normal;\n  white-space: nowrap;\n}\n\n.handsontable thead th {\n  padding: 0;\n}\n\n.handsontable th.active {\n  background-color: #CCC;\n}\n.handsontable thead th .relative {\n  padding: 2px 4px;\n}\n\n/* selection */\n.handsontable tbody th.ht__highlight,\n.handsontable thead th.ht__highlight {\n  background-color: #dddddd;\n}\n.handsontable.ht__selection--columns thead th.ht__highlight,\n.handsontable.ht__selection--rows tbody th.ht__highlight {\n  background-color: #8fb1e8;\n  color: #000;\n}\n\n/* plugins */\n\n.handsontable .manualColumnMover {\n  position: fixed;\n  left: 0;\n  top: 0;\n  background-color: transparent;\n  width: 5px;\n  height: 25px;\n  z-index: 999;\n  cursor: move;\n}\n\n.handsontable .manualColumnMoverGuide {\n  position: fixed;\n  left: 0;\n  top: 0;\n  background-color: #CCC;\n  width: 25px;\n  height: 25px;\n  opacity: 0.7;\n  display: none;\n}\n\n.handsontable .manualColumnMoverGuide.active {\n  display: block;\n  z-index: 199;\n}\n\n.handsontable .manualColumnMover:hover,\n.handsontable .manualColumnMover.active {\n  background-color: #88F;\n}\n\n/* row + column resizer*/\n\n.handsontable .manualColumnResizer {\n  position: fixed;\n  top: 0;\n  cursor: col-resize;\n  z-index: 110;\n  width: 5px;\n  height: 25px;\n}\n\n.handsontable .manualRowResizer {\n  position: fixed;\n  left: 0;\n  cursor: row-resize;\n  z-index: 110;\n  height: 5px;\n  width: 50px;\n}\n\n.handsontable .manualColumnResizer:hover,\n.handsontable .manualColumnResizer.active,\n.handsontable .manualRowResizer:hover,\n.handsontable .manualRowResizer.active {\n  background-color: #AAB;\n}\n\n.handsontable .manualColumnResizerGuide {\n  position: fixed;\n  right: 0;\n  top: 0;\n  background-color: #AAB;\n  display: none;\n  width: 0;\n  border-right: 1px dashed #777;\n  margin-left: 5px;\n}\n\n.handsontable .manualRowResizerGuide {\n  position: fixed;\n  left: 0;\n  bottom: 0;\n  background-color: #AAB;\n  display: none;\n  height: 0;\n  border-bottom: 1px dashed #777;\n  margin-top: 5px;\n}\n\n.handsontable .manualColumnResizerGuide.active,\n.handsontable .manualRowResizerGuide.active {\n  display: block;\n  z-index: 199;\n}\n\n.handsontable .columnSorting {\n  position: relative;\n}\n\n.handsontable .columnSorting:hover {\n  text-decoration: underline;\n  cursor: pointer;\n}\n\n.handsontable .columnSorting.ascending::after {\n  content: '\\25B2';\n  color: #5f5f5f;\n  position: absolute;\n  right: -15px;\n}\n\n.handsontable .columnSorting.descending::after {\n  content: '\\25BC';\n  color: #5f5f5f;\n  position: absolute;\n  right: -15px;\n}\n\n.handsontable th.beforeHiddenColumn {\n  position: relative;\n}\n\n.handsontable th.beforeHiddenColumn::after,\n.handsontable th.afterHiddenColumn::before {\n  content: '\\25C0';\n  color: #bbb;\n  position: absolute;\n  right: 1px;\n  top: 2px;\n  font-size: 5pt;\n}\n\n.handsontable th.afterHiddenColumn {\n  position: relative;\n}\n\n.handsontable th.afterHiddenColumn::before {\n  left: 1px;\n  top: 2px;\n  right: auto;\n  content: '\\25B6';\n}\n\n.handsontable td.afterHiddenColumn.firstVisible {\n  border-left: 1px solid #CCC;\n}\n\n.handsontable thead th.hiddenHeader {\n  display: none;\n}\n\n/* border line */\n\n.handsontable .wtBorder {\n  position: absolute;\n  font-size: 0;\n}\n.handsontable .wtBorder.hidden{\n  display:none !important;\n}\n\n.handsontable td.area {\n  background: -moz-linear-gradient(top,  rgba(181,209,255,0.34) 0%, rgba(181,209,255,0.34) 100%); /* FF3.6+ */\n  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(181,209,255,0.34)), color-stop(100%,rgba(181,209,255,0.34))); /* Chrome,Safari4+ */\n  background: -webkit-linear-gradient(top,  rgba(181,209,255,0.34) 0%,rgba(181,209,255,0.34) 100%); /* Chrome10+,Safari5.1+ */\n  background: -o-linear-gradient(top,  rgba(181,209,255,0.34) 0%,rgba(181,209,255,0.34) 100%); /* Opera 11.10+ */\n  background: -ms-linear-gradient(top,  rgba(181,209,255,0.34) 0%,rgba(181,209,255,0.34) 100%); /* IE10+ */\n  background: linear-gradient(to bottom,  rgba(181,209,255,0.34) 0%,rgba(181,209,255,0.34) 100%); /* W3C */\n  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#57b5d1ff', endColorstr='#57b5d1ff',GradientType=0 ); /* IE6-9 */\n  background-color: #fff;\n}\n\n/* fill handle */\n\n.handsontable .wtBorder.corner {\n  font-size: 0;\n  cursor: crosshair;\n}\n\n.handsontable .htBorder.htFillBorder {\n  background: red;\n  width: 1px;\n  height: 1px;\n}\n\n.handsontableInput {\n  border:none;\n  outline-width: 0;\n  margin: 0 ;\n  padding: 1px 5px 0 5px;\n  font-family: inherit;\n  line-height: 21px;\n  font-size: inherit;\n  box-shadow: 0 0 0 2px #5292F7 inset;\n  resize: none;\n  /*below are needed to overwrite stuff added by jQuery UI Bootstrap theme*/\n  display: inline-block;\n  color: #000;\n  border-radius: 0;\n  background-color: #FFF;\n  /*overwrite styles potentionally made by a framework*/\n}\n\n.handsontableInputHolder {\n  position: absolute;\n  top: 0;\n  left: 0;\n  z-index: 100;\n}\n\n.htSelectEditor {\n  -webkit-appearance: menulist-button !important;\n  position: absolute;\n  width: auto;\n}\n\n/*\nTextRenderer readOnly cell\n*/\n\n.handsontable .htDimmed {\n  color: #777;\n}\n\n.handsontable .htSubmenu {\n  position: relative;\n}\n\n.handsontable .htSubmenu :after{\n  content: '▶';\n  color: #777;\n  position: absolute;\n  right: 5px;\n}\n\n\n/*\nTextRenderer horizontal alignment\n*/\n.handsontable .htLeft{\n  text-align: left;\n}\n.handsontable .htCenter{\n  text-align: center;\n}\n.handsontable .htRight{\n  text-align: right;\n}\n.handsontable .htJustify{\n  text-align: justify;\n}\n/*\nTextRenderer vertical alignment\n*/\n.handsontable .htTop{\n  vertical-align: top;\n}\n.handsontable .htMiddle{\n  vertical-align: middle;\n}\n.handsontable .htBottom{\n  vertical-align: bottom;\n}\n\n/*\nTextRenderer placeholder value\n*/\n\n.handsontable .htPlaceholder {\n  color: #999;\n}\n\n/*\nAutocompleteRenderer down arrow\n*/\n\n.handsontable .htAutocompleteArrow {\n  float: right;\n  font-size: 10px;\n  color: #EEE;\n  cursor: default;\n  width: 16px;\n  text-align: center;\n}\n\n.handsontable td .htAutocompleteArrow:hover {\n  color: #777;\n}\n\n.handsontable td.area .htAutocompleteArrow {\n  color: #d3d3d3;\n}\n\n/*\nCheckboxRenderer\n*/\n.handsontable .htCheckboxRendererInput {\n  display: inline-block;\n  vertical-align: middle;\n}\n.handsontable .htCheckboxRendererInput.noValue {\n  opacity: 0.5;\n}\n.handsontable .htCheckboxRendererLabel {\n  cursor: pointer;\n  display: inline-block;\n  width: 100%;\n}\n\n/*\nComment For Cell\n*/\n.htCommentCell{\n  position: relative;\n}\n.htCommentCell:after{\n  content: '';\n  position: absolute;\n  top: 0;\n  right: 0;\n  border-left: 6px solid transparent;\n  border-top: 6px solid red;\n}\n\n@-webkit-keyframes opacity-hide {\n  from {\n    opacity: 1;\n  }\n  to {\n    opacity: 0;\n    /*display: none;*/\n  }\n}\n@keyframes opacity-hide {\n  from {\n    /*display: block;*/\n    opacity: 1;\n  }\n  to {\n    opacity: 0;\n    /*display: none;*/\n  }\n}\n\n@-webkit-keyframes opacity-show {\n  from {\n    opacity: 0;\n    /*display: none;*/\n  }\n  to {\n    opacity: 1;\n    /*display: block;*/\n  }\n}\n@keyframes opacity-show {\n  from {\n    opacity: 0;\n    /*display: none;*/\n  }\n  to {\n    opacity: 1;\n    /*display: block;*/\n  }\n}\n\n/**\n * Handsontable in Handsontable\n */\n\n.handsontable .handsontable.ht_clone_top .wtHider {\n  padding: 0 0 5px 0;\n}\n\n/* removing shadows, TODO: remove the commented code and this comment  */\n/*.handsontable .handsontable:not(.ht_master) table {*/\n  /*-webkit-box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);*/\n  /*box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.4);*/\n/*}*/\n\n/**\n* Autocomplete Editor\n*/\n.handsontable .autocompleteEditor.handsontable {\n  padding-right: 17px;\n}\n.handsontable .autocompleteEditor.handsontable.htMacScroll {\n  padding-right: 15px;\n}\n\n\n/**\n * Handsontable listbox theme\n */\n\n.handsontable.listbox {\n  margin: 0;\n}\n\n.handsontable.listbox .ht_master table {\n  border: 1px solid #ccc;\n  border-collapse: separate;\n  background: white;\n}\n\n.handsontable.listbox th,\n.handsontable.listbox tr:first-child th,\n.handsontable.listbox tr:last-child th,\n.handsontable.listbox tr:first-child td,\n.handsontable.listbox td {\n  border-color: transparent;\n}\n\n.handsontable.listbox th,\n.handsontable.listbox td {\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n\n.handsontable.listbox td.htDimmed {\n  cursor: default;\n  color: inherit;\n  font-style: inherit;\n}\n\n.handsontable.listbox .wtBorder {\n  visibility: hidden;\n}\n\n.handsontable.listbox tr td.current,\n.handsontable.listbox tr:hover td {\n  background: #eee;\n}\n\n.ht_clone_top {\n  z-index: 101;\n}\n\n.ht_clone_left {\n  z-index: 102;\n}\n\n.ht_clone_top_left_corner,\n.ht_clone_bottom_left_corner {\n  z-index: 103;\n}\n\n.ht_clone_debug {\n  z-index: 103;\n}\n\n.handsontable td.htSearchResult {\n  background: #fcedd9;\n  color: #583707;\n}\n\n/*\nCell borders\n*/\n.htBordered{\n  /*box-sizing: border-box !important;*/\n  border-width: 1px;\n}\n.htBordered.htTopBorderSolid {\n  border-top-style: solid;\n  border-top-color: #000;\n}\n.htBordered.htRightBorderSolid {\n  border-right-style: solid;\n  border-right-color: #000;\n}\n.htBordered.htBottomBorderSolid {\n  border-bottom-style: solid;\n  border-bottom-color: #000;\n}\n.htBordered.htLeftBorderSolid {\n  border-left-style: solid;\n  border-left-color: #000;\n}\n\n.htCommentTextArea{\n  -moz-box-shadow: 1px 1px 2px #bbb;\n  -webkit-box-shadow: 1px 1px 2px #bbb;\n  background-color: #FFFACD;\n  border: 1px solid #999;\n  box-shadow: 1px 1px 2px #bbb;\n  font-family: 'Arial';\n}\n\n.handsontable tbody tr th:nth-last-child(2) {\n  border-right: 1px solid #CCC;\n}\n\n.handsontable thead tr:nth-last-child(2) th.htGroupIndicatorContainer {\n  border-bottom: 1px solid #CCC;\n  padding-bottom: 5px;\n}\n\n\n.ht_clone_top_left_corner thead tr th:nth-last-child(2) {\n  border-right: 1px solid #CCC;\n}\n\n.htCollapseButton {\n  width: 10px;\n  height: 10px;\n  line-height: 10px;\n  text-align: center;\n  border-radius: 5px;\n  border: 1px solid #f3f3f3;\n  -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n  cursor: pointer;\n  margin-bottom: 3px;\n  position: relative;\n}\n\n.htCollapseButton:after {\n  content: \"\";\n  height: 300%;\n  width: 1px;\n  display: block;\n  background: #ccc;\n  margin-left: 4px;\n  position: absolute;\n  /*top: -300%;*/\n  bottom: 10px;\n}\n\n\nthead .htCollapseButton {\n  right: 5px;\n  position: absolute;\n  top: 5px;\n  background: #fff;\n}\n\nthead .htCollapseButton:after {\n  height: 1px;\n  width: 700%;\n  right: 10px;\n  top: 4px;\n}\n\n.handsontable tr th .htExpandButton {\n  position: absolute;\n  width: 10px;\n  height: 10px;\n  line-height: 10px;\n  text-align: center;\n  border-radius: 5px;\n  border: 1px solid #f3f3f3;\n  -webkit-box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);\n  cursor: pointer;\n  top: 0;\n  display: none;\n}\n\n.handsontable thead tr th .htExpandButton {\n  /*left: 5px;*/\n  top: 5px;\n}\n\n.handsontable tr th .htExpandButton.clickable {\n  display: block;\n}\n\n.collapsibleIndicator {\n  position: absolute;\n  top: 50%;\n  transform: translate(0% ,-50%);\n  right: 5px;\n  border: 1px solid #A6A6A6;\n  line-height: 10px;\n  color: #222;\n  border-radius: 10px;\n  font-size: 10px;\n  width: 10px;\n  height: 10px;\n  cursor: pointer;\n  -webkit-box-shadow: 0px 0px 0px 6px rgba(238,238,238,1);\n  -moz-box-shadow: 0px 0px 0px 6px rgba(238,238,238,1);\n  box-shadow: 0px 0px 0px 6px rgba(238,238,238,1);\n  background: #eee;\n}\n\n.handsontable col.hidden {\n  width: 0 !important;\n}\n\n.handsontable table tr th.lightRightBorder {\n  border-right: 1px solid #E6E6E6;\n}\n\n.handsontable tr.hidden,\n.handsontable tr.hidden td,\n.handsontable tr.hidden th {\n  display: none;\n}\n\n.ht_master,\n.ht_clone_left,\n.ht_clone_top,\n.ht_clone_bottom {\n  overflow: hidden;\n}\n\n.ht_master .wtHolder {\n  overflow: auto;\n}\n\n.ht_clone_left .wtHolder {\n  overflow-x: hidden;\n  overflow-y: auto;\n}\n\n.ht_clone_top .wtHolder,\n.ht_clone_bottom .wtHolder {\n  overflow-x: auto;\n  overflow-y: hidden;\n}\n\n\n/*WalkontableDebugOverlay*/\n\n.wtDebugHidden {\n  display: none;\n}\n\n.wtDebugVisible {\n  display: block;\n  -webkit-animation-duration: 0.5s;\n  -webkit-animation-name: wtFadeInFromNone;\n  animation-duration: 0.5s;\n  animation-name: wtFadeInFromNone;\n}\n\n@keyframes wtFadeInFromNone {\n  0% {\n    display: none;\n    opacity: 0;\n  }\n\n  1% {\n    display: block;\n    opacity: 0;\n  }\n\n  100% {\n    display: block;\n    opacity: 1;\n  }\n}\n\n@-webkit-keyframes wtFadeInFromNone {\n  0% {\n    display: none;\n    opacity: 0;\n  }\n\n  1% {\n    display: block;\n    opacity: 0;\n  }\n\n  100% {\n    display: block;\n    opacity: 1;\n  }\n}\n/*\n\n Handsontable Mobile Text Editor stylesheet\n\n */\n\n.handsontable.mobile,\n.handsontable.mobile .wtHolder {\n  -webkit-touch-callout:none;\n  -webkit-user-select:none;\n  -khtml-user-select:none;\n  -moz-user-select:none;\n  -ms-user-select:none;\n  user-select:none;\n  -webkit-tap-highlight-color:rgba(0,0,0,0);\n  -webkit-overflow-scrolling: touch;\n}\n\n.htMobileEditorContainer {\n  display: none;\n  position: absolute;\n  top: 0;\n  width: 70%;\n  height: 54pt;\n  background: #f8f8f8;\n  border-radius: 20px;\n  border: 1px solid #ebebeb;\n  z-index: 999;\n  box-sizing: border-box;\n  -webkit-box-sizing: border-box;\n  -webkit-text-size-adjust: none;\n}\n\n.topLeftSelectionHandle:not(.ht_master .topLeftSelectionHandle),\n.topLeftSelectionHandle-HitArea:not(.ht_master .topLeftSelectionHandle-HitArea) {\n  z-index: 9999;\n}\n\n/* Initial left/top coordinates - overwritten when actual position is set */\n.topLeftSelectionHandle,\n.topLeftSelectionHandle-HitArea,\n.bottomRightSelectionHandle,\n.bottomRightSelectionHandle-HitArea {\n  left: -10000px;\n  top: -10000px;\n}\n\n.htMobileEditorContainer.active {\n  display: block;\n}\n\n.htMobileEditorContainer .inputs {\n  position: absolute;\n  right: 210pt;\n  bottom: 10pt;\n  top: 10pt;\n  left: 14px;\n  height: 34pt;\n}\n\n.htMobileEditorContainer .inputs textarea {\n  font-size: 13pt;\n  border: 1px solid #a1a1a1;\n  -webkit-appearance: none;\n  -webkit-box-shadow: none;\n  -moz-box-shadow: none;\n  box-shadow: none;\n  position: absolute;\n  left: 14px;\n  right: 14px;\n  top: 0;\n  bottom: 0;\n  padding: 7pt;\n}\n\n.htMobileEditorContainer .cellPointer {\n  position: absolute;\n  top: -13pt;\n  height: 0;\n  width: 0;\n  left: 30px;\n\n  border-left: 13pt solid transparent;\n  border-right: 13pt solid transparent;\n  border-bottom: 13pt solid #ebebeb;\n}\n\n.htMobileEditorContainer .cellPointer.hidden {\n  display: none;\n}\n\n.htMobileEditorContainer .cellPointer:before {\n  content: '';\n  display: block;\n  position: absolute;\n  top: 2px;\n  height: 0;\n  width: 0;\n  left: -13pt;\n\n  border-left: 13pt solid transparent;\n  border-right: 13pt solid transparent;\n  border-bottom: 13pt solid #f8f8f8;\n}\n\n.htMobileEditorContainer .moveHandle {\n  position: absolute;\n  top: 10pt;\n  left: 5px;\n  width: 30px;\n  bottom: 0px;\n  cursor: move;\n  z-index: 9999;\n}\n\n.htMobileEditorContainer .moveHandle:after {\n  content: \"..\\a..\\a..\\a..\";\n  white-space: pre;\n  line-height: 10px;\n  font-size: 20pt;\n  display: inline-block;\n  margin-top: -8px;\n  color: #ebebeb;\n}\n\n.htMobileEditorContainer .positionControls {\n  width: 205pt;\n  position: absolute;\n  right: 5pt;\n  top: 0;\n  bottom: 0;\n}\n\n.htMobileEditorContainer .positionControls > div {\n  width: 50pt;\n  height: 100%;\n  float: left;\n}\n\n.htMobileEditorContainer .positionControls > div:after {\n  content: \" \";\n  display: block;\n  width: 15pt;\n  height: 15pt;\n  text-align: center;\n  line-height: 50pt;\n}\n\n.htMobileEditorContainer .leftButton:after,\n.htMobileEditorContainer .rightButton:after,\n.htMobileEditorContainer .upButton:after,\n.htMobileEditorContainer .downButton:after {\n  transform-origin: 5pt 5pt;\n  -webkit-transform-origin: 5pt 5pt;\n  margin: 21pt 0 0 21pt;\n}\n\n.htMobileEditorContainer .leftButton:after {\n  border-top: 2px solid #288ffe;\n  border-left: 2px solid #288ffe;\n  -webkit-transform: rotate(-45deg);\n  /*margin-top: 17pt;*/\n  /*margin-left: 20pt;*/\n}\n.htMobileEditorContainer .leftButton:active:after {\n  border-color: #cfcfcf;\n}\n\n.htMobileEditorContainer .rightButton:after {\n  border-top: 2px solid #288ffe;\n  border-left: 2px solid #288ffe;\n  -webkit-transform: rotate(135deg);\n  /*margin-top: 17pt;*/\n  /*margin-left: 10pt;*/\n}\n.htMobileEditorContainer .rightButton:active:after {\n  border-color: #cfcfcf;\n}\n\n.htMobileEditorContainer .upButton:after {\n  /*border-top: 2px solid #cfcfcf;*/\n  border-top: 2px solid #288ffe;\n  border-left: 2px solid #288ffe;\n  -webkit-transform: rotate(45deg);\n  /*margin-top: 22pt;*/\n  /*margin-left: 15pt;*/\n}\n.htMobileEditorContainer .upButton:active:after {\n  border-color: #cfcfcf;\n}\n\n.htMobileEditorContainer .downButton:after {\n  border-top: 2px solid #288ffe;\n  border-left: 2px solid #288ffe;\n  -webkit-transform: rotate(225deg);\n  /*margin-top: 15pt;*/\n  /*margin-left: 15pt;*/\n}\n.htMobileEditorContainer .downButton:active:after {\n  border-color: #cfcfcf;\n}\n\n.handsontable.hide-tween {\n  -webkit-animation: opacity-hide 0.3s;\n  animation: opacity-hide 0.3s;\n  animation-fill-mode: forwards;\n  -webkit-animation-fill-mode: forwards;\n}\n\n.handsontable.show-tween {\n  -webkit-animation: opacity-show 0.3s;\n  animation: opacity-show 0.3s;\n  animation-fill-mode: forwards;\n  -webkit-animation-fill-mode: forwards;\n}\n/*!\n * Handsontable ContextMenu\n */\n\n.htContextMenu {\n  display: none;\n  position: absolute;\n  z-index: 1060; /* needs to be higher than 1050 - z-index for Twitter Bootstrap modal (#1569) */\n}\n\n.htContextMenu .ht_clone_top,\n.htContextMenu .ht_clone_left,\n.htContextMenu .ht_clone_corner,\n.htContextMenu .ht_clone_debug {\n  display: none;\n}\n\n.htContextMenu table.htCore {\n  border: 1px solid #ccc;\n  border-bottom-width: 2px;\n  border-right-width: 2px;\n}\n\n.htContextMenu .wtBorder {\n  visibility: hidden;\n}\n\n.htContextMenu table tbody tr td {\n  background: white;\n  border-width: 0;\n  padding: 4px 6px 0 6px;\n  cursor: pointer;\n  overflow: hidden;\n  white-space: nowrap;\n  text-overflow: ellipsis;\n}\n\n.htContextMenu table tbody tr td:first-child {\n  border: 0;\n}\n\n.htContextMenu table tbody tr td.htDimmed {\n  font-style: normal;\n  color: #323232;\n}\n\n.htContextMenu table tbody tr td.current,\n.htContextMenu table tbody tr td.zeroclipboard-is-hover {\n  background: #f3f3f3;\n}\n\n.htContextMenu table tbody tr td.htSeparator {\n  border-top: 1px solid #bbb;\n  height: 0;\n  padding: 0;\n  cursor: default;\n}\n\n.htContextMenu table tbody tr td.htDisabled {\n  color: #999;\n}\n\n.htContextMenu table tbody tr td.htDisabled:hover {\n  background: #fff;\n  color: #999;\n  cursor: default;\n}\n\n.htContextMenu table tbody tr.htHidden {\n  display: none;\n}\n\n.htContextMenu table tbody tr td .htItemWrapper {\n  margin-left: 10px;\n  margin-right: 6px;\n}\n\n.htContextMenu table tbody tr td div span.selected {\n  margin-top: -2px;\n  position: absolute;\n  left: 4px;\n}\n\n.htContextMenu .ht_master .wtHolder {\n  overflow: hidden;\n}\n.handsontable .wtHider {\n  position: relative;\n}\n.handsontable.ht__manualRowMove.after-selection--rows tbody th.ht__highlight {\n  cursor: move;\n  cursor: -moz-grab;\n  cursor: -webkit-grab;\n  cursor: grab;\n}\n.handsontable.ht__manualRowMove.on-moving--rows,\n.handsontable.ht__manualRowMove.on-moving--rows tbody th.ht__highlight {\n  cursor: move;\n  cursor: -moz-grabbing;\n  cursor: -webkit-grabbing;\n  cursor: grabbing;\n}\n.handsontable.ht__manualRowMove.on-moving--rows .manualRowResizer {\n  display: none;\n}\n.handsontable .ht__manualRowMove--guideline,\n.handsontable .ht__manualRowMove--backlight {\n  position: absolute;\n  width: 100%;\n  display: none;\n}\n.handsontable .ht__manualRowMove--guideline {\n  background: #777;\n  height: 2px;\n  left: 0;\n  margin-top: -1px;\n  z-index: 105;\n}\n.handsontable .ht__manualRowMove--backlight {\n  background: #333;\n  background: rgba(51, 51, 51, 0.25);\n  display: none;\n  z-index: 105;\n  pointer-events: none;\n}\n.handsontable.on-moving--rows.show-ui .ht__manualRowMove--guideline,\n.handsontable.on-moving--rows .ht__manualRowMove--backlight {\n  display: block;\n}\n@charset \"UTF-8\";\n\n/*!\n * Pikaday\n * Copyright © 2014 David Bushell | BSD & MIT license | http://dbushell.com/\n */\n\n.pika-single {\n    z-index: 9999;\n    display: block;\n    position: relative;\n    color: #333;\n    background: #fff;\n    border: 1px solid #ccc;\n    border-bottom-color: #bbb;\n    font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n}\n\n/*\nclear child float (pika-lendar), using the famous micro clearfix hack\nhttp://nicolasgallagher.com/micro-clearfix-hack/\n*/\n.pika-single:before,\n.pika-single:after {\n    content: \" \";\n    display: table;\n}\n.pika-single:after { clear: both }\n.pika-single { *zoom: 1 }\n\n.pika-single.is-hidden {\n    display: none;\n}\n\n.pika-single.is-bound {\n    position: absolute;\n    box-shadow: 0 5px 15px -5px rgba(0,0,0,.5);\n}\n\n.pika-lendar {\n    float: left;\n    width: 240px;\n    margin: 8px;\n}\n\n.pika-title {\n    position: relative;\n    text-align: center;\n}\n\n.pika-label {\n    display: inline-block;\n    *display: inline;\n    position: relative;\n    z-index: 9999;\n    overflow: hidden;\n    margin: 0;\n    padding: 5px 3px;\n    font-size: 14px;\n    line-height: 20px;\n    font-weight: bold;\n    background-color: #fff;\n}\n.pika-title select {\n    cursor: pointer;\n    position: absolute;\n    z-index: 9998;\n    margin: 0;\n    left: 0;\n    top: 5px;\n    filter: alpha(opacity=0);\n    opacity: 0;\n}\n\n.pika-prev,\n.pika-next {\n    display: block;\n    cursor: pointer;\n    position: relative;\n    outline: none;\n    border: 0;\n    padding: 0;\n    width: 20px;\n    height: 30px;\n    /* hide text using text-indent trick, using width value (it's enough) */\n    text-indent: 20px;\n    white-space: nowrap;\n    overflow: hidden;\n    background-color: transparent;\n    background-position: center center;\n    background-repeat: no-repeat;\n    background-size: 75% 75%;\n    opacity: .5;\n    *position: absolute;\n    *top: 0;\n}\n\n.pika-prev:hover,\n.pika-next:hover {\n    opacity: 1;\n}\n\n.pika-prev,\n.is-rtl .pika-next {\n    float: left;\n    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAUklEQVR42u3VMQoAIBADQf8Pgj+OD9hG2CtONJB2ymQkKe0HbwAP0xucDiQWARITIDEBEnMgMQ8S8+AqBIl6kKgHiXqQqAeJepBo/z38J/U0uAHlaBkBl9I4GwAAAABJRU5ErkJggg==');\n    *left: 0;\n}\n\n.pika-next,\n.is-rtl .pika-prev {\n    float: right;\n    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAeCAYAAAAsEj5rAAAAU0lEQVR42u3VOwoAMAgE0dwfAnNjU26bYkBCFGwfiL9VVWoO+BJ4Gf3gtsEKKoFBNTCoCAYVwaAiGNQGMUHMkjGbgjk2mIONuXo0nC8XnCf1JXgArVIZAQh5TKYAAAAASUVORK5CYII=');\n    *right: 0;\n}\n\n.pika-prev.is-disabled,\n.pika-next.is-disabled {\n    cursor: default;\n    opacity: .2;\n}\n\n.pika-select {\n    display: inline-block;\n    *display: inline;\n}\n\n.pika-table {\n    width: 100%;\n    border-collapse: collapse;\n    border-spacing: 0;\n    border: 0;\n}\n\n.pika-table th,\n.pika-table td {\n    width: 14.285714285714286%;\n    padding: 0;\n}\n\n.pika-table th {\n    color: #999;\n    font-size: 12px;\n    line-height: 25px;\n    font-weight: bold;\n    text-align: center;\n}\n\n.pika-button {\n    cursor: pointer;\n    display: block;\n    box-sizing: border-box;\n    -moz-box-sizing: border-box;\n    outline: none;\n    border: 0;\n    margin: 0;\n    width: 100%;\n    padding: 5px;\n    color: #666;\n    font-size: 12px;\n    line-height: 15px;\n    text-align: right;\n    background: #f5f5f5;\n}\n\n.pika-week {\n    font-size: 11px;\n    color: #999;\n}\n\n.is-today .pika-button {\n    color: #33aaff;\n    font-weight: bold;\n}\n\n.is-selected .pika-button {\n    color: #fff;\n    font-weight: bold;\n    background: #33aaff;\n    box-shadow: inset 0 1px 3px #178fe5;\n    border-radius: 3px;\n}\n\n.is-inrange .pika-button {\n    background: #D5E9F7;\n}\n\n.is-startrange .pika-button {\n    color: #fff;\n    background: #6CB31D;\n    box-shadow: none;\n    border-radius: 3px;\n}\n\n.is-endrange .pika-button {\n    color: #fff;\n    background: #33aaff;\n    box-shadow: none;\n    border-radius: 3px;\n}\n\n.is-disabled .pika-button {\n    pointer-events: none;\n    cursor: default;\n    color: #999;\n    opacity: .3;\n}\n\n.pika-button:hover {\n    color: #fff;\n    background: #ff8000;\n    box-shadow: none;\n    border-radius: 3px;\n}\n\n/* styling for abbr */\n.pika-table abbr {\n    border-bottom: none;\n    cursor: help;\n}\n\n"],sourceRoot:"webpack://"}])},624:function(e,t,n){t=e.exports=n(99)(),t.i(n(615),""),t.push([e.i,"","",{version:3,sources:[],names:[],mappings:"",file:"Handsontable.vue",sourceRoot:"webpack://"}])},669:function(e,t,n){var o=n(624);"string"==typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);n(100)("71abc2ea",o,!0)},707:function(e,t,n){(function(t,n){var o,o;!function(t){e.exports=t()}(function(){var e;return function e(t,n,i){function r(l,u){if(!n[l]){if(!t[l]){var d="function"==typeof o&&o;if(!u&&d)return o(l,!0);if(s)return o(l,!0);if(a[l]&&"undefined"!=typeof window[a[l]])return window[a[l]];var c=new Error("Cannot find module '"+l+"'");throw c.code="MODULE_NOT_FOUND",c}var h=n[l]={exports:{}};t[l][0].call(h.exports,function(e){var n=t[l][1][e];return r(n?n:e)},h,h.exports,e,t,n,i)}return n[l].exports}for(var s="function"==typeof o&&o,a=JSON.parse('{"zeroclipboard":"ZeroClipboard","moment":"moment","numbro":"numbro","pikaday":"Pikaday"}')||{},l=0;l<i.length;l++)r(i[l]);return r}({1:[function(e,t,n){(function(){"use strict";var e={langLocaleCode:"cs-CZ",cultureCode:"cs-CZ",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}).call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"da-DK",cultureCode:"da-DK",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(){return"."},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"
  },formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"de-CH",cultureCode:"de-CH",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"de-DE",cultureCode:"de-DE",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"en-GB",cultureCode:"en-GB",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:"£",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"en-ZA",cultureCode:"en-ZA",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:"R",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"es-AR",cultureCode:"es-AR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"$",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"es-ES",cultureCode:"es-ES",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1===t||3===t?"er":2===t?"do":7===t||0===t?"mo":8===t?"vo":9===t?"no":"to"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"et-EE",cultureCode:"et-EE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"fa-IR",cultureCode:"fa-IR",delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(){return"ام"},currency:{symbol:"﷼"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"fi-FI",cultureCode:"fi-FI",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"fil-PH",cultureCode:"fil-PH",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:"₱"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"fr-CA",cultureCode:"fr-CA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"$",position:"postfix",spaceSeparated:!0},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"fr-CH",cultureCode:"fr-CH",delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"CHF",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"fr-FR",cultureCode:"fr-FR",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){return 1===e?"er":"ème"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"he-IL",cultureCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"₪ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"₪ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"hu-HU",cultureCode:"hu-HU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(){return"."},currency:{symbol:" Ft",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"it-IT",cultureCode:"it-IT",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"ja-JP",cultureCode:"ja-JP",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"ko-KR",cultureCode:"ko-KR",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"천",million:"백만",billion:"십억",trillion:"일조"},ordinal:function(){return"."},currency:{symbol:"₩"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"lv-LV",cultureCode:"lv-LV",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"nb-NO",cultureCode:"nb-NO",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"t"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"nl-BE",cultureCode:"nl-BE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"nl-NL",cultureCode:"nl-NL",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(e){var t=e%100;return 0!==e&&t<=1||8===t||t>=20?"ste":"de"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"pl-PL",cultureCode:"pl-PL",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(){return"."},currency:{symbol:" zł",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"pt-BR",cultureCode:"pt-BR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"R$",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"pt-PT",cultureCode:"pt-PT",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(){return"º"},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"ru-RU",cultureCode:"ru-RU",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"руб.",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"ru-UA",cultureCode:"ru-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"sk-SK",cultureCode:"sk-SK",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"sv-SE",cultureCode:"sv-SE",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"t",million:"M",billion:"md",trillion:"tmd"},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"th-TH",cultureCode:"th-TH",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(){return"."},currency:{symbol:"฿",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n={langLocaleCode:"tr-TR",cultureCode:"tr-TR",delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(t){if(0===t)return"'ıncı";var n=t%10,o=t%100-n,i=t>=100?100:null;return e[n]||e[o]||e[i]},currency:{symbol:"₺",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=n),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(n.cultureCode,n)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"uk-UA",cultureCode:"uk-UA",delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴",position:"postfix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"zh-CN",cultureCode:"zh-CN",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥",position:"prefix"},defaults:{currencyFormat:",4 a"},formats:{fourDigits:"4 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:"$ ,0"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window),function(){"use strict";var e={langLocaleCode:"zh-TW",cultureCode:"zh-TW",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百萬",billion:"十億",trillion:"兆"},ordinal:function(){return"第"},currency:{symbol:"NT$"}};"undefined"!=typeof t&&t.exports&&(t.exports=e),"undefined"!=typeof window&&window.numbro&&window.numbro.culture&&window.numbro.culture(e.cultureCode,e)}.call("undefined"==typeof window?this:window)},{}],2:[function(e,t,n){window.jQuery&&!function(e){e.fn.handsontable=function(e){var t,n,o,i,r,s=this.first(),a=s.data("handsontable");if("string"!=typeof e)return r=e||{},a?a.updateSettings(r):(a=new Handsontable.Core(s[0],r),s.data("handsontable",a),a.init()),s;if(o=[],arguments.length>1)for(t=1,n=arguments.length;t<n;t++)o.push(arguments[t]);if(a){if("undefined"==typeof a[e])throw new Error("Handsontable do not provide action: "+e);i=a[e].apply(a,o),"destroy"===e&&s.removeData()}return i}}(window.jQuery)},{}],3:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableBorder:{get:function(){return y}},__esModule:{value:!0}});var o,i,r,s,a,l,u=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),d=u.getComputedStyle,c=u.getTrimmingContainer,h=u.innerWidth,f=u.innerHeight,p=u.offset,m=u.outerHeight,g=u.outerWidth,w=(i=e("helpers/dom/event"),i&&i.__esModule&&i||{default:i}).stopImmediatePropagation,v=(r=e("helpers/browser"),r&&r.__esModule&&r||{default:r}).isMobileBrowser,b=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).EventManager,C=(a=e("cell/coords"),a&&a.__esModule&&a||{default:a}).WalkontableCellCoords,y=((l=e("overlay/_base.js"),l&&l.__esModule&&l||{default:l}).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,n=function(n,o){t.eventManager.addEventListener(t.main.childNodes[n],"mouseenter",function(t){return e.onMouseEnter(t,e.main.childNodes[n])})},o=0,i=this.main.childNodes.length;o<i;o++)n(o,i)},onMouseDown:function(){this.mouseDown=!0},onMouseUp:function(){this.mouseDown=!1},onMouseEnter:function(e,t){function n(e){return e.clientY<Math.floor(r.top)||(e.clientY>Math.ceil(r.top+r.height)||(e.clientX<Math.floor(r.left)||(e.clientX>Math.ceil(r.left+r.width)||void 0)))}function o(e){n(e)&&(i.eventManager.removeEventListener(document.body,"mousemove",o),t.style.display="block")}if(this.mouseDown&&this.wot.getSetting("hideBorderOnMouseDownOver")){e.preventDefault(),w(e);var i=this,r=t.getBoundingClientRect();t.style.display="none",this.eventManager.addEventListener(document.body,"mousemove",o)}},createBorders:function(e){this.main=document.createElement("div");var t=["top","left","bottom","right","corner"],n=this.main.style;n.position="absolute",n.top=0,n.left=0;for(var o=0;o<5;o++){var i=t[o],r=document.createElement("div");r.className="wtBorder "+(this.settings.className||""),this.settings[i]&&this.settings[i].hide&&(r.className+=" hidden"),n=r.style,n.backgroundColor=this.settings[i]&&this.settings[i].color?this.settings[i].color:e.border.color,n.height=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":e.border.width+"px",n.width=this.settings[i]&&this.settings[i].width?this.settings[i].width+"px":e.border.width+"px",this.main.appendChild(r)}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 n={position:"absolute",height:t+"px",width:t+"px","border-radius":parseInt(t/1.5,10)+"px"};for(var o in n)n.hasOwnProperty(o)&&(this.selectionHandles.styles.bottomRightHitArea[o]=n[o],this.selectionHandles.styles.topLeftHitArea[o]=n[o]);var i={position:"absolute",height:e+"px",width:e+"px","border-radius":parseInt(e/1.5,10)+"px",background:"#F5F5FF",border:"1px solid #4285c8"};for(var r in i)i.hasOwnProperty(r)&&(this.selectionHandles.styles.bottomRight[r]=i[r],this.selectionHandles.styles.topLeft[r]=i[r]);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,n,o,i,r){var s=parseInt(this.selectionHandles.styles.topLeft.width,10),a=parseInt(this.selectionHandles.styles.topLeftHitArea.width,10);this.selectionHandles.styles.topLeft.top=parseInt(n-s,10)+"px",this.selectionHandles.styles.topLeft.left=parseInt(o-s,10)+"px",this.selectionHandles.styles.topLeftHitArea.top=parseInt(n-a/4*3,10)+"px",this.selectionHandles.styles.topLeftHitArea.left=parseInt(o-a/4*3,10)+"px",this.selectionHandles.styles.bottomRight.top=parseInt(n+r,10)+"px",this.selectionHandles.styles.bottomRight.left=parseInt(o+i,10)+"px",this.selectionHandles.styles.bottomRightHitArea.top=parseInt(n+r-a/4,10)+"px",this.selectionHandles.styles.bottomRightHitArea.left=parseInt(o+i-a/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,n,o,i,r,s,a,l,u,w,b,y,A,_,E,R,S,M,k;k=this.wot.wtTable.getRenderedRowsCount();for(var T=0;T<k;T++){var x=this.wot.wtTable.rowFilter.renderedToSource(T);if(x>=e[0]&&x<=e[2]){A=x;break}}for(var O=k-1;O>=0;O--){var B=this.wot.wtTable.rowFilter.renderedToSource(O);if(B>=e[0]&&B<=e[2]){E=B;break}}k=this.wot.wtTable.getRenderedColumnsCount();for(var D=0;D<k;D++){var H=this.wot.wtTable.columnFilter.renderedToSource(D);if(H>=e[1]&&H<=e[3]){_=H;break}}for(var P=k-1;P>=0;P--){var N=this.wot.wtTable.columnFilter.renderedToSource(P);if(N>=e[1]&&N<=e[3]){R=N;break}}if(void 0===A||void 0===_)return void this.disappear();t=A!==E||_!==R,n=this.wot.wtTable.getCell(new C(A,_)),o=t?this.wot.wtTable.getCell(new C(E,R)):n,i=p(n),r=t?p(o):i,s=p(this.wot.wtTable.TABLE),l=i.top,b=r.top+m(o)-l,w=i.left,y=r.left+g(o)-w,a=l-s.top-1,u=w-s.left-1;var L=d(n);parseInt(L.borderTopWidth,10)>0&&(a+=1,b=b>0?b-1:0),parseInt(L.borderLeftWidth,10)>0&&(u+=1,y=y>0?y-1:0),this.topStyle.top=a+"px",this.topStyle.left=u+"px",this.topStyle.width=y+"px",this.topStyle.display="block",this.leftStyle.top=a+"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=a+b-W+"px",this.bottomStyle.left=u+"px",this.bottomStyle.width=y+"px",this.bottomStyle.display="block",this.rightStyle.top=a+"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(E,R)?this.cornerStyle.display="none":(this.cornerStyle.top=a+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="none",S=c(this.wot.wtTable.TABLE),R===this.wot.getSetting("totalColumns")-1&&(M=o.offsetLeft+g(o)+parseInt(this.cornerDefaultStyle.width)/2>=h(S),M&&(this.cornerStyle.left=Math.floor(u+y-3-parseInt(this.cornerDefaultStyle.width)/2)+"px",this.cornerStyle.borderRightWidth=0)),E===this.wot.getSetting("totalRows")-1&&(M=o.offsetTop+m(o)+parseInt(this.cornerDefaultStyle.height)/2>=f(S),M&&(this.cornerStyle.top=Math.floor(a+b-3-parseInt(this.cornerDefaultStyle.height)/2)+"px",this.cornerStyle.borderBottomWidth=0)),this.cornerStyle.display="block"),v()&&this.updateMultipleSelectionHandlesPosition(A,_,a,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":6,eventManager:42,"helpers/browser":44,"helpers/dom/element":47,"helpers/dom/event":48,"overlay/_base.js":12}],4:[function(e,t,n){
  "use strict";Object.defineProperties(n,{WalkontableViewportColumnsCalculator:{get:function(){return i}},__esModule:{value:!0}});var o=new WeakMap,i=function(e,t,n,i,r,s,a){var l=void 0!==arguments[7]?arguments[7]:function(e){return e};o.set(this,{viewportWidth:e,scrollOffset:t,totalColumns:n,columnWidthFn:i,overrideFn:r,onlyFullyVisible:s,stretchingColumnWidthFn:l}),this.count=0,this.startColumn=null,this.endColumn=null,this.startPosition=null,this.stretchAllRatio=0,this.stretchLastWidth=0,this.stretch=a,this.totalTargetWidth=0,this.needVerifyLastColumnWidth=!0,this.stretchAllColumnsWidth=[],this.calculate()},r=i;$traceurRuntime.createClass(i,{calculate:function(){for(var e,t=0,n=!0,i=[],r=o.get(this),s=r.onlyFullyVisible,a=r.overrideFn,l=r.scrollOffset,u=r.totalColumns,d=r.viewportWidth,c=0;c<u;c++)if(e=this._getColumnWidth(c),t<=l&&!s&&(this.startColumn=c),t>=l&&t+e<=l+d&&(null==this.startColumn&&(this.startColumn=c),this.endColumn=c),i.push(t),t+=e,s||(this.endColumn=c),t>=l+d){n=!1;break}if(this.endColumn===u-1&&n)for(this.startColumn=this.endColumn;this.startColumn>0;){var h=i[this.endColumn]+e-i[this.startColumn-1];if((h<=d||!s)&&this.startColumn--,h>d)break}null!==this.startColumn&&a&&a(this),this.startPosition=i[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=o.get(this),n=t.totalColumns,i=0,r=0;r<n;r++){var s=this._getColumnWidth(r),a=t.stretchingColumnWidthFn(void 0,r);"number"==typeof a?e-=a:i+=s}var l=e-i;if("all"===this.stretch&&l>0)this.stretchAllRatio=e/i,this.stretchAllColumnsWidth=[],this.needVerifyLastColumnWidth=!0;else if("last"===this.stretch&&e!==1/0){var u=this._getColumnWidth(n-1),d=l+u;this.stretchLastWidth=d>=0?d:u}}},getStretchedColumnWidth:function(e,t){var n=null;return"all"===this.stretch&&0!==this.stretchAllRatio?n=this._getStretchedAllColumnWidth(e,t):"last"===this.stretch&&0!==this.stretchLastWidth&&(n=this._getStretchedLastColumnWidth(e)),n},_getStretchedAllColumnWidth:function(e,t){var n=0,i=o.get(this),r=i.totalColumns;if(!this.stretchAllColumnsWidth[e]){var s=Math.round(t*this.stretchAllRatio),a=i.stretchingColumnWidthFn(s,e);void 0===a?this.stretchAllColumnsWidth[e]=s:this.stretchAllColumnsWidth[e]=isNaN(a)?this._getColumnWidth(e):a}if(this.stretchAllColumnsWidth.length===r&&this.needVerifyLastColumnWidth){this.needVerifyLastColumnWidth=!1;for(var l=0;l<this.stretchAllColumnsWidth.length;l++)n+=this.stretchAllColumnsWidth[l];n!==this.totalTargetWidth&&(this.stretchAllColumnsWidth[this.stretchAllColumnsWidth.length-1]+=this.totalTargetWidth-n)}return this.stretchAllColumnsWidth[e]},_getStretchedLastColumnWidth:function(e){var t=o.get(this),n=t.totalColumns;return e===n-1?this.stretchLastWidth:null},_getColumnWidth:function(e){var t=o.get(this).columnWidthFn(e);return void 0===t&&(t=r.DEFAULT_WIDTH),t}},{get DEFAULT_WIDTH(){return 50}}),window.WalkontableViewportColumnsCalculator=i},{}],5:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableViewportRowsCalculator:{get:function(){return i}},__esModule:{value:!0}});var o=new WeakMap,i=function(e,t,n,i,r,s,a){o.set(this,{viewportHeight:e,scrollOffset:t,totalRows:n,rowHeightFn:i,overrideFn:r,onlyFullyVisible:s,horizontalScrollbarHeight:a}),this.count=0,this.startRow=null,this.endRow=null,this.startPosition=null,this.calculate()},r=i;$traceurRuntime.createClass(i,{calculate:function(){for(var e=0,t=!0,n=[],i=o.get(this),s=i.onlyFullyVisible,a=i.overrideFn,l=i.rowHeightFn,u=i.scrollOffset,d=i.totalRows,c=i.viewportHeight,h=i.horizontalScrollbarHeight||0,f=0;f<d;f++){var p=l(f);if(void 0===p&&(p=r.DEFAULT_HEIGHT),e<=u&&!s&&(this.startRow=f),e>=u&&e+p<=u+c-h&&(null===this.startRow&&(this.startRow=f),this.endRow=f),n.push(e),e+=p,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 m=n[this.endRow]+p-n[this.startRow-1];if((m<=c-h||!s)&&this.startRow--,m>=c-h)break}null!==this.startRow&&a&&a(this),this.startPosition=n[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=i},{}],6:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableCellCoords:{get:function(){return o}},__esModule:{value:!0}});var o=function(e,t){"undefined"!=typeof e&&"undefined"!=typeof t?(this.row=e,this.col=t):(this.row=null,this.col=null)};$traceurRuntime.createClass(o,{isValid:function(e){return!(this.row<0||this.col<0)&&!(this.row>=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))},isEqual:function(e){return e===this||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=o},{}],7:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableCellRange:{get:function(){return r}},__esModule:{value:!0}});var o,i=(o=e("cell/coords"),o&&o.__esModule&&o||{default:o}).WalkontableCellCoords,r=function(e,t,n){this.highlight=e,this.from=t,this.to=n},s=r;$traceurRuntime.createClass(r,{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,n=t.row,o=t.col,i=this.getTopLeftCorner(),r=this.getBottomRightCorner();return i.row<=n&&r.row>=n&&i.col<=o&&r.col>=o},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(),n=this.getBottomRightCorner();return(e.row<t.row||e.col<t.col||e.row>n.row||e.col>n.col)&&(this.from=new i(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new i(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)},expandByRange:function(e){if(this.includesRange(e)||!this.overlaps(e))return!1;var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=(this.getTopRightCorner(),this.getBottomLeftCorner(),e.getTopLeftCorner()),r=e.getBottomRightCorner(),a=Math.min(t.row,o.row),l=Math.min(t.col,o.col),u=Math.max(n.row,r.row),d=Math.max(n.col,r.col),c=new i(a,l),h=new i(u,d),f=new s(c,c,h).isCorner(this.from,e),p=e.isEqual(new s(c,c,h));return f&&!p&&(this.from.col>c.col&&(c.col=d,h.col=l),this.from.row>c.row&&(c.row=u,h.row=a)),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 i(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))},getBottomRightCorner:function(){return new i(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getTopRightCorner:function(){return new i(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))},getBottomLeftCorner:function(){return new i(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 i(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new i(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new i(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new i(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))},getOppositeCorner:function(e,t){if(!(e instanceof i))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new i(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new i(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new i(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new i(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)},n={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)},o=[];return t.top==n.top&&o.push("top"),t.right==n.right&&o.push("right"),t.bottom==n.bottom&&o.push("bottom"),t.left==n.left&&o.push("left"),o},getInner:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var r=e.col;r<=t.col;r++)this.from.row===o&&this.from.col===r||this.to.row===o&&this.to.col===r||n.push(new i(o,r));return n},getAll:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;o<=t.row;o++)for(var r=e.col;r<=t.col;r++)e.row===o&&e.col===r?n.push(e):t.row===o&&t.col===r?n.push(t):n.push(new i(o,r));return n},forAll:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;o<=n.row;o++)for(var i=t.col;i<=n.col;i++){var r=e(o,i);if(r===!1)return}}},{}),window.WalkontableCellRange=r},{"cell/coords":6}],8:[function(e,t,n){"use strict";Object.defineProperties(n,{Walkontable:{get:function(){return B}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,f,p,m,g,w=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),v=w.addClass,b=w.fastInnerText,C=w.isVisible,y=w.removeClass,A=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).objectEach,_=(r=e("helpers/string"),r&&r.__esModule&&r||{default:r}),E=_.toUpperCaseFirst,R=_.randomString,S=(s=e("event"),s&&s.__esModule&&s||{default:s}).WalkontableEvent,M=(a=e("overlays"),a&&a.__esModule&&a||{default:a}).WalkontableOverlays,k=(l=e("scroll"),l&&l.__esModule&&l||{default:l}).WalkontableScroll,T=(u=e("settings"),u&&u.__esModule&&u||{default:u}).WalkontableSettings,x=(d=e("table"),d&&d.__esModule&&d||{default:d}).WalkontableTable,O=(c=e("viewport"),c&&c.__esModule&&c||{default:c}).WalkontableViewport,B=((h=e("overlay/_base.js"),h&&h.__esModule&&h||{default:h}).WalkontableOverlay,(f=e("overlay/top.js"),f&&f.__esModule&&f||{default:f}).WalkontableTopOverlay,(p=e("overlay/left.js"),p&&p.__esModule&&p||{default:p}).WalkontableLeftOverlay,(m=e("overlay/debug.js"),m&&m.__esModule&&m||{default:m}).WalkontableDebugOverlay,(g=e("overlay/topLeftCorner.js"),g&&g.__esModule&&g||{default:g}).WalkontableTopLeftCornerOverlay,function(e){var t=[];if(this.guid="wt_"+R(),e.cloneSource?(this.cloneSource=e.cloneSource,this.cloneOverlay=e.cloneOverlay,this.wtSettings=e.cloneSource.wtSettings,this.wtTable=new x(this,e.table,e.wtRootElement),this.wtScroll=new k(this),this.wtViewport=e.cloneSource.wtViewport,this.wtEvent=new S(this),this.selections=this.cloneSource.selections):(this.wtSettings=new T(this,e),this.wtTable=new x(this,e.table),this.wtScroll=new k(this),this.wtViewport=new O(this),this.wtEvent=new S(this),this.selections=this.getSetting("selections"),this.wtOverlays=new M(this),this.exportSettingsAsClassNames()),this.wtTable.THEAD.childNodes.length&&this.wtTable.THEAD.childNodes[0].childNodes.length){for(var n=0,o=this.wtTable.THEAD.childNodes[0].childNodes.length;n<o;n++)t.push(this.wtTable.THEAD.childNodes[0].childNodes[n].innerHTML);this.getSetting("columnHeaders").length||this.update("columnHeaders",[function(e,n){b(n,t[e])}])}this.drawn=!1,this.drawInterrupted=!1});$traceurRuntime.createClass(B,{draw:function(){var e=void 0!==arguments[0]&&arguments[0];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];if(!t)return this.wtTable.getCell(e);var n=this.wtSettings.getSetting("totalRows"),o=this.wtSettings.getSetting("fixedRowsTop"),i=this.wtSettings.getSetting("fixedRowsBottom"),r=this.wtSettings.getSetting("fixedColumnsLeft");if(e.row<o&&e.col<r)return this.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell(e);if(e.row<o)return this.wtOverlays.topOverlay.clone.wtTable.getCell(e);if(e.col<r&&e.row>=n-i){if(this.wtOverlays.bottomLeftCornerOverlay.clone)return this.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell(e)}else{if(e.col<r)return this.wtOverlays.leftOverlay.clone.wtTable.getCell(e);if(e.row<n&&e.row>n-i&&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},exportSettingsAsClassNames:function(){var e=this,t={rowHeaders:["array"],columnHeaders:["array"]},n=[],o=[];A(t,function(t,i){t.indexOf("array")>-1&&e.getSetting(i).length&&o.push("ht"+E(i)),n.push("ht"+E(i))}),y(this.wtTable.wtRootElement.parentNode,n),v(this.wtTable.wtRootElement.parentNode,o)},getSetting:function(e,t,n,o,i){return this.wtSettings.getSetting(e,t,n,o,i)},hasSetting:function(e){return this.wtSettings.has(e)},destroy:function(){this.wtOverlays.destroy(),this.wtEvent.destroy()}},{}),window.Walkontable=B},{event:9,"helpers/dom/element":47,"helpers/object":53,"helpers/string":55,"overlay/_base.js":12,"overlay/debug.js":13,"overlay/left.js":14,"overlay/top.js":15,"overlay/topLeftCorner.js":16,overlays:17,scroll:18,settings:20,table:21,viewport:23}],9:[function(e,t,n){"use strict";function o(e){var t=this,n=h(e);this.instance=e;var o=[null,null];this.dblClickTimeout=[null,null];var i,r=function(e){var n=t.parentCell(e.realTarget);u(e.realTarget,"corner")?t.instance.getSetting("onCellCornerMouseDown",e,e.realTarget):n.TD&&t.instance.hasSetting("onCellMouseDown")&&t.instance.getSetting("onCellMouseDown",e,n.coords,n.TD,t.instance),2!==e.button&&n.TD&&(o[0]=n.TD,clearTimeout(t.dblClickTimeout[0]),t.dblClickTimeout[0]=setTimeout(function(){o[0]=null},1e3))},s=function(e){t.instance.touchMoving=!0},a=function(e){n.addEventListener(this,"touchmove",s),t.checkIfTouchMove=setTimeout(function(){return t.instance.touchMoving===!0?(t.instance.touchMoving=void 0,void n.removeEventListener("touchmove",s,!1)):void r(e)},30)},f=function(e){var n,o,i;t.instance.hasSetting("onCellMouseOver")&&(n=t.instance.wtTable.TABLE,o=l(e.realTarget,["TD","TH"],n),i=t.instance.cloneSource||t.instance,o&&o!==i.lastMouseOver&&d(o,n)&&(i.lastMouseOver=o,t.instance.getSetting("onCellMouseOver",e,t.instance.wtTable.getCoords(o),o,t.instance)))},p=function(e){if(2!==e.button){var n=t.parentCell(e.realTarget);n.TD===o[0]&&n.TD===o[1]?(u(e.realTarget,"corner")?t.instance.getSetting("onCellCornerDblClick",e,n.coords,n.TD,t.instance):t.instance.getSetting("onCellDblClick",e,n.coords,n.TD,t.instance),o[0]=null,o[1]=null):n.TD===o[0]?(t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance),o[1]=n.TD,clearTimeout(t.dblClickTimeout[1]),t.dblClickTimeout[1]=setTimeout(function(){o[1]=null},500)):n.TD&&t.instance.hasSetting("onCellMouseUp")&&t.instance.getSetting("onCellMouseUp",e,n.coords,n.TD,t.instance)}},m=function(e){clearTimeout(i),e.preventDefault(),p(e)};if(n.addEventListener(this.instance.wtTable.holder,"mousedown",r),n.addEventListener(this.instance.wtTable.TABLE,"mouseover",f),n.addEventListener(this.instance.wtTable.holder,"mouseup",p),this.instance.wtTable.holder.parentNode.parentNode&&c()&&!t.instance.wtTable.isWorkingOnClone()){var g="."+this.instance.wtTable.holder.parentNode.className.split(" ").join(".");n.addEventListener(this.instance.wtTable.holder,"touchstart",function(e){t.instance.touchApplied=!0,d(e.target,g)&&a.call(e.target,e)}),n.addEventListener(this.instance.wtTable.holder,"touchend",function(e){t.instance.touchApplied=!1,d(e.target,g)&&m.call(e.target,e)}),t.instance.momentumScrolling||(t.instance.momentumScrolling={}),n.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)})}n.addEventListener(window,"resize",function(){"none"!==t.instance.getSetting("stretchH")&&t.instance.draw()}),this.destroy=function(){clearTimeout(this.dblClickTimeout[0]),clearTimeout(this.dblClickTimeout[1]),n.destroy()}}Object.defineProperties(n,{WalkontableEvent:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),l=a.closestDown,u=a.hasClass,d=a.isChildOf,c=(r=e("helpers/browser"),r&&r.__esModule&&r||{default:r}).isMobileBrowser,h=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager;o.prototype.parentCell=function(e){var t={},n=this.instance.wtTable.TABLE,o=l(e,["TD","TH"],n);return o?(t.coords=this.instance.wtTable.getCoords(o),t.TD=o):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=o},{eventManager:42,"helpers/browser":44,"helpers/dom/element":47}],10:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableColumnFilter:{get:function(){return o}},__esModule:{value:!0}});var o=function(e,t,n){this.offset=e,this.total=t,this.countTH=n};$traceurRuntime.createClass(o,{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=o},{}],11:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableRowFilter:{get:function(){return o}},__esModule:{value:!0}});var o=function(e,t,n){this.offset=e,this.total=t,this.countTH=n};$traceurRuntime.createClass(o,{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=o},{}],12:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableOverlay:{get:function(){return h}},__esModule:{value:!0}});var o,i,r,s=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),a=s.getScrollableElement,l=s.getTrimmingContainer,u=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).defineGetter,d=(r=e("eventManager"),r&&r.__esModule&&r||{default:r}).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=l(this.hider.parentNode.parentNode),this.needFullRender=this.shouldBeRendered(),this.areElementSizesAdjusted=!1},f=h;$traceurRuntime.createClass(h,{shouldBeRendered:function(){return!0},updateTrimmingContainer:function(){this.trimmingContainer=l(this.hider.parentNode.parentNode)},updateMainScrollableElement:function(){this.mainTableScrollableElement=a(this.wot.wtTable.TABLE)},makeClone:function(e){if(f.CLONE_TYPES.indexOf(e)===-1)throw new Error('Clone type "'+e+'" is not supported.');var t=document.createElement("DIV"),n=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",n.className=this.wot.wtTable.TABLE.className,t.appendChild(n),this.type=e,this.wot.wtTable.wtRootElement.parentNode.appendChild(t);var o=this.wot.getSetting("preventOverflow");return o===!0||"horizontal"===o&&this.type===f.CLONE_TOP||"vertical"===o&&this.type===f.CLONE_LEFT?this.mainTableScrollableElement=window:this.mainTableScrollableElement=a(this.wot.wtTable.TABLE),new Walkontable({cloneSource:this.wot,cloneOverlay:this,table:n})},refresh:function(){var e=void 0!==arguments[0]&&arguments[0],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(f.CLONE_TYPES.indexOf(e)===-1)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]}}),window.WalkontableOverlay=h},{eventManager:42,"helpers/dom/element":47,"helpers/object":53}],13:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableDebugOverlay:{get:function(){return a}},__esModule:{value:!0}});var o,i,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).addClass,s=(i=e("_base"),i&&i.__esModule&&i||{default:i}).WalkontableOverlay,a=function(e){$traceurRuntime.superConstructor(l).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",r(this.clone.wtTable.holder.parentNode,"wtDebugVisible")},l=a;$traceurRuntime.createClass(a,{},{},s),window.WalkontableDebugOverlay=a,s.registerOverlay(s.CLONE_DEBUG,a)},{_base:12,"helpers/dom/element":47}],14:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableLeftOverlay:{get:function(){return w}},__esModule:{value:!0}});var o,i,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=r.addClass,a=r.getScrollbarWidth,l=r.getScrollLeft,u=r.getWindowScrollTop,d=r.hasClass,c=r.outerWidth,h=r.innerHeight,f=r.removeClass,p=r.setOverlayPosition,m=r.resetCssTransform,g=(i=e("_base"),i&&i.__esModule&&i||{default:i}).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,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"horizontal"===n)t=this.getScrollPosition(),m(e);else{var o,i,r=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(r.left),a=Math.ceil(r.right);i=this.wot.wtTable.hider.style.top,i=""===i?0:i,o=s<0&&a-e.offsetWidth>0?-s:0,t=o,o+="px",p(e,o,i)}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 n=0,o=this.wot.wtSettings.defaultColumnWidth;e<t;)n+=this.wot.wtTable.getStretchedColumnWidth(e)||o,e++;return n},adjustElementsSize:function(){var e=void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,n=t.clientHeight===t.offsetHeight?0:a(),o=this.clone.wtTable.holder.parentNode,i=o.style,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"vertical"===r){var s=this.wot.wtViewport.getWorkspaceHeight()-n;s=Math.min(s,h(this.wot.wtTable.wtRootElement)),i.height=s+"px"}else i.height="";this.clone.wtTable.holder.style.height=i.height,e=c(this.clone.wtTable.TABLE),i.width=(0===e?e:e+4)+"px"},adjustRootChildrenSize:function(){var e=a();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 n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,i=o.wtTable.holder,r=0;t&&i.offsetWidth!==i.clientWidth&&(r=a()),t?(n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportWidth()):n+=this.sumCellSizes(this.wot.getSetting("fixedColumnsLeft"),e),n+=r,this.setScrollPosition(n)},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 l(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("rowHeaders"),o=this.wot.getSetting("fixedColumnsLeft"),i=this.wot.getSetting("totalRows");if(i?f(t,"emptyRows"):s(t,"emptyRows"),o&&!n.length)s(t,"innerBorderLeft");else if(!o&&n.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:12,"helpers/dom/element":47}],15:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableTopOverlay:{get:function(){return w}},__esModule:{value:!0}});var o,i,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=r.addClass,a=r.getScrollbarWidth,l=r.getScrollTop,u=r.getWindowScrollLeft,d=r.hasClass,c=r.outerHeight,h=r.innerWidth,f=r.removeClass,p=r.setOverlayPosition,m=r.resetCssTransform,g=(i=e("_base"),i&&i.__esModule&&i||{default:i}).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,n=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||n&&"vertical"===n)t=this.getScrollPosition(),m(e);else{var o,i,r=this.wot.wtTable.hider.getBoundingClientRect(),s=Math.ceil(r.top),a=Math.ceil(r.bottom);o=this.wot.wtTable.hider.style.left,o=""===o?0:o,i=s<0&&a-e.offsetHeight>0?-s:0,t=i,i+="px",p(e,o,i)}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 n=0,o=this.wot.wtSettings.settings.defaultRowHeight;e<t;){var i=this.wot.wtTable.getRowHeight(e);n+=void 0===i?o:i,e++}return n},adjustElementsSize:function(){var e=void 0!==arguments[0]&&arguments[0];this.updateTrimmingContainer(),(this.needFullRender||e)&&(this.adjustRootElementSize(),this.adjustRootChildrenSize(),e||(this.areElementSizesAdjusted=!0))},adjustRootElementSize:function(){var e,t=this.wot.wtTable.holder,n=t.clientWidth===t.offsetWidth?0:a(),o=this.clone.wtTable.holder.parentNode,i=o.style,r=this.wot.getSetting("preventOverflow");if(this.trimmingContainer!==window||"horizontal"===r){var s=this.wot.wtViewport.getWorkspaceWidth()-n;s=Math.min(s,h(this.wot.wtTable.wtRootElement)),i.width=s+"px"}else i.width="";this.clone.wtTable.holder.style.width=i.width,e=c(this.clone.wtTable.TABLE),i.height=(0===e?e:e+4)+"px"},adjustRootChildrenSize:function(){var e=a();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 n=this.getTableParentOffset(),o=this.wot.cloneSource?this.wot.cloneSource:this.wot,i=o.wtTable.holder,r=0;if(t&&i.offsetHeight!==i.clientHeight&&(r=a()),t){var s=this.wot.getSetting("fixedRowsBottom"),l=(this.wot.getSetting("fixedRowsTop"),this.wot.getSetting("totalRows"));n+=this.sumCellSizes(0,e+1),n-=this.wot.wtViewport.getViewportHeight()-this.sumCellSizes(l-s,l),n+=1}else n+=this.sumCellSizes(this.wot.getSetting("fixedRowsTop"),e);n+=r,this.setScrollPosition(n)},getTableParentOffset:function(){return this.mainTableScrollableElement===window?this.wot.wtTable.holderOffset.top:0},getScrollPosition:function(){return l(this.mainTableScrollableElement)},adjustHeaderBordersPosition:function(e){var t=this.wot.wtTable.holder.parentNode,n=this.wot.getSetting("totalColumns");if(n?f(t,"emptyColumns"):s(t,"emptyColumns"),0===this.wot.getSetting("fixedRowsTop")&&this.wot.getSetting("columnHeaders").length>0){var 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 i=this.clone.wtTable.THEAD.querySelectorAll("th:nth-of-type(2)");if(i)for(var r=0;r<i.length;r++)i[r].style["border-left-width"]=0}}},{},g),window.WalkontableTopOverlay=w,g.registerOverlay(g.CLONE_TOP,w)},{_base:12,"helpers/dom/element":47}],16:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableTopLeftCornerOverlay:{get:function(){return c}},__esModule:{value:!0}});var o,i,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=r.outerHeight,a=r.outerWidth,l=r.setOverlayPosition,u=r.resetCssTransform,d=(i=e("_base"),i&&i.__esModule&&i||{default:i}).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),n=a(this.clone.wtTable.TABLE),o=this.wot.getSetting("preventOverflow");if(this.trimmingContainer===window){var i=this.wot.wtTable.hider.getBoundingClientRect(),r=Math.ceil(i.top),d=Math.ceil(i.left),c=Math.ceil(i.bottom),h=Math.ceil(i.right),f="0",p="0";o&&"vertical"!==o||d<0&&h-e.offsetWidth>0&&(f=-d+"px"),o&&"horizontal"!==o||r<0&&c-e.offsetHeight>0&&(p=-r+"px"),l(e,f,p)}else u(e);e.style.height=(0===t?t:t+4)+"px",e.style.width=(0===n?n:n+4)+"px"}}},{},d),window.WalkontableTopLeftCornerOverlay=c,d.registerOverlay(d.CLONE_TOP_LEFT_CORNER,c)},{_base:12,"helpers/dom/element":47}],17:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableOverlays:{get:function(){return w}},__esModule:{value:!0}});var o,i,r,s,a,l=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),u=l.getScrollableElement,d=l.getScrollbarWidth,c=l.getScrollLeft,h=l.getScrollTop,f=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,p=(r=e("helpers/unicode"),r&&r.__esModule&&r||{default:r}).isKey,m=(s=e("helpers/browser"),s&&s.__esModule&&s||{default:s}).isMobileBrowser,g=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).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,n=this.leftOverlay.mainTableScrollableElement,o=[];for(o.push([document.documentElement,"keydown",function(t){return e.onKeyDown(t)}]),o.push([document.documentElement,"keyup",function(){return e.onKeyUp()}]),o.push([document,"visibilitychange",function(){return e.onKeyUp()}]),o.push([t,"scroll",function(t){return e.onTableScroll(t)}]),t!==n&&o.push([n,"scroll",function(t){return e.onTableScroll(t)}]),this.topOverlay.needFullRender&&(o.push([this.topOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.topOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.bottomOverlay.needFullRender&&(o.push([this.bottomOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.bottomOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.leftOverlay.needFullRender&&(o.push([this.leftOverlay.clone.wtTable.holder,"scroll",function(t){return e.onTableScroll(t)}]),o.push([this.leftOverlay.clone.wtTable.holder,"wheel",function(t){return e.onTableScroll(t)}])),this.topOverlay.trimmingContainer!==window&&this.leftOverlay.trimmingContainer!==window&&o.push([window,"wheel",function(t){var n,o=t.wheelDeltaY||t.deltaY,i=t.wheelDeltaX||t.deltaX;e.topOverlay.clone.wtTable.holder.contains(t.realTarget)?n="top":e.bottomOverlay.clone&&e.bottomOverlay.clone.wtTable.holder.contains(t.realTarget)?n="bottom":e.leftOverlay.clone.wtTable.holder.contains(t.realTarget)&&(n="left"),"top"==n&&0!==o?t.preventDefault():"left"==n&&0!==i?t.preventDefault():"bottom"==n&&0!==o&&t.preventDefault()}]);o.length;){var i=o.pop();this.eventManager.addEventListener(i[0],i[1],i[2]),this.registeredListeners.push(i)}},deregisterListeners:function(){for(;this.registeredListeners.length;){var e=this.registeredListeners.pop();this.eventManager.removeEventListener(e[0],e[1],e[2])}},onTableScroll:function(e){if(!m()){var t=this.leftOverlay.mainTableScrollableElement,n=this.topOverlay.mainTableScrollableElement,o=e.target;this.keyPressed&&(n!==window&&o!==window&&!e.target.contains(n)||t!==window&&o!==window&&!e.target.contains(t))||("scroll"===e.type?this.syncScrollPositions(e):this.translateMouseWheelToScroll(e))}},onKeyDown:function(e){this.keyPressed=p(e.keyCode,"ARROW_UP|ARROW_RIGHT|ARROW_DOWN|ARROW_LEFT")},onKeyUp:function(){this.keyPressed=!1},translateMouseWheelToScroll:function(e){var t,n=this.topOverlay.clone.wtTable.holder,o=this.bottomOverlay.clone?this.bottomOverlay.clone.wtTable.holder:null,i=this.leftOverlay.clone.wtTable.holder,r={type:"wheel"},s=e.target,a=e.wheelDeltaY||-1*e.deltaY,l=e.wheelDeltaX||-1*e.deltaX;for(1===e.deltaMode&&(a*=120,l*=120);s!=document&&null!=s;){if(s.className.indexOf("wtHolder")>-1){t=s;break}s=s.parentNode}return r.target=t,t==n?this.syncScrollPositions(r,-.2*a):t==o?this.syncScrollPositions(r,-.2*a):t==i&&this.syncScrollPositions(r,-.2*l),!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 n,o,i,r=this.leftOverlay.mainTableScrollableElement,s=this.topOverlay.mainTableScrollableElement,a=e.target,l=0,u=!1,d=!1,f=this.wot.getSetting("preventOverflow");this.topOverlay.needFullRender&&(n=this.topOverlay.clone.wtTable.holder),this.bottomOverlay.needFullRender&&(i=this.bottomOverlay.clone.wtTable.holder),this.leftOverlay.needFullRender&&(o=this.leftOverlay.clone.wtTable.holder),a===document&&(a=window),a===r||a===s?(l=c(f?this.scrollableElement:a),this.horizontalScrolling=!0,this.overlayScrollPositions.master.left=l,u=!0,this.pendingScrollCallbacks.master.left>0?this.pendingScrollCallbacks.master.left--:(n&&n.scrollLeft!==l&&(null==t&&this.pendingScrollCallbacks.top.left++,n.scrollLeft=l,d=r!==window),i&&i.scrollLeft!==l&&(null==t&&this.pendingScrollCallbacks.bottom.left++,i.scrollLeft=l,d=r!==window)),l=h(a),this.verticalScrolling=!0,this.overlayScrollPositions.master.top=l,u=!0,this.pendingScrollCallbacks.master.top>0?this.pendingScrollCallbacks.master.top--:o&&o.scrollTop!==l&&(null==t&&this.pendingScrollCallbacks.left.top++,o.scrollTop=l,d=s!==window)):a===i?(l=c(a),this.horizontalScrolling=!0,this.overlayScrollPositions.bottom.left=l,u=!0,this.pendingScrollCallbacks.bottom.left>0?this.pendingScrollCallbacks.bottom.left--:(null==t&&this.pendingScrollCallbacks.master.left++,r.scrollLeft=l,n&&n.scrollLeft!==l&&(null==t&&this.pendingScrollCallbacks.top.left++,n.scrollLeft=l,d=s!==window)),null!==t&&(u=!0,s.scrollTop+=t)):a===n?(l=c(a),this.horizontalScrolling=!0,this.overlayScrollPositions.top.left=l,u=!0,this.pendingScrollCallbacks.top.left>0?this.pendingScrollCallbacks.top.left--:(null==t&&this.pendingScrollCallbacks.master.left++,r.scrollLeft=l),null!==t&&(u=!0,s.scrollTop+=t),i&&i.scrollLeft!==l&&(null==t&&this.pendingScrollCallbacks.bottom.left++,i.scrollLeft=l,d=s!==window)):a===o&&(l=h(a),this.overlayScrollPositions.left.top!==l&&(this.verticalScrolling=!0,this.overlayScrollPositions.left.top=l,u=!0,this.pendingScrollCallbacks.left.top>0?this.pendingScrollCallbacks.left.top--:(null==t&&this.pendingScrollCallbacks.master.top++,s.scrollTop=l)),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];if(this.topOverlay.areElementSizesAdjusted&&this.leftOverlay.areElementSizesAdjusted){var t=this.wot.wtTable.wtRootElement.parentNode||this.wot.wtTable.wtRootElement,n=t.clientWidth,o=t.clientHeight;n===this.spreaderLastSize.width&&o===this.spreaderLastSize.height||(this.spreaderLastSize.width=n,this.spreaderLastSize.height=o,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],t=this.wot.getSetting("totalColumns"),n=this.wot.getSetting("totalRows"),o=this.wot.wtViewport.getRowHeaderWidth(),i=this.wot.wtViewport.getColumnHeaderHeight(),r=this.wot.wtTable.hider.style;r.width=o+this.leftOverlay.sumCellSizes(0,t)+"px",r.height=i+this.topOverlay.sumCellSizes(0,n)+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],n=null;return f(t,function(t,o){t&&t.clone&&t.clone.wtTable.TABLE.contains(e)&&(n=t.clone)}),n}},{}),window.WalkontableOverlays=w},{eventManager:42,"helpers/array":43,"helpers/browser":44,"helpers/dom/element":47,"helpers/unicode":56}],18:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableScroll:{get:function(){return p}},__esModule:{value:!0}});var o,i,r=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),s=r.innerHeight,a=r.innerWidth,l=r.getScrollLeft,u=r.getScrollTop,d=r.offset,c=(i=e("helpers/number"),i&&i.__esModule&&i||{default:i}),h=c.rangeEach,f=c.rangeEachReverse,p=function(e){this.wot=e,this.instance=e};$traceurRuntime.createClass(p,{scrollViewport:function(e){if(this.wot.drawn){var t=this._getVariables(),n=t.topOverlay,o=t.leftOverlay,i=t.totalRows,r=t.totalColumns,s=t.fixedRowsTop,a=t.fixedRowsBottom,l=t.fixedColumnsLeft;if(e.row<0||e.row>Math.max(i-1,0))throw new Error("row "+e.row+" does not exist");if(e.col<0||e.col>Math.max(r-1,0))throw new Error("column "+e.col+" does not exist");e.row>=s&&e.row<this.getFirstVisibleRow()?n.scrollTo(e.row):e.row>this.getLastVisibleRow()&&e.row<i-a&&n.scrollTo(e.row,!0),e.col>=l&&e.col<this.getFirstVisibleColumn()?o.scrollTo(e.col):e.col>this.getLastVisibleColumn()&&o.scrollTo(e.col,!0)}},getFirstVisibleRow:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,r=e.fixedRowsTop,a=n.getFirstVisibleRow();if(t.mainTableScrollableElement===window){var l=d(n.wtRootElement),c=s(n.hider),h=s(window),p=u(window);if(l.top+c-h<=p){var m=o.getColumnHeaderHeight();m+=t.sumCellSizes(0,r),f(i,1,function(e){if(m+=t.sumCellSizes(e-1,e),l.top+c-m<=p)return a=e,!1})}}return a},getLastVisibleRow:function(){var e=this._getVariables(),t=e.topOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalRows,r=n.getLastVisibleRow();if(t.mainTableScrollableElement===window){var a=d(n.wtRootElement),l=s(window),c=u(window);if(a.top>c){var f=o.getColumnHeaderHeight();h(1,i,function(e){if(f+=t.sumCellSizes(e-1,e),a.top+f-c>=l)return r=e-2,!1})}}return r},getFirstVisibleColumn:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,r=(e.fixedColumnsLeft,n.getFirstVisibleColumn());if(t.mainTableScrollableElement===window){var s=d(n.wtRootElement),u=a(n.hider),c=a(window),h=l(window);if(s.left+u-c<=h){var p=o.getRowHeaderWidth();f(i,1,function(e){if(p+=t.sumCellSizes(e-1,e),s.left+u-p<=h)return r=e,!1})}}return r},getLastVisibleColumn:function(){var e=this._getVariables(),t=e.leftOverlay,n=e.wtTable,o=e.wtViewport,i=e.totalColumns,r=n.getLastVisibleColumn();if(t.mainTableScrollableElement===window){var s=d(n.wtRootElement),u=a(window),c=l(window);if(s.left>c){var f=o.getRowHeaderWidth();h(1,i,function(e){if(f+=t.sumCellSizes(e-1,e),s.left+f-c>=u)return r=e-2,!1})}}return r},_getVariables:function(){var e=this.wot,t=e.wtOverlays.topOverlay,n=e.wtOverlays.leftOverlay,o=e.wtTable,i=e.wtViewport,r=e.getSetting("totalRows"),s=e.getSetting("totalColumns"),a=e.getSetting("fixedRowsTop"),l=e.getSetting("fixedRowsBottom"),u=e.getSetting("fixedColumnsLeft");return{topOverlay:t,leftOverlay:n,wtTable:o,wtViewport:i,totalRows:r,totalColumns:s,fixedRowsTop:a,fixedRowsBottom:l,fixedColumnsLeft:u}}},{}),window.WalkontableScroll=p},{"helpers/dom/element":47,"helpers/number":52}],19:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableSelection:{get:function(){return c}},__esModule:{value:!0}});var o,i,r,s,a=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).addClass,l=(i=e("border"),i&&i.__esModule&&i||{default:i}).WalkontableBorder,u=(r=e("cell/coords"),r&&r.__esModule&&r||{default:r}).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 l(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,n,o){var i=e.wtTable.getCell(new u(t,n));"object"==typeof i&&a(i,o)},draw:function(e){if(this.isEmpty()){if(this.settings.border){var t=this.getBorder(e);t&&t.disappear()}}else{for(var n,o,i,r=e.wtTable.getRenderedRowsCount(),s=e.wtTable.getRenderedColumnsCount(),l=this.getCorners(),u=0;u<s;u++)if(o=e.wtTable.columnFilter.renderedToSource(u),o>=l[1]&&o<=l[3]&&(i=e.wtTable.getColumnHeader(o))){var d=[];this.settings.highlightHeaderClassName&&d.push(this.settings.highlightHeaderClassName),this.settings.highlightColumnClassName&&d.push(this.settings.highlightColumnClassName),a(i,d)}for(var c=0;c<r;c++){if(n=e.wtTable.rowFilter.renderedToSource(c),n>=l[0]&&n<=l[2]&&(i=e.wtTable.getRowHeader(n))){var h=[];this.settings.highlightHeaderClassName&&h.push(this.settings.highlightHeaderClassName),this.settings.highlightRowClassName&&h.push(this.settings.highlightRowClassName),a(i,h)}for(var f=0;f<s;f++)o=e.wtTable.columnFilter.renderedToSource(f),n>=l[0]&&n<=l[2]&&o>=l[1]&&o<=l[3]?this.settings.className&&this.addClassAtCoords(e,n,o,this.settings.className):n>=l[0]&&n<=l[2]?this.settings.highlightRowClassName&&this.addClassAtCoords(e,n,o,this.settings.highlightRowClassName):o>=l[1]&&o<=l[3]&&this.settings.highlightColumnClassName&&this.addClassAtCoords(e,n,o,this.settings.highlightColumnClassName)}if(e.getSetting("onBeforeDrawBorders",l,this.settings.className),this.settings.border){var p=this.getBorder(e);p&&p.appear(l)}}}},{}),window.WalkontableSelection=c},{border:3,"cell/coords":6,"cell/range":7,"helpers/dom/element":47}],20:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableSettings:{get:function(){return r}},__esModule:{value:!0}});var o,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).fastInnerText,r=function(e,t){var n=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,o){var r=n.getSetting("data",e,t);i(o,void 0===r||null===r?"":r)},columnWidth:function(e){},rowHeight:function(e){},defaultRowHeight:23,defaultColumnWidth:50,selections:null,hideBorderOnMouseDownOver:!1,viewportRowCalculatorOverride:null,viewportColumnCalculatorOverride:null,onCellMouseDown:null,onCellMouseOver:null,onCellMouseUp: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,headerClassName:null},this.settings={};for(var o in this.defaults)if(this.defaults.hasOwnProperty(o))if(void 0!==t[o])this.settings[o]=t[o];else{if(void 0===this.defaults[o])throw new Error('A required setting "'+o+'" was not provided');this.settings[o]=this.defaults[o]}};$traceurRuntime.createClass(r,{update:function(e,t){if(void 0===t)for(var n in e)e.hasOwnProperty(n)&&(this.settings[n]=e[n]);else this.settings[e]=t;return this.wot},getSetting:function(e,t,n,o,i){return"function"==typeof this.settings[e]?this.settings[e](t,n,o,i):void 0!==t&&Array.isArray(this.settings[e])?this.settings[e][t]:this.settings[e]},has:function(e){return!!this.settings[e]}},{}),window.WalkontableSettings=r},{"helpers/dom/element":47}],21:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableTable:{get:function(){return _}},__esModule:{value:!0}});var o,i,r,s,a,l,u=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}),d=u.getStyle,c=u.getTrimmingContainer,h=u.hasClass,f=u.index,p=u.offset,m=u.removeClass,g=u.removeTextNodes,w=u.overlayContainsElement,v=u.closest,b=(i=e("cell/coords"),i&&i.__esModule&&i||{default:i}).WalkontableCellCoords,C=((r=e("cell/range"),r&&r.__esModule&&r||{default:r}).WalkontableCellRange,(s=e("filter/column"),s&&s.__esModule&&s||{default:s}).WalkontableColumnFilter),y=(a=e("filter/row"),a&&a.__esModule&&a||{default:a}).WalkontableRowFilter,A=(l=e("tableRenderer"),l&&l.__esModule&&l||{default:l}).WalkontableTableRenderer,_=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(_,{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,n=e.parentNode;return n&&1===n.nodeType&&h(n,"wtHolder")||(t=document.createElement("div"),t.className="wtSpreader",n&&n.insertBefore(t,e),t.appendChild(e)),t.style.position="relative",t},createHider:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&h(n,"wtHolder")||(t=document.createElement("div"),t.className="wtHider",n&&n.insertBefore(t,e),t.appendChild(e)),t},createHolder:function(e){var t,n=e.parentNode;return n&&1===n.nodeType&&h(n,"wtHolder")||(t=document.createElement("div"),t.style.position="relative",t.className="wtHolder",n&&n.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=p(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=p(this.TABLE);var n;n=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 o;o=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(n,t,this.wot.getSetting("columnHeaders").length),this.columnFilter=new C(o,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 A(this);e.render()},removeClassFromCells:function(e){for(var t=this.TABLE.querySelectorAll("."+e),n=0,o=t.length;n<o;n++)m(t[n],e)},refreshSelections:function(e){if(this.wot.selections){var t=this.wot.selections.length;if(e)for(var n=0;n<t;n++)this.wot.selections[n].settings.className&&this.removeClassFromCells(this.wot.selections[n].settings.className),this.wot.selections[n].settings.highlightHeaderClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightHeaderClassName),this.wot.selections[n].settings.highlightRowClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightRowClassName),this.wot.selections[n].settings.highlightColumnClassName&&this.removeClassFromCells(this.wot.selections[n].settings.highlightColumnClassName);for(var o=0;o<t;o++)this.wot.selections[o].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,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]},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,n=t.parentNode,o=f(t),i=e.cellIndex;return w(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,e)||w(WalkontableOverlay.CLONE_TOP,e)?"THEAD"===n.nodeName&&(o-=n.childNodes.length):o=n===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),i=w(WalkontableOverlay.CLONE_TOP_LEFT_CORNER,e)||w(WalkontableOverlay.CLONE_LEFT,e)?this.columnFilter.offsettedTH(i):this.columnFilter.visibleRowHeadedColumnToSourceColumn(i),new b(o,i)},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&&this.rowFilter.sourceToRendered(e)<0&&e>=0},isRowAfterViewport:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastVisibleRow()},isRowAfterRenderedRows:function(e){return this.rowFilter&&this.rowFilter.sourceToRendered(e)>this.getLastRenderedRow()},isColumnBeforeViewport:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0},isColumnAfterViewport:function(e){return this.columnFilter&&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),n=this.wot.wtViewport.oversizedRows[e];return void 0!==n&&(t=void 0===t?n:Math.max(t,n)),t},getColumnHeaderHeight:function(e){var t=this.wot.wtSettings.settings.defaultRowHeight,n=this.wot.wtViewport.oversizedColumnHeaders[e];return void 0!==n&&(t=t?Math.max(t,n):n),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),n=null==t?this.instance.wtSettings.settings.defaultColumnWidth:t,o=this.wot.wtViewport.columnsRenderCalculator;if(o){var i=o.getStretchedColumnWidth(e,n);i&&(n=i)}return n}},{}),window.WalkontableTable=_},{"cell/coords":6,"cell/range":7,"filter/column":10,"filter/row":11,"helpers/dom/element":47,tableRenderer:22}],22:[function(e,t,n){"use strict";function o(e,t){var n=document.createElement("TH");return t.insertBefore(n,e),t.removeChild(e),n}function i(e,t){var n=document.createElement("TD");return t.insertBefore(n,e),t.removeChild(e),n}Object.defineProperties(n,{WalkontableTableRenderer:{get:function(){return p}},__esModule:{value:!0}});var r,s=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),a=s.addClass,l=s.empty,u=s.getScrollbarWidth,d=s.hasClass,c=s.innerHeight,h=s.outerWidth,f=!1,p=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(p,{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(),n=this.wtTable.getRenderedRowsCount(),o=this.wot.getSetting("totalColumns"),i=this.wot.getSetting("totalRows"),r=!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),o>=0&&(this.adjustAvailableNodes(),r=!0,this.renderColumnHeaders(),this.renderRows(i,n,t),this.wtTable.isWorkingOnClone()||(e=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null),this.adjustColumnWidths(t),this.markOversizedColumnHeaders(),this.adjustColumnHeaderHeights()),r||this.adjustAvailableNodes(),this.removeRedundantRows(n),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),this.wot.wtOverlays.applyToDOM();var s=h(this.wtTable.hider),a=h(this.wtTable.TABLE);if(0!==s&&a!==s&&this.adjustColumnWidths(t),e!==this.wot.wtViewport.getWorkspaceWidth()){this.wot.wtViewport.containerWidth=null;var l=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=l;f<u;f++){var p=this.wtTable.getStretchedColumnWidth(f),m=this.columnFilter.sourceToRendered(f);this.COLGROUP.childNodes[m+this.rowHeaderCount].style.width=p+"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,n){for(var o,i,r=0,s=this.rowFilter.renderedToSource(r),a=this.wtTable.isWorkingOnClone();s<e&&s>=0&&(!f&&r>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||r!==t);){if(i=this.getOrCreateTrForRow(r,i),this.renderRowHeaders(s,i),this.adjustColumns(i,n+this.rowHeaderCount),o=this.renderCells(s,i,n),a&&!this.wot.isOverlayName(WalkontableOverlay.CLONE_BOTTOM)||this.resetOversizedRow(s),i.firstChild){var l=this.wot.wtTable.getRowHeight(s);l?(l--,i.firstChild.style.height=l+"px"):i.firstChild.style.height=""}r++,s=this.rowFilter.renderedToSource(r)}},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,n,o,i,r=this.instance.wtTable.TBODY.childNodes.length,s=r*this.instance.wtSettings.settings.defaultRowHeight,a=c(this.instance.wtTable.TBODY)-1;this.instance.getSetting("totalRows");if(s!==a||this.instance.getSetting("fixedRowsBottom"))for(;r;)r--,n=this.instance.wtTable.rowFilter.renderedToSource(r),e=this.instance.wtTable.getRowHeight(n),o=this.instance.wtTable.getTrForRow(n),i=o.querySelector("th"),t=i?c(i):c(o)-1,(!e&&this.instance.wtSettings.settings.defaultRowHeight<t||e<t)&&(this.instance.wtViewport.oversizedRows[n]=++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(),n=0;n<this.columnHeaderCount;n++)for(var o=-1*this.rowHeaderCount;o<t;o++)this.markIfOversizedColumnHeader(o);this.wot.wtViewport.hasOversizedColumnHeadersMarked[e]=!0}},adjustColumnHeaderHeights:function(){for(var e=this.wot.getSetting("columnHeaders"),t=this.wot.wtTable.THEAD.childNodes,n=this.wot.wtViewport.oversizedColumnHeaders,o=0,i=e.length;o<i;o++)if(n[o]){if(0===t[o].childNodes.length)return;t[o].childNodes[0].style.height=n[o]+"px"}},markIfOversizedColumnHeader:function(e){for(var t,n,o,i=this.wot.wtTable.columnFilter.renderedToSource(e),r=this.columnHeaderCount,s=this.wot.wtSettings.settings.defaultRowHeight,a=this.wot.getSetting("columnHeaderHeight")||[];r;)r--,t=this.wot.wtTable.getColumnHeaderHeight(r),n=this.wot.wtTable.getColumnHeader(i,r),n&&(o=c(n),(!t&&s<o||t<o)&&(this.wot.wtViewport.oversizedColumnHeaders[r]=o),Array.isArray(a)?null!=a[r]&&(this.wot.wtViewport.oversizedColumnHeaders[r]=a[r]):isNaN(a)||(this.wot.wtViewport.oversizedColumnHeaders[r]=a),this.wot.wtViewport.oversizedColumnHeaders[r]<(a[r]||a)&&(this.wot.wtViewport.oversizedColumnHeaders[r]=a[r]||a))},renderCells:function(e,t,n){for(var o,r,s=0;s<n;s++)r=this.columnFilter.renderedToSource(s),o=0===s?t.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(r)]:o.nextSibling,"TH"==o.nodeName&&(o=i(o,t)),d(o,"hide")||(o.className=""),o.removeAttribute("style"),this.wot.wtSettings.settings.cellRenderer(e,r,o);return o},adjustColumnWidths:function(e){var t=0,n=this.wot.cloneSource?this.wot.cloneSource:this.wot,o=n.wtTable.holder;o.offsetHeight<o.scrollHeight&&(t=u()),this.wot.wtViewport.columnsRenderCalculator.refreshStretching(this.wot.wtViewport.getViewportWidth()-t);var i=this.wot.getSetting("rowHeaderWidth");if(null!=i)for(var r=0;r<this.rowHeaderCount;r++)this.COLGROUP.childNodes[r].style.width=(isNaN(i)?i[r]:i)+"px";for(var s=0;s<e;s++){var a=this.wtTable.getStretchedColumnWidth(this.columnFilter.renderedToSource(s));this.COLGROUP.childNodes[s+this.rowHeaderCount].style.width=a+"px"}},appendToTbody:function(e){this.TBODY.appendChild(e),this.wtTable.tbodyChildrenLength++},getOrCreateTrForRow:function(e,t){var n;return e>=this.wtTable.tbodyChildrenLength?(n=this.createRow(),this.appendToTbody(n)):n=0===e?this.TBODY.firstChild:t.nextSibling,n.className&&n.removeAttribute("class"),n},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,n){n.className="",n.removeAttribute("style"),this.rowHeaders[t](e,n,t)},renderRowHeaders:function(e,t){for(var n=t.firstChild,i=0;i<this.rowHeaderCount;i++)n?"TD"==n.nodeName&&(n=o(n,t)):(n=document.createElement("TH"),t.appendChild(n)),this.renderRowHeader(e,i,n),n=n.nextSibling},adjustAvailableNodes:function(){this.adjustColGroups(),this.adjustThead()},renderColumnHeaders:function(){if(this.columnHeaderCount)for(var e=this.wtTable.getRenderedColumnsCount(),t=0;t<this.columnHeaderCount;t++)for(var n=this.getTrForColumnHeaders(t),o=-1*this.rowHeaderCount;o<e;o++){var i=this.columnFilter.renderedToSource(o);this.renderColumnHeader(t,i,n.childNodes[o+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&&a(this.COLGROUP.childNodes[0],"rowHeader")},adjustThead:function(){var e=this.wtTable.getRenderedColumnsCount(),t=this.THEAD.firstChild;if(this.columnHeaders.length){for(var n=0,o=this.columnHeaders.length;n<o;n++){for(t=this.THEAD.childNodes[n],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 i=this.THEAD.childNodes.length;if(i>this.columnHeaders.length)for(var r=this.columnHeaders.length;r<i;r++)this.THEAD.removeChild(this.THEAD.lastChild)}else t&&l(t)},getTrForColumnHeaders:function(e){return this.THEAD.childNodes[e]},renderColumnHeader:function(e,t,n){return n.className="",n.removeAttribute("style"),this.columnHeaders[e](t,n,e)},adjustColumns:function(e,t){for(var n=e.childNodes.length;n<t;){var o=document.createElement("TD");e.appendChild(o),n++}for(;n>t;)e.removeChild(e.lastChild),n--},removeRedundantColumns:function(e){for(;this.wtTable.tbodyChildrenLength>e;)this.TBODY.removeChild(this.TBODY.lastChild),this.wtTable.tbodyChildrenLength--}},{}),window.WalkontableTableRenderer=p},{"helpers/dom/element":47}],23:[function(e,t,n){"use strict";Object.defineProperties(n,{WalkontableViewport:{get:function(){return v}},__esModule:{value:!0}});var o,i,r,s,a,l=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,u=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),d=u.getScrollbarWidth,c=(u.getScrollTop,u.getStyle),h=u.offset,f=u.outerHeight,p=u.outerWidth,m=(r=e("eventManager"),r&&r.__esModule&&r||{default:r}).EventManager,g=(s=e("calculator/viewportColumns"),s&&s.__esModule&&s||{default:s}).WalkontableViewportColumnsCalculator,w=(a=e("calculator/viewportRows"),a&&a.__esModule&&a||{default:a}).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 m(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,n=0;return t===window?n=document.documentElement.clientHeight:(e=f(t),n=e>0&&t.clientHeight>0?t.clientHeight:1/0),n},getWorkspaceWidth:function(){var e,t,n=this.wot.getSetting("totalColumns"),o=this.instance.wtOverlays.leftOverlay.trimmingContainer,i=this.wot.getSetting("stretchH"),r=document.documentElement.offsetWidth,s=this.wot.getSetting("preventOverflow");return s?p(this.instance.wtTable.wtRootElement):(e=l.freezeOverlays?Math.min(r-this.getWorkspaceOffset().left,r):Math.min(this.getContainerFillWidth(),r-this.getWorkspaceOffset().left,r),o===window&&n>0&&this.sumColumnWidths(0,n-1)>e?document.documentElement.clientWidth:o!==window&&(t=c(this.instance.wtOverlays.leftOverlay.trimmingContainer,"overflow"),"scroll"==t||"hidden"==t||"auto"==t)?Math.max(e,o.clientWidth):"none"!==i&&i?e:Math.max(e,p(this.instance.wtTable.TABLE)))},hasVerticalScroll:function(){return this.getWorkspaceActualHeight()>this.getWorkspaceHeight()},hasHorizontalScroll:function(){return this.getWorkspaceActualWidth()>this.getWorkspaceWidth()},sumColumnWidths:function(e,t){for(var n=0;e<t;)n+=this.wot.wtTable.getColumnWidth(e),e++;return n},getContainerFillWidth:function(){if(this.containerWidth)return this.containerWidth;var e,t,n=this.instance.wtTable.holder;return t=document.createElement("div"),t.style.width="100%",t.style.height="1px",n.appendChild(t),e=t.offsetWidth,this.containerWidth=e,n.removeChild(t),e},getWorkspaceOffset:function(){return h(this.wot.wtTable.TABLE)},getWorkspaceActualHeight:function(){return f(this.wot.wtTable.TABLE)},getWorkspaceActualWidth:function(){return p(this.wot.wtTable.TABLE)||p(this.wot.wtTable.TBODY)||p(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 n=0,o=t.length;n<o;n++)this.rowHeaderWidth+=e[n]||e}if(this.wot.cloneSource)return this.wot.cloneSource.wtViewport.getRowHeaderWidth();if(isNaN(this.rowHeaderWidth))if(t.length){var i=this.instance.wtTable.TABLE.querySelector("TH");this.rowHeaderWidth=0;for(var r=0,s=t.length;r<s;r++)i?(this.rowHeaderWidth+=p(i),i=i.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,n,o,i,r,s,a=void 0!==arguments[0]&&arguments[0],l=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(),t<0&&(t=0),n=this.wot.getSetting("fixedRowsTop"),i=this.wot.getSetting("fixedRowsBottom"),s=this.wot.getSetting("totalRows"),n&&(r=this.wot.wtOverlays.topOverlay.sumCellSizes(0,n),t+=r,e-=r),i&&this.wot.wtOverlays.bottomOverlay.clone&&(r=this.wot.wtOverlays.bottomOverlay.sumCellSizes(s-i,s),e-=r),o=this.wot.wtTable.holder.clientHeight===this.wot.wtTable.holder.offsetHeight?0:d(),new w(e,t,this.wot.getSetting("totalRows"),function(e){return l.wot.wtTable.getRowHeight(e)},a?null:this.wot.wtSettings.settings.viewportRowCalculatorOverride,a,o)},createColumnsCalculator:function(){var e,t,n=void 0!==arguments[0]&&arguments[0],o=this,i=this.getViewportWidth();if(this.columnHeaderHeight=NaN,e=this.wot.wtOverlays.leftOverlay.getScrollPosition()-this.wot.wtOverlays.leftOverlay.getTableParentOffset(),e<0&&(e=0),t=this.wot.getSetting("fixedColumnsLeft")){var r=this.wot.wtOverlays.leftOverlay.sumCellSizes(0,t);e+=r,i-=r}return this.wot.wtTable.holder.clientWidth!==this.wot.wtTable.holder.offsetWidth&&(i-=d()),new g(i,e,this.wot.getSetting("totalColumns"),function(e){return o.wot.wtTable.getColumnWidth(e)},n?null:this.wot.wtSettings.settings.viewportColumnCalculatorOverride,n,this.wot.getSetting("stretchH"),function(e,t){return o.wot.getSetting("onBeforeStretchingColumnWidth",e,t)})},createRenderCalculators:function(){var e=void 0!==arguments[0]&&arguments[0];if(e){var t=this.createRowsCalculator(!0),n=this.createColumnsCalculator(!0);this.areAllProposedVisibleRowsAlreadyRendered(t)&&this.areAllProposedVisibleColumnsAlreadyRendered(n)||(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)&&!(e.endRow>this.rowsRenderCalculator.endRow||e.endRow===this.rowsRenderCalculator.endRow&&e.endRow<this.wot.getSetting("totalRows")-1))},areAllProposedVisibleColumnsAlreadyRendered:function(e){return!!this.columnsVisibleCalculator&&(!(e.startColumn<this.columnsRenderCalculator.startColumn||e.startColumn===this.columnsRenderCalculator.startColumn&&e.startColumn>0)&&!(e.endColumn>this.columnsRenderCalculator.endColumn||e.endColumn===this.columnsRenderCalculator.endColumn&&e.endColumn<this.wot.getSetting("totalColumns")-1))}},{}),window.WalkontableViewport=v},{browser:24,"calculator/viewportColumns":4,"calculator/viewportRows":5,eventManager:42,"helpers/dom/element":47}],24:[function(e,t,n){"use strict";function o(e,t){var n=new o.Core(e,t||{});return n.init(),n}var i,r,s,a,l,u,d,c,h,f,p,m,g,w,v,b,C,y,A,_,E,R,S,M;t.exports=o,o.utils={},i=e("shims/runtime"),i&&i.__esModule&&i||{default:i},r=e("es6collections"),r&&r.__esModule&&r||{default:r};var k=(s=e("pluginHooks"),s&&s.__esModule&&s||{default:s}).Hooks,T=(a=e("numbro"),a&&a.__esModule&&a||{default:a}).default,x=(l=e("moment"),l&&l.__esModule&&l||{default:l}).default;"object"==typeof window&&("undefined"==typeof window.numbro&&(window.numbro=T),"undefined"==typeof window.moment&&(window.moment=x)),o.hooks||(o.hooks=new k),o.utils.Hooks=k,u=e("core"),u&&u.__esModule&&u||{default:u},d=e("renderers/_cellDecorator"),d&&d.__esModule&&d||{default:d},c=e("cellTypes"),c&&c.__esModule&&c||{default:c},h=e("plugins/jqueryHandsontable"),h&&h.__esModule&&h||{default:h};var O=(f=e("helpers/array"),f&&f.__esModule&&f||{default:f}),B=(p=e("helpers/browser"),p&&p.__esModule&&p||{default:p}),D=(m=e("helpers/data"),m&&m.__esModule&&m||{default:m}),H=(g=e("helpers/date"),g&&g.__esModule&&g||{default:g}),P=(w=e("helpers/feature"),w&&w.__esModule&&w||{default:w}),N=(v=e("helpers/function"),v&&v.__esModule&&v||{default:v}),L=(b=e("helpers/mixed"),b&&b.__esModule&&b||{default:b}),W=(C=e("helpers/number"),C&&C.__esModule&&C||{default:C}),I=(y=e("helpers/object"),y&&y.__esModule&&y||{default:y}),F=(A=e("helpers/setting"),A&&A.__esModule&&A||{default:A}),j=(_=e("helpers/string"),_&&_.__esModule&&_||{default:_}),V=(E=e("helpers/unicode"),E&&E.__esModule&&E||{default:E}),z=(R=e("helpers/dom/element"),R&&R.__esModule&&R||{default:R}),Y=(S=e("helpers/dom/event"),S&&S.__esModule&&S||{default:S}),U=[O,B,D,H,P,N,L,W,I,F,j,V],G=[z,Y];o.buildDate="Thu Sep 01 2016 15:17:33 GMT+0200 (CEST)",o.packageName="handsontable",o.version="0.27.0";var $="@@baseVersion";/^@@/.test($)||(o.baseVersion=$),o.plugins={};var K=(M=e("plugins"),M&&M.__esModule&&M||{default:M}).registerPlugin;o.plugins.registerPlugin=K,o.helper={},o.dom={},o.Dom=o.dom,O.arrayEach(U,function(e){O.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(o.helper[t]=e[t])})}),O.arrayEach(G,function(e){O.arrayEach(Object.getOwnPropertyNames(e),function(t){"_"!==t.charAt(0)&&(o.dom[t]=e[t])})})},{cellTypes:25,core:26,es6collections:"es6collections","helpers/array":43,"helpers/browser":44,"helpers/data":45,"helpers/date":46,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/feature":49,"helpers/function":50,"helpers/mixed":51,"helpers/number":52,"helpers/object":53,"helpers/setting":54,"helpers/string":55,"helpers/unicode":56,moment:"moment",numbro:"numbro",pluginHooks:60,plugins:61,"plugins/jqueryHandsontable":2,"renderers/_cellDecorator":111,"shims/runtime":118}],25:[function(e,t,n){"use strict";var o,i,r,s,a,l,u,d,c,h,f,p,m,g,w,v,b,C,y,A,_,E,R,S,M=(o=e("helpers/browser"),o&&o.__esModule&&o||{default:o}).isMobileBrowser,k=(i=e("editors"),i&&i.__esModule&&i||{default:i}).getEditorConstructor,T=(r=e("renderers"),r&&r.__esModule&&r||{default:r}).getRenderer,x=((s=e("editors/autocompleteEditor"),s&&s.__esModule&&s||{default:s}).AutocompleteEditor,(a=e("editors/checkboxEditor"),a&&a.__esModule&&a||{default:a}).CheckboxEditor,(l=e("editors/dateEditor"),l&&l.__esModule&&l||{default:l}).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,(p=e("editors/selectEditor"),p&&p.__esModule&&p||{default:p}).SelectEditor,(m=e("editors/textEditor"),m&&m.__esModule&&m||{default:m}).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,(A=e("validators/autocompleteValidator"),A&&A.__esModule&&A||{default:A}).AutocompleteValidator,(_=e("validators/dateValidator"),_&&_.__esModule&&_||{default:_}).DateValidator,(E=e("validators/timeValidator"),E&&E.__esModule&&E||{default:E}).TimeValidator,(R=e("validators/numericValidator"),R&&R.__esModule&&R||{default:R}).NumericValidator,(S=e("browser"),S&&S.__esModule&&S||{default:S}).default);x.AutocompleteCell={editor:k("autocomplete"),renderer:T("autocomplete"),validator:x.AutocompleteValidator},x.CheckboxCell={editor:k("checkbox"),renderer:T("checkbox")},x.TextCell={editor:k(M()?"mobile":"text"),renderer:T("text")},x.NumericCell={editor:k("numeric"),renderer:T("numeric"),validator:x.NumericValidator,dataType:"number"},x.DateCell={editor:k("date"),validator:x.DateValidator,renderer:T("autocomplete")},x.TimeCell={editor:k("text"),validator:x.TimeValidator,renderer:T("text")},x.HandsontableCell={editor:k("handsontable"),renderer:T("autocomplete")},x.PasswordCell={editor:k("password"),renderer:T("password"),copyable:!1},x.DropdownCell={editor:k("dropdown"),renderer:T("autocomplete"),validator:x.AutocompleteValidator},x.cellTypes={text:x.TextCell,date:x.DateCell,time:x.TimeCell,numeric:x.NumericCell,checkbox:x.CheckboxCell,autocomplete:x.AutocompleteCell,handsontable:x.HandsontableCell,password:x.PasswordCell,dropdown:x.DropdownCell},x.cellLookup={validator:{numeric:x.NumericValidator,autocomplete:x.AutocompleteValidator}}},{browser:24,editors:30,"editors/autocompleteEditor":32,"editors/checkboxEditor":33,"editors/dateEditor":34,"editors/dropdownEditor":35,"editors/handsontableEditor":36,"editors/mobileTextEditor":37,"editors/numericEditor":38,"editors/passwordEditor":39,"editors/selectEditor":40,"editors/textEditor":41,"helpers/browser":44,renderers:110,"renderers/autocompleteRenderer":112,"renderers/checkboxRenderer":113,"renderers/htmlRenderer":114,"renderers/numericRenderer":115,"renderers/passwordRenderer":116,"renderers/textRenderer":117,"validators/autocompleteValidator":123,"validators/dateValidator":124,"validators/numericValidator":125,"validators/timeValidator":126}],26:[function(e,t,n){"use strict";var o,i,r,s,a,l,u,d,c,h,f,p,m,g,w,v,b,C,y,A,_,E,R=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,S=(i=e("numbro"),i&&i.__esModule&&i||{default:i}).default,M=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),k=M.addClass,T=M.empty,x=M.isChildOfWebComponentTable,O=M.removeClass,B=(s=e("helpers/setting"),s&&s.__esModule&&s||{default:s}).columnFactory,D=(a=e("helpers/function"),a&&a.__esModule&&a||{default:a}).isFunction,H=(l=e("helpers/mixed"),l&&l.__esModule&&l||{default:l}),P=H.isDefined,N=H.isUndefined,L=(u=e("helpers/browser"),u&&u.__esModule&&u||{default:u}).isMobileBrowser,W=(d=e("dataMap"),d&&d.__esModule&&d||{default:d}).DataMap,I=(c=e("editorManager"),c&&c.__esModule&&c||{default:c}).EditorManager,F=(h=e("eventManager"),h&&h.__esModule&&h||{default:h}).eventManager,j=(f=e("helpers/object"),f&&f.__esModule&&f||{default:f}),V=j.deepClone,z=j.duckSchema,Y=j.extend,U=j.isObject,G=j.isObjectEquals,$=j.deepObjectSize,K=(p=e("helpers/array"),p&&p.__esModule&&p||{default:p}),X=K.arrayFlatten,q=K.arrayMap,Z=(m=e("plugins"),m&&m.__esModule&&m||{default:m}).getPlugin,Q=(g=e("renderers"),g&&g.__esModule&&g||{default:g}).getRenderer,J=(w=e("helpers/string"),w&&w.__esModule&&w||{default:w}).randomString,ee=(v=e("helpers/number"),v&&v.__esModule&&v||{default:v}).rangeEach,te=(b=e("tableView"),b&&b.__esModule&&b||{default:b}).TableView,ne=(C=e("dataSource"),C&&C.__esModule&&C||{default:C}).DataSource,oe=(y=e("helpers/data"),y&&y.__esModule&&y||{default:y}),ie=oe.translateRowsToColumns,re=oe.cellMethodLookupFactory,se=oe.spreadsheetColumnLabel,ae=(A=e("3rdparty/walkontable/src/cell/coords"),A&&A.__esModule&&A||{default:A}).WalkontableCellCoords,le=(_=e("3rdparty/walkontable/src/cell/range"),_&&_.__esModule&&_||{default:_}).WalkontableCellRange,ue=(E=e("3rdparty/walkontable/src/calculator/viewportColumns"),E&&E.__esModule&&E||{default:E}).WalkontableViewportColumnsCalculator;R.activeGuid=null,R.Core=function(e,t){function n(){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 o(e,t,o){function i(){var n;e.length&&(n=R.hooks.run(g,"beforeChange",e,t),D(n)?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)."):n===!1&&e.splice(0,e.length)),o()}var r=new n;r.onQueueEmpty=i;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var a=e[s][0],l=c.propToCol(e[s][1]),u=g.getCellMeta(a,l);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;N(u.language)?S.culture("en-US"):e[s][3].indexOf(".")===d-3&&e[s][3].indexOf(",")===-1?S.culture("en-US"):S.culture(u.language);var h=S.cultureData(S.culture()).delimiters;new RegExp("^\\"+h.decimal+"[0-9]+$").test(e[s][3]+"")&&(e[s][3]="0"+e[s][3]),!S.validate(e[s][3])&&isNaN(parseFloat(e[s][3]))||(e[s][3]=S().unformat(e[s][3]))}g.getCellValidator(u)&&(r.addValidatorToQueue(),g.validateCell(e[s][3],u,function(t,n){return function(o){if("boolean"!=typeof o)throw new Error("Validation error: result is not boolean");o===!1&&n.allowInvalid===!1&&(e.splice(t,1),n.valid=!0,--t),r.removeValidatorFormQueue()}}(s,u),t))}r.checkIfQueueIsEmpty()}function i(e,t){var n=e.length-1;if(!(n<0)){for(;0<=n;n--)if(null!==e[n]){if(null!=e[n][2]||null!=e[n][3]){if(d.settings.allowInsertRow)for(;e[n][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[n][1])>g.countCols()-1;)c.createCol();c.set(e[n][0],e[n][1],e[n][3])}}else e.splice(n,1);g.forceFullRender=!0,f.adjustRowsAndCols(),R.hooks.run(g,"beforeChangeRender",e,t),p.refreshBorders(null,!0),g.view.wt.wtOverlays.adjustElementsSize(),R.hooks.run(g,"afterChange",e,t||"edit")}}function r(e,t,n){return"object"==typeof e?e:[[e,t,n]]}function s(e){if(e.hasOwnProperty("type")){var t,n={};if("object"==typeof e.type)t=e.type;else if("string"==typeof e.type&&(t=R.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 o in t)t.hasOwnProperty(o)&&!e.hasOwnProperty(o)&&(n[o]=t[o]);return n}}function a(e){return R.hooks.run(g,"modifyRow",e)}function l(e){return R.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,p,m,g=this,w=function(){},v=F(g);Y(w.prototype,de.prototype),Y(w.prototype,t),Y(w.prototype,s(t)),this.rootElement=e,this.isHotTableEnv=x(this.rootElement),R.eventManager.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+J(),h=new ne(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,n,o,i){function r(e,t,n,o){var i=function(){var e;return"array"===o?e=[]:"object"===o&&(e={}),e},r=q(new Array(n),function(){return i()});r.unshift(t,0),e.splice.apply(e,r)}var s;switch(n=n||1,e){case"insert_row":if(g.getSettings().maxRows===g.countSourceRows())return;s=c.createRow(t,n),r(d.cellSettings,t,n,"array"),s&&(p.isSelected()&&d.selRange.from.row>=t?(d.selRange.from.row=d.selRange.from.row+s,p.transformEnd(s,0)):p.refreshBorders());break;case"insert_col":s=c.createCol(t,n);for(var a=0,u=g.countSourceRows();a<u;a++)d.cellSettings[a]&&r(d.cellSettings[a],t,n);if(s){if(Array.isArray(g.getSettings().colHeaders)){var h=[t,0];h.length+=s,Array.prototype.splice.apply(g.getSettings().colHeaders,h)}p.isSelected()&&d.selRange.from.col>=t?(d.selRange.from.col=d.selRange.from.col+s,p.transformEnd(0,s)):p.refreshBorders()}break;case"remove_row":c.removeRow(t,n),d.cellSettings.splice(t,n);var m=g.countRows(),w=g.getSettings().fixedRowsTop;w>=t+1&&(g.getSettings().fixedRowsTop-=Math.min(n,w-t));var v=g.getSettings().fixedRowsBottom;v&&t>=m-v&&(g.getSettings().fixedRowsBottom-=Math.min(n,v)),f.adjustRowsAndCols(),p.refreshBorders();break;case"remove_col":var b=l(t);c.removeCol(t,n);for(var C=0,y=g.countSourceRows();C<y;C++)d.cellSettings[C]&&d.cellSettings[C].splice(b,n);var A=g.getSettings().fixedColumnsLeft;A>=t+1&&(g.getSettings().fixedColumnsLeft-=Math.min(n,A-t)),Array.isArray(g.getSettings().colHeaders)&&("undefined"==typeof b&&(b=-1),g.getSettings().colHeaders.splice(b,n)),f.adjustRowsAndCols(),p.refreshBorders();break;default:throw new Error('There is no such action "'+e+'"')}i||f.adjustRowsAndCols()},adjustRowsAndCols:function(){if(d.settings.minRows){var e=g.countRows();if(e<d.settings.minRows)for(var t=0,n=d.settings.minRows;t<n-e;t++)c.createRow(g.countRows(),1,!0)}if(d.settings.minSpareRows){var o=g.countEmptyRows(!0);if(o<d.settings.minSpareRows)for(;o<d.settings.minSpareRows&&g.countRows()<d.settings.maxRows;o++)c.createRow(g.countRows(),1,!0);
  }var i;if((d.settings.minCols||d.settings.minSpareCols)&&(i=g.countEmptyCols(!0)),d.settings.minCols&&!d.settings.columns&&g.countCols()<d.settings.minCols)for(;g.countCols()<d.settings.minCols;i++)c.createCol(g.countCols(),1,!0);if(d.settings.minSpareCols&&!d.settings.columns&&"array"===g.dataType&&i<d.settings.minSpareCols)for(;i<d.settings.minSpareCols&&g.countCols()<d.settings.maxCols;i++)c.createCol(g.countCols(),1,!0);var r=g.countRows(),s=g.countCols();if(0!==r&&0!==s||p.deselect(),p.isSelected()){var a=!1,l=d.selRange.from.row,u=d.selRange.from.col,h=d.selRange.to.row,f=d.selRange.to.col;l>r-1?(l=r-1,a=!0,h>l&&(h=l)):h>r-1&&(h=r-1,a=!0,l>h&&(l=h)),u>s-1?(u=s-1,a=!0,f>u&&(f=u)):f>s-1&&(f=s-1,a=!0,u>f&&(u=f)),a&&g.selectCell(l,u,h,f)}g.view&&g.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,o,i,r,s){var a,l,u,c,h=[],f={};if(l=t.length,0===l)return!1;var p,m,w,v;({row:null===n?null:n.row,col:null===n?null:n.col});switch(i){case"shift_down":for(p=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,t=ie(t),u=0,c=t.length,w=Math.max(c,p);u<w;u++)if(u<c){for(a=0,l=t[u].length;a<m-l;a++)t[u].push(t[u][a%l]);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(p=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,a=0,l=t.length,v=Math.max(l,m);a<v;a++)if(a<l){for(u=0,c=t[a].length;u<p-c;u++)t[a].push(t[a][u%c]);t[a].unshift(e.row+a,e.col,0),g.spliceRow.apply(g,t[a])}else t[a%l][0]=e.row+a,g.spliceRow.apply(g,t[a%l]);break;case"overwrite":default:f.row=e.row,f.col=e.col;var b,C={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},y=0,A=0,_=!0,E=function(e){var n=void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},R=t.length,S=n?n.row-e.row+1:0;for(l=n?S:Math.max(R,S),a=0;a<l&&!(n&&f.row>n.row&&S>R||!d.settings.allowInsertRow&&f.row>g.countRows()-1||f.row>=d.settings.maxRows);a++){var M=a-y,k=E(M).length,T=n?n.col-e.col+1:0;if(c=n?T:Math.max(k,T),f.col=e.col,b=g.getCellMeta(f.row,f.col),"paste"!==o&&"autofill"!==o||!b.skipRowOnPaste){for(A=0,u=0;u<c&&!(n&&f.col>n.col&&T>k||!d.settings.allowInsertColumn&&f.col>g.countCols()-1||f.col>=d.settings.maxCols);u++)if(b=g.getCellMeta(f.row,f.col),"paste"!==o&&"autofill"!==o||!b.skipColumnOnPaste)if(b.readOnly)f.col++;else{var x=u-A,O=E(M,x),B=g.getDataAtCell(f.row,f.col),D={row:M,col:x};if("autofill"===o){var H=g.runHooks("beforeAutofillInsidePopulate",D,r,t,s,{},C);H&&(O=N(H.value)?O:H.value)}if(null!==O&&"object"==typeof O)if(null===B||"object"!=typeof B)_=!1;else{var P=z(B[0]||B),L=z(O[0]||O);G(P,L)?O=V(O):_=!1}else null!==B&&"object"==typeof B&&(_=!1);_&&h.push([f.row,f.col,O]),_=!0,f.col++}else A++,f.col++,c++;f.row++}else y++,f.row++,l++}g.setDataAtCell(h,null,null,o||"populateFromArray")}}},this.selection=p={inProgress:!1,selectedHeader:{cols:!1,rows:!1},setSelectedHeaders:function(){var e=void 0!==arguments[0]&&arguments[0],t=void 0!==arguments[1]&&arguments[1],n=void 0!==arguments[2]&&arguments[2];g.selection.selectedHeader.rows=e,g.selection.selectedHeader.cols=t,g.selection.selectedHeader.corner=n},begin:function(){g.selection.inProgress=!0},finish:function(){var e=g.getSelected();R.hooks.run(g,"afterSelectionEnd",e[0],e[1],e[2],e[3]),R.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){R.hooks.run(g,"beforeSetRangeStart",e),d.selRange=new le(e,e,e),p.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){R.hooks.run(g,"beforeSetRangeStartOnly",e),d.selRange=new le(e,e,e)},setRangeEnd:function(e,t,n){if(null!==d.selRange){var o,i=!1,r=!0,s=g.view.wt.wtTable.getFirstVisibleRow(),a=g.view.wt.wtTable.getFirstVisibleColumn(),l={row:null,col:null};R.hooks.run(g,"beforeSetRangeEnd",e),g.selection.begin(),l.row=e.row<0?s:e.row,l.col=e.col<0?a:e.col,d.selRange.to=new ae(l.row,l.col),d.settings.multiSelect||(d.selRange.from=e),g.view.wt.selections.current.clear(),o=g.getCellMeta(d.selRange.highlight.row,d.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(o===!1||Array.isArray(o)&&o.indexOf("current")===-1)&&g.view.wt.selections.current.add(d.selRange.highlight),g.view.wt.selections.area.clear(),(o===!1||Array.isArray(o)&&o.indexOf("area")===-1)&&p.isMultiple()&&(g.view.wt.selections.area.add(d.selRange.from),g.view.wt.selections.area.add(d.selRange.to)),(d.settings.currentHeaderClassName||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)),R.hooks.run(g,"afterSelection",d.selRange.from.row,d.selRange.from.col,d.selRange.to.row,d.selRange.to.col),R.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)&&(i=!0),(e.row<0||e.col<0)&&(r=!1),t!==!1&&!i&&r&&(d.selRange.from&&!p.isMultiple()?g.view.scrollViewport(d.selRange.from):g.view.scrollViewport(e)),p.refreshBorders(null,n)}},refreshBorders:function(e,t){t||m.destroyEditor(e),g.view.render(),p.isSelected()&&!t&&m.prepareEditor()},isMultiple:function(){var e=!(d.selRange.to.col===d.selRange.from.col&&d.selRange.to.row===d.selRange.from.row),t=R.hooks.run(g,"afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,n,o){var i,r,s,a,l=new ae(e,t),u=0,c=0;g.runHooks("modifyTransformStart",l),i=g.countRows(),r=g.countCols(),a=g.getSettings().fixedRowsBottom,d.selRange.highlight.row+e>i-1?n&&d.settings.minSpareRows>0&&!(a&&d.selRange.highlight.row>=i-a-1)?(g.alter("insert_row",i),i=g.countRows()):d.settings.autoWrapCol&&(l.row=1-i,l.col=d.selRange.highlight.col+l.col==r-1?1-r:1):d.settings.autoWrapCol&&d.selRange.highlight.row+l.row<0&&d.selRange.highlight.col+l.col>=0&&(l.row=i-1,l.col=d.selRange.highlight.col+l.col==0?r-1:-1),d.selRange.highlight.col+l.col>r-1?n&&d.settings.minSpareCols>0?(g.alter("insert_col",r),r=g.countCols()):d.settings.autoWrapRow&&(l.row=d.selRange.highlight.row+l.row==i-1?1-i:1,l.col=1-r):d.settings.autoWrapRow&&d.selRange.highlight.col+l.col<0&&d.selRange.highlight.row+l.row>=0&&(l.row=d.selRange.highlight.row+l.row==0?i-1:-1,l.col=r-1),s=new ae(d.selRange.highlight.row+l.row,d.selRange.highlight.col+l.col),s.row<0?(u=-1,s.row=0):s.row>0&&s.row>=i&&(u=1,s.row=i-1),s.col<0?(c=-1,s.col=0):s.col>0&&s.col>=r&&(c=1,s.col=r-1),g.runHooks("afterModifyTransformStart",s,u,c),p.setRangeStart(s,o)},transformEnd:function(e,t){var n,o,i,r=new ae(e,t),s=0,a=0;g.runHooks("modifyTransformEnd",r),n=g.countRows(),o=g.countCols(),i=new ae(d.selRange.to.row+r.row,d.selRange.to.col+r.col),i.row<0?(s=-1,i.row=0):i.row>0&&i.row>=n&&(s=1,i.row=n-1),i.col<0?(a=-1,i.col=0):i.col>0&&i.col>=o&&(a=1,i.col=o-1),g.runHooks("afterModifyTransformEnd",i,s,a),p.setRangeEnd(i,!0)},isSelected:function(){return null!==d.selRange},inInSelection:function(e){return!!p.isSelected()&&d.selRange.includes(e)},deselect:function(){p.isSelected()&&(g.selection.inProgress=!1,d.selRange=null,g.view.wt.selections.current.clear(),g.view.wt.selections.area.clear(),(d.settings.currentHeaderClassName||d.settings.currentRowClassName||d.settings.currentColClassName)&&g.view.wt.selections.highlight.clear(),m.destroyEditor(),p.refreshBorders(),O(g.rootElement,["ht__selection--rows","ht__selection--columns"]),R.hooks.run(g,"afterDeselect"))},selectAll:function(){d.settings.multiSelect&&(p.setRangeStart(new ae(0,0)),p.setRangeEnd(new ae(g.countRows()-1,g.countCols()-1),!1))},empty:function(){if(p.isSelected()){var e,t,n=d.selRange.getTopLeftCorner(),o=d.selRange.getBottomRightCorner(),i=[];for(e=n.row;e<=o.row;e++)for(t=n.col;t<=o.col;t++)g.getCellMeta(e,t).readOnly||i.push([e,t,""]);g.setDataAtCell(i)}}},this.init=function(){h.setData(d.settings.data),R.hooks.run(g,"beforeInit"),L()&&k(g.rootElement,"mobile"),this.updateSettings(d.settings,!0),this.view=new te(this),m=new I(g,d,p,c),this.forceFullRender=!0,R.hooks.run(g,"init"),this.view.render(),"object"==typeof d.firstRun&&(R.hooks.run(g,"afterChange",d.firstRun[0],d.firstRun[1]),d.firstRun=!1),R.hooks.run(g,"afterInit")},this.validateCell=function(e,t,n,o){function i(e){var o=t.visualCol,i=t.visualRow,r=g.getCell(i,o,!0);r&&"TH"!=r.nodeName&&g.view.wt.wtSettings.settings.cellRenderer(i,o,r),n(e)}var r=g.getCellValidator(t);"[object RegExp]"===Object.prototype.toString.call(r)&&(r=function(e){return function(t,n){n(e.test(t))}}(r)),D(r)?(e=R.hooks.run(g,"beforeValidate",e,t.visualRow,t.prop,o),g._registerTimeout(setTimeout(function(){r.call(t,e,function(n){n=R.hooks.run(g,"afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,i(n),R.hooks.run(g,"postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):g._registerTimeout(setTimeout(function(){t.valid=!0,i(t.valid)},0))},this.setDataAtCell=function(e,t,n,s){var a,l,u,d=r(e,t,n),h=[];for(a=0,l=d.length;a<l;a++){if("object"!=typeof d[a])throw new Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof d[a][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[a][1]),h.push([d[a][0],u,c.get(d[a][0],u),d[a][2]])}s||"object"!=typeof e||(s=t),o(h,s,function(){i(h,s)})},this.setDataAtRowProp=function(e,t,n,s){var a,l,u=r(e,t,n),d=[];for(a=0,l=u.length;a<l;a++)d.push([u[a][0],u[a][1],c.get(u[a][0],u[a][1]),u[a][2]]);s||"object"!=typeof e||(s=t),o(d,s,function(){i(d,s)})},this.listen=function(){R.activeGuid=g.guid},this.unlisten=function(){R.activeGuid=null},this.isListening=function(){return R.activeGuid===g.guid},this.destroyEditor=function(e){p.refreshBorders(e)},this.populateFromArray=function(e,t,n,o,i,r,s,a,l){var u;if("object"!=typeof n||"object"!=typeof n[0])throw new Error("populateFromArray parameter `input` must be an array of arrays");return u="number"==typeof o?new ae(o,i):null,f.populateFromArray(new ae(e,t),n,u,r,s,a,l)},this.spliceCol=function(e,t,n){return c.spliceCol.apply(c,arguments)},this.spliceRow=function(e,t,n){return c.spliceRow.apply(c,arguments)},this.getSelected=function(){if(p.isSelected())return[d.selRange.from.row,d.selRange.from.col,d.selRange.to.row,d.selRange.to.col]},this.getSelectedRange=function(){if(p.isSelected())return d.selRange},this.render=function(){g.view&&(g.renderCall=!0,g.forceFullRender=!0,p.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 n,o=0,i=d.settings.startRows;o<i;o++){n=[];for(var r=0,s=d.settings.startCols;r<s;r++)n.push(null);e.push(n)}}d.isPopulated=!1,w.prototype.data=e,Array.isArray(d.settings.dataSchema)||Array.isArray(e[0])?g.dataType="array":D(d.settings.dataSchema)?g.dataType="function":g.dataType="object",c&&c.destroy(),c=new W(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(),R.hooks.run(g,"afterLoadData",d.firstRun),d.firstRun?d.firstRun=[null,"loadData"]:(R.hooks.run(g,"afterChange",null,"loadData"),g.render()),d.isPopulated=!0},this.getData=function(e,t,n,o){return N(e)?c.getAll():c.getRange(new ae(e,t),new ae(n,o),c.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return c.getCopyableText(new ae(e,t),new ae(n,o))},this.getCopyableData=function(e,t){return c.getCopyable(e,c.colToProp(t))},this.getSchema=function(){return c.getSchema()},this.updateSettings=function(e,t){var n,o,i,r=!1;if(P(e.rows))throw new Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if(P(e.cols))throw new Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(n in e)"data"!==n&&(R.hooks.getRegistered().indexOf(n)>-1?(D(e[n])||Array.isArray(e[n]))&&g.addHook(n,e[n]):!t&&e.hasOwnProperty(n)&&(w.prototype[n]=e[n]));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(),i=g.countCols(),e.columns&&D(e.columns)&&(i=g.countSourceCols(),r=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(d.cellSettings.length=0),i>0){var a,l;for(n=0,o=0;n<i;n++)r&&!e.columns(n)||(d.columnSettings[o]=B(w,d.columnsSettingConflicts),a=d.columnSettings[o].prototype,w.prototype.columns&&(l=r?w.prototype.columns(n):w.prototype.columns[o],l&&(Y(a,l),Y(a,s(l)))),o++)}if(P(e.cell))for(var u in e.cell)if(e.cell.hasOwnProperty(u)){var h=e.cell[u];g.setCellMetaObject(h.row,h.col,h)}R.hooks.run(g,"afterCellMetaReset"),P(e.className)&&(w.prototype.className&&O(g.rootElement,w.prototype.className),e.className&&k(g.rootElement,e.className));var m=g.rootElement.style.height;""!==m&&(m=parseInt(g.rootElement.style.height,10));var v=e.height;if(D(v)&&(v=v()),t){var b=g.rootElement.getAttribute("style");b&&g.rootElement.setAttribute("data-initialstyle",g.rootElement.getAttribute("style"))}if(null===v){var C=g.rootElement.getAttribute("data-initialstyle");C&&(C.indexOf("height")>-1||C.indexOf("overflow")>-1)?g.rootElement.setAttribute("style",C):(g.rootElement.style.height="",g.rootElement.style.overflow="")}else void 0!==v&&(g.rootElement.style.height=v+"px",g.rootElement.style.overflow="hidden");if("undefined"!=typeof e.width){var y=e.width;D(y)&&(y=y()),g.rootElement.style.width=y+"px"}t||(c.clearLengthCache(),R.hooks.run(g,"afterUpdateSettings")),f.adjustRowsAndCols(),g.view&&!d.firstRun&&(g.forceFullRender=!0,p.refreshBorders(null,!0)),t||!g.view||""!==m&&""!==v&&void 0!==v||m===v||g.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=g.getSelected();if(w.prototype.getValue){if(D(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(){p.selectAll(),p.empty()},this.alter=function(e,t,n,o,i){f.alter(e,t,n,o,i)},this.getCell=function(e,t,n){return g.view.getCellAtCoords(new ae(e,t),n)},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 ae(0,e),new ae(d.settings.data.length-1,e),c.DESTINATION_RENDERER))},this.getDataAtProp=function(e){var t,n=[];return t=c.getRange(new ae(0,c.propToCol(e)),new ae(d.settings.data.length-1,c.propToCol(e)),c.DESTINATION_RENDERER),n.concat.apply(n,t)},this.getSourceData=function(e,t,n,o){var i;return i=void 0===e?h.getData():h.getByRange(new ae(e,t),new ae(n,o))},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 ae(e,0),new ae(e,this.countCols()-1),c.DESTINATION_RENDERER);return t[0]},this.getDataType=function(e,t,n,o){var i=this,r=null,s=null;void 0===e&&(e=0,n=this.countRows(),t=0,o=this.countCols()),void 0===n&&(n=e),void 0===o&&(o=t);var a="mixed";return ee(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return ee(Math.min(t,o),Math.max(t,o),function(t){var o=i.getCellMeta(e,t);return s=o.type,r?n=r===s:r=s,n}),a=n?s:"mixed",n}),a},this.removeCellMeta=function(e,t,n){var o=g.getCellMeta(e,t);void 0!=o[n]&&delete d.cellSettings[e][t][n]},this.setCellMetaObject=function(e,t,n){if("object"==typeof n)for(var o in n)if(n.hasOwnProperty(o)){var i=n[o];this.setCellMeta(e,t,o,i)}},this.setCellMeta=function(e,t,n,o){d.cellSettings[e]||(d.cellSettings[e]=[]),d.cellSettings[e][t]||(d.cellSettings[e][t]=new d.columnSettings[t]),d.cellSettings[e][t][n]=o,R.hooks.run(g,"afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return X(d.cellSettings)},this.getCellMeta=function(e,t){var n,o=c.colToProp(t),i=e,r=t;if(e=a(e),t=l(t),d.columnSettings[t]||(d.columnSettings[t]=B(w,d.columnsSettingConflicts)),d.cellSettings[e]||(d.cellSettings[e]=[]),d.cellSettings[e][t]||(d.cellSettings[e][t]=new d.columnSettings[t]),n=d.cellSettings[e][t],n.row=e,n.col=t,n.visualRow=i,n.visualCol=r,n.prop=o,n.instance=g,R.hooks.run(g,"beforeGetCellMeta",e,t,n),Y(n,s(n)),n.cells){var u=n.cells.call(n,e,t,o);u&&(Y(n,u),Y(n,s(u)))}return R.hooks.run(g,"afterGetCellMeta",e,t,n),n},this.isColumnModificationAllowed=function(){return!("object"===g.dataType||g.getSettings().columns)};var b=re("renderer");this.getCellRenderer=function(e,t){var n=b.call(this,e,t);return Q(n)},this.getCellEditor=re("editor"),this.getCellValidator=re("validator"),this.validateCells=function(e){var t=new n;e&&(t.onQueueEmpty=e);for(var o=g.countRows()-1;o>=0;){for(var i=g.countCols()-1;i>=0;)t.addValidatorToQueue(),g.validateCell(g.getDataAtCell(o,i),g.getCellMeta(o,i),function(e){if("boolean"!=typeof e)throw new Error("Validation error: result is not boolean");e===!1&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),i--;o--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=d.settings.rowHeaders;return void 0!==e&&(e=R.hooks.run(g,"modifyRowHeader",e)),void 0===e?(t=[],ee(g.countRows()-1,function(e){t.push(g.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:D(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();e<t;e++)if(g.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=d.settings.columns&&D(d.settings.columns),n=d.settings.colHeaders;if(e=R.hooks.run(g,"modifyColHeader",e),void 0===e){for(var o=[],i=t?g.countSourceCols():g.countCols(),r=0;r<i;r++)o.push(g.getColHeader(r));n=o}else{var s=function(e){for(var t=[],n=g.countSourceCols(),o=0;o<n;o++)D(g.getSettings().columns)&&g.getSettings().columns(o)&&t.push(o);return t[e]},a=e;e=R.hooks.run(g,"modifyCol",e);var l=s(e);d.settings.columns&&D(d.settings.columns)&&d.settings.columns(l)&&d.settings.columns(l).title?n=d.settings.columns(l).title:d.settings.columns&&d.settings.columns[e]&&d.settings.columns[e].title?n=d.settings.columns[e].title:Array.isArray(d.settings.colHeaders)&&void 0!==d.settings.colHeaders[e]?n=d.settings.colHeaders[e]:D(d.settings.colHeaders)?n=d.settings.colHeaders(e):d.settings.colHeaders&&"string"!=typeof d.settings.colHeaders&&"number"!=typeof d.settings.colHeaders&&(n=se(a))}return n},this._getColWidthFromSettings=function(e){var t=g.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==d.settings.width||(n=t.colWidths),void 0!==n&&null!==n){switch(typeof n){case"object":n=n[e];break;case"function":n=n(e)}"string"==typeof n&&(n=parseInt(n,10))}return n},this.getColWidth=function(e){var t=g._getColWidthFromSettings(e);return t=R.hooks.run(g,"modifyColWidth",t,e),void 0===t&&(t=ue.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=R.hooks.run(g,"modifyRowHeight",t,e)},this.countSourceRows=function(){return g.getSourceData()?g.getSourceData().length:0},this.countSourceCols=function(){var e=0,t=g.getSourceData()&&g.getSourceData()[0]?g.getSourceData()[0]:[];return e=U(t)?$(t):t.length||0},this.countRows=function(){return c.getLength()},this.countCols=function(){var e=!1,t=0;if("array"===g.dataType&&(e=d.settings.data&&d.settings.data[0]&&d.settings.data[0].length),e&&(t=d.settings.data[0].length),d.settings.columns){var n=D(d.settings.columns);if(n)if("array"===g.dataType){for(var o=0,i=0;i<t;i++)d.settings.columns(i)&&o++;t=o}else"object"!==g.dataType&&"function"!==g.dataType||(t=c.colToPropCache.length);else t=d.settings.columns.length}else"object"!==g.dataType&&"function"!==g.dataType||(t=c.colToPropCache.length);return t},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,n=g.countRows()-1,o=0;n>=0;){if(t=R.hooks.run(this,"modifyRow",n),g.isEmptyRow(t))o++;else if(e)break;n--}return o},this.countEmptyCols=function(e){if(g.countRows()<1)return 0;for(var t=g.countCols()-1,n=0;t>=0;){if(g.isEmptyCol(t))n++;else if(e)break;t--}return n},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,n,o,i,r){var s;if(r=N(r)||r===!0,"number"!=typeof e||e<0||e>=g.countRows())return!1;if("number"!=typeof t||t<0||t>=g.countCols())return!1;if(P(n)){if("number"!=typeof n||n<0||n>=g.countRows())return!1;if("number"!=typeof o||o<0||o>=g.countCols())return!1}return s=new ae(e,t),d.selRange=new le(s,s,s),r&&g.listen(),N(n)?p.setRangeEnd(d.selRange.from,i):p.setRangeEnd(new ae(n,o),i),g.selection.finish(),!0},this.selectCellByProp=function(e,t,n,o,i){return arguments[1]=c.propToCol(arguments[1]),P(arguments[3])&&(arguments[3]=c.propToCol(arguments[3])),g.selectCell.apply(g,arguments)},this.deselectCell=function(){p.deselect()},this.scrollViewportTo=function(e,t){if(void 0!==e&&(e<0||e>=g.countRows()))return!1;if(void 0!==t&&(t<0||t>=g.countCols()))return!1;var n=!1;return void 0!==e&&void 0!==t&&(g.view.wt.scrollVertical(e),g.view.wt.scrollHorizontal(t),n=!0),"number"==typeof e&&"number"!=typeof t&&(g.view.wt.scrollVertical(e),n=!0),"number"==typeof t&&"number"!=typeof e&&(g.view.wt.scrollHorizontal(t),n=!0),n},this.destroy=function(){g._clearTimeouts(),g.view&&g.view.destroy(),h&&h.destroy(),h=null,T(g.rootElement),v.destroy(),R.hooks.run(g,"afterDestroy"),R.hooks.destroy(g);for(var e in g)g.hasOwnProperty(e)&&(D(g[e])?g[e]=u:"guid"!==e&&(g[e]=null));c&&c.destroy(),c=null,d=null,f=null,p=null,m=null,g=null,w=null},this.getActiveEditor=function(){return m.getActiveEditor()},this.getPlugin=function(e){return Z(this,e)},this.getInstance=function(){return g},this.addHook=function(e,t){R.hooks.add(e,t,g)},this.hasHook=function(e){return R.hooks.has(e,g)},this.addHookOnce=function(e,t){R.hooks.once(e,t,g)},this.removeHook=function(e,t){R.hooks.remove(e,t,g)},this.runHooks=function(e,t,n,o,i,r,s){return R.hooks.run(g,e,t,n,o,i,r,s)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;e<t;e++)clearTimeout(this.timeouts[e])},this.version=R.version,R.hooks.run(g,"construct")};var de=function(){};de.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,currentHeaderClassName:"ht__highlight",className:void 0,tableClassName:void 0,stretchH:"none",isEmptyRow:function(e){var t,n,o,i;for(t=0,n=this.countCols();t<n;t++)if(o=this.getDataAtCell(e,t),""!==o&&null!==o&&P(o))return"object"==typeof o&&(i=this.getCellMeta(e,t),G(this.getSchema()[i.prop],o));return!0},isEmptyCol:function(e){var t,n,o;for(t=0,n=this.countRows();t<n;t++)if(o=this.getDataAtCell(t,e),""!==o&&null!==o&&P(o))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},R.DefaultSettings=de},{"3rdparty/walkontable/src/calculator/viewportColumns":4,"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/cell/range":7,browser:24,dataMap:27,dataSource:28,editorManager:29,eventManager:42,"helpers/array":43,"helpers/browser":44,"helpers/data":45,"helpers/dom/element":47,"helpers/function":50,"helpers/mixed":51,"helpers/number":52,"helpers/object":53,"helpers/setting":54,"helpers/string":55,numbro:"numbro",plugins:61,renderers:110,tableView:119}],27:[function(e,t,n){"use strict";function o(e,t,n){var o=this;this.instance=e,this.priv=t,this.GridSettings=n,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=S.create(function(){return o.clearLengthCache()},"15fps")}Object.defineProperties(n,{DataMap:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a,l,u,d,c,h,f=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,p=(r=e("SheetClip"),r&&r.__esModule&&r||{default:r}).default,m=(s=e("helpers/data"),s&&s.__esModule&&s||{default:s}).cellMethodLookupFactory,g=(a=e("helpers/setting"),a&&a.__esModule&&a||{default:a}).columnFactory,w=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}),v=w.duckSchema,b=w.deepExtend,C=w.deepClone,y=w.isObject,A=w.deepObjectSize,_=(u=e("helpers/array"),u&&u.__esModule&&u||{default:u}),E=_.extendArray,R=_.to2dArray,S=(d=e("utils/interval"),d&&d.__esModule&&d||{default:d}).Interval,M=(c=e("helpers/number"),c&&c.__esModule&&c||{default:c}).rangeEach,k=(h=e("multiMap"),h&&h.__esModule&&h||{default:h}).MultiMap;o.prototype.DESTINATION_RENDERER=1,o.prototype.DESTINATION_CLIPBOARD_GENERATOR=2,o.prototype.recursiveDuckSchema=function(e){return v(e)},o.prototype.recursiveDuckColumns=function(e,t,n){var o,i;if("undefined"==typeof t&&(t=0,n=""),"object"==typeof e&&!Array.isArray(e))for(i in e)e.hasOwnProperty(i)&&(null===e[i]?(o=n+i,this.colToPropCache.push(o),this.propToColCache.set(o,t),t++):t=this.recursiveDuckColumns(e[i],t,i+"."));return t},o.prototype.createMap=function(){var e,t=this.getSchema();if("undefined"==typeof t)throw new Error("trying to create `columns` definition but you didnt' provide `schema` nor `data`");this.colToPropCache=[],this.propToColCache=new k;var n=this.instance.getSettings().columns;if(n){var o=n.length,i=0,r=!1,s=A(t);for("function"==typeof n&&(o=s>0?s:this.instance.countSourceCols(),r=!0),e=0;e<o;e++){var a=r?n(e):n[e];if(y(a)){if("undefined"!=typeof a.data){var l=r?i:e;this.colToPropCache[l]=a.data,this.propToColCache.set(a.data,l)}i++}}}else this.recursiveDuckColumns(t)},o.prototype.colToProp=function(e){return e=f.hooks.run(this.instance,"modifyCol",e),this.colToPropCache&&"undefined"!=typeof this.colToPropCache[e]?this.colToPropCache[e]:e},o.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)},o.prototype.getSchema=function(){var e=this.instance.getSettings().dataSchema;return e?"function"==typeof e?e():e:this.duckSchema},o.prototype.createRow=function(e,t,n){var o,i,r=this.instance.countCols(),s=0;t||(t=1),("number"!=typeof e||e>=this.instance.countSourceRows())&&(e=this.instance.countSourceRows()),i=e;for(var a=this.instance.getSettings().maxRows;s<t&&this.instance.countSourceRows()<a;)"array"===this.instance.dataType?this.instance.getSettings().dataSchema?o=C(this.getSchema()):(o=[],M(r-1,function(){return o.push(null)})):"function"===this.instance.dataType?o=this.instance.getSettings().dataSchema(e):(o={},b(o,this.getSchema())),e===this.instance.countSourceRows()?this.dataSource.push(o):this.dataSource.splice(e,0,o),s++,i++;return f.hooks.run(this.instance,"afterCreateRow",e,s,n),this.instance.forceFullRender=!0,s},o.prototype.createCol=function(e,t,n){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 o,i,r=this.instance.countSourceRows(),s=this.dataSource,a=0;t||(t=1),("number"!=typeof e||e>=this.instance.countCols())&&(e=this.instance.countCols()),i=e;for(var l=this.instance.getSettings().maxCols;a<t&&this.instance.countCols()<l;){if(o=g(this.GridSettings,this.priv.columnsSettingConflicts),"number"!=typeof e||e>=this.instance.countCols()){if(r>0)for(var u=0;u<r;u++)"undefined"==typeof s[u]&&(s[u]=[]),s[u].push(null);else s.push([null]);this.priv.columnSettings.push(o)}else{for(var u=0;u<r;u++)s[u].splice(i,0,null);this.priv.columnSettings.splice(i,0,o)}a++,i++}return f.hooks.run(this.instance,"afterCreateCol",e,a,n),this.instance.forceFullRender=!0,a},o.prototype.removeRow=function(e,t){t||(t=1),"number"!=typeof e&&(e=-t),e=(this.instance.countSourceRows()+e)%this.instance.countSourceRows();var n=this.physicalRowsToLogical(e,t),o=(n.slice(0).sort(function(e,t){return t-e}),f.hooks.run(this.instance,"beforeRemoveRow",e,t,n));if(o!==!1){var i,r=this.dataSource;i=r.filter(function(e,t){return n.indexOf(t)==-1}),r.length=0,Array.prototype.push.apply(r,i),f.hooks.run(this.instance,"afterRemoveRow",e,t,n),this.instance.forceFullRender=!0}},o.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 n=this.physicalColumnsToLogical(e,t),o=n.slice(0).sort(function(e,t){
  return t-e}),i=f.hooks.run(this.instance,"beforeRemoveCol",e,t,n);if(i!==!1){for(var r=!0,s=o.length,a=this.dataSource,l=0;l<s;l++)r&&n[0]!==n[l]-l&&(r=!1);if(r)for(var u=0,d=this.instance.countSourceRows();u<d;u++)a[u].splice(n[0],t);else{for(var c=0,h=this.instance.countSourceRows();c<h;c++)for(var p=0;p<s;p++)a[c].splice(o[p],1);for(var m=0;m<s;m++)this.priv.columnSettings.splice(n[m],1)}f.hooks.run(this.instance,"afterRemoveCol",e,t),this.instance.forceFullRender=!0}},o.prototype.spliceCol=function(e,t,n){var o=4<=arguments.length?[].slice.call(arguments,3):[],i=this.instance.getDataAtCol(e),r=i.slice(t,t+n),s=i.slice(t+n);E(o,s);for(var a=0;a<n;)o.push(null),a++;return R(o),this.instance.populateFromArray(t,e,o,null,null,"spliceCol"),r},o.prototype.spliceRow=function(e,t,n){var o=4<=arguments.length?[].slice.call(arguments,3):[],i=this.instance.getSourceDataAtRow(e),r=i.slice(t,t+n),s=i.slice(t+n);E(o,s);for(var a=0;a<n;)o.push(null),a++;return this.instance.populateFromArray(e,t,[o],null,null,"spliceRow"),r},o.prototype.get=function(e,t){e=f.hooks.run(this.instance,"modifyRow",e);var n=this.dataSource[e];if(n&&n.hasOwnProperty&&n.hasOwnProperty(t))return n[t];if("string"==typeof t&&t.indexOf(".")>-1){var o=t.split("."),i=n;if(!i)return null;for(var r=0,s=o.length;r<s;r++)if(i=i[o[r]],"undefined"==typeof i)return null;return i}return"function"==typeof t?t(this.dataSource.slice(e,e+1)[0]):null};var T=m("copyable",!1);o.prototype.getCopyable=function(e,t){return T.call(this.instance,e,this.propToCol(t))?this.get(e,t):""},o.prototype.set=function(e,t,n,o){e=f.hooks.run(this.instance,"modifyRow",e,o||"datamapGet");var i=this.dataSource[e];if(i&&i.hasOwnProperty&&i.hasOwnProperty(t))i[t]=n;else if("string"==typeof t&&t.indexOf(".")>-1){for(var r=t.split("."),s=i,a=0,l=r.length-1;a<l;a++)"undefined"==typeof s[r[a]]&&(s[r[a]]={}),s=s[r[a]];s[r[a]]=n}else"function"==typeof t?t(this.dataSource.slice(e,e+1)[0],n):i[t]=n},o.prototype.physicalRowsToLogical=function(e,t){for(var n,o=this.instance.countSourceRows(),i=(o+e)%o,r=[],s=t;i<o&&s;)n=f.hooks.run(this.instance,"modifyRow",i),r.push(n),s--,i++;return r},o.prototype.physicalColumnsToLogical=function(e,t){for(var n=this.instance.countCols(),o=(n+e)%n,i=[],r=t;o<n&&r;){var s=f.hooks.run(this.instance,"modifyCol",o);i.push(s),r--,o++}return i},o.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),"")},o.prototype.clearLengthCache=function(){this.cachedLength=null},o.prototype.getLength=function(){var e=this,t=this.instance.countSourceRows();if(f.hooks.has("modifyRow",this.instance)){var n=!1;this.interval.start(),t!==this.latestSourceRowsCount&&(n=!0),this.latestSourceRowsCount=t,null===this.cachedLength||n?(M(t-1,function(n){n=f.hooks.run(e.instance,"modifyRow",n),null===n&&--t}),this.cachedLength=t):t=this.cachedLength}else this.interval.stop();return t},o.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,o.prototype.DESTINATION_RENDERER):[]},o.prototype.getRange=function(e,t,n){var o,i,r,s,a,l=[],u=n===this.DESTINATION_CLIPBOARD_GENERATOR?this.getCopyable:this.get;for(i=Math.max(e.row,t.row),s=Math.max(e.col,t.col),o=Math.min(e.row,t.row);o<=i;o++){a=[];var d=f.hooks.run(this.instance,"modifyRow",o);for(r=Math.min(e.col,t.col);r<=s;r++){if(null===d)break;a.push(u.call(this,o,this.colToProp(r)))}null!==d&&l.push(a)}return l},o.prototype.getText=function(e,t){return p.stringify(this.getRange(e,t,this.DESTINATION_RENDERER))},o.prototype.getCopyableText=function(e,t){return p.stringify(this.getRange(e,t,this.DESTINATION_CLIPBOARD_GENERATOR))},o.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:24,"helpers/array":43,"helpers/data":45,"helpers/number":52,"helpers/object":53,"helpers/setting":54,multiMap:59,"utils/interval":121}],28:[function(e,t,n){"use strict";Object.defineProperties(n,{DataSource:{get:function(){return f}},__esModule:{value:!0}});var o,i,r,s,a,l=((o=e("helpers/data"),o&&o.__esModule&&o||{default:o}).cellMethodLookupFactory,(i=e("helpers/setting"),i&&i.__esModule&&i||{default:i}).columnFactory,r=e("helpers/object"),r&&r.__esModule&&r||{default:r}),u=(l.duckSchema,l.deepExtend,l.getProperty),d=(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}),c=(d.extendArray,d.arrayEach),h=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).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,n=[];return c(this.data,function(o){var i=t.colToProp(e);o="string"==typeof i?u(o,i):o[i],n.push(o)}),n},getAtRow:function(e){return this.data[e]},getAtCell:function(e,t){return this.data[e][this.colToProp(t)]},getByRange:function(e,t){var n=this,o=Math.min(e.row,t.row),i=Math.min(e.col,t.col),r=Math.max(e.row,t.row),s=Math.max(e.col,t.col),a=[];return h(o,r,function(e){var t,o=n.getAtRow(e);"array"===n.dataType?t=o.slice(i,s):"object"===n.dataType&&(t={},h(i,s,function(e){var i=n.colToProp(e);t[i]=o[i]})),a.push(t)}),a},destroy:function(){this.data=null,this.hot=null}},{})},{"helpers/array":43,"helpers/data":45,"helpers/number":52,"helpers/object":53,"helpers/setting":54}],29:[function(e,t,n){"use strict";function o(e,t,n){function o(e){var o="function"==typeof t.settings.enterMoves?t.settings.enterMoves(event):t.settings.enterMoves;e?n.transformStart(-o.row,-o.col):n.transformStart(o.row,o.col,!0)}function i(e){e?n.transformEnd(-1,0):n.transformStart(-1,0)}function r(e){e?n.transformEnd(1,0):n.transformStart(1,0)}function s(e){e?n.transformEnd(0,1):n.transformStart(0,1)}function a(e){e?n.transformEnd(0,-1):n.transformStart(0,-1)}function l(l){var u,h;if(e.isListening()&&(d.hooks.run(e,"beforeKeyDown",l),!A&&!b(l)&&(t.lastKeyCode=l.keyCode,n.isSelected()))){if(u=(l.ctrlKey||l.metaKey)&&!l.altKey,g&&!g.isWaiting()&&!(p(l.keyCode)||m(l.keyCode)||u||y.isEditorOpened()))return void y.openEditor("",l);switch(h=l.shiftKey?n.setRangeEnd:n.setRangeStart,l.keyCode){case f.A:!y.isEditorOpened()&&u&&(n.selectAll(),l.preventDefault(),w(l));break;case f.ARROW_UP:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),i(l.shiftKey),l.preventDefault(),w(l);break;case f.ARROW_DOWN:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),r(l.shiftKey),l.preventDefault(),w(l);break;case f.ARROW_RIGHT:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),s(l.shiftKey),l.preventDefault(),w(l);break;case f.ARROW_LEFT:y.isEditorOpened()&&!g.isWaiting()&&y.closeEditorAndSaveChanges(u),a(l.shiftKey),l.preventDefault(),w(l);break;case f.TAB:var C="function"==typeof t.settings.tabMoves?t.settings.tabMoves(l):t.settings.tabMoves;l.shiftKey?n.transformStart(-C.row,-C.col):n.transformStart(C.row,C.col,!0),l.preventDefault(),w(l);break;case f.BACKSPACE:case f.DELETE:n.empty(l),y.prepareEditor(),l.preventDefault();break;case f.F2:y.openEditor(null,l),g&&g.enableFullEditMode(),l.preventDefault();break;case f.ENTER:y.isEditorOpened()?(g&&g.state!==d.EditorState.WAITING&&y.closeEditorAndSaveChanges(u),o(l.shiftKey)):e.getSettings().enterBeginsEditing?(y.openEditor(null,l),g&&g.enableFullEditMode()):o(l.shiftKey),l.preventDefault(),v(l);break;case f.ESCAPE:y.isEditorOpened()&&y.closeEditorAndRestoreOriginalValue(u),l.preventDefault();break;case f.HOME:h(l.ctrlKey||l.metaKey?new c(0,t.selRange.from.col):new c(t.selRange.from.row,0)),l.preventDefault(),w(l);break;case f.END:h(l.ctrlKey||l.metaKey?new c(e.countRows()-1,t.selRange.from.col):new c(t.selRange.from.row,e.countCols()-1)),l.preventDefault(),w(l);break;case f.PAGE_UP:n.transformStart(-e.countVisibleRows(),0),l.preventDefault(),w(l);break;case f.PAGE_DOWN:n.transformStart(e.countVisibleRows(),0),l.preventDefault(),w(l)}}}function u(){function t(e,t,n){"TD"==n.nodeName&&(y.openEditor(),g&&g.enableFullEditMode())}e.addHook("afterDocumentKeyDown",l),h.addEventListener(document.documentElement,"keydown",function(t){e.runHooks("afterDocumentKeyDown",t)}),e.view.wt.update("onCellDblClick",t),e.addHook("afterDestroy",function(){A=!0})}var h,g,y=this,A=!1;h=C(e),this.destroyEditor=function(e){this.closeEditor(e)},this.getActiveEditor=function(){return g},this.prepareEditor=function(){var n,o,i,r,s,a,l;return g&&g.isWaiting()?void this.closeEditor(!1,!1,function(e){e&&y.prepareEditor()}):(n=t.selRange.highlight.row,o=t.selRange.highlight.col,i=e.colToProp(o),r=e.getCell(n,o),s=e.getDataAtCell(n,o),a=e.getCellMeta(n,o),l=e.getCellEditor(a),void(l?(g=d.editors.getEditor(l,e),g.prepare(n,o,i,r,s,a)):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&&o()},this.closeEditor=function(e,t,n){g?g.finishEditing(e,t,n):n&&n(!1)},this.closeEditorAndSaveChanges=function(e){return this.closeEditor(!1,e)},this.closeEditorAndRestoreOriginalValue=function(e){return this.closeEditor(!0,e)},u()}Object.defineProperties(n,{EditorManager:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a,l,u,d=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,c=(r=e("3rdparty/walkontable/src/cell/coords"),r&&r.__esModule&&r||{default:r}).WalkontableCellCoords,h=(s=e("helpers/unicode"),s&&s.__esModule&&s||{default:s}),f=h.KEY_CODES,p=h.isMetaKey,m=h.isCtrlKey,g=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),w=g.stopPropagation,v=g.stopImmediatePropagation,b=g.isImmediatePropagationStopped,C=((l=e("editors"),l&&l.__esModule&&l||{default:l}).getEditor,(u=e("eventManager"),u&&u.__esModule&&u||{default:u}).eventManager);d.EditorManager=o},{"3rdparty/walkontable/src/cell/coords":6,browser:24,editors:30,eventManager:42,"helpers/dom/event":48,"helpers/unicode":56}],30:[function(e,t,n){"use strict";function o(e){var t,n;n={},t=e,this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in n||(n[e.guid]=new t(e)),n[e.guid]}}function i(e,t){var n=new o(t);"string"==typeof e&&(h[e]=n,d.editors[c(e)+"Editor"]=t),f.set(t,n)}function r(e,t){var n;if("function"==typeof e)f.get(e)||i(null,e),n=f.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter ');n=h[e]}if(!n)throw Error('No editor registered under name "'+e+'"');return n.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 a(e){return!!h[e]}Object.defineProperties(n,{registerEditor:{get:function(){return i}},getEditor:{get:function(){return r}},hasEditor:{get:function(){return a}},getEditorConstructor:{get:function(){return s}},__esModule:{value:!0}});var l,u,d=(l=e("browser"),l&&l.__esModule&&l||{default:l}).default,c=(u=e("helpers/string"),u&&u.__esModule&&u||{default:u}).toUpperCaseFirst,h={},f=new WeakMap;d.editors=d.editors||{},d.editors.registerEditor=i,d.editors.getEditor=r},{browser:24,"helpers/string":55}],31:[function(e,t,n){"use strict";function o(e){this.instance=e,this.state=a.EditorState.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}Object.defineProperties(n,{BaseEditor:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,l=(r=e("helpers/mixed"),r&&r.__esModule&&r||{default:r}).stringify,u=(s=e("3rdparty/walkontable/src/cell/coords"),s&&s.__esModule&&s||{default:s}).WalkontableCellCoords;a.editors=a.editors||{},a.editors.BaseEditor=o,a.EditorState={VIRGIN:"STATE_VIRGIN",EDITING:"STATE_EDITING",WAITING:"STATE_WAITING",FINISHED:"STATE_FINISHED"},o.prototype._fireCallbacks=function(e){this._closeCallback&&(this._closeCallback(e),this._closeCallback=null)},o.prototype.init=function(){},o.prototype.getValue=function(){throw Error("Editor getValue() method unimplemented")},o.prototype.setValue=function(e){throw Error("Editor setValue() method unimplemented")},o.prototype.open=function(){throw Error("Editor open() method unimplemented")},o.prototype.close=function(){throw Error("Editor close() method unimplemented")},o.prototype.prepare=function(e,t,n,o,i,r){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=i,this.cellProperties=r,this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body?document.activeElement.blur():document.activeElement||document.body.focus(),this.state=a.EditorState.VIRGIN},o.prototype.extend=function(){function e(){n.apply(this,arguments)}function t(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}var n=this.constructor;return t(e,n)},o.prototype.saveValue=function(e,t){var n,o;t?(n=this.instance.getSelected(),n[0]>n[2]&&(o=n[0],n[0]=n[2],n[2]=o),n[1]>n[3]&&(o=n[1],n[1]=n[3],n[3]=o),this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")):this.instance.populateFromArray(this.row,this.col,e,null,null,"edit")},o.prototype.beginEditing=function(e,t){this.state==a.EditorState.VIRGIN&&(this.instance.view.scrollViewport(new u(this.row,this.col)),this.instance.view.render(),this.state=a.EditorState.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue(l(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render())},o.prototype.finishEditing=function(e,t,n){var o,i=this;if(n){var r=this._closeCallback;this._closeCallback=function(e){r&&r(e),n(e)}}if(!this.isWaiting()){if(this.state==a.EditorState.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){i._fireCallbacks(!0)},0));if(this.state==a.EditorState.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var s=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof s?String.prototype.trim.call(s||""):s]]:[[s]],this.state=a.EditorState.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){i.state=a.EditorState.FINISHED,i.discardEditor(e)}):(this.state=a.EditorState.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=a.EditorState.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(e){this.state===a.EditorState.FINISHED&&(e===!1&&this.cellProperties.allowInvalid!==!0?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=a.EditorState.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=a.EditorState.VIRGIN,this._fireCallbacks(!0)))},o.prototype.enableFullEditMode=function(){this._fullEditMode=!0},o.prototype.isInFullEditMode=function(){return this._fullEditMode},o.prototype.isOpened=function(){return this._opened},o.prototype.isWaiting=function(){return this.state===a.EditorState.WAITING},o.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":6,browser:24,"helpers/mixed":51}],32:[function(e,t,n){"use strict";function o(e){k=!1;var t=this.getActiveEditor();if(h(e.keyCode)||e.keyCode===c.BACKSPACE||e.keyCode===c.DELETE||e.keyCode===c.INSERT){var n=0;if(e.keyCode===c.C&&(e.ctrlKey||e.metaKey))return;t.isOpened()||(n+=10),t.htEditor&&t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value),k=!0},n))}}Object.defineProperties(n,{AutocompleteEditor:{get:function(){return M}},__esModule:{value:!0}});var i,r,s,a,l,u,d=(i=e("helpers/unicode"),i&&i.__esModule&&i||{default:i}),c=d.KEY_CODES,h=d.isPrintableChar,f=(r=e("helpers/mixed"),r&&r.__esModule&&r||{default:r}).stringify,p=(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}).pivot,m=(a=e("helpers/dom/element"),a&&a.__esModule&&a||{default:a}),g=m.addClass,w=m.getCaretPosition,v=m.getScrollbarWidth,b=m.getSelectionEndPosition,C=m.outerWidth,y=m.outerHeight,A=m.offset,_=m.getTrimmingContainer,E=m.setCaretPosition,R=(l=e("editors"),l&&l.__esModule&&l||{default:l}).registerEditor,S=(u=e("handsontableEditor"),u&&u.__esModule&&u||{default:u}).HandsontableEditor,M=S.prototype.extend();M.prototype.init=function(){S.prototype.init.apply(this,arguments),this.query=null,this.choices=[]},M.prototype.createElements=function(){S.prototype.createElements.apply(this,arguments),g(this.htContainer,"autocompleteEditor"),g(this.htContainer,window.navigator.platform.indexOf("Mac")===-1?"":"htMacScroll")};var k=!1;M.prototype.prepare=function(){this.instance.addHook("beforeKeyDown",o),S.prototype.prepare.apply(this,arguments)},M.prototype.open=function(){this.TEXTAREA_PARENT.style.overflow="auto",S.prototype.open.apply(this,arguments),this.TEXTAREA_PARENT.style.overflow="";var e=this.htEditor.getInstance(),t=this,n=void 0===this.cellProperties.trimDropdown||this.cellProperties.trimDropdown;this.TEXTAREA.style.visibility="visible",this.focus(),e.updateSettings({colWidths:n?[C(this.TEXTAREA)-2]:void 0,width:n?C(this.TEXTAREA)+v()+2:void 0,afterRenderer:function(e,n,o,i,r){var s,a,l=this.getCellMeta(n,o).filteringCaseSensitive===!0;r=f(r),r&&(s=l?r.indexOf(this.query):r.toLowerCase().indexOf(t.query.toLowerCase()),s!=-1&&(a=r.substr(s,t.query.length),e.innerHTML=r.replace(a,"<strong>"+a+"</strong>")))},autoColumnSize:!0,modifyColWidth:function(e,t){var o=this.getPlugin("autoColumnSize").widths;return o[t]&&(e=o[t]),n?e:e+15}}),this.htEditor.view.wt.wtTable.holder.parentNode.style["padding-right"]=v()+2+"px",k&&(k=!1),t.instance._registerTimeout(setTimeout(function(){t.queryChoices(t.TEXTAREA.value)},0))},M.prototype.close=function(){S.prototype.close.apply(this,arguments)},M.prototype.queryChoices=function(e){this.query=e;var t=this.cellProperties.source,n=this.cellProperties.filter,o=this.cellProperties.filteringCaseSensitive;if("function"==typeof t){var i=this;t.call(this.cellProperties,e,function(e){i.updateChoicesList(e)})}else if(Array.isArray(t)){var r;if(e&&n!==!1){var s=e.toLowerCase();r=t.filter(function(t){return o?t.toString().indexOf(e)!=-1:t.toString().toLowerCase().indexOf(s)!=-1})}else r=t;this.updateChoicesList(r)}else this.updateChoicesList([])},M.prototype.updateChoicesList=function(e){var t=w(this.TEXTAREA),n=b(this.TEXTAREA),o=this.cellProperties.sortByRelevance,i=this.cellProperties.filter,r=null,s=null;if(o&&(r=M.sortByRelevance(this.getValue(),e,this.cellProperties.filteringCaseSensitive)),i===!1)s=r?r[0]:0;else{for(var a=[],l=0,u=e.length;l<u;l++)r?a.push(e[r[l]]):a.push(e[l]);s=0,e=a}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(),E(this.TEXTAREA,t,t===n?void 0:n)},M.prototype.flipDropdownIfNeeded=function(){var e=A(this.TEXTAREA),t=y(this.TEXTAREA),n=this.getDropdownHeight(),o=_(this.instance.view.wt.wtTable.TABLE),i=o.scrollTop,r=y(this.instance.view.wt.wtTable.THEAD),s={row:0,col:0};o!==window&&(s=A(o));var a=e.top-s.top-r+i,l=o.scrollHeight-a-r-t,u=n>l&&a>l;return u?this.flipDropdown(n):this.unflipDropdown(),this.limitDropdownIfNeeded(u?a:l,n),u},M.prototype.limitDropdownIfNeeded=function(e,t){if(t>e){var n=0,o=0,i=0,r=null;do i=this.htEditor.getRowHeight(o)||this.htEditor.view.wt.wtSettings.settings.defaultRowHeight,n+=i,o++;while(n<e);r=n-i,this.htEditor.flipped&&(this.htEditor.rootElement.style.top=parseInt(this.htEditor.rootElement.style.top,10)+t-r+"px"),this.setDropdownHeight(n-i)}},M.prototype.flipDropdown=function(e){var t=this.htEditor.rootElement.style;t.position="absolute",t.top=-e+"px",this.htEditor.flipped=!0},M.prototype.unflipDropdown=function(){var e=this.htEditor.rootElement.style;"absolute"===e.position&&(e.position="",e.top=""),this.htEditor.flipped=void 0},M.prototype.updateDropdownHeight=function(){var e=this.htEditor.getColWidth(0)+v()+2,t=this.cellProperties.trimDropdown;this.htEditor.updateSettings({height:this.getDropdownHeight(),width:t?void 0:e}),this.htEditor.view.wt.wtTable.alignOverlaysWithTrimmingContainer()},M.prototype.setDropdownHeight=function(e){this.htEditor.updateSettings({height:e})},M.prototype.finishEditing=function(e){e||this.instance.removeHook("beforeKeyDown",o),S.prototype.finishEditing.apply(this,arguments)},M.prototype.highlightBestMatchingChoice=function(e){"number"==typeof e?this.htEditor.selectCell(e,0):this.htEditor.deselectCell()},M.sortByRelevance=function(e,t,n){var o,i,r,s,a=[],l=e.length,u=[],d=t.length;if(0===l){for(s=0;s<d;s++)u.push(s);return u}for(s=0;s<d;s++)o=f(t[s]),i=n?o.indexOf(e):o.toLowerCase().indexOf(e.toLowerCase()),i!=-1&&(r=o.length-i-l,a.push({baseIndex:s,index:i,charsLeft:r,value:o}));for(a.sort(function(e,t){return t.index===-1?-1:e.index===-1?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=a.length;s<d;s++)u.push(a[s].baseIndex);return u},M.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},M.prototype.allowKeyEventPropagation=function(e){var t={row:this.htEditor.getSelectedRange()?this.htEditor.getSelectedRange().from.row:-1},n=!1;return e===c.ARROW_DOWN&&t.row>0&&t.row<this.htEditor.countRows()-1&&(n=!0),e===c.ARROW_UP&&t.row>-1&&(n=!0),n},R("autocomplete",M)},{editors:30,handsontableEditor:36,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,"helpers/unicode":56}],33:[function(e,t,n){"use strict";Object.defineProperties(n,{CheckboxEditor:{get:function(){return u}},__esModule:{value:!0}});var o,i,r,s=(o=e("editors"),o&&o.__esModule&&o||{default:o}).registerEditor,a=(i=e("_baseEditor"),i&&i.__esModule&&i||{default:i}).BaseEditor,l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}).hasClass,u=function(){$traceurRuntime.superConstructor(d).apply(this,arguments)},d=u;$traceurRuntime.createClass(u,{beginEditing:function(e,t){if(void 0===t){var n=this.TD.querySelector('input[type="checkbox"]');l(n,"htBadValue")||n.click()}},finishEditing:function(){},init:function(){},open:function(){},close:function(){},getValue:function(){},setValue:function(){},focus:function(){}},{},a),s("checkbox",u)},{_baseEditor:31,editors:30,"helpers/dom/element":47}],34:[function(e,t,n){"use strict";Object.defineProperties(n,{DateEditor:{get:function(){return S}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,f=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,p=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),m=p.addClass,g=p.outerHeight,w=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).deepExtend,v=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).EventManager,b=(a=e("editors"),a&&a.__esModule&&a||{default:a}),C=(b.getEditor,b.registerEditor),y=(l=e("helpers/unicode"),l&&l.__esModule&&l||{default:l}).isMetaKey,A=(u=e("helpers/dom/event"),u&&u.__esModule&&u||{default:u}).stopPropagation,_=(d=e("textEditor"),d&&d.__esModule&&d||{default:d}).TextEditor,E=(c=e("moment"),c&&c.__esModule&&c||{default:c}).default,R=(h=e("pikaday"),h&&h.__esModule&&h||{default:h}).default;f.editors=f.editors||{},f.editors.DateEditor=S;var S=function(e){this.$datePicker=null,this.datePicker=null,this.datePickerStyle=null,this.defaultDateFormat="DD/MM/YYYY",this.isCellEdited=!1,this.parentDestroyed=!1,$traceurRuntime.superConstructor(M).call(this,e)},M=S;$traceurRuntime.createClass(S,{init:function(){var e=this;if("function"!=typeof E)throw new Error("You need to include moment.js to your project.");if("function"!=typeof R)throw new Error("You need to include Pikaday to your project.");$traceurRuntime.superGet(this,M.prototype,"init").call(this),this.instance.addHook("afterDestroy",function(){e.parentDestroyed=!0,e.destroyElements()})},createElements:function(){$traceurRuntime.superGet(this,M.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,m(this.datePicker,"htDatepickerHolder"),document.body.appendChild(this.datePicker),this.$datePicker=new R(this.getDatePickerConfig());var e=new v(this);e.addEventListener(this.datePicker,"mousedown",function(e){return A(e)}),this.hideDatepicker()},destroyElements:function(){this.$datePicker.destroy()},prepare:function(e,t,n,o,i,r){this._opened=!1,$traceurRuntime.superGet(this,M.prototype,"prepare").call(this,e,t,n,o,i,r)},open:function(){var e=void 0!==arguments[0]?arguments[0]:null;$traceurRuntime.superGet(this,M.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,M.prototype,"close").call(this)},finishEditing:function(){var e=void 0!==arguments[0]&&arguments[0],t=void 0!==arguments[1]&&arguments[1];if(e){var n=this.originalValue;void 0!==n&&this.setValue(n)}this.hideDatepicker(),$traceurRuntime.superGet(this,M.prototype,"finishEditing").call(this,e,t)},showDatepicker:function(e){this.$datePicker.config(this.getDatePickerConfig());var t,n=this.TD.getBoundingClientRect(),o=this.cellProperties.dateFormat||this.defaultDateFormat,i=this.$datePicker.config(),r=this.instance.view.isMouseDown(),s=!!e&&y(e.keyCode);this.datePickerStyle.top=window.pageYOffset+n.top+g(this.TD)+"px",this.datePickerStyle.left=window.pageXOffset+n.left+"px",this.$datePicker._onInputFocus=function(){},i.format=o,this.originalValue?(t=this.originalValue,E(t,o,!0).isValid()&&this.$datePicker.setMoment(E(t,o),!0),this.getValue()!==this.originalValue&&this.setValue(this.originalValue),s||r||this.setValue("")):this.cellProperties.defaultDate?(t=this.cellProperties.defaultDate,i.defaultDate=t,E(t,o,!0).isValid()&&this.$datePicker.setMoment(E(t,o),!0),s||r||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,n={};this.cellProperties&&this.cellProperties.datePickerConfig&&w(n,this.cellProperties.datePickerConfig);var o=n.onSelect,i=n.onClose;return n.field=t,n.trigger=t,n.container=this.datePicker,n.bound=!1,n.format=n.format||this.defaultDateFormat,n.reposition=n.reposition||!1,n.onSelect=function(t){isNaN(t.getTime())||(t=E(t).format(e.cellProperties.dateFormat||e.defaultDateFormat)),e.setValue(t),e.hideDatepicker(),o&&o()},n.onClose=function(){e.parentDestroyed||e.finishEditing(!1),i&&i()},n}},{},_),C("date",S)},{browser:24,editors:30,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/object":53,"helpers/unicode":56,moment:"moment",pikaday:"pikaday",textEditor:41}],35:[function(e,t,n){"use strict";Object.defineProperties(n,{DropdownEditor:{get:function(){return d}},__esModule:{value:!0}});var o,i,r,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(i=e("editors"),i&&i.__esModule&&i||{default:i}),l=(a.getEditor,a.registerEditor),u=(a.getEditorConstructor,(r=e("autocompleteEditor"),r&&r.__esModule&&r||{default:r}).AutocompleteEditor),d=function(){$traceurRuntime.superConstructor(c).apply(this,arguments)},c=d;$traceurRuntime.createClass(d,{prepare:function(e,t,n,o,i,r){$traceurRuntime.superGet(this,c.prototype,"prepare").call(this,e,t,n,o,i,r),this.cellProperties.filter=!1,this.cellProperties.strict=!0}},{},u),s.hooks.add("beforeValidate",function(e,t,n,o){var i=this.getCellMeta(t,this.propToCol(n));i.editor===s.editors.DropdownEditor&&void 0===i.strict&&(i.filter=!1,i.strict=!0)}),l("dropdown",d)},{autocompleteEditor:32,browser:24,editors:30}],36:[function(e,t,n){"use strict";Object.defineProperties(n,{HandsontableEditor:{get:function(){return C}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(i=e("helpers/unicode"),i&&i.__esModule&&i||{default:i}).KEY_CODES,h=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).extend,f=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}).setCaretPosition,p=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),m=p.stopImmediatePropagation,g=p.isImmediatePropagationStopped,w=(l=e("editors"),l&&l.__esModule&&l||{default:l}),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,n,o,i,r){b.prototype.prepare.apply(this,arguments);var s=this,a={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(a,r.handsontable),this.htOptions=a};var y=function(e){if(!g(e)){var t,n=this.getActiveEditor(),o=n.htEditor.getInstance();if(e.keyCode==c.ARROW_DOWN)if(o.getSelected()||o.flipped){if(o.getSelected())if(o.flipped)t=o.getSelected()[0]+1;else if(!o.flipped){var i=o.getSelected()[0],r=o.countRows()-1;t=Math.min(r,i+1)}}else t=0;else if(e.keyCode==c.ARROW_UP)if(!o.getSelected()&&o.flipped)t=o.countRows()-1;else if(o.getSelected())if(o.flipped){var i=o.getSelected()[0];t=Math.max(0,i-1)}else{var i=o.getSelected()[0];t=i-1}void 0!==t&&(t<0||o.flipped&&t>o.countRows()-1?o.deselectCell():o.selectCell(t,0),o.getData().length&&(e.preventDefault(),m(e),n.instance.listen(),n.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 n=this.htEditor.getInstance().getValue();void 0!==n&&this.setValue(n)}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:24,editors:30,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/object":53,"helpers/unicode":56,textEditor:41
  }],37:[function(e,t,n){"use strict";Object.defineProperties(n,{MobileTextEditor:{get:function(){return T}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d=((o=e("browser"),o&&o.__esModule&&o||{default:o}).default,(i=e("helpers/unicode"),i&&i.__esModule&&i||{default:i}).KEY_CODES),c=(r=e("helpers/dom/event"),r&&r.__esModule&&r||{default:r}),h=c.stopImmediatePropagation,f=c.isImmediatePropagationStopped,p=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),m=p.addClass,g=p.getScrollLeft,w=p.getScrollTop,v=p.hasClass,b=p.isChildOf,C=p.offset,y=p.outerHeight,A=p.outerWidth,_=p.removeClass,E=p.setCaretPosition,R=(a=e("editors"),a&&a.__esModule&&a||{default:a}),S=(R.getEditor,R.registerEditor),M=(l=e("_baseEditor"),l&&l.__esModule&&l||{default:l}).BaseEditor,k=(u=e("eventManager"),u&&u.__esModule&&u||{default:u}).eventManager,T=M.prototype.extend(),x={},O=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])};T.prototype.valueChanged=function(){return this.initValue!=this.getValue()},T.prototype.init=function(){var e=this;this.eventManager=k(this.instance),this.createElements(),this.bindEvents(),this.instance.addHook("afterDestroy",function(){e.destroy()})},T.prototype.getValue=function(){return this.TEXTAREA.value},T.prototype.setValue=function(e){this.initValue=e,this.TEXTAREA.value=e},T.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"),m(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),O.call(this),document.body.appendChild(this.editorContainer)},T.prototype.onBeforeKeyDown=function(e){var t=this,n=t.getActiveEditor();if(e.target===n.TEXTAREA&&!f(e))switch(e.keyCode){case d.ENTER:n.close(),e.preventDefault();break;case d.BACKSPACE:h(e)}},T.prototype.open=function(){this.instance.addHook("beforeKeyDown",this.onBeforeKeyDown),m(this.editorContainer,"active"),_(this.cellPointer,"hidden"),this.updateEditorPosition()},T.prototype.focus=function(){this.TEXTAREA.focus(),E(this.TEXTAREA,this.TEXTAREA.value.length)},T.prototype.close=function(){this.TEXTAREA.blur(),this.instance.removeHook("beforeKeyDown",this.onBeforeKeyDown),_(this.editorContainer,"active")},T.prototype.scrollToView=function(){var e=this.instance.getSelectedRange().highlight;this.instance.view.scrollViewport(e)},T.prototype.hideCellPointer=function(){v(this.cellPointer,"hidden")||m(this.cellPointer,"hidden")},T.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 n=this.instance.getSelected(),o=this.instance.getCell(n[0],n[1]);if(x.cellPointer||(x.cellPointer={height:y(this.cellPointer),width:A(this.cellPointer)}),x.editorContainer||(x.editorContainer={width:A(this.editorContainer)}),void 0!==o){var i=this.instance.view.wt.wtOverlays.leftOverlay.trimmingContainer==window?0:g(this.instance.view.wt.wtOverlays.leftOverlay.holder),r=this.instance.view.wt.wtOverlays.topOverlay.trimmingContainer==window?0:w(this.instance.view.wt.wtOverlays.topOverlay.holder),s=C(o),a=A(o),l={x:i,y:r};this.editorContainer.style.top=parseInt(s.top+y(o)-l.y+x.cellPointer.height,10)+"px",this.editorContainer.style.left=parseInt(window.innerWidth/2-x.editorContainer.width/2,10)+"px",s.left+a/2>parseInt(this.editorContainer.style.left,10)+x.editorContainer.width?this.editorContainer.style.left=window.innerWidth-x.editorContainer.width+"px":s.left+a/2<parseInt(this.editorContainer.style.left,10)+20&&(this.editorContainer.style.left="0px"),this.cellPointer.style.left=parseInt(s.left-x.cellPointer.width/2-C(this.editorContainer).left+a/2-l.x,10)+"px"}}},T.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()},T.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))},T.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 n=t.touches[0],o={x:e.editorContainer.offsetLeft,y:e.editorContainer.offsetTop},i={x:n.pageX-o.x,y:n.pageY-o.y};e.eventManager.addEventListener(this,"touchmove",function(t){var n=t.touches[0];e.updateEditorPosition(n.pageX-i.x,n.pageY-i.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()})},T.prototype.destroy=function(){this.eventManager.clear(),this.editorContainer.parentNode.removeChild(this.editorContainer)},S("mobile",T)},{_baseEditor:31,browser:24,editors:30,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/unicode":56}],38:[function(e,t,n){"use strict";Object.defineProperties(n,{NumericEditor:{get:function(){return u}},__esModule:{value:!0}});var o,i,r,s=(o=e("numbro"),o&&o.__esModule&&o||{default:o}).default,a=(i=e("editors"),i&&i.__esModule&&i||{default:i}).registerEditor,l=(r=e("textEditor"),r&&r.__esModule&&r||{default:r}).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.culture(this.cellProperties.language);var t=s.cultureData().delimiters.decimal;e=(""+this.originalValue).replace(".",t)}$traceurRuntime.superGet(this,d.prototype,"beginEditing").call(this,e)}},{},l),a("numeric",u)},{editors:30,numbro:"numbro",textEditor:41}],39:[function(e,t,n){"use strict";Object.defineProperties(n,{PasswordEditor:{get:function(){return c}},__esModule:{value:!0}});var o,i,r,s,a=((o=e("browser"),o&&o.__esModule&&o||{default:o}).default,(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).empty),l=(r=e("editors"),r&&r.__esModule&&r||{default:r}),u=(l.getEditor,l.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,a(this.TEXTAREA_PARENT),this.TEXTAREA_PARENT.appendChild(this.TEXTAREA)}},{},d),u("password",c)},{browser:24,editors:30,"helpers/dom/element":47,textEditor:41}],40:[function(e,t,n){"use strict";Object.defineProperties(n,{SelectEditor:{get:function(){return S}},__esModule:{value:!0}});var o,i,r,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,d=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),c=d.addClass,h=d.empty,f=d.fastInnerHTML,p=d.getComputedStyle,m=d.getCssTransform,g=d.getScrollableElement,w=d.offset,v=d.outerHeight,b=d.outerWidth,C=d.resetCssTransform,y=(r=e("helpers/dom/event"),r&&r.__esModule&&r||{default:r}).stopImmediatePropagation,A=(s=e("helpers/unicode"),s&&s.__esModule&&s||{default:s}).KEY_CODES,_=(a=e("editors"),a&&a.__esModule&&a||{default:a}),E=(_.getEditor,_.registerEditor),R=(l=e("_baseEditor"),l&&l.__esModule&&l||{default:l}).BaseEditor,S=R.prototype.extend();S.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()},S.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()})},S.prototype.prepare=function(){R.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 n in e)if(e.hasOwnProperty(n)){var o=document.createElement("OPTION");o.value=n,f(o,e[n]),this.select.appendChild(o)}},S.prototype.prepareOptions=function(e){var t={};if(Array.isArray(e))for(var n=0,o=e.length;n<o;n++)t[e[n]]=e[n];else"object"==typeof e&&(t=e);return t},S.prototype.getValue=function(){return this.select.value},S.prototype.setValue=function(e){this.select.value=e};var M=function(e){var t=this,n=t.getActiveEditor();switch(e.keyCode){case A.ARROW_UP:var o=n.select.selectedIndex-1;o>=0&&(n.select[o].selected=!0),y(e),e.preventDefault();break;case A.ARROW_DOWN:var i=n.select.selectedIndex+1;i<=n.select.length-1&&(n.select[i].selected=!0),y(e),e.preventDefault()}};S.prototype.open=function(){this._opened=!0,this.refreshDimensions(),this.select.style.display="",this.instance.addHook("beforeKeyDown",M)},S.prototype.close=function(){this._opened=!1,this.select.style.display="none",this.instance.removeHook("beforeKeyDown",M)},S.prototype.focus=function(){this.select.focus()},S.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,n=v(this.TD)+1,o=w(this.TD),i=w(this.instance.rootElement),r=g(this.TD),s=o.top-i.top-1-(r.scrollTop||0),a=o.left-i.left-1-(r.scrollLeft||0),l=this.checkEditorSection(),d=this.instance.getSettings();d.rowHeaders?1:0,d.colHeaders?1:0;switch(l){case"top":e=m(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=m(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=m(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=m(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=m(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}0===this.instance.getSelected()[0]&&(s+=1),0===this.instance.getSelected()[1]&&(a+=1);var c=this.select.style;e&&e!=-1?c[e[0]]=e[1]:C(this.select);var h=p(this.TD);parseInt(h.borderTopWidth,10)>0&&(n-=1),parseInt(h.borderLeftWidth,10)>0&&(t-=1),c.height=n+"px",c.minWidth=t+"px",c.top=s+"px",c.left=a+"px",c.margin="0px"}},S.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 e!=-1&&e!=-2?e:void 0},E("select",S)},{_baseEditor:31,browser:24,editors:30,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/unicode":56}],41:[function(e,t,n){"use strict";Object.defineProperties(n,{TextEditor:{get:function(){return P}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),f=h.addClass,p=h.getCaretPosition,m=h.getComputedStyle,g=h.getCssTransform,w=h.getScrollableElement,v=h.getScrollbarWidth,b=h.innerWidth,C=h.offset,y=h.resetCssTransform,A=h.setCaretPosition,_=h.hasVerticalScrollbar,E=h.hasHorizontalScrollbar,R=(r=e("autoResize"),r&&r.__esModule&&r||{default:r}).default,S=(s=e("_baseEditor"),s&&s.__esModule&&s||{default:s}).BaseEditor,M=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).eventManager,k=(l=e("editors"),l&&l.__esModule&&l||{default:l}),T=(k.getEditor,k.registerEditor),x=(u=e("helpers/unicode"),u&&u.__esModule&&u||{default:u}).KEY_CODES,O=(d=e("helpers/dom/event"),d&&d.__esModule&&d||{default:d}),B=O.stopPropagation,D=O.stopImmediatePropagation,H=O.isImmediatePropagationStopped,P=S.prototype.extend();P.prototype.init=function(){var e=this;this.createElements(),this.eventManager=M(this),this.bindEvents(),this.autoResize=R(),this.instance.addHook("afterDestroy",function(){e.destroy()})},P.prototype.getValue=function(){return this.TEXTAREA.value},P.prototype.setValue=function(e){this.TEXTAREA.value=e};var N=function(e){var t,n=this,o=n.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===o.TEXTAREA&&!H(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void D(e);switch(e.keyCode){case x.ARROW_RIGHT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&D(e);break;case x.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&D(e);break;case x.ARROW_UP:case x.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&D(e);break;case x.ENTER:var i=o.instance.getSelected(),r=!(i[0]===i[2]&&i[1]===i[3]);if(t&&!r||e.altKey){if(o.isOpened()){var s=p(o.TEXTAREA),a=o.getValue(),l=a.slice(0,s)+"\n"+a.slice(s);o.setValue(l),A(o.TEXTAREA,s+1)}else o.beginEditing(o.originalValue+"\n");D(e)}e.preventDefault();break;case x.A:case x.X:case x.C:case x.V:t&&D(e);break;case x.BACKSPACE:case x.DELETE:case x.HOME:case x.END:D(e)}[x.ARROW_UP,x.ARROW_RIGHT,x.ARROW_DOWN,x.ARROW_LEFT].indexOf(e.keyCode)===-1&&o.autoResize.resize(String.fromCharCode(e.keyCode))}};P.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",N)},P.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",N)},P.prototype.focus=function(){this.TEXTAREA.focus(),A(this.TEXTAREA,this.TEXTAREA.value.length)},P.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))},P.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 e!=-1&&e!=-2?e:void 0},P.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),n=C(this.instance.rootElement),o=w(this.TD),i=this.instance.countRows(),r=t.top-n.top-1-(o.scrollTop||0),s=t.left-n.left-1-(o.scrollLeft||0),a=this.instance.getSettings(),l=(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)}(l&&0===this.instance.getSelected()[0]||a.fixedRowsBottom&&this.instance.getSelected()[0]===i-a.fixedRowsBottom)&&(r+=1),0===this.instance.getSelected()[1]&&(s+=1),e&&e!=-1?this.textareaParentStyle[e[0]]=e[1]:y(this.TEXTAREA_PARENT),this.textareaParentStyle.top=r+"px",this.textareaParentStyle.left=s+"px";var h=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,f=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,p=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),A=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),R=v(),S=this.TD.offsetTop+h-A,M=this.TD.offsetLeft+f-p,k=b(this.TD)-8,T=_(o)?R:0,x=E(o)?R:0,O=this.instance.view.maximumVisibleElementWidth(M)-9-T,B=this.TD.scrollHeight+1,D=Math.max(this.instance.view.maximumVisibleElementHeight(S)-x,23),H=m(this.TD);this.TEXTAREA.style.fontSize=H.fontSize,this.TEXTAREA.style.fontFamily=H.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=d?d:m(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(B,D),maxHeight:D,minWidth:Math.min(k,O),maxWidth:O},!0),this.textareaParentStyle.display="block"}},P.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){B(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){B(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()})},P.prototype.destroy=function(){this.eventManager.destroy()},T("text",P)},{_baseEditor:31,autoResize:"autoResize",browser:24,editors:30,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/unicode":56}],42:[function(e,t,n){"use strict";function o(e,t){var n,o,i,r,s,a,l="HOT-TABLE";if(t.isTargetWebComponent=!1,t.realTarget=t.target,a=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){a.apply(this),p(this)},!u.eventManager.isHotTableEnv)return t;for(t=c(t),s=t.path?t.path.length:0;s--;){if(t.path[s].nodeName===l)n=!0;else if(n&&t.path[s].shadowRoot){r=t.path[s];break}0!==s||r||(r=t.path[s])}return r||(r=t.target),t.isTargetWebComponent=!0,f()?t.realTarget=t.srcElement||t.toElement:(e instanceof u.Core||e instanceof Walkontable)&&(e instanceof u.Core?o=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(o=e.wtTable.TABLE.parentNode.parentNode),i=h(t.target,[l],o),i?t.realTarget=o.querySelector(l)||t.target:t.realTarget=t.target),Object.defineProperty(t,"target",{get:function(){return c(r)},enumerable:!0,configurable:!0}),t}function i(e){return new m(e)}Object.defineProperties(n,{EventManager:{get:function(){return m}},eventManager:{get:function(){return i}},__esModule:{value:!0}});var r,s,a,l,u=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,d=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),c=d.polymerWrap,h=d.closest,f=(a=e("helpers/feature"),a&&a.__esModule&&a||{default:a}).isWebComponentSupportedNatively,p=(l=e("helpers/dom/event"),l&&l.__esModule&&l||{default:l}).stopImmediatePropagation,m=function(){var e=void 0!==arguments[0]?arguments[0]:null;this.context=e||this,this.context.eventListeners||(this.context.eventListeners=[])};$traceurRuntime.createClass(m,{addEventListener:function(e,t,n){function i(e){e=o(s,e),n.call(this,e)}var r=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:i}),window.addEventListener?e.addEventListener(t,i,!1):e.attachEvent("on"+t,i),u.countEventManagerListeners++,function(){r.removeEventListener(e,t,n)}},removeEventListener:function(e,t,n){for(var o,i=this.context.eventListeners.length;i--;)if(o=this.context.eventListeners[i],o.event==t&&o.element==e){if(n&&n!=o.callback)continue;this.context.eventListeners.splice(i,1),o.element.removeEventListener?o.element.removeEventListener(o.event,o.callbackProxy,!1):o.element.detachEvent("on"+o.event,o.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 n,o={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?(n=document.createEvent("MouseEvents"),n.initMouseEvent(t,o.bubbles,o.cancelable,o.view,o.detail,o.screenX,o.screenY,o.clientX,o.clientY,o.ctrlKey,o.altKey,o.shiftKey,o.metaKey,o.button,o.relatedTarget||document.body.parentNode)):n=document.createEventObject(),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent("on"+t,n)}},{}),u.countEventManagerListeners=0,u.eventManager=i},{browser:24,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/feature":49}],43:[function(e,t,n){"use strict";function o(e){for(var t=0,n=e.length;t<n;)e[t]=[e[t]],t++}function i(e,t){for(var n=0,o=t.length;n<o;)e.push(t[n]),n++}function r(e){var t=[];if(!e||0===e.length||!e[0]||0===e[0].length)return t;for(var n=e.length,o=e[0].length,i=0;i<n;i++)for(var r=0;r<o;r++)t[r]||(t[r]=[]),t[r][i]=e[i][r];return t}function s(e,t,n,o){var i=-1,r=e.length;for(o&&r&&(n=e[++i]);++i<r;)n=t(n,e[i],i,e);return n}function a(e,t){for(var n=-1,o=e.length,i=-1,r=[];++n<o;){var s=e[n];t(s,n,e)&&(r[++i]=s)}return r}function l(e,t){for(var n=-1,o=e.length,i=-1,r=[];++n<o;){var s=e[n];r[++i]=t(s,n,e)}return r}function u(e,t){for(var n=-1,o=e.length;++n<o&&t(e[n],n,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 e<t?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?d(e)/e.length:0}function p(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function m(e){var t=[];return u(e,function(e){t.indexOf(e)===-1&&t.push(e)}),t}Object.defineProperties(n,{to2dArray:{get:function(){return o}},extendArray:{get:function(){return i}},pivot:{get:function(){return r}},arrayReduce:{get:function(){return s}},arrayFilter:{get:function(){return a}},arrayMap:{get:function(){return l}},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 p}},arrayUnique:{get:function(){return m}},__esModule:{value:!0}})},{}],44:[function(e,t,n){"use strict";function o(){return l}function i(){return u}function r(){return d}function s(){return c}function a(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}Object.defineProperties(n,{isIE8:{get:function(){return o}},isIE9:{get:function(){return i}},isSafari:{get:function(){return r}},isChrome:{get:function(){return s}},isMobileBrowser:{get:function(){return a}},__esModule:{value:!0}});var l=!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)},{}],45:[function(e,t,n){"use strict";function o(e){for(var t,n=e+1,o="";n>0;)t=(n-1)%26,o=String.fromCharCode(65+t)+o,n=parseInt((n-t)/26,10);return o}function i(e,t){e="number"==typeof e?e:100,t="number"==typeof t?t:4;var n,i,r=[];for(n=0;n<e;n++){var s=[];for(i=0;i<t;i++)s.push(o(i)+(n+1));r.push(s)}return r}function r(e,t){e="number"==typeof e?e:100,t="number"==typeof t?t:4;var n,i,r=[];for(n=0;n<e;n++){var s={};for(i=0;i<t;i++)s["prop"+i]=o(i)+(n+1);r.push(s)}return r}function s(e,t){for(var n,o=[],i=0;i<e;i++){n=[];for(var r=0;r<t;r++)n.push("");o.push(n)}return o}function a(e){var t,n,o,i,r=[],s=0;for(t=0,n=e.length;t<n;t++)for(o=0,i=e[t].length;o<i;o++)o==s&&(r.push([]),s++),r[o].push(e[t][o]);return r}function l(e,t){function n(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||t,function(o,i){return function o(i){if(i){if(i.hasOwnProperty(e)&&void 0!==i[e])return i[e];if(i.hasOwnProperty("type")&&i.type){var r;if("string"!=typeof i.type)throw new Error("Cell type must be a string ");if(r=n(i.type),r.hasOwnProperty(e))return r[e];if(t)return}return o(h(i))}}("number"==typeof o?this.getCellMeta(o,i):o)}}Object.defineProperties(n,{spreadsheetColumnLabel:{get:function(){return o}},createSpreadsheetData:{get:function(){return i}},createSpreadsheetObjectData:{get:function(){return r}},createEmptySpreadsheetData:{get:function(){return s}},translateRowsToColumns:{get:function(){return a}},cellMethodLookupFactory:{get:function(){return l}},__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:24,object:53}],46:[function(e,t,n){"use strict";function o(e){var t=new Date(e);return isNaN(new Date(e+"T00:00").getDate())?t:new Date(t.getTime()+6e4*t.getTimezoneOffset())}Object.defineProperties(n,{getNormalizedDate:{get:function(){return o}},__esModule:{value:!0}})},{}],47:[function(e,t,n){"use strict";function o(e,t,n){for(;null!=e&&e!==n;){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 i(e,t,n){for(var i=[];e&&(e=o(e,t,n),e&&(!n||n.contains(e)));)i.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var r=i.length;return r?i[r-1]:null}function r(e,t){var n=e.parentNode,o=[];for("string"==typeof t?o=Array.prototype.slice.call(document.querySelectorAll(t),0):o.push(t);null!=n;){if(o.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function s(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===o.toUpperCase()}var n,o="hot-table",i=!1;for(n=a(e);null!=n;){if(t(n)){i=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(i=t(n.host))break;n=n.host}n=n.parentNode}return i}function a(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 u(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t}function d(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null}function c(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}function h(e,t){return q(e,t)}function f(e,t){return Z(e,t)}function p(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 n=e.childNodes,o=n.length-1;o>=0;o--)m(n[o],e)}function g(e){for(var t;t=e.lastChild;)e.removeChild(t)}function w(e,t){le.test(t)?e.innerHTML=t:v(e,t)}function v(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?ue?n.textContent=t:n.data=t:(g(e),e.appendChild(document.createTextNode(t)))}function b(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 b(t.host.impl);if(t.host)return b(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 C(e){var t,n,o,i,r;if(i=document.documentElement,oe()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return r=e.getBoundingClientRect(),{top:r.top+(window.pageYOffset||i.scrollTop)-(i.clientTop||0),left:r.left+(window.pageXOffset||i.scrollLeft)-(i.clientLeft||0)};for(t=e.offsetLeft,n=e.offsetTop,o=e;(e=e.offsetParent)&&e!==document.body;)t+=e.offsetLeft,n+=e.offsetTop,o=e;return o&&"fixed"===o.style.position&&(t+=window.pageXOffset||i.scrollLeft,n+=window.pageYOffset||i.scrollTop),{left:t,top:n}}function y(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function A(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function _(e){return e===window?y():e.scrollTop;
  }function E(e){return e===window?A():e.scrollLeft}function R(e){for(var t,n,o,i=e.parentNode,r=["auto","scroll"],s="",a="",l="",u="";i&&i.style&&document.body!==i;){if(t=i.style.overflow,n=i.style.overflowX,o=i.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==o)return i;if(window.getComputedStyle&&(s=window.getComputedStyle(i),a=s.getPropertyValue("overflow"),l=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===a||"scroll"===u||"scroll"===l))return i;if(i.clientHeight<=i.scrollHeight&&(r.indexOf(o)!==-1||r.indexOf(t)!==-1||r.indexOf(a)!==-1||r.indexOf(l)!==-1))return i;if(i.clientWidth<=i.scrollWidth&&(r.indexOf(n)!==-1||r.indexOf(t)!==-1||r.indexOf(a)!==-1||r.indexOf(u)!==-1))return i;i=i.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 n=window.getComputedStyle(t);if("visible"!==n.getPropertyValue("overflow")&&""!==n.getPropertyValue("overflow"))return t}t=t.parentNode}return window}function M(e,t){if(e){if(e!==window){var n,o=e.style[t];return""!==o&&void 0!==o?o:(n=k(e),""!==n[t]&&void 0!==n[t]?n[t]:void 0)}if("width"===t)return window.innerWidth+"px";if("height"===t)return window.innerHeight+"px"}}function k(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function T(e){return e.offsetWidth}function x(e){return oe()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function O(e){return e.clientHeight||e.innerHeight}function B(e){return e.clientWidth||e.innerWidth}function D(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function H(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function P(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.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 n=e.createTextRange();return n.text.indexOf(t.text)+t.text.length}}function L(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e}function W(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(r){var o=e.parentNode,i=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=i}}else if(e.createTextRange){var r=e.createTextRange();r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r.select()}}function I(){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 n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n==o&&(o=t.clientWidth),(document.body||document.documentElement).removeChild(t),n-o}function F(){return void 0===ae&&(ae=I()),ae}function j(e){return e.offsetWidth!==e.clientWidth}function V(e){return e.offsetHeight!==e.clientHeight}function z(e,t,n){ee()||te()?(e.style.top=n,e.style.left=t):ne()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"}function Y(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 U(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)&&e.className.indexOf("handsontableInput")==-1&&e.className.indexOf("copyPaste")==-1}Object.defineProperties(n,{closest:{get:function(){return o}},closestDown:{get:function(){return i}},isChildOf:{get:function(){return r}},isChildOfWebComponentTable:{get:function(){return s}},polymerWrap:{get:function(){return a}},polymerUnwrap:{get:function(){return l}},index:{get:function(){return u}},overlayContainsElement:{get:function(){return d}},hasClass:{get:function(){return h}},addClass:{get:function(){return f}},removeClass:{get:function(){return p}},removeTextNodes:{get:function(){return m}},empty:{get:function(){return g}},HTML_CHARACTERS:{get:function(){return le}},fastInnerHTML:{get:function(){return w}},fastInnerText:{get:function(){return v}},isVisible:{get:function(){return b}},offset:{get:function(){return C}},getWindowScrollTop:{get:function(){return y}},getWindowScrollLeft:{get:function(){return A}},getScrollTop:{get:function(){return _}},getScrollLeft:{get:function(){return E}},getScrollableElement:{get:function(){return R}},getTrimmingContainer:{get:function(){return S}},getStyle:{get:function(){return M}},getComputedStyle:{get:function(){return k}},outerWidth:{get:function(){return T}},outerHeight:{get:function(){return x}},innerHeight:{get:function(){return O}},innerWidth:{get:function(){return B}},addEvent:{get:function(){return D}},removeEvent:{get:function(){return H}},getCaretPosition:{get:function(){return P}},getSelectionEndPosition:{get:function(){return N}},getSelectionText:{get:function(){return L}},setCaretPosition:{get:function(){return W}},getScrollbarWidth:{get:function(){return F}},hasVerticalScrollbar:{get:function(){return j}},hasHorizontalScrollbar:{get:function(){return V}},setOverlayPosition:{get:function(){return z}},getCssTransform:{get:function(){return Y}},resetCssTransform:{get:function(){return U}},isInput:{get:function(){return G}},isOutsideInput:{get:function(){return $}},__esModule:{value:!0}});var K,X,q,Z,Q,J=(K=e("../browser"),K&&K.__esModule&&K||{default:K}),ee=J.isIE8,te=J.isIE9,ne=J.isSafari,oe=(X=e("../feature"),X&&X.__esModule&&X||{default:X}).hasCaptionProblem,ie=!!document.documentElement.classList;if(ie){var re=function(){var e=document.createElement("div");return e.classList.add("test","test2"),e.classList.contains("test2")}();q=function(e,t){return""!==t&&e.classList.contains(t)},Z=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=c(t),re)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},Q=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=c(t),re)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var se=function(e){return new RegExp("(\\s|^)"+e+"(\\s|$)")};q=function(e,t){return!!e.className.match(se(t))},Z=function(e,t){var n=0,o=e.className;if("string"==typeof t&&(t=t.split(" ")),""===o)o=t.join(" ");else for(;t&&t[n];)se(t[n]).test(o)||(o+=" "+t[n]),n++;e.className=o},Q=function(e,t){var n=0,o=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)o=o.replace(se(t[n])," ").trim(),n++;e.className!==o&&(e.className=o)}}var ae,le=/(<(.*)>|&(.*);)/,ue=!!document.createTextNode("test").textContent},{"../browser":44,"../feature":49}],48:[function(e,t,n){"use strict";function o(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function i(e){return e.isImmediatePropagationEnabled===!1}function r(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+f()}function a(e){return e.pageY?e.pageY:e.clientY+h()}function l(e){return 2===e.button}function u(e){return 0===e.button}Object.defineProperties(n,{stopImmediatePropagation:{get:function(){return o}},isImmediatePropagationStopped:{get:function(){return i}},stopPropagation:{get:function(){return r}},pageX:{get:function(){return s}},pageY:{get:function(){return a}},isRightClick:{get:function(){return l}},isLeftClick:{get:function(){return u}},__esModule:{value:!0}});var d,c=(d=e("element"),d&&d.__esModule&&d||{default:d}),h=c.getWindowScrollTop,f=c.getWindowScrollLeft},{element:47}],49:[function(e,t,n){"use strict";function o(e){return h.call(window,e)}function i(e){f.call(window,e)}function r(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!e.createShadowRoot.toString().match(/\[native code\]/))}function a(){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 n=document.createElement("CAPTION");n.innerHTML="c<br>c<br>c<br>c",n.style.padding=0,n.style.margin=0,e.insertBefore(n,t),document.body.appendChild(e),m=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}function l(){return void 0===m&&a(),m}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(n,{requestAnimationFrame:{get:function(){return o}},cancelAnimationFrame:{get:function(){return i}},isTouchSupported:{get:function(){return r}},isWebComponentSupportedNatively:{get:function(){return s}},hasCaptionProblem:{get:function(){return l}},getComparisonFunction:{get:function(){return u}},__esModule:{value:!0}});for(var d=0,c=["ms","moz","webkit","o"],h=window.requestAnimationFrame,f=window.cancelAnimationFrame,p=0;p<c.length&&!h;++p)h=window[c[p]+"RequestAnimationFrame"],f=window[c[p]+"CancelAnimationFrame"]||window[c[p]+"CancelRequestAnimationFrame"];h||(h=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-d)),o=window.setTimeout(function(){e(t+n)},n);return d=t+n,o}),f||(f=function(e){clearTimeout(e)});var m,g},{}],50:[function(e,t,n){"use strict";function o(e){return"function"==typeof e}function i(e,t){return function(){return e.apply(t,arguments)}}function r(e){function t(){var t=this,s=arguments,a=Date.now(),l=!1;i.lastCallThrottled=!0,o||(o=a,l=!0);var u=n-(a-o);return l?(i.lastCallThrottled=!1,e.apply(this,s)):(r&&clearTimeout(r),r=setTimeout(function(){i.lastCallThrottled=!1,e.apply(t,s),o=0,r=void 0},u)),i}var n=void 0!==arguments[1]?arguments[1]:200,o=0,i={lastCallThrottled:!0},r=null;return t}function s(e){function t(){a=i}function n(){return a?(a--,e.apply(this,arguments)):s.apply(this,arguments)}var o=void 0!==arguments[1]?arguments[1]:200,i=void 0!==arguments[2]?arguments[2]:10,s=r(e,o),a=i;return n.clearHits=t,n}function a(e){function t(){var t=this,r=arguments;return i&&clearTimeout(i),i=setTimeout(function(){n=e.apply(t,r)},o),n}var n,o=void 0!==arguments[1]?arguments[1]:200,i=null;return t}function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e,o=n[0],i=Array.prototype.slice.call(n,1);return function(){return f(i,function(e,t){return t(e)},o.apply(this,arguments))}}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return e.apply(this,t.concat(n))}}function d(e){function t(o){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var s,a=o.concat(i);return s=a.length>=n?e.apply(this,a):t(a)}}var n=e.length;return t([])}function c(e){function t(o){return function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var s,a=o.concat(i.reverse());return s=a.length>=n?e.apply(this,a):t(a)}}var n=e.length;return t([])}Object.defineProperties(n,{isFunction:{get:function(){return o}},proxy:{get:function(){return i}},throttle:{get:function(){return r}},throttleAfterHits:{get:function(){return s}},debounce:{get:function(){return a}},pipe:{get:function(){return l}},partial:{get:function(){return u}},curry:{get:function(){return d}},curryRight:{get:function(){return c}},__esModule:{value:!0}});var h,f=(h=e("array"),h&&h.__esModule&&h||{default:h}).arrayReduce},{array:43}],51:[function(e,t,n){"use strict";function o(e){switch(typeof e){case"string":case"number":return e+"";case"object":return null===e?"":e.toString();case"undefined":return"";default:return e.toString()}}function i(e){return"undefined"!=typeof e}function r(e){return"undefined"==typeof e}Object.defineProperties(n,{stringify:{get:function(){return o}},isDefined:{get:function(){return i}},isUndefined:{get:function(){return r}},__esModule:{value:!0}})},{}],52:[function(e,t,n){"use strict";function o(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)):"object"==t&&!(!e||"number"!=typeof e.valueOf()||e instanceof Date)}function i(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&n(o)!==!1;);}function r(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&n(o)!==!1;);}function s(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100)}Object.defineProperties(n,{isNumeric:{get:function(){return o}},rangeEach:{get:function(){return i}},rangeEachReverse:{get:function(){return r}},valueAccordingPercent:{get:function(){return s}},__esModule:{value:!0}})},{}],53:[function(e,t,n){"use strict";function o(e){var t;return Array.isArray(e)?t=[]:(t={},p(e,function(e,n){e&&"object"==typeof e&&!Array.isArray(e)?t[n]=o(e):Array.isArray(e)?e.length&&"object"==typeof e[0]&&!Array.isArray(e[0])?t[n]=[o(e[0])]:t[n]=[]:t[n]=null})),t}function i(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function r(e,t){return p(t,function(t,n){e[n]=t}),e}function s(e,t){p(t,function(n,o){t[o]&&"object"==typeof t[o]?(e[o]||(Array.isArray(t[o])?e[o]=[]:"[object Date]"===Object.prototype.toString.call(t[o])?e[o]=t[o]:e[o]={}),s(e[o],t[o])):e[o]=t[o]})}function a(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function l(e){var t={};return p(e,function(e,n){t[n]=e}),t}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.MIXINS||(e.MIXINS=[]),v(t,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,n){if(void 0!==e.prototype[n])throw new Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[n]=t;else{var o=function(e,t){e="_"+e;var n=function(e){return(Array.isArray(e)||c(e))&&(e=a(e)),e};return function(){return void 0===this[e]&&(this[e]=n(t)),this[e]}},i=function(e){return e="_"+e,function(t){this[e]=t}};Object.defineProperty(e.prototype,n,{get:o(n,t),set:i(n),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 n,o=e.constructor;"function"==typeof e.constructor&&(n=o,delete e.constructor&&(o=e.constructor,e.constructor=n)),t=o?o.prototype:null}return t}function f(e,t,n,o){o.value=n,o.writable=o.writable!==!1,o.enumerable=o.enumerable!==!1,o.configurable=o.configurable!==!1,Object.defineProperty(e,t,o)}function p(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&e.hasOwnProperty(n))&&t(e[n],n,e)===!1)break;return e}function m(e,t){var n=t.split("."),o=e;return p(n,function(e){if(o=o[e],void 0===o)return o=void 0,!1}),o}function g(e){if(!c(e))return 0;var t=function(e){var n=0;return c(e)?p(e,function(e){n+=t(e)}):n++,n};return t(e)}Object.defineProperties(n,{duckSchema:{get:function(){return o}},inherit:{get:function(){return i}},extend:{get:function(){return r}},deepExtend:{get:function(){return s}},deepClone:{get:function(){return a}},clone:{get:function(){return l}},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 p}},getProperty:{get:function(){return m}},deepObjectSize:{get:function(){return g}},__esModule:{value:!0}});var w,v=(w=e("array"),w&&w.__esModule&&w||{default:w}).arrayEach},{array:43}],54:[function(e,t,n){"use strict";function o(e,t){function n(){}r(n,e);for(var o=0,i=t.length;o<i;o++)n.prototype[t[o]]=void 0;return n}Object.defineProperties(n,{columnFactory:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("object"),i&&i.__esModule&&i||{default:i}).inherit},{object:53}],55:[function(e,t,n){"use strict";function o(e){return e[0].toUpperCase()+e.substr(1)}function i(e,t){var n=!0;return p(t.length-1,function(o){if(e.charAt(o)!==t.charAt(o))return n=!1,!1}),n}function r(e,t){var n=!0,o=t.length-1,i=e.length-1;return p(o,function(r){var s=i-r,a=o-r;if(e.charAt(s)!==t.charAt(a))return n=!1,!1}),n}function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=[],o=e.length;o--;){var i=f(e[o]).toLowerCase();n.indexOf(i)===-1&&n.push(i)}return 1===n.length}function a(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function l(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,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]})}function d(e,t){var n=void 0!==arguments[2]?arguments[2]:" ";if(e+="",e.length>=t)return e;n=String(n);var o=n.length;o||(n=" ");var i=t-e.length,r=Math.ceil(i/n.length),s="";return p(r,function(e){s+=n}),s=s.slice(0,i),s+e}Object.defineProperties(n,{toUpperCaseFirst:{get:function(){return o}},startsWith:{get:function(){return i}},endsWith:{get:function(){return r}},equalsIgnoreCase:{get:function(){return s}},randomString:{get:function(){return a}},isPercentValue:{get:function(){return l}},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,p=(h=e("number"),h&&h.__esModule&&h||{default:h}).rangeEach},{mixed:51,number:52}],56:[function(e,t,n){"use strict";function o(e){return 32==e||e>=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function i(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 t.indexOf(e)!==-1}function r(e){return[u.CONTROL_LEFT,224,u.COMMAND_LEFT,u.COMMAND_RIGHT].indexOf(e)!==-1}function s(e,t){var n=t.split("|"),o=!1;return l(n,function(t){if(e===u[t])return o=!0,!1}),o}Object.defineProperties(n,{KEY_CODES:{get:function(){return u}},isPrintableChar:{get:function(){return o}},isMetaKey:{get:function(){return i}},isCtrlKey:{get:function(){return r}},isKey:{get:function(){return s}},__esModule:{value:!0}});var a,l=(a=e("array"),a&&a.__esModule&&a||{default:a}).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:43}],57:[function(e,t,n){"use strict";Object.defineProperties(n,{arrayMapper:{get:function(){return m}},__esModule:{value:!0}});var o,i,r,s,a=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,l=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}),u=(l.arrayEach,l.arrayReduce),d=l.arrayMap,c=l.arrayMax,h=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).defineGetter,f=(s=e("helpers/number"),s&&s.__esModule&&s||{default:s}).rangeEach,p="arrayMapper",m={_arrayMap:[],getValueByIndex:function(e){var t;return void 0===(t=this._arrayMap[e])?null:t},getIndexByValue:function(e){var t;return(t=this._arrayMap.indexOf(e))===-1?null:t},insertItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,n=this,o=c(this._arrayMap)+1,i=[];return f(t-1,function(t){i.push(n._arrayMap.splice(e+t,0,o+t))}),i},removeItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,n=this,o=[];if(Array.isArray(e)){var i=[].concat(this._arrayMap);e.sort(function(e,t){return t-e}),o=u(e,function(e,t){return n._arrayMap.splice(t,1),e.concat(i.slice(t,t+1))},[])}else o=this._arrayMap.splice(e,t);return o},unshiftItems:function(e){function t(e){return u(o,function(t,n){return e>n&&t++,t},0)}var n=void 0!==arguments[1]?arguments[1]:1,o=this.removeItems(e,n);this._arrayMap=d(this._arrayMap,function(e,n){var o=t(e);return o&&(e-=o),e})},shiftItems:function(e){var t=void 0!==arguments[1]?arguments[1]:1,n=this;this._arrayMap=d(this._arrayMap,function(n){return n>=e&&(n+=t),n}),f(t-1,function(t){n._arrayMap.splice(e+t,0,e+t)})},clearMap:function(){this._arrayMap.length=0}};h(m,"MIXIN_NAME",p,{writable:!1,enumerable:!1}),a.utils.arrayMapper=m},{browser:24,"helpers/array":43,"helpers/number":52,"helpers/object":53}],58:[function(e,t,n){"use strict";Object.defineProperties(n,{localHooks:{get:function(){return d}},__esModule:{value:!0}});var o,i,r,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).arrayEach,l=(r=e("helpers/object"),r&&r.__esModule&&r||{default:r}).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=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=this;this._localHooks[e]&&a(this._localHooks[e],function(e){return e.apply(o,t)})},clearLocalHooks:function(){this._localHooks={}}};l(d,"MIXIN_NAME",u,{writable:!1,enumerable:!1}),s.utils.localHooks=d},{browser:24,"helpers/array":43,"helpers/object":53}],59:[function(e,t,n){"use strict";function o(){function e(e){return null!==e&&!n(e)&&("string"==typeof e||"number"==typeof e)}function t(e){return null!==e&&("object"==typeof e||"function"==typeof e)}function n(e){return e!==e}var o={arrayMap:[],weakMap:new WeakMap};return{get:function(n){return e(n)?o.arrayMap[n]:t(n)?o.weakMap.get(n):void 0},set:function(n,i){if(e(n))o.arrayMap[n]=i;else{if(!t(n))throw new Error("Invalid key type");o.weakMap.set(n,i)}},delete:function(n){e(n)?delete o.arrayMap[n]:t(n)&&o.weakMap.delete(n)}}}Object.defineProperties(n,{MultiMap:{get:function(){return o}},__esModule:{value:!0}}),window.MultiMap=o},{}],60:[function(e,t,n){"use strict";Object.defineProperties(n,{Hooks:{get:function(){return l}},__esModule:{value:!0}});var o,i,r=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","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","unmodifyRow","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","beforeUndo","afterUndo","beforeRedo","afterRedo"],s=(o=e("helpers/array"),o&&o.__esModule&&o||{default:o}).arrayEach,a=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}).objectEach,l=function(){this.globalBucket=this.createEmptyBucket()};$traceurRuntime.createClass(l,{createEmptyBucket:function(){var e=Object.create(null);return s(r,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 n=void 0!==arguments[2]?arguments[2]:null,o=this;if(Array.isArray(t))s(t,function(t){return o.add(e,t,n)});else{var i=this.getBucket(n);"undefined"==typeof i[e]&&(this.register(e),i[e]=[]),t.skip=!1,i[e].indexOf(t)===-1&&i[e].push(t)}return this},once:function(e,t){var n=void 0!==arguments[2]?arguments[2]:null,o=this;Array.isArray(t)?s(t,function(t){return o.once(e,t,n)}):(t.runOnce=!0,this.add(e,t,n))},remove:function(e,t){var n=void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return"undefined"!=typeof o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)},has:function(e){var t=void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)},run:function(e,t,n,o,i,r,s,a){var l=this.globalBucket[t],u=-1,d=l?l.length:0;if(d)for(;++u<d;)if(l[u]&&!l[u].skip){var c=l[u].call(e,n,o,i,r,s,a);void 0!==c&&(n=c),l[u]&&l[u].runOnce&&this.remove(t,l[u])}var h=this.getBucket(e)[t],f=-1,p=h?h.length:0;if(p)for(;++f<p;)if(h[f]&&!h[f].skip){var m=h[f].call(e,n,o,i,r,s,a);void 0!==m&&(n=m),h[f]&&h[f].runOnce&&this.remove(t,h[f],e)}return n},destroy:function(){var e=void 0!==arguments[0]?arguments[0]:null;a(this.getBucket(e),function(e,t,n){return n[t].length=0})},register:function(e){this.isRegistered(e)||r.push(e)},deregister:function(e){this.isRegistered(e)&&r.splice(r.indexOf(e),1)},isRegistered:function(e){return r.indexOf(e)>=0},getRegistered:function(){return r}},{})},{"helpers/array":43,"helpers/object":53}],61:[function(e,t,n){"use strict";function o(e,t){e=h(e),d.plugins[e]=t,d.hooks.add("construct",function(){var n;f.has(this)||f.set(this,{}),n=f.get(this),n[e]||(n[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 i(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=h(t);if(f.has(e)&&f.get(e)[n])return f.get(e)[n]}function r(e){return f.has(e)?Object.keys(f.get(e)):[]}function s(e,t){var n=null;return f.has(e)&&c(f.get(e),function(e,o){e===t&&(n=o)}),n}Object.defineProperties(n,{registerPlugin:{get:function(){return o}},getPlugin:{get:function(){return i}},getRegistredPluginNames:{get:function(){return r}},getPluginName:{get:function(){return s}},__esModule:{value:!0}});var a,l,u,d=(a=e("browser"),a&&a.__esModule&&a||{default:a}).default,c=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}).objectEach,h=(u=e("helpers/string"),u&&u.__esModule&&u||{default:u}).toUpperCaseFirst,f=new WeakMap},{browser:24,"helpers/object":53,"helpers/string":55}],62:[function(e,t,n){"use strict";Object.defineProperties(n,{default:{get:function(){return v}},__esModule:{value:!0}});var o,i,r,s,a=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,l=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}),u=l.defineGetter,d=l.objectEach,c=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,h=(s=e("plugins"),s&&s.__esModule&&s||{default:s}),f=h.getRegistredPluginNames,p=h.getPluginName,m=new WeakMap,g=null,w=function(e){var t=this;u(this,"hot",e,{writable:!1}),m.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=p(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 n=m.get(this).hooks[e]=m.get(this).hooks[e]||[];this.hot.addHook(e,t),n.push(t),m.get(this).hooks[e]=n},removeHooks:function(e){var t=this;c(m.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})},clearHooks:function(){var e=this,t=m.get(this).hooks;d(t,function(t,n){return e.removeHooks(n)}),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,n){"hot"!==n&&(e[n]=null)}),delete this.hot}},{});var v=w;a.plugins.BasePlugin=w},{browser:24,"helpers/array":43,"helpers/object":53,plugins:61}],63:[function(e,t,n){"use strict";Object.defineProperties(n,{AutoColumnSize:{get:function(){return B}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,f,p=(o=e("_base"),o&&o.__esModule&&o||{default:o}).default,m=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}),g=m.arrayEach,w=m.arrayFilter,v=(r=e("helpers/feature"),r&&r.__esModule&&r||{default:r}),b=v.cancelAnimationFrame,C=v.requestAnimationFrame,y=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}).isVisible,A=(a=e("utils/ghostTable"),a&&a.__esModule&&a||{default:a}).GhostTable,_=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}),E=_.isObject,R=(_.objectEach,u=e("helpers/number"),u&&u.__esModule&&u||{default:u}),S=R.valueAccordingPercent,M=R.rangeEach,k=(d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,T=(c=e("utils/samplesGenerator"),c&&c.__esModule&&c||{default:c}).SamplesGenerator,x=(h=e("helpers/string"),h&&h.__esModule&&h||{default:h}).isPercentValue,O=(f=e("3rdparty/walkontable/src/calculator/viewportColumns"),f&&f.__esModule&&f||{default:f}).WalkontableViewportColumnsCalculator,B=function(e){var t=this;$traceurRuntime.superConstructor(D).call(this,e),this.widths=[],this.ghostTable=new A(this.hot),this.samplesGenerator=new T(function(e,n){return t.hot.getDataAtCell(e,n)}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeColumnResize",function(e,n,o){return t.onBeforeColumnResize(e,n,o)})},D=B;$traceurRuntime.createClass(B,{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,n=t&&t.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoColumnSize.samplingRatio:void 0;
  n&&!isNaN(n)&&(this.samplesGenerator.customSampleCount=parseInt(n,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,n){return e.getColumnWidth(n,t)}),$traceurRuntime.superGet(this,D.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,D.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},n=void 0!==arguments[2]&&arguments[2],o=this;"number"==typeof e&&(e={from:e,to:e}),"number"==typeof t&&(t={from:t,to:t}),M(e.from,e.to,function(e){if(n||void 0===o.widths[e]&&!o.hot._getColWidthFromSettings(e)){var i=o.samplesGenerator.generateColumnSamples(e,t);i.forEach(function(e,t){return o.ghostTable.addColumn(t,e)})}}),this.ghostTable.columns.length&&(this.ghostTable.getWidths(function(e,t){return o.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,n=0,o=this.hot.countCols()-1,i=null;this.inProgress=!0;var r=function(){return t.hot?(t.calculateColumnsWidth({from:n,to:Math.min(n+D.CALCULATION_STEP,o)},e),n=n+D.CALCULATION_STEP+1,void(n<o?i=C(r):(b(i),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(i),void(t.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateColumnsWidth({from:0,to:this.getSyncCalculationLimit()},e),this.firstCalculation=!1,n=this.getSyncCalculationLimit()+1),n<o?r():this.inProgress=!1},recalculateAllColumnsWidth:function(){this.hot.view&&y(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllColumnsWidth())},getSyncCalculationLimit:function(){var e=D.SYNC_CALCULATION_LIMIT,t=this.hot.countCols()-1;return E(this.hot.getSettings().autoColumnSize)&&(e=this.hot.getSettings().autoColumnSize.syncLimit,x(e)?e=S(t,e):e>>=0),Math.min(e,t)},getColumnWidth:function(e){var t=arguments[1],n=void 0===arguments[2]||arguments[2],o=t;return void 0===o&&(o=this.widths[e],n&&"number"==typeof o&&(o=Math.max(o,O.DEFAULT_WIDTH))),o},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,n){return n&&(this.calculateColumnsWidth(e,void 0,!0),t=this.getColumnWidth(e,void 0,!1)),t},destroy:function(){this.ghostTable.clean(),$traceurRuntime.superGet(this,D.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 50}},p),k("autoColumnSize",B)},{"3rdparty/walkontable/src/calculator/viewportColumns":4,_base:62,"helpers/array":43,"helpers/dom/element":47,"helpers/feature":49,"helpers/number":52,"helpers/object":53,"helpers/string":55,plugins:61,"utils/ghostTable":120,"utils/samplesGenerator":122}],64:[function(e,t,n){"use strict";Object.defineProperties(n,{AutoRowSize:{get:function(){return T}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,f=(o=e("_base"),o&&o.__esModule&&o||{default:o}).default,p=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}),m=(p.arrayEach,p.arrayFilter),g=(r=e("helpers/feature"),r&&r.__esModule&&r||{default:r}),w=g.cancelAnimationFrame,v=g.requestAnimationFrame,b=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}).isVisible,C=(a=e("utils/ghostTable"),a&&a.__esModule&&a||{default:a}).GhostTable,y=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}),A=y.isObject,_=(y.objectEach,u=e("helpers/number"),u&&u.__esModule&&u||{default:u}),E=_.valueAccordingPercent,R=_.rangeEach,S=(d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,M=(c=e("utils/samplesGenerator"),c&&c.__esModule&&c||{default:c}).SamplesGenerator,k=(h=e("helpers/string"),h&&h.__esModule&&h||{default:h}).isPercentValue,T=function(e){var t=this;$traceurRuntime.superConstructor(x).call(this,e),this.heights=[],this.ghostTable=new C(this.hot),this.samplesGenerator=new M(function(e,n){return e>=0?t.hot.getDataAtCell(e,n):e===-1?t.hot.getColHeader(n):null}),this.firstCalculation=!0,this.inProgress=!1,this.addHook("beforeRowResize",function(e,n,o){return t.onBeforeRowResize(e,n,o)})},x=T;$traceurRuntime.createClass(T,{isEnabled:function(){return this.hot.getSettings().autoRowSize===!0||A(this.hot.getSettings().autoRowSize)},enablePlugin:function(){var e=this;if(!this.enabled){var t=this.hot.getSettings().autoRowSize,n=t&&t.hasOwnProperty("samplingRatio")?this.hot.getSettings().autoRowSize.samplingRatio:void 0;n&&!isNaN(n)&&(this.samplesGenerator.customSampleCount=parseInt(n,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,n){return e.onBeforeRowMove(t,n)}),this.addHook("modifyRowHeight",function(t,n){return e.getRowHeight(n,t)}),this.addHook("modifyColumnHeaderHeight",function(){return e.getColumnHeaderHeight()}),$traceurRuntime.superGet(this,x.prototype,"enablePlugin").call(this)}},disablePlugin:function(){$traceurRuntime.superGet(this,x.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},n=void 0!==arguments[2]&&arguments[2],o=this;if("number"==typeof e&&(e={from:e,to:e}),"number"==typeof t&&(t={from:t,to:t}),null!==this.hot.getColHeader(0)){var i=this.samplesGenerator.generateRowSamples(-1,t);this.ghostTable.addColumnHeadersRow(i.get(-1))}R(e.from,e.to,function(e){if(n||void 0===o.heights[e]){var i=o.samplesGenerator.generateRowSamples(e,t);i.forEach(function(e,t){return o.ghostTable.addRow(t,e)})}}),this.ghostTable.rows.length&&(this.ghostTable.getHeights(function(e,t){return o.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,n=0,o=this.hot.countRows()-1,i=null;this.inProgress=!0;var r=function(){return t.hot?(t.calculateRowsHeight({from:n,to:Math.min(n+x.CALCULATION_STEP,o)},e),n=n+x.CALCULATION_STEP+1,void(n<o?i=v(r):(w(i),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(i),void(t.inProgress=!1))};this.firstCalculation&&this.getSyncCalculationLimit()&&(this.calculateRowsHeight({from:0,to:this.getSyncCalculationLimit()},e),this.firstCalculation=!1,n=this.getSyncCalculationLimit()+1),n<o?r():this.inProgress=!1},recalculateAllRowsHeight:function(){b(this.hot.view.wt.wtTable.TABLE)&&(this.clearCache(),this.calculateAllRowsHeight())},getSyncCalculationLimit:function(){var e=x.SYNC_CALCULATION_LIMIT,t=this.hot.countRows()-1;return A(this.hot.getSettings().autoRowSize)&&(e=this.hot.getSettings().autoRowSize.syncLimit,k(e)?e=E(t,e):e>>=0),Math.min(e,t)},getRowHeight:function(e){var t=arguments[1],n=t;return void 0!==this.heights[e]&&this.heights[e]>(t||0)&&(n=this.heights[e]),n},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}),R(Math.min(e.from,e.to),Math.max(e.from,e.to),function(e){return t.heights[e]=void 0})},isNeedRecalculate:function(){return!!m(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 n=this.hot.countRows()-1;this.calculateRowsHeight({from:n-t,to:n})}this.isNeedRecalculate()&&!this.inProgress&&this.calculateAllRowsHeight()},onBeforeRowMove:function(e,t){this.clearCacheByRange({from:e,to:t}),this.calculateAllRowsHeight()},onBeforeRowResize:function(e,t,n){return n&&(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,x.prototype,"destroy").call(this)}},{get CALCULATION_STEP(){return 50},get SYNC_CALCULATION_LIMIT(){return 500}},f),S("autoRowSize",T)},{_base:62,"helpers/array":43,"helpers/dom/element":47,"helpers/feature":49,"helpers/number":52,"helpers/object":53,"helpers/string":55,plugins:61,"utils/ghostTable":120,"utils/samplesGenerator":122}],65:[function(e,t,n){"use strict";function o(e,t,n,o){var i,r,s,a,l,u=n.length,d=n?n[0].length:0,c=[],h=[];if(i=t.row-e.row,r=t.col-e.col,["down","up"].indexOf(o)!==-1){for(var f=0;f<=r;f++)s=parseInt(n[0][f],10),a=parseInt(n[u-1][f],10),l=("down"===o?a-s:s-a)/(u-1)||0,h.push(l);c.push(h)}if(["right","left"].indexOf(o)!==-1)for(var p=0;p<=i;p++)s=parseInt(n[p][0],10),a=parseInt(n[p][d-1],10),l=("right"===o?a-s:s-a)/(d-1)||0,h=[],h.push(l),c.push(h);return c}function i(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,a=!1))}function n(e){var t,n;return!!s.instance.autofill&&(t=f(s.instance.table).top-(window.pageYOffset||document.documentElement.scrollTop)+p(s.instance.table),n=f(s.instance.table).left-(window.pageXOffset||document.documentElement.scrollLeft)+m(s.instance.table),s.addingStarted===!1&&s.instance.autofill.handle.isDragged>0&&e.clientY>t&&e.clientX<=n?(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)))}var o,i,r,s=this,a=!1;this.instance=e,this.addingStarted=!1,r=g(e),r.addEventListener(document,"mouseup",t),r.addEventListener(document,"mousemove",n),o=this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown,this.instance.view.wt.wtSettings.settings.onCellCornerMouseDown=function(t){e.autofill.handle.isDragged=1,a=!0,o(t)},i=this.instance.view.wt.wtSettings.settings.onCellMouseOver,this.instance.view.wt.wtSettings.settings.onCellMouseOver=function(t,n,o,r){e.autofill&&a&&!e.view.isMouseDown()&&e.autofill.handle&&e.autofill.handle.isDragged&&(e.autofill.handle.isDragged++,e.autofill.showBorder(n),e.autofill.checkIfNewRowNeeded()),i(t,n,o,r)},this.instance.view.wt.wtSettings.settings.onCellCornerDblClick=function(){e.autofill.selectAdjacent()}}function r(e){return function(t){var n;return"direction"===t?n="string"==typeof e?e:"object"!=typeof e||void 0===e[t]||e[t]:"autoInsertRow"===t?n="object"!=typeof e||void 0===e[t]||e[t]:"fillHandle"===t&&(n=!!e),n}}Object.defineProperties(n,{Autofill:{get:function(){return i}},__esModule:{value:!0}});var s,a,l,u,d,c=(s=e("browser"),s&&s.__esModule&&s||{default:s}).default,h=(a=e("helpers/dom/element"),a&&a.__esModule&&a||{default:a}),f=h.offset,p=h.outerHeight,m=h.outerWidth,g=(l=e("eventManager"),l&&l.__esModule&&l||{default:l}).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);i.prototype.init=function(){this.handle={}},i.prototype.disable=function(){this.handle.disabled=!0},i.prototype.selectAdjacent=function(){var e,t,n,o,i;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(n=e[2]+1;n<this.instance.countRows();n++){for(i=e[1];i<=e[3];i++)if(t[n][i])break e;(t[n][e[1]-1]||t[n][e[3]+1])&&(o=n)}o&&(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(o,e[3])),this.apply())},i.prototype.apply=function(){var e,t,n,i,r,s,a,l;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",n=new w(e[0],e[1]),i=new w(e[2],t[1]-1)):e[0]===t[0]&&e[3]>t[3]?(s="right",n=new w(e[0],t[3]+1),i=new w(e[2],e[3])):e[0]<t[0]&&e[1]===t[1]?(s="up",n=new w(e[0],e[1]),i=new w(t[0]-1,e[3])):e[2]>t[2]&&e[1]===t[1]&&(s="down",n=new w(t[2]+1,e[1]),i=new w(e[2],e[3])),n&&n.row>-1&&n.col>-1?(l={from:this.instance.getSelectedRange().from,to:this.instance.getSelectedRange().to},r=this.instance.getData(l.from.row,l.from.col,l.to.row,l.to.col),a=o(n,i,r,s),c.hooks.run(this.instance,"beforeAutofill",n,i,r),this.instance.populateFromArray(n.row,n.col,r,i.row,i.col,"autofill",null,s,a),this.instance.selection.setRangeStart(new w(e[0],e[1])),this.instance.selection.setRangeEnd(new w(e[2],e[3]))):this.instance.selection.refreshBorders())},i.prototype.showBorder=function(e){var t=this.instance.getSelectedRange().getTopLeftCorner(),n=this.instance.getSelectedRange().getBottomRightCorner();if("horizontal"!==v("direction")&&(n.row<e.row||t.row>e.row))e=new w(e.row,n.col);else{if("vertical"===v("direction"))return;e=new w(n.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()},i.prototype.checkIfNewRowNeeded=function(){var e,t,n=this.instance.countRows(),o=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]<n-1&&e[2]===n-1&&(this.addingStarted=!0,this.instance._registerTimeout(setTimeout(function(){o.instance.alter("insert_row"),o.addingStarted=!1},200))))},c.hooks.add("afterInit",function(){var e=new i(this);v=r(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=i},{"3rdparty/walkontable/src/cell/coords":6,browser:24,eventManager:42,"helpers/dom/element":47,plugins:61}],66:[function(e,t,n){"use strict";Object.defineProperties(n,{ColumnSorting:{get:function(){return A}},__esModule:{value:!0}});var o,i,r,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,d=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),c=d.addClass,h=d.closest,f=d.hasClass,p=d.index,m=d.removeClass,g=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}),w=(g.arrayEach,g.arrayMap),v=g.arrayReduce,b=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,C=(a=e("_base"),a&&a.__esModule&&a||{default:a}).default,y=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).registerPlugin;u.hooks.register("beforeColumnSort"),u.hooks.register("afterColumnSort");var A=function(e){$traceurRuntime.superConstructor(_).call(this,e),this.sortIndicators=[],this.lastSortedColumn=null},_=A;$traceurRuntime.createClass(A,{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,n){return e.getColHeader(t,n)}),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,_.prototype,"enablePlugin").call(this)}},disablePlugin:function(){this.hot.sort=void 0,$traceurRuntime.superGet(this,_.prototype,"disablePlugin").call(this)},onAfterUpdateSettings:function(){this.sortBySettings()},sortBySettings:function(){var e,t,n=this.hot.getSettings().columnSorting,o=this.loadSortingState();"undefined"==typeof o?(e=n.column,t=n.sortOrder):(e=o.sortColumn,t=o.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||t,void(this.hot.sortColumn=e))},sortByColumn:function(e,t){if(this.setSortingColumn(e,t),"undefined"!=typeof this.hot.sortColumn){var n=u.hooks.run(this.hot,"beforeColumnSort",this.hot.sortColumn,this.hot.sortOrder);n!==!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=i.hot.view.TBODY.querySelector("tr"),t=1;return e&&(t=e.querySelectorAll("th").length),t}function t(t){var n=h(t,"TH");return i.hot.view.wt.wtTable.getFirstRenderedColumn()+p(n)-e()}var n=this;if(!this.bindedSortEvent){var o=b(this.hot),i=this;this.bindedSortEvent=!0,o.addEventListener(this.hot.rootElement,"click",function(e){if(f(e.target,"columnSorting")){var o=t(e.target);o!==n.lastSortedColumn&&(n.hot.sortOrder=!0),n.lastSortedColumn=o,n.sortByColumn(o)}})}},enableObserveChangesPlugin:function(){var e=this;this.hot._registerTimeout(setTimeout(function(){e.hot.updateSettings({observeChanges:!0})},0))},defaultSort:function(e){return function(t,n){return"string"==typeof t[1]&&(t[1]=t[1].toLowerCase()),"string"==typeof n[1]&&(n[1]=n[1].toLowerCase()),t[1]===n[1]?0:null===t[1]||""===t[1]?1:null===n[1]||""===n[1]?-1:isNaN(t[1])&&!isNaN(n[1])?e?1:-1:!isNaN(t[1])&&isNaN(n[1])?e?-1:1:(isNaN(t[1])||isNaN(n[1])||(t[1]=parseFloat(t[1]),n[1]=parseFloat(n[1])),t[1]<n[1]?e?-1:1:t[1]>n[1]?e?1:-1:0)}},dateSort:function(e){return function(t,n){if(t[1]===n[1])return 0;if(null===t[1]||""===t[1])return 1;if(null===n[1]||""===n[1])return-1;var o=new Date(t[1]),i=new Date(n[1]);return o<i?e?-1:1:o>i?e?1:-1:0}},numericSort:function(e){return function(t,n){var o=parseFloat(t[1]),i=parseFloat(n[1]);return o===i||isNaN(o)&&isNaN(i)?0:isNaN(o)?1:isNaN(i)?-1:o<i?e?-1:1:o>i?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 n=0,o=this.hot.countRows()-this.hot.getSettings().minSpareRows;n<o;n++)this.hot.sortIndex.push([n,this.hot.getDataAtCell(n,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 i=this.hot.sortIndex.length;i<this.hot.countRows();i++)this.hot.sortIndex.push([i,this.hot.getDataAtCell(i,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){if(e<0||!t.parentNode)return!1;var n=t.querySelector(".colHeader"),o=(t.getAttribute("colspan"),t.parentNode.parentNode.childNodes),i=Array.prototype.indexOf.call(o,t.parentNode);i-=o.length,n&&(this.hot.getSettings().columnSorting&&e>=0&&i===-1&&c(n,"columnSorting"),m(n,"descending"),m(n,"ascending"),this.sortIndicators[e]&&e===this.hot.sortColumn&&("ascending"===this.sortOrderClass?c(n,"ascending"):"descending"===this.sortOrderClass&&c(n,"descending")))},isSorted:function(){return"undefined"!=typeof this.hot.sortColumn},afterCreateRow:function(e,t){if(this.isSorted()){for(var n=0;n<this.hot.sortIndex.length;n++)this.hot.sortIndex[n][0]>=e&&(this.hot.sortIndex[n][0]+=t);for(var n=0;n<t;n++)this.hot.sortIndex.splice(e+n,0,[e+n,this.hot.getSourceData()[e+n][this.hot.sortColumn+this.hot.colOffset()]]);this.saveSortingState()}},afterRemoveRow:function(e,t){function n(e){return v(o,function(t,n){return e>n&&t++,t},0)}if(this.isSorted()){var o=this.hot.sortIndex.splice(e,t);o=w(o,function(e){return e[0]}),this.hot.sortIndex=w(this.hot.sortIndex,function(e,t){var o=n(e[0]);return o&&(e[0]-=o),e}),this.saveSortingState()}}},{},C),y("columnSorting",A)},{_base:62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,plugins:61}],67:[function(e,t,n){"use strict";Object.defineProperties(n,{CommentEditor:{get:function(){return r}},__esModule:{value:!0}});var o,i=(o=e("helpers/dom/element"),o&&o.__esModule&&o||{default:o}).addClass,r=function(){this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.editorStyle.position="absolute",this.editorStyle.zIndex=100,this.hide()},s=r;$traceurRuntime.createClass(r,{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,n=document.querySelector("."+s.CLASS_EDITOR_CONTAINER);return n||(n=document.createElement("div"),i(n,s.CLASS_EDITOR_CONTAINER),document.body.appendChild(n)),e=document.createElement("div"),i(e,s.CLASS_EDITOR),t=document.createElement("textarea"),i(t,s.CLASS_INPUT),e.appendChild(t),n.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":47}],68:[function(e,t,n){"use strict";Object.defineProperties(n,{Comments:{get:function(){return _}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),h=c.addClass,f=c.closest,p=c.getWindowScrollLeft,m=c.getWindowScrollTop,g=c.hasClass,w=c.offset,v=(r=e("eventManager"),r&&r.__esModule&&r||{default:r}).EventManager,b=(s=e("3rdparty/walkontable/src/cell/coords"),s&&s.__esModule&&s||{default:s}).WalkontableCellCoords,C=(a=e("plugins"),a&&a.__esModule&&a||{default:a}).registerPlugin,y=(l=e("_base"),l&&l.__esModule&&l||{default:l}).default,A=(u=e("commentEditor"),u&&u.__esModule&&u||{default:u}).CommentEditor,_=function(e){$traceurRuntime.superConstructor(E).call(this,e),this.editor=null,this.eventManager=null,this.range={},this.mouseDown=!1,this.contextMenuEvent=!1,this.timer=null},E=_;$traceurRuntime.createClass(_,{isEnabled:function(){return this.hot.getSettings().comments},enablePlugin:function(){var e=this;this.enabled||(this.editor||(this.editor=new A),this.eventManager||(this.eventManager=new v(this)),this.addHook("afterContextMenuDefaultOptions",function(t){return e.addToContextMenu(t)}),this.addHook("afterRenderer",function(t,n,o,i,r,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,E.prototype,"enablePlugin").call(this))},disablePlugin:function(){$traceurRuntime.superGet(this,E.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,n=this.range.from.col;this.hot.setCellMeta(t,n,"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];if(e||this.range.from&&this.editor.isVisible()){var t=this.hot.view.wt.wtTable.getCell(this.range.from),n=w(t),o=this.hot.getColWidth(this.range.from.col),i=n.top,r=n.left,s=0,a=0;this.hot.view.wt.wtViewport.hasVerticalScroll()&&(i-=this.hot.view.wt.wtOverlays.topOverlay.getScrollPosition(),s=20),this.hot.view.wt.wtViewport.hasHorizontalScroll()&&(r-=this.hot.view.wt.wtOverlays.leftOverlay.getScrollPosition(),a=20);var l=r+o,u=i,d=this.hot.view.wt.wtTable.holder.getBoundingClientRect(),c={left:d.left+p()+a,right:d.right+p()-15,top:d.top+m()+s,bottom:d.bottom+m()};l<=c.left||l>c.right||u<=c.top||u>c.bottom?this.hide():this.editor.setPosition(l,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),n={from:new b(t.row,t.col)};this.setRange(n),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,n=e.from;return this.hot.getCellMeta(n.row,n.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()&&!this.selection.selectedHeader.corner)}},{key:"commentsRemove",name:function(){return"Delete Comment"},callback:function(e,n){return t.onContextMenuRemoveComment(e,n)},disabled:function(){return t.hot.selection.selectedHeader.corner||!t.checkSelectionCommentsConsistency()}})},destroy:function(){this.editor&&this.editor.destroy(),$traceurRuntime.superGet(this,E.prototype,"destroy").call(this)}},{},y),C("comments",_)},{"3rdparty/walkontable/src/cell/coords":6,_base:62,browser:24,commentEditor:67,eventManager:42,"helpers/dom/element":47,plugins:61}],69:[function(e,t,n){"use strict";function o(e,t){var n;return r(t,function(t){var o=t.key?t.key.split(":"):null;if(Array.isArray(o)&&o[1]===e)return n=t,!1}),n}Object.defineProperties(n,{CommandExecutor:{get:function(){return s}},__esModule:{value:!0}});var i,r=(i=e("helpers/array"),i&&i.__esModule&&i||{default:i}).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=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=this,s=e.split(":");e=s[0];var a=2===s.length?s[1]:null,l=this.commands[e];if(!l)throw new Error("Menu command '"+e+"' not exists.");if(a&&l.submenu&&(l=o(a,l.submenu.items)),l.disabled!==!0&&("function"!=typeof l.disabled||l.disabled.call(this.hot)!==!0)&&!l.hasOwnProperty("submenu")){var u=[];"function"==typeof l.callback&&u.push(l.callback),"function"==typeof this.commonCallback&&u.push(this.commonCallback),t.unshift(s.join(":")),r(u,function(e){return e.apply(i.hot,t)})}}},{})},{"helpers/array":43}],70:[function(e,t,n){"use strict";Object.defineProperties(n,{ContextMenu:{get:function(){return V}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,l,f,p=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,m=(i=e("_base"),i&&i.__esModule&&i||{default:i}).default,g=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,w=(s=e("commandExecutor"),s&&s.__esModule&&s||{default:s}).CommandExecutor,v=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,b=(l=e("helpers/dom/element"),l&&l.__esModule&&l||{default:l}).hasClass,C=(u=e("itemsFactory"),u&&u.__esModule&&u||{default:u}).ItemsFactory,y=(d=e("menu"),d&&d.__esModule&&d||{default:d}).Menu,A=(c=e("plugins"),c&&c.__esModule&&c||{default:c}).registerPlugin,_=(h=e("helpers/dom/event"),h&&h.__esModule&&h||{default:h}),E=_.stopPropagation,R=_.pageX,S=_.pageY,M=(l=e("helpers/dom/element"),l&&l.__esModule&&l||{default:l}),k=M.getWindowScrollLeft,T=M.getWindowScrollTop,x=(f=e("predefinedItems"),f&&f.__esModule&&f||{default:f}),O=x.ROW_ABOVE,B=x.ROW_BELOW,D=x.COLUMN_LEFT,H=x.COLUMN_RIGHT,P=x.REMOVE_ROW,N=x.REMOVE_COLUMN,L=x.UNDO,W=x.REDO,I=x.READ_ONLY,F=x.ALIGNMENT,j=x.SEPARATOR,V=function(e){$traceurRuntime.superConstructor(z).call(this,e),this.eventManager=new v(this),this.commandExecutor=new w(this.hot),this.itemsFactory=null,this.menu=null},z=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,z.DEFAULT_ITEMS);var t=this.hot.getSettings().contextMenu,n={items:this.itemsFactory.getItems(t)};this.registerEvents(),"function"==typeof t.callback&&this.commandExecutor.setCommonCallback(t.callback),$traceurRuntime.superGet(this,z.prototype,"enablePlugin").call(this),this.callOnPluginsReady(function(){e.hot.runHooks("afterContextMenuDefaultOptions",n),e.itemsFactory.setPredefinedItems(n.items);var o=e.itemsFactory.getItems(t);e.menu=new y(e.hot,{className:"htContextMenu",keepInViewport:!0}),e.hot.runHooks("beforeContextMenuSetItems",o),e.menu.setMenuItems(o),e.menu.addLocalHook("afterOpen",function(){return e.onMenuAfterOpen()}),e.menu.addLocalHook("afterClose",function(){return e.onMenuAfterClose()}),e.menu.addLocalHook("executeCommand",function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.executeCommand.apply(e,t)}),g(o,function(t){return e.commandExecutor.registerCommand(t.key,t)})})}},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,z.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.close(),this.menu&&(this.menu.destroy(),this.menu=null),$traceurRuntime.superGet(this,z.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(S(e),10)-T(),left:parseInt(R(e),10)-k()}),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)},onContextMenu:function(e){function t(e){return"TD"===e.nodeName||"TD"===e.parentNode.nodeName}var n=this.hot.getSettings(),o=n.rowHeaders,i=n.colHeaders,r=e.realTarget;this.close(),b(r,"handsontableInput")||(e.preventDefault(),E(e),(o||i||t(r)||b(r,"current")&&b(r,"wtBorder"))&&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,z.prototype,"destroy").call(this)}},{get DEFAULT_ITEMS(){return[O,B,j,D,H,j,P,N,j,L,W,j,I,j,F]}},m),V.SEPARATOR={name:j},p.hooks.register("afterContextMenuDefaultOptions"),p.hooks.register("afterContextMenuShow"),p.hooks.register("afterContextMenuHide"),p.hooks.register("afterContextMenuExecute"),A("contextMenu",V)},{_base:62,browser:24,commandExecutor:69,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,itemsFactory:72,menu:73,plugins:61,predefinedItems:74}],71:[function(e,t,n){"use strict";Object.defineProperties(n,{Cursor:{get:function(){return f}},__esModule:{value:!0}});var o,i,r,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),l=a.getWindowScrollLeft,u=a.getWindowScrollTop,d=(r=e("helpers/dom/event"),r&&r.__esModule&&r||{default:r}),c=d.pageX,h=d.pageY,f=function(e){var t,n,o,i,r,s,a=u(),d=l();this.type=this.getSourceType(e),"literal"===this.type?(t=parseInt(e.top,10),o=parseInt(e.left,10),r=e.height||0,s=e.width||0,n=t,i=o,t+=a,o+=d):"event"===this.type&&(t=parseInt(h(e),10),o=parseInt(c(e),10),r=e.target.clientHeight,s=e.target.clientWidth,n=t-a,i=o-d),this.top=t,this.topRelative=n,this.left=o,this.leftRelative=i,this.scrollTop=a,this.scrollLeft=d,this.cellHeight=r,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:24,"helpers/dom/element":47,"helpers/dom/event":48}],72:[function(e,t,n){"use strict";function o(){var e=void 0!==arguments[0]?arguments[0]:null,t=void 0!==arguments[1]?arguments[1]:[],n=void 0!==arguments[2]?arguments[2]:{},o=[];return e&&e.items?e=e.items:Array.isArray(e)||(e=t),u(e)?l(e,function(e,t){var i=n["string"==typeof e?e:t];i||(i=e),u(e)?d(i,e):"string"==typeof i&&(i={name:i}),void 0===i.key&&(i.key=t),o.push(i)}):c(e,function(e,t){var i=n[e];!i&&p.indexOf(e)>=0||(i||(i={name:e,key:t+""}),u(e)&&d(i,e),void 0===i.key&&(i.key=t),o.push(i))}),o}Object.defineProperties(n,{ItemsFactory:{get:function(){return g}},__esModule:{value:!0}});var i,r,s,a=(i=e("helpers/object"),i&&i.__esModule&&i||{default:i}),l=a.objectEach,u=a.isObject,d=a.extend,c=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,h=(s=e("predefinedItems"),s&&s.__esModule&&s||{default:s}),f=h.SEPARATOR,p=h.ITEMS,m=h.predefinedItems,g=function(e){var t=void 0!==arguments[1]?arguments[1]:null;this.hot=e,this.predefinedItems=m(),this.defaultOrderPattern=t};$traceurRuntime.createClass(g,{setPredefinedItems:function(e){var t=this,n={};this.defaultOrderPattern.length=0,l(e,function(e,o){var i="";e.name===f?(n[f]=e,i=f):isNaN(parseInt(o,10))?(e.key=void 0===e.key?o:e.key,n[o]=e,i=e.key):(n[e.key]=e,i=e.key),t.defaultOrderPattern.push(i)}),this.predefinedItems=n},getItems:function(){var e=void 0!==arguments[0]?arguments[0]:null;return o(e,this.defaultOrderPattern,this.predefinedItems)}},{})},{"helpers/array":43,"helpers/object":53,predefinedItems:74}],73:[function(e,t,n){"use strict";Object.defineProperties(n,{Menu:{get:function(){return z}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,f,p,m=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,g=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),w=g.addClass,v=g.empty,b=g.fastInnerHTML,C=g.getScrollbarWidth,y=g.isChildOf,A=g.removeClass,_=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}),E=_.arrayEach,R=_.arrayFilter,S=_.arrayReduce,M=(s=e("cursor"),s&&s.__esModule&&s||{default:s}).Cursor,k=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,T=(l=e("helpers/object"),l&&l.__esModule&&l||{default:l}).mixin,x=(u=e("helpers/function"),u&&u.__esModule&&u||{default:u}).debounce,O=(d=e("utils"),d&&d.__esModule&&d||{default:d}),B=O.filterSeparators,D=O.hasSubMenu,H=O.isDisabled,P=O.isItemHidden,N=O.isSeparator,L=O.isSelectionDisabled,W=O.normalizeSelection,I=(c=e("helpers/unicode"),c&&c.__esModule&&c||{default:c}).KEY_CODES,F=(h=e("mixins/localHooks"),h&&h.__esModule&&h||{default:h}).localHooks,j=(f=e("predefinedItems"),f&&f.__esModule&&f||{default:f}).SEPARATOR,V=(p=e("helpers/dom/event"),p&&p.__esModule&&p||{default:p}).stopImmediatePropagation,z=function(e,t){this.hot=e,this.options=t||{parent:null,name:null,className:"",keepInViewport:!0,standalone:!1},this.eventManager=new k(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()},Y=z;$traceurRuntime.createClass(z,{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=x(function(t){return e.openSubMenu(t)},300),n=R(this.menuItems,function(t){return P(t,e.hot)});n=B(n,j);var o={data:n,colHeaders:!1,colWidths:[200],autoRowSize:!1,readOnly:!0,copyPaste:!1,columns:[{data:"name",renderer:function(t,n,o,i,r,s){return e.menuItemRenderer(t,n,o,i,r,s)}}],renderAllRows:!0,fragmentSelection:"cell",disableVisualSelection:"area",beforeKeyDown:function(t){return e.onBeforeKeyDown(t)},afterOnCellMouseOver:function(n,o,i){e.isAllSubMenusClosed()?t(o.row):e.openSubMenu(o.row)}};this.origOutsideClickDeselects=this.hot.getSettings().outsideClickDeselects,this.hot.getSettings().outsideClickDeselects=!1,this.hotMenu=new m.Core(this.container,o),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];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"),this.parentMenu&&this.parentMenu.hotMenu.listen()))},openSubMenu:function(e){if(!this.hotMenu)return!1;var t=this.hotMenu.getCell(e,0);if(this.closeAllSubMenus(),!t||!D(t))return!1;var n=this.hotMenu.getSourceDataAtRow(e),o=new Y(this.hot,{parent:this,name:n.name,className:this.options.className,keepInViewport:!0});return o.setMenuItems(n.submenu.items),o.open(),o.setPosition(t.getBoundingClientRect()),this.hotSubMenus[n.key]=o,o},closeSubMenu:function(e){var t=this.hotMenu.getSourceDataAtRow(e),n=this.hotSubMenus[t.key];n&&(n.destroy(),delete this.hotSubMenus[t.key])},closeAllSubMenus:function(){var e=this;E(this.hotMenu.getData(),function(t,n){return e.closeSubMenu(n)})},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 n=this.hot.getSelectedRange(),o=n?W(n):{},i=!0;(t.disabled===!0||"function"==typeof t.disabled&&t.disabled.call(this.hot)===!0||t.submenu)&&(i=!1),this.runLocalHooks("executeCommand",t.key,o,e),this.isSubMenu()&&this.parentMenu.runLocalHooks("executeCommand",t.key,o,e),i&&this.close(!0)}}},setPosition:function(e){var t=new M(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);N(e)||H(e)||L(e)?this.selectNextCell(0,0):this.hotMenu.selectCell(0,0)},selectLastCell:function(){var e=this.hotMenu.countRows()-1,t=this.hotMenu.getCell(e,0);N(t)||H(t)||L(t)?this.selectPrevCell(e,0):this.hotMenu.selectCell(e,0)},selectNextCell:function(e,t){var n=e+1,o=n<this.hotMenu.countRows()?this.hotMenu.getCell(n,t):null;o&&(N(o)||H(o)||L(o)?this.selectNextCell(n,t):this.hotMenu.selectCell(n,t))},selectPrevCell:function(e,t){var n=e-1,o=n>=0?this.hotMenu.getCell(n,t):null;o&&(N(o)||H(o)||L(o)?this.selectPrevCell(n,t):this.hotMenu.selectCell(n,t))},menuItemRenderer:function(e,t,n,o,i,r){var s=this,a=e.getSourceDataAtRow(n),l=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 r&&(r=r.call(this.hot)),v(t),w(l,"htItemWrapper"),t.appendChild(l),d(a)?w(t,"htSeparator"):"function"==typeof a.renderer?(w(t,"htCustomMenuRenderer"),t.appendChild(a.renderer(e,l,n,o,i,r))):b(l,r),c(a)?(w(t,"htDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):h(a)?(w(t,"htSelectionDisabled"),this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()})):u(a)?(w(t,"htSubmenu"),h(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!1)})):(A(t,"htSubmenu"),A(t,"htDisabled"),h(a)?this.eventManager.addEventListener(t,"mouseenter",function(){return e.deselectCell()}):this.eventManager.addEventListener(t,"mouseenter",function(){return e.selectCell(n,o,void 0,void 0,!1,!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(),n=!1;switch(e.keyCode){case I.ESCAPE:this.close(),n=!0;break;case I.ENTER:t&&(this.hotMenu.getSourceDataAtRow(t[0]).submenu?n=!0:(this.executeCommand(e),this.close(!0)));break;case I.ARROW_DOWN:t?this.selectNextCell(t[0],t[1]):this.selectFirstCell(),n=!0;break;case I.ARROW_UP:t?this.selectPrevCell(t[0],t[1]):this.selectLastCell(),n=!0;break;case I.ARROW_RIGHT:if(t){var o=this.openSubMenu(t[0]);o&&o.selectFirstCell()}n=!0;break;case I.ARROW_LEFT:t&&this.isSubMenu()&&(this.close(),this.parentMenu&&this.parentMenu.hotMenu.listen(),n=!0)}n&&(e.preventDefault(),V(e))},onAfterInit:function(){var e=this.hotMenu.getSettings().data,t=this.hotMenu.view.wt.wtTable.hider.style,n=this.hotMenu.view.wt.wtTable.holder.style,o=parseInt(t.width,10),i=S(e,function(e,t){return e+(t.name===j?1:26)},0);n.width=o+22+"px",n.height=i+4+"px",t.height=n.height},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))}},{}),T(z,F)},{browser:24,cursor:71,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/function":50,"helpers/object":53,"helpers/unicode":56,"mixins/localHooks":58,predefinedItems:74,utils:87}],74:[function(e,t,n){"use strict";function o(){var e={};return b(oe,function(t,n){return e[n]=t()}),e}function i(e,t){ne.indexOf(e)===-1&&(oe[e]=t)}var r;Object.defineProperties(n,{ALIGNMENT:{get:function(){return a.KEY}},CLEAR_COLUMN:{get:function(){return l.KEY}},COLUMN_LEFT:{get:function(){return u.KEY}},COLUMN_RIGHT:{get:function(){return d.KEY}},READ_ONLY:{get:function(){return c.KEY}},REDO:{get:function(){return h.KEY}},REMOVE_COLUMN:{get:function(){return f.KEY}},REMOVE_ROW:{get:function(){return p.KEY}},ROW_ABOVE:{get:function(){return m.KEY}},ROW_BELOW:{get:function(){return g.KEY}},SEPARATOR:{get:function(){return w.KEY}},UNDO:{get:function(){return v.KEY}},ITEMS:{get:function(){return ne}},predefinedItems:{get:function(){return o}},addItem:{get:function(){return i}},__esModule:{value:!0}});var s,a,l,u,d,c,h,f,p,m,g,w,v,a,l,u,d,c,h,f,p,m,g,w,v,b=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).objectEach,C=(a=e("predefinedItems/alignment"),a&&a.__esModule&&a||{default:a}),y=C.alignmentItem,A=C.KEY,_=(l=e("predefinedItems/clearColumn"),l&&l.__esModule&&l||{default:l}),E=_.clearColumnItem,R=_.KEY,S=(u=e("predefinedItems/columnLeft"),u&&u.__esModule&&u||{default:u}),M=S.columnLeftItem,k=S.KEY,T=(d=e("predefinedItems/columnRight"),d&&d.__esModule&&d||{default:d}),x=T.columnRightItem,O=T.KEY,B=(c=e("predefinedItems/readOnly"),c&&c.__esModule&&c||{default:c}),D=B.readOnlyItem,H=B.KEY,P=(h=e("predefinedItems/redo"),h&&h.__esModule&&h||{default:h}),N=P.redoItem,L=P.KEY,W=(f=e("predefinedItems/removeColumn"),f&&f.__esModule&&f||{default:f}),I=W.removeColumnItem,F=W.KEY,j=(p=e("predefinedItems/removeRow"),p&&p.__esModule&&p||{default:p}),V=j.removeRowItem,z=j.KEY,Y=(m=e("predefinedItems/rowAbove"),m&&m.__esModule&&m||{default:m}),U=Y.rowAboveItem,G=Y.KEY,$=(g=e("predefinedItems/rowBelow"),g&&g.__esModule&&g||{default:g}),K=$.rowBelowItem,X=$.KEY,q=(w=e("predefinedItems/separator"),w&&w.__esModule&&w||{default:w}),Z=q.separatorItem,Q=q.KEY,J=(v=e("predefinedItems/undo"),v&&v.__esModule&&v||{default:v}),ee=J.undoItem,te=J.KEY,a=(a=e("predefinedItems/alignment"),a&&a.__esModule&&a||{default:a}),l=(l=e("predefinedItems/clearColumn"),l&&l.__esModule&&l||{default:l}),u=(u=e("predefinedItems/columnLeft"),u&&u.__esModule&&u||{default:u}),d=(d=e("predefinedItems/columnRight"),d&&d.__esModule&&d||{default:d}),c=(c=e("predefinedItems/readOnly"),c&&c.__esModule&&c||{default:c}),h=(h=e("predefinedItems/redo"),h&&h.__esModule&&h||{default:h}),f=(f=e("predefinedItems/removeColumn"),f&&f.__esModule&&f||{default:f}),p=(p=e("predefinedItems/removeRow"),p&&p.__esModule&&p||{default:p}),m=(m=e("predefinedItems/rowAbove"),m&&m.__esModule&&m||{default:m}),g=(g=e("predefinedItems/rowBelow"),g&&g.__esModule&&g||{default:g}),w=(w=e("predefinedItems/separator"),w&&w.__esModule&&w||{default:w}),v=(v=e("predefinedItems/undo"),v&&v.__esModule&&v||{default:v}),ne=[G,X,k,O,R,z,F,te,L,H,A,Q],oe=(r={},Object.defineProperty(r,Q,{value:Z,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,G,{value:U,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,X,{value:K,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,k,{value:M,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,O,{value:x,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,R,{value:E,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,z,{value:V,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,F,{value:I,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,te,{value:ee,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,L,{value:N,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,H,{value:D,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(r,A,{value:y,configurable:!0,enumerable:!0,writable:!0}),r)},{"helpers/object":53,"predefinedItems/alignment":75,"predefinedItems/clearColumn":76,"predefinedItems/columnLeft":77,"predefinedItems/columnRight":78,"predefinedItems/readOnly":79,"predefinedItems/redo":80,"predefinedItems/removeColumn":81,"predefinedItems/removeRow":82,"predefinedItems/rowAbove":83,"predefinedItems/rowBelow":84,"predefinedItems/separator":85,"predefinedItems/undo":86}],75:[function(e,t,n){"use strict";function o(){return{key:h,name:"Alignment",disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)},submenu:{items:[{key:h+":left",name:function(){var e=this,t="Left",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htLeft")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",i="htLeft";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":center",name:function(){var e=this,t="Center",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htCenter")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",i="htCenter";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":right",name:function(){var e=this,t="Right",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htRight")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",i="htRight";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":justify",name:function(){var e=this,t="Justify",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htJustify")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="horizontal",i="htJustify";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{name:c},{key:h+":top",name:function(){var e=this,t="Top",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htTop")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="vertical",i="htTop";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":middle",name:function(){var e=this,t="Middle",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htMiddle")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="vertical",i="htMiddle";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1},{key:h+":bottom",name:function(){var e=this,t="Bottom",n=u(this.getSelectedRange(),function(t,n){var o=e.getCellMeta(t,n).className;if(o&&o.indexOf("htBottom")!==-1)return!0});return n&&(t=d(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=l(t,function(t,n){return e.getCellMeta(t,n).className}),o="vertical",i="htBottom";this.runHooks("beforeCellAlignment",n,t,o,i),a(t,o,i,function(t,n){return e.getCellMeta(t,n)}),this.render()},disabled:!1}]}}}Object.defineProperties(n,{KEY:{get:function(){return h}},alignmentItem:{get:function(){return o}},__esModule:{value:!0}});var i,r,s=(i=e("utils"),i&&i.__esModule&&i||{default:i}),a=s.align,l=s.getAlignmentClasses,u=s.checkSelectionConsistency,d=s.markLabelAsSelected,c=(r=e("separator"),r&&r.__esModule&&r||{default:r}).KEY,h="alignment"},{separator:85,utils:87}],76:[function(e,t,n){"use strict";function o(){return{key:s,name:"Clear column",callback:function(e,t){var n=t.start.col;this.countRows()&&this.populateFromArray(0,n,[[null]],Math.max(t.start.row,t.end.row),n)},disabled:function(){var e=r(this);if(!e)return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(",");return e[1]<0||this.countCols()>=this.getSettings().maxCols||n}}}Object.defineProperties(n,{KEY:{get:function(){return s}},clearColumnItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="clear_column"},{utils:87}],77:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert column on the left",callback:function(e,t){this.alter("insert_col",t.start.col)},disabled:function(){var e=r(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}Object.defineProperties(n,{KEY:{get:function(){return s}},columnLeftItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="col_left"},{utils:87}],78:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert column on the right",callback:function(e,t){this.alter("insert_col",t.end.col+1)},disabled:function(){var e=r(this);if(!e)return!0;if(!this.isColumnModificationAllowed())return!0;var t=[e[0],0,e[0],this.countCols()-1],n=t.join(",")==e.join(","),o=1===this.countCols();return e[1]<0||this.countCols()>=this.getSettings().maxCols||!o&&n},hidden:function(){return!this.getSettings().allowInsertColumn}}}Object.defineProperties(n,{KEY:{get:function(){return s}},columnRightItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="col_right"},{utils:87}],79:[function(e,t,n){"use strict";function o(){return{key:l,name:function(){var e=this,t="Read only",n=s(this.getSelectedRange(),function(t,n){return e.getCellMeta(t,n).readOnly});return n&&(t=a(t)),t},callback:function(){var e=this,t=this.getSelectedRange(),n=s(t,function(t,n){return e.getCellMeta(t,n).readOnly});t.forAll(function(t,o){e.getCellMeta(t,o).readOnly=!n}),this.render()},disabled:function(){return!(this.getSelectedRange()&&!this.selection.selectedHeader.corner)}}}Object.defineProperties(n,{KEY:{get:function(){return l}},readOnlyItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}),s=r.checkSelectionConsistency,a=r.markLabelAsSelected,l="make_read_only"},{utils:87}],80:[function(e,t,n){"use strict";function o(){return{key:i,name:"Redo",callback:function(){this.redo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isRedoAvailable()}}}Object.defineProperties(n,{KEY:{get:function(){return i}},redoItem:{get:function(){return o}},__esModule:{value:!0}});var i="redo"},{}],81:[function(e,t,n){"use strict";function o(){return{key:s,name:"Remove column",callback:function(e,t){var n=t.end.col-t.start.col+1;this.alter("remove_col",t.start.col,n)},disabled:function(){var e=r(this),t=this.countCols();return!e||this.selection.selectedHeader.rows||this.selection.selectedHeader.corner||!this.isColumnModificationAllowed()||!t},hidden:function(){return!this.getSettings().allowRemoveColumn}}}Object.defineProperties(n,{KEY:{get:function(){return s}},removeColumnItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="remove_col"},{utils:87}],82:[function(e,t,n){"use strict";function o(){return{key:s,name:"Remove row",callback:function(e,t){var n=t.end.row-t.start.row+1;this.alter("remove_row",t.start.row,n)},disabled:function(){var e=r(this),t=this.countRows();return!e||this.selection.selectedHeader.cols||this.selection.selectedHeader.corner||!t},hidden:function(){return!this.getSettings().allowRemoveRow}}}Object.defineProperties(n,{KEY:{get:function(){return s}},removeRowItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="remove_row"},{utils:87}],83:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert row above",callback:function(e,t){this.alter("insert_row",t.start.row)},disabled:function(){var e=r(this);return!e||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}Object.defineProperties(n,{KEY:{get:function(){return s}},rowAboveItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="row_above"},{utils:87}],84:[function(e,t,n){"use strict";function o(){return{key:s,name:"Insert row below",callback:function(e,t){this.alter("insert_row",t.end.row+1);
  },disabled:function(){var e=r(this);return!e||this.selection.selectedHeader.cols||this.countRows()>=this.getSettings().maxRows},hidden:function(){return!this.getSettings().allowInsertRow}}}Object.defineProperties(n,{KEY:{get:function(){return s}},rowBelowItem:{get:function(){return o}},__esModule:{value:!0}});var i,r=(i=e("utils"),i&&i.__esModule&&i||{default:i}).getValidSelection,s="row_below"},{utils:87}],85:[function(e,t,n){"use strict";function o(){return{name:i}}Object.defineProperties(n,{KEY:{get:function(){return i}},separatorItem:{get:function(){return o}},__esModule:{value:!0}});var i="---------"},{}],86:[function(e,t,n){"use strict";function o(){return{key:i,name:"Undo",callback:function(){this.undo()},disabled:function(){return this.undoRedo&&!this.undoRedo.isUndoAvailable()}}}Object.defineProperties(n,{KEY:{get:function(){return i}},undoItem:{get:function(){return o}},__esModule:{value:!0}});var i="undo"},{}],87:[function(e,t,n){"use strict";function o(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function i(e){return R(e,"htSeparator")}function r(e){return R(e,"htSubmenu")}function s(e){return R(e,"htDisabled")}function a(e){return R(e,"htSelectionDisabled")}function l(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function u(e,t){return e.indexOf(t)!=-1?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace("  ",""),e+=" "+t)}function d(e,t){return e.indexOf(t)!=-1?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace("  ",""),e+=" "+t)}function c(e,t){for(var n={},o=e.from.row;o<=e.to.row;o++)for(var i=e.from.col;i<=e.to.col;i++)n[o]||(n[o]=[]),n[o][i]=t(o,i);return n}function h(e,t,n,o){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,n,o);else for(var i=e.from.row;i<=e.to.row;i++)for(var r=e.from.col;r<=e.to.col;r++)f(i,r,t,n,o)}function f(e,t,n,o,i){var r=i(e,t),s=o;r.className&&(s="vertical"===n?u(r.className,o):d(r.className,o)),r.className=s}function p(e,t){var n=!1;return e&&e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n}function m(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 n=e.slice(0),o=0;o<n.length&&n[o].name===t;)n.shift();return n}function v(e,t){var n=e.slice(0);return n.reverse(),n=w(n,t),n.reverse(),n}function b(e){var t=[];return E(e,function(e,n){n>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]:S,n=e.slice(0);return n=w(n,t),n=v(n,t),n=b(n)}Object.defineProperties(n,{normalizeSelection:{get:function(){return o}},isSeparator:{get:function(){return i}},hasSubMenu:{get:function(){return r}},isDisabled:{get:function(){return s}},isSelectionDisabled:{get:function(){return a}},getValidSelection:{get:function(){return l}},prepareVerticalAlignClass:{get:function(){return u}},prepareHorizontalAlignClass:{get:function(){return d}},getAlignmentClasses:{get:function(){return c}},align:{get:function(){return h}},checkSelectionConsistency:{get:function(){return p}},markLabelAsSelected:{get:function(){return m}},isItemHidden:{get:function(){return g}},filterSeparators:{get:function(){return C}},__esModule:{value:!0}});var y,A,_,E=(y=e("helpers/array"),y&&y.__esModule&&y||{default:y}).arrayEach,R=(A=e("helpers/dom/element"),A&&A.__esModule&&A||{default:A}).hasClass,S=(_=e("predefinedItems/separator"),_&&_.__esModule&&_||{default:_}).KEY},{"helpers/array":43,"helpers/dom/element":47,"predefinedItems/separator":85}],88:[function(e,t,n){"use strict";Object.defineProperties(n,{ContextMenuCopyPaste:{get:function(){return w}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,c=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).removeClass,h=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,f=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).EventManager,p=(a=e("plugins"),a&&a.__esModule&&a||{default:a}).registerPlugin,m=(l=e("_base"),l&&l.__esModule&&l||{default:l}).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(e){"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",disabled:function(){return this.selection.selectedHeader.corner}},{key:"paste",name:"Paste",callback:function(){this.copyPaste.triggerPaste()},disabled:function(){return this.selection.selectedHeader.corner}},d.plugins.ContextMenu.SEPARATOR)},onAfterContextMenuShow:function(){var e=this,t=this.hot.getPlugin("contextMenu"),n=t.menu.hotMenu.getSourceData();h(n,function(n,o){if("copy"===n.key){var i=new g(t.menu.hotMenu.getCell(o,0));return i.off(),i.on("copy",function(t){var n=t.clipboardData;n.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}},{},m),p("contextMenuCopyPaste",w)},{_base:62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,plugins:61,zeroclipboard:"zeroclipboard"}],89:[function(e,t,n){"use strict";function o(e){function t(){e.isListening()&&e.selection.empty()}function n(t){var n,o,i,r,s,a,l,u,d,c;if(e.isListening()&&e.selection.isSelected()){n=t,o=b.parse(n),i=e.getSelected(),r=new x(i[0],i[1]),s=new x(i[2],i[3]),a=new O(r,r,s),l=a.getTopLeftCorner(),u=a.getBottomRightCorner(),d=l,c=new x(Math.max(u.row,o.length-1+l.row),Math.max(u.col,o[0].length-1+l.col));var h=s.row-r.row>=o.length-1,f=s.col-r.col>=o[0].length-1;e.addHookOnce("afterChange",function(t,n){var o=t?t.length:0;if(o){var i={row:0,col:0},r=-1;_(t,function(e,n){var s=o>n+1?t[n+1]:null;s&&(h||(i.row=i.row+Math.max(s[0]-e[0]-1,0)),!f&&e[1]>r&&(r=e[1],i.col=i.col+Math.max(s[1]-e[1]-1,0)))}),e.selectCell(d.row,d.col,c.row+i.row,c.col+i.col)}}),e.populateFromArray(d.row,d.col,o,c.row,c.col,"paste",e.getSettings().pasteMode)}}function o(t){if(e.getSelected()&&!(e.getActiveEditor()&&e.getActiveEditor().isOpened()||M(t))){if(A(t.keyCode)){if(e.getSettings().fragmentSelection&&k())return;return i.setCopyableText(),void S(t)}var n=(t.ctrlKey||t.metaKey)&&!t.altKey;t.keyCode==y.A&&n&&e._registerTimeout(setTimeout(T(i.setCopyableText,i),0))}}var i=this;this.copyPasteInstance=v(),this.copyPasteInstance.onCut(t),this.copyPasteInstance.onPaste(n),this.onPaste=n,e.addHook("beforeKeyDown",o),this.destroy=function(){this.copyPasteInstance&&(this.copyPasteInstance.removeCallback(t),this.copyPasteInstance.removeCallback(n),this.copyPasteInstance.destroy(),this.copyPasteInstance=null),e.removeHook("beforeKeyDown",o)},e.addHook("afterDestroy",T(this.destroy,this)),this.triggerPaste=T(this.copyPasteInstance.triggerPaste,this.copyPasteInstance),this.triggerCut=T(this.copyPasteInstance.triggerCut,this.copyPasteInstance),this.setCopyableText=function(){var t=e.getSettings(),n=t.copyRowsLimit,o=t.copyColsLimit,i=e.getSelectedRange(),r=i.getTopLeftCorner(),s=i.getBottomRightCorner(),a=r.row,l=r.col,u=s.row,d=s.col,c=Math.min(u,a+n-1),h=Math.min(d,l+o-1),f=[];f.push({startRow:a,startCol:l,endRow:c,endCol:h}),f=w.hooks.run(e,"modifyCopyableRange",f);var p=this.getRangedCopyableData(f);e.copyPaste.copyPasteInstance.copyable(p),u===c&&d===h||w.hooks.run(e,"afterCopyLimit",u-a+1,d-l+1,n,o)},this.getRangedCopyableData=function(t){var n=[],o=[],i=[];return _(t,function(e){E(e.startRow,e.endRow,function(e){o.indexOf(e)===-1&&o.push(e)}),E(e.startCol,e.endCol,function(e){i.indexOf(e)===-1&&i.push(e)})}),_(o,function(t){var o=[];_(i,function(n){o.push(e.getCopyableData(t,n))}),n.push(o)}),b.stringify(n)}}function i(){var e=this,t=e.getSettings().copyPaste!==!1;t&&!e.copyPaste?e.copyPaste=new o(e):!t&&e.copyPaste&&(e.copyPaste.destroy(),e.copyPaste=null)}Object.defineProperties(n,{CopyPastePlugin:{get:function(){return o}},__esModule:{value:!0}});var r,s,a,l,u,d,c,h,f,p,m,g,w=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,v=(s=e("copyPaste"),s&&s.__esModule&&s||{default:s}).default,b=(a=e("SheetClip"),a&&a.__esModule&&a||{default:a}).default,C=(l=e("helpers/unicode"),l&&l.__esModule&&l||{default:l}),y=C.KEY_CODES,A=C.isCtrlKey,_=(u=e("helpers/array"),u&&u.__esModule&&u||{default:u}).arrayEach,E=(d=e("helpers/number"),d&&d.__esModule&&d||{default:d}).rangeEach,R=(c=e("helpers/dom/event"),c&&c.__esModule&&c||{default:c}),S=R.stopImmediatePropagation,M=R.isImmediatePropagationStopped,k=(h=e("helpers/dom/element"),h&&h.__esModule&&h||{default:h}).getSelectionText,T=(f=e("helpers/function"),f&&f.__esModule&&f||{default:f}).proxy,x=((p=e("plugins"),p&&p.__esModule&&p||{default:p}).registerPlugin,(m=e("3rdparty/walkontable/src/cell/coords"),m&&m.__esModule&&m||{default:m}).WalkontableCellCoords),O=(g=e("3rdparty/walkontable/src/cell/range"),g&&g.__esModule&&g||{default:g}).WalkontableCellRange;w.hooks.add("afterInit",i),w.hooks.add("afterUpdateSettings",i),w.hooks.register("afterCopyLimit"),w.hooks.register("modifyCopyableRange")},{"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/cell/range":7,SheetClip:"SheetClip",browser:24,copyPaste:"copyPaste","helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/function":50,"helpers/number":52,"helpers/unicode":56,plugins:61}],90:[function(e,t,n){"use strict";function o(){}var i,r,s,a,l,u=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,d=((r=e("plugins"),r&&r.__esModule&&r||{default:r}).registerPlugin,(s=e("3rdparty/walkontable/src/cell/range"),s&&s.__esModule&&s||{default:s}).WalkontableCellRange),c=(a=e("3rdparty/walkontable/src/selection"),a&&a.__esModule&&a||{default:a}).WalkontableSelection,h=function(e){return"boolean"==typeof e&&e===!0||"object"==typeof e&&e.length>0},f=function(){h(this.getSettings().customBorders)&&(this.customBorders||(l=this,this.customBorders=new o))},p=function(e){for(var t=0;t<l.view.wt.selections.length;t++)if(l.view.wt.selections[t].settings.className==e)return t;return-1},m=function(e){var t={row:e.row,col:e.col},n=new c(e,new d(t,t,t)),o=p(e.className);o>=0?l.view.wt.selections[o]=n:l.view.wt.selections.push(n)},g=function(e,t,n){var o=A(e,t);o=_(o,n),this.setCellMeta(e,t,"borders",o),m(o)},w=function(e){for(var t=e.range,n=t.from.row;n<=t.to.row;n++)for(var o=t.from.col;o<=t.to.col;o++){var i=A(n,o),r=0;n==t.from.row&&(r++,e.hasOwnProperty("top")&&(i.top=e.top)),n==t.to.row&&(r++,e.hasOwnProperty("bottom")&&(i.bottom=e.bottom)),o==t.from.col&&(r++,e.hasOwnProperty("left")&&(i.left=e.left)),o==t.to.col&&(r++,e.hasOwnProperty("right")&&(i.right=e.right)),r>0&&(this.setCellMeta(n,o,"borders",i),m(i))}},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}},A=function(e,t){return{className:v(e,t),border:y(),row:e,col:t,top:C(),right:C(),bottom:C(),left:C()}},_=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},E=function(e){for(var t=document.querySelectorAll("."+e),n=0;n<t.length;n++)if(t[n]&&"TD"!=t[n].nodeName){var o=t[n].parentNode;o.parentNode&&o.parentNode.removeChild(o)}},R=function(e,t){var n=v(e,t);E(n),this.removeCellMeta(e,t,"borders")},S=function(e,t,n,o){var i=this.getCellMeta(e,t).borders;i&&void 0!=i.border||(i=A(e,t)),o?i[n]=C():i[n]=b(),this.setCellMeta(e,t,"borders",i);var r=v(e,t);E(r),m(i),this.render()},M=function(e,t,n){if(e.from.row==e.to.row&&e.from.col==e.to.col)"noBorders"==t?R.call(this,e.from.row,e.from.col):S.call(this,e.from.row,e.from.col,t,n);else switch(t){case"noBorders":for(var o=e.from.col;o<=e.to.col;o++)for(var i=e.from.row;i<=e.to.row;i++)R.call(this,i,o);break;case"top":for(var r=e.from.col;r<=e.to.col;r++)S.call(this,e.from.row,r,t,n);break;case"right":for(var s=e.from.row;s<=e.to.row;s++)S.call(this,s,e.to.col,t);break;case"bottom":for(var a=e.from.col;a<=e.to.col;a++)S.call(this,e.to.row,a,t);break;case"left":for(var l=e.from.row;l<=e.to.row;l++)S.call(this,l,e.from.col,t)}},k=function(e,t){var n=!1;return e.getSelectedRange().forAll(function(o,i){var r=e.getCellMeta(o,i).borders;if(r){if(!t)return n=!0,!1;if(!r[t].hasOwnProperty("hide"))return n=!0,!1}}),n},T=function(e){return'<span class="selected">'+String.fromCharCode(10003)+"</span>"+e},x=function(e){this.getSettings().customBorders&&(e.items.push(u.plugins.ContextMenu.SEPARATOR),e.items.push({key:"borders",name:"Borders",disabled:function(){return this.selection.selectedHeader.corner},submenu:{items:[{key:"borders:top",name:function(){var e="Top",t=k(this,"top");return t&&(e=T(e)),e},callback:function(){var e=k(this,"top");M.call(this,this.getSelectedRange(),"top",e)}},{key:"borders:right",name:function(){var e="Right",t=k(this,"right");return t&&(e=T(e)),e},callback:function(){var e=k(this,"right");M.call(this,this.getSelectedRange(),"right",e)}},{key:"borders:bottom",name:function(){var e="Bottom",t=k(this,"bottom");return t&&(e=T(e)),e},callback:function(){var e=k(this,"bottom");M.call(this,this.getSelectedRange(),"bottom",e)}},{key:"borders:left",name:function(){var e="Left",t=k(this,"left");return t&&(e=T(e)),e},callback:function(){var e=k(this,"left");M.call(this,this.getSelectedRange(),"left",e)}},{key:"borders:no_borders",name:"Remove border(s)",callback:function(){M.call(this,this.getSelectedRange(),"noBorders")},disabled:function(){return!k(this)}}]}}))};u.hooks.add("beforeInit",f),u.hooks.add("afterContextMenuDefaultOptions",x),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=o},{"3rdparty/walkontable/src/cell/range":7,"3rdparty/walkontable/src/selection":19,browser:24,plugins:61}],91:[function(e,t,n){"use strict";function o(){this.boundaries=null,this.callback=null}Object.defineProperties(n,{DragToScroll:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,l=(r=e("eventManager"),r&&r.__esModule&&r||{default:r}).eventManager;(s=e("plugins"),s&&s.__esModule&&s||{default:s}).registerPlugin;a.plugins.DragToScroll=o,o.prototype.setBoundaries=function(e){this.boundaries=e},o.prototype.setCallback=function(e){this.callback=e},o.prototype.check=function(e,t){var n=0,o=0;t<this.boundaries.top?o=t-this.boundaries.top:t>this.boundaries.bottom&&(o=t-this.boundaries.bottom),e<this.boundaries.left?n=e-this.boundaries.left:e>this.boundaries.right&&(n=e-this.boundaries.right),this.callback(n,o)};var u,d=function(e){e.dragToScrollListening=!1;var t=e.view.wt.wtTable.holder;u=new o,t!==window&&(u.setBoundaries(t.getBoundingClientRect()),u.setCallback(function(e,n){e<0?t.scrollLeft-=50:e>0&&(t.scrollLeft+=50),n<0?t.scrollTop-=20:n>0&&(t.scrollTop+=20)}),e.dragToScrollListening=!0)};a.hooks.add("afterInit",function(){var e=this,t=l(this);t.addEventListener(document,"mouseup",function(){e.dragToScrollListening=!1}),t.addEventListener(document,"mousemove",function(t){e.dragToScrollListening&&u.check(t.clientX,t.clientY)})}),a.hooks.add("afterDestroy",function(){l(this).clear()}),a.hooks.add("afterOnCellMouseDown",function(){d(this)}),a.hooks.add("afterOnCellCornerMouseDown",function(){d(this)}),a.plugins.DragToScroll=o},{browser:24,eventManager:42,plugins:61}],92:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualColumnFreeze:{get:function(){return u}},__esModule:{value:!0}});var o,i,r,s=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,a=(i=e("_base"),i&&i.__esModule&&i||{default:i}).default,l=(r=e("plugins"),r&&r.__esModule&&r||{default:r}).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,n=this.fixedColumnsCount,o=this.getLogicalColumnIndex(n);if(null==this.frozenColumnsBasePositions[e])for(t=this.getLogicalColumnIndex(e);o<t;)n++,o=this.getLogicalColumnIndex(n);else{for(t=this.frozenColumnsBasePositions[e],this.frozenColumnsBasePositions[e]=void 0;o<=t;)n++,o=this.getLogicalColumnIndex(n);n=o}return n-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)}},{},a),l("manualColumnFreeze",u)},{_base:62,browser:24,plugins:61}],93:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualColumnMove:{get:function(){return S}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c=(o=e("_base.js"),o&&o.__esModule&&o||{default:o}).default,h=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,f=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),p=f.addClass,m=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=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,A=(l=e("eventManager"),l&&l.__esModule&&l||{default:l}).eventManager,_=(u=e("helpers/dom/event"),u&&u.__esModule&&u||{default:u}).pageX,E=(d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,R=new WeakMap,S=function(e){var t=this;$traceurRuntime.superConstructor(M).call(this,e),R.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=A(this),this.addHook("init",function(){return t.onInit()})},M=S;$traceurRuntime.createClass(S,{isEnabled:function(){return!!this.hot.getSettings().manualColumnMove},enablePlugin:function(){var e=this,t=R.get(this),n=this.hot.getSettings().manualColumnMove,o=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,n){return e.onAfterRemoveCol(t,n)}),this.addHook("afterCreateCol",function(t,n){return e.onAfterCreateCol(t,n)}),this.registerEvents(),"undefined"!=typeof o?this.columnPositions=o:Array.isArray(n)?this.columnPositions=n:n&&void 0!==this.columnPositions||(this.columnPositions=[]),$traceurRuntime.superGet(this,M.prototype,"enablePlugin").call(this)},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,M.prototype,"updatePlugin").call(this)},disablePlugin:function(){var e=this.hot.getSettings().manualColumnMove;Array.isArray(e)&&(this.unregisterEvents(),this.columnPositions=[]),$traceurRuntime.superGet(this,M.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){e.columnPositions.indexOf(t)===-1&&e.columnPositions.push(t)})},setupHandlePosition:function(e){this.currentTH=e;var t=R.get(this),n=this.hot.view.wt.wtTable.getCoords(e).col,o=w(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();t.currentCol=n,t.startOffset=i.left,this.handleElement.style.top=i.top+"px",this.handleElement.style.left=t.startOffset+"px",this.handleElement.style.height=o+"px",this.hot.rootElement.appendChild(this.handleElement)}},refreshHandlePosition:function(e,t){var n=e.getBoundingClientRect(),o=6;t>0?this.handleElement.style.left=n.left+n.width-o+"px":this.handleElement.style.left=n.left+"px"},setupGuidePosition:function(){var e=this.currentTH.getBoundingClientRect(),t=R.get(this),n=parseInt(w(this.handleElement),10),o=parseInt(this.handleElement.style.top,10)+n,i=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);p(this.handleElement,"active"),p(this.guideElement,"active"),this.guideElement.style.width=e.width+"px",this.guideElement.style.height=i-n+"px",this.guideElement.style.top=o+"px",this.guideElement.style.left=t.startOffset+"px",this.hot.rootElement.appendChild(this.guideElement)},refreshGuidePosition:function(e){var t=R.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||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 n=Math.max(e,t);n>this.columnPositions.length-1&&this.createPositionData(n+1),this.columnPositions.splice(t,0,this.columnPositions.splice(e,1)[0])},getVisibleColumnIndex:function(e){var t=this.columnPositions.indexOf(e);return t===-1?void 0:t},getLogicalColumnIndex:function(e){return this.columnPositions[e]},onMouseOver:function(e){var t=R.get(this);if(this.checkColumnHeader(e.target)){var n=this.getTHFromTargetElement(e.target);if(n)if(t.pressed){var o=this.hot.view.wt.wtTable.getCoords(n).col;o>=0&&(t.endCol=o,this.refreshHandlePosition(n,t.endCol-t.startCol))}else this.setupHandlePosition(n)}},onMouseDown:function(e){var t=R.get(this);m(e.target,t.handleClassName)&&(t.startX=_(e),this.setupGuidePosition(),t.pressed=this.hot,t.startCol=t.currentCol,t.endCol=t.currentCol)},onMouseMove:function(e){var t=R.get(this);t.pressed&&this.refreshGuidePosition(_(e)-t.startX)},onMouseUp:function(e){var t=R.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 this.getLogicalColumnIndex(e)},onUnmodifyCol:function(e){return this.getVisibleColumnIndex(e)},onAfterRemoveCol:function(e,t){if(this.isEnabled()){var n,o=this.columnPositions;n=o.splice(e,t),o=C(o,function(e,t){var o=e;return b(n,function(t,n){e>t&&o--}),o}),this.columnPositions=o}},onAfterCreateCol:function(e,t){if(this.isEnabled()){var n=this.columnPositions;if(n.length){var o=[];y(0,t-1,function(t){o.push(e+t)}),e>=n.length?n=n.concat(o):(n=C(n,function(n,o){return n>=e?n+t:n}),n.splice.apply(n,[e,0].concat(o))),this.columnPositions=n}}},onInit:function(){this.completeSettingsArray()}},{},c),E("manualColumnMove",S),h.hooks.register("beforeColumnMove"),h.hooks.register("afterColumnMove"),h.hooks.register("unmodifyCol")},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/number":52,plugins:61}],94:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualColumnResize:{get:function(){return E}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(i=e("_base.js"),i&&i.__esModule&&i||{default:i}).default,f=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),p=f.addClass,m=f.hasClass,g=f.removeClass,w=f.outerHeight,v=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,b=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),C=b.pageX,y=(b.pageY,(l=e("helpers/array"),l&&l.__esModule&&l||{default:l}).arrayEach),A=(u=e("helpers/number"),u&&u.__esModule&&u||{default:u}).rangeEach,_=(d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,E=function(e){$traceurRuntime.superConstructor(R).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=[],p(this.handle,"manualColumnResizer"),p(this.guide,"manualColumnResizerGuide")},R=E;$traceurRuntime.createClass(E,{isEnabled:function(){return this.hot.getSettings().manualColumnResize},enablePlugin:function(){var e=this;if(!this.enabled){this.manualColumnWidths=[];var t=this.hot.getSettings().manualColumnResize,n=this.loadManualColumnWidths();this.addHook("modifyColWidth",function(t,n){return e.onModifyColWidth(t,n)}),this.addHook("beforeStretchingColumnWidth",function(t,n){return e.onBeforeStretchingColumnWidth(t,n)}),this.addHook("beforeColumnResize",function(t,n,o){return e.onBeforeColumnResize(t,n,o)}),"undefined"!=typeof n?this.manualColumnWidths=n:Array.isArray(t)?this.manualColumnWidths=t:this.manualColumnWidths=[],c.hooks.register("beforeColumnResize"),c.hooks.register("afterColumnResize"),this.bindEvents(),$traceurRuntime.superGet(this,R.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,R.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 n=this.hot.view.wt.wtTable.getCoords(e).col,o=w(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentCol=n,this.selectedCols=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.cols){var r=this.hot.getSelectedRange(),s=r.from,a=r.to,l=s.col,u=a.col;l>=u&&(l=a.col,u=s.col),this.currentCol>=l&&this.currentCol<=u?A(l,u,function(e){return t.selectedCols.push(e)}):this.selectedCols.push(this.currentCol)}else this.selectedCols.push(this.currentCol);this.startOffset=i.left-6,this.startWidth=parseInt(i.width,10),this.handle.style.top=i.top+"px",this.handle.style.left=this.startOffset+this.startWidth+"px",this.handle.style.height=o+"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,n=parseInt(this.hot.view.maximumVisibleElementHeight(0),10);p(this.handle,"active"),p(this.guide,"active"),this.guide.style.top=t+"px",this.guide.style.left=this.handle.style.left,
  this.guide.style.height=n-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||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 n=t.getAttribute("colspan");!t||null!==n&&1!==n||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)},n=function(n,o){var i=e.hot.runHooks("beforeColumnResize",n,e.newSize,!0);void 0!==i&&(e.newSize=i),"all"===e.hot.getSettings().stretchH?e.clearManualSize(n):e.setManualSize(n,e.newSize),o&&t(),e.saveManualColumnWidths(),e.hot.runHooks("afterColumnResize",n,e.newSize,!0)};if(this.dblclick>=2){var o=this.selectedCols.length;o>1?(y(this.selectedCols,function(e){n(e)}),t()):y(this.selectedCols,function(e){n(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(e){var t=this;m(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,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeColumnResize",e,t.newSize),o&&n(),t.saveManualColumnWidths(),t.hot.runHooks("afterColumnResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startWidth){var i=this.selectedCols.length;i>1?(y(this.selectedCols,function(e){o(e)}),n()):y(this.selectedCols,function(e){o(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 n=this.manualColumnWidths[t];return void 0===n&&(n=e),n},onBeforeColumnResize:function(){this.hot.view.wt.wtViewport.hasOversizedColumnHeadersMarked={}}},{},h),_("manualColumnResize",E)},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/number":52,plugins:61}],95:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualRowMove:{get:function(){return O}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c,h,f=(o=e("_base.js"),o&&o.__esModule&&o||{default:o}).default,p=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,m=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,g=(s=e("helpers/dom/element"),s&&s.__esModule&&s||{default:s}),w=g.addClass,v=g.removeClass,b=g.offset,C=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,y=(l=e("eventManager"),l&&l.__esModule&&l||{default:l}).eventManager,A=(u=e("plugins"),u&&u.__esModule&&u||{default:u}).registerPlugin,_=(d=e("rowsMapper"),d&&d.__esModule&&d||{default:d}).RowsMapper,E=(c=e("ui/backlight"),c&&c.__esModule&&c||{default:c}).BacklightUI,R=(h=e("ui/guideline"),h&&h.__esModule&&h||{default:h}).GuidelineUI,S=new WeakMap,M="ht__manualRowMove",k="show-ui",T="on-moving--rows",x="after-selection--rows",O=function(e){$traceurRuntime.superConstructor(B).call(this,e),S.set(this,{rowsToMove:[],pressed:void 0,disallowMoving:void 0,target:{eventPageY:void 0,coords:void 0,TD:void 0,row:void 0}}),this.removedRows=[],this.rowsMapper=new _(this),this.eventManager=y(this),this.backlight=new E(e),this.guideline=new R(e)},B=O;$traceurRuntime.createClass(O,{isEnabled:function(){return!!this.hot.getSettings().manualRowMove},enablePlugin:function(){var e=this;this.enabled||(this.rowsMapper.createMap(this.hot.countSourceRows()),this.addHook("beforeOnCellMouseDown",function(t,n,o,i){return e.onBeforeOnCellMouseDown(t,n,o,i)}),this.addHook("beforeOnCellMouseOver",function(t,n,o,i){return e.onBeforeOnCellMouseOver(t,n,o,i)}),this.addHook("afterScrollHorizontally",function(){return e.onAfterScrollHorizontally()}),this.addHook("modifyRow",function(t,n){return e.onModifyRow(t,n)}),this.addHook("beforeRemoveRow",function(t,n){return e.onBeforeRemoveRow(t,n)}),this.addHook("afterRemoveRow",function(t,n){return e.onAfterRemoveRow(t,n)}),this.addHook("afterCreateRow",function(t,n){return e.onAfterCreateRow(t,n)}),this.addHook("beforeColumnSort",function(t,n){return e.onBeforeColumnSort(t,n)}),this.addHook("unmodifyRow",function(t){return e.onUnmodifyRow(t)}),this.initialSettings(),this.backlight.build(),this.guideline.build(),this.registerEvents(),w(this.hot.rootElement,M),$traceurRuntime.superGet(this,B.prototype,"enablePlugin").call(this))},updatePlugin:function(){this.disablePlugin(),this.enablePlugin(),$traceurRuntime.superGet(this,B.prototype,"updatePlugin").call(this)},disablePlugin:function(){this.rowsMapper.clearMap(),v(this.hot.rootElement,M),this.unregisterEvents(),this.backlight.destroy(),this.guideline.destroy(),$traceurRuntime.superGet(this,B.prototype,"disablePlugin").call(this)},moveRow:function(e,t){this.moveRows([e],t)},moveRows:function(e,t){var n=this;this.hot.runHooks("beforeRowMove",e,t),m(e,function(e,t,o){o[t]=n.rowsMapper.getValueByIndex(e)}),m(e,function(e,o){var i=n.rowsMapper.getIndexByValue(e);i!==t&&n.rowsMapper.moveRow(i,t+o)}),this.rowsMapper.clearNull(),this.hot.runHooks("afterRowMove",e,t)},changeSelection:function(e,t){var n=this.hot.selection,o=this.hot.countCols()-1;n.setRangeStart(new WalkontableCellCoords(e,0)),n.setRangeEnd(new WalkontableCellCoords(t,o),!1)},getRowsHeight:function(e,t){for(var n=0,o=e;o<t;o++){var i=this.hot.view.wt.wtTable.getRowHeight(o)||23;n+=i}return n},initialSettings:function(){var e=this.hot.getSettings().manualRowMove;if(Array.isArray(e))this.moveRows(e,0);else if(void 0!==e){var t=this.persistentStateLoad();t.length&&this.moveRows(t,0)}},isFixedRowTop:function(e){return e<this.hot.getSettings().fixedRowsTop},isFixedRowBottom:function(e){return e>this.hot.getSettings().fixedRowsBottom},persistentStateSave:function(){p.hooks.run(this.hot,"persistentStateSave","manualRowMove",this.rowsMapper._arrayMap)},persistentStateLoad:function(){var e={};return p.hooks.run(this.hot,"persistentStateLoad","manualRowMove",e),e.value?e.value:[]},prepareRowsToMoving:function(){var e=this.hot.getSelectedRange(),t=[];if(!e)return t;var n=e,o=n.from,i=n.to,r=Math.min(o.row,i.row),s=Math.max(o.row,i.row);return C(r,s,function(e){t.push(e)}),t},refreshPositions:function(){var e=this.hot.view.wt.wtTable,t=S.get(this),n=t.target.coords,o=t.target.TD,i=b(this.hot.rootElement),r=this.hot.view.THEAD.offsetHeight+this.getRowsHeight(0,n.row),s=t.target.eventPageY-i.top+e.holder.scrollTop,a=e.hider.offsetHeight,l=e.TBODY.offsetTop,u=this.backlight.getOffset().top,d=this.backlight.getSize().height;this.isFixedRowTop(n.row)&&(r+=e.holder.scrollTop),n.row<0?t.target.row=0:o.offsetHeight/2+r<=s?(t.target.row=n.row+1,r+=0===n.row?o.offsetHeight-1:o.offsetHeight):t.target.row=n.row;var c=s,h=r;s+d+u>=a?c=a-d-u:s+u<l&&(c=l+Math.abs(u)),r>=a-1&&(h=a-1),this.backlight.setPosition(c),this.guideline.setPosition(h)},registerEvents:function(){var e=this;this.eventManager.addEventListener(document.documentElement,"mousemove",function(t){return e.onMouseMove(t)}),this.eventManager.addEventListener(document.documentElement,"mouseup",function(){return e.onMouseUp()})},unregisterEvents:function(){this.eventManager.clear()},onBeforeColumnSort:function(e,t){var n=S.get(this);n.disallowMoving=void 0!==t},onBeforeOnCellMouseDown:function(e,t,n,o){var i=this.hot.view.wt.wtTable,r=this.hot.selection.selectedHeader.rows,s=this.hot.getSelectedRange(),a=S.get(this);if(!s||!r||a.pressed||0!==e.button)return a.pressed=!1,a.rowsToMove.length=0,void v(this.hot.rootElement,[T,k]);var l=this.guideline.isBuilt()&&!this.guideline.isAppended(),u=this.backlight.isBuilt()&&!this.backlight.isAppended();l&&u&&(this.guideline.appendTo(i.hider),this.backlight.appendTo(i.hider));var d=s,c=d.from,h=d.to,f=Math.min(c.row,h.row),p=Math.max(c.row,h.row);if(t.col<0&&t.row>=f&&t.row<=p){o.row=!0,a.pressed=!0,a.target.eventPageY=e.pageY,a.target.coords=t,a.target.TD=n,a.rowsToMove=this.prepareRowsToMoving();var m=i.holder.scrollLeft+i.getColumnWidth(-1);this.backlight.setPosition(null,m),this.backlight.setSize(i.hider.offsetWidth-m,this.getRowsHeight(f,p+1)),this.backlight.setOffset((this.getRowsHeight(f,t.row)+e.layerY)*-1,null),w(this.hot.rootElement,T),this.refreshPositions()}else v(this.hot.rootElement,x),a.pressed=!1,a.rowsToMove.length=0},onMouseMove:function(e){var t=S.get(this);if(t.pressed){if(e.realTarget===this.backlight.element){var n=this.backlight.getSize().height;this.backlight.setSize(null,0),setTimeout(function(){this.backlight.setPosition(null,n)})}t.target.eventPageY=e.pageY,this.refreshPositions()}},onBeforeOnCellMouseOver:function(e,t,n,o){var i=this.hot.getSelectedRange(),r=S.get(this);i&&r.pressed&&(r.rowsToMove.indexOf(t.row)>-1?v(this.hot.rootElement,k):w(this.hot.rootElement,k),o.row=!0,o.column=!0,o.cell=!0,r.target.coords=t,r.target.TD=n)},onMouseUp:function(){var e=S.get(this);if(e.pressed=!1,e.backlightHeight=0,v(this.hot.rootElement,[T,k,x]),this.hot.selection.selectedHeader.rows&&w(this.hot.rootElement,x),!(e.rowsToMove.length<1)){var t=e.target.row;this.moveRows(e.rowsToMove,t),this.persistentStateSave(),this.hot.render();var n=this.rowsMapper.getIndexByValue(e.rowsToMove[0]),o=this.rowsMapper.getIndexByValue(e.rowsToMove[e.rowsToMove.length-1]);this.changeSelection(n,o),e.rowsToMove.length=0}},onAfterScrollHorizontally:function(){var e=this.hot.view.wt.wtTable,t=e.getColumnWidth(-1),n=e.holder.scrollLeft,o=t+n;this.backlight.setPosition(null,o),this.backlight.setSize(e.hider.offsetWidth-o)},onAfterCreateRow:function(e,t){this.rowsMapper.shiftItems(e,t)},onBeforeRemoveRow:function(e,t){var n=this;this.removedRows.length=0,e!==!1&&C(e,e+t-1,function(e){n.removedRows.push(n.hot.runHooks("modifyRow",e,n.pluginName))})},onAfterRemoveRow:function(e,t){this.rowsMapper.unshiftItems(this.removedRows)},onModifyRow:function(e,t){return t!==this.pluginName&&(e=this.rowsMapper.getValueByIndex(e)),e},onUnmodifyRow:function(e){return this.rowsMapper.getIndexByValue(e)},destroy:function(){this.backlight.destroy(),this.guideline.destroy(),$traceurRuntime.superGet(this,B.prototype,"destroy").call(this)}},{},f),A("ManualRowMove",O),p.hooks.register("beforeRowMove"),p.hooks.register("afterRowMove"),p.hooks.register("unmodifyRow")},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/number":52,plugins:61,rowsMapper:96,"ui/backlight":98,"ui/guideline":99}],96:[function(e,t,n){"use strict";Object.defineProperties(n,{RowsMapper:{get:function(){return f}},__esModule:{value:!0}});var o,i,r,s,a,l=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,u=(i=e("mixins/arrayMapper"),i&&i.__esModule&&i||{default:i}).arrayMapper,d=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayFilter,c=(s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).mixin,h=(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,f=function(e){this.manualRowMove=e};$traceurRuntime.createClass(f,{createMap:function(e){var t=this,n=void 0===e?this._arrayMap.length:e;this._arrayMap.length=0,h(n-1,function(e){t._arrayMap[e]=e})},destroy:function(){this._arrayMap=null},moveRow:function(e,t){var n=this._arrayMap[e];this._arrayMap[e]=null,this._arrayMap.splice(t,0,n)},clearNull:function(){this._arrayMap=d(this._arrayMap,function(e){return null!==e})}},{}),c(f,u),l.utils.ManualRowMoveRowsMapper=f},{browser:24,"helpers/array":43,"helpers/number":52,"helpers/object":53,"mixins/arrayMapper":57}],97:[function(e,t,n){"use strict";Object.defineProperties(n,{BaseUI:{get:function(){return a}},__esModule:{value:!0}});var o=0,i=1,r=2,s="px",a=function(e){this.hot=e,this._element=null,this.state=o};$traceurRuntime.createClass(a,{appendTo:function(e){e.appendChild(this._element),this.state=r},build:function(){this._element=document.createElement("div"),this.state=i},destroy:function(){this.isAppended()&&this._element.parentElement.removeChild(this._element),this._element=null,this.state=o},isAppended:function(){return this.state===r},isBuilt:function(){return this.state>=i},setPosition:function(e,t){e&&(this._element.style.top=e+s),t&&(this._element.style.left=t+s)},getPosition:function(){return{top:this._element.style.top?parseInt(this._element.style.top,10):0,left:this._element.style.left?parseInt(this._element.style.left,10):0}},setSize:function(e,t){e&&(this._element.style.width=e+s),t&&(this._element.style.height=t+s)},getSize:function(){return{width:this._element.style.width?parseInt(this._element.style.width,10):0,height:this._element.style.height?parseInt(this._element.style.height,10):0}},setOffset:function(e,t){e&&(this._element.style.marginTop=e+s),t&&(this._element.style.marginLeft=t+s)},getOffset:function(){return{top:this._element.style.marginTop?parseInt(this._element.style.marginTop,10):0,left:this._element.style.marginLeft?parseInt(this._element.style.marginLeft,10):0}}},{})},{}],98:[function(e,t,n){"use strict";Object.defineProperties(n,{BacklightUI:{get:function(){return l}},__esModule:{value:!0}});var o,i,r=(o=e("_base"),o&&o.__esModule&&o||{default:o}).BaseUI,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).addClass,a="ht__manualRowMove--backlight",l=function(e){$traceurRuntime.superConstructor(u).call(this,e)},u=l;$traceurRuntime.createClass(l,{build:function(){$traceurRuntime.superGet(this,u.prototype,"build").call(this),s(this._element,a)}},{},r)},{_base:97,"helpers/dom/element":47}],99:[function(e,t,n){"use strict";Object.defineProperties(n,{GuidelineUI:{get:function(){return l}},__esModule:{value:!0}});var o,i,r=(o=e("_base"),o&&o.__esModule&&o||{default:o}).BaseUI,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).addClass,a="ht__manualRowMove--guideline",l=function(e){$traceurRuntime.superConstructor(u).call(this,e)},u=l;$traceurRuntime.createClass(l,{build:function(){$traceurRuntime.superGet(this,u.prototype,"build").call(this),s(this._element,a)}},{},r)},{_base:97,"helpers/dom/element":47}],100:[function(e,t,n){"use strict";Object.defineProperties(n,{ManualRowResize:{get:function(){return E}},__esModule:{value:!0}});var o,i,r,s,a,l,u,d,c=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,h=(i=e("_base.js"),i&&i.__esModule&&i||{default:i}).default,f=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),p=f.addClass,m=f.hasClass,g=f.removeClass,w=f.outerWidth,v=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,b=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),C=(b.pageX,b.pageY),y=(l=e("helpers/array"),l&&l.__esModule&&l||{default:l}).arrayEach,A=(u=e("helpers/number"),u&&u.__esModule&&u||{default:u}).rangeEach,_=(d=e("plugins"),d&&d.__esModule&&d||{default:d}).registerPlugin,E=function(e){$traceurRuntime.superConstructor(R).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=[],p(this.handle,"manualRowResizer"),p(this.guide,"manualRowResizerGuide")},R=E;$traceurRuntime.createClass(E,{isEnabled:function(){return this.hot.getSettings().manualRowResize},enablePlugin:function(){var e=this;if(!this.enabled){this.manualRowHeights=[];var t=this.hot.getSettings().manualRowResize,n=this.loadManualRowHeights();"undefined"!=typeof n?this.manualRowHeights=n:Array.isArray(t)?this.manualRowHeights=t:this.manualRowHeights=[],this.addHook("modifyRowHeight",function(t,n){return e.onModifyRowHeight(t,n)}),c.hooks.register("beforeRowResize"),c.hooks.register("afterRowResize"),this.bindEvents(),$traceurRuntime.superGet(this,R.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,R.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 n=this.hot.view.wt.wtTable.getCoords(e).row,o=w(this.currentTH);if(n>=0){var i=this.currentTH.getBoundingClientRect();if(this.currentRow=n,this.selectedRows=[],this.hot.selection.isSelected()&&this.hot.selection.selectedHeader.rows){var r=this.hot.getSelectedRange(),s=r.from,a=r.to,l=s.row,u=a.row;l>=u&&(l=a.row,u=s.row),this.currentRow>=l&&this.currentRow<=u?A(l,u,function(e){return t.selectedRows.push(e)}):this.selectedRows.push(this.currentRow)}else this.selectedRows.push(this.currentRow);this.startOffset=i.top-6,this.startHeight=parseInt(i.height,10),this.handle.style.left=i.left+"px",this.handle.style.top=this.startOffset+this.startHeight+"px",this.handle.style.width=o+"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,n=parseInt(this.hot.view.maximumVisibleElementWidth(0),10);p(this.handle,"active"),p(this.guide,"active"),this.guide.style.top=this.handle.style.top,this.guide.style.left=t+"px",this.guide.style.width=n-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||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)},n=function(n,o){var i=e.hot.runHooks("beforeRowResize",n,e.newSize,!0);void 0!==i&&(e.newSize=i),e.setManualSize(n,e.newSize),o&&t(),e.hot.runHooks("afterRowResize",n,e.newSize,!0)};if(this.dblclick>=2){var o=this.selectedRows.length;o>1?(y(this.selectedRows,function(e){n(e)}),t()):y(this.selectedRows,function(e){n(e,!0)})}this.dblclick=0,this.autoresizeTimeout=null},onMouseDown:function(e){var t=this;m(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,n=function(){t.hot.forceFullRender=!0,t.hot.view.render(),t.hot.view.wt.wtOverlays.adjustElementsSize(!0)},o=function(e,o){t.hot.runHooks("beforeRowResize",e,t.newSize),o&&n(),t.saveManualRowHeights(),t.hot.runHooks("afterRowResize",e,t.newSize)};if(this.pressed){if(this.hideHandleAndGuide(),this.pressed=!1,this.newSize!=this.startHeight){var i=this.selectedRows.length;i>1?(y(this.selectedRows,function(e){o(e)}),n()):y(this.selectedRows,function(e){o(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 n=this.hot.getPlugin("autoRowSize"),o=n?n.heights[t]:null;t=this.hot.runHooks("modifyRow",t);var i=this.manualRowHeights[t];if(void 0!==i&&(i===o||i>(e||0)))return i}return e}},{},h),_("manualRowResize",E)},{"_base.js":62,browser:24,eventManager:42,"helpers/array":43,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/number":52,plugins:61}],101:[function(e,t,n){"use strict";function o(){var e=[];return e.getInfo=function(e,t){for(var n=0,o=this.length;n<o;n++)if(this[n].row<=e&&this[n].row+this[n].rowspan-1>=e&&this[n].col<=t&&this[n].col+this[n].colspan-1>=t)return this[n]},e.setInfo=function(e){for(var t=0,n=this.length;t<n;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 n=0,o=this.length;n<o;n++)if(this[n].row===e&&this[n].col===t){this.splice(n,1);break}},e}function i(e){if(this.mergedCellInfoCollection=new o,Array.isArray(e))for(var t=0,n=e.length;t<n;t++)this.mergedCellInfoCollection.setInfo(e[t])}function r(e,t){var n=this.getSettings().mergeCells;if(n&&!this.selection.isMultiple()){var o=this.mergeCells.mergedCellInfoCollection.getInfo(e[0],e[1]);o&&(e[0]=o.row,e[1]=o.col,e[2]=o.row+o.rowspan-1,e[3]=o.col+o.colspan-1)}}function s(e,t){this.mergeCells&&this.mergeCells.shiftCollection("right",e,t)}function a(e,t){this.mergeCells&&this.mergeCells.shiftCollection("left",e,t)}function l(e,t){this.mergeCells&&this.mergeCells.shiftCollection("down",e,t)}function u(e,t){this.mergeCells&&this.mergeCells.shiftCollection("up",e,t)}Object.defineProperties(n,{MergeCells:{get:function(){return i}},__esModule:{value:!0}});var d,c,h,f,p,m,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=(p=e("3rdparty/walkontable/src/cell/range"),p&&p.__esModule&&p||{default:p}).WalkontableCellRange,C=(m=e("3rdparty/walkontable/src/table"),m&&m.__esModule&&m||{default:m}).WalkontableTable;i.prototype.canMergeRange=function(e){return!e.isSingle()},i.prototype.mergeRange=function(e){if(this.canMergeRange(e)){var t=e.getTopLeftCorner(),n=e.getBottomRightCorner(),o={};o.row=t.row,o.col=t.col,o.rowspan=n.row-t.row+1,o.colspan=n.col-t.col+1,this.mergedCellInfoCollection.setInfo(o)}},i.prototype.mergeOrUnmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.from.row,e.from.col);t?this.unmergeSelection(e.from):this.mergeSelection(e)},i.prototype.mergeSelection=function(e){this.mergeRange(e)},i.prototype.unmergeSelection=function(e){var t=this.mergedCellInfoCollection.getInfo(e.row,e.col);this.mergedCellInfoCollection.removeInfo(t.row,t.col)},i.prototype.applySpanProperties=function(e,t,n){var o=this.mergedCellInfoCollection.getInfo(t,n);o?o.row===t&&o.col===n?(e.setAttribute("rowspan",o.rowspan),e.setAttribute("colspan",o.colspan)):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"),e.style.display="none"):(e.removeAttribute("rowspan"),e.removeAttribute("colspan"))},i.prototype.modifyTransform=function(e,t,n){var o=function(e,t){return t.row>=e.row&&t.row<=e.row+e.rowspan-1},i=function(e,t){return t.col>=e.col&&t.col<=e.col+e.colspan-1},r=function(e){return new v(t.to.row+e.row,t.to.col+e.col)},s={row:n.row,col:n.col};if("modifyTransformStart"==e){this.lastDesiredCoords||(this.lastDesiredCoords=new v(null,null));for(var a,l=new v(t.highlight.row,t.highlight.col),u=this.mergedCellInfoCollection.getInfo(l.row,l.col),d=0,c=this.mergedCellInfoCollection.length;d<c;d++){var h=this.mergedCellInfoCollection[d];if(h=new v(h.row+h.rowspan-1,h.col+h.colspan-1),t.includes(h)){a=!0;break}}if(u){var f=new v(u.row,u.col),p=new v(u.row+u.rowspan-1,u.col+u.colspan-1),m=new b(f,f,p);m.includes(this.lastDesiredCoords)||(this.lastDesiredCoords=new v(null,null)),s.row=this.lastDesiredCoords.row?this.lastDesiredCoords.row-l.row:s.row,s.col=this.lastDesiredCoords.col?this.lastDesiredCoords.col-l.col:s.col,n.row>0?s.row=u.row+u.rowspan-1-l.row+n.row:n.row<0&&(s.row=l.row-u.row+n.row),n.col>0?s.col=u.col+u.colspan-1-l.col+n.col:n.col<0&&(s.col=l.col-u.col+n.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-l.row,col:w.col-l.col})}else if("modifyTransformEnd"==e)for(var d=0,c=this.mergedCellInfoCollection.length;d<c;d++){var C=this.mergedCellInfoCollection[d],f=new v(C.row,C.col),p=new v(C.row+C.rowspan-1,C.col+C.colspan-1),y=new b(f,f,p),A=t.getBordersSharedWith(y);if(y.isEqual(t))t.setDirection("NW-SE");else if(A.length>0){var _=t.highlight.isEqual(y.from);A.indexOf("top")>-1?t.to.isSouthEastOf(y.from)&&_?t.setDirection("NW-SE"):t.to.isSouthWestOf(y.from)&&_&&t.setDirection("NE-SW"):A.indexOf("bottom")>-1&&(t.to.isNorthEastOf(y.from)&&_?t.setDirection("SW-NE"):t.to.isNorthWestOf(y.from)&&_&&t.setDirection("SE-NW"))}var g=r(s),E=o(C,g),R=i(C,g);t.includesRange(y)&&(y.includes(g)||E||R)&&(E&&(s.row<0?s.row-=C.rowspan-1:s.row>0&&(s.row+=C.rowspan-1)),R&&(s.col<0?s.col-=C.colspan-1:s.col>0&&(s.col+=C.colspan-1)))}0!==s.row&&(n.row=s.row),0!==s.col&&(n.col=s.col)},i.prototype.shiftCollection=function(e,t,n){var o=[0,0];switch(e){case"right":o[0]+=1;break;case"left":o[0]-=1;break;case"down":o[1]+=1;break;case"up":o[1]-=1}for(var i=0;i<this.mergedCellInfoCollection.length;i++){var r=this.mergedCellInfoCollection[i];"right"===e||"left"===e?t<=r.col&&(r.col+=o[0]):t<=r.row&&(r.row+=o[1])}};var y=function(){var e=this,t=e.getSettings().mergeCells;t&&(e.mergeCells||(e.mergeCells=new i(t)))},A=function(){var e=this;e.mergeCells&&(e.view.wt.wtTable.getCell=function(t){if(e.getSettings().mergeCells){var n=e.mergeCells.mergedCellInfoCollection.getInfo(t.row,t.col);n&&(t=n)}return C.prototype.getCell.call(this,t)})},_=function(){var e=this,t=e.getSettings().mergeCells;if(t)if(e.mergeCells){if(e.mergeCells.mergedCellInfoCollection=new o,Array.isArray(t))for(var n=0,r=t.length;n<r;n++)e.mergeCells.mergedCellInfoCollection.setInfo(t[n])}else e.mergeCells=new i(t);else e.mergeCells&&(e.mergeCells.mergedCellInfoCollection=new o)},E=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))}},R=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 this.selection.selectedHeader.corner}}))},S=function(e,t,n,o,i,r){this.mergeCells&&this.mergeCells.applySpanProperties(e,t,n)},M=function(e){return function(t){var n=this.getSettings().mergeCells;if(n){var o=this.getSelectedRange();if(this.mergeCells.modifyTransform(e,o,t),"modifyTransformEnd"===e){var i=this.countRows(),r=this.countCols();o.from.row<0?o.from.row=0:o.from.row>0&&o.from.row>=i&&(o.from.row=o.from-1),o.from.col<0?o.from.col=0:o.from.col>0&&o.from.col>=r&&(o.from.col=r-1)}}}},k=function(e){this.lastDesiredCoords=null;var t=this.getSettings().mergeCells;if(t){var n=this.getSelectedRange();n.highlight=new v(n.highlight.row,n.highlight.col),n.to=e;var o=!1;do{o=!1;for(var i=0,r=this.mergeCells.mergedCellInfoCollection.length;i<r;i++){var s=this.mergeCells.mergedCellInfoCollection[i],a=new v(s.row,s.col),l=new v(s.row+s.rowspan-1,s.col+s.colspan-1),u=new b(a,a,l);n.expandByRange(u)&&(e.row=n.to.row,e.col=n.to.col,o=!0)}}while(o)}},T=function(e,t){if(t&&"area"==t){var n=this.getSettings().mergeCells;if(n)for(var o=this.getSelectedRange(),i=new b(o.from,o.from,o.from),r=new b(o.to,o.to,o.to),s=0,a=this.mergeCells.mergedCellInfoCollection.length;s<a;s++){var l=this.mergeCells.mergedCellInfoCollection[s],u=new v(l.row,l.col),d=new v(l.row+l.rowspan-1,l.col+l.colspan-1),c=new b(u,u,d);i.expandByRange(c)&&(e[0]=i.from.row,e[1]=i.from.col),r.expandByRange(c)&&(e[2]=r.from.row,e[3]=r.from.col)}}},x=function(e,t,n){var o=this.getSettings().mergeCells;if(o){var i=this.mergeCells.mergedCellInfoCollection.getInfo(e,t);!i||i.row==e&&i.col==t||(n.copyable=!1)}},O=function(e){var t=this.getSettings().mergeCells;if(t)for(var n,o=this.countCols(),i=0;i<o;i++){if(n=this.mergeCells.mergedCellInfoCollection.getInfo(e.startRow,i),n&&n.row<e.startRow)return e.startRow=n.row,O.call(this,e);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(e.endRow,i)){var r=n.row+n.rowspan-1;if(r>e.endRow)return e.endRow=r,O.call(this,e)}}},B=function(e){var t=this.getSettings().mergeCells;if(t)for(var n,o=this.countRows(),i=0;i<o;i++){if(n=this.mergeCells.mergedCellInfoCollection.getInfo(i,e.startColumn),n&&n.col<e.startColumn)return e.startColumn=n.col,B.call(this,e);if(n=this.mergeCells.mergedCellInfoCollection.getInfo(i,e.endColumn)){var r=n.col+n.colspan-1;if(r>e.endColumn)return e.endColumn=r,B.call(this,e)}}},D=function(e){if(e&&this.mergeCells){var t=this.mergeCells.mergedCellInfoCollection,n=this.getSelectedRange();for(var o in t)if(n.highlight.row==t[o].row&&n.highlight.col==t[o].col&&n.to.row==t[o].row+t[o].rowspan-1&&n.to.col==t[o].col+t[o].colspan-1)return!1}return e};g.hooks.add("beforeInit",y),g.hooks.add("afterInit",A),g.hooks.add("afterUpdateSettings",_),g.hooks.add("beforeKeyDown",E),g.hooks.add("modifyTransformStart",M("modifyTransformStart")),g.hooks.add("modifyTransformEnd",M("modifyTransformEnd")),g.hooks.add("beforeSetRangeEnd",k),g.hooks.add("beforeDrawBorders",T),g.hooks.add("afterIsMultipleSelection",D),g.hooks.add("afterRenderer",S),g.hooks.add("afterContextMenuDefaultOptions",R),g.hooks.add("afterGetCellMeta",x),g.hooks.add("afterViewportRowCalculatorOverride",O),g.hooks.add("afterViewportColumnCalculatorOverride",B),g.hooks.add("afterAutofillApplyValues",r),g.hooks.add("afterCreateCol",s),g.hooks.add("afterRemoveCol",a),
  g.hooks.add("afterCreateRow",l),g.hooks.add("afterRemoveRow",u),g.MergeCells=i},{"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/cell/range":7,"3rdparty/walkontable/src/table":21,browser:24,"helpers/dom/event":48,plugins:61}],102:[function(e,t,n){"use strict";Object.defineProperties(n,{MultipleSelectionHandles:{get:function(){return w}},__esModule:{value:!0}});var o,i,r,s,a,l,u=((o=e("browser"),o&&o.__esModule&&o||{default:o}).default,i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),d=u.getWindowScrollTop,c=u.hasClass,h=u.getWindowScrollLeft,f=(r=e("helpers/browser"),r&&r.__esModule&&r||{default:r}).isMobileBrowser,p=(s=e("_base"),s&&s.__esModule&&s||{default:s}).default,m=(a=e("eventManager"),a&&a.__esModule&&a||{default:a}).EventManager,g=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).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 m(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 n=t.dragged.indexOf(e);return n!=-1&&void(0===n?t.dragged=t.dragged.slice(0,1):1==n&&(t.dragged=t.dragged.slice(-1)))}var t=this;this.eventManager.addEventListener(this.hot.rootElement,"touchstart",function(e){var n;return c(e.target,"topLeftSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("topLeft"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):c(e.target,"bottomRightSelectionHandle-HitArea")?(n=t.hot.getSelectedRange(),t.dragged.push("bottomRight"),t.touchStartRange={width:n.getWidth(),height:n.getHeight(),direction:n.getDirection()},e.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchend",function(n){return c(n.target,"topLeftSelectionHandle-HitArea")?(e.call(t,"topLeft"),t.touchStartRange=void 0,n.preventDefault(),!1):c(n.target,"bottomRightSelectionHandle-HitArea")?(e.call(t,"bottomRight"),t.touchStartRange=void 0,n.preventDefault(),!1):void 0}),this.eventManager.addEventListener(this.hot.rootElement,"touchmove",function(e){var n,o,i,r,s,a,l,u=d(),c=h();0!==t.dragged.length&&(n=document.elementFromPoint(e.touches[0].screenX-c,e.touches[0].screenY-u),n&&n!==t.lastSetCell&&("TD"!=n.nodeName&&"TH"!=n.nodeName||(o=t.hot.getCoords(n),o.col==-1&&(o.col=0),i=t.hot.getSelectedRange(),r=i.getWidth(),s=i.getHeight(),a=i.getDirection(),1==r&&1==s&&t.hot.selection.setRangeEnd(o),l=t.getCurrentRangeCoords(i,o,t.touchStartRange.direction,a,t.dragged[0]),null!==l.start&&t.hot.selection.setRangeStart(l.start),t.hot.selection.setRangeEnd(l.end),t.lastSetCell=n),e.preventDefault()))})},getCurrentRangeCoords:function(e,t,n,o,i){var r=e.getTopLeftCorner(),s=e.getBottomRightCorner(),a=e.getBottomLeftCorner(),l=e.getTopRightCorner(),u={start:null,end:null};switch(n){case"NE-SW":switch(o){case"NE-SW":case"NW-SE":u="topLeft"==i?{start:new WalkontableCellCoords(t.row,e.highlight.col),end:new WalkontableCellCoords(a.row,t.col)}:{start:new WalkontableCellCoords(e.highlight.row,t.col),end:new WalkontableCellCoords(t.row,r.col)};break;case"SE-NW":"bottomRight"==i&&(u={start:new WalkontableCellCoords(s.row,t.col),end:new WalkontableCellCoords(t.row,r.col)})}break;case"NW-SE":switch(o){case"NE-SW":"topLeft"==i?u={start:t,end:a}:u.end=t;break;case"NW-SE":"topLeft"==i?u={start:t,end:s}:u.end=t;break;case"SE-NW":"topLeft"==i?u={start:t,end:r}:u.end=t;break;case"SW-NE":"topLeft"==i?u={start:t,end:l}:u.end=t}break;case"SW-NE":switch(o){case"NW-SE":u="bottomRight"==i?{start:new WalkontableCellCoords(t.row,r.col),end:new WalkontableCellCoords(a.row,t.col)}:{start:new WalkontableCellCoords(r.row,t.col),end:new WalkontableCellCoords(t.row,s.col)};break;case"SW-NE":u="topLeft"==i?{start:new WalkontableCellCoords(e.highlight.row,t.col),end:new WalkontableCellCoords(t.row,s.col)}:{start:new WalkontableCellCoords(t.row,r.col),end:new WalkontableCellCoords(r.row,t.col)};break;case"SE-NW":"bottomRight"==i?u={start:new WalkontableCellCoords(t.row,l.col),end:new WalkontableCellCoords(r.row,t.col)}:"topLeft"==i&&(u={start:a,end:t})}break;case"SE-NW":switch(o){case"NW-SE":case"NE-SW":case"SW-NE":"topLeft"==i&&(u.end=t);break;case"SE-NW":"topLeft"==i?u.end=t:u={start:t,end:r}}}return u},isDragged:function(){return this.dragged.length>0}},{},p),g("multipleSelectionHandles",w)},{_base:62,browser:24,eventManager:42,"helpers/browser":44,"helpers/dom/element":47,plugins:61}],103:[function(e,t,n){"use strict";Object.defineProperties(n,{DataObserver:{get:function(){return c}},__esModule:{value:!0}});var o,i,r,s,a=(o=e("jsonpatch"),o&&o.__esModule&&o||{default:o}).default,l=(i=e("../../mixins/localHooks"),i&&i.__esModule&&i||{default:i}).localHooks,u=(r=e("../../helpers/object"),r&&r.__esModule&&r||{default:r}).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&&a.unobserve(this.observedData,this.observer),this.observedData=e,this.observer=a.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(){a.unobserve(this.observedData,this.observer),this.observedData=null,this.observer=null}},{}),u(c,l)},{"../../helpers/object":53,"../../mixins/localHooks":58,jsonpatch:"jsonpatch",utils:105}],104:[function(e,t,n){"use strict";Object.defineProperties(n,{ObserveChanges:{get:function(){return p}},__esModule:{value:!0}});var o,i,r,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,d=(i=e("_base"),i&&i.__esModule&&i||{default:i}).default,c=((r=e("jsonpatch"),r&&r.__esModule&&r||{default:r}).default,(s=e("dataObserver"),s&&s.__esModule&&s||{default:s}).DataObserver),h=(a=e("helpers/array"),a&&a.__esModule&&a||{default:a}).arrayEach,f=(l=e("plugins"),l&&l.__esModule&&l||{default:l}).registerPlugin;u.hooks.register("afterChangesObserved");var p=function(e){$traceurRuntime.superConstructor(m).call(this,e),this.observer=null},m=p;$traceurRuntime.createClass(p,{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,n){return e.onAfterTableAlter(n)}),this.addHook("afterLoadData",function(t){return e.onAfterLoadData(t)}),$traceurRuntime.superGet(this,m.prototype,"enablePlugin").call(this))},disablePlugin:function(){this.observer&&(this.observer.destroy(),this.observer=null,this._deletePublicApi()),$traceurRuntime.superGet(this,m.prototype,"disablePlugin").call(this)},onDataChange:function(e){var t=this;if(!this.observer.isPaused()){var n={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){n[e.op]&&n[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,m.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",p)},{_base:62,browser:24,dataObserver:103,"helpers/array":43,jsonpatch:"jsonpatch",plugins:61}],105:[function(e,t,n){"use strict";function o(e){var t=[];return e=a(e,function(e){return!/[\/]length/gi.test(e.path)&&!!i(e.path)}),e=l(e,function(e){var t=i(e.path);return e.row=t.row,e.col=t.col,e}),e=a(e,function(e){if(["add","remove"].indexOf(e.op)!==-1&&!isNaN(e.col)){if(t.indexOf(e.col)!==-1)return!1;t.push(e.col)}return!0}),t.length=0,e}function i(e){var t=e.match(/^\/(\d+)\/?(.*)?$/);if(!t)return null;var n=t,o=n[1],i=n[2];return{row:parseInt(o,10),col:/^\d*$/.test(i)?parseInt(i,10):i}}Object.defineProperties(n,{cleanPatches:{get:function(){return o}},parsePath:{get:function(){return i}},__esModule:{value:!0}});var r,s=(r=e("../../helpers/array"),r&&r.__esModule&&r||{default:r}),a=s.arrayFilter,l=s.arrayMap},{"../../helpers/array":43}],106:[function(e,t,n){"use strict";function o(e){var t,n=function(){window.localStorage[e+"__persistentStateKeys"]=JSON.stringify(t)},o=function(){var n=window.localStorage[e+"__persistentStateKeys"],o="string"==typeof n?JSON.parse(n):void 0;t=o?o:[]},i=function(){t=[],n()};o(),this.saveValue=function(o,i){window.localStorage[e+"_"+o]=JSON.stringify(i),t.indexOf(o)==-1&&(t.push(o),n())},this.loadValue=function(t,n){t="undefined"==typeof t?n:t;var o=window.localStorage[e+"_"+t];return"undefined"==typeof o?void 0:JSON.parse(o)},this.reset=function(t){window.localStorage.removeItem(e+"_"+t)},this.resetAll=function(){for(var n=0;n<t.length;n++)window.localStorage.removeItem(e+"_"+t[n]);i()}}function i(){function e(){var e=this;for(var t in i)i.hasOwnProperty(t)&&e.addHook(t,i[t])}function t(){var e=this;for(var t in i)i.hasOwnProperty(t)&&e.removeHook(t,i[t])}var n=this;this.init=function(){var i=this,r=i.getSettings().persistentState;return n.enabled=!!r,n.enabled?(i.storage||(i.storage=new o(i.rootElement.id)),i.resetState=n.resetValue,void e.call(i)):void t.call(i)},this.saveValue=function(e,t){var n=this;n.storage.saveValue(e,t)},this.loadValue=function(e,t){var n=this;t.value=n.storage.loadValue(e)},this.resetValue=function(e){var t=this;"undefined"==typeof e?t.storage.resetAll():t.storage.reset(e)};var i={persistentStateSave:n.saveValue,persistentStateLoad:n.loadValue,persistentStateReset:n.resetValue};for(var r in i)i.hasOwnProperty(r)&&a.hooks.register(r)}Object.defineProperties(n,{HandsontablePersistentState:{get:function(){return i}},__esModule:{value:!0}});var r,s,a=(r=e("browser"),r&&r.__esModule&&r||{default:r}).default,l=((s=e("plugins"),s&&s.__esModule&&s||{default:s}).registerPlugin,new i);a.hooks.add("beforeInit",l.init),a.hooks.add("afterUpdateSettings",l.init)},{browser:24,plugins:61}],107:[function(e,t,n){"use strict";function o(){var e=this,t=!!e.getSettings().search;t?e.search=new a.Search(e):delete e.search}var i,r,s,a=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,l=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),u=l.addClass,d=l.removeClass,c=(s=e("renderers"),s&&s.__esModule&&s||{default:s}),h=c.registerRenderer,f=c.getRenderer;a.Search=function(e){this.query=function(t,n,o){var i=e.countRows(),r=e.countCols(),s=[];n||(n=a.Search.global.getDefaultCallback()),o||(o=a.Search.global.getDefaultQueryMethod());for(var l=0;l<i;l++)for(var u=0;u<r;u++){var d=e.getDataAtCell(l,u),c=e.getCellMeta(l,u),h=c.search.callback||n,f=c.search.queryMethod||o,p=f(t,d);if(p){var m={row:l,col:u,data:d};s.push(m)}h&&h(e,l,u,d,p)}return s}},a.Search.DEFAULT_CALLBACK=function(e,t,n,o,i){e.getCellMeta(t,n).isSearchResult=i},a.Search.DEFAULT_QUERY_METHOD=function(e,t){return!("undefined"==typeof e||null==e||!e.toLowerCase||0===e.length)&&("undefined"!=typeof t&&null!=t&&t.toString().toLowerCase().indexOf(e.toLowerCase())!=-1)},a.Search.DEFAULT_SEARCH_RESULT_CLASS="htSearchResult",a.Search.global=function(){var e=a.Search.DEFAULT_CALLBACK,t=a.Search.DEFAULT_QUERY_METHOD,n=a.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 n},setDefaultSearchResultClass:function(e){n=e}}}(),a.SearchCellDecorator=function(e,t,n,o,i,r,s){var l=null!==s.search&&"object"==typeof s.search&&s.search.searchResultClass||a.Search.global.getDefaultSearchResultClass();s.isSearchResult?u(t,l):d(t,l)};var p=f("base");h("base",function(e,t,n,o,i,r,s){p.apply(this,arguments),a.SearchCellDecorator.apply(this,arguments)}),a.hooks.add("afterInit",o),a.hooks.add("afterUpdateSettings",o)},{browser:24,"helpers/dom/element":47,renderers:110}],108:[function(e,t,n){"use strict";Object.defineProperties(n,{TouchScroll:{get:function(){return f}},__esModule:{value:!0}});var o,i,r,s,a=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,l=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),u=l.addClass,d=l.removeClass,c=(r=e("_base"),r&&r.__esModule&&r||{default:r}).default,h=(s=e("plugins"),s&&s.__esModule&&s||{default:s}).registerPlugin,f=function(e){var t=this;$traceurRuntime.superConstructor(p).call(this,e),this.hot.addHook("afterInit",function(){return t.afterInit()}),this.hot.addHook("afterUpdateSettings",function(){return t.onAfterUpdateSettings()}),this.scrollbars=[],this.clones=[]},p=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(){a.freezeOverlays=!0;for(var e=0,t=this.clones.length;e<t;e++)u(this.clones[e],"hide-tween")},onAfterMomentumScroll:function(){a.freezeOverlays=!1;for(var e=this,t=0,n=this.clones.length;t<n;t++)d(this.clones[t],"hide-tween");for(var o=0,i=this.clones.length;o<i;o++)u(this.clones[o],"show-tween");setTimeout(function(){for(var t=0,n=e.clones.length;t<n;t++)d(e.clones[t],"show-tween")},400);for(var r=0,s=this.scrollbars.length;r<s;r++)this.scrollbars[r].refresh(),this.scrollbars[r].resetFixedPosition();this.hot.view.wt.wtOverlays.syncScrollWithMaster()}},{},c),h("touchScroll",f)},{_base:62,browser:24,"helpers/dom/element":47,plugins:61}],109:[function(e,t,n){"use strict";function o(){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",i),e.addHook("afterChange",r)):e.undoRedo&&(delete e.undoRedo,a(e),e.removeHook("beforeKeyDown",i),e.removeHook("afterChange",r))}function i(e){var t=this,n=(e.ctrlKey||e.metaKey)&&!e.altKey;n&&(89===e.keyCode||e.shiftKey&&90===e.keyCode?(t.undoRedo.redo(),b(e)):90===e.keyCode&&(t.undoRedo.undo(),b(e)))}function r(e,t){var n=this;if("loadData"==t)return n.undoRedo.clear()}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 a(e){delete e.undo,delete e.redo,delete e.isUndoAvailable,delete e.isRedoAvailable,delete e.clearUndo}var l,u,d,c,h,f=(l=e("browser"),l&&l.__esModule&&l||{default:l}).default,p=(u=e("helpers/array"),u&&u.__esModule&&u||{default:u}).arrayMap,m=(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,n){if(e){var o=new f.UndoRedo.ChangeAction(e);t.done(o)}}),e.addHook("afterCreateRow",function(e,n,o){if(!o){var i=new f.UndoRedo.CreateRowAction(e,n);t.done(i)}}),e.addHook("beforeRemoveRow",function(e,n){var o=t.instance.getSourceData();e=(o.length+e)%o.length;var i=o.slice(e,e+n),r=new f.UndoRedo.RemoveRowAction(e,i);t.done(r)}),e.addHook("afterCreateCol",function(e,n,o){if(!o){var i=new f.UndoRedo.CreateColumnAction(e,n);t.done(i)}}),e.addHook("beforeRemoveCol",function(n,o){var i=t.instance.getData();n=(t.instance.countCols()+n)%t.instance.countCols();var r=[],s=[],a=[];m(0,i.length-1,function(e){r[e]=i[e].slice(n,n+o)}),m(0,o-1,function(t){a.push(e.runHooks("modifyCol",n+t))}),Array.isArray(e.getSettings().colHeaders)&&m(0,o-1,function(t){s.push(e.getSettings().colHeaders[e.runHooks("modifyCol",n+t)]||null)});var l=t.instance.getPlugin("manualColumnMove"),u=new f.UndoRedo.RemoveColumnAction(a,r,s,l?l.columnPositions:[]);t.done(u)}),e.addHook("beforeCellAlignment",function(e,n,o,i){var r=new f.UndoRedo.CellAlignmentAction(e,n,o,i);t.done(r)}),e.addHook("beforeFilter",function(e){t.done(new f.UndoRedo.FiltersAction(e))}),e.addHook("beforeRowMove",function(e,n){t.done(new f.UndoRedo.RowMoveAction(e,n))})},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(),t=v(e),n=this.instance,o=n.runHooks("beforeUndo",t);if(o===!1)return;this.ignoreNewActions=!0;var i=this;e.undo(this.instance,function(){i.ignoreNewActions=!1,i.undoneActions.push(e)}),n.runHooks("afterUndo",t)}},f.UndoRedo.prototype.redo=function(){if(this.isRedoAvailable()){var e=this.undoneActions.pop(),t=v(e),n=this.instance,o=n.runHooks("beforeRedo",t);if(o===!1)return;this.ignoreNewActions=!0;var i=this;e.redo(this.instance,function(){i.ignoreNewActions=!1,i.doneActions.push(e)}),n.runHooks("afterRedo",t)}},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,this.actionType="change"},w(f.UndoRedo.ChangeAction,f.UndoRedo.Action),f.UndoRedo.ChangeAction.prototype.undo=function(e,t){for(var n=v(this.changes),o=e.countEmptyRows(!0),i=e.countEmptyCols(!0),r=0,s=n.length;r<s;r++)n[r].splice(3,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"undo");for(var a=0,l=n.length;a<l;a++)e.getSettings().minSpareRows&&n[a][0]+1+e.getSettings().minSpareRows===e.countRows()&&o==e.getSettings().minSpareRows&&(e.alter("remove_row",parseInt(n[a][0]+1,10),e.getSettings().minSpareRows),e.undoRedo.doneActions.pop()),e.getSettings().minSpareCols&&n[a][1]+1+e.getSettings().minSpareCols===e.countCols()&&i==e.getSettings().minSpareCols&&(e.alter("remove_col",parseInt(n[a][1]+1,10),e.getSettings().minSpareCols),e.undoRedo.doneActions.pop())},f.UndoRedo.ChangeAction.prototype.redo=function(e,t){for(var n=v(this.changes),o=0,i=n.length;o<i;o++)n[o].splice(2,1);e.addHookOnce("afterChange",t),e.setDataAtRowProp(n,null,null,"redo")},f.UndoRedo.CreateRowAction=function(e,t){this.index=e,this.amount=t,this.actionType="insert_row"},w(f.UndoRedo.CreateRowAction,f.UndoRedo.Action),f.UndoRedo.CreateRowAction.prototype.undo=function(e,t){var n=e.countRows(),o=e.getSettings().minSpareRows;this.index>=n&&this.index-o<n&&(this.index-=o),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,this.actionType="remove_row"},w(f.UndoRedo.RemoveRowAction,f.UndoRedo.Action),f.UndoRedo.RemoveRowAction.prototype.undo=function(e,t){var n=[this.index,0];Array.prototype.push.apply(n,this.data),Array.prototype.splice.apply(e.getSourceData(),n),e.runHooks("afterCreateRow",this.index,this.data.length,!0),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,this.actionType="insert_col"},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,n,o){this.stateBefore=e,this.range=t,this.type=n,this.alignment=o,this.actionType="cell_alignment"},f.UndoRedo.CellAlignmentAction.prototype.undo=function(e,t){if(e.getPlugin("contextMenu").isEnabled()){for(var n=this.range.from.row;n<=this.range.to.row;n++)for(var o=this.range.from.col;o<=this.range.to.col;o++)e.setCellMeta(n,o,"className",this.stateBefore[n][o]||" 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,n,o){this.indexes=e,this.data=t,this.amount=this.data[0].length,this.headers=n,this.columnPositions=o.slice(0),this.actionType="remove_col"},w(f.UndoRedo.RemoveColumnAction,f.UndoRedo.Action),f.UndoRedo.RemoveColumnAction.prototype.undo=function(e,t){var n,o=this,i=this.indexes.slice(0).sort(),r=function(e,t,n){return n[o.indexes.indexOf(i[t])]},s=[];m(0,this.data.length-1,function(e){s[e]=p(o.data[e],r)});var a=[];a=p(this.headers,r),m(0,this.data.length-1,function(t){n=e.getSourceDataAtRow(t),m(0,i.length-1,function(e){n.splice(i[e],0,s[t][e])})}),"undefined"!=typeof this.headers&&m(0,a.length-1,function(t){e.getSettings().colHeaders.splice(i[t],0,a[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,this.actionType="filter"},w(f.UndoRedo.FiltersAction,f.UndoRedo.Action),f.UndoRedo.FiltersAction.prototype.undo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.formulaCollection.importAllFormulas(this.formulaStacks.slice(0,this.formulaStacks.length-1)),n.filter()},f.UndoRedo.FiltersAction.prototype.redo=function(e,t){var n=e.getPlugin("filters");e.addHookOnce("afterRender",t),n.formulaCollection.importAllFormulas(this.formulaStacks),n.filter()},f.UndoRedo.RowMoveAction=function(e,t){this.rows=e.slice(),this.target=t},w(f.UndoRedo.RowMoveAction,f.UndoRedo.Action),f.UndoRedo.RowMoveAction.prototype.undo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t);for(var o=this.rows[0]<this.target?-1*this.rows.length:0,i=this.rows[0]>this.target?this.rows[0]+this.rows.length:this.rows[0],r=[],s=this.rows.length+o,a=o;a<s;a++)r.push(this.target+a);n.moveRows(r.slice(),i),e.render(),e.selection.setRangeStartOnly(new WalkontableCellCoords(this.rows[0],0)),e.selection.setRangeEnd(new WalkontableCellCoords(this.rows[this.rows.length-1],e.countCols()-1))},f.UndoRedo.RowMoveAction.prototype.redo=function(e,t){var n=e.getPlugin("manualRowMove");e.addHookOnce("afterRender",t),n.moveRows(this.rows.slice(),this.target),e.render();var o=this.rows[0]<this.target?this.target-this.rows.length:this.target;e.selection.setRangeStartOnly(new WalkontableCellCoords(o,0)),e.selection.setRangeEnd(new WalkontableCellCoords(o+this.rows.length-1,e.countCols()-1))},f.hooks.add("afterInit",o),f.hooks.add("afterUpdateSettings",o),f.hooks.register("beforeUndo"),f.hooks.register("afterUndo"),f.hooks.register("beforeRedo"),f.hooks.register("afterRedo")},{browser:24,"helpers/array":43,"helpers/dom/event":48,"helpers/number":52,"helpers/object":53}],110:[function(e,t,n){"use strict";function o(e,t){var n;d[e]=t,n=u(e)+"Renderer",l.renderers[n]=t,l[n]=t,"base"===e&&(l.renderers.cellDecorator=t)}function i(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 r(e){return e in d}Object.defineProperties(n,{registerRenderer:{get:function(){return o}},getRenderer:{get:function(){return i}},hasRenderer:{get:function(){return r}},__esModule:{value:!0}});var s,a,l=(s=e("browser"),s&&s.__esModule&&s||{default:s}).default,u=(a=e("helpers/string"),a&&a.__esModule&&a||{default:a}).toUpperCaseFirst,d={};l.renderers=l.renderers||{},l.renderers.registerRenderer=o,l.renderers.getRenderer=i},{browser:24,"helpers/string":55}],111:[function(e,t,n){"use strict";function o(e,t,n,o,i,r,s){s.className&&(t.className?t.className=t.className+" "+s.className:t.className=s.className),s.readOnly&&a(t,s.readOnlyCellClassName),s.valid===!1&&s.invalidCellClassName?a(t,s.invalidCellClassName):l(t,s.invalidCellClassName),s.wordWrap===!1&&s.noWordWrapClassName&&a(t,s.noWordWrapClassName),!r&&s.placeholder&&a(t,s.placeholderCellClassName)}Object.defineProperties(n,{cellDecorator:{get:function(){return o}},__esModule:{value:!0}});var i,r,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),a=s.addClass,l=s.removeClass,u=(r=e("renderers"),r&&r.__esModule&&r||{default:r}).registerRenderer;u("base",o)},{"helpers/dom/element":47,renderers:110}],112:[function(e,t,n){"use strict";function o(e,t,n,o,i,r,s){var a=(g.cloneNode(!0),w.cloneNode(!0));if(f("text")(e,t,n,o,i,r,s),t.appendChild(a),u(t,"htAutocomplete"),t.firstChild||t.appendChild(document.createTextNode(String.fromCharCode(160))),!e.acArrowListener){var l=c(e);e.acArrowListener=function(i){d(i.target,"htAutocompleteArrow")&&e.view.wt.getSetting("onCellDblClick",null,new m(n,o),t)},l.addEventListener(e.rootElement,"mousedown",e.acArrowListener),e.addHookOnce("afterDestroy",function(){l.destroy()})}}Object.defineProperties(n,{autocompleteRenderer:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a,l=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),u=l.addClass,d=l.hasClass,c=(l.empty,(r=e("eventManager"),r&&r.__esModule&&r||{default:r}).eventManager),h=(s=e("renderers"),s&&s.__esModule&&s||{default:s}),f=h.getRenderer,p=h.registerRenderer,m=(a=e("3rdparty/walkontable/src/cell/coords"),a&&a.__esModule&&a||{default:a}).WalkontableCellCoords,g=document.createElement("DIV");g.className="htAutocompleteWrapper";var w=document.createElement("DIV");w.className="htAutocompleteArrow",w.appendChild(document.createTextNode(String.fromCharCode(9660)));p("autocomplete",o)},{"3rdparty/walkontable/src/cell/coords":6,eventManager:42,"helpers/dom/element":47,renderers:110}],113:[function(e,t,n){"use strict";function o(e,t,n,o,a,l,u){function d(e){var t="SPACE|ENTER",n="DELETE|BACKSPACE",o=k(M,e.keyCode);o(t+"|"+n)&&!O(e)&&f(function(){x(e),e.preventDefault()}),o(t)&&c(),o(n)&&c(!1)}function c(){var t=void 0!==arguments[0]?arguments[0]:null;f(function(){if(arguments.length>1){var n=arguments[0],o=arguments[1],i=arguments[2];if(i.checkedTemplate){var r=e.getDataAtCell(n,o);null===t?r===i.checkedTemplate?e.setDataAtCell(n,o,i.uncheckedTemplate):r===i.uncheckedTemplate&&e.setDataAtCell(n,o,i.checkedTemplate):e.setDataAtCell(n,o,i.uncheckedTemplate)}}else for(var s=arguments[0],a=0,l=s.length;a<l;a++){if(y(s[a],H)&&null===t)return;h(s[a],t)}})}function h(e){var t=void 0!==arguments[1]?arguments[1]:null;null===t?e.checked=!e.checked:e.checked=t,p.fireEvent(e,"change")}function f(t){var n=e.getSelectedRange();if(n)for(var o=n.getTopLeftCorner(),i=n.getBottomRightCorner(),r=o.row;r<=i.row;r++)for(var s=o.col;s<=i.col;s++){var a=e.getCellMeta(r,s);if("checkbox"!==a.type)return;var l=e.getCell(r,s);if(null==l)t(r,s,a);else{var u=l.querySelectorAll("input[type=checkbox]");u.length>0&&!a.readOnly&&t(u)}}}R("base").apply(this,arguments);var p=i(e),m=r(),g=u.label,w=!1;if("undefined"==typeof u.checkedTemplate&&(u.checkedTemplate=!0),"undefined"==typeof u.uncheckedTemplate&&(u.uncheckedTemplate=!1),b(t),l===u.checkedTemplate||A(l,u.checkedTemplate)?m.checked=!0:l===u.uncheckedTemplate||A(l,u.uncheckedTemplate)?m.checked=!1:null===l?C(m,"noValue"):(m.style.display="none",C(m,H),w=!0),m.setAttribute("data-row",n),m.setAttribute("data-col",o),!w&&g){var v="";g.value?v="function"==typeof g.value?g.value.call(this,n,o,a,l):g.value:g.property&&(v=e.getDataAtRowProp(n,g.property));var _=s(v);"before"===g.position?_.appendChild(m):_.insertBefore(m,_.firstChild),m=_}t.appendChild(m),w&&t.appendChild(document.createTextNode("#bad-value#")),B.has(e)||(B.set(e,!0),e.addHook("beforeKeyDown",d))}function i(e){var t=D.get(e);return t||(t=new _(e),t.addEventListener(e.rootElement,"click",function(t){return l(t,e)}),t.addEventListener(e.rootElement,"mouseup",function(t){return a(t,e)}),t.addEventListener(e.rootElement,"change",function(t){return u(t,e)}),D.set(e,t)),t}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 s(e){var t=document.createElement("label");return t.className="htCheckboxRendererLabel",t.appendChild(document.createTextNode(e)),t.cloneNode(!0)}function a(e,t){d(e.target)&&setTimeout(t.listen,10)}function l(e,t){if(!d(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),i=t.getCellMeta(n,o);i.readOnly&&e.preventDefault()}function u(e,t){if(!d(e.target))return!1;var n=parseInt(e.target.getAttribute("data-row"),10),o=parseInt(e.target.getAttribute("data-col"),10),i=t.getCellMeta(n,o);i.readOnly||t.setDataAtCell(n,o,e.target.checked?i.checkedTemplate||!0:i.uncheckedTemplate||!1);
  }function d(e){return"INPUT"===e.tagName&&"checkbox"===e.getAttribute("type")}Object.defineProperties(n,{checkboxRenderer:{get:function(){return o}},__esModule:{value:!0}});var c,h,f,p,m,g,w,v=(c=e("helpers/dom/element"),c&&c.__esModule&&c||{default:c}),b=v.empty,C=v.addClass,y=v.hasClass,A=(h=e("helpers/string"),h&&h.__esModule&&h||{default:h}).equalsIgnoreCase,_=(f=e("eventManager"),f&&f.__esModule&&f||{default:f}).EventManager,E=(p=e("renderers"),p&&p.__esModule&&p||{default:p}),R=E.getRenderer,S=E.registerRenderer,M=(m=e("helpers/unicode"),m&&m.__esModule&&m||{default:m}).isKey,k=(g=e("helpers/function"),g&&g.__esModule&&g||{default:g}).partial,T=(w=e("helpers/dom/event"),w&&w.__esModule&&w||{default:w}),x=T.stopImmediatePropagation,O=T.isImmediatePropagationStopped,B=new WeakMap,D=new WeakMap,H="htBadValue";S("checkbox",o)},{eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48,"helpers/function":50,"helpers/string":55,"helpers/unicode":56,renderers:110}],114:[function(e,t,n){"use strict";function o(e,t,n,o,i,r,a){l("base").apply(this,arguments),null!==r&&void 0!==r||(r=""),s(t,r)}Object.defineProperties(n,{htmlRenderer:{get:function(){return o}},__esModule:{value:!0}});var i,r,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).fastInnerHTML,a=(r=e("renderers"),r&&r.__esModule&&r||{default:r}),l=a.getRenderer,u=a.registerRenderer;u("html",o)},{"helpers/dom/element":47,renderers:110}],115:[function(e,t,n){"use strict";function o(e,t,n,o,i,r,s){if(c(r)){"undefined"!=typeof s.language&&a.culture(s.language),r=a(r).format(s.format||"0");var l=s.className||"",d=l.length?l.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,n,o,i,r,s)}Object.defineProperties(n,{numericRenderer:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a=(i=e("numbro"),i&&i.__esModule&&i||{default:i}).default,l=(r=e("renderers"),r&&r.__esModule&&r||{default:r}),u=l.getRenderer,d=l.registerRenderer,c=(s=e("helpers/number"),s&&s.__esModule&&s||{default:s}).isNumeric;d("numeric",o)},{"helpers/number":52,numbro:"numbro",renderers:110}],116:[function(e,t,n){"use strict";function o(e,t,n,o,i,r,a){l("text").apply(this,arguments),r=t.innerHTML;var u,d=a.hashLength||r.length,c=a.hashSymbol||"*";for(u="";u.split(c).length-1<d;u+=c);s(t,u)}Object.defineProperties(n,{passwordRenderer:{get:function(){return o}},__esModule:{value:!0}});var i,r,s=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}).fastInnerHTML,a=(r=e("renderers"),r&&r.__esModule&&r||{default:r}),l=a.getRenderer,u=a.registerRenderer;u("password",o)},{"helpers/dom/element":47,renderers:110}],117:[function(e,t,n){"use strict";function o(e,t,n,o,i,r,s){h("base").apply(this,arguments),!r&&s.placeholder&&(r=s.placeholder);var a=d(r);if(e.getSettings().trimWhitespace||(a=a.replace(/ /g,String.fromCharCode(160))),s.rendererTemplate){l(t);var c=document.createElement("TEMPLATE");c.setAttribute("bind","{{}}"),c.innerHTML=s.rendererTemplate,HTMLTemplateElement.decorate(c),c.model=e.getSourceDataAtRow(n),t.appendChild(c)}else u(t,a)}Object.defineProperties(n,{textRenderer:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),l=a.empty,u=a.fastInnerText,d=(r=e("helpers/mixed"),r&&r.__esModule&&r||{default:r}).stringify,c=(s=e("renderers"),s&&s.__esModule&&s||{default:s}),h=c.getRenderer,f=c.registerRenderer;f("text",o)},{"helpers/dom/element":47,"helpers/mixed":51,renderers:110}],118:[function(e,t,n){!function(e){"use strict";function t(e){return{configurable:!0,enumerable:!1,value:e,writable:!0}}function n(){return"__$"+Math.floor(1e9*Math.random())+"$"+ ++B+"$__"}function o(e){return L[e]}function i(){var e=n();return L[e]=!0,e}function r(e){return"object"==typeof e&&e instanceof l}function s(e){return r(e)?"symbol":typeof e}function a(e){var t=new l(e);if(!(this instanceof a))return t;throw new TypeError("Symbol cannot be new'ed")}function l(e){var t=n();R(this,P,{value:this}),R(this,D,{value:t}),R(this,H,{value:e}),d(this),N[t]=this}function u(e){var t=e[W];return t&&t.self===e?t:x(e)?(F.hash.value=j++,F.self.value=e,I.value=_(null,F),R(e,W,I),I.value):void 0}function d(e){return u(e),S.apply(this,arguments)}function c(e){return N[e]||L[e]}function h(e){return r(e)?e[D]:e}function f(e){for(var t=[],n=k(e),o=0;o<n.length;o++){var i=N[n[o]];i&&t.push(i)}return t}function p(t){return e.traceur&&e.traceur.options[t]}function m(e){for(var t=1;t<arguments.length;t++)for(var n=k(arguments[t]),o=0;o<n.length;o++){var i=n[o];c(i)||!function(t,n){R(e,n,{get:function(){return t[n]},enumerable:!0})}(arguments[t],n[o])}return e}function g(e){return null!=e&&("object"==typeof e||"function"==typeof e)}function w(e){if(null==e)throw A();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,a),e.Reflect=e.Reflect||{},e.Reflect.global=e.Reflect.global||e}if(!e.$traceurRuntime){var y=Object,A=TypeError,_=y.create,E=y.defineProperties,R=y.defineProperty,S=y.freeze,M=y.getOwnPropertyDescriptor,k=y.getOwnPropertyNames,T=y.keys,x=Object.isExtensible,O=t,B=0,D=n(),H=n(),P=n(),N=_(null),L=_(null);R(a.prototype,"constructor",t(a)),R(a.prototype,"toString",O(function(){var e=this[P];if(!p("symbols"))return e[D];if(!e)throw TypeError("Conversion from symbol to string");var t=e[H];return void 0===t&&(t=""),"Symbol("+t+")"})),R(a.prototype,"valueOf",O(function(){var e=this[P];if(!e)throw TypeError("Conversion from symbol to string");return p("symbols")?e:e[D]})),R(l.prototype,"constructor",t(a)),R(l.prototype,"toString",{value:a.prototype.toString,enumerable:!1}),R(l.prototype,"valueOf",{value:a.prototype.valueOf,enumerable:!1});var W=i(),I={value:void 0},F={hash:{value:void 0},self:{value:void 0}},j=0;d(l.prototype),C(e),e.$traceurRuntime={checkObjectCoercible:v,createPrivateName:i,defineProperties:E,defineProperty:R,exportStar:m,getOwnHashObject:u,getOwnPropertyDescriptor:M,getOwnPropertyNames:k,isObject:g,isPrivateName:o,isSymbolString:c,keys:T,setupGlobals:C,toObject:w,toProperty:h,typeof:s}}}(window),function(){"use strict";function e(){for(var e,n=[],o=0,i=0;i<arguments.length;i++){var r=$traceurRuntime.checkObjectCoercible(arguments[i]);"function"!=typeof r[t(Symbol.iterator)]&&(r[t(Symbol.iterator)]=function(){var e=this,t=e.length,n=0;return{next:function(){var o={done:!0};return n<t&&(o.done=!1,o.value=e[n],++n),o}}});for(var s=r[t(Symbol.iterator)]();!(e=s.next()).done;)n[o++]=e.value}return n}var t=$traceurRuntime.toProperty;$traceurRuntime.spread=e}(),function(){"use strict";function e(e,t){var n=m(e);do{var o=p(n,t);if(o)return o;n=m(n)}while(n)}function t(e){return e.__proto__}function n(e,t,n,i){return o(e,t,n).apply(e,i)}function o(t,n,o){var i=e(n,o);if(i)return i.get?i.get.call(t):i.value}function i(t,n,o,i){var r=e(n,o);if(r&&r.set)return r.set.call(t,i),i;throw d("super has no setter '"+o+"'.")}function r(e){for(var t={},n=v(e),o=0;o<n.length;o++){var i=n[o];t[i]=p(e,i)}for(var r=b(e),o=0;o<r.length;o++){var s=r[o];t[g(s)]=p(e,g(s))}return t}function s(e,t,n,o){return f(t,"constructor",{value:e,configurable:!0,enumerable:!1,writable:!0}),arguments.length>3?("function"==typeof o&&(e.__proto__=o),e.prototype=c(a(o),r(t))):e.prototype=t,f(e,"prototype",{configurable:!1,writable:!1}),h(e,r(n))}function a(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 l(e,t,o){null!==m(t)&&n(e,t,"constructor",o)}var u=Object,d=TypeError,c=u.create,h=$traceurRuntime.defineProperties,f=$traceurRuntime.defineProperty,p=$traceurRuntime.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=$traceurRuntime.toProperty,w=Object,v=w.getOwnPropertyNames,b=w.getOwnPropertySymbols;$traceurRuntime.createClass=s,$traceurRuntime.defaultSuperCall=l,$traceurRuntime.superCall=n,$traceurRuntime.superConstructor=t,$traceurRuntime.superGet=o,$traceurRuntime.superSet=i}()},{}],119:[function(e,t,n){"use strict";function o(e){var t=this,n=this;this.eventManager=_(e),this.instance=e,this.settings=e.getSettings(),this.selectionMouseDown=!1;var o=e.rootElement.getAttribute("style");o&&e.rootElement.setAttribute("data-originalstyle",o),f(e.rootElement,"handsontable");var i=document.createElement("TABLE");f(i,"htCore"),e.getSettings().tableClassName&&f(i,e.getSettings().tableClassName),this.THEAD=document.createElement("THEAD"),i.appendChild(this.THEAD),this.TBODY=document.createElement("TBODY"),i.appendChild(this.TBODY),e.table=i,e.container.insertBefore(i,e.container.firstChild),this.eventManager.addEventListener(e.rootElement,"mousedown",function(e){this.selectionMouseDown=!0,n.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&&!n.isTextSelectionAllowed(e.target)&&(s(),e.preventDefault())}),this.eventManager.addEventListener(document.documentElement,"keyup",function(t){e.selection.isInProgress()&&!t.shiftKey&&e.selection.finish()});var r;this.isMouseDown=function(){return r},this.eventManager.addEventListener(document.documentElement,"mouseup",function(t){e.selection.isInProgress()&&1===t.which&&e.selection.finish(),r=!1,y(document.activeElement)&&e.unlisten()}),this.eventManager.addEventListener(document.documentElement,"mousedown",function(t){var o=t.target,i=t.target,s=t.x||t.clientX,a=t.y||t.clientY;if(!r&&e.rootElement){if(i===e.view.wt.wtTable.holder){var l=w();if(document.elementFromPoint(s+l,a)!==e.view.wt.wtTable.holder||document.elementFromPoint(s,a+l)!==e.view.wt.wtTable.holder)return}else for(;i!==document.documentElement;){if(null===i){if(t.isTargetWebComponent)break;return}if(i===e.rootElement)return;i=i.parentNode}var u="function"==typeof n.settings.outsideClickDeselects?n.settings.outsideClickDeselects(o):n.settings.outsideClickDeselects;u?e.deselectCell():e.destroyEditor()}}),this.eventManager.addEventListener(i,"selectstart",function(e){n.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()},a=[new x({className:"current",border:{width:2,color:"#5292F7",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&!e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&!e.selection.isMultiple()}}}),new x({className:"area",border:{width:1,color:"#89AFF9",cornerVisible:function(){return n.settings.fillHandle&&!n.isCellEdited()&&e.selection.isMultiple()},multipleSelectionHandlesVisible:function(){return!n.isCellEdited()&&e.selection.isMultiple()}}}),new x({className:"highlight",highlightHeaderClassName:n.settings.currentHeaderClassName,highlightRowClassName:n.settings.currentRowClassName,highlightColumnClassName:n.settings.currentColClassName}),new x({className:"fill",border:{width:1,color:"red"}})];a.current=a[0],a.area=a[1],a.highlight=a[2],a.fill=a[3];var l={debug:function(){return n.settings.debug},externalRowCalculator:this.instance.getPlugin("autoRowSize")&&this.instance.getPlugin("autoRowSize").isEnabled(),table:i,preventOverflow:function(){return t.settings.preventOverflow},stretchH:function(){return n.settings.stretchH},data:e.getDataAtCell,totalRows:function(){return e.countRows()},totalColumns:function(){return e.countCols()},fixedColumnsLeft:function(){return n.settings.fixedColumnsLeft},fixedRowsTop:function(){return n.settings.fixedRowsTop},fixedRowsBottom:function(){return n.settings.fixedRowsBottom},minSpareRows:function(){return n.settings.minSpareRows},renderAllRows:n.settings.renderAllRows,rowHeaders:function(){var t=[];return e.hasRowHeaders()&&t.push(function(e,t){n.appendRowHeader(e,t)}),c.hooks.run(e,"afterGetRowHeaderRenderers",t),t},columnHeaders:function(){var t=[];return e.hasColHeaders()&&t.push(function(e,t){n.appendColHeader(e,t)}),c.hooks.run(e,"afterGetColumnHeaderRenderers",t),t},columnWidth:e.getColWidth,rowHeight:e.getRowHeight,cellRenderer:function(e,t,o){var i=n.instance.getCellMeta(e,t),r=n.instance.colToProp(t),s=n.instance.getDataAtRowProp(e,r);c.hooks.run(n.instance,"beforeRenderer",o,e,t,r,s,i),n.instance.getCellRenderer(i)(n.instance,o,e,t,r,s,i),c.hooks.run(n.instance,"afterRenderer",o,e,t,r,s,i)},selections:a,hideBorderOnMouseDownOver:function(){return n.settings.fragmentSelection},onCellMouseDown:function(t,o,i,s){var a={row:!1,column:!1,cells:!1};if(e.listen(),n.activeWt=s,r=!0,c.hooks.run(e,"beforeOnCellMouseDown",t,o,i,a),!S(t)){var l=e.getSelectedRange(),u=e.selection,d=u.selectedHeader;if(t.shiftKey&&l)o.row>=0&&o.col>=0&&!a.cells?(u.setSelectedHeaders(!1,!1),u.setRangeEnd(o)):(d.cols||d.rows)&&o.row>=0&&o.col>=0&&!a.cells?(u.setSelectedHeaders(!1,!1),u.setRangeEnd(new T(o.row,o.col))):d.cols&&o.row<0&&!a.column?u.setRangeEnd(new T(l.to.row,o.col)):d.rows&&o.col<0&&!a.row?u.setRangeEnd(new T(o.row,l.to.col)):(!d.cols&&!d.rows&&o.col<0||d.cols&&o.col<0)&&!a.row?(u.setSelectedHeaders(!0,!1),u.setRangeStartOnly(new T(l.from.row,0)),u.setRangeEnd(new T(o.row,e.countCols()-1))):(!d.cols&&!d.rows&&o.row<0||d.rows&&o.row<0)&&!a.column&&(u.setSelectedHeaders(!1,!0),u.setRangeStartOnly(new T(0,l.from.col)),u.setRangeEnd(new T(e.countRows()-1,o.col)));else{var h=!0;if(l){var p=l,m=p.from,g=p.to,w=!u.inInSelection(o);if(o.row<0&&d.cols){var v=Math.min(m.col,g.col),b=Math.max(m.col,g.col);h=o.col<v||o.col>b}else if(o.col<0&&d.rows){var C=Math.min(m.row,g.row),y=Math.max(m.row,g.row);h=o.row<C||o.row>y}else h=w}var _=M(t),E=k(t);o.row<0&&o.col>=0&&!a.column?(u.setSelectedHeaders(!1,!0),(E||_&&h)&&(u.setRangeStartOnly(new T(0,o.col)),u.setRangeEnd(new T(Math.max(e.countRows()-1,0),o.col),!1))):o.col<0&&o.row>=0&&!a.row?(u.setSelectedHeaders(!0,!1),(E||_&&h)&&(u.setRangeStartOnly(new T(o.row,0)),u.setRangeEnd(new T(o.row,Math.max(e.countCols()-1,0)),!1))):o.col>=0&&o.row>=0&&!a.cells?(E||_&&h)&&(u.setSelectedHeaders(!1,!1),u.setRangeStart(o)):o.col<0&&o.row<0&&(o.row=0,o.col=0,u.setSelectedHeaders(!1,!1,!0),u.setRangeStart(o))}u.selectedHeader.rows?(A(e.rootElement,"ht__selection--columns"),f(e.rootElement,"ht__selection--rows")):u.selectedHeader.cols?(A(e.rootElement,"ht__selection--rows"),f(e.rootElement,"ht__selection--columns")):(A(e.rootElement,"ht__selection--rows"),A(e.rootElement,"ht__selection--columns")),c.hooks.run(e,"afterOnCellMouseDown",t,o,i),n.activeWt=n.wt}},onCellMouseOver:function(t,o,i,s){var a={row:!1,column:!1,cell:!1};n.activeWt=s,c.hooks.run(e,"beforeOnCellMouseOver",t,o,i,a),S(t)||(0===t.button&&r&&(o.row>=0&&o.col>=0?e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new T(e.countRows()-1,o.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new T(o.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(o):e.selection.selectedHeader.cols&&!a.column?e.selection.setRangeEnd(new T(e.countRows()-1,o.col),!1):e.selection.selectedHeader.rows&&!a.row?e.selection.setRangeEnd(new T(o.row,e.countCols()-1),!1):a.cell||e.selection.setRangeEnd(o)),c.hooks.run(e,"afterOnCellMouseOver",t,o,i),n.activeWt=n.wt)},onCellMouseUp:function(t,o,i,r){n.activeWt=r,c.hooks.run(e,"beforeOnCellMouseUp",t,o,i),c.hooks.run(e,"afterOnCellMouseUp",t,o,i),n.activeWt=n.wt},onCellCornerMouseDown:function(t){t.preventDefault(),c.hooks.run(e,"afterOnCellCornerMouseDown",t)},beforeDraw:function(e){n.beforeRender(e)},onDraw:function(e){n.onDraw(e)},onScrollVertically:function(){e.runHooks("afterScrollVertically")},onScrollHorizontally:function(){e.runHooks("afterScrollHorizontally")},onBeforeDrawBorders:function(t,n){e.runHooks("beforeDrawBorders",t,n)},onBeforeTouchScroll:function(){e.runHooks("beforeTouchScroll")},onAfterMomentumScroll:function(){e.runHooks("afterMomentumScroll")},onBeforeStretchingColumnWidth:function(t,n){return e.runHooks("beforeStretchingColumnWidth",t,n)},viewportRowCalculatorOverride:function(t){var o=e.countRows(),i=n.settings.viewportRowRenderingOffset;if("auto"===i&&n.settings.fixedRowsTop&&(i=10),"number"==typeof i&&(t.startRow=Math.max(t.startRow-i,0),t.endRow=Math.min(t.endRow+i,o-1)),"auto"===i){var r=t.startRow+t.endRow-t.startRow,s=Math.ceil(r/o*12);t.startRow=Math.max(t.startRow-s,0),t.endRow=Math.min(t.endRow+s,o-1)}e.runHooks("afterViewportRowCalculatorOverride",t)},viewportColumnCalculatorOverride:function(t){var o=e.countCols(),i=n.settings.viewportColumnRenderingOffset;if("auto"===i&&n.settings.fixedColumnsLeft&&(i=10),"number"==typeof i&&(t.startColumn=Math.max(t.startColumn-i,0),t.endColumn=Math.min(t.endColumn+i,o-1)),"auto"===i){var r=t.startColumn+t.endColumn-t.startColumn,s=Math.ceil(r/o*12);t.startRow=Math.max(t.startColumn-s,0),t.endColumn=Math.min(t.endColumn+s,o-1)}e.runHooks("afterViewportColumnCalculatorOverride",t)},rowHeaderWidth:function(){return n.settings.rowHeaderWidth},columnHeaderHeight:function(){var t=e.runHooks("modifyColumnHeaderHeight");return n.settings.columnHeaderHeight||t}};c.hooks.run(e,"beforeInitWalkontable",l),this.wt=new O(l),this.activeWt=this.wt,this.eventManager.addEventListener(n.wt.wtTable.spreader,"mousedown",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&R(e)}),this.eventManager.addEventListener(n.wt.wtTable.spreader,"contextmenu",function(e){e.target===n.wt.wtTable.spreader&&3===e.which&&R(e)}),this.eventManager.addEventListener(document.documentElement,"click",function(){n.settings.observeDOMVisibility&&n.wt.drawInterrupted&&(n.instance.forceFullRender=!0,n.render())})}Object.defineProperties(n,{TableView:{get:function(){return o}},__esModule:{value:!0}});var i,r,s,a,l,u,d,c=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,h=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),f=h.addClass,p=h.empty,m=h.fastInnerHTML,g=h.fastInnerText,w=h.getScrollbarWidth,v=h.hasClass,b=h.isChildOf,C=h.isInput,y=h.isOutsideInput,A=h.removeClass,_=(s=e("eventManager"),s&&s.__esModule&&s||{default:s}).eventManager,E=(a=e("helpers/dom/event"),a&&a.__esModule&&a||{default:a}),R=E.stopPropagation,S=E.isImmediatePropagationStopped,M=E.isRightClick,k=E.isLeftClick,T=(l=e("3rdparty/walkontable/src/cell/coords"),l&&l.__esModule&&l||{default:l}).WalkontableCellCoords,x=(u=e("3rdparty/walkontable/src/selection"),u&&u.__esModule&&u||{default:u}).WalkontableSelection,O=(d=e("3rdparty/walkontable/src/core"),d&&d.__esModule&&d||{default:d}).Walkontable;c.TableView=o,o.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)||(!("cell"!==this.settings.fragmentSelection||!this.isSelectedOnlyCell()||!t)||!(this.settings.fragmentSelection||!this.isCellEdited()||!this.isSelectedOnlyCell()))},o.prototype.isSelectedOnlyCell=function(){var e=this.instance.getSelected()||[],t=e[0],n=e[1],o=e[2],i=e[3];return void 0!==t&&t===o&&n===i},o.prototype.isCellEdited=function(){var e=this.instance.getActiveEditor();return e&&e.isOpened()},o.prototype.beforeRender=function(e){e&&c.hooks.run(this.instance,"beforeRender",this.instance.forceFullRender)},o.prototype.onDraw=function(e){e&&c.hooks.run(this.instance,"afterRender",this.instance.forceFullRender)},o.prototype.render=function(){this.wt.draw(!this.instance.forceFullRender),this.instance.forceFullRender=!1,this.instance.renderCall=!1},o.prototype.getCellAtCoords=function(e,t){var n=this.wt.getCell(e,t);return n<0?null:n},o.prototype.scrollViewport=function(e){this.wt.scrollViewport(e)},o.prototype.appendRowHeader=function(e,t){if(t.firstChild){var n=t.firstChild;if(!v(n,"relative"))return p(t),void this.appendRowHeader(e,t);this.updateCellHeader(n.querySelector(".rowHeader"),e,this.instance.getRowHeader)}else{var o=document.createElement("div"),i=document.createElement("span");o.className="relative",i.className="rowHeader",this.updateCellHeader(i,e,this.instance.getRowHeader),o.appendChild(i),t.appendChild(o)}c.hooks.run(this.instance,"afterGetRowHeader",e,t)},o.prototype.appendColHeader=function(e,t){if(t.firstChild){var n=t.firstChild;v(n,"relative")?this.updateCellHeader(n.querySelector(".colHeader"),e,this.instance.getColHeader):(p(t),this.appendColHeader(e,t))}else{var o=document.createElement("div"),i=document.createElement("span");o.className="relative",i.className="colHeader",this.updateCellHeader(i,e,this.instance.getColHeader),o.appendChild(i),t.appendChild(o)}c.hooks.run(this.instance,"afterGetColHeader",e,t)},o.prototype.updateCellHeader=function(e,t,n){var o=t,i=this.wt.wtOverlays.getParentOverlay(e)||this.wt;e.parentNode&&(v(e,"colHeader")?o=i.wtTable.columnFilter.sourceToRendered(t):v(e,"rowHeader")&&(o=i.wtTable.rowFilter.sourceToRendered(t))),o>-1?m(e,n(t)):(g(e,String.fromCharCode(160)),f(e,"cornerHeader"))},o.prototype.maximumVisibleElementWidth=function(e){var t=this.wt.wtViewport.getWorkspaceWidth(),n=t-e;return n>0?n:0},o.prototype.maximumVisibleElementHeight=function(e){var t=this.wt.wtViewport.getWorkspaceHeight(),n=t-e;return n>0?n:0},o.prototype.mainViewIsActive=function(){return this.wt===this.activeWt},o.prototype.destroy=function(){this.wt.destroy(),this.eventManager.destroy()}},{"3rdparty/walkontable/src/cell/coords":6,"3rdparty/walkontable/src/core":8,"3rdparty/walkontable/src/selection":19,browser:24,eventManager:42,"helpers/dom/element":47,"helpers/dom/event":48}],120:[function(e,t,n){"use strict";Object.defineProperties(n,{GhostTable:{get:function(){return m}},__esModule:{value:!0}});var o,i,r,s,a,l,u=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,d=(i=e("helpers/dom/element"),i&&i.__esModule&&i||{default:i}),c=d.addClass,h=d.outerHeight,f=d.outerWidth,p=(r=e("helpers/array"),r&&r.__esModule&&r||{default:r}).arrayEach,m=((s=e("helpers/object"),s&&s.__esModule&&s||{default:s}).objectEach,(a=e("helpers/number"),a&&a.__esModule&&a||{default:a}).rangeEach,(l=e("helpers/mixed"),l&&l.__esModule&&l||{default:l}).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(m,{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 n={row:e};this.rows.push(n),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),n.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 n={col:e};this.columns.push(n),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),n.table=this.table.table},getHeights:function(e){this.injected||this.injectTable(),p(this.rows,function(t){e(t.row,h(t.table)-1)})},getWidths:function(e){this.injected||this.injectTable(),p(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,n=t.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){p(t.strings,function(t){n.appendChild(e.createColElement(t.col))})}),n},createRow:function(e){var t=this,n=document,o=n.createDocumentFragment(),i=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,i),o.appendChild(i)),this.samples.forEach(function(i){p(i.strings,function(i){var r=i.col,s=t.hot.getCellMeta(e,r);s.col=r,s.row=e;var a=t.hot.getCellRenderer(s),l=n.createElement("td");a(t.hot,l,e,r,t.hot.colToProp(r),i.value,s),o.appendChild(l)})}),o},createColumnHeadersRow:function(){var e=this,t=document,n=t.createDocumentFragment();if(this.hot.hasRowHeaders()){var o=t.createElement("th");this.hot.view.appendColHeader(-1,o),n.appendChild(o)}return this.samples.forEach(function(o){p(o.strings,function(o){var i=o.col,r=t.createElement("th");e.hot.view.appendColHeader(i,r),n.appendChild(r)})}),n},createCol:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(i){p(i.strings,function(i){var r=i.row,s=t.hot.getCellMeta(r,e);s.col=e,s.row=r;var a=t.hot.getCellRenderer(s),l=n.createElement("td"),u=n.createElement("tr");a(t.hot,l,r,e,t.hot.colToProp(e),i.value,s),u.appendChild(l),o.appendChild(u)})}),o},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,n=t.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",n},createTable:function(){var e=void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),i=t.createElement("thead"),r=t.createElement("tbody"),s=t.createElement("colgroup"),a=t.createElement("tr"),l=t.createElement("th");return this.isVertical()&&o.appendChild(s),this.isHorizontal()&&(a.appendChild(l),i.appendChild(a),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(i),this.isVertical()&&r.appendChild(a),o.appendChild(r),c(o,e),n.appendChild(o),{fragment:n,table:o,tHead:i,tBody:r,colGroup:s,tr:a,th:l}},createContainer:function(){var e=void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),c(o,e),n.appendChild(o),{fragment:n,container:o}},isVertical:function(){return!(!this.rows.length||this.columns.length)},isHorizontal:function(){return!(!this.columns.length||this.rows.length)}},{}),u.utils.GhostTable=m},{browser:24,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,"helpers/number":52,"helpers/object":53}],121:[function(e,t,n){"use strict";function o(e){return"string"==typeof e&&/fps$/.test(e)&&(e=1e3/parseInt(e.replace("fps","")||0,10)),e}Object.defineProperties(n,{Interval:{get:function(){return p}},__esModule:{value:!0}});var i,r,s,a,l,u,d=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,c=(r=e("helpers/feature"),r&&r.__esModule&&r||{default:r}),h=c.requestAnimationFrame,f=c.cancelAnimationFrame,p=((s=e("helpers/array"),s&&s.__esModule&&s||{default:s}).arrayEach,(a=e("helpers/object"),a&&a.__esModule&&a||{default:a}).objectEach,(l=e("helpers/number"),l&&l.__esModule&&l||{default:l}).rangeEach,(u=e("helpers/mixed"),u&&u.__esModule&&u||{default:u}).stringify,function(e,t){var n=this;this.timer=null,this.func=e,this.delay=o(t),this.stopped=!0,this._then=null,this._callback=function(){return n.__callback()}}),m=p;$traceurRuntime.createClass(p,{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 m(e,t)}}),d.utils.Interval=p},{browser:24,"helpers/array":43,"helpers/feature":49,"helpers/mixed":51,"helpers/number":52,"helpers/object":53}],122:[function(e,t,n){"use strict";var o;Object.defineProperties(n,{SamplesGenerator:{get:function(){return g}},__esModule:{value:!0}});var i,r,s,a,l,u,d=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,c=(r=e("helpers/dom/element"),r&&r.__esModule&&r||{default:r}),h=(c.addClass,c.outerHeight,c.outerWidth,(s=e("helpers/array"),s&&s.__esModule&&s||{default:s}).arrayEach,a=e("helpers/object"),a&&a.__esModule&&a||{default:a}),f=(h.objectEach,h.isObject),p=(l=e("helpers/number"),l&&l.__esModule&&l||{default:l}).rangeEach,m=(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,(o={},Object.defineProperty(o,"getSampleCount",{value:function(){return this.customSampleCount?this.customSampleCount:w.SAMPLE_COUNT},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateRowSamples",{value:function(e,t){return this.generateSamples("row",t,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateColumnSamples",{value:function(e,t){return this.generateSamples("col",t,e)},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateSamples",{value:function(e,t,n){var o=this,i=new Map;return"number"==typeof n&&(n={from:n,to:n}),p(n.from,n.to,function(n){var r=o.generateSample(e,t,n);i.set(n,r)}),i},configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(o,"generateSample",{value:function(e,t,n){var o,i=this,r=new Map,s=[];return p(t.from,t.to,function(t){var a,l;if("row"===e)l=i.dataFactory(n,t);else{if("col"!==e)throw new Error("Unsupported sample type");l=i.dataFactory(t,n)}o=f(l)?Object.keys(l).length:Array.isArray(l)?l.length:m(l).length,r.has(o)||r.set(o,{needed:i.getSampleCount(),strings:[]});var u=r.get(o);if(u.needed){var d=s.indexOf(l)>-1;if(!d){var c="row"===e?"col":"row";u.strings.push((a={},Object.defineProperty(a,"value",{value:l,configurable:!0,enumerable:!0,writable:!0}),Object.defineProperty(a,c,{value:t,configurable:!0,enumerable:!0,writable:!0}),a)),s.push(l),u.needed--}}}),r},configurable:!0,enumerable:!0,writable:!0}),o),{get SAMPLE_COUNT(){return 3}}),d.utils.SamplesGenerator=g},{browser:24,"helpers/array":43,"helpers/dom/element":47,"helpers/mixed":51,"helpers/number":52,"helpers/object":53}],123:[function(e,t,n){"use strict";function o(e,t){var n=e,o="string"==typeof n?n.toLowerCase():null;return function(e){for(var i=!1,r=0,s=e.length;r<s;r++){if(n===e[r]){i=!0;break}if(o===a(e[r]).toLowerCase()){i=!0;break}}t(i)}}var i,r,s=(i=e("browser"),i&&i.__esModule&&i||{default:i}).default,a=(r=e("helpers/mixed"),r&&r.__esModule&&r||{default:r}).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,o(e,t)):o(e,t)(this.source):t(!0));
  }},{browser:24,"helpers/mixed":51}],124:[function(e,t,n){"use strict";var o,i,r,s,a=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,l=(i=e("moment"),i&&i.__esModule&&i||{default:i}).default,u=(r=e("../helpers/date"),r&&r.__esModule&&r||{default:r}).getNormalizedDate,d=(s=e("editors"),s&&s.__esModule&&s||{default:s}).getEditor;a.DateValidator=function(e,t){var n=!0,o=d("date",this.instance);null==e&&(e="");var i=l(new Date(e)).isValid(),r=l(e,this.dateFormat||o.defaultDateFormat,!0).isValid();if(this.allowEmpty&&""===e&&(i=!0,r=!0),i||(n=!1),!i&&r&&(n=!0),i&&!r)if(this.correctFormat===!0){var s=c(e,this.dateFormat);this.instance.setDataAtCell(this.row,this.col,s,"dateValidator"),n=!0}else n=!1;t(n)};var c=function(e,t){var n=l(u(e)),o=n.format("YYYY"),i=l().format("YYYY");return o.substr(0,2)!==i.substr(0,2)?e.match(new RegExp(o))||n.year(o.replace(o.substr(0,2),i.substr(0,2))):o.length>4&&n.year((n.year()+"").substr(0,4)),n.format(t)}},{"../helpers/date":46,browser:24,editors:30,moment:"moment"}],125:[function(e,t,n){"use strict";var o,i=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default;i.NumericValidator=function(e,t){null==e&&(e=""),t(this.allowEmpty&&""===e?!0:""===e?!1:/^-?\d*(\.|\,)?\d*$/.test(e))}},{browser:24}],126:[function(e,t,n){"use strict";var o,i,r=(o=e("browser"),o&&o.__esModule&&o||{default:o}).default,s=(i=e("moment"),i&&i.__esModule&&i||{default:i}).default,a=["YYYY-MM-DDTHH:mm:ss.SSSZ","X","x"];r.TimeValidator=function(e,t){var n=!0,o=this.timeFormat||"h:mm:ss a";null===e&&(e=""),e=/^\d{3,}$/.test(e)?parseInt(e,10):e;var i=/^\d{1,2}$/.test(e);i&&(e+=":00");var r=s(e,a,!0).isValid()?s(e):s(e,o),l=r.isValid(),u=s(e,o,!0).isValid()&&!i;if(this.allowEmpty&&""===e&&(l=!0,u=!0),l||(n=!1),!l&&u&&(n=!0),l&&!u)if(this.correctFormat===!0){var d=r.format(o);this.instance.setDataAtCell(this.row,this.col,d,"timeValidator"),n=!0}else n=!1;t(n)}},{browser:24,moment:"moment"}],SheetClip:[function(e,t,n){!function(e){"use strict";function t(e){return e.split('"').length-1}var o={parse:function(e){var n,o,i,r,s,a,l,u=[],d=0;for(i=e.split("\n"),i.length>1&&""===i[i.length-1]&&i.pop(),n=0,o=i.length;n<o;n+=1){for(i[n]=i[n].split("\t"),r=0,s=i[n].length;r<s;r+=1)u[d]||(u[d]=[]),a&&0===r?(l=u[d].length-1,u[d][l]=u[d][l]+"\n"+i[n][0],a&&1&t(i[n][0])&&(a=!1,u[d][l]=u[d][l].substring(0,u[d][l].length-1).replace(/""/g,'"'))):r===s-1&&0===i[n][r].indexOf('"')&&1&t(i[n][r])?(u[d].push(i[n][r].substring(1).replace(/""/g,'"')),a=!0):(u[d].push(i[n][r].replace(/""/g,'"')),a=!1);a||(d+=1)}return u},stringify:function(e){var t,n,o,i,r,s="";for(t=0,n=e.length;t<n;t+=1){for(i=e[t].length,o=0;o<i;o+=1)o>0&&(s+="\t"),r=e[t][o],s+="string"==typeof r?r.indexOf("\n")>-1?'"'+r.replace(/"/g,'""')+'"':r:null===r||void 0===r?"":r;s+="\n"}return s}};"undefined"!=typeof n?(n.parse=o.parse,n.stringify=o.stringify):e.SheetClip=o}(window)},{}],autoResize:[function(e,t,n){function o(){function e(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}var t,n={minHeight:200,maxHeight:300,minWidth:100,maxWidth:300},o=document.body,i=document.createTextNode(""),r=document.createElement("SPAN"),s=function(e,t,n){window.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n,!1)},a=function(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},l=function(s){var a,l;s?/^[a-zA-Z \.,\\\/\|0-9]$/.test(s)||(s="."):s="",void 0!==i.textContent?i.textContent=t.value+s:i.data=t.value+s,r.style.fontSize=e(t).fontSize,r.style.fontFamily=e(t).fontFamily,r.style.whiteSpace="pre",o.appendChild(r),a=r.clientWidth+2,o.removeChild(r),t.style.height=n.minHeight+"px",n.minWidth>a?t.style.width=n.minWidth+"px":a>n.maxWidth?t.style.width=n.maxWidth+"px":t.style.width=a+"px",l=t.scrollHeight?t.scrollHeight-1:0,n.minHeight>l?t.style.height=n.minHeight+"px":n.maxHeight<l?(t.style.height=n.maxHeight+"px",t.style.overflowY="visible"):t.style.height=l+"px"},u=function(){window.setTimeout(l,0)},d=function(e){if(e&&e.minHeight)if("inherit"==e.minHeight)n.minHeight=t.clientHeight;else{var o=parseInt(e.minHeight);isNaN(o)||(n.minHeight=o)}if(e&&e.maxHeight)if("inherit"==e.maxHeight)n.maxHeight=t.clientHeight;else{var s=parseInt(e.maxHeight);isNaN(s)||(n.maxHeight=s)}if(e&&e.minWidth)if("inherit"==e.minWidth)n.minWidth=t.clientWidth;else{var a=parseInt(e.minWidth);isNaN(a)||(n.minWidth=a)}if(e&&e.maxWidth)if("inherit"==e.maxWidth)n.maxWidth=t.clientWidth;else{var l=parseInt(e.maxWidth);isNaN(l)||(n.maxWidth=l)}r.firstChild||(r.className="autoResize",r.style.display="inline-block",r.appendChild(i))},c=function(e,o,i){t=e,d(o),"TEXTAREA"==t.nodeName&&(t.style.resize="none",t.style.overflowY="",t.style.height=n.minHeight+"px",t.style.minWidth=n.minWidth+"px",t.style.maxWidth=n.maxWidth+"px",t.style.overflowY="hidden"),i&&(s(t,"change",l),s(t,"cut",u),s(t,"paste",u),s(t,"drop",u),s(t,"keydown",u),s(t,"focus",l)),l()};return{init:function(e,t,n){c(e,t,n)},unObserve:function(){a(t,"change",l),a(t,"cut",u),a(t,"paste",u),a(t,"drop",u),a(t,"keydown",u),a(t,"focus",l)},resize:l}}"undefined"!=typeof n&&(t.exports=o)},{}],copyPaste:[function(e,t,n){function o(){return r?r.hasBeenDestroyed()&&r.init():r=new i,r.refCounter++,r}function i(){this.refCounter=0,this.init()}var r;"undefined"!=typeof n&&(t.exports=o),i.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,n;"WebkitAppearance"in document.documentElement.style&&(t=e.clipboardData.getData("Text"),navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1&&(n=t.split("\n"),""===n[n.length-1]&&n.pop(),t=n.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)},i.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 n=this,o=!1;if(e.metaKey?o=!0:e.ctrlKey&&navigator.userAgent.indexOf("Mac")===-1&&(o=!0),o){if(document.activeElement!==this.elTextarea&&(""!==this.getSelectionText()||t()))return;this.selectNodeText(this.elTextarea),setTimeout(function(){document.activeElement!==n.elTextarea&&n.selectNodeText(n.elTextarea)},0)}e.isImmediatePropagationEnabled===!1||!o||67!==e.keyCode&&86!==e.keyCode&&88!==e.keyCode||(88===e.keyCode?setTimeout(function(){n.triggerCut(e)},0):86===e.keyCode&&setTimeout(function(){n.triggerPaste(e)},0))},i.prototype.selectNodeText=function(e){e&&e.select()},i.prototype.getSelectionText=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!==document.selection.type&&(e=document.selection.createRange().text),e},i.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)},i.prototype.onCut=function(e){this.cutCallbacks.push(e)},i.prototype.onPaste=function(e){this.pasteCallbacks.push(e)},i.prototype.removeCallback=function(e){var t,n;for(t=0,n=this.copyCallbacks.length;t<n;t++)if(this.copyCallbacks[t]===e)return this.copyCallbacks.splice(t,1),!0;for(t=0,n=this.cutCallbacks.length;t<n;t++)if(this.cutCallbacks[t]===e)return this.cutCallbacks.splice(t,1),!0;for(t=0,n=this.pasteCallbacks.length;t<n;t++)if(this.pasteCallbacks[t]===e)return this.pasteCallbacks.splice(t,1),!0;return!1},i.prototype.triggerCut=function(e){var t=this;t.cutCallbacks&&setTimeout(function(){for(var n=0,o=t.cutCallbacks.length;n<o;n++)t.cutCallbacks[n](e)},50)},i.prototype.triggerPaste=function(e,t){var n=this;n.pasteCallbacks&&setTimeout(function(){for(var o=t||n.elTextarea.value,i=0,r=n.pasteCallbacks.length;i<r;i++)n.pasteCallbacks[i](o,e)},50)},i.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)},i.prototype.hasBeenDestroyed=function(){return!this.refCounter}},{}],es6collections:[function(e,t,o){!function(e){"use strict";function t(e,t){function o(e){return this&&this.constructor===o?(this._keys=[],this._values=[],this._itp=[],this.objectOnly=t,void(e&&n.call(this,e))):new o(e)}return t||b(e,"size",{get:g}),e.constructor=o,o.prototype=e,o}function n(e){this.add?e.forEach(this.add,this):e.forEach(function(e){this.set(e[0],e[1])},this)}function o(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]--})),-1<v}function i(e){return this.has(e)?this._values[v]:void 0}function r(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-1<v}function s(e){return r.call(this,this._values,e)}function a(e){return r.call(this,this._keys,e)}function l(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 m(this._itp,this._keys)}function h(){return m(this._itp,this._values)}function f(){return m(this._itp,this._keys,this._values)}function p(){return m(this._itp,this._values,this._values)}function m(e,t,n){var o=[0],i=!1;return e.push(o),{next:function(){var r,s=o[0];return!i&&s<t.length?(r=n?[t[s],n[s]]:t[s],o[0]++):(i=!0,e.splice(e.indexOf(o),1)),{done:i,value:r}}}}function g(){return this._values.length}function w(e,t){for(var n=this.entries();;){var o=n.next();if(o.done)break;e.call(t,o.value[1],o.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:o,clear:d,get:i,has:a,set:l},!0)),"undefined"==typeof Map&&(e.Map=t({delete:o,has:a,get:i,set:l,keys:c,values:h,entries:f,forEach:w,clear:d})),"undefined"==typeof Set&&(e.Set=t({has:s,add:u,delete:o,clear:d,keys:h,values:h,entries:p,forEach:w})),"undefined"==typeof WeakSet&&(e.WeakSet=t({delete:o,add:u,clear:d,has:s},!0))}("undefined"!=typeof o&&"undefined"!=typeof n?n:window)},{}],jsonpatch:[function(e,t,n){var o,i=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},r=Error;!function(e){function t(e,n){switch(typeof e){case"undefined":case"boolean":case"string":case"number":return e===n;case"object":if(null===e)return null===n;if(S(e)){if(!S(n)||e.length!==n.length)return!1;for(var o=0,i=e.length;o<i;o++)if(!t(e[o],n[o]))return!1;return!0}var r=b(n),s=r.length;if(b(e).length!==s)return!1;for(var o=0;o<s;o++)if(!t(e[o],n[o]))return!1;return!0;default:return!1}}function n(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function o(e){for(var t=0,n=_.length;t<n;t++)if(_[t].obj===e)return _[t]}function s(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].callback===t)return e.observers[n].observer}function a(e,t){for(var n=0,o=e.observers.length;n<o;n++)if(e.observers[n].observer===t)return void e.observers.splice(n,1)}function l(e,t){t.unobserve()}function u(e){return"object"==typeof e?JSON.parse(JSON.stringify(e)):e}function d(e,t){var n,i=[],l=o(e);if(l?n=s(l,t):(l=new E(e),_.push(l)),n)return n;if(n={},l.value=u(e),t){n.callback=t,n.next=null;var d=this.intervals||[100,1e3,1e4,6e4];if(void 0===d.push)throw new r("jsonpatch.intervals must be an array");var h=0,f=function(){c(n)},p=function(){clearTimeout(n.next),n.next=setTimeout(function(){f(),h=0,n.next=setTimeout(m,d[h++])},0)},m=function(){f(),h==d.length&&(h=d.length-1),n.next=setTimeout(m,d[h++])};"undefined"!=typeof window&&(window.addEventListener?(window.addEventListener("mousedown",p),window.addEventListener("mouseup",p),window.addEventListener("keydown",p)):(document.documentElement.attachEvent("onmousedown",p),document.documentElement.attachEvent("onmouseup",p),document.documentElement.attachEvent("onkeydown",p))),n.next=setTimeout(m,d[h++])}return n.patches=i,n.object=e,n.unobserve=function(){c(n),clearTimeout(n.next),a(l,n),"undefined"!=typeof window&&(window.removeEventListener?(window.removeEventListener("mousedown",p),window.removeEventListener("mouseup",p),window.removeEventListener("keydown",p)):(document.documentElement.detachEvent("onmousedown",p),document.documentElement.detachEvent("onmouseup",p),document.documentElement.detachEvent("onkeydown",p)))},l.observers.push(new R(t,n)),n}function c(e){for(var t,n=0,o=_.length;n<o;n++)if(_[n].obj===e.object){t=_[n];break}h(t.value,e.object,e.patches,""),e.patches.length&&p(t.value,e.patches);var i=e.patches;return i.length>0&&(e.patches=[],e.callback&&e.callback(i)),i}function h(e,t,o,i){for(var r=b(t),s=b(e),a=!1,l=!1,d=s.length-1;d>=0;d--){var c=s[d],f=e[c];if(t.hasOwnProperty(c)){var p=t[c];"object"==typeof f&&null!=f&&"object"==typeof p&&null!=p?h(f,p,o,i+"/"+n(c)):f!=p&&(a=!0,o.push({op:"replace",path:i+"/"+n(c),value:u(p)}))}else o.push({op:"remove",path:i+"/"+n(c)}),l=!0}if(l||r.length!=s.length)for(var d=0;d<r.length;d++){var c=r[d];e.hasOwnProperty(c)||o.push({op:"add",path:i+"/"+n(c),value:u(t[c])})}}function f(e){for(var t,n=0,o=e.length;n<o;){t=e.charCodeAt(n);{if(!(t>=48&&t<=57))return!1;n++}}return!0}function p(e,t,n){for(var o,i,r=!1,s=0,a=t.length;s<a;){o=t[s],s++;for(var l=o.path||"",u=l.split("/"),d=e,c=1,h=u.length,p=void 0;;){if(i=u[c],n&&void 0===p&&(void 0===d[i]?p=u.slice(0,c).join("/"):c==h-1&&(p=o.path),void 0!==p&&this.validator(o,s-1,e,p)),c++,void 0===i&&c>=h){r=A[o.op].call(o,d,i,e);break}if(S(d)){if("-"===i)i=d.length;else{if(n&&!f(i))throw new M("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,o.path,o);i=parseInt(i,10)}if(c>=h){if(n&&"add"===o.op&&i>d.length)throw new M("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s-1,o.path,o);r=y[o.op].call(o,d,i,e);break}}else if(i&&i.indexOf("~")!=-1&&(i=i.replace(/~1/g,"/").replace(/~0/g,"~")),c>=h){r=C[o.op].call(o,d,i,e);break}d=d[i]}}return r}function m(e,t){var n=[];return h(e,t,n,""),n}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,n,o,i){if("object"!=typeof t||null===t||S(t))throw new M("Operation is not an object","OPERATION_NOT_AN_OBJECT",n,t,o);if(!C[t.op])throw new M("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",n,t,o);if("string"!=typeof t.path)throw new M("Operation `path` property is not a string","OPERATION_PATH_INVALID",n,t,o);if(("move"===t.op||"copy"===t.op)&&"string"!=typeof t.from)throw new M("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&void 0===t.value)throw new M("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",n,t,o);if(("add"===t.op||"replace"===t.op||"test"===t.op)&&g(t.value))throw new M("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",n,t,o);if(o)if("add"==t.op){var r=t.path.split("/").length,s=i.split("/").length;if(r!==s+1&&r!==s)throw new M("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",n,t,o)}else if("replace"===t.op||"remove"===t.op||"_get"===t.op){if(t.path!==i)throw new M("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",n,t,o)}else if("move"===t.op||"copy"===t.op){var a={op:"_get",path:t.from,value:void 0},l=e.validate([a],o);if(l&&"OPERATION_PATH_UNRESOLVABLE"===l.name)throw new M("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",n,t,o)}}function v(e,t){try{if(!S(e))throw new M("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)t=JSON.parse(JSON.stringify(t)),p.call(this,t,e,!0);else for(var n=0;n<e.length;n++)this.validator(e[n],n)}catch(e){if(e instanceof M)return e;throw e}}var b=function(e){if(S(e)){for(var t=new Array(e.length),n=0;n<t.length;n++)t[n]=""+n;return t}if(Object.keys)return Object.keys(e);var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push(o);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,n){var o={op:"_get",path:this.from};return p(n,[o]),p(n,[{op:"remove",path:this.from}]),p(n,[{op:"add",path:this.path,value:o.value}]),!0},copy:function(e,t,n){var o={op:"_get",path:this.from};return p(n,[o]),p(n,[{op:"add",path:this.path,value:o.value}]),!0},test:function(e,n){return t(e[n],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},A={add:function(e){A.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 p(e,[{op:"remove",path:this.path}]),p(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}},_=[],E=function(){function e(e){this.observers=[],this.obj=e}return e}(),R=function(){function e(e,t){this.callback=e,this.observer=t}return e}();e.unobserve=l,e.observe=d,e.generate=c;var S;S=Array.isArray?Array.isArray:function(e){return e.push&&"number"==typeof e.length},e.apply=p,e.compare=m;var M=function(e){function t(t,n,o,i,r){e.call(this,t),this.message=t,this.name=n,this.index=o,this.operation=i,this.tree=r}return i(t,e),t}(r);e.JsonPatchError=M,e.Error=M,e.validator=w,e.validate=v}(o||(o={})),"undefined"!=typeof n&&(n.apply=o.apply,n.observe=o.observe,n.unobserve=o.unobserve,n.generate=o.generate,n.compare=o.compare,n.validate=o.validate,n.validator=o.validator,n.JsonPatchError=o.JsonPatchError,n.Error=o.Error)},{}],moment:[function(t,n,o){!function(t,i){"object"==typeof o&&"undefined"!=typeof n?n.exports=i():"function"==typeof e&&e.amd?e(i):t.moment=i()}(this,function(){"use strict";function e(){return lo.apply(null,arguments)}function o(e){lo=e}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function r(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function s(e,t){var n,o=[];for(n=0;n<e.length;++n)o.push(t(e[n],n));return o}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,o){return Le(e,t,n,o,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function c(e){return null==e._pf&&(e._pf=d()),e._pf}function h(e){if(null==e._isValid){var t=c(e),n=uo.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function f(e){var t=u(NaN);return null!=e?l(c(t),e):c(t).userInvalidated=!0,t}function p(e){return void 0===e}function m(e,t){var n,o,i;if(p(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),p(t._i)||(e._i=t._i),p(t._f)||(e._f=t._f),p(t._l)||(e._l=t._l),p(t._strict)||(e._strict=t._strict),p(t._tzm)||(e._tzm=t._tzm),p(t._isUTC)||(e._isUTC=t._isUTC),p(t._offset)||(e._offset=t._offset),p(t._pf)||(e._pf=c(t)),p(t._locale)||(e._locale=t._locale),co.length>0)for(n in co)o=co[n],i=t[o],p(i)||(e[o]=i);return e}function g(t){m(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),ho===!1&&(ho=!0,e.updateOffset(this),ho=!1)}function w(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function v(e){return e<0?Math.ceil(e):Math.floor(e)}function b(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=v(t)),n}function C(e,t,n){var o,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),s=0;for(o=0;o<i;o++)(n&&e[o]!==t[o]||!n&&b(e[o])!==b(t[o]))&&s++;return s+r}function y(t){e.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function A(t,n){var o=!0;return l(function(){return null!=e.deprecationHandler&&e.deprecationHandler(null,t),o&&(y(t+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),o=!1),n.apply(this,arguments)},n)}function _(t,n){null!=e.deprecationHandler&&e.deprecationHandler(t,n),fo[t]||(y(n),fo[t]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function R(e){return"[object Object]"===Object.prototype.toString.call(e)}function S(e){var t,n;for(n in e)t=e[n],E(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function M(e,t){var n,o=l({},e);for(n in t)a(t,n)&&(R(e[n])&&R(t[n])?(o[n]={},l(o[n],e[n]),l(o[n],t[n])):null!=t[n]?o[n]=t[n]:delete o[n]);return o}function k(e){null!=e&&this.set(e)}function T(e){return e?e.toLowerCase().replace("_","-"):e}function x(e){for(var t,n,o,i,r=0;r<e.length;){for(i=T(e[r]).split("-"),t=i.length,n=T(e[r+1]),n=n?n.split("-"):null;t>0;){if(o=O(i.slice(0,t).join("-")))return o;if(n&&n.length>=t&&C(i,n,!0)>=t-1)break;t--}r++}return null}function O(e){var o=null;if(!wo[e]&&"undefined"!=typeof n&&n&&n.exports)try{o=mo._abbr,t("./locale/"+e),B(o)}catch(e){}return wo[e]}function B(e,t){var n;return e&&(n=p(t)?P(e):D(e,t),n&&(mo=n)),mo._abbr}function D(e,t){return null!==t?(t.abbr=e,null!=wo[e]?(_("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale"),t=M(wo[e]._config,t)):null!=t.parentLocale&&(null!=wo[t.parentLocale]?t=M(wo[t.parentLocale]._config,t):_("parentLocaleUndefined","specified parentLocale is not defined yet")),wo[e]=new k(t),B(e),wo[e]):(delete wo[e],null)}function H(e,t){if(null!=t){var n;null!=wo[e]&&(t=M(wo[e]._config,t)),n=new k(t),n.parentLocale=wo[e],wo[e]=n,B(e)}else null!=wo[e]&&(null!=wo[e].parentLocale?wo[e]=wo[e].parentLocale:null!=wo[e]&&delete wo[e]);return wo[e]}function P(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return mo;if(!i(e)){if(t=O(e))return t;e=[e]}return x(e)}function N(){return po(wo)}function L(e,t){var n=e.toLowerCase();vo[n]=vo[n+"s"]=vo[t]=e}function W(e){return"string"==typeof e?vo[e]||vo[e.toLowerCase()]:void 0}function I(e){var t,n,o={};for(n in e)a(e,n)&&(t=W(n),t&&(o[t]=e[n]));return o}function F(t,n){return function(o){return null!=o?(V(this,t,o),e.updateOffset(this,n),this):j(this,t)}}function j(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function V(e,t,n){e.isValid()&&e._d["set"+(e._isUTC?"UTC":"")+t](n)}function z(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=W(e),E(this[e]))return this[e](t);return this}function Y(e,t,n){var o=""+Math.abs(e),i=t-o.length,r=e>=0;return(r?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+o}function U(e,t,n,o){var i=o;"string"==typeof o&&(i=function(){return this[o]()}),e&&(Ao[e]=i),t&&(Ao[t[0]]=function(){return Y(i.apply(this,arguments),t[1],t[2])}),n&&(Ao[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function G(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function $(e){var t,n,o=e.match(bo);for(t=0,n=o.length;t<n;t++)Ao[o[t]]?o[t]=Ao[o[t]]:o[t]=G(o[t]);return function(t){var i,r="";for(i=0;i<n;i++)r+=o[i]instanceof Function?o[i].call(t,e):o[i];return r}}function K(e,t){return e.isValid()?(t=X(t,e.localeData()),yo[t]=yo[t]||$(t),yo[t](e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(Co.lastIndex=0;o>=0&&Co.test(e);)e=e.replace(Co,n),Co.lastIndex=0,o-=1;return e}function q(e,t,n){Fo[e]=E(t)?t:function(e,o){return e&&n?n:t}}function Z(e,t){return a(Fo,e)?Fo[e](t._strict,t._locale):new RegExp(Q(e))}function Q(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,i){return t||n||o||i}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(o=function(e,n){n[t]=b(e)}),n=0;n<e.length;n++)jo[e[n]]=o}function te(e,t){ee(e,function(e,n,o,i){o._w=o._w||{},t(e,o._w,o,i)})}function ne(e,t,n){null!=t&&a(jo,e)&&jo[e](t,n._a,n,e)}function oe(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function ie(e,t){return i(this._months)?this._months[e.month()]:this._months[Zo.test(t)?"format":"standalone"][e.month()]}function re(e,t){return i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Zo.test(t)?"format":"standalone"][e.month()]}function se(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;o<12;++o)r=u([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return n?"MMM"===t?(i=go.call(this._shortMonthsParse,s),i!==-1?i:null):(i=go.call(this._longMonthsParse,s),i!==-1?i:null):"MMM"===t?(i=go.call(this._shortMonthsParse,s),i!==-1?i:(i=go.call(this._longMonthsParse,s),i!==-1?i:null)):(i=go.call(this._longMonthsParse,s),i!==-1?i:(i=go.call(this._shortMonthsParse,s),i!==-1?i:null))}function ae(e,t,n){var o,i,r;if(this._monthsParseExact)return se.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++){if(i=u([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[o]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[o].test(e))return o;if(n&&"MMM"===t&&this._shortMonthsParse[o].test(e))return o;if(!n&&this._monthsParse[o].test(e))return o}}function le(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=b(t);else if(t=e.localeData().monthsParse(t),"number"!=typeof t)return e;return n=Math.min(e.date(),oe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function ue(t){return null!=t?(le(this,t),e.updateOffset(this,!0),this):j(this,"Month")}function de(){return oe(this.year(),this.month())}function ce(e){return this._monthsParseExact?(a(this,"_monthsRegex")||fe.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}function he(e){return this._monthsParseExact?(a(this,"_monthsRegex")||fe.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function fe(){function e(e,t){return t.length-e.length}var t,n,o=[],i=[],r=[];for(t=0;t<12;t++)n=u([2e3,t]),o.push(this.monthsShort(n,"")),i.push(this.months(n,"")),r.push(this.months(n,"")),r.push(this.monthsShort(n,""));for(o.sort(e),i.sort(e),r.sort(e),t=0;t<12;t++)o[t]=J(o[t]),i[t]=J(i[t]),r[t]=J(r[t]);this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function pe(e){var t,n=e._a;return n&&c(e).overflow===-2&&(t=n[zo]<0||n[zo]>11?zo:n[Yo]<1||n[Yo]>oe(n[Vo],n[zo])?Yo:n[Uo]<0||n[Uo]>24||24===n[Uo]&&(0!==n[Go]||0!==n[$o]||0!==n[Ko])?Uo:n[Go]<0||n[Go]>59?Go:n[$o]<0||n[$o]>59?$o:n[Ko]<0||n[Ko]>999?Ko:-1,c(e)._overflowDayOfYear&&(t<Vo||t>Yo)&&(t=Yo),c(e)._overflowWeeks&&t===-1&&(t=Xo),c(e)._overflowWeekday&&t===-1&&(t=qo),c(e).overflow=t),e}function me(e){var t,n,o,i,r,s,a=e._i,l=ni.exec(a)||oi.exec(a);if(l){for(c(e).iso=!0,t=0,n=ri.length;t<n;t++)if(ri[t][1].exec(l[1])){i=ri[t][0],o=ri[t][2]!==!1;break}if(null==i)return void(e._isValid=!1);if(l[3]){for(t=0,n=si.length;t<n;t++)if(si[t][1].exec(l[3])){r=(l[2]||" ")+si[t][0];break}if(null==r)return void(e._isValid=!1)}if(!o&&null!=r)return void(e._isValid=!1);if(l[4]){if(!ii.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=i+(r||"")+(s||""),xe(e)}else e._isValid=!1}function ge(t){var n=ai.exec(t._i);return null!==n?void(t._d=new Date(+n[1])):(me(t),void(t._isValid===!1&&(delete t._isValid,e.createFromInputFallback(t))))}function we(e,t,n,o,i,r,s){var a=new Date(e,t,n,o,i,r,s);return e<100&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function ve(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e){return Ce(e)?366:365}function Ce(e){return e%4===0&&e%100!==0||e%400===0}function ye(){return Ce(this.year())}function Ae(e,t,n){var o=7+t-n,i=(7+ve(e,0,o).getUTCDay()-t)%7;return-i+o-1}function _e(e,t,n,o,i){var r,s,a=(7+n-o)%7,l=Ae(e,o,i),u=1+7*(t-1)+a+l;return u<=0?(r=e-1,s=be(r)+u):u>be(e)?(r=e+1,s=u-be(e)):(r=e,s=u),{year:r,dayOfYear:s}}function Ee(e,t,n){var o,i,r=Ae(e.year(),t,n),s=Math.floor((e.dayOfYear()-r-1)/7)+1;return s<1?(i=e.year()-1,o=s+Re(i,t,n)):s>Re(e.year(),t,n)?(o=s-Re(e.year(),t,n),i=e.year()+1):(i=e.year(),o=s),{week:o,year:i}}function Re(e,t,n){var o=Ae(e,t,n),i=Ae(e+1,t,n);return(be(e)-o+i)/7}function Se(e,t,n){return null!=e?e:null!=t?t:n}function Me(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ke(e){var t,n,o,i,r=[];if(!e._d){for(o=Me(e),e._w&&null==e._a[Yo]&&null==e._a[zo]&&Te(e),e._dayOfYear&&(i=Se(e._a[Vo],o[Vo]),e._dayOfYear>be(i)&&(c(e)._overflowDayOfYear=!0),n=ve(i,0,e._dayOfYear),e._a[zo]=n.getUTCMonth(),e._a[Yo]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Uo]&&0===e._a[Go]&&0===e._a[$o]&&0===e._a[Ko]&&(e._nextDay=!0,e._a[Uo]=0),e._d=(e._useUTC?ve:we).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Uo]=24)}}function Te(e){var t,n,o,i,r,s,a,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(r=1,s=4,n=Se(t.GG,e._a[Vo],Ee(We(),1,4).year),o=Se(t.W,1),i=Se(t.E,1),(i<1||i>7)&&(l=!0)):(r=e._locale._week.dow,s=e._locale._week.doy,n=Se(t.gg,e._a[Vo],Ee(We(),r,s).year),
  o=Se(t.w,1),null!=t.d?(i=t.d,(i<0||i>6)&&(l=!0)):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(l=!0)):i=r),o<1||o>Re(n,r,s)?c(e)._overflowWeeks=!0:null!=l?c(e)._overflowWeekday=!0:(a=_e(n,o,i,r,s),e._a[Vo]=a.year,e._dayOfYear=a.dayOfYear)}function xe(t){if(t._f===e.ISO_8601)return void me(t);t._a=[],c(t).empty=!0;var n,o,i,r,s,a=""+t._i,l=a.length,u=0;for(i=X(t._f,t._locale).match(bo)||[],n=0;n<i.length;n++)r=i[n],o=(a.match(Z(r,t))||[])[0],o&&(s=a.substr(0,a.indexOf(o)),s.length>0&&c(t).unusedInput.push(s),a=a.slice(a.indexOf(o)+o.length),u+=o.length),Ao[r]?(o?c(t).empty=!1:c(t).unusedTokens.push(r),ne(r,o,t)):t._strict&&!o&&c(t).unusedTokens.push(r);c(t).charsLeftOver=l-u,a.length>0&&c(t).unusedInput.push(a),c(t).bigHour===!0&&t._a[Uo]<=12&&t._a[Uo]>0&&(c(t).bigHour=void 0),c(t).parsedDateParts=t._a.slice(0),c(t).meridiem=t._meridiem,t._a[Uo]=Oe(t._locale,t._a[Uo],t._meridiem),ke(t),pe(t)}function Oe(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&t<12&&(t+=12),o||12!==t||(t=0),t):t}function Be(e){var t,n,o,i,r;if(0===e._f.length)return c(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<e._f.length;i++)r=0,t=m({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],xe(t),h(t)&&(r+=c(t).charsLeftOver,r+=10*c(t).unusedTokens.length,c(t).score=r,(null==o||r<o)&&(o=r,n=t));l(e,n||t)}function De(e){if(!e._d){var t=I(e._i);e._a=s([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),ke(e)}}function He(e){var t=new g(pe(Pe(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Pe(e){var t=e._i,n=e._f;return e._locale=e._locale||P(e._l),null===t||void 0===n&&""===t?f({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),w(t)?new g(pe(t)):(i(n)?Be(e):n?xe(e):r(t)?e._d=t:Ne(e),h(e)||(e._d=null),e))}function Ne(t){var n=t._i;void 0===n?t._d=new Date(e.now()):r(n)?t._d=new Date(n.valueOf()):"string"==typeof n?ge(t):i(n)?(t._a=s(n.slice(0),function(e){return parseInt(e,10)}),ke(t)):"object"==typeof n?De(t):"number"==typeof n?t._d=new Date(n):e.createFromInputFallback(t)}function Le(e,t,n,o,i){var r={};return"boolean"==typeof n&&(o=n,n=void 0),r._isAMomentObject=!0,r._useUTC=r._isUTC=i,r._l=n,r._i=e,r._f=t,r._strict=o,He(r)}function We(e,t,n,o){return Le(e,t,n,o,!1)}function Ie(e,t){var n,o;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return We();for(n=t[0],o=1;o<t.length;++o)t[o].isValid()&&!t[o][e](n)||(n=t[o]);return n}function Fe(){var e=[].slice.call(arguments,0);return Ie("isBefore",e)}function je(){var e=[].slice.call(arguments,0);return Ie("isAfter",e)}function Ve(e){var t=I(e),n=t.year||0,o=t.quarter||0,i=t.month||0,r=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0,d=t.millisecond||0;this._milliseconds=+d+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*r,this._months=+i+3*o+12*n,this._data={},this._locale=P(),this._bubble()}function ze(e){return e instanceof Ve}function Ye(e,t){U(e,0,0,function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)})}function Ue(e,t){var n=(t||"").match(e)||[],o=n[n.length-1]||[],i=(o+"").match(hi)||["-",0,0],r=+(60*i[1])+b(i[2]);return"+"===i[0]?r:-r}function Ge(t,n){var o,i;return n._isUTC?(o=n.clone(),i=(w(t)||r(t)?t.valueOf():We(t).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+i),e.updateOffset(o,!1),o):We(t).local()}function $e(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ke(t,n){var o,i=this._offset||0;return this.isValid()?null!=t?("string"==typeof t?t=Ue(Lo,t):Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(o=$e(this)),this._offset=t,this._isUTC=!0,null!=o&&this.add(o,"m"),i!==t&&(!n||this._changeInProgress?ct(this,rt(t-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?i:$e(this):null!=t?this:NaN}function Xe(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function qe(e){return this.utcOffset(0,e)}function Ze(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract($e(this),"m")),this}function Qe(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ue(No,this._i)),this}function Je(e){return!!this.isValid()&&(e=e?We(e).utcOffset():0,(this.utcOffset()-e)%60===0)}function et(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tt(){if(!p(this._isDSTShifted))return this._isDSTShifted;var e={};if(m(e,this),e=Pe(e),e._a){var t=e._isUTC?u(e._a):We(e._a);this._isDSTShifted=this.isValid()&&C(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function nt(){return!!this.isValid()&&!this._isUTC}function ot(){return!!this.isValid()&&this._isUTC}function it(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function rt(e,t){var n,o,i,r=e,s=null;return ze(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(r={},t?r[t]=e:r.milliseconds=e):(s=fi.exec(e))?(n="-"===s[1]?-1:1,r={y:0,d:b(s[Yo])*n,h:b(s[Uo])*n,m:b(s[Go])*n,s:b(s[$o])*n,ms:b(s[Ko])*n}):(s=pi.exec(e))?(n="-"===s[1]?-1:1,r={y:st(s[2],n),M:st(s[3],n),w:st(s[4],n),d:st(s[5],n),h:st(s[6],n),m:st(s[7],n),s:st(s[8],n)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(i=lt(We(r.from),We(r.to)),r={},r.ms=i.milliseconds,r.M=i.months),o=new Ve(r),ze(e)&&a(e,"_locale")&&(o._locale=e._locale),o}function st(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function at(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function lt(e,t){var n;return e.isValid()&&t.isValid()?(t=Ge(t,e),e.isBefore(t)?n=at(e,t):(n=at(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function ut(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function dt(e,t){return function(n,o){var i,r;return null===o||isNaN(+o)||(_(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=o,o=r),n="string"==typeof n?+n:n,i=rt(n,o),ct(this,i,e),this}}function ct(t,n,o,i){var r=n._milliseconds,s=ut(n._days),a=ut(n._months);t.isValid()&&(i=null==i||i,r&&t._d.setTime(t._d.valueOf()+r*o),s&&V(t,"Date",j(t,"Date")+s*o),a&&le(t,j(t,"Month")+a*o),i&&e.updateOffset(t,s||a))}function ht(e,t){var n=e||We(),o=Ge(n,this).startOf("day"),i=this.diff(o,"days",!0),r=i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse",s=t&&(E(t[r])?t[r]():t[r]);return this.format(s||this.localeData().calendar(r,this,We(n)))}function ft(){return new g(this)}function pt(e,t){var n=w(e)?e:We(e);return!(!this.isValid()||!n.isValid())&&(t=W(p(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function mt(e,t){var n=w(e)?e:We(e);return!(!this.isValid()||!n.isValid())&&(t=W(p(t)?"millisecond":t),"millisecond"===t?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function gt(e,t,n,o){return o=o||"()",("("===o[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===o[1]?this.isBefore(t,n):!this.isAfter(t,n))}function wt(e,t){var n,o=w(e)?e:We(e);return!(!this.isValid()||!o.isValid())&&(t=W(t||"millisecond"),"millisecond"===t?this.valueOf()===o.valueOf():(n=o.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function vt(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function bt(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Ct(e,t,n){var o,i,r,s;return this.isValid()?(o=Ge(e,this),o.isValid()?(i=6e4*(o.utcOffset()-this.utcOffset()),t=W(t),"year"===t||"month"===t||"quarter"===t?(s=yt(this,o),"quarter"===t?s/=3:"year"===t&&(s/=12)):(r=this-o,s="second"===t?r/1e3:"minute"===t?r/6e4:"hour"===t?r/36e5:"day"===t?(r-i)/864e5:"week"===t?(r-i)/6048e5:r),n?s:v(s)):NaN):NaN}function yt(e,t){var n,o,i=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(i,"months");return t-r<0?(n=e.clone().add(i-1,"months"),o=(t-r)/(r-n)):(n=e.clone().add(i+1,"months"),o=(t-r)/(n-r)),-(i+o)||0}function At(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function _t(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?E(Date.prototype.toISOString)?this.toDate().toISOString():K(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function Et(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=K(this,t);return this.localeData().postformat(n)}function Rt(e,t){return this.isValid()&&(w(e)&&e.isValid()||We(e).isValid())?rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function St(e){return this.from(We(),e)}function Mt(e,t){return this.isValid()&&(w(e)&&e.isValid()||We(e).isValid())?rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kt(e){return this.to(We(),e)}function Tt(e){var t;return void 0===e?this._locale._abbr:(t=P(e),null!=t&&(this._locale=t),this)}function xt(){return this._locale}function Ot(e){switch(e=W(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function Bt(e){return e=W(e),void 0===e||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Dt(){return this._d.valueOf()-6e4*(this._offset||0)}function Ht(){return Math.floor(this.valueOf()/1e3)}function Pt(){return this._offset?new Date(this.valueOf()):this._d}function Nt(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Lt(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Wt(){return this.isValid()?this.toISOString():null}function It(){return h(this)}function Ft(){return l({},c(this))}function jt(){return c(this).overflow}function Vt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function zt(e,t){U(0,[e,e.length],0,t)}function Yt(e){return Kt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Ut(e){return Kt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Gt(){return Re(this.year(),1,4)}function $t(){var e=this.localeData()._week;return Re(this.year(),e.dow,e.doy)}function Kt(e,t,n,o,i){var r;return null==e?Ee(this,o,i).year:(r=Re(e,o,i),t>r&&(t=r),Xt.call(this,e,t,n,o,i))}function Xt(e,t,n,o,i){var r=_e(e,t,n,o,i),s=ve(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function qt(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Zt(e){return Ee(e,this._week.dow,this._week.doy).week}function Qt(){return this._week.dow}function Jt(){return this._week.doy}function en(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function tn(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function nn(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function on(e,t){return i(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function rn(e){return this._weekdaysShort[e.day()]}function sn(e){return this._weekdaysMin[e.day()]}function an(e,t,n){var o,i,r,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;o<7;++o)r=u([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===t?(i=go.call(this._weekdaysParse,s),i!==-1?i:null):"ddd"===t?(i=go.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=go.call(this._minWeekdaysParse,s),i!==-1?i:null):"dddd"===t?(i=go.call(this._weekdaysParse,s),i!==-1?i:(i=go.call(this._shortWeekdaysParse,s),i!==-1?i:(i=go.call(this._minWeekdaysParse,s),i!==-1?i:null))):"ddd"===t?(i=go.call(this._shortWeekdaysParse,s),i!==-1?i:(i=go.call(this._weekdaysParse,s),i!==-1?i:(i=go.call(this._minWeekdaysParse,s),i!==-1?i:null))):(i=go.call(this._minWeekdaysParse,s),i!==-1?i:(i=go.call(this._weekdaysParse,s),i!==-1?i:(i=go.call(this._shortWeekdaysParse,s),i!==-1?i:null)))}function ln(e,t,n){var o,i,r;if(this._weekdaysParseExact)return an.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(i=u([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=new RegExp("^"+this.weekdays(i,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=new RegExp("^"+this.weekdaysShort(i,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=new RegExp("^"+this.weekdaysMin(i,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[o]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[o].test(e))return o;if(n&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(n&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!n&&this._weekdaysParse[o].test(e))return o}}function un(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=nn(e,this.localeData()),this.add(e-t,"d")):t}function dn(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function cn(e){return this.isValid()?null==e?this.day()||7:this.day(this.day()%7?e:e-7):null!=e?this:NaN}function hn(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}function fn(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function pn(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||mn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function mn(){function e(e,t){return t.length-e.length}var t,n,o,i,r,s=[],a=[],l=[],d=[];for(t=0;t<7;t++)n=u([2e3,1]).day(t),o=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),r=this.weekdays(n,""),s.push(o),a.push(i),l.push(r),d.push(o),d.push(i),d.push(r);for(s.sort(e),a.sort(e),l.sort(e),d.sort(e),t=0;t<7;t++)a[t]=J(a[t]),l[t]=J(l[t]),d[t]=J(d[t]);this._weekdaysRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function gn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function wn(){return this.hours()%12||12}function vn(){return this.hours()||24}function bn(e,t){U(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Cn(e,t){return t._meridiemParse}function yn(e){return"p"===(e+"").toLowerCase().charAt(0)}function An(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function _n(e,t){t[Ko]=b(1e3*("0."+e))}function En(){return this._isUTC?"UTC":""}function Rn(){return this._isUTC?"Coordinated Universal Time":""}function Sn(e){return We(1e3*e)}function Mn(){return We.apply(null,arguments).parseZone()}function kn(e,t,n){var o=this._calendar[e];return E(o)?o.call(t,n):o}function Tn(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}function xn(){return this._invalidDate}function On(e){return this._ordinal.replace("%d",e)}function Bn(e){return e}function Dn(e,t,n,o){var i=this._relativeTime[n];return E(i)?i(e,t,n,o):i.replace(/%d/i,e)}function Hn(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}function Pn(e,t,n,o){var i=P(),r=u().set(o,t);return i[n](r,e)}function Nn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Pn(e,t,n,"month");var o,i=[];for(o=0;o<12;o++)i[o]=Pn(e,o,n,"month");return i}function Ln(e,t,n,o){"boolean"==typeof e?("number"==typeof t&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,"number"==typeof t&&(n=t,t=void 0),t=t||"");var i=P(),r=e?i._week.dow:0;if(null!=n)return Pn(t,(n+r)%7,o,"day");var s,a=[];for(s=0;s<7;s++)a[s]=Pn(t,(s+r)%7,o,"day");return a}function Wn(e,t){return Nn(e,t,"months")}function In(e,t){return Nn(e,t,"monthsShort")}function Fn(e,t,n){return Ln(e,t,n,"weekdays")}function jn(e,t,n){return Ln(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Ln(e,t,n,"weekdaysMin")}function zn(){var e=this._data;return this._milliseconds=ji(this._milliseconds),this._days=ji(this._days),this._months=ji(this._months),e.milliseconds=ji(e.milliseconds),e.seconds=ji(e.seconds),e.minutes=ji(e.minutes),e.hours=ji(e.hours),e.months=ji(e.months),e.years=ji(e.years),this}function Yn(e,t,n,o){var i=rt(t,n);return e._milliseconds+=o*i._milliseconds,e._days+=o*i._days,e._months+=o*i._months,e._bubble()}function Un(e,t){return Yn(this,e,t,1)}function Gn(e,t){return Yn(this,e,t,-1)}function $n(e){return e<0?Math.floor(e):Math.ceil(e)}function Kn(){var e,t,n,o,i,r=this._milliseconds,s=this._days,a=this._months,l=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*$n(qn(a)+s),s=0,a=0),l.milliseconds=r%1e3,e=v(r/1e3),l.seconds=e%60,t=v(e/60),l.minutes=t%60,n=v(t/60),l.hours=n%24,s+=v(n/24),i=v(Xn(s)),a+=i,s-=$n(qn(i)),o=v(a/12),a%=12,l.days=s,l.months=a,l.years=o,this}function Xn(e){return 4800*e/146097}function qn(e){return 146097*e/4800}function Zn(e){var t,n,o=this._milliseconds;if(e=W(e),"month"===e||"year"===e)return t=this._days+o/864e5,n=this._months+Xn(t),"month"===e?n:n/12;switch(t=this._days+Math.round(qn(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw new Error("Unknown unit "+e)}}function Qn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)}function Jn(e){return function(){return this.as(e)}}function eo(e){return e=W(e),this[e+"s"]()}function to(e){return function(){return this._data[e]}}function no(){return v(this.days()/7)}function oo(e,t,n,o,i){return i.relativeTime(t||1,!!n,e,o)}function io(e,t,n){var o=rt(e).abs(),i=or(o.as("s")),r=or(o.as("m")),s=or(o.as("h")),a=or(o.as("d")),l=or(o.as("M")),u=or(o.as("y")),d=i<ir.s&&["s",i]||r<=1&&["m"]||r<ir.m&&["mm",r]||s<=1&&["h"]||s<ir.h&&["hh",s]||a<=1&&["d"]||a<ir.d&&["dd",a]||l<=1&&["M"]||l<ir.M&&["MM",l]||u<=1&&["y"]||["yy",u];return d[2]=t,d[3]=+e>0,d[4]=n,oo.apply(null,d)}function ro(e,t){return void 0!==ir[e]&&(void 0===t?ir[e]:(ir[e]=t,!0))}function so(e){var t=this.localeData(),n=io(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function ao(){var e,t,n,o=rr(this._milliseconds)/1e3,i=rr(this._days),r=rr(this._months);e=v(o/60),t=v(e/60),o%=60,e%=60,n=v(r/12),r%=12;var s=n,a=r,l=i,u=t,d=e,c=o,h=this.asSeconds();return h?(h<0?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||d||c?"T":"")+(u?u+"H":"")+(d?d+"M":"")+(c?c+"S":""):"P0D"}var lo,uo;uo=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;o<n;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var co=e.momentProperties=[],ho=!1,fo={};e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var po;po=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var mo,go,wo={},vo={},bo=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Co=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,yo={},Ao={},_o=/\d/,Eo=/\d\d/,Ro=/\d{3}/,So=/\d{4}/,Mo=/[+-]?\d{6}/,ko=/\d\d?/,To=/\d\d\d\d?/,xo=/\d\d\d\d\d\d?/,Oo=/\d{1,3}/,Bo=/\d{1,4}/,Do=/[+-]?\d{1,6}/,Ho=/\d+/,Po=/[+-]?\d+/,No=/Z|[+-]\d\d:?\d\d/gi,Lo=/Z|[+-]\d\d(?::?\d\d)?/gi,Wo=/[+-]?\d+(\.\d{1,3})?/,Io=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Fo={},jo={},Vo=0,zo=1,Yo=2,Uo=3,Go=4,$o=5,Ko=6,Xo=7,qo=8;go=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),U("MMMM",0,0,function(e){return this.localeData().months(this,e)}),L("month","M"),q("M",ko),q("MM",ko,Eo),q("MMM",function(e,t){return t.monthsShortRegex(e)}),q("MMMM",function(e,t){return t.monthsRegex(e)}),ee(["M","MM"],function(e,t){t[zo]=b(e)-1}),ee(["MMM","MMMM"],function(e,t,n,o){var i=n._locale.monthsParse(e,o,n._strict);null!=i?t[zo]=i:c(n).invalidMonth=e});var Zo=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Qo="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Jo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ei=Io,ti=Io,ni=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,oi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?/,ii=/Z|[+-]\d\d(?::?\d\d)?/,ri=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],si=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ai=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=A("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),U("Y",0,0,function(){var e=this.year();return e<=9999?""+e:"+"+e}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),L("year","y"),q("Y",Po),q("YY",ko,Eo),q("YYYY",Bo,So),q("YYYYY",Do,Mo),q("YYYYYY",Do,Mo),ee(["YYYYY","YYYYYY"],Vo),ee("YYYY",function(t,n){n[Vo]=2===t.length?e.parseTwoDigitYear(t):b(t)}),ee("YY",function(t,n){n[Vo]=e.parseTwoDigitYear(t)}),ee("Y",function(e,t){t[Vo]=parseInt(e,10)}),e.parseTwoDigitYear=function(e){return b(e)+(b(e)>68?1900:2e3)};var li=F("FullYear",!0);e.ISO_8601=function(){};var ui=A("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=We.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:f()}),di=A("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=We.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:f()}),ci=function(){return Date.now?Date.now():+new Date};Ye("Z",":"),Ye("ZZ",""),q("Z",Lo),q("ZZ",Lo),ee(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Ue(Lo,e)});var hi=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var fi=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,pi=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;rt.fn=Ve.prototype;var mi=dt(1,"add"),gi=dt(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var wi=A("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),zt("gggg","weekYear"),zt("ggggg","weekYear"),zt("GGGG","isoWeekYear"),zt("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),q("G",Po),q("g",Po),q("GG",ko,Eo),q("gg",ko,Eo),q("GGGG",Bo,So),q("gggg",Bo,So),q("GGGGG",Do,Mo),q("ggggg",Do,Mo),te(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=b(e)}),te(["gg","GG"],function(t,n,o,i){n[i]=e.parseTwoDigitYear(t)}),U("Q",0,"Qo","quarter"),L("quarter","Q"),q("Q",_o),ee("Q",function(e,t){t[zo]=3*(b(e)-1)}),U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),q("w",ko),q("ww",ko,Eo),q("W",ko),q("WW",ko,Eo),te(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=b(e)});var vi={dow:0,doy:6};U("D",["DD",2],"Do","date"),L("date","D"),q("D",ko),q("DD",ko,Eo),q("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),ee(["D","DD"],Yo),ee("Do",function(e,t){t[Yo]=b(e.match(ko)[0],10)});var bi=F("Date",!0);U("d",0,"do","day"),U("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),U("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),U("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),q("d",ko),q("e",ko),q("E",ko),q("dd",function(e,t){return t.weekdaysMinRegex(e)}),q("ddd",function(e,t){return t.weekdaysShortRegex(e)}),q("dddd",function(e,t){return t.weekdaysRegex(e)}),te(["dd","ddd","dddd"],function(e,t,n,o){var i=n._locale.weekdaysParse(e,o,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),te(["d","e","E"],function(e,t,n,o){t[o]=b(e)});var Ci="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),yi="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ai="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_i=Io,Ei=Io,Ri=Io;U("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),q("DDD",Oo),q("DDDD",Ro),ee(["DDD","DDDD"],function(e,t,n){n._dayOfYear=b(e)}),U("H",["HH",2],0,"hour"),U("h",["hh",2],0,wn),U("k",["kk",2],0,vn),U("hmm",0,0,function(){return""+wn.apply(this)+Y(this.minutes(),2)}),U("hmmss",0,0,function(){return""+wn.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),bn("a",!0),bn("A",!1),L("hour","h"),q("a",Cn),q("A",Cn),q("H",ko),q("h",ko),q("HH",ko,Eo),q("hh",ko,Eo),q("hmm",To),q("hmmss",xo),q("Hmm",To),q("Hmmss",xo),ee(["H","HH"],Uo),ee(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ee(["h","hh"],function(e,t,n){t[Uo]=b(e),c(n).bigHour=!0}),ee("hmm",function(e,t,n){var o=e.length-2;t[Uo]=b(e.substr(0,o)),t[Go]=b(e.substr(o)),c(n).bigHour=!0}),ee("hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[Uo]=b(e.substr(0,o)),t[Go]=b(e.substr(o,2)),t[$o]=b(e.substr(i)),c(n).bigHour=!0}),ee("Hmm",function(e,t,n){var o=e.length-2;t[Uo]=b(e.substr(0,o)),t[Go]=b(e.substr(o))}),ee("Hmmss",function(e,t,n){var o=e.length-4,i=e.length-2;t[Uo]=b(e.substr(0,o)),t[Go]=b(e.substr(o,2)),t[$o]=b(e.substr(i))});var Si=/[ap]\.?m?\.?/i,Mi=F("Hours",!0);U("m",["mm",2],0,"minute"),L("minute","m"),q("m",ko),q("mm",ko,Eo),ee(["m","mm"],Go);var ki=F("Minutes",!1);U("s",["ss",2],0,"second"),L("second","s"),q("s",ko),q("ss",ko,Eo),ee(["s","ss"],$o);var Ti=F("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),q("S",Oo,_o),q("SS",Oo,Eo),q("SSS",Oo,Ro);var xi;for(xi="SSSS";xi.length<=9;xi+="S")q(xi,Ho);for(xi="S";xi.length<=9;xi+="S")ee(xi,_n);var Oi=F("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Bi=g.prototype;Bi.add=mi,Bi.calendar=ht,Bi.clone=ft,Bi.diff=Ct,Bi.endOf=Bt,Bi.format=Et,Bi.from=Rt,Bi.fromNow=St,Bi.to=Mt,Bi.toNow=kt,Bi.get=z,Bi.invalidAt=jt,Bi.isAfter=pt,Bi.isBefore=mt,Bi.isBetween=gt,Bi.isSame=wt,Bi.isSameOrAfter=vt,Bi.isSameOrBefore=bt,Bi.isValid=It,Bi.lang=wi,Bi.locale=Tt,Bi.localeData=xt,Bi.max=di,Bi.min=ui,Bi.parsingFlags=Ft,Bi.set=z,Bi.startOf=Ot,Bi.subtract=gi,Bi.toArray=Nt,Bi.toObject=Lt,Bi.toDate=Pt,Bi.toISOString=_t,Bi.toJSON=Wt,Bi.toString=At,Bi.unix=Ht,Bi.valueOf=Dt,Bi.creationData=Vt,Bi.year=li,Bi.isLeapYear=ye,Bi.weekYear=Yt,Bi.isoWeekYear=Ut,Bi.quarter=Bi.quarters=qt,Bi.month=ue,Bi.daysInMonth=de,Bi.week=Bi.weeks=en,Bi.isoWeek=Bi.isoWeeks=tn,Bi.weeksInYear=$t,Bi.isoWeeksInYear=Gt,Bi.date=bi,Bi.day=Bi.days=un,Bi.weekday=dn,Bi.isoWeekday=cn,Bi.dayOfYear=gn,Bi.hour=Bi.hours=Mi,Bi.minute=Bi.minutes=ki,Bi.second=Bi.seconds=Ti,Bi.millisecond=Bi.milliseconds=Oi,Bi.utcOffset=Ke,Bi.utc=qe,Bi.local=Ze,Bi.parseZone=Qe,Bi.hasAlignedHourOffset=Je,Bi.isDST=et,Bi.isDSTShifted=tt,Bi.isLocal=nt,Bi.isUtcOffset=ot,Bi.isUtc=it,Bi.isUTC=it,Bi.zoneAbbr=En,Bi.zoneName=Rn,Bi.dates=A("dates accessor is deprecated. Use date instead.",bi),Bi.months=A("months accessor is deprecated. Use month instead",ue),Bi.years=A("years accessor is deprecated. Use year instead",li),Bi.zone=A("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Xe);var Di=Bi,Hi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Pi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Ni="Invalid date",Li="%d",Wi=/\d{1,2}/,Ii={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},Fi=k.prototype;Fi._calendar=Hi,Fi.calendar=kn,Fi._longDateFormat=Pi,Fi.longDateFormat=Tn,Fi._invalidDate=Ni,Fi.invalidDate=xn,Fi._ordinal=Li,Fi.ordinal=On,Fi._ordinalParse=Wi,Fi.preparse=Bn,Fi.postformat=Bn,Fi._relativeTime=Ii,Fi.relativeTime=Dn,Fi.pastFuture=Hn,Fi.set=S,Fi.months=ie,Fi._months=Qo,Fi.monthsShort=re,Fi._monthsShort=Jo,Fi.monthsParse=ae,Fi._monthsRegex=ti,Fi.monthsRegex=he,Fi._monthsShortRegex=ei,Fi.monthsShortRegex=ce,Fi.week=Zt,Fi._week=vi,Fi.firstDayOfYear=Jt,Fi.firstDayOfWeek=Qt,Fi.weekdays=on,Fi._weekdays=Ci,Fi.weekdaysMin=sn,Fi._weekdaysMin=Ai,Fi.weekdaysShort=rn,Fi._weekdaysShort=yi,Fi.weekdaysParse=ln,Fi._weekdaysRegex=_i,Fi.weekdaysRegex=hn,Fi._weekdaysShortRegex=Ei,Fi.weekdaysShortRegex=fn,Fi._weekdaysMinRegex=Ri,Fi.weekdaysMinRegex=pn,
  Fi.isPM=yn,Fi._meridiemParse=Si,Fi.meridiem=An,B("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===b(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),e.lang=A("moment.lang is deprecated. Use moment.locale instead.",B),e.langData=A("moment.langData is deprecated. Use moment.localeData instead.",P);var ji=Math.abs,Vi=Jn("ms"),zi=Jn("s"),Yi=Jn("m"),Ui=Jn("h"),Gi=Jn("d"),$i=Jn("w"),Ki=Jn("M"),Xi=Jn("y"),qi=to("milliseconds"),Zi=to("seconds"),Qi=to("minutes"),Ji=to("hours"),er=to("days"),tr=to("months"),nr=to("years"),or=Math.round,ir={s:45,m:45,h:22,d:26,M:11},rr=Math.abs,sr=Ve.prototype;sr.abs=zn,sr.add=Un,sr.subtract=Gn,sr.as=Zn,sr.asMilliseconds=Vi,sr.asSeconds=zi,sr.asMinutes=Yi,sr.asHours=Ui,sr.asDays=Gi,sr.asWeeks=$i,sr.asMonths=Ki,sr.asYears=Xi,sr.valueOf=Qn,sr._bubble=Kn,sr.get=eo,sr.milliseconds=qi,sr.seconds=Zi,sr.minutes=Qi,sr.hours=Ji,sr.days=er,sr.weeks=no,sr.months=tr,sr.years=nr,sr.humanize=so,sr.toISOString=ao,sr.toString=ao,sr.toJSON=ao,sr.locale=Tt,sr.localeData=xt,sr.toIsoString=A("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ao),sr.lang=wi,U("X",0,0,"unix"),U("x",0,0,"valueOf"),q("x",Po),q("X",Wo),ee("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),ee("x",function(e,t,n){n._d=new Date(b(e))}),e.version="2.13.0",o(We),e.fn=Di,e.min=Fe,e.max=je,e.now=ci,e.utc=u,e.unix=Sn,e.months=Wn,e.isDate=r,e.locale=B,e.invalid=f,e.duration=rt,e.isMoment=w,e.weekdays=Fn,e.parseZone=Mn,e.localeData=P,e.isDuration=ze,e.monthsShort=In,e.weekdaysMin=Vn,e.defineLocale=D,e.updateLocale=H,e.locales=N,e.weekdaysShort=jn,e.normalizeUnits=W,e.relativeTimeThreshold=ro,e.prototype=Di;var ar=e;return ar})},{}],numbro:[function(n,o,i){(function(){"use strict";function i(e){this._value=e}function r(e){var t,n="";for(t=0;t<e;t++)n+="0";return n}function s(e,t){var n,o,i,s,a,l,u,d;return d=e.toString(),n=d.split("e")[0],s=d.split("e")[1],o=n.split(".")[0],i=n.split(".")[1]||"",+s>0?d=o+i+r(s-i.length):(a=+o<0?"-0":"0",t>0&&(a+="."),u=r(-1*s-1),l=(u+Math.abs(o)+i).substr(0,t),d=a+l),+s>0&&t>0&&(d+="."+r(t)),d}function a(e,t,n,o){var i,r,a=Math.pow(10,t);return e.toString().indexOf("e")>-1?(r=s(e,t),"-"===r.charAt(0)&&+r>=0&&(r=r.substr(1))):r=(n(e+"e+"+t)/a).toFixed(t),o&&(i=new RegExp("0{1,"+o+"}$"),r=r.replace(i,"")),r}function l(e,t,n){var o,i=t.replace(/\{[^\{\}]*\}/g,"");return o=i.indexOf("$")>-1?d(e,t,n):i.indexOf("%")>-1?c(e,t,n):i.indexOf(":")>-1?h(e,t):m(e._value,t,n)}function u(e,t){var n,o,i,r,s,a=t,l=!1;if(t.indexOf(":")>-1)e._value=f(t);else if(t===x)e._value=0;else{for("."!==M[T].delimiters.decimal&&(t=t.replace(/\./g,"").replace(M[T].delimiters.decimal,".")),n=new RegExp("[^a-zA-Z]"+M[T].abbreviations.thousand+"(?:\\)|(\\"+M[T].currency.symbol+")?(?:\\))?)?$"),o=new RegExp("[^a-zA-Z]"+M[T].abbreviations.million+"(?:\\)|(\\"+M[T].currency.symbol+")?(?:\\))?)?$"),i=new RegExp("[^a-zA-Z]"+M[T].abbreviations.billion+"(?:\\)|(\\"+M[T].currency.symbol+")?(?:\\))?)?$"),r=new RegExp("[^a-zA-Z]"+M[T].abbreviations.trillion+"(?:\\)|(\\"+M[T].currency.symbol+")?(?:\\))?)?$"),s=1;s<_.length&&!l;++s)t.indexOf(_[s])>-1?l=Math.pow(1024,s):t.indexOf(E[s])>-1&&(l=Math.pow(1e3,s));var u=t.replace(/[^0-9\.]+/g,"");""===u?e._value=NaN:(e._value=(l?l:1)*(a.match(n)?Math.pow(10,3):1)*(a.match(o)?Math.pow(10,6):1)*(a.match(i)?Math.pow(10,9):1)*(a.match(r)?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(u),e._value=l?Math.ceil(e._value):e._value)}return e._value}function d(e,t,n){var o,i,r=t,s=r.indexOf("$"),a=r.indexOf("("),l=r.indexOf("+"),u=r.indexOf("-"),d="",c="";if(r.indexOf("$")===-1?"infix"===M[T].currency.position?(c=M[T].currency.symbol,M[T].currency.spaceSeparated&&(c=" "+c+" ")):M[T].currency.spaceSeparated&&(d=" "):r.indexOf(" $")>-1?(d=" ",r=r.replace(" $","")):r.indexOf("$ ")>-1?(d=" ",r=r.replace("$ ","")):r=r.replace("$",""),i=m(e._value,r,n,c),t.indexOf("$")===-1)switch(M[T].currency.position){case"postfix":i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,d+M[T].currency.symbol),i=i.join("")):i=i+d+M[T].currency.symbol;break;case"infix":break;case"prefix":i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),o=Math.max(a,u)+1,i.splice(o,0,M[T].currency.symbol+d),i=i.join("")):i=M[T].currency.symbol+d+i;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else s<=1?i.indexOf("(")>-1||i.indexOf("+")>-1||i.indexOf("-")>-1?(i=i.split(""),o=1,(s<a||s<l||s<u)&&(o=0),i.splice(o,0,M[T].currency.symbol+d),i=i.join("")):i=M[T].currency.symbol+d+i:i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,d+M[T].currency.symbol),i=i.join("")):i=i+d+M[T].currency.symbol;return i}function c(e,t,n){var o,i="",r=100*e._value;return t.indexOf(" %")>-1?(i=" ",t=t.replace(" %","")):t=t.replace("%",""),o=m(r,t,n),o.indexOf(")")>-1?(o=o.split(""),o.splice(-1,0,i+"%"),o=o.join("")):o=o+i+"%",o}function h(e){var t=Math.floor(e._value/60/60),n=Math.floor((e._value-60*t*60)/60),o=Math.round(e._value-60*t*60-60*n);return t+":"+(n<10?"0"+n:n)+":"+(o<10?"0"+o:o)}function f(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}function p(e,t,n){var o,i,r,s=t[0],a=Math.abs(e);if(a>=n){for(o=1;o<t.length;++o)if(i=Math.pow(n,o),r=Math.pow(n,o+1),a>=i&&a<r){s=t[o],e/=i;break}s===t[0]&&(e/=Math.pow(n,t.length-1),s=t[t.length-1])}return{value:e,suffix:s}}function m(e,t,n,o){var i,s,l,u,d,c,h,f,m,g,w,v,b,C,y,A,_,E=!1,R=!1,k=!1,O="",B=!1,D=!1,H=!1,P=!1,N=!1,L="",W="",I=Math.abs(e),F="",j=!1,V=!1,z="";if(0===e&&null!==x)return x;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var Y=t.indexOf("}");if(Y===-1)throw Error('Format should also contain a "}"');g=t.slice(1,Y),t=t.slice(Y+1)}else g="";if(t.indexOf("}")===t.length-1){var U=t.indexOf("{");if(U===-1)throw Error('Format should also contain a "{"');w=t.slice(U+1,-1),t=t.slice(0,U+1)}else w="";var G;for(G=t.indexOf(".")===-1?t.match(/([0-9]+).*/):t.match(/([0-9]+)\..*/),A=null===G?-1:G[1].length,t.indexOf("-")!==-1&&(j=!0),t.indexOf("(")>-1?(E=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(R=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(f=t.split(".")[0].match(/[0-9]+/g)||["0"],f=parseInt(f[0],10),B=t.indexOf("aK")>=0,D=t.indexOf("aM")>=0,H=t.indexOf("aB")>=0,P=t.indexOf("aT")>=0,N=B||D||H||P,t.indexOf(" a")>-1?(O=" ",t=t.replace(" a","")):t=t.replace("a",""),l=Math.floor(Math.log(I)/Math.LN10)+1,d=l%3,d=0===d?3:d,f&&0!==I&&(u=Math.floor(Math.log(I)/Math.LN10)+1-f,c=3*~~((Math.min(f,l)-d)/3),I/=Math.pow(10,c),t.indexOf(".")===-1&&f>3&&(t+="[.]",C=0===u?0:3*~~(u/3)-u,C=C<0?C+3:C,t+=r(C))),Math.floor(Math.log(Math.abs(e))/Math.LN10)+1!==f&&(I>=Math.pow(10,12)&&!N||P?(O+=M[T].abbreviations.trillion,e/=Math.pow(10,12)):I<Math.pow(10,12)&&I>=Math.pow(10,9)&&!N||H?(O+=M[T].abbreviations.billion,e/=Math.pow(10,9)):I<Math.pow(10,9)&&I>=Math.pow(10,6)&&!N||D?(O+=M[T].abbreviations.million,e/=Math.pow(10,6)):(I<Math.pow(10,6)&&I>=Math.pow(10,3)&&!N||B)&&(O+=M[T].abbreviations.thousand,e/=Math.pow(10,3)))),_=0;_<S.length;++_)if(i=S[_],t.indexOf(i.marker)>-1){t.indexOf(" "+i.marker)>-1&&(L=" "),t=t.replace(L+i.marker,""),s=p(e,i.suffixes,i.scale),e=s.value,L+=s.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(W=" ",t=t.replace(" o","")):t=t.replace("o",""),M[T].ordinal&&(W+=M[T].ordinal(e))),t.indexOf("[.]")>-1&&(k=!0,t=t.replace("[.]",".")),h=e.toString().split(".")[0],m=t.split(".")[1],v=t.indexOf(","),m){if(m.indexOf("*")!==-1?F=a(e,e.toString().split(".")[1].length,n):m.indexOf("[")>-1?(m=m.replace("]",""),m=m.split("["),F=a(e,m[0].length+m[1].length,n,m[1].length)):F=a(e,m.length,n),h=F.split(".")[0],F.split(".")[1].length){var $=o?O+o:M[T].delimiters.decimal;F=$+F.split(".")[1]}else F="";k&&0===Number(F.slice(1))&&(F="")}else h=a(e,0,n);return h.indexOf("-")>-1&&(h=h.slice(1),V=!0),h.length<A&&(h=r(A-h.length)+h),v>-1&&(h=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+M[T].delimiters.thousands)),0===t.indexOf(".")&&(h=""),b=t.indexOf("("),y=t.indexOf("-"),z=b<y?(E&&V?"(":"")+(j&&V||!E&&V?"-":""):(j&&V||!E&&V?"-":"")+(E&&V?"(":""),g+z+(!V&&R&&0!==e?"+":"")+h+F+(W?W:"")+(O&&!o?O:"")+(L?L:"")+(E&&V?")":"")+w}function g(e,t){M[e]=t}function w(e){T=e;var t=M[e].defaults;t&&t.format&&y.defaultFormat(t.format),t&&t.currencyFormat&&y.defaultCurrencyFormat(t.currencyFormat)}function v(){return"undefined"!=typeof t&&void 0===t.browser&&(0===t.title.indexOf("node")||"grunt"===t.title||"gulp"===t.title)&&"undefined"!=typeof n}function b(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)}function C(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var n=b(e),o=b(t);return n>o?n:o},-(1/0))}var y,A="1.8.0",_=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],E=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],R={general:{scale:1024,suffixes:E,marker:"bd"},binary:{scale:1024,suffixes:_,marker:"b"},decimal:{scale:1e3,suffixes:E,marker:"d"}},S=[R.general,R.binary,R.decimal],M={},k=M,T="en-US",x=null,O="0,0",B="0$",D="undefined"!=typeof o&&o.exports,H={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:"$",position:"prefix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:"$ ,0.00",fullWithTwoDecimalsNoCurrency:",0.00"}};y=function(e){return y.isNumbro(e)?e=e.value():0===e||"undefined"==typeof e?e=0:Number(e)||(e=y.fn.unformat(e)),new i(Number(e))},y.version=A,y.isNumbro=function(e){return e instanceof i},y.setLanguage=function(e,t){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var n=e,o=e.split("-")[0],i=null;k[n]||(Object.keys(k).forEach(function(e){i||e.split("-")[0]!==o||(i=e)}),n=i||t||"en-US"),w(n)},y.setCulture=function(e,t){var n=e,o=e.split("-")[1],i=null;M[n]||(o&&Object.keys(M).forEach(function(e){i||e.split("-")[1]!==o||(i=e)}),n=i||t||"en-US"),w(n)},y.language=function(e,t){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return T;if(e&&!t){if(!k[e])throw new Error("Unknown language : "+e);w(e)}return!t&&k[e]||g(e,t),y},y.culture=function(e,t){if(!e)return T;if(e&&!t){if(!M[e])throw new Error("Unknown culture : "+e);w(e)}return!t&&M[e]||g(e,t),y},y.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return k[T];if(!k[e])throw new Error("Unknown language : "+e);return k[e]},y.cultureData=function(e){if(!e)return M[T];if(!M[e])throw new Error("Unknown culture : "+e);return M[e]},y.culture("en-US",H),y.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),k},y.cultures=function(){return M},y.zeroFormat=function(e){x="string"==typeof e?e:null},y.defaultFormat=function(e){O="string"==typeof e?e:"0.0"},y.defaultCurrencyFormat=function(e){B="string"==typeof e?e:"0$"},y.validate=function(e,t){var n,o,i,r,s,a,l,u;if("string"!=typeof e&&(e+="",console.warn&&console.warn("Numbro.js: Value is not string. It has been co-erced to: ",e)),e=e.trim(),e.match(/^\d+$/))return!0;if(""===e)return!1;try{l=y.cultureData(t)}catch(e){l=y.cultureData(y.culture())}return i=l.currency.symbol,s=l.abbreviations,n=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,u=e.match(/^[^\d]+/),(null===u||(e=e.substr(1),u[0]===i))&&(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))&&(a=new RegExp(o+"{2}"),!e.match(/[^\d.,]/g)&&(r=e.split(n),!(r.length>2)&&(r.length<2?!!r[0].match(/^\d+.*\d$/)&&!r[0].match(a):1===r[0].length?!!r[0].match(/^\d+$/)&&!r[0].match(a)&&!!r[1].match(/^\d+$/):!!r[0].match(/^\d+.*\d$/)&&!r[0].match(a)&&!!r[1].match(/^\d+$/)))))},y.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),y.loadCulturesInNode()},y.loadCulturesInNode=function(){var e=n("./languages");for(var t in e)t&&y.culture(t,e[t])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){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 n,o,i=this.length>>>0,r=!1;for(1<arguments.length&&(o=t,r=!0),n=0;i>n;++n)this.hasOwnProperty(n)&&(r?o=e(o,this[n],n,this):(o=this[n],r=!0));if(!r)throw new TypeError("Reduce of empty array with no initial value");return o}),y.fn=i.prototype={clone:function(){return y(this)},format:function(e,t){return l(this,e?e:O,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return d(this,e?e:B,void 0!==t?t:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=u(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return p(this._value,R.binary.suffixes,R.binary.scale).suffix},byteUnits:function(){return p(this._value,R.general.suffixes,R.general.scale).suffix},decimalByteUnits:function(){return p(this._value,R.decimal.suffixes,R.decimal.scale).suffix},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){return e+n*t}var n=C.call(null,this._value,e);return this._value=[this._value,e].reduce(t,0)/n,this},subtract:function(e){function t(e,t){return e-n*t}var n=C.call(null,this._value,e);return this._value=[e].reduce(t,this._value*n)/n,this},multiply:function(e){function t(e,t){var n=C(e,t),o=e*n;return o*=t*n,o/=n*n}return this._value=[this._value,e].reduce(t,1),this},divide:function(e){function t(e,t){var n=C(e,t);return e*n/(t*n)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(y(this._value).subtract(e).value())}},v()&&y.loadCulturesInNode(),D?o.exports=y:("undefined"==typeof ender&&(this.numbro=y),"function"==typeof e&&e.amd&&e([],function(){return y}))}).call("undefined"==typeof window?this:window)},{languages:1}],pikaday:[function(t,n,o){!function(i,r){"use strict";var s;if("object"==typeof o){try{s=t("moment")}catch(e){}n.exports=r(s)}else"function"==typeof e&&e.amd?e(function(e){var t="moment";try{s=e(t)}catch(e){}return r(s)}):i.Pikaday=r(i.moment)}(this,function(e){"use strict";var t="function"==typeof e,n=!!window.addEventListener,o=window.document,i=window.setTimeout,r=function(e,t,o,i){n?e.addEventListener(t,o,!!i):e.attachEvent("on"+t,o)},s=function(e,t,o,i){n?e.removeEventListener(t,o,!!i):e.detachEvent("on"+t,o)},a=function(e,t,n){var i;o.createEvent?(i=o.createEvent("HTMLEvents"),i.initEvent(t,!0,!1),i=b(i,n),e.dispatchEvent(i)):o.createEventObject&&(i=o.createEventObject(),i=b(i,n),e.fireEvent("on"+t,i))},l=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},u=function(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")!==-1},d=function(e,t){u(e,t)||(e.className=""===e.className?t:e.className+" "+t)},c=function(e,t){e.className=l((" "+e.className+" ").replace(" "+t+" "," "))},h=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},p=function(e){var t=e.getDay();return 0===t||6===t},m=function(e){return e%4===0&&e%100!==0||e%400===0},g=function(e,t){return[31,m(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},w=function(e){f(e)&&e.setHours(0,0,0,0)},v=function(e,t){return e.getTime()===t.getTime()},b=function(e,t,n){var o,i;for(o in t)i=void 0!==e[o],i&&"object"==typeof t[o]&&null!==t[o]&&void 0===t[o].nodeName?f(t[o])?n&&(e[o]=new Date(t[o].getTime())):h(t[o])?n&&(e[o]=t[o].slice(0)):e[o]=b({},t[o],n):!n&&i||(e[o]=t[o]);return e},C=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},y={field:null,bound:void 0,position:"bottom left",reposition:!0,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:!1,firstDay:0,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},A=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},_=function(e){if(e.isEmpty)return'<td class="is-empty"></td>';var t=[];return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&t.push("is-selected"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},E=function(e,t,n){var o=new Date(n,0,1),i=Math.ceil(((new Date(n,t,e)-o)/864e5+o.getDay()+1)/7);return'<td class="pika-week">'+i+"</td>"},R=function(e,t){return"<tr>"+(t?e.reverse():e).join("")+"</tr>"},S=function(e){return"<tbody>"+e.join("")+"</tbody>"},M=function(e){var t,n=[];for(e.showWeekNumber&&n.push("<th></th>"),t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+A(e,t)+'">'+A(e,t,!0)+"</abbr></th>");return"<thead>"+(e.isRTL?n.reverse():n).join("")+"</thead>"},k=function(e,t,n,o,i){var r,s,a,l,u,d=e._o,c=n===d.minYear,f=n===d.maxYear,p='<div class="pika-title">',m=!0,g=!0;for(a=[],r=0;r<12;r++)a.push('<option value="'+(n===i?r-t:12+r-t)+'"'+(r===o?" selected":"")+(c&&r<d.minMonth||f&&r>d.maxMonth?"disabled":"")+">"+d.i18n.months[r]+"</option>");for(l='<div class="pika-label">'+d.i18n.months[o]+'<select class="pika-select pika-select-month" tabindex="-1">'+a.join("")+"</select></div>",h(d.yearRange)?(r=d.yearRange[0],s=d.yearRange[1]+1):(r=n-d.yearRange,s=1+n+d.yearRange),a=[];r<s&&r<=d.maxYear;r++)r>=d.minYear&&a.push('<option value="'+r+'"'+(r===n?" selected":"")+">"+r+"</option>");return u='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+a.join("")+"</select></div>",p+=d.showMonthAfterYear?u+l:l+u,c&&(0===o||d.minMonth>=o)&&(m=!1),f&&(11===o||d.maxMonth<=o)&&(g=!1),0===t&&(p+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(p+='<button class="pika-next'+(g?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),p+="</div>"},T=function(e,t){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+M(e)+S(t)+"</table>"},x=function(s){var a=this,l=a.config(s);a._onMouseDown=function(e){if(a._v){e=e||window.event;var t=e.target||e.srcElement;if(t)if(u(t,"is-disabled")||(u(t,"pika-button")&&!u(t,"is-empty")?(a.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),l.bound&&i(function(){a.hide(),l.field&&l.field.blur()},100)):u(t,"pika-prev")?a.prevMonth():u(t,"pika-next")&&a.nextMonth()),u(t,"pika-select"))a._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},a._onChange=function(e){e=e||window.event;var t=e.target||e.srcElement;t&&(u(t,"pika-select-month")?a.gotoMonth(t.value):u(t,"pika-select-year")&&a.gotoYear(t.value))},a._onInputChange=function(n){var o;n.firedBy!==a&&(t?(o=e(l.field.value,l.format),o=o&&o.isValid()?o.toDate():null):o=new Date(Date.parse(l.field.value)),f(o)&&a.setDate(o),a._v||a.show())},a._onInputFocus=function(){a.show()},a._onInputClick=function(){a.show()},a._onInputBlur=function(){var e=o.activeElement;do if(u(e,"pika-single"))return;while(e=e.parentNode);a._c||(a._b=i(function(){a.hide()},50)),a._c=!1},a._onClick=function(e){e=e||window.event;var t=e.target||e.srcElement,o=t;if(t){!n&&u(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),r(t,"change",a._onChange)));do if(u(o,"pika-single")||o===l.trigger)return;while(o=o.parentNode);a._v&&t!==l.trigger&&o!==l.trigger&&a.hide()}},a.el=o.createElement("div"),a.el.className="pika-single"+(l.isRTL?" is-rtl":"")+(l.theme?" "+l.theme:""),r(a.el,"mousedown",a._onMouseDown,!0),r(a.el,"touchend",a._onMouseDown,!0),r(a.el,"change",a._onChange),l.field&&(l.container?l.container.appendChild(a.el):l.bound?o.body.appendChild(a.el):l.field.parentNode.insertBefore(a.el,l.field.nextSibling),r(l.field,"change",a._onInputChange),l.defaultDate||(t&&l.field.value?l.defaultDate=e(l.field.value,l.format).toDate():l.defaultDate=new Date(Date.parse(l.field.value)),l.setDefaultDate=!0));var d=l.defaultDate;f(d)?l.setDefaultDate?a.setDate(d,!0):a.gotoDate(d):a.gotoDate(new Date),l.bound?(this.hide(),a.el.className+=" is-bound",r(l.trigger,"click",a._onInputClick),r(l.trigger,"focus",a._onInputFocus),r(l.trigger,"blur",a._onInputBlur)):this.show()};return x.prototype={config:function(e){this._o||(this._o=b({},y,!0));var t=b(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),h(t.yearRange)){var o=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||o,t.yearRange[1]=parseInt(t.yearRange[1],10)||o}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||y.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return f(this._d)?t?e(this._d).format(n||this._o.format):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,o){t&&e.isMoment(n)&&this.setDate(n.toDate(),o)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",a(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,o=this._o.maxDate;f(n)&&e<n?e=n:f(o)&&e>o&&(e=o),this._d=new Date(e.getTime()),w(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),a(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),o=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),i=e.getTime();o.setMonth(o.getMonth()+1),o.setDate(o.getDate()-1),t=i<n.getTime()||o.getTime()<i}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustCalendars:function(){this.calendars[0]=C(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=C({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){w(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth(),this.draw()},setMaxDate:function(e){w(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth(),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t=this._o,n=t.minYear,o=t.maxYear,r=t.minMonth,s=t.maxMonth,a="";this._y<=n&&(this._y=n,!isNaN(r)&&this._m<r&&(this._m=r)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s));for(var l=0;l<t.numberOfMonths;l++)a+='<div class="pika-lendar">'+k(this,l,this.calendars[l].year,this.calendars[l].month,this.calendars[0].year)+this.render(this.calendars[l].year,this.calendars[l].month)+"</div>";if(this.el.innerHTML=a,t.bound&&"hidden"!==t.field.type&&i(function(){t.trigger.focus()},1),"function"==typeof this._o.onDraw){var u=this;i(function(){u._o.onDraw.call(u)},0)}}},adjustPosition:function(){var e,t,n,i,r,s,a,l,u,d;if(!this._o.container){if(this.el.style.position="absolute",e=this._o.trigger,t=e,n=this.el.offsetWidth,i=this.el.offsetHeight,r=window.innerWidth||o.documentElement.clientWidth,s=window.innerHeight||o.documentElement.clientHeight,a=window.pageYOffset||o.body.scrollTop||o.documentElement.scrollTop,"function"==typeof e.getBoundingClientRect)d=e.getBoundingClientRect(),l=d.left+window.pageXOffset,u=d.bottom+window.pageYOffset;else for(l=t.offsetLeft,u=t.offsetTop+t.offsetHeight;t=t.offsetParent;)l+=t.offsetLeft,u+=t.offsetTop;(this._o.reposition&&l+n>r||this._o.position.indexOf("right")>-1&&l-n+e.offsetWidth>0)&&(l=l-n+e.offsetWidth),(this._o.reposition&&u+i>s+a||this._o.position.indexOf("top")>-1&&u-i-e.offsetHeight>0)&&(u=u-i-e.offsetHeight),this.el.style.left=l+"px",this.el.style.top=u+"px"}},render:function(e,t){var n=this._o,o=new Date,i=g(e,t),r=new Date(e,t,1).getDay(),s=[],a=[];w(o),n.firstDay>0&&(r-=n.firstDay,r<0&&(r+=7));for(var l=i+r,u=l;u>7;)u-=7;l+=7-u;for(var d=0,c=0;d<l;d++){var h=new Date(e,t,1+(d-r)),m=!!f(this._d)&&v(h,this._d),b=v(h,o),C=d<r||d>=i+r,y=n.startRange&&v(n.startRange,h),A=n.endRange&&v(n.endRange,h),S=n.startRange&&n.endRange&&n.startRange<h&&h<n.endRange,M=n.minDate&&h<n.minDate||n.maxDate&&h>n.maxDate||n.disableWeekends&&p(h)||n.disableDayFn&&n.disableDayFn(h),k={day:1+(d-r),month:t,year:e,isSelected:m,isToday:b,isDisabled:M,isEmpty:C,isStartRange:y,isEndRange:A,isInRange:S};a.push(_(k)),7===++c&&(n.showWeekNumber&&a.unshift(E(d-r,t,e)),s.push(R(a,n.isRTL)),a=[],c=0)}return T(n,s)},isVisible:function(){return this._v},show:function(){this._v||(c(this.el,"is-hidden"),this._v=!0,this.draw(),this._o.bound&&(r(o,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;e!==!1&&(this._o.bound&&s(o,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",d(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){this.hide(),s(this.el,"mousedown",this._onMouseDown,!0),s(this.el,"touchend",this._onMouseDown,!0),s(this.el,"change",this._onChange),this._o.field&&(s(this._o.field,"change",this._onInputChange),this._o.bound&&(s(this._o.trigger,"click",this._onInputClick),s(this._o.trigger,"focus",this._onInputFocus),s(this._o.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},x})},{moment:"moment"}],zeroclipboard:[function(t,n,o){!function(t,o){"use strict";var i,r,s,a=t,l=a.document,u=a.navigator,d=a.setTimeout,c=a.clearTimeout,h=a.setInterval,f=a.clearInterval,p=a.getComputedStyle,m=a.encodeURIComponent,g=a.ActiveXObject,w=a.Error,v=a.Number.parseInt||a.parseInt,b=a.Number.parseFloat||a.parseFloat,C=a.Number.isNaN||a.isNaN,y=a.Date.now,A=a.Object.keys,_=a.Object.defineProperty,E=a.Object.prototype.hasOwnProperty,R=a.Array.prototype.slice,S=function(){var e=function(e){return e};if("function"==typeof a.wrap&&"function"==typeof a.unwrap)try{var t=l.createElement("div"),n=a.unwrap(t);1===t.nodeType&&n&&1===n.nodeType&&(e=a.unwrap)}catch(e){}return e}(),M=function(e){return R.call(e,0)},k=function(){var e,t,n,i,r,s,a=M(arguments),l=a[0]||{};for(e=1,t=a.length;e<t;e++)if(null!=(n=a[e]))for(i in n)E.call(n,i)&&(r=l[i],s=n[i],l!==s&&s!==o&&(l[i]=s));return l},T=function(e){var t,n,o,i;if("object"!=typeof e||null==e||"number"==typeof e.nodeType)t=e;else if("number"==typeof e.length)for(t=[],n=0,o=e.length;n<o;n++)E.call(e,n)&&(t[n]=T(e[n]));else{t={};for(i in e)E.call(e,i)&&(t[i]=T(e[i]))}return t},x=function(e,t){for(var n={},o=0,i=t.length;o<i;o++)t[o]in e&&(n[t[o]]=e[t[o]]);return n},O=function(e,t){var n={};for(var o in e)t.indexOf(o)===-1&&(n[o]=e[o]);return n},B=function(e){if(e)for(var t in e)E.call(e,t)&&delete e[t];return e},D=function(e,t){if(e&&1===e.nodeType&&e.ownerDocument&&t&&(1===t.nodeType&&t.ownerDocument&&t.ownerDocument===e.ownerDocument||9===t.nodeType&&!t.ownerDocument&&t===e.ownerDocument))do{if(e===t)return!0;e=e.parentNode}while(e);return!1},H=function(e){var t;return"string"==typeof e&&e&&(t=e.split("#")[0].split("?")[0],t=e.slice(0,e.lastIndexOf("/")+1)),t},P=function(e){var t,n;return"string"==typeof e&&e&&(n=e.match(/^(?:|[^:@]*@|.+\)@(?=http[s]?|file)|.+?\s+(?: at |@)(?:[^:\(]+ )*[\(]?)((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]?t=n[1]:(n=e.match(/\)@((?:http[s]?|file):\/\/[\/]?.+?\/[^:\)]*?)(?::\d+)(?::\d+)?/),n&&n[1]&&(t=n[1]))),t},N=function(){var e,t;try{throw new w}catch(e){t=e}return t&&(e=t.sourceURL||t.fileName||P(t.stack)),e},L=function(){var e,t,n;if(l.currentScript&&(e=l.currentScript.src))return e;if(t=l.getElementsByTagName("script"),1===t.length)return t[0].src||o;if("readyState"in t[0])for(n=t.length;n--;)if("interactive"===t[n].readyState&&(e=t[n].src))return e;return"loading"===l.readyState&&(e=t[t.length-1].src)?e:(e=N())?e:o},W=function(){var e,t,n,i=l.getElementsByTagName("script");for(e=i.length;e--;){if(!(n=i[e].src)){t=null;break}if(n=H(n),null==t)t=n;else if(t!==n){t=null;break}}return t||o},I=function(){var e=H(L())||W()||"";return e+"ZeroClipboard.swf"},F=function(){return null==t.opener&&(!!t.top&&t!=t.top||!!t.parent&&t!=t.parent)}(),j={bridge:null,version:"0.0.0",pluginType:"unknown",disabled:null,outdated:null,sandboxed:null,unavailable:null,degraded:null,deactivated:null,overdue:null,ready:null},V="11.0.0",z={},Y={},U=null,G=0,$=0,K={ready:"Flash communication is established",error:{"flash-disabled":"Flash is disabled or not installed. May also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-outdated":"Flash is too outdated to support ZeroClipboard","flash-sandboxed":"Attempting to run Flash in a sandboxed iframe, which is impossible","flash-unavailable":"Flash is unable to communicate bidirectionally with JavaScript","flash-degraded":"Flash is unable to preserve data fidelity when communicating with JavaScript","flash-deactivated":"Flash is too outdated for your browser and/or is configured as click-to-activate.\nThis may also mean that the ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity.\nMay also be attempting to run Flash in a sandboxed iframe, which is impossible.","flash-overdue":"Flash communication was established but NOT within the acceptable time limit","version-mismatch":"ZeroClipboard JS version number does not match ZeroClipboard SWF version number","clipboard-error":"At least one error was thrown while ZeroClipboard was attempting to inject your data into the clipboard","config-mismatch":"ZeroClipboard configuration does not match Flash's reality","swf-not-found":"The ZeroClipboard SWF object could not be loaded, so please check your `swfPath` configuration and/or network connectivity"
  }},X=["flash-unavailable","flash-degraded","flash-overdue","version-mismatch","config-mismatch","clipboard-error"],q=["flash-disabled","flash-outdated","flash-sandboxed","flash-unavailable","flash-degraded","flash-deactivated","flash-overdue"],Z=new RegExp("^flash-("+q.map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),Q=new RegExp("^flash-("+q.slice(1).map(function(e){return e.replace(/^flash-/,"")}).join("|")+")$"),J={swfPath:I(),trustedDomains:t.location.host?[t.location.host]:[],cacheBust:!0,forceEnhancedClipboard:!1,flashLoadTimeout:3e4,autoActivate:!0,bubbleEvents:!0,containerId:"global-zeroclipboard-html-bridge",containerClass:"global-zeroclipboard-container",swfObjectId:"global-zeroclipboard-flash-bridge",hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",forceHandCursor:!1,title:null,zIndex:999999999},ee=function(e){if("object"==typeof e&&null!==e)for(var t in e)if(E.call(e,t))if(/^(?:forceHandCursor|title|zIndex|bubbleEvents)$/.test(t))J[t]=e[t];else if(null==j.bridge)if("containerId"===t||"swfObjectId"===t){if(!me(e[t]))throw new Error("The specified `"+t+"` value is not valid as an HTML4 Element ID");J[t]=e[t]}else J[t]=e[t];{if("string"!=typeof e||!e)return T(J);if(E.call(J,e))return J[e]}},te=function(){return $e(),{browser:x(u,["userAgent","platform","appName"]),flash:O(j,["bridge"]),zeroclipboard:{version:Xe.version,config:Xe.config()}}},ne=function(){return!!(j.disabled||j.outdated||j.sandboxed||j.unavailable||j.degraded||j.deactivated)},oe=function(e,t){var n,r,s,a={};if("string"==typeof e&&e)s=e.toLowerCase().split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)E.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&Xe.on(n,e[n]);if(s&&s.length){for(n=0,r=s.length;n<r;n++)e=s[n].replace(/^on/,""),a[e]=!0,z[e]||(z[e]=[]),z[e].push(t);if(a.ready&&j.ready&&Xe.emit({type:"ready"}),a.error){for(n=0,r=q.length;n<r;n++)if(j[q[n].replace(/^flash-/,"")]===!0){Xe.emit({type:"error",name:q[n]});break}i!==o&&Xe.version!==i&&Xe.emit({type:"error",name:"version-mismatch",jsVersion:Xe.version,swfVersion:i})}}return Xe},ie=function(e,t){var n,o,i,r,s;if(0===arguments.length)r=A(z);else if("string"==typeof e&&e)r=e.split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)E.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&Xe.off(n,e[n]);if(r&&r.length)for(n=0,o=r.length;n<o;n++)if(e=r[n].toLowerCase().replace(/^on/,""),s=z[e],s&&s.length)if(t)for(i=s.indexOf(t);i!==-1;)s.splice(i,1),i=s.indexOf(t,i);else s.length=0;return Xe},re=function(e){var t;return t="string"==typeof e&&e?T(z[e])||null:T(z)},se=function(e){var t,n,o;if(e=ge(e),e&&!_e(e))return"ready"===e.type&&j.overdue===!0?Xe.emit({type:"error",name:"flash-overdue"}):(t=k({},e),ye.call(this,t),"copy"===e.type&&(o=Oe(Y),n=o.data,U=o.formatMap),n)},ae=function(){var e=j.sandboxed;if($e(),"boolean"!=typeof j.ready&&(j.ready=!1),j.sandboxed!==e&&j.sandboxed===!0)j.ready=!1,Xe.emit({type:"error",name:"flash-sandboxed"});else if(!Xe.isFlashUnusable()&&null===j.bridge){var t=J.flashLoadTimeout;"number"==typeof t&&t>=0&&(G=d(function(){"boolean"!=typeof j.deactivated&&(j.deactivated=!0),j.deactivated===!0&&Xe.emit({type:"error",name:"flash-deactivated"})},t)),j.overdue=!1,Te()}},le=function(){Xe.clearData(),Xe.blur(),Xe.emit("destroy"),xe(),Xe.off()},ue=function(e,t){var n;if("object"==typeof e&&e&&"undefined"==typeof t)n=e,Xe.clearData();else{if("string"!=typeof e||!e)return;n={},n[e]=t}for(var o in n)"string"==typeof o&&o&&E.call(n,o)&&"string"==typeof n[o]&&n[o]&&(Y[o]=n[o])},de=function(e){"undefined"==typeof e?(B(Y),U=null):"string"==typeof e&&E.call(Y,e)&&delete Y[e]},ce=function(e){return"undefined"==typeof e?T(Y):"string"==typeof e&&E.call(Y,e)?Y[e]:void 0},he=function(e){if(e&&1===e.nodeType){r&&(Ie(r,J.activeClass),r!==e&&Ie(r,J.hoverClass)),r=e,We(e,J.hoverClass);var t=e.getAttribute("title")||J.title;if("string"==typeof t&&t){var n=ke(j.bridge);n&&n.setAttribute("title",t)}var o=J.forceHandCursor===!0||"pointer"===Fe(e,"cursor");Ue(o),Ye()}},fe=function(){var e=ke(j.bridge);e&&(e.removeAttribute("title"),e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px"),r&&(Ie(r,J.hoverClass),Ie(r,J.activeClass),r=null)},pe=function(){return r||null},me=function(e){return"string"==typeof e&&e&&/^[A-Za-z][A-Za-z0-9_:\-\.]*$/.test(e)},ge=function(e){var t;if("string"==typeof e&&e?(t=e,e={}):"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(t=e.type),t){t=t.toLowerCase(),!e.target&&(/^(copy|aftercopy|_click)$/.test(t)||"error"===t&&"clipboard-error"===e.name)&&(e.target=s),k(e,{type:t,target:e.target||r||null,relatedTarget:e.relatedTarget||null,currentTarget:j&&j.bridge||null,timeStamp:e.timeStamp||y()||null});var n=K[e.type];return"error"===e.type&&e.name&&n&&(n=n[e.name]),n&&(e.message=n),"ready"===e.type&&k(e,{target:null,version:j.version}),"error"===e.type&&(Z.test(e.name)&&k(e,{target:null,minimumVersion:V}),Q.test(e.name)&&k(e,{version:j.version})),"copy"===e.type&&(e.clipboardData={setData:Xe.setData,clearData:Xe.clearData}),"aftercopy"===e.type&&(e=Be(e,U)),e.target&&!e.relatedTarget&&(e.relatedTarget=we(e.target)),ve(e)}},we=function(e){var t=e&&e.getAttribute&&e.getAttribute("data-clipboard-target");return t?l.getElementById(t):null},ve=function(e){if(e&&/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type)){var t=e.target,n="_mouseover"===e.type&&e.relatedTarget?e.relatedTarget:o,i="_mouseout"===e.type&&e.relatedTarget?e.relatedTarget:o,r=je(t),s=a.screenLeft||a.screenX||0,u=a.screenTop||a.screenY||0,d=l.body.scrollLeft+l.documentElement.scrollLeft,c=l.body.scrollTop+l.documentElement.scrollTop,h=r.left+("number"==typeof e._stageX?e._stageX:0),f=r.top+("number"==typeof e._stageY?e._stageY:0),p=h-d,m=f-c,g=s+p,w=u+m,v="number"==typeof e.movementX?e.movementX:0,b="number"==typeof e.movementY?e.movementY:0;delete e._stageX,delete e._stageY,k(e,{srcElement:t,fromElement:n,toElement:i,screenX:g,screenY:w,pageX:h,pageY:f,clientX:p,clientY:m,x:p,y:m,movementX:v,movementY:b,offsetX:0,offsetY:0,layerX:0,layerY:0})}return e},be=function(e){var t=e&&"string"==typeof e.type&&e.type||"";return!/^(?:(?:before)?copy|destroy)$/.test(t)},Ce=function(e,t,n,o){o?d(function(){e.apply(t,n)},0):e.apply(t,n)},ye=function(e){if("object"==typeof e&&e&&e.type){var t=be(e),n=z["*"]||[],o=z[e.type]||[],i=n.concat(o);if(i&&i.length){var r,s,l,u,d,c=this;for(r=0,s=i.length;r<s;r++)l=i[r],u=c,"string"==typeof l&&"function"==typeof a[l]&&(l=a[l]),"object"==typeof l&&l&&"function"==typeof l.handleEvent&&(u=l,l=l.handleEvent),"function"==typeof l&&(d=k({},e),Ce(l,u,[d],t))}return this}},Ae=function(e){var t=null;return(F===!1||e&&"error"===e.type&&e.name&&X.indexOf(e.name)!==-1)&&(t=!1),t},_e=function(e){var t=e.target||r||null,n="swf"===e._source;switch(delete e._source,e.type){case"error":var o="flash-sandboxed"===e.name||Ae(e);"boolean"==typeof o&&(j.sandboxed=o),q.indexOf(e.name)!==-1?k(j,{disabled:"flash-disabled"===e.name,outdated:"flash-outdated"===e.name,unavailable:"flash-unavailable"===e.name,degraded:"flash-degraded"===e.name,deactivated:"flash-deactivated"===e.name,overdue:"flash-overdue"===e.name,ready:!1}):"version-mismatch"===e.name&&(i=e.swfVersion,k(j,{disabled:!1,outdated:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:!1,ready:!1})),ze();break;case"ready":i=e.swfVersion;var a=j.deactivated===!0;k(j,{disabled:!1,outdated:!1,sandboxed:!1,unavailable:!1,degraded:!1,deactivated:!1,overdue:a,ready:!a}),ze();break;case"beforecopy":s=t;break;case"copy":var l,u,d=e.relatedTarget;!Y["text/html"]&&!Y["text/plain"]&&d&&(u=d.value||d.outerHTML||d.innerHTML)&&(l=d.value||d.textContent||d.innerText)?(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",l),u!==l&&e.clipboardData.setData("text/html",u)):!Y["text/plain"]&&e.target&&(l=e.target.getAttribute("data-clipboard-text"))&&(e.clipboardData.clearData(),e.clipboardData.setData("text/plain",l));break;case"aftercopy":Ee(e),Xe.clearData(),t&&t!==Le()&&t.focus&&t.focus();break;case"_mouseover":Xe.focus(t),J.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!D(e.relatedTarget,t)&&Re(k({},e,{type:"mouseenter",bubbles:!1,cancelable:!1})),Re(k({},e,{type:"mouseover"})));break;case"_mouseout":Xe.blur(),J.bubbleEvents===!0&&n&&(t&&t!==e.relatedTarget&&!D(e.relatedTarget,t)&&Re(k({},e,{type:"mouseleave",bubbles:!1,cancelable:!1})),Re(k({},e,{type:"mouseout"})));break;case"_mousedown":We(t,J.activeClass),J.bubbleEvents===!0&&n&&Re(k({},e,{type:e.type.slice(1)}));break;case"_mouseup":Ie(t,J.activeClass),J.bubbleEvents===!0&&n&&Re(k({},e,{type:e.type.slice(1)}));break;case"_click":s=null,J.bubbleEvents===!0&&n&&Re(k({},e,{type:e.type.slice(1)}));break;case"_mousemove":J.bubbleEvents===!0&&n&&Re(k({},e,{type:e.type.slice(1)}))}if(/^_(?:click|mouse(?:over|out|down|up|move))$/.test(e.type))return!0},Ee=function(e){if(e.errors&&e.errors.length>0){var t=T(e);k(t,{type:"error",name:"clipboard-error"}),delete t.success,d(function(){Xe.emit(t)},0)}},Re=function(e){if(e&&"string"==typeof e.type&&e){var t,n=e.target||null,o=n&&n.ownerDocument||l,i={view:o.defaultView||a,canBubble:!0,cancelable:!0,detail:"click"===e.type?1:0,button:"number"==typeof e.which?e.which-1:"number"==typeof e.button?e.button:o.createEvent?0:1},r=k(i,e);n&&o.createEvent&&n.dispatchEvent&&(r=[r.type,r.canBubble,r.cancelable,r.view,r.detail,r.screenX,r.screenY,r.clientX,r.clientY,r.ctrlKey,r.altKey,r.shiftKey,r.metaKey,r.button,r.relatedTarget],t=o.createEvent("MouseEvents"),t.initMouseEvent&&(t.initMouseEvent.apply(t,r),t._source="js",n.dispatchEvent(t)))}},Se=function(){var e=J.flashLoadTimeout;if("number"==typeof e&&e>=0){var t=Math.min(1e3,e/10),n=J.swfObjectId+"_fallbackContent";$=h(function(){var e=l.getElementById(n);Ve(e)&&(ze(),j.deactivated=null,Xe.emit({type:"error",name:"swf-not-found"}))},t)}},Me=function(){var e=l.createElement("div");return e.id=J.containerId,e.className=J.containerClass,e.style.position="absolute",e.style.left="0px",e.style.top="-9999px",e.style.width="1px",e.style.height="1px",e.style.zIndex=""+Ge(J.zIndex),e},ke=function(e){for(var t=e&&e.parentNode;t&&"OBJECT"===t.nodeName&&t.parentNode;)t=t.parentNode;return t||null},Te=function(){var e,t=j.bridge,n=ke(t);if(!t){var o=Ne(a.location.host,J),i="never"===o?"none":"all",r=He(k({jsVersion:Xe.version},J)),s=J.swfPath+De(J.swfPath,J);n=Me();var u=l.createElement("div");n.appendChild(u),l.body.appendChild(n);var d=l.createElement("div"),c="activex"===j.pluginType;d.innerHTML='<object id="'+J.swfObjectId+'" name="'+J.swfObjectId+'" width="100%" height="100%" '+(c?'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"':'type="application/x-shockwave-flash" data="'+s+'"')+">"+(c?'<param name="movie" value="'+s+'"/>':"")+'<param name="allowScriptAccess" value="'+o+'"/><param name="allowNetworking" value="'+i+'"/><param name="menu" value="false"/><param name="wmode" value="transparent"/><param name="flashvars" value="'+r+'"/><div id="'+J.swfObjectId+'_fallbackContent">&nbsp;</div></object>',t=d.firstChild,d=null,S(t).ZeroClipboard=Xe,n.replaceChild(t,u),Se()}return t||(t=l[J.swfObjectId],t&&(e=t.length)&&(t=t[e-1]),!t&&n&&(t=n.firstChild)),j.bridge=t||null,t},xe=function(){var e=j.bridge;if(e){var t=ke(e);t&&("activex"===j.pluginType&&"readyState"in e?(e.style.display="none",function n(){if(4===e.readyState){for(var o in e)"function"==typeof e[o]&&(e[o]=null);e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t)}else d(n,10)}()):(e.parentNode&&e.parentNode.removeChild(e),t.parentNode&&t.parentNode.removeChild(t))),ze(),j.ready=null,j.bridge=null,j.deactivated=null,i=o}},Oe=function(e){var t={},n={};if("object"==typeof e&&e){for(var o in e)if(o&&E.call(e,o)&&"string"==typeof e[o]&&e[o])switch(o.toLowerCase()){case"text/plain":case"text":case"air:text":case"flash:text":t.text=e[o],n.text=o;break;case"text/html":case"html":case"air:html":case"flash:html":t.html=e[o],n.html=o;break;case"application/rtf":case"text/rtf":case"rtf":case"richtext":case"air:rtf":case"flash:rtf":t.rtf=e[o],n.rtf=o}return{data:t,formatMap:n}}},Be=function(e,t){if("object"!=typeof e||!e||"object"!=typeof t||!t)return e;var n={};for(var o in e)if(E.call(e,o))if("errors"===o){n[o]=e[o]?e[o].slice():[];for(var i=0,r=n[o].length;i<r;i++)n[o][i].format=t[n[o][i].format]}else if("success"!==o&&"data"!==o)n[o]=e[o];else{n[o]={};var s=e[o];for(var a in s)a&&E.call(s,a)&&E.call(t,a)&&(n[o][t[a]]=s[a])}return n},De=function(e,t){var n=null==t||t&&t.cacheBust===!0;return n?(e.indexOf("?")===-1?"?":"&")+"noCache="+y():""},He=function(e){var t,n,o,i,r="",s=[];if(e.trustedDomains&&("string"==typeof e.trustedDomains?i=[e.trustedDomains]:"object"==typeof e.trustedDomains&&"length"in e.trustedDomains&&(i=e.trustedDomains)),i&&i.length)for(t=0,n=i.length;t<n;t++)if(E.call(i,t)&&i[t]&&"string"==typeof i[t]){if(o=Pe(i[t]),!o)continue;if("*"===o){s.length=0,s.push(o);break}s.push.apply(s,[o,"//"+o,a.location.protocol+"//"+o])}return s.length&&(r+="trustedOrigins="+m(s.join(","))),e.forceEnhancedClipboard===!0&&(r+=(r?"&":"")+"forceEnhancedClipboard=true"),"string"==typeof e.swfObjectId&&e.swfObjectId&&(r+=(r?"&":"")+"swfObjectId="+m(e.swfObjectId)),"string"==typeof e.jsVersion&&e.jsVersion&&(r+=(r?"&":"")+"jsVersion="+m(e.jsVersion)),r},Pe=function(e){if(null==e||""===e)return null;if(e=e.replace(/^\s+|\s+$/g,""),""===e)return null;var t=e.indexOf("//");e=t===-1?e:e.slice(t+2);var n=e.indexOf("/");return e=n===-1?e:t===-1||0===n?null:e.slice(0,n),e&&".swf"===e.slice(-4).toLowerCase()?null:e||null},Ne=function(){var e=function(e){var t,n,o,i=[];if("string"==typeof e&&(e=[e]),"object"!=typeof e||!e||"number"!=typeof e.length)return i;for(t=0,n=e.length;t<n;t++)if(E.call(e,t)&&(o=Pe(e[t]))){if("*"===o){i.length=0,i.push("*");break}i.indexOf(o)===-1&&i.push(o)}return i};return function(t,n){var o=Pe(n.swfPath);null===o&&(o=t);var i=e(n.trustedDomains),r=i.length;if(r>0){if(1===r&&"*"===i[0])return"always";if(i.indexOf(t)!==-1)return 1===r&&t===o?"sameDomain":"always"}return"never"}}(),Le=function(){try{return l.activeElement}catch(e){return null}},We=function(e,t){var n,o,i,r=[];if("string"==typeof t&&t&&(r=t.split(/\s+/)),e&&1===e.nodeType&&r.length>0)if(e.classList)for(n=0,o=r.length;n<o;n++)e.classList.add(r[n]);else if(e.hasOwnProperty("className")){for(i=" "+e.className+" ",n=0,o=r.length;n<o;n++)i.indexOf(" "+r[n]+" ")===-1&&(i+=r[n]+" ");e.className=i.replace(/^\s+|\s+$/g,"")}return e},Ie=function(e,t){var n,o,i,r=[];if("string"==typeof t&&t&&(r=t.split(/\s+/)),e&&1===e.nodeType&&r.length>0)if(e.classList&&e.classList.length>0)for(n=0,o=r.length;n<o;n++)e.classList.remove(r[n]);else if(e.className){for(i=(" "+e.className+" ").replace(/[\r\n\t]/g," "),n=0,o=r.length;n<o;n++)i=i.replace(" "+r[n]+" "," ");e.className=i.replace(/^\s+|\s+$/g,"")}return e},Fe=function(e,t){var n=p(e,null).getPropertyValue(t);return"cursor"!==t||n&&"auto"!==n||"A"!==e.nodeName?n:"pointer"},je=function(e){var t={left:0,top:0,width:0,height:0};if(e.getBoundingClientRect){var n=e.getBoundingClientRect(),o=a.pageXOffset,i=a.pageYOffset,r=l.documentElement.clientLeft||0,s=l.documentElement.clientTop||0,u=0,d=0;if("relative"===Fe(l.body,"position")){var c=l.body.getBoundingClientRect(),h=l.documentElement.getBoundingClientRect();u=c.left-h.left||0,d=c.top-h.top||0}t.left=n.left+o-r-u,t.top=n.top+i-s-d,t.width="width"in n?n.width:n.right-n.left,t.height="height"in n?n.height:n.bottom-n.top}return t},Ve=function(e){if(!e)return!1;var t=p(e,null),n=b(t.height)>0,o=b(t.width)>0,i=b(t.top)>=0,r=b(t.left)>=0,s=n&&o&&i&&r,a=s?null:je(e),l="none"!==t.display&&"collapse"!==t.visibility&&(s||!!a&&(n||a.height>0)&&(o||a.width>0)&&(i||a.top>=0)&&(r||a.left>=0));return l},ze=function(){c(G),G=0,f($),$=0},Ye=function(){var e;if(r&&(e=ke(j.bridge))){var t=je(r);k(e.style,{width:t.width+"px",height:t.height+"px",top:t.top+"px",left:t.left+"px",zIndex:""+Ge(J.zIndex)})}},Ue=function(e){j.ready===!0&&(j.bridge&&"function"==typeof j.bridge.setHandCursor?j.bridge.setHandCursor(e):j.ready=!1)},Ge=function(e){if(/^(?:auto|inherit)$/.test(e))return e;var t;return"number"!=typeof e||C(e)?"string"==typeof e&&(t=Ge(v(e,10))):t=e,"number"==typeof t?t:"auto"},$e=function(e){var n,o,i,r=j.sandboxed,s=null;if(e=e===!0,F===!1)s=!1;else{try{o=t.frameElement||null}catch(e){i={name:e.name,message:e.message}}if(o&&1===o.nodeType&&"IFRAME"===o.nodeName)try{s=o.hasAttribute("sandbox")}catch(e){s=null}else{try{n=document.domain||null}catch(e){n=null}(null===n||i&&"SecurityError"===i.name&&/(^|[\s\(\[@])sandbox(es|ed|ing|[\s\.,!\)\]@]|$)/.test(i.message.toLowerCase()))&&(s=!0)}}return j.sandboxed=s,r===s||e||Ke(g),s},Ke=function(e){function t(e){var t=e.match(/[\d]+/g);return t.length=3,t.join(".")}function n(e){return!!e&&(e=e.toLowerCase())&&(/^(pepflashplayer\.dll|libpepflashplayer\.so|pepperflashplayer\.plugin)$/.test(e)||"chrome.plugin"===e.slice(-13))}function o(e){e&&(a=!0,e.version&&(c=t(e.version)),!c&&e.description&&(c=t(e.description)),e.filename&&(d=n(e.filename)))}var i,r,s,a=!1,l=!1,d=!1,c="";if(u.plugins&&u.plugins.length)i=u.plugins["Shockwave Flash"],o(i),u.plugins["Shockwave Flash 2.0"]&&(a=!0,c="2.0.0.11");else if(u.mimeTypes&&u.mimeTypes.length)s=u.mimeTypes["application/x-shockwave-flash"],i=s&&s.enabledPlugin,o(i);else if("undefined"!=typeof e){l=!0;try{r=new e("ShockwaveFlash.ShockwaveFlash.7"),a=!0,c=t(r.GetVariable("$version"))}catch(n){try{r=new e("ShockwaveFlash.ShockwaveFlash.6"),a=!0,c="6.0.21"}catch(n){try{r=new e("ShockwaveFlash.ShockwaveFlash"),a=!0,c=t(r.GetVariable("$version"))}catch(e){l=!1}}}}j.disabled=a!==!0,j.outdated=c&&b(c)<b(V),j.version=c||"0.0.0",j.pluginType=d?"pepper":l?"activex":a?"netscape":"unknown"};Ke(g),$e(!0);var Xe=function(){return this instanceof Xe?void("function"==typeof Xe._createClient&&Xe._createClient.apply(this,M(arguments))):new Xe};_(Xe,"version",{value:"2.2.0",writable:!1,configurable:!0,enumerable:!0}),Xe.config=function(){return ee.apply(this,M(arguments))},Xe.state=function(){return te.apply(this,M(arguments))},Xe.isFlashUnusable=function(){return ne.apply(this,M(arguments))},Xe.on=function(){return oe.apply(this,M(arguments))},Xe.off=function(){return ie.apply(this,M(arguments))},Xe.handlers=function(){return re.apply(this,M(arguments))},Xe.emit=function(){return se.apply(this,M(arguments))},Xe.create=function(){return ae.apply(this,M(arguments))},Xe.destroy=function(){return le.apply(this,M(arguments))},Xe.setData=function(){return ue.apply(this,M(arguments))},Xe.clearData=function(){return de.apply(this,M(arguments))},Xe.getData=function(){return ce.apply(this,M(arguments))},Xe.focus=Xe.activate=function(){return he.apply(this,M(arguments))},Xe.blur=Xe.deactivate=function(){return fe.apply(this,M(arguments))},Xe.activeElement=function(){return pe.apply(this,M(arguments))};var qe=0,Ze={},Qe=0,Je={},et={};k(J,{autoActivate:!0});var tt=function(e){var t=this;t.id=""+qe++,Ze[t.id]={instance:t,elements:[],handlers:{}},e&&t.clip(e),Xe.on("*",function(e){return t.emit(e)}),Xe.on("destroy",function(){t.destroy()}),Xe.create()},nt=function(e,t){var n,r,s,a={},l=Ze[this.id],u=l&&l.handlers;if(!l)throw new Error("Attempted to add new listener(s) to a destroyed ZeroClipboard client instance");if("string"==typeof e&&e)s=e.toLowerCase().split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)E.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&this.on(n,e[n]);if(s&&s.length){for(n=0,r=s.length;n<r;n++)e=s[n].replace(/^on/,""),a[e]=!0,u[e]||(u[e]=[]),u[e].push(t);if(a.ready&&j.ready&&this.emit({type:"ready",client:this}),a.error){for(n=0,r=q.length;n<r;n++)if(j[q[n].replace(/^flash-/,"")]){this.emit({type:"error",name:q[n],client:this});break}i!==o&&Xe.version!==i&&this.emit({type:"error",name:"version-mismatch",jsVersion:Xe.version,swfVersion:i})}}return this},ot=function(e,t){var n,o,i,r,s,a=Ze[this.id],l=a&&a.handlers;if(!l)return this;if(0===arguments.length)r=A(l);else if("string"==typeof e&&e)r=e.split(/\s+/);else if("object"==typeof e&&e&&"undefined"==typeof t)for(n in e)E.call(e,n)&&"string"==typeof n&&n&&"function"==typeof e[n]&&this.off(n,e[n]);if(r&&r.length)for(n=0,o=r.length;n<o;n++)if(e=r[n].toLowerCase().replace(/^on/,""),s=l[e],s&&s.length)if(t)for(i=s.indexOf(t);i!==-1;)s.splice(i,1),i=s.indexOf(t,i);else s.length=0;return this},it=function(e){var t=null,n=Ze[this.id]&&Ze[this.id].handlers;return n&&(t="string"==typeof e&&e?n[e]?n[e].slice(0):[]:T(n)),t},rt=function(e){if(dt.call(this,e)){"object"==typeof e&&e&&"string"==typeof e.type&&e.type&&(e=k({},e));var t=k({},ge(e),{client:this});ct.call(this,t)}return this},st=function(e){if(!Ze[this.id])throw new Error("Attempted to clip element(s) to a destroyed ZeroClipboard client instance");e=ht(e);for(var t=0;t<e.length;t++)if(E.call(e,t)&&e[t]&&1===e[t].nodeType){e[t].zcClippingId?Je[e[t].zcClippingId].indexOf(this.id)===-1&&Je[e[t].zcClippingId].push(this.id):(e[t].zcClippingId="zcClippingId_"+Qe++,Je[e[t].zcClippingId]=[this.id],J.autoActivate===!0&&ft(e[t]));var n=Ze[this.id]&&Ze[this.id].elements;n.indexOf(e[t])===-1&&n.push(e[t])}return this},at=function(e){var t=Ze[this.id];if(!t)return this;var n,o=t.elements;e="undefined"==typeof e?o.slice(0):ht(e);for(var i=e.length;i--;)if(E.call(e,i)&&e[i]&&1===e[i].nodeType){for(n=0;(n=o.indexOf(e[i],n))!==-1;)o.splice(n,1);var r=Je[e[i].zcClippingId];if(r){for(n=0;(n=r.indexOf(this.id,n))!==-1;)r.splice(n,1);0===r.length&&(J.autoActivate===!0&&pt(e[i]),delete e[i].zcClippingId)}}return this},lt=function(){var e=Ze[this.id];return e&&e.elements?e.elements.slice(0):[]},ut=function(){Ze[this.id]&&(this.unclip(),this.off(),delete Ze[this.id])},dt=function(e){if(!e||!e.type)return!1;if(e.client&&e.client!==this)return!1;var t=Ze[this.id],n=t&&t.elements,o=!!n&&n.length>0,i=!e.target||o&&n.indexOf(e.target)!==-1,r=e.relatedTarget&&o&&n.indexOf(e.relatedTarget)!==-1,s=e.client&&e.client===this;return!(!t||!(i||r||s))},ct=function(e){var t=Ze[this.id];if("object"==typeof e&&e&&e.type&&t){var n=be(e),o=t&&t.handlers["*"]||[],i=t&&t.handlers[e.type]||[],r=o.concat(i);if(r&&r.length){var s,l,u,d,c,h=this;for(s=0,l=r.length;s<l;s++)u=r[s],d=h,"string"==typeof u&&"function"==typeof a[u]&&(u=a[u]),"object"==typeof u&&u&&"function"==typeof u.handleEvent&&(d=u,u=u.handleEvent),"function"==typeof u&&(c=k({},e),Ce(u,d,[c],n))}}},ht=function(e){return"string"==typeof e&&(e=[]),"number"!=typeof e.length?[e]:e},ft=function(e){if(e&&1===e.nodeType){var t=function(e){(e||(e=a.event))&&("js"!==e._source&&(e.stopImmediatePropagation(),e.preventDefault()),delete e._source)},n=function(n){(n||(n=a.event))&&(t(n),Xe.focus(e))};e.addEventListener("mouseover",n,!1),e.addEventListener("mouseout",t,!1),e.addEventListener("mouseenter",t,!1),e.addEventListener("mouseleave",t,!1),e.addEventListener("mousemove",t,!1),et[e.zcClippingId]={mouseover:n,mouseout:t,mouseenter:t,mouseleave:t,mousemove:t}}},pt=function(e){if(e&&1===e.nodeType){var t=et[e.zcClippingId];if("object"==typeof t&&t){for(var n,o,i=["move","leave","enter","out","over"],r=0,s=i.length;r<s;r++)n="mouse"+i[r],o=t[n],"function"==typeof o&&e.removeEventListener(n,o,!1);delete et[e.zcClippingId]}}};Xe._createClient=function(){tt.apply(this,M(arguments))},Xe.prototype.on=function(){return nt.apply(this,M(arguments))},Xe.prototype.off=function(){return ot.apply(this,M(arguments))},Xe.prototype.handlers=function(){return it.apply(this,M(arguments))},Xe.prototype.emit=function(){return rt.apply(this,M(arguments))},Xe.prototype.clip=function(){return st.apply(this,M(arguments))},Xe.prototype.unclip=function(){return at.apply(this,M(arguments))},Xe.prototype.elements=function(){return lt.apply(this,M(arguments))},Xe.prototype.destroy=function(){return ut.apply(this,M(arguments))},Xe.prototype.setText=function(e){if(!Ze[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Xe.setData("text/plain",e),this},Xe.prototype.setHtml=function(e){if(!Ze[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Xe.setData("text/html",e),this},Xe.prototype.setRichText=function(e){if(!Ze[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Xe.setData("application/rtf",e),this},Xe.prototype.setData=function(){if(!Ze[this.id])throw new Error("Attempted to set pending clipboard data from a destroyed ZeroClipboard client instance");return Xe.setData.apply(this,M(arguments)),this},Xe.prototype.clearData=function(){if(!Ze[this.id])throw new Error("Attempted to clear pending clipboard data from a destroyed ZeroClipboard client instance");return Xe.clearData.apply(this,M(arguments)),this},Xe.prototype.getData=function(){if(!Ze[this.id])throw new Error("Attempted to get pending clipboard data from a destroyed ZeroClipboard client instance");return Xe.getData.apply(this,M(arguments))},"function"==typeof e&&e.amd?e(function(){return Xe}):"object"==typeof n&&n&&"object"==typeof n.exports&&n.exports?n.exports=Xe:t.ZeroClipboard=Xe}(function(){return this||window}())},{}]},{},[24,63,65,64,66,103,104,105,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,98,99,100,101,102,106,107,108,109,123,124,125,126,112,113,114,115,116,117,32,36,33,34,41,35,37,38,39,40])(24)})}).call(t,n(19),n(16))},741:function(e,t,n){n(669);var o=n(1)(n(597),n(761),null,null);e.exports=o.exports},761:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"handsontable"})},staticRenderFns:[]}},780:function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"tile is-ancestor"},[n("div",{staticClass:"tile is-parent"},[n("article",{staticClass:"tile is-child box"},[n("h1",[e._v("Data grid")]),e._v(" "),n("handsontable",{attrs:{data:e.rawData,settings:{}}}),e._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:e.test,expression:"test"}],attrs:{type:"text"},domProps:{value:e._s(e.test)},on:{input:[function(t){t.target.composing||(e.test=t.target.value)},function(t){e.testFunction()}]}}),e._v(" "),n("ul",{attrs:{id:"example-1"}},e._l(e.users,function(t,o){return n("li",[n("input",{directives:[{name:"model",rawName:"v-model",value:e.users[o].name,expression:"users[index].name"}],staticClass:"input",attrs:{type:"text"},domProps:{value:e._s(e.users[o].name)},on:{input:[function(t){t.target.composing||(e.users[o].name=t.target.value)},function(t){e.testFunction(o)}]}})])})),e._v(" "),n("div",{on:{click:function(t){e.openModalBasic()}}},[e._v(e._s(e.global.apiUrl))])],1)])]),e._v(" "),n("modal",{attrs:{visible:e.showModal},on:{close:e.closeModalBasic}})],1)},staticRenderFns:[]}}});
  //# sourceMappingURL=5.c608555ffdbfdd44fda6.js.map