/*! * (The MIT License) * * Copyright (c) 2012-2014 Marcin Warpechowski * Copyright (c) 2015 Handsoncode sp. z o.o. * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * 'Software'), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * * Version: 0.32.0 * Date: Tue May 30 2017 12:18:39 GMT+0200 (CEST) */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Handsontable",[],t):"object"==typeof exports?exports.Handsontable=t():e.Handsontable=t()}(this,function(){return function(e){function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=309)}([function(e,t,n){"use strict";function o(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,o=null;null!=e;){if(n===t){o=e;break}e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e=e.host:(n++,e=e.parentNode)}return o}function r(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 o=[];e&&(e=r(e,t,n))&&(!n||n.contains(e));)o.push(e),e=e.host&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.host:e.parentNode;var i=o.length;return i?o[i-1]:null}function s(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 a(e){function t(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName===o.toUpperCase()}var n,o="hot-table",r=!1;for(n=l(e);null!=n;){if(t(n)){r=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(r=t(n.host))break;n=n.host}n=n.parentNode}return r}function l(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function u(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function c(e){var t=0;if(e.previousSibling)for(;e=e.previousSibling;)++t;return t}function h(e,t){var n=document.querySelector(".ht_clone_"+e);return n?n.contains(t):null}function d(e){var t=0,n=[];if(!e||!e.length)return n;for(;e[t];)n.push(e[t]),t++;return n}function f(e,t){return q(e,t)}function p(e,t){return $(e,t)}function g(e,t){return Z(e,t)}function v(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--)v(n[o],e)}function m(e){for(var t;t=e.lastChild;)e.removeChild(t)}function y(e,t){re.test(t)?e.innerHTML=t:w(e,t)}function w(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?ie?n.textContent=t:n.data=t:(m(e),e.appendChild(document.createTextNode(t)))}function b(e){for(var t=e;u(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 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,r,i;if(r=document.documentElement,(0,Q.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName)return i=e.getBoundingClientRect(),{top:i.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||0),left:i.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)};for(t=e.offsetLeft,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||r.scrollLeft,n+=window.pageYOffset||r.scrollTop),{left:t,top:n}}function S(){var e=window.scrollY;return void 0===e&&(e=document.documentElement.scrollTop),e}function E(){var e=window.scrollX;return void 0===e&&(e=document.documentElement.scrollLeft),e}function O(e){return e===window?S():e.scrollTop}function _(e){return e===window?E():e.scrollLeft}function R(e){for(var t,n,o,r=e.parentNode,i=["auto","scroll"],s="",a="",l="",u="";r&&r.style&&document.body!==r;){if(t=r.style.overflow,n=r.style.overflowX,o=r.style.overflowY,"scroll"==t||"scroll"==n||"scroll"==o)return r;if(window.getComputedStyle&&(s=window.getComputedStyle(r),a=s.getPropertyValue("overflow"),l=s.getPropertyValue("overflow-y"),u=s.getPropertyValue("overflow-x"),"scroll"===a||"scroll"===u||"scroll"===l))return r;if(r.scrollHeight>=r.clientHeight&&(-1!==i.indexOf(o)||-1!==i.indexOf(t)||-1!==i.indexOf(a)||-1!==i.indexOf(l)))return r;if(r.scrollWidth>=r.clientWidth&&(-1!==i.indexOf(n)||-1!==i.indexOf(t)||-1!==i.indexOf(a)||-1!==i.indexOf(u)))return r;r=r.parentNode}return window}function k(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 T(e,t){if(e){if(e!==window){var n,o=e.style[t];return""!==o&&void 0!==o?o:(n=M(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 M(e){return e.currentStyle||document.defaultView.getComputedStyle(e)}function x(e){return e.offsetWidth}function P(e){return(0,Q.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function H(e){return e.clientHeight||e.innerHeight}function A(e){return e.clientWidth||e.innerWidth}function D(e,t,n){window.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)}function N(e,t,n){window.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)}function L(e){if(e.selectionStart)return e.selectionStart;if(document.selection){e.focus();var t=document.selection.createRange();if(null==t)return 0;var n=e.createTextRange(),o=n.duplicate();return n.moveToBookmark(t.getBookmark()),o.setEndPoint("EndToStart",n),o.text.length}return 0}function I(e){if(e.selectionEnd)return e.selectionEnd;if(document.selection){var t=document.selection.createRange();if(null==t)return 0;return e.createTextRange().text.indexOf(t.text)+t.text.length}return 0}function j(){var e="";return window.getSelection?e=""+window.getSelection():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(i){var o=e.parentNode,r=o.style.display;o.style.display="block",e.setSelectionRange(t,n),o.style.display=r}}else if(e.createTextRange){var i=e.createTextRange();i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",t),i.select()}}function F(){var e=document.createElement("div");e.style.height="200px",e.style.width="100%";var t=document.createElement("div");t.style.boxSizing="content-box",t.style.height="150px",t.style.left="0px",t.style.overflow="hidden",t.style.position="absolute",t.style.top="0px",t.style.width="200px",t.style.visibility="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 V(){return void 0===oe&&(oe=F()),oe}function B(e){return e.offsetWidth!==e.clientWidth}function Y(e){return e.offsetHeight!==e.clientHeight}function z(e,t,n){(0,J.isIE8)()||(0,J.isIE9)()?(e.style.top=n,e.style.left=t):(0,J.isSafari)()?e.style["-webkit-transform"]="translate3d("+t+","+n+",0)":e.style.transform="translate3d("+t+","+n+",0)"}function U(e){var t;return e.style.transform&&""!==(t=e.style.transform)?["transform",t]:e.style["-webkit-transform"]&&""!==(t=e.style["-webkit-transform"])?["-webkit-transform",t]:-1}function K(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 X(e){return G(e)&&-1==e.className.indexOf("handsontableInput")&&-1==e.className.indexOf("copyPaste")}t.__esModule=!0,t.HTML_CHARACTERS=void 0,t.getParent=o,t.closest=r,t.closestDown=i,t.isChildOf=s,t.isChildOfWebComponentTable=a,t.polymerWrap=l,t.polymerUnwrap=u,t.index=c,t.overlayContainsElement=h,t.hasClass=f,t.addClass=p,t.removeClass=g,t.removeTextNodes=v,t.empty=m,t.fastInnerHTML=y,t.fastInnerText=w,t.isVisible=b,t.offset=C,t.getWindowScrollTop=S,t.getWindowScrollLeft=E,t.getScrollTop=O,t.getScrollLeft=_,t.getScrollableElement=R,t.getTrimmingContainer=k,t.getStyle=T,t.getComputedStyle=M,t.outerWidth=x,t.outerHeight=P,t.innerHeight=H,t.innerWidth=A,t.addEvent=D,t.removeEvent=N,t.getCaretPosition=L,t.getSelectionEndPosition=I,t.getSelectionText=j,t.setCaretPosition=W,t.getScrollbarWidth=V,t.hasVerticalScrollbar=B,t.hasHorizontalScrollbar=Y,t.setOverlayPosition=z,t.getCssTransform=U,t.resetCssTransform=K,t.isInput=G,t.isOutsideInput=X;var q,$,Z,J=n(25),Q=n(34),ee=!!document.documentElement.classList;if(ee){var te=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)},$=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.add.apply(e.classList,t);else for(;t&&t[n];)e.classList.add(t[n]),n++},Z=function(e,t){var n=0;if("string"==typeof t&&(t=t.split(" ")),t=d(t),te)e.classList.remove.apply(e.classList,t);else for(;t&&t[n];)e.classList.remove(t[n]),n++}}else{var ne=function(e){return RegExp("(\\s|^)"+e+"(\\s|$)")};q=function(e,t){return!!e.className.match(ne(t))},$=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];)ne(t[n]).test(o)||(o+=" "+t[n]),n++;e.className=o},Z=function(e,t){var n=0,o=e.className;for("string"==typeof t&&(t=t.split(" "));t&&t[n];)o=o.replace(ne(t[n])," ").trim(),n++;e.className!==o&&(e.className=o)}}var oe,re=t.HTML_CHARACTERS=/(<(.*)>|&(.*);)/,ie=!!document.createTextNode("test").textContent},function(e,t,n){"use strict";function o(e){for(var t=0,n=e.length;n>t;)e[t]=[e[t]],t++}function r(e,t){for(var n=0,o=t.length;o>n;)e.push(t[n]),n++}function i(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,r=0;n>r;r++)for(var i=0;o>i;i++)t[i]||(t[i]=[]),t[i][r]=e[r][i];return t}function s(e,t,n,o){var r=-1,i=e.length;for(o&&i&&(n=e[++r]);++rt?e:t},Array.isArray(e)?e[0]:void 0)}function d(e){return s(e,function(e,t){return t>e?e:t},Array.isArray(e)?e[0]:void 0)}function f(e){return e.length?c(e)/e.length:0}function p(e){return s(e,function(e,t){return e.concat(Array.isArray(t)?p(t):t)},[])}function g(e){var t=[];return u(e,function(e){-1===t.indexOf(e)&&t.push(e)}),t}t.__esModule=!0,t.to2dArray=o,t.extendArray=r,t.pivot=i,t.arrayReduce=s,t.arrayFilter=a,t.arrayMap=l,t.arrayEach=u,t.arraySum=c,t.arrayMax=h,t.arrayMin=d,t.arrayAvg=f,t.arrayFlatten=p,t.arrayUnique=g},function(e,t,n){"use strict";function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){var t;return Array.isArray(e)?t=[]:(t={},p(e,function(e,n){"__children"!==n&&(t[n]=e&&"object"===(void 0===e?"undefined":w(e))&&!Array.isArray(e)?r(e):Array.isArray(e)?e.length&&"object"===w(e[0])&&!Array.isArray(e[0])?[r(e[0])]:[]:null)})),t}function i(e,t){return t.prototype.constructor=t,e.prototype=new t,e.prototype.constructor=e,e}function s(e,t){return p(t,function(t,n){e[n]=t}),e}function a(e,t){p(t,function(n,o){t[o]&&"object"===w(t[o])?(e[o]||(e[o]=Array.isArray(t[o])?[]:"[object Date]"===Object.prototype.toString.call(t[o])?t[o]:{}),a(e[o],t[o])):e[o]=t[o]})}function l(e){return"object"===(void 0===e?"undefined":w(e))?JSON.parse(JSON.stringify(e)):e}function u(e){var t={};return p(e,function(e,n){t[n]=e}),t}function c(e){e.MIXINS||(e.MIXINS=[]);for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return(0,b.arrayEach)(n,function(t){e.MIXINS.push(t.MIXIN_NAME),p(t,function(t,n){if(void 0!==e.prototype[n])throw Error("Mixin conflict. Property '"+n+"' already exist and cannot be overwritten.");if("function"==typeof t)e.prototype[n]=t;else{Object.defineProperty(e.prototype,n,{get:function(e,t){e="_"+e;var n=function(e){return(Array.isArray(e)||d(e))&&(e=l(e)),e};return function(){return void 0===this[e]&&(this[e]=n(t)),this[e]}}(n,t),set:function(e){return e="_"+e,function(t){this[e]=t}}(n),configurable:!0})}})}),e}function h(e,t){return JSON.stringify(e)===JSON.stringify(t)}function d(e){return"[object Object]"==Object.prototype.toString.call(e)}function f(e,t,n,o){o.value=n,o.writable=!1!==o.writable,o.enumerable=!1!==o.enumerable,o.configurable=!1!==o.configurable,Object.defineProperty(e,t,o)}function p(e,t){for(var n in e)if((!e.hasOwnProperty||e.hasOwnProperty&&Object.prototype.hasOwnProperty.call(e,n))&&!1===t(e[n],n,e))break;return e}function g(e,t){var n=t.split("."),o=e;return p(n,function(e){if(void 0===(o=o[e]))return o=void 0,!1}),o}function v(e){if(!d(e))return 0;return function e(t){var n=0;return d(t)?p(t,function(t){n+=e(t)}):n++,n}(e)}function m(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",r="_"+n,i=(t={_touched:!1},o(t,r,e),o(t,"isTouched",function(){return this._touched}),t);return Object.defineProperty(i,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),i}function y(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.__esModule=!0;var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.duckSchema=r,t.inherit=i,t.extend=s,t.deepExtend=a,t.deepClone=l,t.clone=u,t.mixin=c,t.isObjectEquals=h,t.isObject=d,t.defineGetter=f,t.objectEach=p,t.getProperty=g,t.deepObjectSize=v,t.createObjectPropListener=m,t.hasOwnProperty=y;var b=n(1)},function(e,t,n){var o=n(13),r=n(45),i=n(32),s=n(33),a=n(29),l=function(e,t,n){var u,c,h,d,f=e&l.F,p=e&l.G,g=e&l.S,v=e&l.P,m=e&l.B,y=p?o:g?o[t]||(o[t]={}):(o[t]||{}).prototype,w=p?r:r[t]||(r[t]={}),b=w.prototype||(w.prototype={});p&&(n=t);for(u in n)c=!f&&y&&void 0!==y[u],h=(c?y:n)[u],d=m&&c?a(h,o):v&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,e&l.U),w[u]!=h&&i(w,u,d),v&&b[u]!=h&&(b[u]=h)};o.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){var n=void 0,o=void 0,r=void 0,i=void 0,s=void 0,c=void 0;if(t.isTargetWebComponent=!1,t.realTarget=t.target,c=t.stopImmediatePropagation,t.stopImmediatePropagation=function(){c.apply(this),(0,u.stopImmediatePropagation)(this)},!h.isHotTableEnv)return t;for(t=(0,a.polymerWrap)(t),s=t.path?t.path.length:0;s--;){if("HOT-TABLE"===t.path[s].nodeName)n=!0;else if(n&&t.path[s].shadowRoot){i=t.path[s];break}0!==s||i||(i=t.path[s])}return i||(i=t.target),t.isTargetWebComponent=!0,(0,l.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:(e instanceof Core||e instanceof Walkontable)&&(e instanceof Core?o=e.view?e.view.wt.wtTable.TABLE:null:e instanceof Walkontable&&(o=e.wtTable.TABLE.parentNode.parentNode),r=(0,a.closest)(t.target,["HOT-TABLE"],o),t.realTarget=r?o.querySelector("HOT-TABLE")||t.target:t.target),Object.defineProperty(t,"target",{get:function(){return(0,a.polymerWrap)(i)},enumerable:!0,configurable:!0}),t}function i(){return c}t.__esModule=!0;var s=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.getListenersCounter=i;var a=n(0),l=n(34),u=n(7),c=0,h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;o(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}return s(e,[{key:"addEventListener",value:function(e,t,n){function o(e){e=r(s,e),n.call(this,e)}var i=this,s=this.context;return this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:o}),window.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o),c++,function(){i.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var o=this.context.eventListeners.length,r=void 0;o--;)if(r=this.context.eventListeners[o],r.event==t&&r.element==e){if(n&&n!=r.callback)continue;this.context.eventListeners.splice(o,1),r.element.removeEventListener?r.element.removeEventListener(r.event,r.callbackProxy,!1):r.element.detachEvent("on"+r.event,r.callbackProxy),c--}}},{key:"clearEvents",value: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)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"fireEvent",value: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)}}]),e}();t.default=h},function(e,t,n){"use strict";function o(e,t){e=(0,c.toUpperCaseFirst)(e),l.default.getSingleton().add("construct",function(){var n=void 0;h.has(this)||h.set(this,{}),n=h.get(this),n[e]||(n[e]=new t(this))}),l.default.getSingleton().add("afterDestroy",function(){if(h.has(this)){var e=h.get(this);(0,u.objectEach)(e,function(e){return e.destroy()}),h.delete(this)}})}function r(e,t){if("string"!=typeof t)throw Error('Only strings can be passed as "plugin" parameter');var n=(0,c.toUpperCaseFirst)(t);if(h.has(e)&&h.get(e)[n])return h.get(e)[n]}function i(e){return h.has(e)?Object.keys(h.get(e)):[]}function s(e,t){var n=null;return h.has(e)&&(0,u.objectEach)(h.get(e),function(e,o){e===t&&(n=o)}),n}t.__esModule=!0,t.getPluginName=t.getRegistredPluginNames=t.getPlugin=t.registerPlugin=void 0;var a=n(8),l=function(e){return e&&e.__esModule?e:{default:e}}(a),u=n(2),c=n(27),h=new WeakMap;t.registerPlugin=o,t.getPlugin=r,t.getRegistredPluginNames=i,t.getPluginName=s},function(e,t,n){"use strict";function o(e){var t=void 0===e?"undefined":a(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 r(e,t,n){var o=-1;for("function"==typeof t?(n=t,t=e):o=e-1;++o<=t&&!1!==n(o););}function i(e,t,n){var o=e+1;for("function"==typeof t&&(n=t,t=0);--o>=t&&!1!==n(o););}function s(e,t){return t=parseInt((""+t).replace("%",""),10),t=parseInt(e*t/100,10)}t.__esModule=!0;var a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.isNumeric=o,t.rangeEach=r,t.rangeEachReverse=i,t.valueAccordingPercent=s},function(e,t,n){"use strict";function o(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function r(e){return!1===e.isImmediatePropagationEnabled}function i(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){return e.pageX?e.pageX:e.clientX+(0,c.getWindowScrollLeft)()}function a(e){return e.pageY?e.pageY:e.clientY+(0,c.getWindowScrollTop)()}function l(e){return 2===e.button}function u(e){return 0===e.button}t.__esModule=!0,t.stopImmediatePropagation=o,t.isImmediatePropagationStopped=r,t.stopPropagation=i,t.pageX=s,t.pageY=a,t.isRightClick=l,t.isLeftClick=u;var c=n(0)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(1),s=n(2),a=["afterCellMetaReset","afterChange","afterChangesObserved","afterContextMenuDefaultOptions","beforeContextMenuSetItems","afterDropdownMenuDefaultOptions","beforeDropdownMenuSetItems","afterContextMenuHide","afterContextMenuShow","afterCopyLimit","beforeCreateCol","afterCreateCol","beforeCreateRow","afterCreateRow","afterDeselect","afterDestroy","afterDocumentKeyDown","afterGetCellMeta","afterGetColHeader","afterGetRowHeader","afterInit","afterLoadData","afterMomentumScroll","afterOnCellCornerMouseDown","afterOnCellCornerDblClick","afterOnCellMouseDown","afterOnCellMouseOver","afterOnCellMouseOut","afterRemoveCol","afterRemoveRow","afterRender","beforeRenderer","afterRenderer","afterScrollHorizontally","afterScrollVertically","afterSelection","afterSelectionByProp","afterSelectionEnd","afterSelectionEndByProp","afterSetCellMeta","afterSetDataAtCell","afterSetDataAtRowProp","afterUpdateSettings","afterValidate","beforeAutofill","beforeCellAlignment","beforeChange","beforeChangeRender","beforeDrawBorders","beforeGetCellMeta","beforeInit","beforeInitWalkontable","beforeKeyDown","beforeOnCellMouseDown","beforeOnCellMouseOver","beforeOnCellMouseOut","beforeRemoveCol","beforeRemoveRow","beforeRender","beforeSetRangeStart","beforeSetRangeEnd","beforeTouchScroll","beforeValidate","beforeValueRender","construct","init","modifyCol","unmodifyCol","unmodifyRow","modifyColHeader","modifyColWidth","modifyRow","modifyRowHeader","modifyRowHeight","modifyData","modifyRowData","persistentStateLoad","persistentStateReset","persistentStateSave","beforeColumnSort","afterColumnSort","modifyAutofillRange","modifyCopyableRange","beforeCut","afterCut","beforeCopy","afterCopy","beforePaste","afterPaste","beforeColumnMove","afterColumnMove","beforeRowMove","afterRowMove","beforeColumnResize","afterColumnResize","beforeRowResize","afterRowResize","afterGetColumnHeaderRenderers","afterGetRowHeaderRenderers","beforeStretchingColumnWidth","beforeFilter","afterFilter","modifyColumnHeaderHeight","beforeUndo","afterUndo","beforeRedo","afterRedo","modifyRowHeaderWidth","beforeAutofillInsidePopulate","modifyTransformStart","modifyTransformEnd","afterModifyTransformStart","afterModifyTransformEnd","beforeValueRender","afterViewportRowCalculatorOverride","afterViewportColumnCalculatorOverride","afterPluginsInitialized","manualRowHeights","skipLengthCache","afterTrimRow","afterUntrimRow","afterDropdownMenuShow","afterDropdownMenuHide","hiddenRow","hiddenColumn","beforeAddChild","afterAddChild","beforeDetachChild","afterDetachChild","afterBeginEditing"],l=function(){function e(){o(this,e),this.globalBucket=this.createEmptyBucket()}return r(e,null,[{key:"getSingleton",value:function(){return u}}]),r(e,[{key:"createEmptyBucket",value:function(){var e=Object.create(null);return(0,i.arrayEach)(a,function(t){return e[t]=[]}),e}},{key:"getBucket",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}},{key:"add",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))(0,i.arrayEach)(t,function(t){return n.add(e,t,o)});else{var r=this.getBucket(o);if(void 0===r[e]&&(this.register(e),r[e]=[]),t.skip=!1,-1===r[e].indexOf(t)){var s=!1;t.initialHook&&(0,i.arrayEach)(r[e],function(n,o){if(n.initialHook)return r[e][o]=t,s=!0,!1}),s||r[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?(0,i.arrayEach)(t,function(t){return n.once(e,t,o)}):(t.runOnce=!0,this.add(e,t,o))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=this.getBucket(n);return void 0!==o[e]&&o[e].indexOf(t)>=0&&(t.skip=!0,!0)}},{key:"has",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.getBucket(t);return!(void 0===n[e]||!n[e].length)}},{key:"run",value:function(e,t,n,o,r,i,s,a){var l=this.globalBucket[t],u=-1,c=l?l.length:0;if(c)for(;++u0&&void 0!==arguments[0]?arguments[0]:null),function(e,t,n){return n[t].length=0})}},{key:"register",value:function(e){this.isRegistered(e)||a.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&a.splice(a.indexOf(e),1)}},{key:"isRegistered",value:function(e){return a.indexOf(e)>=0}},{key:"getRegistered",value:function(){return a}}]),e}(),u=new l;t.default=l},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if("function"==typeof e)return e;if(!O(e))throw Error('No registered renderer found under "'+e+'" name');return E(e)}t.__esModule=!0,t.getRegisteredRenderers=t.getRegisteredRendererNames=t.hasRenderer=t.getRenderer=t.registerRenderer=void 0;var i=n(53),s=o(i),a=n(360),l=o(a),u=n(361),c=o(u),h=n(362),d=o(h),f=n(363),p=o(f),g=n(364),v=o(g),m=n(365),y=o(m),w=n(366),b=o(w),C=(0,s.default)("renderers"),S=C.register,E=C.getItem,O=C.hasItem,_=C.getNames,R=C.getValues;S("base",l.default),S("autocomplete",c.default),S("checkbox",d.default),S("html",p.default),S("numeric",v.default),S("password",y.default),S("text",b.default),t.registerRenderer=S,t.getRenderer=r,t.hasRenderer=O,t.getRegisteredRendererNames=_,t.getRegisteredRenderers=R},function(e,t,n){var o=n(83)("wks"),r=n(50),i=n(13).Symbol,s="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=s&&i[e]||(s?i:r)("Symbol."+e))}).store=o},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.Viewport=t.TableRenderer=t.Table=t.Settings=t.Selection=t.Scroll=t.Overlays=t.Event=t.Core=t.default=t.Border=t.TopLeftCornerOverlay=t.TopOverlay=t.LeftOverlay=t.DebugOverlay=t.RowFilter=t.ColumnFilter=t.CellRange=t.CellCoords=t.ViewportRowsCalculator=t.ViewportColumnsCalculator=void 0,n(96),n(113),n(122),n(123),n(107),n(121),n(104),n(105),n(106),n(95),n(118),n(116),n(114),n(119),n(120),n(115),n(117),n(108),n(109),n(110),n(112),n(111),n(93),n(94),n(89),n(92),n(91),n(90),n(69),n(98),n(99),n(101),n(100),n(97),n(103),n(102),n(124),n(127),n(125),n(126),n(129),n(128),n(131),n(130);var r=n(235),i=o(r),s=n(236),a=o(s),l=n(43),u=o(l),c=n(70),h=o(c),d=n(239),f=o(d),p=n(240),g=o(p),v=n(285),m=o(v),y=n(286),w=o(y),b=n(287),C=o(b),S=n(288),E=o(S),O=n(234),_=o(O),R=n(237),k=o(R),T=n(238),M=o(T),x=n(241),P=o(x),H=n(242),A=o(H),D=n(289),N=o(D),L=n(243),I=o(L),j=n(244),W=o(j),F=n(245),V=o(F),B=n(246),Y=o(B);t.ViewportColumnsCalculator=i.default,t.ViewportRowsCalculator=a.default,t.CellCoords=u.default,t.CellRange=h.default,t.ColumnFilter=f.default,t.RowFilter=g.default,t.DebugOverlay=m.default,t.LeftOverlay=w.default,t.TopOverlay=C.default,t.TopLeftCornerOverlay=E.default,t.Border=_.default,t.default=k.default,t.Core=k.default,t.Event=M.default,t.Overlays=P.default,t.Scroll=A.default,t.Selection=N.default,t.Settings=I.default,t.Table=W.default,t.TableRenderer=V.default,t.Viewport=Y.default},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(2),s=n(1),a=n(253),l=n(5),u=new WeakMap,c=null;t.default=function(){function e(t){var n=this;o(this,e),(0,i.defineGetter)(this,"hot",t,{writable:!1}),(0,i.defineGetter)(this,"t",(0,a.getTranslator)(t),{writable:!1}),u.set(this,{hooks:{}}),c=null,this.pluginName=null,this.pluginsInitializedCallbacks=[],this.isPluginsReady=!1,this.enabled=!1,this.initialized=!1,this.hot.addHook("afterPluginsInitialized",function(){return n.onAfterPluginsInitialized()}),this.hot.addHook("afterUpdateSettings",function(){return n.onUpdateSettings()}),this.hot.addHook("beforeInit",function(){return n.init()})}return r(e,[{key:"init",value:function(){this.pluginName=(0,l.getPluginName)(this.hot,this),this.isEnabled&&this.isEnabled()&&this.enablePlugin(),c||(c=(0,l.getRegistredPluginNames)(this.hot)),0>c.indexOf(this.pluginName)||c.splice(c.indexOf(this.pluginName),1),c.length||this.hot.runHooks("afterPluginsInitialized"),this.initialized=!0}},{key:"enablePlugin",value:function(){this.enabled=!0}},{key:"disablePlugin",value:function(){this.eventManager&&this.eventManager.clear(),this.clearHooks(),this.enabled=!1}},{key:"addHook",value:function(e,t){u.get(this).hooks[e]=u.get(this).hooks[e]||[];var n=u.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),u.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;(0,s.arrayEach)(u.get(this).hooks[e]||[],function(n){t.hot.removeHook(e,n)})}},{key:"clearHooks",value:function(){var e=this,t=u.get(this).hooks;(0,i.objectEach)(t,function(t,n){return e.removeHooks(n)}),t.length=0}},{key:"callOnPluginsReady",value:function(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}},{key:"onAfterPluginsInitialized",value:function(){(0,s.arrayEach)(this.pluginsInitializedCallbacks,function(e){return e()}),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}},{key:"onUpdateSettings",value:function(){this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&this.updatePlugin())}},{key:"updatePlugin",value:function(){}},{key:"destroy",value:function(){var e=this;this.eventManager&&this.eventManager.destroy(),this.clearHooks(),(0,i.objectEach)(this,function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)}),delete this.t,delete this.hot}}]),e}()},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){var t={},n=e;this.getConstructor=function(){return e},this.getInstance=function(e){return e.guid in t||(t[e.guid]=new n(e)),t[e.guid]},h.default.getSingleton().add("afterDestroy",function(){t={}})}function i(e,t){var n=void 0;if("function"==typeof e)D.get(e)||a(null,e),n=D.get(e);else{if("string"!=typeof e)throw Error('Only strings and functions can be passed as "editor" parameter');n=I(e)}if(!n)throw Error('No editor registered under name "'+e+'"');return n.getInstance(t)}function s(e){if(!j(e))throw Error('No registered editor found under "'+e+'" name');return I(e).getConstructor()}function a(e,t){var n=new r(t);"string"==typeof e&&L(e,n),D.set(t,n)}t.__esModule=!0,t.getRegisteredEditors=t.getRegisteredEditorNames=t.hasEditor=t.getEditorInstance=t.getEditor=t.registerEditor=void 0,t.RegisteredEditor=r,t._getEditorInstance=i;var l=n(53),u=o(l),c=n(8),h=o(c),d=n(37),f=o(d),p=n(247),g=o(p),v=n(302),m=o(v),y=n(303),w=o(y),b=n(304),C=o(b),S=n(248),E=o(S),O=n(305),_=o(O),R=n(306),k=o(R),T=n(307),M=o(T),x=n(308),P=o(x),H=n(44),A=o(H),D=new WeakMap,N=(0,u.default)("editors"),L=N.register,I=N.getItem,j=N.hasItem,W=N.getNames,F=N.getValues;a("base",f.default),a("autocomplete",g.default),a("checkbox",m.default),a("date",w.default),a("dropdown",C.default),a("handsontable",E.default),a("mobile",_.default),a("numeric",k.default),a("password",M.default),a("select",P.default),a("text",A.default),t.registerEditor=a,t.getEditor=s,t.getEditorInstance=i,t.hasEditor=j,t.getRegisteredEditorNames=W,t.getRegisteredEditors=F},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";function o(e){return 32==e||e>=48&&57>=e||e>=96&&111>=e||e>=186&&192>=e||e>=219&&222>=e||e>=226||e>=65&&90>=e}function r(e){return-1!==[l.ARROW_DOWN,l.ARROW_UP,l.ARROW_LEFT,l.ARROW_RIGHT,l.HOME,l.END,l.DELETE,l.BACKSPACE,l.F1,l.F2,l.F3,l.F4,l.F5,l.F6,l.F7,l.F8,l.F9,l.F10,l.F11,l.F12,l.TAB,l.PAGE_DOWN,l.PAGE_UP,l.ENTER,l.ESCAPE,l.SHIFT,l.CAPS_LOCK,l.ALT].indexOf(e)}function i(e){return-1!==[l.CONTROL_LEFT,224,l.COMMAND_LEFT,l.COMMAND_RIGHT].indexOf(e)}function s(e,t){var n=t.split("|"),o=!1;return(0,a.arrayEach)(n,function(t){if(e===l[t])return o=!0,!1}),o}t.__esModule=!0,t.KEY_CODES=void 0,t.isPrintableChar=o,t.isMetaKey=r,t.isCtrlKey=i,t.isKey=s;var a=n(1),l=t.KEY_CODES={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}},function(e,t,n){"use strict";function o(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}function r(e){return(0,S.hasClass)(e,"htSeparator")}function i(e){return(0,S.hasClass)(e,"htSubmenu")}function s(e){return(0,S.hasClass)(e,"htDisabled")}function a(e){return(0,S.hasClass)(e,"htSelectionDisabled")}function l(e){var t=e.getSelected();return t?0>t[0]?null:t:null}function u(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ",""),e+=" "+t)}function c(e,t){return-1!=e.indexOf(t)?e:(e=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ",""),e+=" "+t)}function h(e,t){for(var n={},o=e.from.row;e.to.row>=o;o++)for(var r=e.from.col;e.to.col>=r;r++)n[o]||(n[o]=[]),n[o][r]=t(o,r);return n}function d(e,t,n,o,r){if(e.from.row==e.to.row&&e.from.col==e.to.col)f(e.from.row,e.from.col,t,n,o,r);else for(var i=e.from.row;e.to.row>=i;i++)for(var s=e.from.col;e.to.col>=s;s++)f(i,s,t,n,o,r)}function f(e,t,n,o,r,i){var s=r(e,t),a=o;s.className&&(a="vertical"===n?u(s.className,o):c(s.className,o)),i(e,t,"className",a)}function p(e,t){var n=!1;return e&&e.forAll(function(e,o){if(t(e,o))return n=!0,!1}),n}function g(e){return''+String.fromCharCode(10003)+""+e}function v(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function m(e,t){for(var n=e.slice(0);n.length>0&&n[0].name===t;)n.shift();return n}function y(e,t){var n=e.slice(0);return n.reverse(),n=m(n,t),n.reverse(),n}function w(e){var t=[];return(0,C.arrayEach)(e,function(e,n){n>0?t[t.length-1].name!==e.name&&t.push(e):t.push(e)}),t}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:E.KEY,n=e.slice(0);return n=m(n,t),n=y(n,t),n=w(n)}t.__esModule=!0,t.normalizeSelection=o,t.isSeparator=r,t.hasSubMenu=i,t.isDisabled=s,t.isSelectionDisabled=a,t.getValidSelection=l,t.prepareVerticalAlignClass=u,t.prepareHorizontalAlignClass=c,t.getAlignmentClasses=h,t.align=d,t.checkSelectionConsistency=p,t.markLabelAsSelected=g,t.isItemHidden=v,t.filterSeparators=b;var C=n(1),S=n(0),E=n(71)},function(e,t,n){var o=n(15);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var o=n(18),r=n(260),i=n(86),s=Object.defineProperty;t.f=n(21)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";function o(e){var t=void 0;switch(void 0===e?"undefined":l(e)){case"string":case"number":t=""+e;break;case"object":t=null===e?"":""+e;break;case"undefined":t="";break;default:t=""+e}return t}function r(e){return void 0!==e}function i(e){return void 0===e}function s(e){return null===e||""===e||i(e)}function a(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.__esModule=!0;var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.stringify=o,t.isDefined=r,t.isUndefined=i,t.isEmpty=s,t.isRegExp=a},function(e,t,n){e.exports=!n(31)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(77),r=n(30);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(63),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){"use strict";function o(){return l}function r(){return u}function i(){return c}function s(){return h}function a(e){return e||(e=navigator.userAgent),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)}t.__esModule=!0,t.isIE8=o,t.isIE9=r,t.isSafari=i,t.isChrome=s,t.isMobileBrowser=a;var l=!document.createTextNode("test").textContent,u=!!document.documentMode,c=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),h=/Chrome/.test(navigator.userAgent)&&/Google/.test(navigator.vendor)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if("function"==typeof e)return e;if(!y(e))throw Error('No registered validator found under "'+e+'" name');return m(e)}t.__esModule=!0,t.getRegisteredValidators=t.getRegisteredValidatorNames=t.hasValidator=t.getValidator=t.registerValidator=void 0;var i=n(53),s=o(i),a=n(371),l=o(a),u=n(372),c=o(u),h=n(373),d=o(h),f=n(374),p=o(f),g=(0,s.default)("validators"),v=g.register,m=g.getItem,y=g.hasItem,w=g.getNames,b=g.getValues;v("autocomplete",l.default),v("date",c.default),v("numeric",d.default),v("time",p.default),t.registerValidator=v,t.getValidator=r,t.hasValidator=y,t.getRegisteredValidatorNames=w,t.getRegisteredValidators=b},function(e,t,n){"use strict";function o(e){return e[0].toUpperCase()+e.substr(1)}function r(){for(var e=[],t=arguments.length,n=Array(t),o=0;t>o;o++)n[o]=arguments[o];for(var r=n.length;r--;){var i=(0,u.stringify)(n[r]).toLowerCase();-1===e.indexOf(i)&&e.push(i)}return 1===e.length}function i(){function e(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()}function s(e){return/^([0-9][0-9]?%$)|(^100%$)/.test(e)}function a(e){var t=arguments.length>1&&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 l(e){return e+="",e.replace(c,"")}t.__esModule=!0,t.toUpperCaseFirst=o,t.equalsIgnoreCase=r,t.randomString=i,t.isPercentValue=s,t.substitute=a,t.stripTags=l;var u=n(20),c=(n(6),/<\/?\w+\/?>|<\w+[\s|\/][^>]*>/gi)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var i=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),s=n(0),a=n(2),l=n(1),u=n(4),c=o(u),h=n(237),d=o(h),f={};t.default=function(){function e(t){r(this,e),(0,a.defineGetter)(this,"wot",t,{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=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode),this.areElementSizesAdjusted=!1,this.updateStateOfRendering()}return i(e,null,[{key:"registerOverlay",value:function(t,n){if(-1===e.CLONE_TYPES.indexOf(t))throw Error("Unsupported overlay ("+t+").");f[t]=n}},{key:"createOverlay",value:function(e,t){return new f[e](t)}},{key:"hasOverlay",value:function(e){return void 0!==f[e]}},{key:"isOverlayTypeOf",value:function(e,t){return!(!e||!f[t])&&e instanceof f[t]}},{key:"CLONE_TOP",get:function(){return"top"}},{key:"CLONE_BOTTOM",get:function(){return"bottom"}},{key:"CLONE_LEFT",get:function(){return"left"}},{key:"CLONE_TOP_LEFT_CORNER",get:function(){return"top_left_corner"}},{key:"CLONE_BOTTOM_LEFT_CORNER",get:function(){return"bottom_left_corner"}},{key:"CLONE_DEBUG",get:function(){return"debug"}},{key:"CLONE_TYPES",get:function(){return[e.CLONE_TOP,e.CLONE_BOTTOM,e.CLONE_LEFT,e.CLONE_TOP_LEFT_CORNER,e.CLONE_BOTTOM_LEFT_CORNER,e.CLONE_DEBUG]}}]),i(e,[{key:"updateStateOfRendering",value:function(){var e=this.needFullRender;this.needFullRender=this.shouldBeRendered();var t=e!==this.needFullRender;return t&&!this.needFullRender&&this.reset(),t}},{key:"shouldBeRendered",value:function(){return!0}},{key:"updateTrimmingContainer",value:function(){this.trimmingContainer=(0,s.getTrimmingContainer)(this.hider.parentNode.parentNode)}},{key:"updateMainScrollableElement",value:function(){this.mainTableScrollableElement=(0,s.getScrollableElement)(this.wot.wtTable.TABLE)}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw Error('Clone type "'+t+'" is not supported.');var n=document.createElement("DIV"),o=document.createElement("TABLE");n.className="ht_clone_"+t+" handsontable",n.style.position="absolute",n.style.top=0,n.style.left=0,n.style.overflow="hidden",o.className=this.wot.wtTable.TABLE.className,n.appendChild(o),this.type=t,this.wot.wtTable.wtRootElement.parentNode.appendChild(n);var r=this.wot.getSetting("preventOverflow");return this.mainTableScrollableElement=!0===r||"horizontal"===r&&this.type===e.CLONE_TOP||"vertical"===r&&this.type===e.CLONE_LEFT?window:(0,s.getScrollableElement)(this.wot.wtTable.TABLE),new d.default({cloneSource:this.wot,cloneOverlay:this,table:o})}},{key:"refresh",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.shouldBeRendered();this.clone&&(this.needFullRender||t)&&this.clone.draw(e),this.needFullRender=t}},{key:"reset",value:function(){if(this.clone){var e=this.clone.wtTable.holder;(0,l.arrayEach)([e.style,this.clone.wtTable.hider.style,e.parentNode.style],function(e){e.width="",e.height=""})}}},{key:"destroy",value:function(){new c.default(this.clone).destroy()}}]),e}()},function(e,t,n){var o=n(72);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var o=n(19),r=n(41);e.exports=n(21)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(13),r=n(32),i=n(22),s=n(50)("src"),a=Function.toString,l=(""+a).split("toString");n(45).inspectSource=function(e){return a.call(e)},(e.exports=function(e,t,n,a){var u="function"==typeof n;u&&(i(n,"name")||r(n,"name",t)),e[t]!==n&&(u&&(i(n,s)||r(n,s,e[t]?""+e[t]:l.join(t+""))),e===o?e[t]=n:a?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(e,t,n){"use strict";function o(e){return f.call(window,e)}function r(e){p.call(window,e)}function i(){return"ontouchstart"in window}function s(){var e=document.createElement("div");return!(!e.createShadowRoot||!(""+e.createShadowRoot).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="t
t";var n=document.createElement("CAPTION");n.innerHTML="c
c
c
c",n.style.padding=0,n.style.margin=0,e.insertBefore(n,t),document.body.appendChild(e),v=2*e.lastChild.offsetHeight>e.offsetHeight,document.body.removeChild(e)}function l(){return void 0===v&&a(),v}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return m||(m="object"===("undefined"==typeof Intl?"undefined":c(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})}t.__esModule=!0;var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.requestAnimationFrame=o,t.cancelAnimationFrame=r,t.isTouchSupported=i,t.isWebComponentSupportedNatively=s,t.hasCaptionProblem=l,t.getComparisonFunction=u;for(var h=0,d=["ms","moz","webkit","o"],f=window.requestAnimationFrame,p=window.cancelAnimationFrame,g=0;4>g&&!f;++g)f=window[d[g]+"RequestAnimationFrame"],p=window[d[g]+"CancelAnimationFrame"]||window[d[g]+"CancelRequestAnimationFrame"];f||(f=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-h)),o=window.setTimeout(function(){e(t+n)},n);return h=t+n,o}),p||(p=function(e){clearTimeout(e)});var v,m=void 0},function(e,t,n){"use strict";function o(e){return"function"==typeof e}function r(e){function t(){var t=this,s=arguments,a=Date.now(),l=!1;r.lastCallThrottled=!0,o||(o=a,l=!0);var u=n-(a-o);return l?(r.lastCallThrottled=!1,e.apply(this,s)):(i&&clearTimeout(i),i=setTimeout(function(){r.lastCallThrottled=!1,e.apply(t,s),o=0,i=void 0},u)),r}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=0,r={lastCallThrottled:!0},i=null;return t}function i(e){function t(){a=i}function n(){return a?(a--,e.apply(this,arguments)):s.apply(this,arguments)}var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,s=r(e,o),a=i;return n.clearHits=t,n}function s(e){function t(){var t=this,i=arguments;return o&&clearTimeout(o),o=setTimeout(function(){r=e.apply(t,i)},n),r}var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,o=null,r=void 0;return t}function a(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var o=t[0],r=t.slice(1);return function(){return(0,h.arrayReduce)(r,function(e,t){return t(e)},o.apply(this,arguments))}}function l(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;t>o;o++)n[o-1]=arguments[o];return function(){for(var t=arguments.length,o=Array(t),r=0;t>r;r++)o[r]=arguments[r];return e.apply(this,n.concat(o))}}function u(e){function t(o){return function(){for(var r=arguments.length,i=Array(r),s=0;r>s;s++)i[s]=arguments[s];var a=o.concat(i);return n>a.length?t(a):e.apply(this,a)}}var n=e.length;return t([])}function c(e){function t(o){return function(){for(var r=arguments.length,i=Array(r),s=0;r>s;s++)i[s]=arguments[s];var a=o.concat(i.reverse());return n>a.length?t(a):e.apply(this,a)}}var n=e.length;return t([])}t.__esModule=!0,t.isFunction=o,t.throttle=r,t.throttleAfterHits=i,t.debounce=s,t.pipe=a,t.partial=l,t.curry=u,t.curryRight=c;var h=n(1)},function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return ao.apply(null,arguments)}function o(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 i(e,t){var n,o=[];for(n=0;e.length>n;++n)o.push(t(e[n],n));return o}function s(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function a(e,t){for(var n in t)s(t,n)&&(e[n]=t[n]);return s(t,"toString")&&(e.toString=t.toString),s(t,"valueOf")&&(e.valueOf=t.valueOf),e}function l(e,t,n,o){return Le(e,t,n,o,!0).utc()}function u(){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=u()),e._pf}function h(e){if(null==e._isValid){var t=c(e),n=lo.call(t.parsedDateParts,function(e){return null!=e});e._isValid=!isNaN(e._d.getTime())&&0>t.overflow&&!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 d(e){var t=l(NaN);return null!=e?a(c(t),e):c(t).userInvalidated=!0,t}function f(e){return void 0===e}function p(e,t){var n,o,r;if(f(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),f(t._i)||(e._i=t._i),f(t._f)||(e._f=t._f),f(t._l)||(e._l=t._l),f(t._strict)||(e._strict=t._strict),f(t._tzm)||(e._tzm=t._tzm),f(t._isUTC)||(e._isUTC=t._isUTC),f(t._offset)||(e._offset=t._offset),f(t._pf)||(e._pf=c(t)),f(t._locale)||(e._locale=t._locale),uo.length>0)for(n in uo)o=uo[n],r=t[o],f(r)||(e[o]=r);return e}function g(e){p(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),!1===co&&(co=!0,t.updateOffset(this),co=!1)}function v(e){return e instanceof g||null!=e&&null!=e._isAMomentObject}function m(e){return 0>e?Math.ceil(e):Math.floor(e)}function y(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=m(t)),n}function w(e,t,n){var o,r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0;for(o=0;r>o;o++)(n&&e[o]!==t[o]||!n&&y(e[o])!==y(t[o]))&&s++;return s+i}function b(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function C(e,n){var o=!0;return a(function(){return null!=t.deprecationHandler&&t.deprecationHandler(null,e),o&&(b(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+Error().stack),o=!1),n.apply(this,arguments)},n)}function S(e,n){null!=t.deprecationHandler&&t.deprecationHandler(e,n),ho[e]||(b(n),ho[e]=!0)}function E(e){return e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function O(e){return"[object Object]"===Object.prototype.toString.call(e)}function _(e){var t,n;for(n in e)t=e[n],E(t)?this[n]=t:this["_"+n]=t;this._config=e,this._ordinalParseLenient=RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function R(e,t){var n,o=a({},e);for(n in t)s(t,n)&&(O(e[n])&&O(t[n])?(o[n]={},a(o[n],e[n]),a(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 M(e){for(var t,n,o,r,i=0;e.length>i;){for(r=T(e[i]).split("-"),t=r.length,n=T(e[i+1]),n=n?n.split("-"):null;t>0;){if(o=x(r.slice(0,t).join("-")))return o;if(n&&n.length>=t&&w(r,n,!0)>=t-1)break;t--}i++}return null}function x(t){var o=null;if(!vo[t]&&void 0!==e&&e&&e.exports)try{o=po._abbr,n(400)("./"+t),P(o)}catch(e){}return vo[t]}function P(e,t){var n;return e&&(n=f(t)?D(e):H(e,t))&&(po=n),po._abbr}function H(e,t){return null!==t?(t.abbr=e,null!=vo[e]?(S("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=R(vo[e]._config,t)):null!=t.parentLocale&&(null!=vo[t.parentLocale]?t=R(vo[t.parentLocale]._config,t):S("parentLocaleUndefined","specified parentLocale is not defined yet")),vo[e]=new k(t),P(e),vo[e]):(delete vo[e],null)}function A(e,t){if(null!=t){var n;null!=vo[e]&&(t=R(vo[e]._config,t)),n=new k(t),n.parentLocale=vo[e],vo[e]=n,P(e)}else null!=vo[e]&&(null!=vo[e].parentLocale?vo[e]=vo[e].parentLocale:null!=vo[e]&&delete vo[e]);return vo[e]}function D(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return po;if(!o(e)){if(t=x(e))return t;e=[e]}return M(e)}function N(){return fo(vo)}function L(e,t){var n=e.toLowerCase();mo[n]=mo[n+"s"]=mo[t]=e}function I(e){return"string"==typeof e?mo[e]||mo[e.toLowerCase()]:void 0}function j(e){var t,n,o={};for(n in e)s(e,n)&&(t=I(n))&&(o[t]=e[n]);return o}function W(e,n){return function(o){return null!=o?(V(this,e,o),t.updateOffset(this,n),this):F(this,e)}}function F(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 B(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if(e=I(e),E(this[e]))return this[e](t);return this}function Y(e,t,n){var o=""+Math.abs(e),r=t-o.length;return(0>e?"-":n?"+":"")+(""+Math.pow(10,Math.max(0,r))).substr(1)+o}function z(e,t,n,o){var r=o;"string"==typeof o&&(r=function(){return this[o]()}),e&&(Co[e]=r),t&&(Co[t[0]]=function(){return Y(r.apply(this,arguments),t[1],t[2])}),n&&(Co[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function U(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function K(e){var t,n,o=e.match(yo);for(t=0,n=o.length;n>t;t++)o[t]=Co[o[t]]?Co[o[t]]:U(o[t]);return function(t){var r,i="";for(r=0;n>r;r++)i+=o[r]instanceof Function?o[r].call(t,e):o[r];return i}}function G(e,t){return e.isValid()?(t=X(t,e.localeData()),(bo[t]=bo[t]||K(t))(e)):e.localeData().invalidDate()}function X(e,t){function n(e){return t.longDateFormat(e)||e}var o=5;for(wo.lastIndex=0;o>=0&&wo.test(e);)e=e.replace(wo,n),wo.lastIndex=0,o-=1;return e}function q(e,t,n){Wo[e]=E(t)?t:function(e,o){return e&&n?n:t}}function $(e,t){return s(Wo,e)?Wo[e](t._strict,t._locale):RegExp(Z(e))}function Z(e){return J(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,o,r){return t||n||o||r}))}function J(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(e,t){var n,o=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(o=function(e,n){n[t]=y(e)}),n=0;e.length>n;n++)Fo[e[n]]=o}function ee(e,t){Q(e,function(e,n,o,r){o._w=o._w||{},t(e,o._w,o,r)})}function te(e,t,n){null!=t&&s(Fo,e)&&Fo[e](t,n._a,n,e)}function ne(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function oe(e,t){return o(this._months)?this._months[e.month()]:this._months[$o.test(t)?"format":"standalone"][e.month()]}function re(e,t){return o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[$o.test(t)?"format":"standalone"][e.month()]}function ie(e,t,n){var o,r,i,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],o=0;12>o;++o)i=l([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(i,"").toLocaleLowerCase();return n?"MMM"===t?(r=go.call(this._shortMonthsParse,s),-1!==r?r:null):(r=go.call(this._longMonthsParse,s),-1!==r?r:null):"MMM"===t?-1!==(r=go.call(this._shortMonthsParse,s))?r:(r=go.call(this._longMonthsParse,s),-1!==r?r:null):-1!==(r=go.call(this._longMonthsParse,s))?r:(r=go.call(this._shortMonthsParse,s),-1!==r?r:null)}function se(e,t,n){var o,r,i;if(this._monthsParseExact)return ie.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;12>o;o++){if(r=l([2e3,o]),n&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[o]||(i="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[o]=RegExp(i.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 ae(e,t){var n;if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=y(t);else if("number"!=typeof(t=e.localeData().monthsParse(t)))return e;return n=Math.min(e.date(),ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n),e}function le(e){return null!=e?(ae(this,e),t.updateOffset(this,!0),this):F(this,"Month")}function ue(){return ne(this.year(),this.month())}function ce(e){return this._monthsParseExact?(s(this,"_monthsRegex")||de.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex}function he(e){return this._monthsParseExact?(s(this,"_monthsRegex")||de.call(this),e?this._monthsStrictRegex:this._monthsRegex):this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex}function de(){function e(e,t){return t.length-e.length}var t,n,o=[],r=[],i=[];for(t=0;12>t;t++)n=l([2e3,t]),o.push(this.monthsShort(n,"")),r.push(this.months(n,"")),i.push(this.months(n,"")),i.push(this.monthsShort(n,""));for(o.sort(e),r.sort(e),i.sort(e),t=0;12>t;t++)o[t]=J(o[t]),r[t]=J(r[t]),i[t]=J(i[t]);this._monthsRegex=RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function fe(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=0>n[Bo]||n[Bo]>11?Bo:1>n[Yo]||n[Yo]>ne(n[Vo],n[Bo])?Yo:0>n[zo]||n[zo]>24||24===n[zo]&&(0!==n[Uo]||0!==n[Ko]||0!==n[Go])?zo:0>n[Uo]||n[Uo]>59?Uo:0>n[Ko]||n[Ko]>59?Ko:0>n[Go]||n[Go]>999?Go:-1,c(e)._overflowDayOfYear&&(Vo>t||t>Yo)&&(t=Yo),c(e)._overflowWeeks&&-1===t&&(t=Xo),c(e)._overflowWeekday&&-1===t&&(t=qo),c(e).overflow=t),e}function pe(e){var t,n,o,r,i,s,a=e._i,l=tr.exec(a)||nr.exec(a);if(l){for(c(e).iso=!0,t=0,n=rr.length;n>t;t++)if(rr[t][1].exec(l[1])){r=rr[t][0],o=!1!==rr[t][2];break}if(null==r)return void(e._isValid=!1);if(l[3]){for(t=0,n=ir.length;n>t;t++)if(ir[t][1].exec(l[3])){i=(l[2]||" ")+ir[t][0];break}if(null==i)return void(e._isValid=!1)}if(!o&&null!=i)return void(e._isValid=!1);if(l[4]){if(!or.exec(l[4]))return void(e._isValid=!1);s="Z"}e._f=r+(i||"")+(s||""),Me(e)}else e._isValid=!1}function ge(e){var n=sr.exec(e._i);if(null!==n)return void(e._d=new Date(+n[1]));pe(e),!1===e._isValid&&(delete e._isValid,t.createFromInputFallback(e))}function ve(e,t,n,o,r,i,s){var a=new Date(e,t,n,o,r,i,s);return 100>e&&e>=0&&isFinite(a.getFullYear())&&a.setFullYear(e),a}function me(e){var t=new Date(Date.UTC.apply(null,arguments));return 100>e&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function ye(e){return we(e)?366:365}function we(e){return e%4==0&&e%100!=0||e%400==0}function be(){return we(this.year())}function Ce(e,t,n){var o=7+t-n;return-(7+me(e,0,o).getUTCDay()-t)%7+o-1}function Se(e,t,n,o,r){var i,s,a=(7+n-o)%7,l=Ce(e,o,r),u=1+7*(t-1)+a+l;return u>0?u>ye(e)?(i=e+1,s=u-ye(e)):(i=e,s=u):(i=e-1,s=ye(i)+u),{year:i,dayOfYear:s}}function Ee(e,t,n){var o,r,i=Ce(e.year(),t,n),s=Math.floor((e.dayOfYear()-i-1)/7)+1;return 1>s?(r=e.year()-1,o=s+Oe(r,t,n)):s>Oe(e.year(),t,n)?(o=s-Oe(e.year(),t,n),r=e.year()+1):(r=e.year(),o=s),{week:o,year:r}}function Oe(e,t,n){var o=Ce(e,t,n),r=Ce(e+1,t,n);return(ye(e)-o+r)/7}function _e(e,t,n){return null!=e?e:null!=t?t:n}function Re(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ke(e){var t,n,o,r,i=[];if(!e._d){for(o=Re(e),e._w&&null==e._a[Yo]&&null==e._a[Bo]&&Te(e),e._dayOfYear&&(r=_e(e._a[Vo],o[Vo]),e._dayOfYear>ye(r)&&(c(e)._overflowDayOfYear=!0),n=me(r,0,e._dayOfYear),e._a[Bo]=n.getUTCMonth(),e._a[Yo]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=i[t]=o[t];for(;7>t;t++)e._a[t]=i[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[zo]&&0===e._a[Uo]&&0===e._a[Ko]&&0===e._a[Go]&&(e._nextDay=!0,e._a[zo]=0),e._d=(e._useUTC?me:ve).apply(null,i),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[zo]=24)}}function Te(e){var t,n,o,r,i,s,a,l;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(i=1,s=4,n=_e(t.GG,e._a[Vo],Ee(Ie(),1,4).year),o=_e(t.W,1),(1>(r=_e(t.E,1))||r>7)&&(l=!0)):(i=e._locale._week.dow,s=e._locale._week.doy,n=_e(t.gg,e._a[Vo],Ee(Ie(),i,s).year),o=_e(t.w,1),null!=t.d?(0>(r=t.d)||r>6)&&(l=!0):null!=t.e?(r=t.e+i,(0>t.e||t.e>6)&&(l=!0)):r=i),1>o||o>Oe(n,i,s)?c(e)._overflowWeeks=!0:null!=l?c(e)._overflowWeekday=!0:(a=Se(n,o,r,i,s),e._a[Vo]=a.year,e._dayOfYear=a.dayOfYear)}function Me(e){if(e._f===t.ISO_8601)return void pe(e);e._a=[],c(e).empty=!0;var n,o,r,i,s,a=""+e._i,l=a.length,u=0;for(r=X(e._f,e._locale).match(yo)||[],n=0;r.length>n;n++)i=r[n],o=(a.match($(i,e))||[])[0],o&&(s=a.substr(0,a.indexOf(o)),s.length>0&&c(e).unusedInput.push(s),a=a.slice(a.indexOf(o)+o.length),u+=o.length),Co[i]?(o?c(e).empty=!1:c(e).unusedTokens.push(i),te(i,o,e)):e._strict&&!o&&c(e).unusedTokens.push(i);c(e).charsLeftOver=l-u,a.length>0&&c(e).unusedInput.push(a),!0===c(e).bigHour&&12>=e._a[zo]&&e._a[zo]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[zo]=xe(e._locale,e._a[zo],e._meridiem),ke(e),fe(e)}function xe(e,t,n){var o;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(o=e.isPM(n),o&&12>t&&(t+=12),o||12!==t||(t=0),t):t}function Pe(e){var t,n,o,r,i;if(0===e._f.length)return c(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;e._f.length>r;r++)i=0,t=p({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[r],Me(t),h(t)&&(i+=c(t).charsLeftOver,i+=10*c(t).unusedTokens.length,c(t).score=i,(null==o||o>i)&&(o=i,n=t));a(e,n||t)}function He(e){if(!e._d){var t=j(e._i);e._a=i([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 Ae(e){var t=new g(fe(De(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function De(e){var t=e._i,n=e._f;return e._locale=e._locale||D(e._l),null===t||void 0===n&&""===t?d({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),v(t)?new g(fe(t)):(o(n)?Pe(e):n?Me(e):r(t)?e._d=t:Ne(e),h(e)||(e._d=null),e))}function Ne(e){var n=e._i;void 0===n?e._d=new Date(t.now()):r(n)?e._d=new Date(n.valueOf()):"string"==typeof n?ge(e):o(n)?(e._a=i(n.slice(0),function(e){return parseInt(e,10)}),ke(e)):"object"==typeof n?He(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function Le(e,t,n,o,r){var i={};return"boolean"==typeof n&&(o=n,n=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=r,i._l=n,i._i=e,i._f=t,i._strict=o,Ae(i)}function Ie(e,t,n,o){return Le(e,t,n,o,!1)}function je(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Ie();for(n=t[0],r=1;t.length>r;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function We(){return je("isBefore",[].slice.call(arguments,0))}function Fe(){return je("isAfter",[].slice.call(arguments,0))}function Ve(e){var t=j(e),n=t.year||0,o=t.quarter||0,r=t.month||0,i=t.week||0,s=t.day||0,a=t.hour||0,l=t.minute||0,u=t.second||0;this._milliseconds=+(t.millisecond||0)+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*i,this._months=+r+3*o+12*n,this._data={},this._locale=D(),this._bubble()}function Be(e){return e instanceof Ve}function Ye(e,t){z(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)})}function ze(e,t){var n=(t||"").match(e)||[],o=n[n.length-1]||[],r=(o+"").match(hr)||["-",0,0],i=60*r[1]+y(r[2]);return"+"===r[0]?i:-i}function Ue(e,n){var o,i;return n._isUTC?(o=n.clone(),i=(v(e)||r(e)?e.valueOf():Ie(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+i),t.updateOffset(o,!1),o):Ie(e).local()}function Ke(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function Ge(e,n){var o,r=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=ze(Lo,e):16>Math.abs(e)&&(e*=60),!this._isUTC&&n&&(o=Ke(this)),this._offset=e,this._isUTC=!0,null!=o&&this.add(o,"m"),r!==e&&(!n||this._changeInProgress?ct(this,rt(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:Ke(this):null!=e?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 $e(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Ke(this),"m")),this}function Ze(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ze(No,this._i)),this}function Je(e){return!!this.isValid()&&(e=e?Ie(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function Qe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function et(){if(!f(this._isDSTShifted))return this._isDSTShifted;var e={};if(p(e,this),e=De(e),e._a){var t=e._isUTC?l(e._a):Ie(e._a);this._isDSTShifted=this.isValid()&&w(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function tt(){return!!this.isValid()&&!this._isUTC}function nt(){return!!this.isValid()&&this._isUTC}function ot(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function rt(e,t){var n,o,r,i=e,a=null;return Be(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(i={},t?i[t]=e:i.milliseconds=e):(a=dr.exec(e))?(n="-"===a[1]?-1:1,i={y:0,d:y(a[Yo])*n,h:y(a[zo])*n,m:y(a[Uo])*n,s:y(a[Ko])*n,ms:y(a[Go])*n}):(a=fr.exec(e))?(n="-"===a[1]?-1:1,i={y:it(a[2],n),M:it(a[3],n),w:it(a[4],n),d:it(a[5],n),h:it(a[6],n),m:it(a[7],n),s:it(a[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(r=at(Ie(i.from),Ie(i.to)),i={},i.ms=r.milliseconds,i.M=r.months),o=new Ve(i),Be(e)&&s(e,"_locale")&&(o._locale=e._locale),o}function it(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function st(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 at(e,t){var n;return e.isValid()&&t.isValid()?(t=Ue(t,e),e.isBefore(t)?n=st(e,t):(n=st(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function lt(e){return 0>e?-1*Math.round(-1*e):Math.round(e)}function ut(e,t){return function(n,o){var r,i;return null===o||isNaN(+o)||(S(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),i=n,n=o,o=i),n="string"==typeof n?+n:n,r=rt(n,o),ct(this,r,e),this}}function ct(e,n,o,r){var i=n._milliseconds,s=lt(n._days),a=lt(n._months);e.isValid()&&(r=null==r||r,i&&e._d.setTime(e._d.valueOf()+i*o),s&&V(e,"Date",F(e,"Date")+s*o),a&&ae(e,F(e,"Month")+a*o),r&&t.updateOffset(e,s||a))}function ht(e,t){var n=e||Ie(),o=Ue(n,this).startOf("day"),r=this.diff(o,"days",!0),i=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(t&&(E(t[i])?t[i]():t[i])||this.localeData().calendar(i,this,Ie(n)))}function dt(){return new g(this)}function ft(e,t){var n=v(e)?e:Ie(e);return!(!this.isValid()||!n.isValid())&&(t=I(f(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()t-i?(n=e.clone().add(r-1,"months"),o=(t-i)/(i-n)):(n=e.clone().add(r+1,"months"),o=(t-i)/(n-i)),-(r+o)||0}function Ct(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function St(){var e=this.clone().utc();return e.year()>0&&9999>=e.year()?E(Date.prototype.toISOString)?this.toDate().toISOString():G(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):G(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function Et(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=G(this,e);return this.localeData().postformat(n)}function Ot(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ie(e).isValid())?rt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function _t(e){return this.from(Ie(),e)}function Rt(e,t){return this.isValid()&&(v(e)&&e.isValid()||Ie(e).isValid())?rt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function kt(e){return this.to(Ie(),e)}function Tt(e){var t;return void 0===e?this._locale._abbr:(t=D(e),null!=t&&(this._locale=t),this)}function Mt(){return this._locale}function xt(e){switch(e=I(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 Pt(e){return void 0===(e=I(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Ht(){return this._d.valueOf()-6e4*(this._offset||0)}function At(){return Math.floor(this.valueOf()/1e3)}function Dt(){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 It(){return this.isValid()?this.toISOString():null}function jt(){return h(this)}function Wt(){return a({},c(this))}function Ft(){return c(this).overflow}function Vt(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Bt(e,t){z(0,[e,e.length],0,t)}function Yt(e){return Gt.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function zt(e){return Gt.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function Ut(){return Oe(this.year(),1,4)}function Kt(){var e=this.localeData()._week;return Oe(this.year(),e.dow,e.doy)}function Gt(e,t,n,o,r){var i;return null==e?Ee(this,o,r).year:(i=Oe(e,o,r),t>i&&(t=i),Xt.call(this,e,t,n,o,r))}function Xt(e,t,n,o,r){var i=Se(e,t,n,o,r),s=me(i.year,0,i.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 $t(e){return Ee(e,this._week.dow,this._week.doy).week}function Zt(){return this._week.dow}function Jt(){return this._week.doy}function Qt(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function en(e){var t=Ee(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function tn(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function nn(e,t){return o(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]}function on(e){return this._weekdaysShort[e.day()]}function rn(e){return this._weekdaysMin[e.day()]}function sn(e,t,n){var o,r,i,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],o=0;7>o;++o)i=l([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===t?(r=go.call(this._weekdaysParse,s),-1!==r?r:null):"ddd"===t?(r=go.call(this._shortWeekdaysParse,s),-1!==r?r:null):(r=go.call(this._minWeekdaysParse,s),-1!==r?r:null):"dddd"===t?-1!==(r=go.call(this._weekdaysParse,s))?r:-1!==(r=go.call(this._shortWeekdaysParse,s))?r:(r=go.call(this._minWeekdaysParse,s),-1!==r?r:null):"ddd"===t?-1!==(r=go.call(this._shortWeekdaysParse,s))?r:-1!==(r=go.call(this._weekdaysParse,s))?r:(r=go.call(this._minWeekdaysParse,s),-1!==r?r:null):-1!==(r=go.call(this._minWeekdaysParse,s))?r:-1!==(r=go.call(this._weekdaysParse,s))?r:(r=go.call(this._shortWeekdaysParse,s),-1!==r?r:null)}function an(e,t,n){var o,r,i;if(this._weekdaysParseExact)return sn.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;7>o;o++){if(r=l([2e3,1]).day(o),n&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(r,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(r,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(r,"").replace(".",".?")+"$","i")),this._weekdaysParse[o]||(i="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[o]=RegExp(i.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 ln(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=tn(e,this.localeData()),this.add(e-t,"d")):t}function un(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?(s(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex}function dn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}function fn(e){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||pn.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}function pn(){function e(e,t){return t.length-e.length}var t,n,o,r,i,s=[],a=[],u=[],c=[];for(t=0;7>t;t++)n=l([2e3,1]).day(t),o=this.weekdaysMin(n,""),r=this.weekdaysShort(n,""),i=this.weekdays(n,""),s.push(o),a.push(r),u.push(i),c.push(o),c.push(r),c.push(i);for(s.sort(e),a.sort(e),u.sort(e),c.sort(e),t=0;7>t;t++)a[t]=J(a[t]),u[t]=J(u[t]),c[t]=J(c[t]);this._weekdaysRegex=RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=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 vn(){return this.hours()%12||12}function mn(){return this.hours()||24}function yn(e,t){z(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function wn(e,t){return t._meridiemParse}function bn(e){return"p"===(e+"").toLowerCase().charAt(0)}function Cn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Sn(e,t){t[Go]=y(1e3*("0."+e))}function En(){return this._isUTC?"UTC":""}function On(){return this._isUTC?"Coordinated Universal Time":""}function _n(e){return Ie(1e3*e)}function Rn(){return Ie.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)})}function Mn(){return this._invalidDate}function xn(e){return this._ordinal.replace("%d",e)}function Pn(e){return e}function Hn(e,t,n,o){var r=this._relativeTime[n];return E(r)?r(e,t,n,o):r.replace(/%d/i,e)}function An(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}function Dn(e,t,n,o){return D()[n](l().set(o,t),e)}function Nn(e,t,n){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Dn(e,t,n,"month");var o,r=[];for(o=0;12>o;o++)r[o]=Dn(e,o,n,"month");return r}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 r=D(),i=e?r._week.dow:0;if(null!=n)return Dn(t,(n+i)%7,o,"day");var s,a=[];for(s=0;7>s;s++)a[s]=Dn(t,(s+i)%7,o,"day");return a}function In(e,t){return Nn(e,t,"months")}function jn(e,t){return Nn(e,t,"monthsShort")}function Wn(e,t,n){return Ln(e,t,n,"weekdays")}function Fn(e,t,n){return Ln(e,t,n,"weekdaysShort")}function Vn(e,t,n){return Ln(e,t,n,"weekdaysMin")}function Bn(){var e=this._data;return this._milliseconds=jr(this._milliseconds),this._days=jr(this._days),this._months=jr(this._months),e.milliseconds=jr(e.milliseconds),e.seconds=jr(e.seconds),e.minutes=jr(e.minutes),e.hours=jr(e.hours),e.months=jr(e.months),e.years=jr(e.years),this}function Yn(e,t,n,o){var r=rt(t,n);return e._milliseconds+=o*r._milliseconds,e._days+=o*r._days,e._months+=o*r._months,e._bubble()}function zn(e,t){return Yn(this,e,t,1)}function Un(e,t){return Yn(this,e,t,-1)}function Kn(e){return 0>e?Math.floor(e):Math.ceil(e)}function Gn(){var e,t,n,o,r,i=this._milliseconds,s=this._days,a=this._months,l=this._data;return(0>i||0>s||0>a)&&(i>0||s>0||a>0)&&(i+=864e5*Kn(qn(a)+s),s=0,a=0),l.milliseconds=i%1e3,e=m(i/1e3),l.seconds=e%60,t=m(e/60),l.minutes=t%60,n=m(t/60),l.hours=n%24,s+=m(n/24),r=m(Xn(s)),a+=r,s-=Kn(qn(r)),o=m(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 $n(e){var t,n,o=this._milliseconds;if("month"===(e=I(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 Error("Unknown unit "+e)}}function Zn(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*y(this._months/12)}function Jn(e){return function(){return this.as(e)}}function Qn(e){return e=I(e),this[e+"s"]()}function eo(e){return function(){return this._data[e]}}function to(){return m(this.days()/7)}function no(e,t,n,o,r){return r.relativeTime(t||1,!!n,e,o)}function oo(e,t,n){var o=rt(e).abs(),r=ei(o.as("s")),i=ei(o.as("m")),s=ei(o.as("h")),a=ei(o.as("d")),l=ei(o.as("M")),u=ei(o.as("y")),c=ti.s>r&&["s",r]||1>=i&&["m"]||ti.m>i&&["mm",i]||1>=s&&["h"]||ti.h>s&&["hh",s]||1>=a&&["d"]||ti.d>a&&["dd",a]||1>=l&&["M"]||ti.M>l&&["MM",l]||1>=u&&["y"]||["yy",u];return c[2]=t,c[3]=+e>0,c[4]=n,no.apply(null,c)}function ro(e,t){return void 0!==ti[e]&&(void 0===t?ti[e]:(ti[e]=t,!0))}function io(e){var t=this.localeData(),n=oo(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function so(){var e,t,n,o=ni(this._milliseconds)/1e3,r=ni(this._days),i=ni(this._months);e=m(o/60),t=m(e/60),o%=60,e%=60,n=m(i/12),i%=12;var s=n,a=i,l=r,u=t,c=e,h=o,d=this.asSeconds();return d?(0>d?"-":"")+"P"+(s?s+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(u||c||h?"T":"")+(u?u+"H":"")+(c?c+"M":"")+(h?h+"S":""):"P0D"}var ao,lo;lo=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,o=0;n>o;o++)if(o in t&&e.call(this,t[o],o,t))return!0;return!1};var uo=t.momentProperties=[],co=!1,ho={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var fo;fo=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)s(e,t)&&n.push(t);return n};var po,go,vo={},mo={},yo=/(\[[^\[]*\])|(\\)?([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,wo=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,bo={},Co={},So=/\d/,Eo=/\d\d/,Oo=/\d{3}/,_o=/\d{4}/,Ro=/[+-]?\d{6}/,ko=/\d\d?/,To=/\d\d\d\d?/,Mo=/\d\d\d\d\d\d?/,xo=/\d{1,3}/,Po=/\d{1,4}/,Ho=/[+-]?\d{1,6}/,Ao=/\d+/,Do=/[+-]?\d+/,No=/Z|[+-]\d\d:?\d\d/gi,Lo=/Z|[+-]\d\d(?::?\d\d)?/gi,Io=/[+-]?\d+(\.\d{1,3})?/,jo=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Wo={},Fo={},Vo=0,Bo=1,Yo=2,zo=3,Uo=4,Ko=5,Go=6,Xo=7,qo=8;go=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;this.length>t;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",function(){return this.month()+1}),z("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),z("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)}),Q(["M","MM"],function(e,t){t[Bo]=y(e)-1}),Q(["MMM","MMMM"],function(e,t,n,o){var r=n._locale.monthsParse(e,o,n._strict);null!=r?t[Bo]=r:c(n).invalidMonth=e});var $o=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,Zo="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("_"),Qo=jo,er=jo,tr=/^\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)?)?/,nr=/^\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)?)?/,or=/Z|[+-]\d\d(?::?\d\d)?/,rr=[["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}/]],ir=[["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/]],sr=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=C("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":""))}),z("Y",0,0,function(){var e=this.year();return e>9999?"+"+e:""+e}),z(0,["YY",2],0,function(){return this.year()%100}),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),L("year","y"),q("Y",Do),q("YY",ko,Eo),q("YYYY",Po,_o),q("YYYYY",Ho,Ro),q("YYYYYY",Ho,Ro),Q(["YYYYY","YYYYYY"],Vo),Q("YYYY",function(e,n){n[Vo]=2===e.length?t.parseTwoDigitYear(e):y(e)}),Q("YY",function(e,n){n[Vo]=t.parseTwoDigitYear(e)}),Q("Y",function(e,t){t[Vo]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return y(e)+(y(e)>68?1900:2e3)};var ar=W("FullYear",!0);t.ISO_8601=function(){};var lr=C("moment().min is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=Ie.apply(null,arguments);return this.isValid()&&e.isValid()?this>e?this:e:d()}),ur=C("moment().max is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=Ie.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:d()}),cr=function(){return Date.now?Date.now():+new Date};Ye("Z",":"),Ye("ZZ",""),q("Z",Lo),q("ZZ",Lo),Q(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ze(Lo,e)});var hr=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var dr=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,fr=/^(-)?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 pr=ut(1,"add"),gr=ut(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var vr=C("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)});z(0,["gg",2],0,function(){return this.weekYear()%100}),z(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Bt("gggg","weekYear"),Bt("ggggg","weekYear"),Bt("GGGG","isoWeekYear"),Bt("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),q("G",Do),q("g",Do),q("GG",ko,Eo),q("gg",ko,Eo),q("GGGG",Po,_o),q("gggg",Po,_o),q("GGGGG",Ho,Ro),q("ggggg",Ho,Ro),ee(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,o){t[o.substr(0,2)]=y(e)}),ee(["gg","GG"],function(e,n,o,r){n[r]=t.parseTwoDigitYear(e)}),z("Q",0,"Qo","quarter"),L("quarter","Q"),q("Q",So),Q("Q",function(e,t){t[Bo]=3*(y(e)-1)}),z("w",["ww",2],"wo","week"),z("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),ee(["w","ww","W","WW"],function(e,t,n,o){t[o.substr(0,1)]=y(e)});var mr={dow:0,doy:6};z("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}),Q(["D","DD"],Yo),Q("Do",function(e,t){t[Yo]=y(e.match(ko)[0],10)});var yr=W("Date",!0);z("d",0,"do","day"),z("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),z("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),z("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),z("e",0,0,"weekday"),z("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)}),ee(["dd","ddd","dddd"],function(e,t,n,o){var r=n._locale.weekdaysParse(e,o,n._strict);null!=r?t.d=r:c(n).invalidWeekday=e}),ee(["d","e","E"],function(e,t,n,o){t[o]=y(e)});var wr="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),br="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Cr="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Sr=jo,Er=jo,Or=jo;z("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),q("DDD",xo),q("DDDD",Oo),Q(["DDD","DDDD"],function(e,t,n){n._dayOfYear=y(e)}),z("H",["HH",2],0,"hour"),z("h",["hh",2],0,vn),z("k",["kk",2],0,mn),z("hmm",0,0,function(){return""+vn.apply(this)+Y(this.minutes(),2)}),z("hmmss",0,0,function(){return""+vn.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),z("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),z("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),yn("a",!0),yn("A",!1),L("hour","h"),q("a",wn),q("A",wn),q("H",ko),q("h",ko),q("HH",ko,Eo),q("hh",ko,Eo),q("hmm",To),q("hmmss",Mo),q("Hmm",To),q("Hmmss",Mo),Q(["H","HH"],zo),Q(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),Q(["h","hh"],function(e,t,n){t[zo]=y(e),c(n).bigHour=!0}),Q("hmm",function(e,t,n){var o=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o)),c(n).bigHour=!0}),Q("hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o,2)),t[Ko]=y(e.substr(r)),c(n).bigHour=!0}),Q("Hmm",function(e,t,n){var o=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o))}),Q("Hmmss",function(e,t,n){var o=e.length-4,r=e.length-2;t[zo]=y(e.substr(0,o)),t[Uo]=y(e.substr(o,2)),t[Ko]=y(e.substr(r))});var _r=/[ap]\.?m?\.?/i,Rr=W("Hours",!0);z("m",["mm",2],0,"minute"),L("minute","m"),q("m",ko),q("mm",ko,Eo),Q(["m","mm"],Uo);var kr=W("Minutes",!1);z("s",["ss",2],0,"second"),L("second","s"),q("s",ko),q("ss",ko,Eo),Q(["s","ss"],Ko);var Tr=W("Seconds",!1);z("S",0,0,function(){return~~(this.millisecond()/100)}),z(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,function(){return 10*this.millisecond()}),z(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),z(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),z(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),z(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),z(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),q("S",xo,So),q("SS",xo,Eo),q("SSS",xo,Oo);var Mr;for(Mr="SSSS";9>=Mr.length;Mr+="S")q(Mr,Ao);for(Mr="S";9>=Mr.length;Mr+="S")Q(Mr,Sn);var xr=W("Milliseconds",!1);z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var Pr=g.prototype;Pr.add=pr,Pr.calendar=ht,Pr.clone=dt,Pr.diff=wt,Pr.endOf=Pt,Pr.format=Et,Pr.from=Ot,Pr.fromNow=_t,Pr.to=Rt,Pr.toNow=kt,Pr.get=B,Pr.invalidAt=Ft,Pr.isAfter=ft,Pr.isBefore=pt,Pr.isBetween=gt,Pr.isSame=vt,Pr.isSameOrAfter=mt,Pr.isSameOrBefore=yt,Pr.isValid=jt,Pr.lang=vr,Pr.locale=Tt,Pr.localeData=Mt,Pr.max=ur,Pr.min=lr,Pr.parsingFlags=Wt,Pr.set=B,Pr.startOf=xt,Pr.subtract=gr,Pr.toArray=Nt,Pr.toObject=Lt,Pr.toDate=Dt,Pr.toISOString=St,Pr.toJSON=It,Pr.toString=Ct,Pr.unix=At,Pr.valueOf=Ht,Pr.creationData=Vt,Pr.year=ar,Pr.isLeapYear=be,Pr.weekYear=Yt,Pr.isoWeekYear=zt,Pr.quarter=Pr.quarters=qt,Pr.month=le,Pr.daysInMonth=ue,Pr.week=Pr.weeks=Qt,Pr.isoWeek=Pr.isoWeeks=en,Pr.weeksInYear=Kt,Pr.isoWeeksInYear=Ut,Pr.date=yr,Pr.day=Pr.days=ln,Pr.weekday=un,Pr.isoWeekday=cn,Pr.dayOfYear=gn,Pr.hour=Pr.hours=Rr,Pr.minute=Pr.minutes=kr,Pr.second=Pr.seconds=Tr,Pr.millisecond=Pr.milliseconds=xr,Pr.utcOffset=Ge,Pr.utc=qe,Pr.local=$e,Pr.parseZone=Ze,Pr.hasAlignedHourOffset=Je,Pr.isDST=Qe,Pr.isDSTShifted=et,Pr.isLocal=tt,Pr.isUtcOffset=nt,Pr.isUtc=ot,Pr.isUTC=ot,Pr.zoneAbbr=En,Pr.zoneName=On,Pr.dates=C("dates accessor is deprecated. Use date instead.",yr),Pr.months=C("months accessor is deprecated. Use month instead",le),Pr.years=C("years accessor is deprecated. Use year instead",ar),Pr.zone=C("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Xe);var Hr=Pr,Ar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Dr={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"},Nr=/\d{1,2}/,Lr={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"},Ir=k.prototype;Ir._calendar=Ar,Ir.calendar=kn,Ir._longDateFormat=Dr,Ir.longDateFormat=Tn,Ir._invalidDate="Invalid date",Ir.invalidDate=Mn,Ir._ordinal="%d",Ir.ordinal=xn,Ir._ordinalParse=Nr,Ir.preparse=Pn,Ir.postformat=Pn,Ir._relativeTime=Lr,Ir.relativeTime=Hn,Ir.pastFuture=An,Ir.set=_,Ir.months=oe,Ir._months=Zo,Ir.monthsShort=re,Ir._monthsShort=Jo,Ir.monthsParse=se,Ir._monthsRegex=er,Ir.monthsRegex=he,Ir._monthsShortRegex=Qo,Ir.monthsShortRegex=ce,Ir.week=$t,Ir._week=mr,Ir.firstDayOfYear=Jt,Ir.firstDayOfWeek=Zt,Ir.weekdays=nn,Ir._weekdays=wr,Ir.weekdaysMin=rn,Ir._weekdaysMin=Cr,Ir.weekdaysShort=on,Ir._weekdaysShort=br,Ir.weekdaysParse=an,Ir._weekdaysRegex=Sr,Ir.weekdaysRegex=hn,Ir._weekdaysShortRegex=Er,Ir.weekdaysShortRegex=dn,Ir._weekdaysMinRegex=Or,Ir.weekdaysMinRegex=fn,Ir.isPM=bn,Ir._meridiemParse=_r,Ir.meridiem=Cn,P("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===y(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=C("moment.lang is deprecated. Use moment.locale instead.",P),t.langData=C("moment.langData is deprecated. Use moment.localeData instead.",D);var jr=Math.abs,Wr=Jn("ms"),Fr=Jn("s"),Vr=Jn("m"),Br=Jn("h"),Yr=Jn("d"),zr=Jn("w"),Ur=Jn("M"),Kr=Jn("y"),Gr=eo("milliseconds"),Xr=eo("seconds"),qr=eo("minutes"),$r=eo("hours"),Zr=eo("days"),Jr=eo("months"),Qr=eo("years"),ei=Math.round,ti={s:45,m:45,h:22,d:26,M:11},ni=Math.abs,oi=Ve.prototype;return oi.abs=Bn,oi.add=zn,oi.subtract=Un,oi.as=$n,oi.asMilliseconds=Wr,oi.asSeconds=Fr,oi.asMinutes=Vr,oi.asHours=Br,oi.asDays=Yr,oi.asWeeks=zr,oi.asMonths=Ur,oi.asYears=Kr,oi.valueOf=Zn,oi._bubble=Gn,oi.get=Qn,oi.milliseconds=Gr,oi.seconds=Xr,oi.minutes=qr,oi.hours=$r,oi.days=Zr,oi.weeks=to,oi.months=Jr,oi.years=Qr,oi.humanize=io,oi.toISOString=so,oi.toString=so,oi.toJSON=so,oi.locale=Tt,oi.localeData=Mt,oi.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",so),oi.lang=vr,z("X",0,0,"unix"),z("x",0,0,"valueOf"),q("x",Do),q("X",Io),Q("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Q("x",function(e,t,n){n._d=new Date(y(e))}),t.version="2.13.0",function(e){ao=e}(Ie),t.fn=Hr,t.min=We,t.max=Fe,t.now=cr,t.utc=l,t.unix=_n,t.months=In,t.isDate=r,t.locale=P,t.invalid=d,t.duration=rt,t.isMoment=v,t.weekdays=Wn,t.parseZone=Rn,t.localeData=D,t.isDuration=Be,t.monthsShort=jn,t.weekdaysMin=Vn,t.defineLocale=H,t.updateLocale=A,t.locales=N,t.weekdaysShort=Fn,t.normalizeUnits=I,t.relativeTimeThreshold=ro,t.prototype=Hr,t}),window.moment=n(36)}).call(t,n(402)(e))},function(e,t,n){"use strict";function o(e){this.instance=e,this.state=s.VIRGIN,this._opened=!1,this._fullEditMode=!1,this._closeCallback=null,this.init()}t.__esModule=!0,t.EditorState=void 0;var r=n(11),i=n(20),s=t.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,r,i){this.TD=o,this.row=e,this.col=t,this.prop=n,this.originalValue=r,this.cellProperties=i;var a=!document.activeElement||document.activeElement&&void 0===document.activeElement.nodeName;this.instance.view.isMouseDown()&&document.activeElement&&document.activeElement!==document.body&&!a?document.activeElement.blur():a&&document.body.focus(),this.state=s.VIRGIN},o.prototype.extend=function(){function e(){t.apply(this,arguments)}var t=this.constructor;return function(e,t){function n(){}return n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e}(e,t)},o.prototype.saveValue=function(e,t){var n=void 0,o=void 0;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)):n=[this.row,this.col,null,null],this.instance.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")},o.prototype.beginEditing=function(e,t){this.state==s.VIRGIN&&(this.instance.view.scrollViewport(new r.CellCoords(this.row,this.col)),this.instance.view.render(),this.state=s.EDITING,e="string"==typeof e?e:this.originalValue,this.setValue((0,i.stringify)(e)),this.open(t),this._opened=!0,this.focus(),this.instance.view.render(),this.instance.runHooks("afterBeginEditing",this.row,this.col))},o.prototype.finishEditing=function(e,t,n){var o,r=this;if(n){var i=this._closeCallback;this._closeCallback=function(e){i&&i(e),n(e),r.instance.view.render()}}if(!this.isWaiting()){if(this.state==s.VIRGIN)return void this.instance._registerTimeout(setTimeout(function(){r._fireCallbacks(!0)},0));if(this.state==s.EDITING){if(e)return this.cancelChanges(),void this.instance.view.render();var a=this.getValue();o=this.instance.getSettings().trimWhitespace?[["string"==typeof a?String.prototype.trim.call(a||""):a]]:[[a]],this.state=s.WAITING,this.saveValue(o,t),this.instance.getCellValidator(this.cellProperties)?this.instance.addHookOnce("postAfterValidate",function(e){r.state=s.FINISHED,r.discardEditor(e)}):(this.state=s.FINISHED,this.discardEditor(!0))}}},o.prototype.cancelChanges=function(){this.state=s.FINISHED,this.discardEditor()},o.prototype.discardEditor=function(e){this.state===s.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.instance.selectCell(this.row,this.col),this.focus(),this.state=s.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=s.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===s.WAITING},o.prototype.checkEditorSection=function(){var e=this.instance.countRows(),t="";return this.row=e-this.instance.getSettings().fixedRowsBottom?t=this.coln;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();t.default=function(){function e(t,n){o(this,e),void 0!==t&&void 0!==n?(this.row=t,this.col=n):(this.row=null,this.col=null)}return r(e,[{key:"isValid",value:function(e){return this.row>=0&&this.col>=0&&(this.row=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return e.row>=this.row&&e.col>=this.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&e.col>=this.col}},{key:"isNorthEastOf",value:function(e){return e.row>=this.row&&this.col>=e.col}}]),e}()},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var r=n(0),i=n(283),s=o(i),a=n(37),l=o(a),u=n(4),c=o(u),h=n(16),d=n(7),f=l.default.prototype.extend();f.prototype.init=function(){var e=this;this.createElements(),this.eventManager=new c.default(this),this.bindEvents(),this.autoResize=(0,s.default)(),this.instance.addHook("afterDestroy",function(){e.destroy()})},f.prototype.getValue=function(){return this.TEXTAREA.value},f.prototype.setValue=function(e){this.TEXTAREA.value=e};var p=function(e){var t,n=this,o=n.getActiveEditor();if(t=(e.ctrlKey||e.metaKey)&&!e.altKey,e.target===o.TEXTAREA&&!(0,d.isImmediatePropagationStopped)(e)){if(17===e.keyCode||224===e.keyCode||91===e.keyCode||93===e.keyCode)return void(0,d.stopImmediatePropagation)(e);switch(e.keyCode){case h.KEY_CODES.ARROW_RIGHT:case h.KEY_CODES.ARROW_LEFT:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ARROW_UP:case h.KEY_CODES.ARROW_DOWN:o.isInFullEditMode()&&(!o.isWaiting()&&!o.allowKeyEventPropagation||!o.isWaiting()&&o.allowKeyEventPropagation&&!o.allowKeyEventPropagation(e.keyCode))&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.ENTER:var i=o.instance.getSelected(),s=!(i[0]===i[2]&&i[1]===i[3]);if(t&&!s||e.altKey){if(o.isOpened()){var a=(0,r.getCaretPosition)(o.TEXTAREA),l=o.getValue();o.setValue(l.slice(0,a)+"\n"+l.slice(a)),(0,r.setCaretPosition)(o.TEXTAREA,a+1)}else o.beginEditing(o.originalValue+"\n");(0,d.stopImmediatePropagation)(e)}e.preventDefault();break;case h.KEY_CODES.A:case h.KEY_CODES.X:case h.KEY_CODES.C:case h.KEY_CODES.V:t&&(0,d.stopImmediatePropagation)(e);break;case h.KEY_CODES.BACKSPACE:case h.KEY_CODES.DELETE:case h.KEY_CODES.HOME:case h.KEY_CODES.END:(0,d.stopImmediatePropagation)(e)}-1===[h.KEY_CODES.ARROW_UP,h.KEY_CODES.ARROW_RIGHT,h.KEY_CODES.ARROW_DOWN,h.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&o.autoResize.resize(String.fromCharCode(e.keyCode))}};f.prototype.open=function(){this.refreshDimensions(),this.instance.addHook("beforeKeyDown",p)},f.prototype.close=function(e){this.textareaParentStyle.display="none",this.autoResize.unObserve(),document.activeElement===this.TEXTAREA&&this.instance.listen(),this.instance.removeHook("beforeKeyDown",p)},f.prototype.focus=function(){this.TEXTAREA.focus(),(0,r.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length)},f.prototype.createElements=function(){this.TEXTAREA=document.createElement("TEXTAREA"),(0,r.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.TEXTAREA_PARENT=document.createElement("DIV"),(0,r.addClass)(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))},f.prototype.getEditedCell=function(){var e,t=this.checkEditorSection();switch(t){case"top":e=this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=101;break;case"top-left-corner":e=this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"bottom-left-corner":e=this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=103;break;case"left":e=this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;case"bottom":e=this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.getCell({row:this.row,col:this.col}),this.textareaParentStyle.zIndex=102;break;default:e=this.instance.getCell(this.row,this.col),this.textareaParentStyle.zIndex=""}return-1!=e&&-2!=e?e:void 0},f.prototype.refreshValue=function(){var e=this.instance.getSourceDataAtCell(this.row,this.prop);this.originalValue=e,this.setValue(e),this.refreshDimensions()},f.prototype.refreshDimensions=function(){if(this.state===a.EditorState.EDITING){if(!(this.TD=this.getEditedCell()))return void this.close(!0);var e,t=(0,r.offset)(this.TD),n=(0,r.offset)(this.instance.rootElement),o=(0,r.getScrollableElement)(this.TD),i=this.instance.countRows(),s=t.top===n.top?0:1,l=t.top-n.top-s-(o.scrollTop||0),u=t.left-n.left-1-(o.scrollLeft||0),c=this.instance.getSettings(),h=(this.instance.hasRowHeaders(),this.instance.hasColHeaders()),d=this.checkEditorSection(),f=this.TD.style.backgroundColor;switch(d){case"top":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topOverlay.clone.wtTable.holder.parentNode);break;case"left":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":e=(0,r.getCssTransform)(this.instance.view.wt.wtOverlays.bottomOverlay.clone.wtTable.holder.parentNode)}(h&&0===this.instance.getSelected()[0]||c.fixedRowsBottom&&this.instance.getSelected()[0]===i-c.fixedRowsBottom)&&(l+=1),0===this.instance.getSelected()[1]&&(u+=1),e&&-1!=e?this.textareaParentStyle[e[0]]=e[1]:(0,r.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top=l+"px",this.textareaParentStyle.left=u+"px";var p=this.instance.view.wt.wtViewport.rowsRenderCalculator.startPosition,g=this.instance.view.wt.wtViewport.columnsRenderCalculator.startPosition,v=this.instance.view.wt.wtOverlays.leftOverlay.getScrollPosition(),m=this.instance.view.wt.wtOverlays.topOverlay.getScrollPosition(),y=(0,r.getScrollbarWidth)(),w=this.TD.offsetTop+p-m,b=this.TD.offsetLeft+g-v,C=(0,r.innerWidth)(this.TD)-8,S=(0,r.hasVerticalScrollbar)(o)?y:0,E=(0,r.hasHorizontalScrollbar)(o)?y:0,O=this.instance.view.maximumVisibleElementWidth(b)-9-S,_=this.TD.scrollHeight+1,R=Math.max(this.instance.view.maximumVisibleElementHeight(w)-E,23),k=(0,r.getComputedStyle)(this.TD);this.TEXTAREA.style.fontSize=k.fontSize,this.TEXTAREA.style.fontFamily=k.fontFamily,this.TEXTAREA.style.backgroundColor="",this.TEXTAREA.style.backgroundColor=f||(0,r.getComputedStyle)(this.TEXTAREA).backgroundColor,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(_,R),maxHeight:R,minWidth:Math.min(C,O),maxWidth:O},!0),this.textareaParentStyle.display="block"}},f.prototype.bindEvents=function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",function(e){(0,d.stopPropagation)(e)}),this.eventManager.addEventListener(this.TEXTAREA,"paste",function(e){(0,d.stopPropagation)(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()})},f.prototype.destroy=function(){this.eventManager.destroy()},t.default=f},function(e,t){var n=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports={}},function(e,t,n){var o=n(50)("meta"),r=n(15),i=n(22),s=n(19).f,a=0,l=Object.isExtensible||function(){return!0},u=!n(31)(function(){return l(Object.preventExtensions({}))}),c=function(e){s(e,o,{value:{i:"O"+ ++a,w:{}}})},h=function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!l(e))return"F";if(!t)return"E";c(e)}return e[o].i},d=function(e,t){if(!i(e,o)){if(!l(e))return!0;if(!t)return!1;c(e)}return e[o].w},f=function(e){return u&&p.NEED&&l(e)&&!i(e,o)&&c(e),e},p=e.exports={KEY:o,NEED:!1,fastKey:h,getWeak:d,onFreeze:f}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(19).f,r=n(22),i=n(10)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t,n){var o,r;/*! * numbro.js * version : 1.11.0 * author : Företagsplatsen AB * license : MIT * http://www.foretagsplatsen.se */ (function(){"use strict";function i(e){this._value=e}function s(e){return 0===e?1:Math.floor(Math.log(Math.abs(e))/Math.LN10)+1}function a(e){var t,n="";for(t=0;e>t;t++)n+="0";return n}function l(e,t){var n,o,r,i,s,l,u,c;return c=""+e,n=c.split("e")[0],i=c.split("e")[1],o=n.split(".")[0],r=n.split(".")[1]||"",+i>0?c=o+r+a(i-r.length):(s=0>+o?"-0":"0",t>0&&(s+="."),u=a(-1*i-1),l=(u+Math.abs(o)+r).substr(0,t),c=s+l),+i>0&&t>0&&(c+="."+a(t)),c}function u(e,t,n,o){var r,i,s=Math.pow(10,t);return(""+e).indexOf("e")>-1?(i=l(e,t),"-"!==i.charAt(0)||0>+i||(i=i.substr(1))):i=(n(e+"e+"+t)/s).toFixed(t),o&&(r=RegExp("0{1,"+o+"}$"),i=i.replace(r,"")),i}function c(e,t,n){var o=t.replace(/\{[^\{\}]*\}/g,"");return o.indexOf("$")>-1?d(e,T[x].currency.symbol,t,n):o.indexOf("%")>-1?p(e,t,n):o.indexOf(":")>-1?g(e):y(e._value,t,n)}function h(e,t){var n,o,r,i,s,a=t,l=!1;if(t.indexOf(":")>-1)e._value=v(t);else if(t===P)e._value=0;else{for("."!==T[x].delimiters.decimal&&(t=t.replace(/\./g,"").replace(T[x].delimiters.decimal,".")),n=RegExp("[^a-zA-Z]"+T[x].abbreviations.thousand+"(?:\\)|(\\"+T[x].currency.symbol+")?(?:\\))?)?$"),o=RegExp("[^a-zA-Z]"+T[x].abbreviations.million+"(?:\\)|(\\"+T[x].currency.symbol+")?(?:\\))?)?$"),r=RegExp("[^a-zA-Z]"+T[x].abbreviations.billion+"(?:\\)|(\\"+T[x].currency.symbol+")?(?:\\))?)?$"),i=RegExp("[^a-zA-Z]"+T[x].abbreviations.trillion+"(?:\\)|(\\"+T[x].currency.symbol+")?(?:\\))?)?$"),s=1;O.length>s&&!l;++s)t.indexOf(O[s])>-1?l=Math.pow(1024,s):t.indexOf(_[s])>-1&&(l=Math.pow(1e3,s));var u=t.replace(/[^0-9\.]+/g,"");""===u?e._value=NaN:(e._value=(l||1)*(a.match(n)?Math.pow(10,3):1)*(a.match(o)?Math.pow(10,6):1)*(a.match(r)?Math.pow(10,9):1)*(a.match(i)?Math.pow(10,12):1)*(t.indexOf("%")>-1?.01:1)*((t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1)*+u,e._value=l?Math.ceil(e._value):e._value)}return e._value}function d(e,t,n,o){var r,i,s=n,a=s.indexOf("$"),l=s.indexOf("("),u=s.indexOf("+"),c=s.indexOf("-"),h="",d="";if(-1===s.indexOf("$")?"infix"===T[x].currency.position?(d=t,T[x].currency.spaceSeparated&&(d=" "+d+" ")):T[x].currency.spaceSeparated&&(h=" "):s.indexOf(" $")>-1?(h=" ",s=s.replace(" $","")):s.indexOf("$ ")>-1?(h=" ",s=s.replace("$ ","")):s=s.replace("$",""),i=y(e._value,s,o,d),-1===n.indexOf("$"))switch(T[x].currency.position){case"postfix":i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,h+t),i=i.join("")):i=i+h+t;break;case"infix":break;case"prefix":i.indexOf("(")>-1||i.indexOf("-")>-1?(i=i.split(""),r=Math.max(l,c)+1,i.splice(r,0,t+h),i=i.join("")):i=t+h+i;break;default:throw Error('Currency position should be among ["prefix", "infix", "postfix"]')}else a>1?i.indexOf(")")>-1?(i=i.split(""),i.splice(-1,0,h+t),i=i.join("")):i=i+h+t:i.indexOf("(")>-1||i.indexOf("+")>-1||i.indexOf("-")>-1?(i=i.split(""),r=1,(l>a||u>a||c>a)&&(r=0),i.splice(r,0,t+h),i=i.join("")):i=t+h+i;return i}function f(e,t,n,o){return d(e,t,n,o)}function p(e,t,n){var o,r="",i=100*e._value;return t.indexOf(" %")>-1?(r=" ",t=t.replace(" %","")):t=t.replace("%",""),o=y(i,t,n),o.indexOf(")")>-1?(o=o.split(""),o.splice(-1,0,r+"%"),o=o.join("")):o=o+r+"%",o}function g(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+":"+(10>n?"0"+n:n)+":"+(10>o?"0"+o:o)}function v(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*+t[0]*60,n+=60*+t[1],n+=+t[2]):2===t.length&&(n+=60*+t[0],n+=+t[1]),+n}function m(e,t,n){var o,r,i,s=t[0],a=Math.abs(e);if(a>=n){for(o=1;t.length>o;++o)if(r=Math.pow(n,o),i=Math.pow(n,o+1),a>=r&&i>a){s=t[o],e/=r;break}s===t[0]&&(e/=Math.pow(n,t.length-1),s=t[t.length-1])}return{value:e,suffix:s}}function y(e,t,n,o){var r,i,l,c,h,d,f,p,g,v,y,w,b,C,S,E,O=!1,_=!1,R=!1,M="",H=!1,A=!1,D=!1,N=!1,L=!1,I="",j="",W=Math.abs(e),F="",V=!1,B=!1,Y="";if(0===e&&null!==P)return P;if(!isFinite(e))return""+e;if(0===t.indexOf("{")){var z=t.indexOf("}");if(-1===z)throw Error('Format should also contain a "}"');v=t.slice(1,z),t=t.slice(z+1)}else v="";if(t.indexOf("}")===t.length-1&&t.length){var U=t.indexOf("{");if(-1===U)throw Error('Format should also contain a "{"');y=t.slice(U+1,-1),t=t.slice(0,U+1)}else y="";var K;for(K=t.match(-1===t.indexOf(".")?/([0-9]+).*/:/([0-9]+)\..*/),S=null===K?-1:K[1].length,-1!==t.indexOf("-")&&(V=!0),t.indexOf("(")>-1?(O=!0,t=t.slice(1,-1)):t.indexOf("+")>-1&&(_=!0,t=t.replace(/\+/g,"")),t.indexOf("a")>-1&&(p=t.split(".")[0].match(/[0-9]+/g)||["0"],p=parseInt(p[0],10),H=t.indexOf("aK")>=0,A=t.indexOf("aM")>=0,D=t.indexOf("aB")>=0,N=t.indexOf("aT")>=0,L=H||A||D||N,t.indexOf(" a")>-1?(M=" ",t=t.replace(" a","")):t=t.replace("a",""),l=s(e),h=l%3,h=0===h?3:h,p&&0!==W&&(d=3*~~((Math.min(p,l)-h)/3),W/=Math.pow(10,d)),l!==p&&(W>=Math.pow(10,12)&&!L||N?(M+=T[x].abbreviations.trillion,e/=Math.pow(10,12)):W=Math.pow(10,9)&&!L||D?(M+=T[x].abbreviations.billion,e/=Math.pow(10,9)):W=Math.pow(10,6)&&!L||A?(M+=T[x].abbreviations.million,e/=Math.pow(10,6)):(W=Math.pow(10,3)&&!L||H)&&(M+=T[x].abbreviations.thousand,e/=Math.pow(10,3))),c=s(e),p&&p>c&&-1===t.indexOf(".")&&(t+="[.]",t+=a(p-c))),E=0;k.length>E;++E)if(r=k[E],t.indexOf(r.marker)>-1){t.indexOf(" "+r.marker)>-1&&(I=" "),t=t.replace(I+r.marker,""),i=m(e,r.suffixes,r.scale),e=i.value,I+=i.suffix;break}if(t.indexOf("o")>-1&&(t.indexOf(" o")>-1?(j=" ",t=t.replace(" o","")):t=t.replace("o",""),T[x].ordinal&&(j+=T[x].ordinal(e))),t.indexOf("[.]")>-1&&(R=!0,t=t.replace("[.]",".")),g=t.split(".")[1],w=t.indexOf(","),g){var G=[];if(-1!==g.indexOf("*")?(F=""+e,G=F.split("."),G.length>1&&(F=u(e,G[1].length,n))):g.indexOf("[")>-1?(g=g.replace("]",""),g=g.split("["),F=u(e,g[0].length+g[1].length,n,g[1].length)):F=u(e,g.length,n),G=F.split("."),f=G[0],G.length>1&&G[1].length){F=(o?M+o:T[x].delimiters.decimal)+G[1]}else F="";R&&0==+F.slice(1)&&(F="")}else f=u(e,0,n);return f.indexOf("-")>-1&&(f=f.slice(1),B=!0),S>f.length&&(f=a(S-f.length)+f),w>-1&&(f=(""+f).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+T[x].delimiters.thousands)),0===t.indexOf(".")&&(f=""),b=t.indexOf("("),C=t.indexOf("-"),Y=C>b?(O&&B?"(":"")+(V&&B||!O&&B?"-":""):(V&&B||!O&&B?"-":"")+(O&&B?"(":""),v+Y+(!B&&_&&0!==e?"+":"")+f+F+(j||"")+(M&&!o?M:"")+(I||"")+(O&&B?")":"")+y}function w(e,t){T[e]=t}function b(e){x=e;var t=T[e].defaults;t&&t.format&&E.defaultFormat(t.format),t&&t.currencyFormat&&E.defaultCurrencyFormat(t.currencyFormat)}function C(e){var t=(""+e).split(".");return 2>t.length?1:Math.pow(10,t[1].length)}function S(){return Array.prototype.slice.call(arguments).reduce(function(e,t){var n=C(e),o=C(t);return n>o?n:o},-1/0)}var E,O=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],_=["B","KB","MB","GB","TB","PB","EB","ZB","YB"],R={general:{scale:1024,suffixes:_,marker:"bd"},binary:{scale:1024,suffixes:O,marker:"b"},decimal:{scale:1e3,suffixes:_,marker:"d"}},k=[R.general,R.binary,R.decimal],T={},M=T,x="en-US",P=null,H="0,0",A="0$",D=void 0!==e&&e.exports,N={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"}};E=function(e){return e=E.isNumbro(e)?e.value():"string"==typeof e||"number"==typeof e?E.fn.unformat(e):NaN,new i(+e)},E.version="1.11.0",E.isNumbro=function(e){return e instanceof i},E.setLanguage=function(e,t){console.warn("`setLanguage` is deprecated since version 1.6.0. Use `setCulture` instead");var n=e,o=e.split("-")[0],r=null;M[n]||(Object.keys(M).forEach(function(e){r||e.split("-")[0]!==o||(r=e)}),n=r||t||"en-US"),b(n)},E.setCulture=function(e,t){var n=e,o=e.split("-")[1],r=null;T[n]||(o&&Object.keys(T).forEach(function(e){r||e.split("-")[1]!==o||(r=e)}),n=r||t||"en-US"),b(n)},E.language=function(e,t){if(console.warn("`language` is deprecated since version 1.6.0. Use `culture` instead"),!e)return x;if(e&&!t){if(!M[e])throw Error("Unknown language : "+e);b(e)}return!t&&M[e]||w(e,t),E},E.culture=function(e,t){if(!e)return x;if(e&&!t){if(!T[e])throw Error("Unknown culture : "+e);b(e)}return!t&&T[e]||w(e,t),E},E.languageData=function(e){if(console.warn("`languageData` is deprecated since version 1.6.0. Use `cultureData` instead"),!e)return M[x];if(!M[e])throw Error("Unknown language : "+e);return M[e]},E.cultureData=function(e){if(!e)return T[x];if(!T[e])throw Error("Unknown culture : "+e);return T[e]},E.culture("en-US",N),E.languages=function(){return console.warn("`languages` is deprecated since version 1.6.0. Use `cultures` instead"),M},E.cultures=function(){return T},E.zeroFormat=function(e){P="string"==typeof e?e:null},E.defaultFormat=function(e){H="string"==typeof e?e:"0.0"},E.defaultCurrencyFormat=function(e){A="string"==typeof e?e:"0$"},E.validate=function(e,t){var n,o,r,i,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=e.replace(/^[+-]?/,""),e.match(/^\d+$/))return!0;if(""===e)return!1;try{l=E.cultureData(t)}catch(e){l=E.cultureData(E.culture())}return r=l.currency.symbol,s=l.abbreviations,n=l.delimiters.decimal,o="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,(null===(u=e.match(/^[^\d\.\,]+/))||(e=e.substr(1),u[0]===r))&&((null===(u=e.match(/[^\d]+$/))||(e=e.slice(0,-1),u[0]===s.thousand||u[0]===s.million||u[0]===s.billion||u[0]===s.trillion))&&(a=RegExp(o+"{2}"),!e.match(/[^\d.,]/g)&&(i=e.split(n),2>=i.length&&(2>i.length?!!i[0].match(/^\d+.*\d$/)&&!i[0].match(a):""===i[0]?!i[0].match(a)&&!!i[1].match(/^\d+$/):1===i[0].length?!!i[0].match(/^\d+$/)&&!i[0].match(a)&&!!i[1].match(/^\d+$/):!!i[0].match(/^\d+.*\d$/)&&!i[0].match(a)&&!!i[1].match(/^\d+$/)))))},E.loadLanguagesInNode=function(){console.warn("`loadLanguagesInNode` is deprecated since version 1.6.0. Use `loadCulturesInNode` instead"),E.loadCulturesInNode()},E.loadCulturesInNode=function(){var e=n(282);for(var t in e)t&&E.culture(t,e[t])},"function"!=typeof Array.prototype.reduce&&(Array.prototype.reduce=function(e,t){if(null===this||void 0===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,r=this.length>>>0,i=!1;for(arguments.length>1&&(o=t,i=!0),n=0;r>n;++n)this.hasOwnProperty(n)&&(i?o=e(o,this[n],n,this):(o=this[n],i=!0));if(!i)throw new TypeError("Reduce of empty array with no initial value");return o}),E.fn=i.prototype={clone:function(){return E(this)},format:function(e,t){return c(this,e||H,void 0!==t?t:Math.round)},formatCurrency:function(e,t){return d(this,T[x].currency.symbol,e||A,void 0!==t?t:Math.round)},formatForeignCurrency:function(e,t,n){return f(this,e,t||A,void 0!==n?n:Math.round)},unformat:function(e){if("number"==typeof e)return e;if("string"==typeof e){var t=h(this,e);return isNaN(t)?void 0:t}},binaryByteUnits:function(){return m(this._value,R.binary.suffixes,R.binary.scale).suffix},byteUnits:function(){return m(this._value,R.general.suffixes,R.general.scale).suffix},decimalByteUnits:function(){return m(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=+e,this},add:function(e){function t(e,t){return e+n*t}var n=S.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=S.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=S(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=S(e,t);return e*n/(t*n)}return this._value=[this._value,e].reduce(t),this},difference:function(e){return Math.abs(E(this._value).subtract(e).value())}},function(){return"undefined"!=typeof process&&void 0===process.browser&&process.title&&(-1!==process.title.indexOf("node")||process.title.indexOf("meteor-tool")>0||"grunt"===process.title||"gulp"===process.title)&&!0}()&&E.loadCulturesInNode(),D?e.exports=E:("undefined"==typeof ender&&(this.numbro=E),o=[],void 0!==(r=function(){return E}.apply(t,o))&&(e.exports=r))}).call("undefined"==typeof window?this:window),window.numbro=n(51)},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(){var e={};return(0,b.objectEach)(D,function(t,n){e[n]=t()}),e}function s(e,t){-1===A.indexOf(e)&&(D[e]=t)}t.__esModule=!0,t.ITEMS=t.UNDO=t.SEPARATOR=t.ROW_BELOW=t.ROW_ABOVE=t.REMOVE_ROW=t.REMOVE_COLUMN=t.REDO=t.READ_ONLY=t.COLUMN_RIGHT=t.COLUMN_LEFT=t.CLEAR_COLUMN=t.ALIGNMENT=void 0;var a,l=n(323);Object.defineProperty(t,"ALIGNMENT",{enumerable:!0,get:function(){return l.KEY}});var u=n(324);Object.defineProperty(t,"CLEAR_COLUMN",{enumerable:!0,get:function(){return u.KEY}});var c=n(325);Object.defineProperty(t,"COLUMN_LEFT",{enumerable:!0,get:function(){return c.KEY}});var h=n(326);Object.defineProperty(t,"COLUMN_RIGHT",{enumerable:!0,get:function(){return h.KEY}});var d=n(327);Object.defineProperty(t,"READ_ONLY",{enumerable:!0,get:function(){return d.KEY}});var f=n(328);Object.defineProperty(t,"REDO",{enumerable:!0,get:function(){return f.KEY}});var p=n(329);Object.defineProperty(t,"REMOVE_COLUMN",{enumerable:!0,get:function(){return p.KEY}});var g=n(330);Object.defineProperty(t,"REMOVE_ROW",{enumerable:!0,get:function(){return g.KEY}});var v=n(331);Object.defineProperty(t,"ROW_ABOVE",{enumerable:!0,get:function(){return v.KEY}});var m=n(332);Object.defineProperty(t,"ROW_BELOW",{enumerable:!0,get:function(){return m.KEY}});var y=n(71);Object.defineProperty(t,"SEPARATOR",{enumerable:!0,get:function(){return y.KEY}});var w=n(333);Object.defineProperty(t,"UNDO",{enumerable:!0,get:function(){return w.KEY}}),t.predefinedItems=i,t.addItem=s;var b=n(2),C=o(l),S=o(u),E=o(c),O=o(h),_=o(d),R=o(f),k=o(p),T=o(g),M=o(v),x=o(m),P=o(y),H=o(w),A=t.ITEMS=[v.KEY,m.KEY,c.KEY,h.KEY,u.KEY,g.KEY,p.KEY,w.KEY,f.KEY,d.KEY,l.KEY,y.KEY],D=(a={},r(a,y.KEY,P.default),r(a,v.KEY,M.default),r(a,m.KEY,x.default),r(a,c.KEY,E.default),r(a,h.KEY,O.default),r(a,u.KEY,S.default),r(a,g.KEY,T.default),r(a,p.KEY,k.default),r(a,w.KEY,H.default),r(a,f.KEY,R.default),r(a,d.KEY,_.default),r(a,l.KEY,C.default),a)},function(e,t,n){"use strict";function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function r(){function e(e,t){l.set(e,t)}function t(e){return l.get(e)}function n(e){return l.has(e)}function r(){return[].concat(o(l.keys()))}function s(){return[].concat(o(l.values()))}var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"common";i.has(a)||i.set(a,new Map);var l=i.get(a);return{register:e,getItem:t,hasItem:n,getNames:r,getValues:s}}t.__esModule=!0,t.default=r;var i=t.collection=new Map},function(e,t){e.exports=function(e,t,n,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var o=n(29),r=n(77),i=n(42),s=n(24),a=n(378);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,h=6==e,d=5==e||h,f=t||a;return function(t,a,p){for(var g,v,m=i(t),y=r(m),w=o(a,p,3),b=s(y.length),C=0,S=n?f(t,b):l?f(t,0):void 0;b>C;C++)if((d||C in y)&&(g=y[C],v=w(g,C,m),e))if(n)S[C]=v;else if(v)switch(e){case 3:return!0;case 5:return g;case 6:return C;case 2:S.push(g)}else if(c)return!1;return h?-1:u||c?c:S}}},function(e,t,n){"use strict";var o=n(13),r=n(3),i=n(33),s=n(61),a=n(47),l=n(58),u=n(54),c=n(15),h=n(31),d=n(78),f=n(49),p=n(381);e.exports=function(e,t,n,g,v,m){var y=o[e],w=y,b=v?"set":"add",C=w&&w.prototype,S={},E=function(e){var t=C[e];i(C,e,"delete"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof w&&(m||C.forEach&&!h(function(){(new w).entries().next()}))){var O=new w,_=O[b](m?{}:-0,1)!=O,R=h(function(){O.has(1)}),k=d(function(e){new w(e)}),T=!m&&h(function(){for(var e=new w,t=5;t--;)e[b](t,t);return!e.has(-0)});k||(w=t(function(t,n){u(t,w,e);var o=p(new y,t,w);return void 0!=n&&l(n,v,o[b],o),o}),w.prototype=C,C.constructor=w),(R||T)&&(E("delete"),E("has"),v&&E("get")),(T||_)&&E(b),m&&C.clear&&delete C.clear}else w=g.getConstructor(t,e,v,b),s(w.prototype,n),a.NEED=!0;return f(w,e),S[e]=w,r(r.G+r.W+r.F*(w!=y),S),m||g.setStrong(w,e,v),w}},function(e,t,n){"use strict";var o=n(32),r=n(33),i=n(31),s=n(30),a=n(10);e.exports=function(e,t,n){var l=a(e),u=n(s,l,""[e]),c=u[0],h=u[1];i(function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})&&(r(String.prototype,e,c),o(RegExp.prototype,l,2==t?function(e,t){return h.call(e,this,t)}:function(e){return h.call(e,this)}))}},function(e,t,n){var o=n(29),r=n(265),i=n(261),s=n(18),a=n(24),l=n(276),u={},c={},t=e.exports=function(e,t,n,h,d){var f,p,g,v,m=d?function(){return e}:l(e),y=o(n,h,t?2:1),w=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(i(m)){for(f=a(e.length);f>w;w++)if((v=t?y(s(p=e[w])[0],p[1]):y(e[w]))===u||v===c)return v}else for(g=m.call(e);!(p=g.next()).done;)if((v=r(g,y,p.value,t))===u||v===c)return v};t.BREAK=u,t.RETURN=c},function(e,t){e.exports=!1},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(33);e.exports=function(e,t,n){for(var r in t)o(e,r,t[r],n);return e}},function(e,t,n){var o=n(63),r=Math.max,i=Math.min;e.exports=function(e,t){return e=o(e),0>e?r(e+t,0):i(e,t)}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(!H(e))throw Error('You declared cell type "'+e+'" as a string that is not mapped to a known object.\n Cell type must be an object or a string mapped to an object registered by "Handsontable.cellTypes.registerCellType" method');return P(e)}function i(e,t){var n=t.editor,o=t.renderer,r=t.validator;n&&(0,l.registerEditor)(e,n),o&&(0,u.registerRenderer)(e,o),r&&(0,c.registerValidator)(e,r),x(e,t)}t.__esModule=!0,t.getRegisteredCellTypes=t.getRegisteredCellTypeNames=t.hasCellType=t.getCellType=t.registerCellType=void 0;var s=n(53),a=o(s),l=n(14),u=n(9),c=n(26),h=n(290),d=o(h),f=n(291),p=o(f),g=n(292),v=o(g),m=n(293),y=o(m),w=n(294),b=o(w),C=n(295),S=o(C),E=n(296),O=o(E),_=n(297),R=o(_),k=n(298),T=o(k),M=(0,a.default)("cellTypes"),x=M.register,P=M.getItem,H=M.hasItem,A=M.getNames,D=M.getValues;i("autocomplete",d.default),i("checkbox",p.default),i("date",v.default),i("dropdown",y.default),i("handsontable",b.default),i("numeric",S.default),i("password",O.default),i("text",R.default),i("time",T.default),t.registerCellType=i,t.getCellType=r,t.hasCellType=H,t.getRegisteredCellTypeNames=A,t.getRegisteredCellTypes=D},function(e,t,n){"use strict";function o(e){return e&&e.__esModule?e:{default:e}}function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);e.length>t;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){function n(){var e=!1;return{validatorsInQueue:0,valid:!0,addValidatorToQueue:function(){this.validatorsInQueue++,e=!1},removeValidatorFormQueue:function(){this.validatorsInQueue=0>this.validatorsInQueue-1?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 r(){var n;e.length&&(n=B.runHooks("beforeChange",e,t),(0,d.isFunction)(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)."):!1===n&&e.splice(0,e.length)),o()}var i=new n;i.onQueueEmpty=r;for(var s=e.length-1;s>=0;s--)if(null===e[s])e.splice(s,1);else{var a=e[s][0],l=T.propToCol(e[s][1]),h=B.getCellMeta(a,l);if("numeric"===h.type&&"string"==typeof e[s][3]&&e[s][3].length>0&&(/^-?[\d\s]*(\.|,)?\d*$/.test(e[s][3])||h.format)){var p=e[s][3].length;u.default.culture((0,f.isUndefined)(h.language)?"en-US":e[s][3].indexOf(".")===p-3&&-1===e[s][3].indexOf(",")?"en-US":h.language);u.default.cultureData(u.default.culture());e[s][3]=u.default.validate(e[s][3])&&!isNaN(e[s][3])?parseFloat(e[s][3]):(0,u.default)().unformat(e[s][3])||e[s][3]}B.getCellValidator(h)&&(i.addValidatorToQueue(),B.validateCell(e[s][3],h,function(t,n){return function(o){if("boolean"!=typeof o)throw Error("Validation error: result is not boolean");if(!1===o&&!1===n.allowInvalid){e.splice(t,1),n.valid=!0;var r=B.getCell(n.row,n.col);(0,c.removeClass)(r,B.getSettings().invalidCellClassName),--t}i.removeValidatorFormQueue()}}(s,h),t))}i.checkIfQueueIsEmpty()}function i(e,t){var n=e.length-1;if(n>=0){for(;n>=0;n--){var o=!1;if(null!==e[n]){if(null!=e[n][2]||null!=e[n][3]){if(w.settings.allowInsertRow)for(;e[n][0]>B.countRows()-1;){var r=T.createRow(void 0,void 0,t);if(0===r){o=!0;break}}if(!o){if("array"===B.dataType&&(!w.settings.columns||0===w.settings.columns.length)&&w.settings.allowInsertColumn)for(;T.propToCol(e[n][1])>B.countCols()-1;)T.createCol(void 0,void 0,t);T.set(e[n][0],e[n][1],e[n][3])}}}else e.splice(n,1)}B.forceFullRender=!0,N.adjustRowsAndCols(),B.runHooks("beforeChangeRender",e,t),I.refreshBorders(null,!0),B.view.wt.wtOverlays.adjustElementsSize(),B.runHooks("afterChange",e,t||"edit");var i=B.getActiveEditor();i&&(0,f.isDefined)(i.refreshValue)&&i.refreshValue()}}function l(e,t,n){return"object"===(void 0===e?"undefined":a(e))?e:[[e,t,n]]}function g(e){if((0,C.hasOwnProperty)(e,"type")){var t,n={};"object"===a(e.type)?t=e.type:"string"==typeof e.type&&(t=(0,W.getCellType)(e.type));for(var o in t)(0,C.hasOwnProperty)(t,o)&&!(0,C.hasOwnProperty)(e,o)&&(n[o]=t[o]);return n}}function m(){throw Error("This method cannot be called because this Handsontable instance has been destroyed")}var w,T,x,N,I,V,B=this,Y=function(){},z=new b.default(B);(0,C.extend)(Y.prototype,j.default.prototype),(0,C.extend)(Y.prototype,t),(0,C.extend)(Y.prototype,g(t)),this.rootElement=e,this.isHotTableEnv=(0,c.isChildOfWebComponentTable)(this.rootElement),b.default.isHotTableEnv=this.isHotTableEnv,this.container=document.createElement("DIV"),this.renderCall=!1,e.insertBefore(this.container,e.firstChild),this.guid="ht_"+(0,R.randomString)();var U=(0,A.getTranslator)(B);x=new P.default(B),this.rootElement.id&&"ht_"!==this.rootElement.id.substring(0,3)||(this.rootElement.id=this.guid),w={cellSettings:[],columnSettings:[],columnsSettingConflicts:["data","width"],settings:new Y,selRange:null,isPopulated:null,scrollable:null,firstRun:!0},N={alter:function(e,t,n,o,i){function s(e,t,n,o){var i=function(){var e=void 0;return"array"===o?e=[]:"object"===o&&(e={}),e},s=(0,S.arrayMap)(Array(n),function(){return i()});s.unshift(t,0),e.splice.apply(e,r(s))}var a;switch(n=n||1,e){case"insert_row":var l=B.countSourceRows();if(B.getSettings().maxRows===l)return;t=(0,f.isDefined)(t)?t:l,a=T.createRow(t,n,o),s(w.cellSettings,t,n,"array"),a&&(I.isSelected()&&w.selRange.from.row>=t?(w.selRange.from.row+=a,I.transformEnd(a,0)):I.refreshBorders());break;case"insert_col":a=T.createCol(t,n,o);for(var u=0,c=B.countSourceRows();c>u;u++)w.cellSettings[u]&&s(w.cellSettings[u],t,n);if(a){if(Array.isArray(B.getSettings().colHeaders)){var h=[t,0];h.length+=a,Array.prototype.splice.apply(B.getSettings().colHeaders,h)}I.isSelected()&&w.selRange.from.col>=t?(w.selRange.from.col+=a,I.transformEnd(0,a)):I.refreshBorders()}break;case"remove_row":T.removeRow(t,n,o),w.cellSettings.splice(t,n);var d=B.countRows(),p=B.getSettings().fixedRowsTop;t+1>p||(B.getSettings().fixedRowsTop-=Math.min(n,p-t));var g=B.getSettings().fixedRowsBottom;g&&t>=d-g&&(B.getSettings().fixedRowsBottom-=Math.min(n,g)),N.adjustRowsAndCols(),I.refreshBorders();break;case"remove_col":var v=U.toPhysicalColumn(t);T.removeCol(t,n,o);for(var m=0,y=B.countSourceRows();y>m;m++)w.cellSettings[m]&&w.cellSettings[m].splice(v,n);var b=B.getSettings().fixedColumnsLeft;t+1>b||(B.getSettings().fixedColumnsLeft-=Math.min(n,b-t)),Array.isArray(B.getSettings().colHeaders)&&(void 0===v&&(v=-1),B.getSettings().colHeaders.splice(v,n)),N.adjustRowsAndCols(),I.refreshBorders();break;default:throw Error('There is no such action "'+e+'"')}i||N.adjustRowsAndCols()},adjustRowsAndCols:function(){if(w.settings.minRows){var e=B.countRows();if(w.settings.minRows>e)for(var t=0,n=w.settings.minRows;n-e>t;t++)T.createRow(B.countRows(),1,"auto")}if(w.settings.minSpareRows){var o=B.countEmptyRows(!0);if(w.settings.minSpareRows>o)for(;w.settings.minSpareRows>o&&B.countSourceRows()r)for(;w.settings.minSpareCols>r&&B.countCols()i-1?(l=i-1,a=!0,c>l&&(c=l)):c>i-1&&(c=i-1,a=!0,l>c&&(l=c)),u>s-1?(u=s-1,a=!0,h>u&&(h=u)):h>s-1&&(h=s-1,a=!0,u>h&&(u=h)),a&&B.selectCell(l,u,c,h)}B.view&&B.view.wt.wtOverlays.adjustElementsSize()},populateFromArray:function(e,t,n,o,i,s,l){var u,c,h,d,p=[],g={};if(0===(c=t.length))return!1;var v,m,y,b;switch(i){case"shift_down":for(v=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,t=(0,H.translateRowsToColumns)(t),h=0,d=t.length,y=Math.max(d,v);y>h;h++)if(d>h){var S;for(u=0,c=t[h].length;m-c>u;u++)t[h].push(t[h][u%c]);t[h].unshift(e.col+h,e.row,0),(S=B).spliceCol.apply(S,r(t[h]))}else{var E;t[h%d][0]=e.col+h,(E=B).spliceCol.apply(E,r(t[h%d]))}break;case"shift_right":for(v=n?n.col-e.col+1:0,m=n?n.row-e.row+1:0,u=0,c=t.length,b=Math.max(c,m);b>u;u++)if(c>u){var O;for(h=0,d=t[u].length;v-d>h;h++)t[u].push(t[u][h%d]);t[u].unshift(e.row+u,e.col,0),(O=B).spliceRow.apply(O,r(t[u]))}else{var _;t[u%c][0]=e.row+u,(_=B).spliceRow.apply(_,r(t[u%c]))}break;case"overwrite":default:g.row=e.row,g.col=e.col;var R={row:n&&e?n.row-e.row+1:1,col:n&&e?n.col-e.col+1:1},k=0,T=0,M=!0,x=void 0,P=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=t[e%t.length];return null!==n?o[n%o.length]:o},A=t.length,D=n?n.row-e.row+1:0;for(c=n?D:Math.max(A,D),u=0;c>u&&(!(n&&g.row>n.row&&D>A||!w.settings.allowInsertRow&&g.row>B.countRows()-1)&&g.rowh&&(!(n&&g.col>n.col&&I>L||!w.settings.allowInsertColumn&&g.col>B.countCols()-1)&&g.col0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];B.selection.selectedHeader.rows=e,B.selection.selectedHeader.cols=t,B.selection.selectedHeader.corner=n},begin:function(){B.selection.inProgress=!0},finish:function(){var e=B.getSelected();B.runHooks("afterSelectionEnd",e[0],e[1],e[2],e[3]),B.runHooks("afterSelectionEndByProp",e[0],B.colToProp(e[1]),e[2],B.colToProp(e[3])),B.selection.inProgress=!1},isInProgress:function(){return B.selection.inProgress},setRangeStart:function(e,t){B.runHooks("beforeSetRangeStart",e),w.selRange=new D.CellRange(e,e,e),I.setRangeEnd(e,null,t)},setRangeStartOnly:function(e){B.runHooks("beforeSetRangeStartOnly",e),w.selRange=new D.CellRange(e,e,e)},setRangeEnd:function(e,t,n){if(null!==w.selRange){var o,r=!1,i=!0,s=B.view.wt.wtTable.getFirstVisibleRow(),a=B.view.wt.wtTable.getFirstVisibleColumn(),l={row:null,col:null};B.runHooks("beforeSetRangeEnd",e),B.selection.begin(),l.row=0>e.row?s:e.row,l.col=0>e.col?a:e.col,w.selRange.to=new D.CellCoords(l.row,l.col),w.settings.multiSelect||(w.selRange.from=e),B.view.wt.selections.current.clear(),o=B.getCellMeta(w.selRange.highlight.row,w.selRange.highlight.col).disableVisualSelection,"string"==typeof o&&(o=[o]),(!1===o||Array.isArray(o)&&-1===o.indexOf("current"))&&B.view.wt.selections.current.add(w.selRange.highlight),B.view.wt.selections.area.clear(),(!1===o||Array.isArray(o)&&-1===o.indexOf("area"))&&I.isMultiple()&&(B.view.wt.selections.area.add(w.selRange.from),B.view.wt.selections.area.add(w.selRange.to)),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&(B.view.wt.selections.highlight.clear(),B.view.wt.selections.highlight.add(w.selRange.from),B.view.wt.selections.highlight.add(w.selRange.to));var u=(0,C.createObjectPropListener)("value");B.runHooks("afterSelection",w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col,u),B.runHooks("afterSelectionByProp",w.selRange.from.row,T.colToProp(w.selRange.from.col),w.selRange.to.row,T.colToProp(w.selRange.to.col),u),(0===w.selRange.from.row&&w.selRange.to.row===B.countRows()-1&&B.countRows()>1||0===w.selRange.from.col&&w.selRange.to.col===B.countCols()-1&&B.countCols()>1)&&(r=!0),(0>e.row||0>e.col)&&(i=!1),u.isTouched()&&(t=!u.value),!1!==t&&!r&&i&&B.view.scrollViewport(w.selRange.from&&!I.isMultiple()?w.selRange.from:e),I.selectedHeader.rows&&I.selectedHeader.cols?(0,c.addClass)(B.rootElement,["ht__selection--rows","ht__selection--columns"]):I.selectedHeader.rows?((0,c.removeClass)(B.rootElement,"ht__selection--columns"),(0,c.addClass)(B.rootElement,"ht__selection--rows")):I.selectedHeader.cols?((0,c.removeClass)(B.rootElement,"ht__selection--rows"),(0,c.addClass)(B.rootElement,"ht__selection--columns")):(0,c.removeClass)(B.rootElement,["ht__selection--rows","ht__selection--columns"]),I.refreshBorders(null,n)}},refreshBorders:function(e,t){t||V.destroyEditor(e),B.view.render(),I.isSelected()&&!t&&V.prepareEditor()},isMultiple:function(){var e=!(w.selRange.to.col===w.selRange.from.col&&w.selRange.to.row===w.selRange.from.row),t=B.runHooks("afterIsMultipleSelection",e);if(e)return t},transformStart:function(e,t,n,o){var r,i,s,a,l=new D.CellCoords(e,t),u=0,c=0;B.runHooks("modifyTransformStart",l),r=B.countRows(),i=B.countCols(),a=B.getSettings().fixedRowsBottom,w.selRange.highlight.row+e>r-1?n&&w.settings.minSpareRows>0&&(!a||r-a-1>w.selRange.highlight.row)?(B.alter("insert_row",r),r=B.countRows()):w.settings.autoWrapCol&&(l.row=1-r,l.col=w.selRange.highlight.col+l.col==i-1?1-i:1):w.settings.autoWrapCol&&0>w.selRange.highlight.row+l.row&&w.selRange.highlight.col+l.col>=0&&(l.row=r-1,l.col=w.selRange.highlight.col+l.col==0?i-1:-1),w.selRange.highlight.col+l.col>i-1?n&&w.settings.minSpareCols>0?(B.alter("insert_col",i),i=B.countCols()):w.settings.autoWrapRow&&(l.row=w.selRange.highlight.row+l.row==r-1?1-r:1,l.col=1-i):w.settings.autoWrapRow&&0>w.selRange.highlight.col+l.col&&w.selRange.highlight.row+l.row>=0&&(l.row=w.selRange.highlight.row+l.row==0?r-1:-1,l.col=i-1),s=new D.CellCoords(w.selRange.highlight.row+l.row,w.selRange.highlight.col+l.col),0>s.row?(u=-1,s.row=0):s.row>0&&s.row>=r&&(u=1,s.row=r-1),0>s.col?(c=-1,s.col=0):s.col>0&&s.col>=i&&(c=1,s.col=i-1),B.runHooks("afterModifyTransformStart",s,u,c),I.setRangeStart(s,o)},transformEnd:function(e,t){var n,o,r,i=new D.CellCoords(e,t),s=0,a=0;B.runHooks("modifyTransformEnd",i),n=B.countRows(),o=B.countCols(),r=new D.CellCoords(w.selRange.to.row+i.row,w.selRange.to.col+i.col),0>r.row?(s=-1,r.row=0):r.row>0&&r.row>=n&&(s=1,r.row=n-1),0>r.col?(a=-1,r.col=0):r.col>0&&r.col>=o&&(a=1,r.col=o-1),B.runHooks("afterModifyTransformEnd",r,s,a),I.setRangeEnd(r,!0)},isSelected:function(){return null!==w.selRange},inInSelection:function(e){return!!I.isSelected()&&w.selRange.includes(e)},deselect:function(){I.isSelected()&&(B.selection.inProgress=!1,w.selRange=null,B.view.wt.selections.current.clear(),B.view.wt.selections.area.clear(),(w.settings.currentHeaderClassName||w.settings.currentRowClassName||w.settings.currentColClassName)&&B.view.wt.selections.highlight.clear(),V.destroyEditor(),I.refreshBorders(),(0,c.removeClass)(B.rootElement,["ht__selection--rows","ht__selection--columns"]),B.runHooks("afterDeselect"))},selectAll:function(){w.settings.multiSelect&&(I.setSelectedHeaders(!0,!0,!0),I.setRangeStart(new D.CellCoords(0,0)),I.setRangeEnd(new D.CellCoords(B.countRows()-1,B.countCols()-1),!1))},empty:function(){if(I.isSelected()){var e,t,n=w.selRange.getTopLeftCorner(),o=w.selRange.getBottomRightCorner(),r=[];for(e=n.row;o.row>=e;e++)for(t=n.col;o.col>=t;t++)B.getCellMeta(e,t).readOnly||r.push([e,t,""]);B.setDataAtCell(r)}}},this.init=function(){x.setData(w.settings.data),B.runHooks("beforeInit"),(0,p.isMobileBrowser)()&&(0,c.addClass)(B.rootElement,"mobile"),this.updateSettings(w.settings,!0),this.view=new M.default(this),V=new y.default(B,w,I,T),this.forceFullRender=!0,B.runHooks("init"),this.view.render(),"object"===a(w.firstRun)&&(B.runHooks("afterChange",w.firstRun[0],w.firstRun[1]),w.firstRun=!1),B.runHooks("afterInit")},this.validateCell=function(e,t,n,o){function r(e){var o=t.visualCol,r=t.visualRow,i=B.getCell(r,o,!0);i&&"TH"!=i.nodeName&&B.view.wt.wtSettings.settings.cellRenderer(r,o,i),n(e)}var i=B.getCellValidator(t);(0,f.isRegExp)(i)&&(i=function(e){return function(t,n){n(e.test(t))}}(i)),(0,d.isFunction)(i)?(e=B.runHooks("beforeValidate",e,t.visualRow,t.prop,o),B._registerTimeout(setTimeout(function(){i.call(t,e,function(n){n=B.runHooks("afterValidate",n,e,t.visualRow,t.prop,o),t.valid=n,r(n),B.runHooks("postAfterValidate",n,e,t.visualRow,t.prop,o)})},0))):B._registerTimeout(setTimeout(function(){t.valid=!0,r(t.valid)},0))},this.setDataAtCell=function(e,t,n,r){var s,u,c,h=l(e,t,n),d=[];for(s=0,u=h.length;u>s;s++){if("object"!==a(h[s]))throw Error("Method `setDataAtCell` accepts row number or changes array of arrays as its first parameter");if("number"!=typeof h[s][1])throw Error("Method `setDataAtCell` accepts row and column number as its parameters. If you want to use object property name, use method `setDataAtRowProp`");c=T.colToProp(h[s][1]),d.push([h[s][0],c,x.getAtCell(U.toPhysicalRow(h[s][0]),h[s][1]),h[s][2]])}r||"object"!==(void 0===e?"undefined":a(e))||(r=t),B.runHooks("afterSetDataAtCell",d,r),o(d,r,function(){i(d,r)})},this.setDataAtRowProp=function(e,t,n,r){var s,u,c=l(e,t,n),h=[];for(s=0,u=c.length;u>s;s++)h.push([c[s][0],c[s][1],x.getAtCell(U.toPhysicalRow(c[s][0]),c[s][1]),c[s][2]]);r||"object"!==(void 0===e?"undefined":a(e))||(r=t),B.runHooks("afterSetDataAtRowProp",h,r),o(h,r,function(){i(h,r)})},this.listen=function(){F=B.guid},this.unlisten=function(){F=null},this.isListening=function(){return F===B.guid},this.destroyEditor=function(e){I.refreshBorders(e)},this.populateFromArray=function(e,t,n,o,r,i,s,l,u){var c;if("object"!==(void 0===n?"undefined":a(n))||"object"!==a(n[0]))throw Error("populateFromArray parameter `input` must be an array of arrays");return c="number"==typeof o?new D.CellCoords(o,r):null,N.populateFromArray(new D.CellCoords(e,t),n,c,i,s,l,u)},this.spliceCol=function(e,t,n){var o;return(o=T).spliceCol.apply(o,arguments)},this.spliceRow=function(e,t,n){var o;return(o=T).spliceRow.apply(o,arguments)},this.getSelected=function(){if(I.isSelected())return[w.selRange.from.row,w.selRange.from.col,w.selRange.to.row,w.selRange.to.col]},this.getSelectedRange=function(){if(I.isSelected())return w.selRange},this.render=function(){B.view&&(B.renderCall=!0,B.forceFullRender=!0,I.refreshBorders(null,!0))},this.loadData=function(e){if(B.dataType=Array.isArray(w.settings.dataSchema)?"array":(0,d.isFunction)(w.settings.dataSchema)?"function":"object",T&&T.destroy(),T=new v.default(B,w,Y),"object"===(void 0===e?"undefined":a(e))&&null!==e)e.push&&e.splice||(e=[e]);else{if(null!==e)throw Error("loadData only accepts array of objects or array of arrays ("+(void 0===e?"undefined":a(e))+" given)");e=[];var t,n=0,o=0,r=T.getSchema();for(n=0,o=w.settings.startRows;o>n;n++)if("object"!==B.dataType&&"function"!==B.dataType||!w.settings.dataSchema)if("array"===B.dataType)t=(0,C.deepClone)(r[0]),e.push(t);else{t=[];for(var i=0,s=w.settings.startCols;s>i;i++)t.push(null);e.push(t)}else t=(0,C.deepClone)(r),e.push(t)}w.isPopulated=!1,Y.prototype.data=e,Array.isArray(e[0])&&(B.dataType="array"),T.dataSource=e,x.data=e,x.dataType=B.dataType,x.colToProp=T.colToProp.bind(T),x.propToCol=T.propToCol.bind(T),function(){w.cellSettings.length=0}(),N.adjustRowsAndCols(),B.runHooks("afterLoadData",w.firstRun),w.firstRun?w.firstRun=[null,"loadData"]:(B.runHooks("afterChange",null,"loadData"),B.render()),w.isPopulated=!0},this.getData=function(e,t,n,o){return(0,f.isUndefined)(e)?T.getAll():T.getRange(new D.CellCoords(e,t),new D.CellCoords(n,o),T.DESTINATION_RENDERER)},this.getCopyableText=function(e,t,n,o){return T.getCopyableText(new D.CellCoords(e,t),new D.CellCoords(n,o))},this.getCopyableData=function(e,t){return T.getCopyable(e,T.colToProp(t))},this.getSchema=function(){return T.getSchema()},this.updateSettings=function(e,t){var n=!1,o=void 0,r=void 0,i=void 0;if((0,f.isDefined)(e.rows))throw Error('"rows" setting is no longer supported. do you mean startRows, minRows or maxRows?');if((0,f.isDefined)(e.cols))throw Error('"cols" setting is no longer supported. do you mean startCols, minCols or maxCols?');for(o in e)"data"!==o&&(L.default.getSingleton().getRegistered().indexOf(o)>-1?((0,d.isFunction)(e[o])||Array.isArray(e[o]))&&(e[o].initialHook=!0,B.addHook(o,e[o])):!t&&(0,C.hasOwnProperty)(e,o)&&(Y.prototype[o]=e[o]));void 0===e.data&&void 0===w.settings.data?B.loadData(null):void 0!==e.data?B.loadData(e.data):void 0!==e.columns&&T.createMap(),i=B.countCols();var s=e.columns||Y.prototype.columns;if(s&&(0,d.isFunction)(s)&&(i=B.countSourceCols(),n=!0),void 0===e.cell&&void 0===e.cells&&void 0===e.columns||(w.cellSettings.length=0),i>0){var a=void 0,l=void 0;for(o=0,r=0;i>o;o++)n&&!s(o)||(w.columnSettings[r]=(0,h.columnFactory)(Y,w.columnsSettingConflicts),a=w.columnSettings[r].prototype,s&&(l=n?s(o):s[r])&&((0,C.extend)(a,l),(0,C.extend)(a,g(l))),r++)}if((0,f.isDefined)(e.cell))for(var u in e.cell)if((0,C.hasOwnProperty)(e.cell,u)){var p=e.cell[u];B.setCellMetaObject(p.row,p.col,p)}B.runHooks("afterCellMetaReset"),(0,f.isDefined)(e.className)&&(Y.prototype.className&&(0,c.removeClass)(B.rootElement,Y.prototype.className),e.className&&(0,c.addClass)(B.rootElement,e.className));var v=B.rootElement.style.height;""!==v&&(v=parseInt(B.rootElement.style.height,10));var m=e.height;if((0,d.isFunction)(m)&&(m=m()),t){B.rootElement.getAttribute("style")&&B.rootElement.setAttribute("data-initialstyle",B.rootElement.getAttribute("style"))}if(null===m){var y=B.rootElement.getAttribute("data-initialstyle");y&&(y.indexOf("height")>-1||y.indexOf("overflow")>-1)?B.rootElement.setAttribute("style",y):(B.rootElement.style.height="",B.rootElement.style.overflow="")}else void 0!==m&&(B.rootElement.style.height=m+"px",B.rootElement.style.overflow="hidden");if(void 0!==e.width){var b=e.width;(0,d.isFunction)(b)&&(b=b()),B.rootElement.style.width=b+"px"}t||(T.clearLengthCache(),B.view&&B.view.wt.wtViewport.resetHasOversizedColumnHeadersMarked(),B.runHooks("afterUpdateSettings")),N.adjustRowsAndCols(),B.view&&!w.firstRun&&(B.forceFullRender=!0,I.refreshBorders(null,!0)),t||!B.view||""!==v&&""!==m&&void 0!==m||v===m||B.view.wt.wtOverlays.updateMainScrollableElements()},this.getValue=function(){var e=B.getSelected();if(Y.prototype.getValue){if((0,d.isFunction)(Y.prototype.getValue))return Y.prototype.getValue.call(B);if(e)return B.getData()[e[0]][Y.prototype.getValue]}else if(e)return B.getDataAtCell(e[0],e[1])},this.getSettings=function(){return w.settings},this.clear=function(){I.selectAll(),I.empty()},this.alter=function(e,t,n,o,r){N.alter(e,t,n,o,r)},this.getCell=function(e,t,n){return B.view.getCellAtCoords(new D.CellCoords(e,t),n)},this.getCoords=function(e){return this.view.wt.wtTable.getCoords.call(this.view.wt.wtTable,e)},this.colToProp=function(e){return T.colToProp(e)},this.propToCol=function(e){return T.propToCol(e)},this.toVisualRow=function(e){return U.toVisualRow(e)},this.toVisualColumn=function(e){return U.toVisualColumn(e)},this.toPhysicalRow=function(e){return U.toPhysicalRow(e)},this.toPhysicalColumn=function(e){return U.toPhysicalColumn(e)},this.getDataAtCell=function(e,t){return T.get(e,T.colToProp(t))},this.getDataAtRowProp=function(e,t){return T.get(e,t)},this.getDataAtCol=function(e){var t=[];return t.concat.apply(t,r(T.getRange(new D.CellCoords(0,e),new D.CellCoords(w.settings.data.length-1,e),T.DESTINATION_RENDERER)))},this.getDataAtProp=function(e){var t,n=[];return t=T.getRange(new D.CellCoords(0,T.propToCol(e)),new D.CellCoords(w.settings.data.length-1,T.propToCol(e)),T.DESTINATION_RENDERER),n.concat.apply(n,r(t))},this.getSourceData=function(e,t,n,o){return void 0===e?x.getData():x.getByRange(new D.CellCoords(e,t),new D.CellCoords(n,o))},this.getSourceDataArray=function(e,t,n,o){return void 0===e?x.getData(!0):x.getByRange(new D.CellCoords(e,t),new D.CellCoords(n,o),!0)},this.getSourceDataAtCol=function(e){return x.getAtColumn(e)},this.getSourceDataAtRow=function(e){return x.getAtRow(e)},this.getSourceDataAtCell=function(e,t){return x.getAtCell(e,t)},this.getDataAtRow=function(e){return T.getRange(new D.CellCoords(e,0),new D.CellCoords(e,this.countCols()-1),T.DESTINATION_RENDERER)[0]||[]},this.getDataType=function(e,t,n,o){var r=this,i=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(0,k.rangeEach)(Math.min(e,n),Math.max(e,n),function(e){var n=!0;return(0,k.rangeEach)(Math.min(t,o),Math.max(t,o),function(t){var o=r.getCellMeta(e,t);return s=o.type,i?n=i===s:i=s,n}),a=n?s:"mixed",n}),a},this.removeCellMeta=function(e,t,n){void 0!=B.getCellMeta(e,t)[n]&&delete w.cellSettings[e][t][n]},this.spliceCellsMeta=function(e,t){for(var n,o=arguments.length,r=Array(o>2?o-2:0),i=2;o>i;i++)r[i-2]=arguments[i];(n=w.cellSettings).splice.apply(n,[e,t].concat(r))},this.setCellMetaObject=function(e,t,n){if("object"===(void 0===n?"undefined":a(n)))for(var o in n)if((0,C.hasOwnProperty)(n,o)){var r=n[o];this.setCellMeta(e,t,o,r)}},this.setCellMeta=function(e,t,n,o){var r=U.toPhysical(e,t),i=s(r,2);e=i[0],t=i[1],w.columnSettings[t]||(w.columnSettings[t]=(0,h.columnFactory)(Y,w.columnsSettingConflicts)),w.cellSettings[e]||(w.cellSettings[e]=[]),w.cellSettings[e][t]||(w.cellSettings[e][t]=new w.columnSettings[t]),w.cellSettings[e][t][n]=o,B.runHooks("afterSetCellMeta",e,t,n,o)},this.getCellsMeta=function(){return(0,S.arrayFlatten)(w.cellSettings)},this.getCellMeta=function(e,t){var n,o=T.colToProp(t),r=e,i=t,a=U.toPhysical(e,t),l=s(a,2);if(e=l[0],t=l[1],w.columnSettings[t]||(w.columnSettings[t]=(0,h.columnFactory)(Y,w.columnsSettingConflicts)),w.cellSettings[e]||(w.cellSettings[e]=[]),w.cellSettings[e][t]||(w.cellSettings[e][t]=new w.columnSettings[t]),n=w.cellSettings[e][t],n.row=e,n.col=t,n.visualRow=r,n.visualCol=i,n.prop=o,n.instance=B,B.runHooks("beforeGetCellMeta",e,t,n),(0,C.extend)(n,g(n)),n.cells){var u=n.cells.call(n,e,t,o);u&&((0,C.extend)(n,u),(0,C.extend)(n,g(u)))}return B.runHooks("afterGetCellMeta",e,t,n),n},this.getCellMetaAtRow=function(e){return w.cellSettings[e]},this.isColumnModificationAllowed=function(){return!("object"===B.dataType||B.getSettings().columns)};var K=(0,H.cellMethodLookupFactory)("renderer");this.getCellRenderer=function(e,t){return(0,O.getRenderer)(K.call(this,e,t))},this.getCellEditor=(0,H.cellMethodLookupFactory)("editor");var G=(0,H.cellMethodLookupFactory)("validator");this.getCellValidator=function(e,t){var n=G.call(this,e,t);return"string"==typeof n&&(n=(0,_.getValidator)(n)),n},this.validateCells=function(e){var t=new n;e&&(t.onQueueEmpty=e);for(var o=B.countRows()-1;o>=0;){for(var r=B.countCols()-1;r>=0;)t.addValidatorToQueue(),B.validateCell(B.getDataAtCell(o,r),B.getCellMeta(o,r),function(e){if("boolean"!=typeof e)throw Error("Validation error: result is not boolean");!1===e&&(t.valid=!1),t.removeValidatorFormQueue()},"validateCells"),r--;o--}t.checkIfQueueIsEmpty()},this.getRowHeader=function(e){var t=w.settings.rowHeaders;return void 0!==e&&(e=B.runHooks("modifyRowHeader",e)),void 0===e?(t=[],(0,k.rangeEach)(B.countRows()-1,function(e){t.push(B.getRowHeader(e))})):Array.isArray(t)&&void 0!==t[e]?t=t[e]:(0,d.isFunction)(t)?t=t(e):t&&"string"!=typeof t&&"number"!=typeof t&&(t=e+1),t},this.hasRowHeaders=function(){return!!w.settings.rowHeaders},this.hasColHeaders=function(){if(void 0!==w.settings.colHeaders&&null!==w.settings.colHeaders)return!!w.settings.colHeaders;for(var e=0,t=B.countCols();t>e;e++)if(B.getColHeader(e))return!0;return!1},this.getColHeader=function(e){var t=w.settings.columns&&(0,d.isFunction)(w.settings.columns),n=w.settings.colHeaders;if(void 0===(e=B.runHooks("modifyColHeader",e))){for(var o=[],r=t?B.countSourceCols():B.countCols(),i=0;r>i;i++)o.push(B.getColHeader(i));n=o}else{var s=e;e=B.runHooks("modifyCol",e);var a=function(e){for(var t=[],n=B.countSourceCols(),o=0;n>o;o++)(0,d.isFunction)(B.getSettings().columns)&&B.getSettings().columns(o)&&t.push(o);return t[e]}(e);w.settings.columns&&(0,d.isFunction)(w.settings.columns)&&w.settings.columns(a)&&w.settings.columns(a).title?n=w.settings.columns(a).title:w.settings.columns&&w.settings.columns[e]&&w.settings.columns[e].title?n=w.settings.columns[e].title:Array.isArray(w.settings.colHeaders)&&void 0!==w.settings.colHeaders[e]?n=w.settings.colHeaders[e]:(0,d.isFunction)(w.settings.colHeaders)?n=w.settings.colHeaders(e):w.settings.colHeaders&&"string"!=typeof w.settings.colHeaders&&"number"!=typeof w.settings.colHeaders&&(n=(0,H.spreadsheetColumnLabel)(s))}return n},this._getColWidthFromSettings=function(e){var t=B.getCellMeta(0,e),n=t.width;if(void 0!==n&&n!==w.settings.width||(n=t.colWidths),void 0!==n&&null!==n){switch(void 0===n?"undefined":a(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=B._getColWidthFromSettings(e);return t=B.runHooks("modifyColWidth",t,e),void 0===t&&(t=D.ViewportColumnsCalculator.DEFAULT_WIDTH),t},this._getRowHeightFromSettings=function(e){var t=w.settings.rowHeights;if(void 0!==t&&null!==t){switch(void 0===t?"undefined":a(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=B._getRowHeightFromSettings(e);return t=B.runHooks("modifyRowHeight",t,e)},this.countSourceRows=function(){return B.runHooks("modifySourceLength")||(B.getSourceData()?B.getSourceData().length:0)},this.countSourceCols=function(){var e=B.getSourceData()&&B.getSourceData()[0]?B.getSourceData()[0]:[];return(0,C.isObject)(e)?(0,C.deepObjectSize)(e):e.length||0},this.countRows=function(){return T.getLength()},this.countCols=function(){var e=this.getSettings().maxCols,t=!1,n=0;if("array"===B.dataType&&(t=w.settings.data&&w.settings.data[0]&&w.settings.data[0].length),t&&(n=w.settings.data[0].length),w.settings.columns){if((0,d.isFunction)(w.settings.columns))if("array"===B.dataType){for(var o=0,r=0;n>r;r++)w.settings.columns(r)&&o++;n=o}else"object"!==B.dataType&&"function"!==B.dataType||(n=T.colToPropCache.length);else n=w.settings.columns.length}else"object"!==B.dataType&&"function"!==B.dataType||(n=T.colToPropCache.length);return Math.min(e,n)},this.rowOffset=function(){return B.view.wt.wtTable.getFirstRenderedRow()},this.colOffset=function(){return B.view.wt.wtTable.getFirstRenderedColumn()},this.countRenderedRows=function(){return B.view.wt.drawn?B.view.wt.wtTable.getRenderedRowsCount():-1},this.countVisibleRows=function(){return B.view.wt.drawn?B.view.wt.wtTable.getVisibleRowsCount():-1},this.countRenderedCols=function(){return B.view.wt.drawn?B.view.wt.wtTable.getRenderedColumnsCount():-1},this.countVisibleCols=function(){return B.view.wt.drawn?B.view.wt.wtTable.getVisibleColumnsCount():-1},this.countEmptyRows=function(e){for(var t,n=B.countRows()-1,o=0;n>=0;){if(t=B.runHooks("modifyRow",n),B.isEmptyRow(t))o++;else if(e)break;n--}return o},this.countEmptyCols=function(e){if(1>B.countRows())return 0;for(var t=B.countCols()-1,n=0;t>=0;){if(B.isEmptyCol(t))n++;else if(e)break;t--}return n},this.isEmptyRow=function(e){return w.settings.isEmptyRow.call(B,e)},this.isEmptyCol=function(e){return w.settings.isEmptyCol.call(B,e)},this.selectCell=function(e,t,n,o,r,i){var s;if(i=(0,f.isUndefined)(i)||!0===i,"number"!=typeof e||0>e||e>=B.countRows())return!1;if("number"!=typeof t||0>t||t>=B.countCols())return!1;if((0,f.isDefined)(n)){if("number"!=typeof n||0>n||n>=B.countRows())return!1;if("number"!=typeof o||0>o||o>=B.countCols())return!1}return s=new D.CellCoords(e,t),w.selRange=new D.CellRange(s,s,s),i&&B.listen(),(0,f.isUndefined)(n)?I.setRangeEnd(w.selRange.from,r):I.setRangeEnd(new D.CellCoords(n,o),r),B.selection.finish(),!0},this.selectCellByProp=function(e,t,n,o,r){var i;return arguments[1]=T.propToCol(arguments[1]),(0,f.isDefined)(arguments[3])&&(arguments[3]=T.propToCol(arguments[3])),(i=B).selectCell.apply(i,arguments)},this.deselectCell=function(){I.deselect()},this.scrollViewportTo=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==e&&(0>e||e>=B.countRows()))return!1;if(void 0!==t&&(0>t||t>=B.countCols()))return!1;var r=!1;return void 0!==e&&void 0!==t&&(B.view.wt.wtOverlays.topOverlay.scrollTo(e,n),B.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),r=!0),"number"==typeof e&&"number"!=typeof t&&(B.view.wt.wtOverlays.topOverlay.scrollTo(e,n),r=!0),"number"==typeof t&&"number"!=typeof e&&(B.view.wt.wtOverlays.leftOverlay.scrollTo(t,o),r=!0),r},this.destroy=function(){B._clearTimeouts(),B.view&&B.view.destroy(),x&&x.destroy(),x=null,(0,c.empty)(B.rootElement),z.destroy(),B.runHooks("afterDestroy"),L.default.getSingleton().destroy(B);for(var e in B)(0,C.hasOwnProperty)(B,e)&&((0,d.isFunction)(B[e])?B[e]=m:"guid"!==e&&(B[e]=null));T&&T.destroy(),T=null,w=null,N=null,I=null,V=null,B=null,Y=null},this.getActiveEditor=function(){return V.getActiveEditor()},this.getPlugin=function(e){return(0,E.getPlugin)(this,e)},this.getInstance=function(){return B},this.addHook=function(e,t){L.default.getSingleton().add(e,t,B)},this.hasHook=function(e){return L.default.getSingleton().has(e,B)},this.addHookOnce=function(e,t){L.default.getSingleton().once(e,t,B)},this.removeHook=function(e,t){L.default.getSingleton().remove(e,t,B)},this.runHooks=function(e,t,n,o,r,i,s){return L.default.getSingleton().run(B,e,t,n,o,r,i,s)},this.timeouts=[],this._registerTimeout=function(e){this.timeouts.push(e)},this._clearTimeouts=function(){for(var e=0,t=this.timeouts.length;t>e;e++)clearTimeout(this.timeouts[e])},L.default.getSingleton().run(B,"construct")}t.__esModule=!0;var s=function(){function e(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var s,a=e[Symbol.iterator]();!(o=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&a.return&&a.return()}finally{if(r)throw i}}return n}return function(t,n){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return e(t,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.default=i;var l=n(51),u=o(l),c=n(0),h=n(67),d=n(35),f=n(20),p=n(25),g=n(299),v=o(g),m=n(301),y=o(m),w=n(4),b=o(w),C=n(2),S=n(1),E=n(5),O=n(9),_=n(26),R=n(27),k=n(6),T=n(367),M=o(T),x=n(300),P=o(x),H=n(66),A=n(253),D=n(11),N=n(8),L=o(N),I=n(87),j=o(I),W=n(64),F=null},function(e,t,n){"use strict";function o(e){for(var t=e+1,n="",o=void 0;t>0;)o=(t-1)%f,n=String.fromCharCode(65+o)+n,t=parseInt((t-o)/f,10);return n}function r(e){var t=0;if(e)for(var n=0,o=e.length-1;e.length>n;n+=1,o-=1)t+=Math.pow(f,o)*(d.indexOf(e[n])+1);return--t}function i(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;n>e;e++){var s=[];for(t=0;r>t;t++)s.push(o(t)+(e+1));i.push(s)}return i}function s(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;n>e;e++){var s={};for(t=0;r>t;t++)s["prop"+t]=o(t)+(e+1);i.push(s)}return i}function a(e,t){for(var n=[],o=void 0,r=0;e>r;r++){o=[];for(var i=0;t>i;i++)o.push("");n.push(o)}return n}function l(e){var t,n,o,r,i=[],s=0;for(t=0,n=e.length;n>t;t++)for(o=0,r=e[t].length;r>o;o++)o==s&&(i.push([]),s++),i[o].push(e[t][o]);return i}function u(e,t){return t=void 0===t||t,function(n,o){return function n(o){if(o){if((0,h.hasOwnProperty)(o,e)&&void 0!==o[e])return o[e];if((0,h.hasOwnProperty)(o,"type")&&o.type){var r;if("string"!=typeof o.type)throw Error("Cell type must be a string ");if(r=(0,c.getCellType)(o.type),(0,h.hasOwnProperty)(r,e))return r[e];if(t)return}return n(Object.getPrototypeOf(o))}}("number"==typeof n?this.getCellMeta(n,o):n)}}t.__esModule=!0,t.spreadsheetColumnLabel=o,t.spreadsheetColumnIndex=r,t.createSpreadsheetData=i,t.createSpreadsheetObjectData=s,t.createEmptySpreadsheetData=a,t.translateRowsToColumns=l,t.cellMethodLookupFactory=u;var c=n(64),h=n(2),d="ABCDEFGHIJKLMNOPQRSTUVWXYZ",f=d.length},function(e,t,n){"use strict";function o(e,t){function n(){}(0,r.inherit)(n,e);for(var o=0,i=t.length;i>o;o++)n.prototype[t[o]]=void 0;return n}t.__esModule=!0,t.columnFactory=o;var r=n(2)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(0),s=n(1);t.default=function(){function e(t){o(this,e),this.hot=t,this.container=null,this.injected=!1,this.rows=[],this.columns=[],this.samples=null,this.settings={useHeaders:!0}}return r(e,[{key:"addRow",value:function(e,t){if(this.columns.length)throw 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}},{key:"addColumnHeadersRow",value: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}}},{key:"addColumn",value:function(e,t){if(this.rows.length)throw 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}},{key:"getHeights",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.rows,function(t){e(t.row,(0,i.outerHeight)(t.table)-1)})}},{key:"getWidths",value:function(e){this.injected||this.injectTable(),(0,s.arrayEach)(this.columns,function(t){e(t.col,(0,i.outerWidth)(t.table))})}},{key:"setSettings",value:function(e){this.settings=e}},{key:"setSetting",value:function(e,t){this.settings||(this.settings={}),this.settings[e]=t}},{key:"getSettings",value:function(){return this.settings}},{key:"getSetting",value:function(e){return this.settings?this.settings[e]:null}},{key:"createColGroupsCol",value:function(){var e=this,t=document,n=t.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1)),this.samples.forEach(function(t){(0,s.arrayEach)(t.strings,function(t){n.appendChild(e.createColElement(t.col))})}),n}},{key:"createRow",value:function(e){var t=this,n=document,o=n.createDocumentFragment(),r=n.createElement("th");return this.hot.hasRowHeaders()&&(this.hot.view.appendRowHeader(e,r),o.appendChild(r)),this.samples.forEach(function(r){(0,s.arrayEach)(r.strings,function(r){var i=r.col,s=t.hot.getCellMeta(e,i);s.col=i,s.row=e;var a=t.hot.getCellRenderer(s),l=n.createElement("td");a(t.hot,l,e,i,t.hot.colToProp(i),r.value,s),o.appendChild(l)})}),o}},{key:"createColumnHeadersRow",value: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){(0,s.arrayEach)(o.strings,function(o){var r=o.col,i=t.createElement("th");e.hot.view.appendColHeader(r,i),n.appendChild(i)})}),n}},{key:"createCol",value:function(e){var t=this,n=document,o=n.createDocumentFragment();return this.samples.forEach(function(r){(0,s.arrayEach)(r.strings,function(r){var i=r.row,s=t.hot.getCellMeta(i,e);s.col=e,s.row=i;var a=t.hot.getCellRenderer(s),l=n.createElement("td"),u=n.createElement("tr");a(t.hot,l,i,e,t.hot.colToProp(e),r.value,s),u.appendChild(l),o.appendChild(u)})}),o}},{key:"clean",value:function(){this.rows.length=0,this.rows[-1]=void 0,this.columns.length=0,this.samples&&this.samples.clear(),this.samples=null,this.removeTable()}},{key:"injectTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.injected||((e||this.hot.rootElement).appendChild(this.container.fragment),this.injected=!0)}},{key:"removeTable",value:function(){this.injected&&this.container.container.parentNode&&(this.container.container.parentNode.removeChild(this.container.container),this.container=null,this.injected=!1)}},{key:"createColElement",value:function(e){var t=document,n=t.createElement("col");return n.style.width=this.hot.view.wt.wtTable.getStretchedColumnWidth(e)+"px",n}},{key:"createTable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("table"),r=t.createElement("thead"),s=t.createElement("tbody"),a=t.createElement("colgroup"),l=t.createElement("tr"),u=t.createElement("th");return this.isVertical()&&o.appendChild(a),this.isHorizontal()&&(l.appendChild(u),r.appendChild(l),o.style.tableLayout="auto",o.style.width="auto"),o.appendChild(r),this.isVertical()&&s.appendChild(l),o.appendChild(s),(0,i.addClass)(o,e),n.appendChild(o),{fragment:n,table:o,tHead:r,tBody:s,colGroup:a,tr:l,th:u}}},{key:"createContainer",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=document,n=t.createDocumentFragment(),o=t.createElement("div");return e="htGhostTable htAutoSize "+e.trim(),(0,i.addClass)(o,e),n.appendChild(o),{fragment:n,container:o}}},{key:"isVertical",value:function(){return!(!this.rows.length||this.columns.length)}},{key:"isHorizontal",value:function(){return!(!this.columns.length||this.rows.length)}}]),e}()},function(e,t,n){"use strict";var o=n(38),r=n(267),i=n(46),s=n(23);e.exports=n(266)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return e&&e.length>n?"keys"==t?r(0,n):"values"==t?r(0,e[n]):r(0,[n,e[n]]):(this._t=void 0,r(1))},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var r=function(){function e(e,t){for(var n=0;t.length>n;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(43),s=function(e){return e&&e.__esModule?e:{default:e}}(i);t.default=function(){function e(t,n,r){o(this,e),this.highlight=t,this.from=n,this.to=r}return r(e,[{key:"isValid",value:function(e){return this.from.isValid(e)&&this.to.isValid(e)}},{key:"isSingle",value:function(){return this.from.row===this.to.row&&this.from.col===this.to.col}},{key:"getHeight",value:function(){return Math.max(this.from.row,this.to.row)-Math.min(this.from.row,this.to.row)+1}},{key:"getWidth",value:function(){return Math.max(this.from.col,this.to.col)-Math.min(this.from.col,this.to.col)+1}},{key:"includes",value:function(e){var t=e.row,n=e.col,o=this.getTopLeftCorner(),r=this.getBottomRightCorner();return!(o.row>t||t>r.row||o.col>n||n>r.col)}},{key:"includesRange",value:function(e){return this.includes(e.getTopLeftCorner())&&this.includes(e.getBottomRightCorner())}},{key:"isEqual",value: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)}},{key:"overlaps",value:function(e){return e.isSouthEastOf(this.getTopLeftCorner())&&e.isNorthWestOf(this.getBottomRightCorner())}},{key:"isSouthEastOf",value:function(e){return this.getTopLeftCorner().isSouthEastOf(e)||this.getBottomRightCorner().isSouthEastOf(e)}},{key:"isNorthWestOf",value:function(e){return this.getTopLeftCorner().isNorthWestOf(e)||this.getBottomRightCorner().isNorthWestOf(e)}},{key:"expand",value:function(e){var t=this.getTopLeftCorner(),n=this.getBottomRightCorner();return(t.row>e.row||t.col>e.col||e.row>n.row||e.col>n.col)&&(this.from=new s.default(Math.min(t.row,e.row),Math.min(t.col,e.col)),this.to=new s.default(Math.max(n.row,e.row),Math.max(n.col,e.col)),!0)}},{key:"expandByRange",value:function(t){if(this.includesRange(t)||!this.overlaps(t))return!1;var n=this.getTopLeftCorner(),o=this.getBottomRightCorner(),r=(this.getTopRightCorner(),this.getBottomLeftCorner(),t.getTopLeftCorner()),i=t.getBottomRightCorner(),a=Math.min(n.row,r.row),l=Math.min(n.col,r.col),u=Math.max(o.row,i.row),c=Math.max(o.col,i.col),h=new s.default(a,l),d=new s.default(u,c),f=new e(h,h,d).isCorner(this.from,t),p=t.isEqual(new e(h,h,d));return f&&!p&&(this.from.col>h.col&&(h.col=c,d.col=l),this.from.row>h.row&&(h.row=u,d.row=a)),this.from=h,this.to=d,!0}},{key:"getDirection",value: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}},{key:"setDirection",value:function(e){switch(e){case"NW-SE":var t=[this.getTopLeftCorner(),this.getBottomRightCorner()];this.from=t[0],this.to=t[1];break;case"NE-SW":var n=[this.getTopRightCorner(),this.getBottomLeftCorner()];this.from=n[0],this.to=n[1];break;case"SE-NW":var o=[this.getBottomRightCorner(),this.getTopLeftCorner()];this.from=o[0],this.to=o[1];break;case"SW-NE":var r=[this.getBottomLeftCorner(),this.getTopRightCorner()];this.from=r[0],this.to=r[1]}}},{key:"getTopLeftCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"getBottomRightCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getTopRightCorner",value:function(){return new s.default(Math.min(this.from.row,this.to.row),Math.max(this.from.col,this.to.col))}},{key:"getBottomLeftCorner",value:function(){return new s.default(Math.max(this.from.row,this.to.row),Math.min(this.from.col,this.to.col))}},{key:"isCorner",value:function(e,t){return!!(t&&t.includes(e)&&(this.getTopLeftCorner().isEqual(new s.default(t.from.row,t.from.col))||this.getTopRightCorner().isEqual(new s.default(t.from.row,t.to.col))||this.getBottomLeftCorner().isEqual(new s.default(t.to.row,t.from.col))||this.getBottomRightCorner().isEqual(new s.default(t.to.row,t.to.col))))||(e.isEqual(this.getTopLeftCorner())||e.isEqual(this.getTopRightCorner())||e.isEqual(this.getBottomLeftCorner())||e.isEqual(this.getBottomRightCorner()))}},{key:"getOppositeCorner",value:function(e,t){if(!(e instanceof s.default))return!1;if(t&&t.includes(e)){if(this.getTopLeftCorner().isEqual(new s.default(t.from.row,t.from.col)))return this.getBottomRightCorner();if(this.getTopRightCorner().isEqual(new s.default(t.from.row,t.to.col)))return this.getBottomLeftCorner();if(this.getBottomLeftCorner().isEqual(new s.default(t.to.row,t.from.col)))return this.getTopRightCorner();if(this.getBottomRightCorner().isEqual(new s.default(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}},{key:"getBordersSharedWith",value: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}},{key:"getInner",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var r=e.col;t.col>=r;r++)this.from.row===o&&this.from.col===r||this.to.row===o&&this.to.col===r||n.push(new s.default(o,r));return n}},{key:"getAll",value:function(){for(var e=this.getTopLeftCorner(),t=this.getBottomRightCorner(),n=[],o=e.row;t.row>=o;o++)for(var r=e.col;t.col>=r;r++)n.push(e.row===o&&e.col===r?e:t.row===o&&t.col===r?t:new s.default(o,r));return n}},{key:"forAll",value:function(e){for(var t=this.getTopLeftCorner(),n=this.getBottomRightCorner(),o=t.row;n.row>=o;o++)for(var r=t.col;n.col>=r;r++){var i=e(o,r);if(!1===i)return}}}]),e}()},function(e,t,n){"use strict";function o(){return{name:r}}t.__esModule=!0,t.default=o;var r=t.KEY="---------"},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var o=n(19),r=n(41);e.exports=function(e,t,n){t in e?o.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var o=n(15),r=n(13).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(10)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var o=n(39);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(10)("iterator"),r=!1;try{var i=[7][o]();i.return=function(){r=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var i=[7],s=i[o]();s.next=function(){return{done:n=!0}},i[o]=function(){return s},e(i)}catch(e){}return n}},function(e,t,n){var o=n(18),r=n(386),i=n(75),s=n(82)("IE_PROTO"),a=function(){},l=function(){var e,t=n(74)("iframe"),o=i.length;for(t.style.display="none",n(259).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("