var vendor_f9190e988d1e94ad85fb=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=1420)}([function(e,t,n){"use strict";n.r(t),n.d(t,"guid",(function(){return m})),n.d(t,"logError",(function(){return g})),n.d(t,"clone",(function(){return v})),n.d(t,"merge",(function(){return _})),n.d(t,"mergeAll",(function(){return y})),n.d(t,"extend",(function(){return b})),n.d(t,"defaults",(function(){return S})),n.d(t,"createCanvas",(function(){return E})),n.d(t,"indexOf",(function(){return w})),n.d(t,"inherits",(function(){return T})),n.d(t,"mixin",(function(){return O})),n.d(t,"isArrayLike",(function(){return C})),n.d(t,"each",(function(){return x})),n.d(t,"map",(function(){return k})),n.d(t,"reduce",(function(){return M})),n.d(t,"filter",(function(){return A})),n.d(t,"find",(function(){return R})),n.d(t,"keys",(function(){return I})),n.d(t,"bind",(function(){return D})),n.d(t,"curry",(function(){return N})),n.d(t,"isArray",(function(){return L})),n.d(t,"isFunction",(function(){return P})),n.d(t,"isString",(function(){return j})),n.d(t,"isStringSafe",(function(){return F})),n.d(t,"isNumber",(function(){return B})),n.d(t,"isObject",(function(){return H})),n.d(t,"isBuiltInObject",(function(){return U})),n.d(t,"isTypedArray",(function(){return Y})),n.d(t,"isDom",(function(){return V})),n.d(t,"isGradientObject",(function(){return W})),n.d(t,"isImagePatternObject",(function(){return z})),n.d(t,"isRegExp",(function(){return G})),n.d(t,"eqNaN",(function(){return $})),n.d(t,"retrieve",(function(){return q})),n.d(t,"retrieve2",(function(){return K})),n.d(t,"retrieve3",(function(){return X})),n.d(t,"slice",(function(){return Q})),n.d(t,"normalizeCssArray",(function(){return Z})),n.d(t,"assert",(function(){return J})),n.d(t,"trim",(function(){return ee})),n.d(t,"setAsPrimitive",(function(){return te})),n.d(t,"isPrimitive",(function(){return ne})),n.d(t,"HashMap",(function(){return re})),n.d(t,"createHashMap",(function(){return ie})),n.d(t,"concatArray",(function(){return ae})),n.d(t,"createObject",(function(){return oe})),n.d(t,"disableUserSelect",(function(){return se})),n.d(t,"hasOwn",(function(){return le})),n.d(t,"noop",(function(){return ue})),n.d(t,"RADIAN_TO_DEGREE",(function(){return ce}));var r=n(93),i=M(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(e,t){return e["[object "+t+"]"]=!0,e}),{}),a=M(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(e,t){return e["[object "+t+"Array]"]=!0,e}),{}),o=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,d=s.map,f=function(){}.constructor,h=f?f.prototype:null,p=2311;function m(){return p++}function g(){for(var e=[],t=0;t1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=null,i=e;null!==i;){if(n===t){r=i;break}i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:(n+=1,i=i.parentNode)}return r}function c(e){return Object.getPrototypeOf(e.parent)&&e.frameElement}function d(e){return c(e)&&e.parent}function f(e){return!!Object.getPrototypeOf(e.parent)}function h(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,r=Node,i=r.ELEMENT_NODE,a=r.DOCUMENT_FRAGMENT_NODE,o=e;null!=o&&o!==n;){var s=o,l=s.nodeType,u=s.nodeName;if(l===i&&(t.includes(u)||t.includes(o)))return o;var c=o,d=c.host;o=d&&l===a?d:o.parentNode}return null}function p(e,t,n){for(var r=[],i=e;i&&(i=h(i,t,n))&&(!n||n.contains(i));)r.push(i),i=i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i.host:i.parentNode;var a=r.length;return a?r[a-1]:null}function m(e,t){var n=e.parentNode,r=[];for("string"==typeof t?r=e.defaultView?Array.prototype.slice.call(e.querySelectorAll(t),0):Array.prototype.slice.call(e.ownerDocument.querySelectorAll(t),0):r.push(t);null!==n;){if(r.indexOf(n)>-1)return!0;n=n.parentNode}return!1}function g(e){var t=!1,n=v(e);function r(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="hot-table".toUpperCase()}for(;null!==n;){if(r(n)){t=!0;break}if(n.host&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(t=r(n.host))break;n=n.host}n=n.parentNode}return t}function v(e){return"undefined"!=typeof Polymer&&"function"==typeof wrap?wrap(e):e}function _(e){return"undefined"!=typeof Polymer&&"function"==typeof unwrap?unwrap(e):e}function y(e){var t=0,n=e;if(n.previousSibling)for(;n=n.previousSibling;)t+=1;return t}function b(e,t,n){var r=n.parentElement.querySelector(".ht_clone_".concat(e));return r?r.contains(t):null}function S(e){var t=[];if(!e||!e.length)return t;for(var n=0;e[n];)t.push(e[n]),n+=1;return t}if(Object(s.isClassListSupported)()){var E=function(e){var t=e.createElement("div");return t.classList.add("test","test2"),t.classList.contains("test2")};r=function(e,t){return void 0!==e.classList&&"string"==typeof t&&""!==t&&e.classList.contains(t)},i=function(e,t){var n,r=e.ownerDocument,i=t;if("string"==typeof i&&(i=i.split(" ")),(i=S(i)).length>0)if(E(r))(n=e.classList).add.apply(n,l(i));else for(var a=0;i&&i[a];)e.classList.add(i[a]),a+=1},a=function(e,t){var n,r=t;if("string"==typeof r&&(r=r.split(" ")),(r=S(r)).length>0)if(E)(n=e.classList).remove.apply(n,l(r));else for(var i=0;r&&r[i];)e.classList.remove(r[i]),i+=1}}else{var w=function(e){return new RegExp("(\\s|^)".concat(e,"(\\s|$)"))};r=function(e,t){return void 0!==e.className&&w(t).test(e.className)},i=function(e,t){var n=0,r=e.className,i=t;if("string"==typeof i&&(i=i.split(" ")),""===r)r=i.join(" ");else for(;i&&i[n];)w(i[n]).test(r)||(r+=" ".concat(i[n])),n+=1;e.className=r},a=function(e,t){var n=0,r=e.className,i=t;for("string"==typeof i&&(i=i.split(" "));i&&i[n];)r=r.replace(w(i[n])," ").trim(),n+=1;e.className!==r&&(e.className=r)}}function T(e,t){return r(e,t)}function O(e,t){return i(e,t)}function C(e,t){return a(e,t)}function x(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,r=n.length-1;r>=0;r--)x(n[r],e)}function k(e){for(var t;t=e.lastChild;)e.removeChild(t)}var M,A=/(<(.*)>|&(.*);)/;function R(e,t){A.test(t)?e.innerHTML=t:I(e,t)}function I(e,t){var n=e.firstChild;n&&3===n.nodeType&&null===n.nextSibling?s.isTextContentSupported?n.textContent=t:n.data=t:(k(e),e.appendChild(e.ownerDocument.createTextNode(t)))}function D(e){for(var t=e.ownerDocument.documentElement,n=e;_(n)!==t;){if(null===n)return!1;if(n.nodeType===Node.DOCUMENT_FRAGMENT_NODE){if(n.host){if(n.host.impl)return D(n.host.impl);if(n.host)return D(n.host);throw new Error("Lost in Web Components world")}return!1}if(n.style&&"none"===n.style.display)return!1;n=n.parentNode}return!0}function N(e){var t,n,r,i,a=e.ownerDocument,o=a.defaultView,l=a.documentElement,u=e;if(Object(s.hasCaptionProblem)()&&u.firstChild&&"CAPTION"===u.firstChild.nodeName)return{top:(i=u.getBoundingClientRect()).top+(o.pageYOffset||l.scrollTop)-(l.clientTop||0),left:i.left+(o.pageXOffset||l.scrollLeft)-(l.clientLeft||0)};for(t=u.offsetLeft,n=u.offsetTop,r=u;(u=u.offsetParent)&&u!==a.body;)t+=u.offsetLeft,n+=u.offsetTop,r=u;return r&&"fixed"===r.style.position&&(t+=o.pageXOffset||l.scrollLeft,n+=o.pageYOffset||l.scrollTop),{left:t,top:n}}function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollY;return void 0===t&&(t=e.document.documentElement.scrollTop),t}function P(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.scrollX;return void 0===t&&(t=e.document.documentElement.scrollLeft),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?L(t):e.scrollTop}function F(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e===t?P(t):e.scrollLeft}function B(e){var t=e.ownerDocument,n=t?t.defaultView:void 0;t||(n=(t=e.document?e.document:e).defaultView);for(var r=["auto","scroll"],i=Object(s.isGetComputedStyleSupported)(),a=e.parentNode;a&&a.style&&t.body!==a;){var o=a.style,l=o.overflow,u=o.overflowX,c=o.overflowY;if([l,u,c].includes("scroll"))return a;if(i){var d=n.getComputedStyle(a);if(l=d.overflow,u=d.overflowX,c=d.overflowY,r.includes(l)||r.includes(u)||r.includes(c))return a}if(a.clientHeight<=a.scrollHeight+1&&(r.includes(c)||r.includes(l)))return a;if(a.clientWidth<=a.scrollWidth+1&&(r.includes(u)||r.includes(l)))return a;a=a.parentNode}return n}function H(e){for(var t=e.ownerDocument,n=t.defaultView,r=e.parentNode;r&&r.style&&t.body!==r;){if("visible"!==r.style.overflow&&""!==r.style.overflow)return r;var i=V(r,n),a=["scroll","hidden","auto"],o=i.getPropertyValue("overflow"),s=i.getPropertyValue("overflow-y"),l=i.getPropertyValue("overflow-x");if(a.includes(o)||a.includes(s)||a.includes(l))return r;r=r.parentNode}return n}function U(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window;if(e){if(e===n)return"width"===t?"".concat(n.innerWidth,"px"):"height"===t?"".concat(n.innerHeight,"px"):void 0;var r=e.style[t];if(""!==r&&void 0!==r)return r;var i=V(e,n);return""!==i[t]&&void 0!==i[t]?i[t]:void 0}}function Y(e,t){var n=t.selectorText,r=!1;return t.type===CSSRule.STYLE_RULE&&n&&(e.msMatchesSelector?r=e.msMatchesSelector(n):e.matches&&(r=e.matches(n))),r}function V(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;return e.currentStyle||t.getComputedStyle(e)}function W(e){return e.offsetWidth}function z(e){return Object(s.hasCaptionProblem)()&&e.firstChild&&"CAPTION"===e.firstChild.nodeName?e.offsetHeight+e.firstChild.offsetHeight:e.offsetHeight}function G(e){return e.clientHeight||e.innerHeight}function $(e){return e.clientWidth||e.innerWidth}function q(e,t,n){var r=e.defaultView;r||(r=e.document?e:e.ownerDocument.defaultView),r.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on".concat(t),n)}function K(e,t,n){var r=e.defaultView;r||(r=e.document?e:e.ownerDocument.defaultView),r.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on".concat(t),n)}function X(e){var t=e.ownerDocument;if(e.selectionStart)return e.selectionStart;if(t.selection){e.focus();var n=t.selection.createRange();if(null===n)return 0;var r=e.createTextRange(),i=r.duplicate();return r.moveToBookmark(n.getBookmark()),i.setEndPoint("EndToStart",r),i.text.length}return 0}function Q(e){var t=e.ownerDocument;if(e.selectionEnd)return e.selectionEnd;if(t.selection){var n=t.selection.createRange();return null===n?0:e.createTextRange().text.indexOf(n.text)+n.text.length}return 0}function Z(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document,n="";return e.getSelection?n=e.getSelection().toString():t.selection&&"Control"!==t.selection.type&&(n=t.selection.createRange().text),n}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=e.document;e.getSelection?e.getSelection().empty?e.getSelection().empty():e.getSelection().removeAllRanges&&e.getSelection().removeAllRanges():t.selection&&t.selection.empty()}function ee(e,t,n){if(void 0===n&&(n=t),e.setSelectionRange){e.focus();try{e.setSelectionRange(t,n)}catch(a){var r=e.parentNode,i=r.style.display;r.style.display="block",e.setSelectionRange(t,n),r.style.display=i}}else if(e.createTextRange){var a=e.createTextRange();a.collapse(!0),a.moveEnd("character",n),a.moveStart("character",t),a.select()}}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=e.createElement("div");t.style.height="200px",t.style.width="100%";var n=e.createElement("div");n.style.boxSizing="content-box",n.style.height="150px",n.style.left="0px",n.style.overflow="hidden",n.style.position="absolute",n.style.top="0px",n.style.width="200px",n.style.visibility="hidden",n.appendChild(t),(e.body||e.documentElement).appendChild(n);var r=t.offsetWidth;n.style.overflow="scroll";var i=t.offsetWidth;return r===i&&(i=n.clientWidth),(e.body||e.documentElement).removeChild(n),r-i}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return void 0===M&&(M=te(e)),M}function re(e){return e.offsetWidth!==e.clientWidth}function ie(e){return e.offsetHeight!==e.clientHeight}function ae(e,t,n){Object(o.isIE8)()||Object(o.isIE9)()?(e.style.top=n,e.style.left=t):Object(o.isSafari)()?(e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)"),e.style["-webkit-transform"]="translate3d(".concat(t,",").concat(n,",0)")):e.style.transform="translate3d(".concat(t,",").concat(n,",0)")}function oe(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 se(e){e.style.transform&&""!==e.style.transform?e.style.transform="":e.style["-webkit-transform"]&&""!==e.style["-webkit-transform"]&&(e.style["-webkit-transform"]="")}function le(e){return e&&(["INPUT","SELECT","TEXTAREA"].indexOf(e.nodeName)>-1||"true"===e.contentEditable)}function ue(e){return le(e)&&-1===e.className.indexOf("handsontableInput")&&-1===e.className.indexOf("HandsontableCopyPaste")}function ce(e){ue(e.ownerDocument.activeElement)||e.select()}},function(e,t,n){"use strict";n.r(t),n.d(t,"to2dArray",(function(){return r})),n.d(t,"extendArray",(function(){return i})),n.d(t,"pivot",(function(){return a})),n.d(t,"arrayReduce",(function(){return o})),n.d(t,"arrayFilter",(function(){return s})),n.d(t,"arrayMap",(function(){return l})),n.d(t,"arrayEach",(function(){return u})),n.d(t,"arraySum",(function(){return c})),n.d(t,"arrayMax",(function(){return d})),n.d(t,"arrayMin",(function(){return f})),n.d(t,"arrayAvg",(function(){return h})),n.d(t,"arrayFlatten",(function(){return p})),n.d(t,"arrayUnique",(function(){return m}));n(75),n(89),n(58),n(16);function r(e){for(var t=e.length,n=0;nt?e:t}),Array.isArray(e)?e[0]:void 0)}function f(e){return o(e,(function(e,t){return e1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"value",r="_".concat(n),a=(i(t={_touched:!1},r,e),i(t,"isTouched",(function(){return this._touched})),t);return Object.defineProperty(a,n,{get:function(){return this[r]},set:function(e){this._touched=!0,this[r]=e},enumerable:!0,configurable:!0}),a}function b(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return u})),n.d(t,"__awaiter",(function(){return c})),n.d(t,"__generator",(function(){return d})),n.d(t,"__createBinding",(function(){return f})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return m})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return v})),n.d(t,"__spreadArray",(function(){return _})),n.d(t,"__await",(function(){return y})),n.d(t,"__asyncGenerator",(function(){return b})),n.d(t,"__asyncDelegator",(function(){return S})),n.d(t,"__asyncValues",(function(){return E})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return O})),n.d(t,"__importDefault",(function(){return C})),n.d(t,"__classPrivateFieldGet",(function(){return x})),n.d(t,"__classPrivateFieldSet",(function(){return k})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return T(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"linearMap",(function(){return i})),n.d(t,"parsePercent",(function(){return a})),n.d(t,"round",(function(){return o})),n.d(t,"asc",(function(){return s})),n.d(t,"getPrecision",(function(){return l})),n.d(t,"getPrecisionSafe",(function(){return u})),n.d(t,"getPixelPrecision",(function(){return c})),n.d(t,"getPercentWithPrecision",(function(){return d})),n.d(t,"addSafe",(function(){return f})),n.d(t,"MAX_SAFE_INTEGER",(function(){return h})),n.d(t,"remRadian",(function(){return p})),n.d(t,"isRadianAroundZero",(function(){return m})),n.d(t,"parseDate",(function(){return v})),n.d(t,"quantity",(function(){return _})),n.d(t,"quantityExponent",(function(){return y})),n.d(t,"nice",(function(){return b})),n.d(t,"quantile",(function(){return S})),n.d(t,"reformIntervals",(function(){return E})),n.d(t,"numericToNumber",(function(){return w})),n.d(t,"isNumeric",(function(){return T})),n.d(t,"getRandomIdBase",(function(){return O})),n.d(t,"getGreatestCommonDividor",(function(){return C})),n.d(t,"getLeastCommonMultiple",(function(){return x}));var r=n(0);function i(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],l=a-i,u=s-o;if(0===l)return 0===u?o:(o+s)/2;if(r)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function a(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return r.isString(e)?(n=e,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e;var n}function o(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),e=(+e).toFixed(t),n?e:+e}function s(e){return e.sort((function(e,t){return e-t})),e}function l(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return u(e)}function u(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function c(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function d(e,t,n){if(!e[t])return 0;var i=r.reduce(e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===i)return 0;for(var a=Math.pow(10,n),o=r.map(e,(function(e){return(isNaN(e)?0:e)/i*a*100})),s=100*a,l=r.map(o,(function(e){return Math.floor(e)})),u=r.reduce(l,(function(e,t){return e+t}),0),c=r.map(o,(function(e,t){return e-l[t]}));ud&&(d=c[h],f=h);++l[f],c[f]=0,++u}return l[t]/a}function f(e,t){var n=Math.max(l(e),l(t)),r=e+t;return n>20?r:o(r,n)}var h=9007199254740991;function p(e){var t=2*Math.PI;return(e%t+t)%t}function m(e){return e>-1e-4&&e<1e-4}var g=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function v(e){if(e instanceof Date)return e;if(r.isString(e)){var t=g.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==e?new Date(NaN):new Date(Math.round(e))}function _(e){return Math.pow(10,y(e))}function y(e){if(0===e)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function b(e,t){var n=y(e),r=Math.pow(10,n),i=e/r;return e=(t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,n>=-20?+e.toFixed(n<0?-n:0):e}function S(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],a=n-r;return a?i+a*(e[r]-i):i}function E(e){e.sort((function(e,t){return function e(t,n,r){return t.interval[r]=0,o=!1;if(e instanceof l.default){var s=d(e),u=a&&s.selectFill||s.normalFill,c=a&&s.selectStroke||s.normalStroke;if(O(u)||O(c)){var f=(r=r||{}).style||{};"inherit"===f.fill?(o=!0,r=Object(i.extend)({},r),(f=Object(i.extend)({},f)).fill=u):!O(f.fill)&&O(u)?(o=!0,r=Object(i.extend)({},r),(f=Object(i.extend)({},f)).fill=x(u)):!O(f.stroke)&&O(c)&&(o||(r=Object(i.extend)({},r),f=Object(i.extend)({},f)),f.stroke=x(c)),r.style=f}}if(r&&null==r.z2){o||(r=Object(i.extend)({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(null!=h?h:_)}return r}(this,0,t,n);if("blur"===e)return function(e,t,n){var r=Object(i.indexOf)(e.currentStates,t)>=0,a=e.style.opacity,o=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o0){var a={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(a.dataType=r),t.push(a)}}))})),t}function oe(e,t,n){he(e,!0),P(e,H),ue(e,t,n)}function se(e){he(e,!1)}function le(e,t,n,r){r?se(e):oe(e,t,n)}function ue(e,t,n){var r=Object(a.getECData)(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var ce=["emphasis","blur","select"],de={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fe(e,t,n,r){n=n||"itemStyle";for(var i=0;i=t&&!1!==n(r););}function s(e,t){return t=parseInt(t.toString().replace("%",""),10),t=parseInt(e*t/100,10)}},function(e,t,n){(function(e){e.exports=function(){"use strict";var t,r;function i(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function s(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){var n,r=[];for(n=0;n>>0,r=0;r0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var H=/(\[[^\[]*\])|(\\)?([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,U=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},V={};function W(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(V[e]=i),t&&(V[t[0]]=function(){return B(i.apply(this,arguments),t[1],t[2])}),n&&(V[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e,t){return e.isValid()?(t=G(t,e.localeData()),Y[t]=Y[t]||function(e){var t,n,r,i=e.match(H);for(t=0,n=i.length;t=0&&U.test(e);)e=e.replace(U,r),U.lastIndex=0,n-=1;return e}var $=/\d/,q=/\d\d/,K=/\d{3}/,X=/\d{4}/,Q=/[+-]?\d{6}/,Z=/\d\d?/,J=/\d\d\d\d?/,ee=/\d\d\d\d\d\d?/,te=/\d{1,3}/,ne=/\d{1,4}/,re=/[+-]?\d{1,6}/,ie=/\d+/,ae=/[+-]?\d+/,oe=/Z|[+-]\d\d:?\d\d/gi,se=/Z|[+-]\d\d(?::?\d\d)?/gi,le=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ue={};function ce(e,t,n){ue[e]=A(t)?t:function(e,r){return e&&n?n:t}}function de(e,t){return d(ue,e)?ue[e](t._strict,t._locale):new RegExp(fe(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i}))))}function fe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var he={};function pe(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),l(t)&&(r=function(e,n){n[t]=w(e)}),n=0;n68?1900:2e3)};var ye,be=Se("FullYear",!0);function Se(e,t){return function(n){return null!=n?(we(this,e,n),i.updateOffset(this,t),this):Ee(this,e)}}function Ee(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function we(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&_e(e.year())&&1===e.month()&&29===e.date()?e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Te(n,e.month())):e._d["set"+(e._isUTC?"UTC":"")+t](n))}function Te(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,r=(t%(n=12)+n)%n;return e+=(t-r)/12,1===r?_e(e)?29:28:31-r%7%2}ye=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Le(e){var t;if(e<100&&e>=0){var n=Array.prototype.slice.call(arguments);n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)}else t=new Date(Date.UTC.apply(null,arguments));return t}function Pe(e,t,n){var r=7+t-n;return-(7+Le(e,0,r).getUTCDay()-t)%7+r-1}function je(e,t,n,r,i){var a,o,s=1+7*(t-1)+(7+n-r)%7+Pe(e,r,i);return s<=0?o=ve(a=e-1)+s:s>ve(e)?(a=e+1,o=s-ve(e)):(a=e,o=s),{year:a,dayOfYear:o}}function Fe(e,t,n){var r,i,a=Pe(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?r=o+Be(i=e.year()-1,t,n):o>Be(e.year(),t,n)?(r=o-Be(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Be(e,t,n){var r=Pe(e,t,n),i=Pe(e+1,t,n);return(ve(e)-r+i)/7}function He(e,t){return e.slice(t,7).concat(e.slice(0,t))}W("w",["ww",2],"wo","week"),W("W",["WW",2],"Wo","isoWeek"),N("week","w"),N("isoWeek","W"),F("week",5),F("isoWeek",5),ce("w",Z),ce("ww",Z,q),ce("W",Z),ce("WW",Z,q),me(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=w(e)})),W("d",0,"do","day"),W("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),W("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),W("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),W("e",0,0,"weekday"),W("E",0,0,"isoWeekday"),N("day","d"),N("weekday","e"),N("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",(function(e,t){return t.weekdaysMinRegex(e)})),ce("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),ce("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:p(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,r){t[r]=w(e)}));var Ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function We(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=h([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"dddd"===t?-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:"ddd"===t?-1!==(i=ye.call(this._shortWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._minWeekdaysParse,o))?i:null:-1!==(i=ye.call(this._minWeekdaysParse,o))||-1!==(i=ye.call(this._weekdaysParse,o))||-1!==(i=ye.call(this._shortWeekdaysParse,o))?i:null}var ze=le,Ge=le,$e=le;function qe(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],l=[],u=[];for(t=0;t<7;t++)n=h([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),l.push(a),u.push(r),u.push(i),u.push(a);for(o.sort(e),s.sort(e),l.sort(e),u.sort(e),t=0;t<7;t++)s[t]=fe(s[t]),l[t]=fe(l[t]),u[t]=fe(u[t]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Ke(){return this.hours()%12||12}function Xe(e,t){W(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function Qe(e,t){return t._meridiemParse}W("H",["HH",2],0,"hour"),W("h",["hh",2],0,Ke),W("k",["kk",2],0,(function(){return this.hours()||24})),W("hmm",0,0,(function(){return""+Ke.apply(this)+B(this.minutes(),2)})),W("hmmss",0,0,(function(){return""+Ke.apply(this)+B(this.minutes(),2)+B(this.seconds(),2)})),W("Hmm",0,0,(function(){return""+this.hours()+B(this.minutes(),2)})),W("Hmmss",0,0,(function(){return""+this.hours()+B(this.minutes(),2)+B(this.seconds(),2)})),Xe("a",!0),Xe("A",!1),N("hour","h"),F("hour",13),ce("a",Qe),ce("A",Qe),ce("H",Z),ce("h",Z),ce("k",Z),ce("HH",Z,q),ce("hh",Z,q),ce("kk",Z,q),ce("hmm",J),ce("hmmss",ee),ce("Hmm",J),ce("Hmmss",ee),pe(["H","HH"],3),pe(["k","kk"],(function(e,t,n){var r=w(e);t[3]=24===r?0:r})),pe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),pe(["h","hh"],(function(e,t,n){t[3]=w(e),p(n).bigHour=!0})),pe("hmm",(function(e,t,n){var r=e.length-2;t[3]=w(e.substr(0,r)),t[4]=w(e.substr(r)),p(n).bigHour=!0})),pe("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=w(e.substr(0,r)),t[4]=w(e.substr(r,2)),t[5]=w(e.substr(i)),p(n).bigHour=!0})),pe("Hmm",(function(e,t,n){var r=e.length-2;t[3]=w(e.substr(0,r)),t[4]=w(e.substr(r))})),pe("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[3]=w(e.substr(0,r)),t[4]=w(e.substr(r,2)),t[5]=w(e.substr(i))}));var Ze,Je=Se("Hours",!0),et={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d 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"},months:Ce,monthsShort:xe,week:{dow:0,doy:6},weekdays:Ue,weekdaysMin:Ve,weekdaysShort:Ye,meridiemParse:/[ap]\.?m?\.?/i},tt={},nt={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function it(t){var r=null;if(!tt[t]&&void 0!==e&&e&&e.exports)try{r=Ze._abbr,n(1451)("./"+t),at(r)}catch(e){}return tt[t]}function at(e,t){var n;return e&&((n=s(t)?st(e):ot(e,t))?Ze=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ze._abbr}function ot(e,t){if(null!==t){var n,r=et;if(t.abbr=e,null!=tt[e])M("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tt[e]._config;else if(null!=t.parentLocale)if(null!=tt[t.parentLocale])r=tt[t.parentLocale]._config;else{if(null==(n=it(t.parentLocale)))return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;r=n._config}return tt[e]=new I(R(r,t)),nt[e]&&nt[e].forEach((function(e){ot(e.name,e.config)})),at(e),tt[e]}return delete tt[e],null}function st(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ze;if(!a(e)){if(t=it(e))return t;e=[e]}return function(e){for(var t,n,r,i,a=0;a0;){if(r=it(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&T(i,n,!0)>=t-1)break;t--}a++}return Ze}(e)}function lt(e){var t,n=e._a;return n&&-2===p(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>Te(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}function ut(e,t,n){return null!=e?e:null!=t?t:n}function ct(e){var t,n,r,a,o,s=[];if(!e._d){for(r=function(e){var t=new Date(i.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[2]&&null==e._a[1]&&function(e){var t,n,r,i,a,o,s,l;if(null!=(t=e._w).GG||null!=t.W||null!=t.E)a=1,o=4,n=ut(t.GG,e._a[0],Fe(Ot(),1,4).year),r=ut(t.W,1),((i=ut(t.E,1))<1||i>7)&&(l=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var u=Fe(Ot(),a,o);n=ut(t.gg,e._a[0],u.year),r=ut(t.w,u.week),null!=t.d?((i=t.d)<0||i>6)&&(l=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a}r<1||r>Be(n,a,o)?p(e)._overflowWeeks=!0:null!=l?p(e)._overflowWeekday=!0:(s=je(n,r,i,a,o),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)}(e),null!=e._dayOfYear&&(o=ut(e._a[0],r[0]),(e._dayOfYear>ve(o)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),n=Le(o,0,e._dayOfYear),e._a[1]=n.getUTCMonth(),e._a[2]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?Le:Ne).apply(null,s),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(p(e).weekdayMismatch=!0)}}var dt=/^\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)?)?$/,ft=/^\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)?)?$/,ht=/Z|[+-]\d\d(?::?\d\d)?/,pt=[["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}/]],mt=[["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/]],gt=/^\/?Date\((\-?\d+)/i;function vt(e){var t,n,r,i,a,o,s=e._i,l=dt.exec(s)||ft.exec(s);if(l){for(p(e).iso=!0,t=0,n=pt.length;t0&&p(e).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),u+=n.length),V[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=l-u,s.length>0&&p(e).unusedInput.push(s),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=function(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}(e._locale,e._a[3],e._meridiem),ct(e),lt(e)}else St(e);else vt(e)}function wt(e){var t=e._i,n=e._f;return e._locale=e._locale||st(e._l),null===t||void 0===n&&""===t?g({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),S(t)?new b(lt(t)):(u(t)?e._d=t:a(n)?function(e){var t,n,r,i,a;if(0===e._f.length)return p(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:g()}));function kt(e,t){var n,r;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return Ot();for(n=t[0],r=1;r=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function en(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tn(e,t){W(0,[e,e.length],0,t)}function nn(e,t,n,r,i){var a;return null==e?Fe(this,r,i).year:(t>(a=Be(e,r,i))&&(t=a),rn.call(this,e,t,n,r,i))}function rn(e,t,n,r,i){var a=je(e,t,n,r,i),o=Le(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}W(0,["gg",2],0,(function(){return this.weekYear()%100})),W(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),tn("gggg","weekYear"),tn("ggggg","weekYear"),tn("GGGG","isoWeekYear"),tn("GGGGG","isoWeekYear"),N("weekYear","gg"),N("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),ce("G",ae),ce("g",ae),ce("GG",Z,q),ce("gg",Z,q),ce("GGGG",ne,X),ce("gggg",ne,X),ce("GGGGG",re,Q),ce("ggggg",re,Q),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=w(e)})),me(["gg","GG"],(function(e,t,n,r){t[r]=i.parseTwoDigitYear(e)})),W("Q",0,"Qo","quarter"),N("quarter","Q"),F("quarter",7),ce("Q",$),pe("Q",(function(e,t){t[1]=3*(w(e)-1)})),W("D",["DD",2],"Do","date"),N("date","D"),F("date",9),ce("D",Z),ce("DD",Z,q),ce("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),pe(["D","DD"],2),pe("Do",(function(e,t){t[2]=w(e.match(Z)[0])}));var an=Se("Date",!0);W("DDD",["DDDD",3],"DDDo","dayOfYear"),N("dayOfYear","DDD"),F("dayOfYear",4),ce("DDD",te),ce("DDDD",K),pe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=w(e)})),W("m",["mm",2],0,"minute"),N("minute","m"),F("minute",14),ce("m",Z),ce("mm",Z,q),pe(["m","mm"],4);var on=Se("Minutes",!1);W("s",["ss",2],0,"second"),N("second","s"),F("second",15),ce("s",Z),ce("ss",Z,q),pe(["s","ss"],5);var sn,ln=Se("Seconds",!1);for(W("S",0,0,(function(){return~~(this.millisecond()/100)})),W(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),W(0,["SSS",3],0,"millisecond"),W(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),W(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),W(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),W(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),W(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),W(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),N("millisecond","ms"),F("millisecond",16),ce("S",te,$),ce("SS",te,q),ce("SSS",te,K),sn="SSSS";sn.length<=9;sn+="S")ce(sn,ie);function un(e,t){t[6]=w(1e3*("0."+e))}for(sn="S";sn.length<=9;sn+="S")pe(sn,un);var cn=Se("Milliseconds",!1);W("z",0,0,"zoneAbbr"),W("zz",0,0,"zoneName");var dn=b.prototype;function fn(e){return e}dn.add=Gt,dn.calendar=function(e,t){var n=e||Ot(),r=Pt(n,this).startOf("day"),a=i.calendarFormat(this,r)||"sameElse",o=t&&(A(t[a])?t[a].call(this,n):t[a]);return this.format(o||this.localeData().calendar(a,this,Ot(n)))},dn.clone=function(){return new b(this)},dn.diff=function(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=Pt(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=L(t)){case"year":a=qt(this,r)/12;break;case"month":a=qt(this,r);break;case"quarter":a=qt(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:E(a)},dn.endOf=function(e){var t;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;var n=this._isUTC?en:Jt;switch(e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-Zt(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-Zt(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-Zt(t,1e3)-1}return this._d.setTime(t),i.updateOffset(this,!0),this},dn.format=function(e){e||(e=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var t=z(this,e);return this.localeData().postformat(t)},dn.from=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Ot(e).isValid())?Ut({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.fromNow=function(e){return this.from(Ot(),e)},dn.to=function(e,t){return this.isValid()&&(S(e)&&e.isValid()||Ot(e).isValid())?Ut({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},dn.toNow=function(e){return this.to(Ot(),e)},dn.get=function(e){return A(this[e=L(e)])?this[e]():this},dn.invalidAt=function(){return p(this).overflow},dn.isAfter=function(e,t){var n=S(e)?e:Ot(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?z(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)},dn.toJSON=function(){return this.isValid()?this.toISOString():null},dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},dn.unix=function(){return Math.floor(this.valueOf()/1e3)},dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},dn.year=be,dn.isLeapYear=function(){return _e(this.year())},dn.weekYear=function(e){return nn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},dn.isoWeekYear=function(e){return nn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},dn.quarter=dn.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},dn.month=Ae,dn.daysInMonth=function(){return Te(this.year(),this.month())},dn.week=dn.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},dn.isoWeek=dn.isoWeeks=function(e){var t=Fe(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},dn.weeksInYear=function(){var e=this.localeData()._week;return Be(this.year(),e.dow,e.doy)},dn.isoWeeksInYear=function(){return Be(this.year(),1,4)},dn.date=an,dn.day=dn.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},dn.weekday=function(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")},dn.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=function(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7},dn.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},dn.hour=dn.hours=Je,dn.minute=dn.minutes=on,dn.second=dn.seconds=ln,dn.millisecond=dn.milliseconds=cn,dn.utcOffset=function(e,t,n){var r,a=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=Lt(se,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=jt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),a!==e&&(!t||this._changeInProgress?zt(this,Ut(e-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,i.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:jt(this)},dn.utc=function(e){return this.utcOffset(0,e)},dn.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(jt(this),"m")),this},dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=Lt(oe,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},dn.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?Ot(e).utcOffset():0,(this.utcOffset()-e)%60==0)},dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},dn.isUtc=Ft,dn.isUTC=Ft,dn.zoneAbbr=function(){return this._isUTC?"UTC":""},dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},dn.dates=C("dates accessor is deprecated. Use date instead.",an),dn.months=C("months accessor is deprecated. Use month instead",Ae),dn.years=C("years accessor is deprecated. Use year instead",be),dn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),dn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var e={};if(_(e,this),(e=wt(e))._a){var t=e._isUTC?h(e._a):Ot(e._a);this._isDSTShifted=this.isValid()&&T(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var hn=I.prototype;function pn(e,t,n,r){var i=st(),a=h().set(r,t);return i[n](a,e)}function mn(e,t,n){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return pn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pn(e,r,n,"month");return i}function gn(e,t,n,r){"boolean"==typeof e?(l(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,l(t)&&(n=t,t=void 0),t=t||"");var i,a=st(),o=e?a._week.dow:0;if(null!=n)return pn(t,(n+o)%7,r,"day");var s=[];for(i=0;i<7;i++)s[i]=pn(t,(i+o)%7,r,"day");return s}hn.calendar=function(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return A(r)?r.call(t,n):r},hn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,(function(e){return e.slice(1)})),this._longDateFormat[e])},hn.invalidDate=function(){return this._invalidDate},hn.ordinal=function(e){return this._ordinal.replace("%d",e)},hn.preparse=fn,hn.postformat=fn,hn.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return A(i)?i(e,t,n,r):i.replace(/%d/i,e)},hn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return A(n)?n(t):n.replace(/%s/i,t)},hn.set=function(e){var t,n;for(n in e)A(t=e[n])?this[n]=t:this["_"+n]=t;this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},hn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Oe).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},hn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Oe.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},hn.monthsParse=function(e,t,n){var r,i,a;if(this._monthsParseExact)return ke.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=h([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},hn.monthsRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||De.call(this),e?this._monthsStrictRegex:this._monthsRegex):(d(this,"_monthsRegex")||(this._monthsRegex=Ie),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},hn.monthsShortRegex=function(e){return this._monthsParseExact?(d(this,"_monthsRegex")||De.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(d(this,"_monthsShortRegex")||(this._monthsShortRegex=Re),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},hn.week=function(e){return Fe(e,this._week.dow,this._week.doy).week},hn.firstDayOfYear=function(){return this._week.doy},hn.firstDayOfWeek=function(){return this._week.dow},hn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?He(n,this._week.dow):e?n[e.day()]:n},hn.weekdaysMin=function(e){return!0===e?He(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},hn.weekdaysShort=function(e){return!0===e?He(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},hn.weekdaysParse=function(e,t,n){var r,i,a;if(this._weekdaysParseExact)return We.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=h([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},hn.weekdaysRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=ze),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},hn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ge),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},hn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||qe.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=$e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},hn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},hn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},at("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===w(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),i.lang=C("moment.lang is deprecated. Use moment.locale instead.",at),i.langData=C("moment.langData is deprecated. Use moment.localeData instead.",st);var vn=Math.abs;function _n(e,t,n,r){var i=Ut(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function Sn(e){return 146097*e/4800}function En(e){return function(){return this.as(e)}}var wn=En("ms"),Tn=En("s"),On=En("m"),Cn=En("h"),xn=En("d"),kn=En("w"),Mn=En("M"),An=En("Q"),Rn=En("y");function In(e){return function(){return this.isValid()?this._data[e]:NaN}}var Dn=In("milliseconds"),Nn=In("seconds"),Ln=In("minutes"),Pn=In("hours"),jn=In("days"),Fn=In("months"),Bn=In("years"),Hn=Math.round,Un={ss:44,s:45,m:45,h:22,d:26,M:11};function Yn(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}var Vn=Math.abs;function Wn(e){return(e>0)-(e<0)||+e}function zn(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n=Vn(this._milliseconds)/1e3,r=Vn(this._days),i=Vn(this._months);e=E(n/60),t=E(e/60),n%=60,e%=60;var a=E(i/12),o=i%=12,s=r,l=t,u=e,c=n?n.toFixed(3).replace(/\.?0+$/,""):"",d=this.asSeconds();if(!d)return"P0D";var f=d<0?"-":"",h=Wn(this._months)!==Wn(d)?"-":"",p=Wn(this._days)!==Wn(d)?"-":"",m=Wn(this._milliseconds)!==Wn(d)?"-":"";return f+"P"+(a?h+a+"Y":"")+(o?h+o+"M":"")+(s?p+s+"D":"")+(l||u||c?"T":"")+(l?m+l+"H":"")+(u?m+u+"M":"")+(c?m+c+"S":"")}var Gn=At.prototype;return Gn.isValid=function(){return this._isValid},Gn.abs=function(){var e=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),e.milliseconds=vn(e.milliseconds),e.seconds=vn(e.seconds),e.minutes=vn(e.minutes),e.hours=vn(e.hours),e.months=vn(e.months),e.years=vn(e.years),this},Gn.add=function(e,t){return _n(this,e,t,1)},Gn.subtract=function(e,t){return _n(this,e,t,-1)},Gn.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=L(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Sn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},Gn.asMilliseconds=wn,Gn.asSeconds=Tn,Gn.asMinutes=On,Gn.asHours=Cn,Gn.asDays=xn,Gn.asWeeks=kn,Gn.asMonths=Mn,Gn.asQuarters=An,Gn.asYears=Rn,Gn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*w(this._months/12):NaN},Gn._bubble=function(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,l=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*yn(Sn(s)+o),o=0,s=0),l.milliseconds=a%1e3,e=E(a/1e3),l.seconds=e%60,t=E(e/60),l.minutes=t%60,n=E(t/60),l.hours=n%24,o+=E(n/24),i=E(bn(o)),s+=i,o-=yn(Sn(i)),r=E(s/12),s%=12,l.days=o,l.months=s,l.years=r,this},Gn.clone=function(){return Ut(this)},Gn.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},Gn.milliseconds=Dn,Gn.seconds=Nn,Gn.minutes=Ln,Gn.hours=Pn,Gn.days=jn,Gn.weeks=function(){return E(this.days()/7)},Gn.months=Fn,Gn.years=Bn,Gn.humanize=function(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=function(e,t,n){var r=Ut(e).abs(),i=Hn(r.as("s")),a=Hn(r.as("m")),o=Hn(r.as("h")),s=Hn(r.as("d")),l=Hn(r.as("M")),u=Hn(r.as("y")),c=i<=Un.ss&&["s",i]||i0,c[4]=n,Yn.apply(null,c)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},Gn.toISOString=zn,Gn.toString=zn,Gn.toJSON=zn,Gn.locale=Kt,Gn.localeData=Qt,Gn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",zn),Gn.lang=Xt,W("X",0,0,"unix"),W("x",0,0,"valueOf"),ce("x",ae),ce("X",/[+-]?\d+(\.\d{1,3})?/),pe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))})),pe("x",(function(e,t,n){n._d=new Date(w(e))})),i.version="2.24.0",t=Ot,i.fn=dn,i.min=function(){var e=[].slice.call(arguments,0);return kt("isBefore",e)},i.max=function(){var e=[].slice.call(arguments,0);return kt("isAfter",e)},i.now=function(){return Date.now?Date.now():+new Date},i.utc=h,i.unix=function(e){return Ot(1e3*e)},i.months=function(e,t){return mn(e,t,"months")},i.isDate=u,i.locale=at,i.invalid=g,i.duration=Ut,i.isMoment=S,i.weekdays=function(e,t,n){return gn(e,t,n,"weekdays")},i.parseZone=function(){return Ot.apply(null,arguments).parseZone()},i.localeData=st,i.isDuration=Rt,i.monthsShort=function(e,t){return mn(e,t,"monthsShort")},i.weekdaysMin=function(e,t,n){return gn(e,t,n,"weekdaysMin")},i.defineLocale=ot,i.updateLocale=function(e,t){if(null!=t){var n,r,i=et;null!=(r=it(e))&&(i=r._config),t=R(i,t),(n=new I(t)).parentLocale=tt[e],tt[e]=n,at(e)}else null!=tt[e]&&(null!=tt[e].parentLocale?tt[e]=tt[e].parentLocale:null!=tt[e]&&delete tt[e]);return tt[e]},i.locales=function(){return x(tt)},i.weekdaysShort=function(e,t,n){return gn(e,t,n,"weekdaysShort")},i.normalizeUnits=L,i.relativeTimeRounding=function(e){return void 0===e?Hn:"function"==typeof e&&(Hn=e,!0)},i.relativeTimeThreshold=function(e,t){return void 0!==Un[e]&&(void 0===t?Un[e]:(Un[e]=t,"s"===e&&(Un.ss=t-1),!0))},i.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},i.prototype=dn,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i}()}).call(this,n(1450)(e))},function(e,t,n){var r=n(665),i=n(231),a=n(1671);r||i(Object.prototype,"toString",a,{unsafe:!0})},function(e,t,n){"use strict";n.r(t);var r=n(519);n.d(t,"ViewportColumnsCalculator",(function(){return r.default}));var i=n(520);n.d(t,"ViewportRowsCalculator",(function(){return i.default}));var a=n(106);n.d(t,"CellCoords",(function(){return a.default}));var o=n(535);n.d(t,"CellRange",(function(){return o.default}));var s=n(536);n.d(t,"ColumnFilter",(function(){return s.default}));var l=n(537);n.d(t,"RowFilter",(function(){return l.default}));var u=n(538);n.d(t,"MasterTable",(function(){return u.default}));var c=n(983);n.d(t,"LeftOverlay",(function(){return c.default}));var d=n(984);n.d(t,"TopOverlay",(function(){return d.default}));var f=n(985);n.d(t,"TopLeftCornerOverlay",(function(){return f.default}));var h=n(986);n.d(t,"BottomOverlay",(function(){return h.default}));var p=n(987);n.d(t,"BottomLeftCornerOverlay",(function(){return p.default}));var m=n(544);n.d(t,"Border",(function(){return m.default}));var g=n(452);n.d(t,"default",(function(){return g.default})),n.d(t,"Core",(function(){return g.default}));var v=n(455);n.d(t,"Event",(function(){return v.default}));var _=n(541);n.d(t,"Overlays",(function(){return _.default}));var y=n(456);n.d(t,"Scroll",(function(){return y.default}));var b=n(988);n.d(t,"Selection",(function(){return b.default}));var S=n(542);n.d(t,"Settings",(function(){return S.default}));var E=n(539);n.d(t,"Renderer",(function(){return E}));var w=n(275);n.d(t,"OrderView",(function(){return w.OrderView})),n.d(t,"SharedOrderView",(function(){return w.SharedOrderView}));var T=n(543);n.d(t,"Viewport",(function(){return T.default}));var O=n(49);n.d(t,"getListenersCounter",(function(){return O.getListenersCounter}))},function(e,t,n){"use strict";n.r(t),n.d(t,"extendShape",(function(){return L})),n.d(t,"extendPath",(function(){return j})),n.d(t,"registerShape",(function(){return F})),n.d(t,"getShapeClass",(function(){return B})),n.d(t,"makePath",(function(){return H})),n.d(t,"makeImage",(function(){return U})),n.d(t,"mergePath",(function(){return V})),n.d(t,"resizePath",(function(){return W})),n.d(t,"subPixelOptimizeLine",(function(){return z})),n.d(t,"subPixelOptimizeRect",(function(){return G})),n.d(t,"subPixelOptimize",(function(){return $})),n.d(t,"getTransform",(function(){return q})),n.d(t,"applyTransform",(function(){return K})),n.d(t,"transformDirection",(function(){return X})),n.d(t,"groupTransition",(function(){return Z})),n.d(t,"clipPointsByRect",(function(){return J})),n.d(t,"clipRectByRect",(function(){return ee})),n.d(t,"createIcon",(function(){return te})),n.d(t,"linePolygonIntersect",(function(){return ne})),n.d(t,"lineLineIntersect",(function(){return re})),n.d(t,"setTooltipConfig",(function(){return ae})),n.d(t,"traverseElements",(function(){return se}));var r=n(217),i=n(45),a=n(21),o=n(38);n.d(t,"Path",(function(){return o.default}));var s=n(117),l=n(102);n.d(t,"Image",(function(){return l.default}));var u=n(42);n.d(t,"Group",(function(){return u.default}));var c=n(71);n.d(t,"Text",(function(){return c.default}));var d=n(199);n.d(t,"Circle",(function(){return d.default}));var f=n(375);n.d(t,"Ellipse",(function(){return f.default}));var h=n(163);n.d(t,"Sector",(function(){return h.default}));var p=n(379);n.d(t,"Ring",(function(){return p.default}));var m=n(156);n.d(t,"Polygon",(function(){return m.default}));var g=n(164);n.d(t,"Polyline",(function(){return g.default}));var v=n(74);n.d(t,"Rect",(function(){return v.default}));var _=n(139);n.d(t,"Line",(function(){return _.default}));var y=n(380);n.d(t,"BezierCurve",(function(){return y.default}));var b=n(453);n.d(t,"Arc",(function(){return b.default}));var S=n(376);n.d(t,"CompoundPath",(function(){return S.default}));var E=n(276);n.d(t,"LinearGradient",(function(){return E.default}));var w=n(451);n.d(t,"RadialGradient",(function(){return w.default}));var T=n(37);n.d(t,"BoundingRect",(function(){return T.default}));var O=n(464);n.d(t,"OrientedBoundingRect",(function(){return O.default}));var C=n(56);n.d(t,"Point",(function(){return C.default}));var x=n(625);n.d(t,"IncrementalDisplayable",(function(){return x.default}));var k=n(310),M=n(0),A=n(29),R=n(24);n.d(t,"updateProps",(function(){return R.updateProps})),n.d(t,"initProps",(function(){return R.initProps})),n.d(t,"removeElement",(function(){return R.removeElement})),n.d(t,"removeElementWithFadeOut",(function(){return R.removeElementWithFadeOut})),n.d(t,"isElementRemoved",(function(){return R.isElementRemoved}));var I=Math.max,D=Math.min,N={};function L(e){return o.default.extend(e)}var P=r.extendFromString;function j(e,t){return P(e,t)}function F(e,t){N[e]=t}function B(e){if(N.hasOwnProperty(e))return N[e]}function H(e,t,n,i){var a=r.createFromString(e,t);return n&&("center"===i&&(n=Y(n,a.getBoundingRect())),W(a,n)),a}function U(e,t,n){var r=new l.default({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if("center"===n){var i={width:e.width,height:e.height};r.setStyle(Y(t,i))}}});return r}function Y(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var V=r.mergePath;function W(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function z(e){return k.subPixelOptimizeLine(e.shape,e.shape,e.style),e}function G(e){return k.subPixelOptimizeRect(e.shape,e.shape,e.style),e}var $=k.subPixelOptimize;function q(e,t){for(var n=i.identity([]);e&&e!==t;)i.mul(n,e.getLocalTransform(),n),e=e.parent;return n}function K(e,t,n){return t&&!Object(M.isArrayLike)(t)&&(t=s.default.getLocalTransform(t)),n&&(t=i.invert([],t)),a.applyTransform([],e,t)}function X(e,t,n){var r=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),i=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),a=["left"===e?-r:"right"===e?r:0,"top"===e?-i:"bottom"===e?i:0];return a=K(a,t,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Q(e){return!e.isGroup}function Z(e,t,n){if(e&&t){var r,i=(r={},e.traverse((function(e){Q(e)&&e.anid&&(r[e.anid]=e)})),r);t.traverse((function(e){if(Q(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),Object(R.updateProps)(e,r,n,Object(A.getECData)(e).dataIndex)}}}))}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return null!=e.shape}(e)&&(t.shape=Object(M.extend)({},e.shape)),t}}function J(e,t){return Object(M.map)(e,(function(e){var n=e[0];n=I(n,t.x),n=D(n,t.x+t.width);var r=e[1];return r=I(r,t.y),[n,r=D(r,t.y+t.height)]}))}function ee(e,t){var n=I(e.x,t.x),r=D(e.x+e.width,t.x+t.width),i=I(e.y,t.y),a=D(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function te(e,t,n){var r=Object(M.extend)({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(M.defaults)(i,n),new l.default(r)):H(e.replace("path://",""),r,n,"center")}function ne(e,t,n,r,i){for(var a=0,o=i[i.length-1];a=-1e-6)return!1;var p=e-i,m=t-a,g=ie(p,m,u,c)/h;if(g<0||g>1)return!1;var v=ie(p,m,d,f)/h;return!(v<0||v>1)}function ie(e,t,n,r){return e*r-n*t}function ae(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(M.isString)(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&Object(M.each)(Object(M.keys)(l),(function(e){Object(M.hasOwn)(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Object(A.getECData)(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:Object(M.defaults)({content:r,formatterParams:s},i)}}function oe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function se(e,t){if(e)if(Object(M.isArray)(e))for(var n=0;n=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=a.Arguments=a.Array;if(i("keys"),i("values"),i("entries"),!u&&c&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},function(e,t,n){"use strict";var r=n(666).charAt,i=n(151),a=n(271),o=n(663),s=a.set,l=a.getterFor("String Iterator");o(String,"String",(function(e){s(this,{type:"String Iterator",string:i(e),index:0})}),(function(){var e,t=l(this),n=t.string,i=t.index;return i>=n.length?{value:void 0,done:!0}:(e=r(n,i),t.index+=e.length,{value:e,done:!1})}))},function(e,t,n){var r=n(57),i=n(967),a=n(968),o=n(15),s=n(300),l=n(121),u=l("iterator"),c=l("toStringTag"),d=o.values,f=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[c]||s(e,c,t),i[t])for(var n in o)if(e[n]!==o[n])try{s(e,n,o[n])}catch(t){e[n]=o[n]}}};for(var h in i)f(r[h]&&r[h].prototype,h);f(a,"DOMTokenList")},function(e,t,n){"use strict";var r=n(73),i=n(57),a=n(298),o=n(339),s=n(158),l=n(77),u=n(336),c=n(149),d=n(654),f=n(83),h=n(150),p=n(441),m=n(127),g=n(133),v=n(299),_=n(503),y=n(134),b=n(176),S=n(190),E=n(502),w=n(151),T=n(430),O=n(338),C=n(437),x=n(362),k=n(661),M=n(660),A=n(270),R=n(166),I=n(956),D=n(501),N=n(442),L=n(231),P=n(505),j=n(508),F=n(433),B=n(506),H=n(121),U=n(969),Y=n(970),V=n(511),W=n(271),z=n(272).forEach,G=j("hidden"),$=H("toPrimitive"),q=W.set,K=W.getterFor("Symbol"),X=Object.prototype,Q=i.Symbol,Z=Q&&Q.prototype,J=i.TypeError,ee=i.QObject,te=a("JSON","stringify"),ne=A.f,re=R.f,ie=k.f,ae=D.f,oe=l([].push),se=P("symbols"),le=P("op-symbols"),ue=P("string-to-symbol-registry"),ce=P("symbol-to-string-registry"),de=P("wks"),fe=!ee||!ee.prototype||!ee.prototype.findChild,he=c&&f((function(){return 7!=O(re({},"a",{get:function(){return re(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=ne(X,t);r&&delete X[t],re(e,t,n),r&&e!==X&&re(X,t,r)}:re,pe=function(e,t){var n=se[e]=O(Z);return q(n,{type:"Symbol",tag:e,description:t}),c||(n.description=t),n},me=function(e,t,n){e===X&&me(le,t,n),y(e);var r=E(t);return y(n),h(se,r)?(n.enumerable?(h(e,G)&&e[G][r]&&(e[G][r]=!1),n=O(n,{enumerable:T(0,!1)})):(h(e,G)||re(e,G,T(1,{})),e[G][r]=!0),he(e,r,n)):re(e,r,n)},ge=function(e,t){y(e);var n=S(t),r=C(n).concat(be(n));return z(r,(function(t){c&&!s(ve,n,t)||me(e,t,n[t])})),e},ve=function(e){var t=E(e),n=s(ae,this,t);return!(this===X&&h(se,t)&&!h(le,t))&&(!(n||!h(this,t)||!h(se,t)||h(this,G)&&this[G][t])||n)},_e=function(e,t){var n=S(e),r=E(t);if(n!==X||!h(se,r)||h(le,r)){var i=ne(n,r);return!i||!h(se,r)||h(n,G)&&n[G][r]||(i.enumerable=!0),i}},ye=function(e){var t=ie(S(e)),n=[];return z(t,(function(e){h(se,e)||h(F,e)||oe(n,e)})),n},be=function(e){var t=e===X,n=ie(t?le:S(e)),r=[];return z(n,(function(e){!h(se,e)||t&&!h(X,e)||oe(r,se[e])})),r};(d||(L(Z=(Q=function(){if(v(Z,this))throw J("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?w(arguments[0]):void 0,t=B(e),n=function(e){this===X&&s(n,le,e),h(this,G)&&h(this[G],t)&&(this[G][t]=!1),he(this,t,T(1,e))};return c&&fe&&he(X,t,{configurable:!0,set:n}),pe(t,e)}).prototype,"toString",(function(){return K(this).tag})),L(Q,"withoutSetter",(function(e){return pe(B(e),e)})),D.f=ve,R.f=me,I.f=ge,A.f=_e,x.f=k.f=ye,M.f=be,U.f=function(e){return pe(H(e),e)},c&&(re(Z,"description",{configurable:!0,get:function(){return K(this).description}}),u||L(X,"propertyIsEnumerable",ve,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:Q}),z(C(de),(function(e){Y(e)})),r({target:"Symbol",stat:!0,forced:!d},{for:function(e){var t=w(e);if(h(ue,t))return ue[t];var n=Q(t);return ue[t]=n,ce[n]=t,n},keyFor:function(e){if(!_(e))throw J(e+" is not a symbol");if(h(ce,e))return ce[e]},useSetter:function(){fe=!0},useSimple:function(){fe=!1}}),r({target:"Object",stat:!0,forced:!d,sham:!c},{create:function(e,t){return void 0===t?O(e):ge(O(e),t)},defineProperty:me,defineProperties:ge,getOwnPropertyDescriptor:_e}),r({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:ye,getOwnPropertySymbols:be}),r({target:"Object",stat:!0,forced:f((function(){M.f(1)}))},{getOwnPropertySymbols:function(e){return M.f(b(e))}}),te)&&r({target:"JSON",stat:!0,forced:!d||f((function(){var e=Q();return"[null]"!=te([e])||"{}"!=te({a:e})||"{}"!=te(Object(e))}))},{stringify:function(e,t,n){var r=N(arguments),i=t;if((g(t)||void 0!==e)&&!_(e))return p(t)||(t=function(e,t){if(m(i)&&(t=s(i,this,e,t)),!_(t))return t}),r[1]=t,o(te,null,r)}});if(!Z[$]){var Se=Z.valueOf;L(Z,$,(function(e){return s(Se,this)}))}V(Q,"Symbol"),F[G]=!0},function(e,t,n){"use strict";var r=n(73),i=n(149),a=n(57),o=n(77),s=n(150),l=n(127),u=n(299),c=n(151),d=n(166).f,f=n(953),h=a.Symbol,p=h&&h.prototype;if(i&&l(h)&&(!("description"in p)||void 0!==h().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=u(p,this)?new h(e):void 0===e?h():h(e);return""===e&&(m[t]=!0),t};f(g,h),g.prototype=p,p.constructor=g;var v="Symbol(test)"==String(h("test")),_=o(p.toString),y=o(p.valueOf),b=/^Symbol\((.*)\)[^)]+$/,S=o("".replace),E=o("".slice);d(p,"description",{configurable:!0,get:function(){var e=y(this),t=_(e);if(s(m,e))return"";var n=v?E(t,7,-1):S(t,b,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:g})}},function(e,t,n){n(970)("iterator")},function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e,t){return e[0]=t[0],e[1]=t[1],e}function a(e){return[e[0],e[1]]}function o(e,t,n){return e[0]=t,e[1]=n,e}function s(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function l(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e}function u(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function c(e){return Math.sqrt(f(e))}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"copy",(function(){return i})),n.d(t,"clone",(function(){return a})),n.d(t,"set",(function(){return o})),n.d(t,"add",(function(){return s})),n.d(t,"scaleAndAdd",(function(){return l})),n.d(t,"sub",(function(){return u})),n.d(t,"len",(function(){return c})),n.d(t,"length",(function(){return d})),n.d(t,"lenSquare",(function(){return f})),n.d(t,"lengthSquare",(function(){return h})),n.d(t,"mul",(function(){return p})),n.d(t,"div",(function(){return m})),n.d(t,"dot",(function(){return g})),n.d(t,"scale",(function(){return v})),n.d(t,"normalize",(function(){return _})),n.d(t,"distance",(function(){return y})),n.d(t,"dist",(function(){return b})),n.d(t,"distanceSquare",(function(){return S})),n.d(t,"distSquare",(function(){return E})),n.d(t,"negate",(function(){return w})),n.d(t,"lerp",(function(){return T})),n.d(t,"applyTransform",(function(){return O})),n.d(t,"min",(function(){return C})),n.d(t,"max",(function(){return x}));var d=c;function f(e){return e[0]*e[0]+e[1]*e[1]}var h=f;function p(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function m(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function g(e,t){return e[0]*t[0]+e[1]*t[1]}function v(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function _(e,t){var n=c(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function y(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var b=y;function S(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var E=S;function w(e,t){return e[0]=-t[0],e[1]=-t[1],e}function T(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function O(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function C(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function x(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"countBits",(function(){return o})),n.d(t,"countBytes",(function(){return s})),n.d(t,"padStart",(function(){return l})),n.d(t,"isTypedArray",(function(){return u})),n.d(t,"toUint8",(function(){return c})),n.d(t,"toHexString",(function(){return d})),n.d(t,"toBinaryString",(function(){return f})),n.d(t,"ENDIANNESS",(function(){return m})),n.d(t,"IS_BIG_ENDIAN",(function(){return g})),n.d(t,"IS_LITTLE_ENDIAN",(function(){return v})),n.d(t,"bytesToNumber",(function(){return _})),n.d(t,"numberToBytes",(function(){return y})),n.d(t,"bytesToString",(function(){return b})),n.d(t,"stringToBytes",(function(){return S})),n.d(t,"concatTypedArrays",(function(){return E})),n.d(t,"bytesMatch",(function(){return w})),n.d(t,"sliceBytes",(function(){return T})),n.d(t,"reverseBytes",(function(){return O}));var r,i,a=n(7),o=function(e){return e.toString(2).length},s=function(e){return Math.ceil(o(e)/8)},l=function(e,t,n){return void 0===n&&(n=" "),(function(e,t){for(var n="";t--;)n+=e;return n}(n,t)+e.toString()).slice(-t)},u=function(e){return ArrayBuffer.isView(e)},c=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||u(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},d=function(e){e=c(e);for(var t="",n=0;nu&&(l-=u,l-=u,l-=h(2))}return Number(l)},y=function(e,t){var n=(void 0===t?{}:t).le,r=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=h(e);for(var i=s(e),a=new Uint8Array(new ArrayBuffer(i)),o=0;o=t.length&&l.call(t,(function(t,n){return t===(s[n]?s[n]&e[a+n]:e[a+n])}))},T=function(e,t,n){return Uint8Array.prototype.slice?Uint8Array.prototype.slice.call(e,t,n):new Uint8Array(Array.prototype.slice.call(e,t,n))},O=function(e){return e.reverse?e.reverse():Array.prototype.reverse.call(e)}},function(e,t,n){var r=n(87),i=n(226),a=n(187),o=n(188),s=n(227),l=function(e,t,n){var u,c,d,f,h=e&l.F,p=e&l.G,m=e&l.S,g=e&l.P,v=e&l.B,_=p?r:m?r[t]||(r[t]={}):(r[t]||{}).prototype,y=p?i:i[t]||(i[t]={}),b=y.prototype||(y.prototype={});for(u in p&&(n=t),n)d=((c=!h&&_&&void 0!==_[u])?_:n)[u],f=v&&c?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,_&&o(_,u,d,e&l.U),y[u]!=d&&a(y,u,f),g&&b[u]!=d&&(b[u]=d)};r.core=i,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";n.r(t),n.d(t,"transitionStore",(function(){return a})),n.d(t,"getAnimationConfig",(function(){return o})),n.d(t,"updateProps",(function(){return l})),n.d(t,"initProps",(function(){return u})),n.d(t,"isElementRemoved",(function(){return c})),n.d(t,"removeElement",(function(){return d})),n.d(t,"removeElementWithFadeOut",(function(){return h})),n.d(t,"saveOldStyle",(function(){return p})),n.d(t,"getOldStyle",(function(){return m}));var r=n(0),i=n(6),a=Object(i.makeInner)();function o(e,t,n,i,a){var o;if(t&&t.ecModel){var s=t.ecModel.getUpdatePayload();o=s&&s.animation}var l="update"===e;if(t&&t.isAnimationEnabled()){var u=void 0,c=void 0,d=void 0;return i?(u=Object(r.retrieve2)(i.duration,200),c=Object(r.retrieve2)(i.easing,"cubicOut"),d=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),d=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(u=o.duration),null!=o.easing&&(c=o.easing),null!=o.delay&&(d=o.delay)),Object(r.isFunction)(d)&&(d=d(n,a)),Object(r.isFunction)(u)&&(u=u(n)),{duration:u||0,delay:d,easing:c}}return null}function s(e,t,n,i,a,s,l){var u,c=!1;Object(r.isFunction)(a)?(l=s,s=a,a=null):Object(r.isObject)(a)&&(s=a.cb,l=a.during,c=a.isFrom,u=a.removeOpt,a=a.dataIndex);var d="leave"===e;d||t.stopAnimation("leave");var f=o(e,i,a,d?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(t,a):null);if(f&&f.duration>0){var h={duration:f.duration,delay:f.delay||0,easing:f.easing,done:s,force:!!s||!!l,setToFinal:!d,scope:e,during:l};c?t.animateFrom(n,h):t.animateTo(n,h)}else t.stopAnimation(),!c&&t.attr(n),l&&l(1),s&&s()}function l(e,t,n,r,i,a){s("update",e,t,n,r,i,a)}function u(e,t,n,r,i,a){s("enter",e,t,n,r,i,a)}function c(e){if(!e.__zr)return!0;for(var t=0;tRead more about it in \n the documentation or contact us at support@handsontable.com.'],['\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: \'non-commercial-and-evaluation\'.\\x20\n Read more about it in\\x20\n the documentation or contact us at support@handsontable.com.']);return o=function(){return e},e}function s(){var e=f(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",'. Renew your \n license key or downgrade to a version released prior to ','. If you need any \n help, contact us at sales@handsontable.com.'],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",'. Renew your\\x20\n license key or downgrade to a version released prior to ','. If you need any\\x20\n help, contact us at sales@handsontable.com.']);return s=function(){return e},e}function l(){var e=f(['\n The license key for Handsontable is invalid. \n Read more on how to \n install it properly or contact us at support@handsontable.com.'],['\n The license key for Handsontable is invalid.\\x20\n Read more on how to\\x20\n install it properly or contact us at support@handsontable.com.']);return l=function(){return e},e}function u(){var e=f(["\n The license key for Handsontable is missing. Use your purchased key to activate the product. \n Alternatively, you can activate Handsontable to use for non-commercial purposes by \n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact \n us at support@handsontable.com."],["\n The license key for Handsontable is missing. Use your purchased key to activate the product.\\x20\n Alternatively, you can activate Handsontable to use for non-commercial purposes by\\x20\n passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\\x20\n us at support@handsontable.com."]);return u=function(){return e},e}function c(){var e=f(["\n The license key for Handsontable expired on ",", and is not valid for the installed \n version ",". Renew your license key at handsontable.com or downgrade to a version released prior \n to ",". If you need any help, contact us at sales@handsontable.com."],["\n The license key for Handsontable expired on ",", and is not valid for the installed\\x20\n version ",". Renew your license key at handsontable.com or downgrade to a version released prior\\x20\n to ",". If you need any help, contact us at sales@handsontable.com."]);return c=function(){return e},e}function d(){var e=f(["\n The license key for Handsontable is invalid. \n If you need any help, contact us at support@handsontable.com."],["\n The license key for Handsontable is invalid.\\x20\n If you need any help, contact us at support@handsontable.com."]);return d=function(){return e},e}function f(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function h(e){return(h="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})(e)}function p(e){var t;switch(h(e)){case"string":case"number":t="".concat(e);break;case"object":t=null===e?"":e.toString();break;case"undefined":t="";break;default:t=e.toString()}return t}function m(e){return void 0!==e}function g(e){return void 0===e}function v(e){return null===e||""===e||g(e)}function _(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var y="length",b=function(e){return parseInt(e,16)},S=function(e){return parseInt(e,10)},E=function(e,t,n){return e.substr(t,n)},w=function(e){return e.codePointAt(0)-65},T=function(e){return"".concat(e).replace(/\-/g,"")},O=!1,C={invalid:function(){return Object(a.toSingleLine)(d())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return Object(a.toSingleLine)(c(),t,n,t)},missing:function(){return Object(a.toSingleLine)(u())},non_commercial:function(){return""}},x={invalid:function(){return Object(a.toSingleLine)(l())},expired:function(e){var t=e.keyValidityDate,n=e.hotVersion;return Object(a.toSingleLine)(s(),t,n,t)},missing:function(){return Object(a.toSingleLine)(o())},non_commercial:function(){return""}};function k(e,t){var n,r,a=!v(e),o="string"==typeof e&&"non-commercial-and-evaluation"===e.toLowerCase(),s="invalid",l="invalid",u=function(e){var t=[][y],n=t;if(e[y]!==w("Z"))return!1;for(var r="",i="B>1:r=E(e,a,a?1===i[y]?9:8:6);return n===t}(e=T(e||""));if(a||o||u)if(u){var c=i()("19/02/2020","DD/MM/YYYY"),d=Math.floor(c.toDate().getTime()/864e5),f=b(E(T(r=e),b("12"),w("F")))/(b(E(T(r),w("B"),~~![][y]))||9);if(n=i()(864e5*(f+1),"x").format("MMMM DD, YYYY"),d>f){var h=i()().diff(c,"days");s=h<=1?"valid":"expired",l=h<=15?"valid":"expired"}else s="valid",l="valid"}else o?(s="non_commercial",l="valid"):(s="invalid",l="invalid");else s="missing",l="missing";("undefined"!=typeof location&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host)&&(s="valid",l="valid"),O||"valid"===s)||(C[s]({keyValidityDate:n,hotVersion:"7.4.2"})&&console["non_commercial"===s?"info":"warn"](C[s]({keyValidityDate:n,hotVersion:"7.4.2"})),O=!0);if("valid"!==l&&t.parentNode&&x[l]({keyValidityDate:n,hotVersion:"7.4.2"})){var p=document.createElement("div");p.id="hot-display-license-info",p.innerHTML=x[l]({keyValidityDate:n,hotVersion:"7.4.2"}),t.parentNode.insertBefore(p,t.nextSibling)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"stopImmediatePropagation",(function(){return i})),n.d(t,"isImmediatePropagationStopped",(function(){return a})),n.d(t,"stopPropagation",(function(){return o})),n.d(t,"pageX",(function(){return s})),n.d(t,"pageY",(function(){return l})),n.d(t,"isRightClick",(function(){return u})),n.d(t,"isLeftClick",(function(){return c}));var r=n(1);function i(e){e.isImmediatePropagationEnabled=!1,e.cancelBubble=!0}function a(e){return!1===e.isImmediatePropagationEnabled}function o(e){"function"==typeof e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function s(e){if(e.pageX)return e.pageX;var t=e.target.ownerDocument.defaultView;return e.clientX+Object(r.getWindowScrollLeft)(t)}function l(e){if(e.pageY)return e.pageY;var t=e.target.ownerDocument.defaultView,n=Object(r.getWindowScrollTop)(t);for(t=Object(r.getParentWindow)(t);t;)n-=Object(r.getWindowScrollTop)(t),t=Object(r.getParentWindow)(t);return e.clientY+n}function u(e){return 2===e.button}function c(e){return 0===e.button}},function(e,t,n){"use strict";n.r(t),n.d(t,"VISUAL_DIMENSIONS",(function(){return i})),n.d(t,"SOURCE_FORMAT_ORIGINAL",(function(){return a})),n.d(t,"SOURCE_FORMAT_ARRAY_ROWS",(function(){return o})),n.d(t,"SOURCE_FORMAT_OBJECT_ROWS",(function(){return s})),n.d(t,"SOURCE_FORMAT_KEYED_COLUMNS",(function(){return l})),n.d(t,"SOURCE_FORMAT_TYPED_ARRAY",(function(){return u})),n.d(t,"SOURCE_FORMAT_UNKNOWN",(function(){return c})),n.d(t,"SERIES_LAYOUT_BY_COLUMN",(function(){return d})),n.d(t,"SERIES_LAYOUT_BY_ROW",(function(){return f}));var r=n(0),i=Object(r.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),a="original",o="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",d="column",f="row"},function(e,t,n){"use strict";n.r(t),n.d(t,"getECData",(function(){return i})),n.d(t,"setCommonECData",(function(){return a}));var r=n(6),i=Object(r.makeInner)(),a=function(e,t,n,r){if(r){var a=i(r);a.dataIndex=n,a.dataType=t,a.seriesIndex=e,"group"===r.type&&r.traverse((function(r){var a=i(r);a.seriesIndex=e,a.dataIndex=n,a.dataType=t}))}}},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},a=n(1453);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=r}).call(this,n(225))},function(e,t,n){"use strict";var r=n(77),i=n(434).PROPER,a=n(231),o=n(134),s=n(299),l=n(151),u=n(83),c=n(673),d=RegExp.prototype,f=d.toString,h=r(c),p=u((function(){return"/a/b"!=f.call({source:"a",flags:"b"})})),m=i&&"toString"!=f.name;(p||m)&&a(RegExp.prototype,"toString",(function(){var e=o(this),t=l(e.source),n=e.flags;return"/"+t+"/"+l(void 0===n&&s(d,e)&&!("flags"in d)?h(e):n)}),{unsafe:!0})},function(e,t,n){var r=n(626);e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(73),i=n(83),a=n(176),o=n(510),s=n(959);r({target:"Object",stat:!0,forced:i((function(){o(1)})),sham:!s},{getPrototypeOf:function(e){return o(a(e))}})},function(e,t,n){"use strict";n.r(t),n.d(t,"LOCATION_PARAMS",(function(){return l})),n.d(t,"HV_NAMES",(function(){return u})),n.d(t,"box",(function(){return d})),n.d(t,"vbox",(function(){return f})),n.d(t,"hbox",(function(){return h})),n.d(t,"getAvailableSize",(function(){return p})),n.d(t,"getLayoutRect",(function(){return m})),n.d(t,"positionElement",(function(){return g})),n.d(t,"sizeCalculable",(function(){return v})),n.d(t,"fetchLayoutMode",(function(){return _})),n.d(t,"mergeLayoutParam",(function(){return y})),n.d(t,"getLayoutParams",(function(){return b})),n.d(t,"copyLayoutParams",(function(){return S}));var r=n(0),i=n(37),a=n(5),o=n(53),s=r.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(e,t,n,r,i){var a=0,o=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,d,f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect();if("horizontal"===e){var m=f.width+(p?-p.x+f.x:0);(c=a+m)>r||l.newline?(a=0,c=m,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(p?-p.y+f.y:0);(d=o+g)>i||l.newline?(a+=s+n,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),"horizontal"===e?a=c+n:o=d+n)}))}var d=c,f=r.curry(c,"vertical"),h=r.curry(c,"horizontal");function p(e,t,n){var r=t.width,i=t.height,s=Object(a.parsePercent)(e.left,r),l=Object(a.parsePercent)(e.top,i),u=Object(a.parsePercent)(e.right,r),c=Object(a.parsePercent)(e.bottom,i);return(isNaN(s)||isNaN(parseFloat(e.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(e.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(e.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(e.bottom)))&&(c=i),n=o.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function m(e,t,n){n=o.normalizeCssArray(n||0);var r=t.width,s=t.height,l=Object(a.parsePercent)(e.left,r),u=Object(a.parsePercent)(e.top,s),c=Object(a.parsePercent)(e.right,r),d=Object(a.parsePercent)(e.bottom,s),f=Object(a.parsePercent)(e.width,r),h=Object(a.parsePercent)(e.height,s),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(f)&&(f=r-c-m-l),isNaN(h)&&(h=s-d-p-u),null!=g&&(isNaN(f)&&isNaN(h)&&(g>r/s?f=.8*r:h=.8*s),isNaN(f)&&(f=g*h),isNaN(h)&&(h=f/g)),isNaN(l)&&(l=r-c-f-m),isNaN(u)&&(u=s-d-h-p),e.left||e.right){case"center":l=r/2-f/2-n[3];break;case"right":l=r-f-m}switch(e.top||e.bottom){case"middle":case"center":u=s/2-h/2-n[0];break;case"bottom":u=s-h-p}l=l||0,u=u||0,isNaN(f)&&(f=r-m-l-(c||0)),isNaN(h)&&(h=s-p-u-(d||0));var v=new i.default(l+n[3],u+n[0],f,h);return v.margin=n,v}function g(e,t,n,a,o,s){var l,u=!o||!o.hv||o.hv[0],c=!o||!o.hv||o.hv[1],d=o&&o.boundingMode||"all";if((s=s||e).x=e.x,s.y=e.y,!u&&!c)return!1;if("raw"===d)l="group"===e.type?new i.default(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(l=e.getBoundingRect(),e.needLocalTransform()){var f=e.getLocalTransform();(l=l.clone()).applyTransform(f)}var h=m(r.defaults({width:l.width,height:l.height},t),n,a),p=u?h.x-l.x:0,g=c?h.y-l.y:0;return"raw"===d?(s.x=p,s.y=g):(s.x+=p,s.y+=g),s===e&&e.markRedraw(),!0}function v(e,t){return null!=e[u[t][0]]||null!=e[u[t][1]]&&null!=e[u[t][2]]}function _(e){var t=e.layoutMode||e.constructor.layoutMode;return r.isObject(t)?t:t?{type:t}:null}function y(e,t,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var a=l(u[0],0),o=l(u[1],1);function l(n,r){var a={},o=0,l={},u=0;if(s(n,(function(t){l[t]=e[t]})),s(n,(function(e){c(t,e)&&(a[e]=l[e]=t[e]),d(a,e)&&o++,d(l,e)&&u++})),i[r])return d(t,n[1])?l[n[2]]=null:d(t,n[2])&&(l[n[1]]=null),l;if(2!==u&&o){if(o>=2)return a;for(var f=0;fv&&(v=E,_v&&(v=w,b=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],d=r[3],f=r[4],h=r[5];return t.x=n.x*i+f,t.y=n.y*d+h,t.width=n.width*i,t.height=n.height*d,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=u.x=n.x,s.y=c.y=n.y,l.x=c.x=n.x+n.width,l.y=u.y=n.y+n.height,s.transform(r),c.transform(r),l.transform(r),u.transform(r),t.x=a(s.x,l.x,u.x,c.x),t.y=a(s.y,l.y,u.y,c.y);var p=o(s.x,l.x,u.x,c.x),m=o(s.y,l.y,u.y,c.y);t.width=p-t.x,t.height=m-t.y}else t!==n&&e.copy(t,n)},e}();t.default=h},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_PATH_STYLE",(function(){return f})),n.d(t,"DEFAULT_PATH_ANIMATION_PROPS",(function(){return h}));var r=n(66),i=n(99),a=n(152),o=n(722),s=n(0),l=n(76),u=n(146),c=n(96),d=n(117),f=Object(s.defaults)({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i.DEFAULT_COMMON_STYLE),h={style:Object(s.defaults)({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)},p=d.TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),m=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.__extends)(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s.5?u.DARK_LABEL_COLOR:t>.2?u.LIGHTER_LABEL_COLOR:u.LIGHT_LABEL_COLOR}if(e)return u.LIGHT_LABEL_COLOR}return u.DARK_LABEL_COLOR},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(s.isString)(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(l.lum)(e,0)0))},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&c.SHAPE_CHANGED_BIT)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var s=i.lineWidth,l=i.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),o.containStroke(a,s/l,e,t)))return!0}if(this.hasFill())return o.contain(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=c.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"==typeof e?n[e]=t:Object(s.extend)(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&c.SHAPE_CHANGED_BIT)},t.prototype.createStyle=function(e){return Object(s.createObject)(f,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(s.extend)({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var l,u=!(n&&i);if(n&&n.shape?a?i?l=n.shape:(l=Object(s.extend)({},r.shape),Object(s.extend)(l,n.shape)):(l=Object(s.extend)({},i?this.shape:r.shape),Object(s.extend)(l,n.shape)):u&&(l=r.shape),l)if(a){this.shape=Object(s.extend)({},this.shape);for(var c={},d=Object(s.keys)(l),f=0;f0&&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,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Array.isArray(t))Object(r.arrayEach)(t,(function(t){return n.add(e,t,i)}));else{var a=this.getBucket(i);if(void 0===a[e]&&(this.register(e),a[e]=[]),t.skip=!1,-1===a[e].indexOf(t)){var o=!1;t.initialHook&&Object(r.arrayEach)(a[e],(function(n,r){if(n.initialHook)return a[e][r]=t,o=!0,!1})),o||a[e].push(t)}}return this}},{key:"once",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Array.isArray(t)?Object(r.arrayEach)(t,(function(t){return n.once(e,t,i)})):(t.runOnce=!0,this.add(e,t,i))}},{key:"remove",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.getBucket(n);return void 0!==r[e]&&r[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,r,i,a,o,s){var l=this.globalBucket[t],u=l?l.length:0,c=0;if(u)for(;c0&&void 0!==arguments[0]?arguments[0]:null;Object(i.objectEach)(this.getBucket(e),(function(e,t,n){return n[t].length=0}))}},{key:"register",value:function(e){this.isRegistered(e)||s.push(e)}},{key:"deregister",value:function(e){this.isRegistered(e)&&s.splice(s.indexOf(e),1)}},{key:"isRegistered",value:function(e){return s.indexOf(e)>=0}},{key:"getRegistered",value:function(){return s}}]),e}(),u=new l;t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"log",(function(){return o})),n.d(t,"warn",(function(){return s})),n.d(t,"error",(function(){return l})),n.d(t,"deprecateLog",(function(){return u})),n.d(t,"deprecateReplaceLog",(function(){return c})),n.d(t,"makePrintable",(function(){return d})),n.d(t,"throwError",(function(){return f}));var r={},i="undefined"!=typeof console&&console.warn&&console.log;function a(e,t,n){if(i){if(n){if(r[t])return;r[t]=!0}console[e]("[ECharts] "+t)}}function o(e,t){a("log",e,t)}function s(e,t){a("warn",e,t)}function l(e,t){a("error",e,t)}function u(e){0}function c(e,t,n){0}function d(){for(var e=[],t=0;t=48&&e<=57||e>=96&&e<=111||e>=186&&e<=192||e>=219&&e<=222||e>=226||e>=65&&e<=90}function o(e){return-1!==[i.ARROW_DOWN,i.ARROW_UP,i.ARROW_LEFT,i.ARROW_RIGHT,i.HOME,i.END,i.DELETE,i.BACKSPACE,i.F1,i.F2,i.F3,i.F4,i.F5,i.F6,i.F7,i.F8,i.F9,i.F10,i.F11,i.F12,i.TAB,i.PAGE_DOWN,i.PAGE_UP,i.ENTER,i.ESCAPE,i.SHIFT,i.CAPS_LOCK,i.ALT].indexOf(e)}function s(e){var t=[];return navigator.platform.includes("Mac")?t.push(i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX):t.push(i.CONTROL),t.includes(e)}function l(e){return[i.CONTROL,i.COMMAND_LEFT,i.COMMAND_RIGHT,i.COMMAND_FIREFOX].includes(e)}function u(e,t){var n=t.split("|"),a=!1;return Object(r.arrayEach)(n,(function(t){if(e===i[t])return a=!0,!1})),a}},function(e,t,n){"use strict";n.r(t);var r=n(66),i=n(0),a=n(548),o=n(37),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r.__extends)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i.indexOf(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i.indexOf(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n=0&&u.splice(u.indexOf(this.pluginName),1),u.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){l.get(this).hooks[e]=l.get(this).hooks[e]||[];var n=l.get(this).hooks[e];this.hot.addHook(e,t),n.push(t),l.get(this).hooks[e]=n}},{key:"removeHooks",value:function(e){var t=this;Object(i.arrayEach)(l.get(this).hooks[e]||[],(function(n){t.hot.removeHook(e,n)}))}},{key:"clearHooks",value:function(){var e=this,t=l.get(this).hooks;Object(r.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(){Object(i.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(),Object(r.objectEach)(this,(function(t,n){"hot"!==n&&"t"!==n&&(e[n]=null)})),delete this.t,delete this.hot}}])&&s(t.prototype,n),c&&s(t,c),e}();t.default=c},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(0),a=n(64),o=n(98),s=n(116),l=n(6),u=n(34),c=Object(l.makeInner)(),d=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=o.getUID("ec_cpt_model"),i}var n;return Object(r.__extends)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=u.fetchLayoutMode(this),r=n?u.getLayoutParams(e):{},a=t.getTheme();i.merge(e,a.get(this.mainType)),i.merge(e,this.getDefaultOption()),n&&u.mergeLayoutParam(e,r,n)},t.prototype.mergeOption=function(e,t){i.merge(this.option,e,!0);var n=u.fetchLayoutMode(this);n&&u.mergeLayoutParam(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!Object(s.isExtendedClass)(e))return e.defaultOption;var t=c(this);if(!t.defaultOption){for(var n=[],r=e;r;){var a=r.prototype.defaultOption;a&&n.push(a),r=r.superClass}for(var o={},l=n.length-1;l>=0;l--)o=i.merge(o,n[l],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",r=e+"Id";return Object(l.queryReferringComponents)(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((n=t.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),t}(a.default);Object(s.mountExtend)(d,a.default),Object(s.enableClassManagement)(d),o.enableSubTypeDefaulter(d),o.enableTopologicalTravel(d,(function(e){var t=[];i.each(d.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=i.map(t,(function(e){return Object(s.parseClassType)(e).main})),"dataset"!==e&&i.indexOf(t,"dataset")<=0&&t.unshift("dataset");return t})),t.default=d},function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function a(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function o(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n){var r=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=r*c+o*u,e[1]=-r*u+o*c,e[2]=i*c+s*u,e[3]=-i*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}function u(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function c(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=n*o-a*r;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-o*i)*l,e[5]=(a*i-n*s)*l,e):null}function d(e){var t=[1,0,0,1,0,0];return a(t,e),t}n.r(t),n.d(t,"create",(function(){return r})),n.d(t,"identity",(function(){return i})),n.d(t,"copy",(function(){return a})),n.d(t,"mul",(function(){return o})),n.d(t,"translate",(function(){return s})),n.d(t,"rotate",(function(){return l})),n.d(t,"scale",(function(){return u})),n.d(t,"invert",(function(){return c})),n.d(t,"clone",(function(){return d}))},function(e,t,n){"use strict";n.r(t),n.d(t,"normalizeSelection",(function(){return o})),n.d(t,"isSeparator",(function(){return s})),n.d(t,"hasSubMenu",(function(){return l})),n.d(t,"isDisabled",(function(){return u})),n.d(t,"isSelectionDisabled",(function(){return c})),n.d(t,"getValidSelection",(function(){return d})),n.d(t,"prepareVerticalAlignClass",(function(){return f})),n.d(t,"prepareHorizontalAlignClass",(function(){return h})),n.d(t,"getAlignmentClasses",(function(){return p})),n.d(t,"align",(function(){return m})),n.d(t,"checkSelectionConsistency",(function(){return v})),n.d(t,"markLabelAsSelected",(function(){return _})),n.d(t,"isItemHidden",(function(){return y})),n.d(t,"filterSeparators",(function(){return w}));n(75),n(58),n(521),n(108),n(193),n(92),n(155);var r=n(2),i=n(1),a=n(255);function o(e){return Object(r.arrayMap)(e,(function(e){return{start:e.getTopLeftCorner(),end:e.getBottomRightCorner()}}))}function s(e){return Object(i.hasClass)(e,"htSeparator")}function l(e){return Object(i.hasClass)(e,"htSubmenu")}function u(e){return Object(i.hasClass)(e,"htDisabled")}function c(e){return Object(i.hasClass)(e,"htSelectionDisabled")}function d(e){var t=e.getSelected();return t?t[0]<0?null:t:null}function f(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htTop","").replace("htMiddle","").replace("htBottom","").replace(" ","");return"".concat(n," ").concat(t)}function h(e,t){if(-1!==e.indexOf(t))return e;var n=e.replace("htLeft","").replace("htCenter","").replace("htRight","").replace("htJustify","").replace(" ","");return"".concat(n," ").concat(t)}function p(e,t){var n={};return Object(r.arrayEach)(e,(function(e){for(var r=e.from,i=e.to,a=r.row;a<=i.row;a++)for(var o=r.col;o<=i.col;o++)n[a]||(n[a]=[]),n[a][o]=t(a,o)})),n}function m(e,t,n,i,a){Object(r.arrayEach)(e,(function(e){var r=e.from,o=e.to;if(r.row===o.row&&r.col===o.col)g(r.row,r.col,t,n,i,a);else for(var s=r.row;s<=o.row;s++)for(var l=r.col;l<=o.col;l++)g(s,l,t,n,i,a)}))}function g(e,t,n,r,i,a){var o=i(e,t),s=r;o.className&&(s="vertical"===n?f(o.className,r):h(o.className,r)),a(e,t,"className",s)}function v(e,t){var n=!1;return Array.isArray(e)&&Object(r.arrayEach)(e,(function(e){return e.forAll((function(e,r){if(t(e,r))return n=!0,!1})),n})),n}function _(e){return''.concat(String.fromCharCode(10003),"").concat(e)}function y(e,t){return!e.hidden||!("function"==typeof e.hidden&&e.hidden.call(t))}function b(e,t){for(var n=e.slice(0);00?t[t.length-1].name!==e.name&&t.push(e):t.push(e)})),t}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.KEY,n=e.slice(0);return n=E(n=S(n=b(n,t),t))}},function(e,t,n){"use strict";n.r(t),n.d(t,"ONE_SECOND",(function(){return s})),n.d(t,"ONE_MINUTE",(function(){return l})),n.d(t,"ONE_HOUR",(function(){return u})),n.d(t,"ONE_DAY",(function(){return c})),n.d(t,"ONE_YEAR",(function(){return d})),n.d(t,"defaultLeveledFormatter",(function(){return f})),n.d(t,"fullLeveledFormatter",(function(){return h})),n.d(t,"primaryTimeUnits",(function(){return p})),n.d(t,"timeUnits",(function(){return m})),n.d(t,"pad",(function(){return g})),n.d(t,"getPrimaryTimeUnit",(function(){return v})),n.d(t,"isPrimaryTimeUnit",(function(){return _})),n.d(t,"getDefaultFormatPrecisionOfInterval",(function(){return y})),n.d(t,"format",(function(){return b})),n.d(t,"leveledFormat",(function(){return S})),n.d(t,"getUnitFromValue",(function(){return E})),n.d(t,"getUnitValue",(function(){return w})),n.d(t,"fullYearGetterName",(function(){return T})),n.d(t,"monthGetterName",(function(){return O})),n.d(t,"dateGetterName",(function(){return C})),n.d(t,"hoursGetterName",(function(){return x})),n.d(t,"minutesGetterName",(function(){return k})),n.d(t,"secondsGetterName",(function(){return M})),n.d(t,"millisecondsGetterName",(function(){return A})),n.d(t,"fullYearSetterName",(function(){return R})),n.d(t,"monthSetterName",(function(){return I})),n.d(t,"dateSetterName",(function(){return D})),n.d(t,"hoursSetterName",(function(){return N})),n.d(t,"minutesSetterName",(function(){return L})),n.d(t,"secondsSetterName",(function(){return P})),n.d(t,"millisecondsSetterName",(function(){return j}));var r=n(0),i=n(5),a=n(216),o=n(64),s=1e3,l=60*s,u=60*l,c=24*u,d=365*c,f={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},h={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+f.hour,minute:"{yyyy}-{MM}-{dd} "+f.minute,second:"{yyyy}-{MM}-{dd} "+f.second,millisecond:f.none},p=["year","month","day","hour","minute","second","millisecond"],m=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function g(e,t){return"0000".substr(0,t-(e+="").length)+e}function v(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function _(e){return e===v(e)}function y(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function b(e,t,n,r){var s=i.parseDate(e),l=s[T(n)](),u=s[O(n)]()+1,c=Math.floor((u-1)/4)+1,d=s[C(n)](),f=s["get"+(n?"UTC":"")+"Day"](),h=s[x(n)](),p=(h-1)%12+1,m=s[k(n)](),v=s[M(n)](),_=s[A(n)](),y=(r instanceof o.default?r:Object(a.getLocaleModel)(r||a.SYSTEM_LANG)||Object(a.getDefaultLocaleModel)()).getModel("time"),b=y.get("month"),S=y.get("monthAbbr"),E=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,b[u-1]).replace(/{MMM}/g,S[u-1]).replace(/{MM}/g,g(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,g(d,2)).replace(/{d}/g,d+"").replace(/{eeee}/g,E[f]).replace(/{ee}/g,w[f]).replace(/{e}/g,f+"").replace(/{HH}/g,g(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,g(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,g(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,g(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,g(_,3)).replace(/{S}/g,_+"")}function S(e,t,n,i,a){var o=null;if(r.isString(n))o=n;else if(r.isFunction(n))o=n(e.value,t,{level:e.level});else{var s=r.extend({},f);if(e.level>0)for(var l=0;l=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(r.isArray(o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;o=o[d=Math.min(d,o.length-1)]}}return b(new Date(e.value),o,a,i)}function E(e,t){var n=i.parseDate(e),r=n[O(t)]()+1,a=n[C(t)](),o=n[x(t)](),s=n[k(t)](),l=n[M(t)](),u=0===n[A(t)](),c=u&&0===l,d=c&&0===s,f=d&&0===o,h=f&&1===a;return h&&1===r?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function w(e,t,n){var a=r.isNumber(e)?i.parseDate(e):e;switch(t=t||E(e,n)){case"year":return a[T(n)]();case"half-year":return a[O(n)]()>=6?1:0;case"quarter":return Math.floor((a[O(n)]()+1)/4);case"month":return a[O(n)]();case"day":return a[C(n)]();case"half-day":return a[x(n)]()/24;case"hour":return a[x(n)]();case"minute":return a[k(n)]();case"second":return a[M(n)]();case"millisecond":return a[A(n)]()}}function T(e){return e?"getUTCFullYear":"getFullYear"}function O(e){return e?"getUTCMonth":"getMonth"}function C(e){return e?"getUTCDate":"getDate"}function x(e){return e?"getUTCHours":"getHours"}function k(e){return e?"getUTCMinutes":"getMinutes"}function M(e){return e?"getUTCSeconds":"getSeconds"}function A(e){return e?"getUTCMilliseconds":"getMilliseconds"}function R(e){return e?"setUTCFullYear":"setFullYear"}function I(e){return e?"setUTCMonth":"setMonth"}function D(e){return e?"setUTCDate":"setDate"}function N(e){return e?"setUTCHours":"setHours"}function L(e){return e?"setUTCMinutes":"setMinutes"}function P(e){return e?"setUTCSeconds":"setSeconds"}function j(e){return e?"setUTCMilliseconds":"setMilliseconds"}},function(e,t,n){"use strict";n.r(t),n.d(t,"use",(function(){return h}));var r=n(124),i=n(69),a=n(59),o=n(44),s=n(60),l=n(0),u=n(465),c=n(343),d=[],f={registerPreprocessor:r.registerPreprocessor,registerProcessor:r.registerProcessor,registerPostInit:r.registerPostInit,registerPostUpdate:r.registerPostUpdate,registerUpdateLifecycle:r.registerUpdateLifecycle,registerAction:r.registerAction,registerCoordinateSystem:r.registerCoordinateSystem,registerLayout:r.registerLayout,registerVisual:r.registerVisual,registerTransform:r.registerTransform,registerLoading:r.registerLoading,registerMap:r.registerMap,registerImpl:u.registerImpl,PRIORITY:r.PRIORITY,ComponentModel:o.default,ComponentView:i.default,SeriesModel:s.default,ChartView:a.default,registerComponentModel:function(e){o.default.registerClass(e)},registerComponentView:function(e){i.default.registerClass(e)},registerSeriesModel:function(e){s.default.registerClass(e)},registerChartView:function(e){a.default.registerClass(e)},registerSubTypeDefaulter:function(e,t){o.default.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Object(c.registerPainter)(e,t)}};function h(e){Object(l.isArray)(e)?Object(l.each)(e,(function(e){h(e)})):Object(l.indexOf)(d,e)>=0||(d.push(e),Object(l.isFunction)(e)&&(e={install:e}),e.install(f))}},function(e,t,n){"use strict";n.r(t),n.d(t,"getListenersCounter",(function(){return f}));n(122);var r=n(1),i=n(3),a=n(105),o=n(27);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:null;s(this,e),this.context=t||this,this.context.eventListeners||(this.context.eventListeners=[])}var t,n,r;return t=e,(n=[{key:"addEventListener",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.context;function s(e){n.call(this,d(o,e))}return"boolean"==typeof i||Object(a.isPassiveEventSupported)()||(i=!1),this.context.eventListeners.push({element:e,event:t,callback:n,callbackProxy:s,options:i,eventManager:this}),e.addEventListener(t,s,i),u+=1,function(){r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){for(var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=this.context.eventListeners.length;a;)if(a-=1,(r=this.context.eventListeners[a]).event===t&&r.element===e){if(n&&n!==r.callback)continue;if(i&&r.eventManager!==this)continue;this.context.eventListeners.splice(a,1),r.element.removeEventListener(r.event,r.callbackProxy,r.options),u-=1}}},{key:"clearEvents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.context)for(var t=this.context.eventListeners.length;t;){t-=1;var n=this.context.eventListeners[t];n&&this.removeEventListener(n.element,n.event,n.callback,e)}}},{key:"clear",value:function(){this.clearEvents()}},{key:"destroy",value:function(){this.clearEvents(),this.context=null}},{key:"destroyWithOwnEventsOnly",value:function(){this.clearEvents(!0),this.context=null}},{key:"fireEvent",value:function(e,t){var n=e.document,r=e;n||(r=(n=e.ownerDocument?e.ownerDocument:e).defaultView);var i,a={bubbles:!0,cancelable:"mousemove"!==t,view:r,detail:0,screenX:0,screenY:0,clientX:1,clientY:1,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:void 0};n.createEvent?(i=n.createEvent("MouseEvents")).initMouseEvent(t,a.bubbles,a.cancelable,a.view,a.detail,a.screenX,a.screenY,a.clientX,a.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,a.button,a.relatedTarget||n.body.parentNode):i=n.createEventObject(),e.dispatchEvent?e.dispatchEvent(i):e.fireEvent("on".concat(t),i)}}])&&l(t.prototype,n),r&&l(t,r),e}();function d(e,t){var n,s,l,u,d;t.isTargetWebComponent=!1,t.realTarget=t.target;var f=t.stopImmediatePropagation;if(t.stopImmediatePropagation=function(){f.apply(this),Object(o.stopImmediatePropagation)(this)},!c.isHotTableEnv)return t;for(d=(t=Object(r.polymerWrap)(t)).path?t.path.length:0;d;){if(d-=1,"HOT-TABLE"===t.path[d].nodeName)n=!0;else if(n&&t.path[d].shadowRoot){u=t.path[d];break}0!==d||u||(u=t.path[d])}return u||(u=t.target),t.isTargetWebComponent=!0,Object(a.isWebComponentSupportedNatively)()?t.realTarget=t.srcElement||t.toElement:(Object(i.hasOwnProperty)(e,"hot")||e.isHotTableEnv||e.wtTable)&&(Object(i.hasOwnProperty)(e,"hot")?s=e.hot?e.hot.view.wt.wtTable.TABLE:null:e.isHotTableEnv?s=e.view.activeWt.wtTable.TABLE.parentNode.parentNode:e.wtTable&&(s=e.wtTable.TABLE.parentNode.parentNode),l=Object(r.closest)(t.target,["HOT-TABLE"],s),t.realTarget=l&&s.querySelector("HOT-TABLE")||t.target),Object.defineProperty(t,"target",{get:function(){return Object(r.polymerWrap)(u)},enumerable:!0,configurable:!0}),t}function f(){return u}t.default=c},function(e,t,n){"use strict";n.r(t),n.d(t,"ITEMS",(function(){return y})),n.d(t,"predefinedItems",(function(){return S})),n.d(t,"addItem",(function(){return E}));n(58);var r,i=n(3),a=n(394),o=n(395),s=n(396),l=n(397),u=n(398),c=n(399),d=n(400),f=n(401),h=n(402),p=n(403),m=n(255),g=n(404),v=n(405);function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"ALIGNMENT",(function(){return a.KEY})),n.d(t,"CLEAR_COLUMN",(function(){return o.KEY})),n.d(t,"COLUMN_LEFT",(function(){return s.KEY})),n.d(t,"COLUMN_RIGHT",(function(){return l.KEY})),n.d(t,"READ_ONLY",(function(){return u.KEY})),n.d(t,"REDO",(function(){return c.KEY})),n.d(t,"REMOVE_COLUMN",(function(){return d.KEY})),n.d(t,"REMOVE_ROW",(function(){return f.KEY})),n.d(t,"ROW_ABOVE",(function(){return h.KEY})),n.d(t,"ROW_BELOW",(function(){return p.KEY})),n.d(t,"SEPARATOR",(function(){return m.KEY})),n.d(t,"NO_ITEMS",(function(){return g.KEY})),n.d(t,"UNDO",(function(){return v.KEY}));var y=[h.KEY,p.KEY,s.KEY,l.KEY,o.KEY,f.KEY,d.KEY,v.KEY,c.KEY,u.KEY,a.KEY,m.KEY,g.KEY],b=(_(r={},m.KEY,m.default),_(r,g.KEY,g.default),_(r,h.KEY,h.default),_(r,p.KEY,p.default),_(r,s.KEY,s.default),_(r,l.KEY,l.default),_(r,o.KEY,o.default),_(r,f.KEY,f.default),_(r,d.KEY,d.default),_(r,v.KEY,v.default),_(r,c.KEY,c.default),_(r,u.KEY,u.default),_(r,a.KEY,a.default),r);function S(){var e={};return Object(i.objectEach)(b,(function(t,n){e[n]=t()})),e}function E(e,t){-1===y.indexOf(e)&&(b[e]=t)}},function(e,t,n){"use strict";n.r(t),n.d(t,"conditions",(function(){return r})),n.d(t,"getCondition",(function(){return i})),n.d(t,"getConditionDescriptor",(function(){return a})),n.d(t,"registerCondition",(function(){return o}));n(75);var r={};function i(e,t){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));var n=r[e],i=n.condition,a=n.descriptor,o=t;return a.inputValuesDecorator&&(o=a.inputValuesDecorator(o)),function(e){return i.apply(e.meta.instance,[].concat([e],[o]))}}function a(e){if(!r[e])throw Error('Filter condition "'.concat(e,'" does not exist.'));return r[e].descriptor}function o(e,t,n){n.key=e,r[e]={condition:t,descriptor:n}}},function(e,t,n){"use strict";n.r(t),n.d(t,"cubicAt",(function(){return f})),n.d(t,"cubicDerivativeAt",(function(){return h})),n.d(t,"cubicRootAt",(function(){return p})),n.d(t,"cubicExtrema",(function(){return m})),n.d(t,"cubicSubdivide",(function(){return g})),n.d(t,"cubicProjectPoint",(function(){return v})),n.d(t,"cubicLength",(function(){return _})),n.d(t,"quadraticAt",(function(){return y})),n.d(t,"quadraticDerivativeAt",(function(){return b})),n.d(t,"quadraticRootAt",(function(){return S})),n.d(t,"quadraticExtremum",(function(){return E})),n.d(t,"quadraticSubdivide",(function(){return w})),n.d(t,"quadraticProjectPoint",(function(){return T})),n.d(t,"quadraticLength",(function(){return O}));var r=n(21),i=Math.pow,a=Math.sqrt,o=a(3),s=Object(r.create)(),l=Object(r.create)(),u=Object(r.create)();function c(e){return e>-1e-8&&e<1e-8}function d(e){return e>1e-8||e<-1e-8}function f(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function h(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function p(e,t,n,r,s,l){var u=r+3*(t-n)-e,d=3*(n-2*t+e),f=3*(t-e),h=e-s,p=d*d-3*u*f,m=d*f-9*u*h,g=f*f-3*d*h,v=0;if(c(p)&&c(m)){if(c(d))l[0]=0;else(k=-f/d)>=0&&k<=1&&(l[v++]=k)}else{var _=m*m-4*p*g;if(c(_)){var y=m/p,b=-y/2;(k=-d/u+y)>=0&&k<=1&&(l[v++]=k),b>=0&&b<=1&&(l[v++]=b)}else if(_>0){var S=a(_),E=p*d+1.5*u*(-m+S),w=p*d+1.5*u*(-m-S);(k=(-d-((E=E<0?-i(-E,1/3):i(E,1/3))+(w=w<0?-i(-w,1/3):i(w,1/3))))/(3*u))>=0&&k<=1&&(l[v++]=k)}else{var T=(2*p*d-3*u*m)/(2*a(p*p*p)),O=Math.acos(T)/3,C=a(p),x=Math.cos(O),k=(-d-2*C*x)/(3*u),M=(b=(-d+C*(x+o*Math.sin(O)))/(3*u),(-d+C*(x-o*Math.sin(O)))/(3*u));k>=0&&k<=1&&(l[v++]=k),b>=0&&b<=1&&(l[v++]=b),M>=0&&M<=1&&(l[v++]=M)}}return v}function m(e,t,n,r,i){var o=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,u=0;if(c(s)){if(d(o))(h=-l/o)>=0&&h<=1&&(i[u++]=h)}else{var f=o*o-4*s*l;if(c(f))i[0]=-o/(2*s);else if(f>0){var h,p=a(f),m=(-o-p)/(2*s);(h=(-o+p)/(2*s))>=0&&h<=1&&(i[u++]=h),m>=0&&m<=1&&(i[u++]=m)}}return u}function g(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,d=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=d,a[4]=d,a[5]=c,a[6]=l,a[7]=r}function v(e,t,n,i,o,c,d,h,p,m,g){var v,_,y,b,S,E=.005,w=1/0;s[0]=p,s[1]=m;for(var T=0;T<1;T+=.05)l[0]=f(e,n,o,d,T),l[1]=f(t,i,c,h,T),(b=Object(r.distSquare)(s,l))=0&&b=0&&h<=1&&(i[u++]=h)}else{var f=s*s-4*o*l;if(c(f))(h=-s/(2*o))>=0&&h<=1&&(i[u++]=h);else if(f>0){var h,p=a(f),m=(-s-p)/(2*o);(h=(-s+p)/(2*o))>=0&&h<=1&&(i[u++]=h),m>=0&&m<=1&&(i[u++]=m)}}return u}function E(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function w(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function T(e,t,n,i,o,c,d,f,h){var p,m=.005,g=1/0;s[0]=d,s[1]=f;for(var v=0;v<1;v+=.05){l[0]=y(e,n,o,v),l[1]=y(t,i,c,v),(E=Object(r.distSquare)(s,l))=0&&E1?"."+t[1]:"")}function u(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}n.d(t,"getTextRect",(function(){return s.getTextRect}));var c=r.normalizeCssArray,d=/([&<>"'])/g,f={"&":"&","<":"<",">":">",'"':""","'":"'"};function h(e){return null==e?"":(e+"").replace(d,(function(e,t){return f[t]}))}function p(e,t,n){function o(e){return e&&r.trim(e)?e:"-"}function s(e){return!(null==e||isNaN(e)||!isFinite(e))}var u="time"===t,c=e instanceof Date;if(u||c){var d=u?Object(i.parseDate)(e):e;if(!isNaN(+d))return Object(a.format)(d,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===t)return r.isStringSafe(e)?o(e):r.isNumber(e)&&s(e)?e+"":"-";var f=Object(i.numericToNumber)(e);return s(f)?l(f):r.isStringSafe(e)?o(e):"boolean"==typeof e?e+"":"-"}var m=["a","b","c","d","e","f","g"],g=function(e,t){return"{"+e+(null==t?"":t)+"}"};function v(e,t,n){r.isArray(t)||(t=[t]);var i=t.length;if(!i)return"";for(var a=t[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===a?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function b(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=Object(i.parseDate)(t),o=n?"getUTC":"get",s=r[o+"FullYear"](),l=r[o+"Month"]()+1,u=r[o+"Date"](),c=r[o+"Hours"](),d=r[o+"Minutes"](),f=r[o+"Seconds"](),h=r[o+"Milliseconds"]();return e=e.replace("MM",Object(a.pad)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",s%100+"").replace("dd",Object(a.pad)(u,2)).replace("d",u).replace("hh",Object(a.pad)(c,2)).replace("h",c).replace("mm",Object(a.pad)(d,2)).replace("m",d).replace("ss",Object(a.pad)(f,2)).replace("s",f).replace("SSS",Object(a.pad)(h,3))}function S(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function E(e,t){return t=t||"transparent",r.isString(e)?e:r.isObject(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function w(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}},function(e,t,n){"use strict";n.r(t);var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(i.wxa=!0,i.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?i.worker=!0:"undefined"==typeof navigator?(i.node=!0,i.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18);o&&(n.weChat=!0);t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!=typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"warning",(function(){return l})),n.d(t,"format",(function(){return u})),n.d(t,"isEmptyValue",(function(){return c})),n.d(t,"isEmptyObject",(function(){return d})),n.d(t,"asyncMap",(function(){return h})),n.d(t,"complementError",(function(){return p})),n.d(t,"deepMerge",(function(){return m}));var r=n(353),i=n.n(r),a=n(221),o=n.n(a),s=/%[sdj%]/g,l=function(){};function u(){for(var e=arguments.length,t=Array(e),n=0;n=a)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[r];r1?arguments[1]:void 0;return l?s(this,e,t)||0:a(this,e,t)}})},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(42),a=n(98),o=n(116),s=n(6),l=n(9),u=n(311),c=n(210),d=n(14),f=s.makeInner(),h=Object(c.default)(),p=function(){function e(){this.group=new i.default,this.uid=a.getUID("viewChart"),this.renderTask=Object(u.createTask)({plan:v,reset:_}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){0},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&g(i,r,"emphasis")},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&g(i,r,"normal")},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateLayout=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Object(d.traverseElements)(this.group,e)},e.markUpdateMethod=function(e,t){f(e).updateMethod=t},e.protoInitialize=void(e.prototype.type="chart"),e}();function m(e,t,n){e&&Object(l.isHighDownDispatcher)(e)&&("emphasis"===t?l.enterEmphasis:l.leaveEmphasis)(e,n)}function g(e,t,n){var i=s.queryDataIndex(e,t),a=t&&null!=t.highlightKey?Object(l.getHighlightDigit)(t.highlightKey):null;null!=i?Object(r.each)(s.normalizeToArray(i),(function(t){m(e.getItemGraphicEl(t),n,a)})):e.eachItemGraphicEl((function(e){m(e,n,a)}))}function v(e){return h(e.model)}function _(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&f(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return"render"!==l&&o[l](t,n,r,i),y[l]}o.enableClassExtend(p,["dispose"]),o.enableClassManagement(p);var y={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};t.default=p},function(e,t,n){"use strict";n.r(t),n.d(t,"SERIES_UNIVERSAL_TRANSITION_PROP",(function(){return v}));var r=n(4),i=n(0),a=n(54),o=n(6),s=n(44),l=n(257),u=n(278),c=n(34),d=n(311),f=n(116),h=n(410),p=n(558),m=o.makeInner();function g(e,t){return e.getName(t)||e.getId(t)}var v="__universalTransitionEnabled",_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var n;return Object(r.__extends)(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Object(d.createTask)({count:b,reset:S}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(m(this).sourceManager=new h.SourceManager(this)).prepareSource();var r=this.getInitialData(e,n);w(r,this),this.dataTask.context.data=r,m(this).dataBeforeProcessed=r,y(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(c.fetchLayoutMode)(this),r=n?Object(c.getLayoutParams)(e):{},a=this.subType;s.default.hasClass(a)&&(a+="Series"),i.merge(e,t.getTheme().get(this.subType)),i.merge(e,this.getDefaultOption()),o.defaultEmphasis(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Object(c.mergeLayoutParam)(e,r,n)},t.prototype.mergeOption=function(e,t){e=i.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Object(c.fetchLayoutMode)(this);n&&Object(c.mergeLayoutParam)(this.option,e,n);var r=m(this).sourceManager;r.dirty(),r.prepareSource();var a=this.getInitialData(e,t);w(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,m(this).dataBeforeProcessed=a,y(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(e){if(e&&!i.isTypedArray(e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=l.PaletteMixin.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a=0&&n.push(a)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[g(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[v])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,a=this.option,o=a.selectedMode,s=t.length;if(o&&s)if("series"===o)a.selectedMap="all";else if("multiple"===o){i.isObject(a.selectedMap)||(a.selectedMap={});for(var l=a.selectedMap,u=0;u0&&this._innerSelect(e,t)}},t.registerClass=function(e){return s.default.registerClass(e)},t.protoInitialize=((n=t.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),t}(s.default);function y(e){var t=e.name;o.isNameSpecified(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}(e)||t)}function b(e){return e.model.getRawData().count()}function S(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),E}function E(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function w(e,t){i.each(i.concatArray(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,i.curry(T,t))}))}function T(e,t){var n=O(e);return n&&n.setOutputEnd((t||this).count()),t}function O(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}i.mixin(_,u.DataFormatMixin),i.mixin(_,l.PaletteMixin),Object(f.mountExtend)(_,s.default),t.default=_},function(e,t,n){"use strict";n.r(t);var r=n(373);n.d(t,"registerRootComparator",(function(){return r.registerRootComparator})),n.d(t,"getRootComparator",(function(){return r.getRootComparator})),n.d(t,"getCompareFunctionFactory",(function(){return r.getCompareFunctionFactory}));var i=n(447);n.d(t,"FIRST_AFTER_SECOND",(function(){return i.FIRST_AFTER_SECOND})),n.d(t,"FIRST_BEFORE_SECOND",(function(){return i.FIRST_BEFORE_SECOND})),n.d(t,"DO_NOT_SWAP",(function(){return i.DO_NOT_SWAP})),n.d(t,"sort",(function(){return i.sort}))},function(e,t,n){"use strict";n.r(t),n.d(t,"getWidth",(function(){return s})),n.d(t,"innerGetBoundingRect",(function(){return l})),n.d(t,"getBoundingRect",(function(){return u})),n.d(t,"adjustTextX",(function(){return c})),n.d(t,"adjustTextY",(function(){return d})),n.d(t,"getLineHeight",(function(){return f})),n.d(t,"measureText",(function(){return h})),n.d(t,"parsePercent",(function(){return p})),n.d(t,"calculateTextPosition",(function(){return m}));var r=n(37),i=n(247),a=n(93),o={};function s(e,t){t=t||a.DEFAULT_FONT;var n=o[t];n||(n=o[t]=new i.default(500));var r=n.get(e);return null==r&&(r=a.platformApi.measureText(e,t).width,n.put(e,r)),r}function l(e,t,n,i){var a=s(e,t),o=f(t),l=c(0,a,n),u=d(0,o,i);return new r.default(l,u,a,o)}function u(e,t,n,i){var a=((e||"")+"").split("\n");if(1===a.length)return l(a[0],t,n,i);for(var o=new r.default(0,0,0,0),s=0;s=0?parseFloat(e)/100*t:parseFloat(e):e}function m(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",d="top";if(r instanceof Array)l+=p(r[0],n.width),u+=p(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+o,u+=s,d="middle";break;case"top":l+=o/2,u-=i,c="center",d="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=o-i,u+=s,c="right",d="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,d="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",d="bottom"}return(e=e||{}).x=l,e.y=u,e.align=c,e.verticalAlign=d,e}},function(e,t,n){"use strict";n.r(t);n(58);var r=n(1),i=n(3),a=n(2),o=n(94),s=n(49),l=n(452);function u(e,t){for(var n=0;n=this.wot.getSetting("totalRows")-this.wot.getSetting("fixedRowsBottom"),l={left:this.clone.wtTable.spreader.offsetLeft,top:this.clone.wtTable.spreader.offsetTop},u={left:e.offsetLeft,top:e.offsetTop};return r?this.getRelativeCellPositionWithinWindow(a,i,u,l):this.getRelativeCellPositionWithinHolder(a,s,i,u,l)}Object(o.warn)("The provided element is not a child of the ".concat(this.type," overlay"))}},{key:"getRelativeCellPositionWithinWindow",value:function(e,t,n,r){var i=this.wot.wtTable.wtRootElement.getBoundingClientRect(),a=0,o=0;(a=t?i.left<=0?-1*i.left:0:r.left,e)?o=this.clone.wtTable.TABLE.getBoundingClientRect().top-i.top:o=r.top;return{left:n.left+a,top:n.top+o}}},{key:"getRelativeCellPositionWithinHolder",value:function(e,t,n,r,i){var a=this.clone.cloneSource.wtOverlays.leftOverlay.getScrollPosition(),o=this.clone.cloneSource.wtOverlays.topOverlay.getScrollPosition(),s=0,l=0;if(n||(s=a-i.left),t){var u=this.wot.wtTable.wtRootElement.getBoundingClientRect();l=-1*this.clone.wtTable.TABLE.getBoundingClientRect().top+u.top}else e||(l=o-i.top);return{left:r.left-s,top:r.top-l}}},{key:"makeClone",value:function(t){if(-1===e.CLONE_TYPES.indexOf(t))throw new Error('Clone type "'.concat(t,'" is not supported.'));var n=this.wot,i=n.wtTable,a=n.rootDocument,o=n.rootWindow,s=a.createElement("DIV"),u=a.createElement("TABLE");s.className="ht_clone_".concat(t," handsontable"),s.style.position="absolute",s.style.top=0,s.style.left=0,s.style.overflow="hidden",u.className=i.TABLE.className,s.appendChild(u),this.type=t,i.wtRootElement.parentNode.appendChild(s);var c=this.wot.getSetting("preventOverflow");return!0===c||"horizontal"===c&&this.type===e.CLONE_TOP||"vertical"===c&&this.type===e.CLONE_LEFT?this.mainTableScrollableElement=o:"hidden"===o.getComputedStyle(i.wtRootElement.parentNode).getPropertyValue("overflow")?this.mainTableScrollableElement=i.holder:this.mainTableScrollableElement=Object(r.getScrollableElement)(i.TABLE),new l.default({cloneSource:this.wot,cloneOverlay:this,table:u})}},{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,t=this.clone.wtTable.hider,n=e.style,r=t.style,i=e.parentNode.style;Object(a.arrayEach)([n,r,i],(function(e){e.width="",e.height=""}))}}},{key:"destroy",value:function(){new s.default(this.clone).destroy()}}]),e}();t.default=f},function(e,t,n){"use strict";n.r(t);var r=n(54),i=n(116),a=n(1069),o=n(1070),s=n(549),l=n(550),u=n(0),c=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){for(var r=[],i=3;i=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function u(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function c(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(a[0][2],n)}catch(e){c(a[0][3],e)}var n}function l(e){s("next",e)}function u(e){s("throw",e)}function c(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function S(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var T=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function O(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&f(t,e,n);return T(t,e),t}function C(e){return e&&e.__esModule?e:{default:e}}function x(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function k(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}},function(e,t,n){var r=n(73),i=n(158),a=n(133),o=n(134),s=n(1689),l=n(270),u=n(510);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,c,d=arguments.length<3?t:arguments[2];return o(t)===d?t[n]:(r=l.f(t,n))?s(r)?r.value:void 0===r.get?void 0:i(r.get,d):a(c=u(t))?e(c,n,d):void 0}})},function(e,t,n){"use strict";n.r(t),n.d(t,"symbolBuildProxies",(function(){return _})),n.d(t,"createSymbol",(function(){return S})),n.d(t,"normalizeSymbolSize",(function(){return E})),n.d(t,"normalizeSymbolOffset",(function(){return w}));var r=n(0),i=n(38),a=n(139),o=n(74),s=n(199),l=n(14),u=n(37),c=n(62),d=n(5),f=i.default.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),h=i.default.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),p=i.default.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,d=Math.sin(u),f=Math.cos(u),h=.6*o,p=.7*o;e.moveTo(n-c,l+s),e.arc(n,l,o,Math.PI-u,2*Math.PI+u),e.bezierCurveTo(n+c-d*h,l+s+f*h,n,r-p,n,r),e.bezierCurveTo(n,r-p,n-c+d*h,l+s+f*h,n-c,l+s),e.closePath()}}),m=i.default.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),g={line:a.default,rect:o.default,roundRect:o.default,square:o.default,circle:s.default,diamond:h,pin:p,arrow:m,triangle:f},v={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},_={};Object(r.each)(g,(function(e,t){_[t]=new e}));var y=i.default.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=Object(c.calculateTextPosition)(e,t,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===t.position&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if("none"!==r){var i=_[r];i||(i=_[r="rect"]),v[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function b(e,t){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=e:n.fill=e,this.markRedraw()}}function S(e,t,n,r,i,a,o){var s,c=0===e.indexOf("empty");return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=0===e.indexOf("image://")?l.makeImage(e.slice(8),new u.default(t,n,r,i),o?"center":"cover"):0===e.indexOf("path://")?l.makePath(e.slice(7),{},new u.default(t,n,r,i),o?"center":"cover"):new y({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=c,s.setColor=b,a&&s.setColor(a),s}function E(e){return Object(r.isArray)(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function w(e,t){if(null!=e)return Object(r.isArray)(e)||(e=[e,e]),[Object(d.parsePercent)(e[0],t[0])||0,Object(d.parsePercent)(Object(r.retrieve2)(e[1],e[0]),t[1])||0]}},function(e,t,n){"use strict";n.r(t);var r=n(42),i=n(98),a=n(116),o=function(){function e(){this.group=new r.default,this.uid=i.getUID("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.blurSeries=function(e,t){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();a.enableClassExtend(o),a.enableClassManagement(o),t.default=o},function(e,t,n){"use strict";n.r(t);var r=n(603),i=n(1403),a=n(1404),o=n(1405),s=n(1406),l=n(1407);t.default={required:r.default,whitespace:i.default,type:a.default,range:o.default,enum:s.default,pattern:l.default}},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_TEXT_ANIMATION_PROPS",(function(){return p})),n.d(t,"parseFontSize",(function(){return y})),n.d(t,"hasSeparateFont",(function(){return S})),n.d(t,"normalizeTextStyle",(function(){return E}));var r=n(66),i=n(374),a=n(277),o=n(0),s=n(62),l=n(102),u=n(74),c=n(37),d=n(99),f=n(93),h={fill:"#000"},p={style:Object(o.defaults)({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},d.DEFAULT_COMMON_ANIMATION_PROPS.style)},m=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=h,n.attr(t),n}return Object(r.__extends)(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,j=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),F=o.calculatedLineHeight,B=0;B=0&&"right"===(I=E[R]).align;)this._placeToken(I,e,T,v,A,"right",y),O-=I.width,A-=I.width,R--;for(M+=(r-(M-g)-(_-A)-O)/2;C<=R;)I=E[C],this._placeToken(I,e,T,v,M+I.width/2,"center",y),M+=I.width,C++;v+=T}},t.prototype._placeToken=function(e,t,n,r,i,l,u){var d=t.rich[e.styleName]||{};d.text=e.text;var h=e.verticalAlign,p=r+n/2;"top"===h?p=r+e.height/2:"bottom"===h&&(p=r+n-e.height/2),!e.isLineHolder&&k(d)&&this._renderBackground(d,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,p-e.height/2,e.width,e.height);var m=!!d.backgroundColor,g=e.textPadding;g&&(i=C(i,l,g),p-=e.height/2-g[0]-e.innerHeight/2);var v=this._getOrCreateChild(a.default),_=v.createStyle();v.useStyle(_);var y=this._defaultStyle,S=!1,E=0,w=O("fill"in d?d.fill:"fill"in t?t.fill:(S=!0,y.fill)),x=T("stroke"in d?d.stroke:"stroke"in t?t.stroke:m||u||y.autoStroke&&!S?null:(E=2,y.stroke)),M=d.textShadowBlur>0||t.textShadowBlur>0;_.text=e.text,_.x=i,_.y=p,M&&(_.shadowBlur=d.textShadowBlur||t.textShadowBlur||0,_.shadowColor=d.textShadowColor||t.textShadowColor||"transparent",_.shadowOffsetX=d.textShadowOffsetX||t.textShadowOffsetX||0,_.shadowOffsetY=d.textShadowOffsetY||t.textShadowOffsetY||0),_.textAlign=l,_.textBaseline="middle",_.font=e.font||f.DEFAULT_FONT,_.opacity=Object(o.retrieve3)(d.opacity,t.opacity,1),b(_,d),x&&(_.lineWidth=Object(o.retrieve3)(d.lineWidth,t.lineWidth,E),_.lineDash=Object(o.retrieve2)(d.lineDash,t.lineDash),_.lineDashOffset=t.lineDashOffset||0,_.stroke=x),w&&(_.fill=w);var A=e.contentWidth,R=e.contentHeight;v.setBoundingRect(new c.default(Object(s.adjustTextX)(_.x,A,_.textAlign),Object(s.adjustTextY)(_.y,R,_.textBaseline),A,R))},t.prototype._renderBackground=function(e,t,n,r,i,a){var s,c,d,f=e.backgroundColor,h=e.borderWidth,p=e.borderColor,m=f&&f.image,g=f&&!m,v=e.borderRadius,_=this;if(g||e.lineHeight||h&&p){(s=this._getOrCreateChild(u.default)).useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=n,y.y=r,y.width=i,y.height=a,y.r=v,s.dirtyShape()}if(g)(d=s.style).fill=f||null,d.fillOpacity=Object(o.retrieve2)(e.fillOpacity,1);else if(m){(c=this._getOrCreateChild(l.default)).onload=function(){_.dirtyStyle()};var b=c.style;b.image=f.image,b.x=n,b.y=r,b.width=i,b.height=a}h&&p&&((d=s.style).lineWidth=h,d.stroke=p,d.strokeOpacity=Object(o.retrieve2)(e.strokeOpacity,1),d.lineDash=e.borderDash,d.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(d.strokeFirst=!0,d.lineWidth*=2));var S=(s||c).style;S.shadowBlur=e.shadowBlur||0,S.shadowColor=e.shadowColor||"transparent",S.shadowOffsetX=e.shadowOffsetX||0,S.shadowOffsetY=e.shadowOffsetY||0,S.opacity=Object(o.retrieve3)(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return S(e)&&(t=[e.fontStyle,e.fontWeight,y(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(o.trim)(t)||e.textFont||e.font},t}(d.default),g={left:!0,right:1,center:1},v={top:1,bottom:1,middle:1},_=["fontStyle","fontWeight","fontSize","fontFamily"];function y(e){return"string"!=typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?f.DEFAULT_FONT_SIZE+"px":e+"px":e}function b(e,t){for(var n=0;n<_.length;n++){var r=_[n],i=t[r];null!=i&&(e[r]=i)}}function S(e){return null!=e.fontSize||e.fontFamily||e.fontWeight}function E(e){return w(e),Object(o.each)(e.rich,w),e}function w(e){if(e){e.font=m.makeFont(e);var t=e.align;"middle"===t&&(t="center"),e.align=null==t||g[t]?t:"left";var n=e.verticalAlign;"center"===n&&(n="middle"),e.verticalAlign=null==n||v[n]?n:"top",e.padding&&(e.padding=Object(o.normalizeCssArray)(e.padding))}}function T(e,t){return null==e||t<=0||"transparent"===e||"none"===e?null:e.image||e.colorStops?"#000":e}function O(e){return null==e||"none"===e?null:e.image||e.colorStops?"#000":e}function C(e,t,n){return"right"===t?e-n[1]:"center"===t?e+n[3]/2-n[1]/2:e+n[3]}function x(e){var t=e.text;return null!=t&&(t+=""),t}function k(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}t.default=m},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(57),i=n(270).f,a=n(300),o=n(231),s=n(656),l=n(953),u=n(509);e.exports=function(e,t){var n,c,d,f,h,p=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(f=t[c],d=e.noTargetGet?(h=i(n,c))&&h.value:n[c],!u(m?c:p+(g?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;l(f,d)}(e.sham||d&&d.sham)&&a(f,"sham",!0),o(n,c,f,e)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"RectShape",(function(){return s}));var r=n(66),i=n(38),a=n(1073),o=n(310),s=function(){this.x=0,this.y=0,this.width=0,this.height=0},l={},u=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var u=Object(o.subPixelOptimizeRect)(l,t,this.style);n=u.x,r=u.y,i=u.width,s=u.height,u.r=t.r,t=u}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?a.buildPath(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i.default);u.prototype.type="rect",t.default=u},function(e,t,n){"use strict";var r=n(73),i=n(57),a=n(83),o=n(441),s=n(133),l=n(176),u=n(208),c=n(363),d=n(672),f=n(443),h=n(121),p=n(432),m=h("isConcatSpreadable"),g=i.TypeError,v=p>=51||!a((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),_=f("concat"),y=function(e){if(!s(e))return!1;var t=e[m];return void 0!==t?!!t:o(e)};r({target:"Array",proto:!0,forced:!v||!_},{concat:function(e){var t,n,r,i,a,o=l(this),s=d(o,0),f=0;for(t=-1,r=arguments.length;t9007199254740991)throw g("Maximum allowed index exceeded");for(n=0;n=9007199254740991)throw g("Maximum allowed index exceeded");c(s,f++,a)}return s.length=f,s}})},function(e,t,n){"use strict";n.r(t),n.d(t,"parse",(function(){return g})),n.d(t,"lift",(function(){return _})),n.d(t,"toHex",(function(){return y})),n.d(t,"fastLerp",(function(){return b})),n.d(t,"fastMapToColor",(function(){return S})),n.d(t,"lerp",(function(){return E})),n.d(t,"mapToColor",(function(){return w})),n.d(t,"modifyHSL",(function(){return T})),n.d(t,"modifyAlpha",(function(){return O})),n.d(t,"stringify",(function(){return C})),n.d(t,"lum",(function(){return x})),n.d(t,"random",(function(){return k}));var r=n(247),i={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function a(e){return(e=Math.round(e))<0?0:e>255?255:e}function o(e){return e<0?0:e>1?1:e}function s(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100*255):a(parseInt(t,10))}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100):o(parseFloat(t))}function u(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function c(e,t,n){return e+(t-e)*n}function d(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var h=new r.default(20),p=null;function m(e,t){p&&f(p,t),p=h.put(e,p||t.slice())}function g(e,t){if(e){t=t||[];var n=h.get(e);if(n)return f(t,n);var r=(e+="").replace(/ /g,"").toLowerCase();if(r in i)return f(t,i[r]),m(e,t),t;var a,o=r.length;if("#"===r.charAt(0))return 4===o||5===o?(a=parseInt(r.slice(1,4),16))>=0&&a<=4095?(d(t,(3840&a)>>4|(3840&a)>>8,240&a|(240&a)>>4,15&a|(15&a)<<4,5===o?parseInt(r.slice(4),16)/15:1),m(e,t),t):void d(t,0,0,0,1):7===o||9===o?(a=parseInt(r.slice(1,7),16))>=0&&a<=16777215?(d(t,(16711680&a)>>16,(65280&a)>>8,255&a,9===o?parseInt(r.slice(7),16)/255:1),m(e,t),t):void d(t,0,0,0,1):void 0;var u=r.indexOf("("),c=r.indexOf(")");if(-1!==u&&c+1===o){var p=r.substr(0,u),g=r.substr(u+1,c-(u+1)).split(","),_=1;switch(p){case"rgba":if(4!==g.length)return 3===g.length?d(t,+g[0],+g[1],+g[2],1):d(t,0,0,0,1);_=l(g.pop());case"rgb":return 3!==g.length?void d(t,0,0,0,1):(d(t,s(g[0]),s(g[1]),s(g[2]),_),m(e,t),t);case"hsla":return 4!==g.length?void d(t,0,0,0,1):(g[3]=l(g[3]),v(g,t),m(e,t),t);case"hsl":return 3!==g.length?void d(t,0,0,0,1):(v(g,t),m(e,t),t);default:return}}d(t,0,0,0,1)}}function v(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=l(e[1]),i=l(e[2]),o=i<=.5?i*(r+1):i+r-i*r,s=2*i-o;return d(t=t||[],a(255*u(s,o,n+1/3)),a(255*u(s,o,n)),a(255*u(s,o,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function _(e,t){var n=g(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return C(n,4===n.length?"rgba":"rgb")}}function y(e){var t=g(e);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function b(e,t,n){if(t&&t.length&&e>=0&&e<=1){n=n||[];var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=t[i],u=t[s],d=r-i;return n[0]=a(c(l[0],u[0],d)),n[1]=a(c(l[1],u[1],d)),n[2]=a(c(l[2],u[2],d)),n[3]=o(c(l[3],u[3],d)),n}}var S=b;function E(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=g(t[i]),u=g(t[s]),d=r-i,f=C([a(c(l[0],u[0],d)),a(c(l[1],u[1],d)),a(c(l[2],u[2],d)),o(c(l[3],u[3],d))],"rgba");return n?{color:f,leftIndex:i,rightIndex:s,value:r}:f}}var w=E;function T(e,t,n,r){var i,a=g(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),l=s-o,u=(s+o)/2;if(0===l)t=0,n=0;else{n=u<.5?l/(s+o):l/(2-s-o);var c=((s-r)/6+l/2)/l,d=((s-i)/6+l/2)/l,f=((s-a)/6+l/2)/l;r===s?t=f-d:i===s?t=1/3+c-f:a===s&&(t=2/3+d-c),t<0&&(t+=1),t>1&&(t-=1)}var h=[360*t,n,u];return null!=e[3]&&h.push(e[3]),h}}(a),null!=t&&(a[0]=(i=t,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(a[1]=l(n)),null!=r&&(a[2]=l(r)),C(v(a),"rgba")}function O(e,t){var n=g(e);if(n&&null!=t)return n[3]=o(t),C(n,"rgba")}function C(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function x(e,t){var n=g(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}function k(){return C([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},function(e,t,n){var r=n(429),i=Function.prototype,a=i.bind,o=i.call,s=r&&a.bind(o,o);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,a=String(e);return(n=r[a.toLowerCase()])?n:(n=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=r[t.toLowerCase()])return a===n;if(a=i[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91}; /*! * Programatically add the following */ for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r["f"+a]=a+111;for(a=0;a<10;a++)r["numpad "+a]=a+96;var o=t.names=t.title={};for(a in r)o[r[a]]=a;for(var s in i)r[s]=i[s]},function(e,t,n){"use strict";n.r(t),n.d(t,"createTooltipMarkup",(function(){return c})),n.d(t,"buildTooltipMarkup",(function(){return m})),n.d(t,"retrieveVisualColorForTooltipMarker",(function(){return _})),n.d(t,"getPaddingFromTooltipModel",(function(){return y})),n.d(t,"TooltipMarkupStyleCreator",(function(){return b}));var r=n(53),i=n(0),a=n(145),o=n(5);function s(e,t){var n=e.color||"#6e7079",i=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",s=e.fontSize||14,l=e.fontWeight||"900";return"html"===t?{nameStyle:"font-size:"+Object(r.encodeHTML)(i+"")+"px;color:"+Object(r.encodeHTML)(n)+";font-weight:"+Object(r.encodeHTML)(a+""),valueStyle:"font-size:"+Object(r.encodeHTML)(s+"")+"px;color:"+Object(r.encodeHTML)(o)+";font-weight:"+Object(r.encodeHTML)(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var l=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function c(e,t){return t.type=e,t}function d(e){return"section"===e.type}function f(e){return d(e)?h:p}function h(e,t,n,o){var c,h=t.noHeader,p=(c=function e(t){if(d(t)){var n=0,r=t.blocks.length,a=r>1||r>0&&!t.noHeader;return Object(i.each)(t.blocks,(function(t){var r=e(t);r>=n&&(n=r+ +(a&&(!r||d(t)&&!t.noHeader)))})),n}return 0}(t),{html:l[c],richText:u[c]}),m=[],_=t.blocks||[];Object(i.assert)(!_||Object(i.isArray)(_)),_=_||[];var y=e.orderMode;if(t.sortBlocks&&y){_=_.slice();var b={valueAsc:"asc",valueDesc:"desc"};if(Object(i.hasOwn)(b,y)){var S=new a.SortOrderComparator(b[y],null);_.sort((function(e,t){return S.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===y&&_.reverse()}Object(i.each)(_,(function(n,r){var a=t.valueFormatter,s=f(n)(a?Object(i.extend)(Object(i.extend)({},e),{valueFormatter:a}):e,n,r>0?p.html:0,o);null!=s&&m.push(s)}));var E="richText"===e.renderMode?m.join(p.richText):g(m.join(""),h?n:p.html);if(h)return E;var w=Object(r.makeValueReadable)(t.header,"ordinal",e.useUTC),T=s(o,e.renderMode).nameStyle;return"richText"===e.renderMode?v(e,w,T)+p.richText+E:g('
'+Object(r.encodeHTML)(w)+"
"+E,n)}function p(e,t,n,a){var o=e.renderMode,l=t.noName,u=t.noValue,c=!t.markerType,d=t.name,f=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(e){return e=Object(i.isArray)(e)?e:[e],Object(i.map)(e,(function(e,t){return Object(r.makeValueReadable)(e,Object(i.isArray)(_)?_[t]:_,f)}))};if(!l||!u){var p=c?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=l?"":Object(r.makeValueReadable)(d,"ordinal",f),_=t.valueType,y=u?[]:h(t.value),b=!c||!l,S=!c&&l,E=s(a,o),w=E.nameStyle,T=E.valueStyle;return"richText"===o?(c?"":p)+(l?"":v(e,m,w))+(u?"":function(e,t,n,r,a){var o=[a],s=r?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(i.isArray)(t)?t.join(" "):t,o)}(e,y,b,S,T)):g((c?"":p)+(l?"":function(e,t,n){return''+Object(r.encodeHTML)(e)+""}(m,!c,w))+(u?"":function(e,t,n,a){var o=n?"10px":"20px",s=t?"float:right;margin-left:"+o:"";return e=Object(i.isArray)(e)?e:[e],''+Object(i.map)(e,(function(e){return Object(r.encodeHTML)(e)})).join("  ")+""}(y,b,S,T)),n)}}function m(e,t,n,r,i,a){if(e)return f(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function g(e,t){return'
'+e+'
'}function v(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function _(e,t){var n=e.getData().getItemVisual(t,"style")[e.visualDrawType];return Object(r.convertToColorString)(n)}function y(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var b=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Object(o.getRandomIdBase)()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var a="richText"===n?this._generateStyleName():null,o=Object(r.getTooltipMarker)({color:t,type:e,renderMode:n,markerId:a});return Object(i.isString)(o)?o:(this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(i.isArray)(t)?Object(i.each)(t,(function(e){return Object(i.extend)(n,e)})):Object(i.extend)(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}()},function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"normalizeColor",(function(){return s})),n.d(t,"isAroundZero",(function(){return l})),n.d(t,"round3",(function(){return u})),n.d(t,"round4",(function(){return c})),n.d(t,"round1",(function(){return d})),n.d(t,"getMatrixStr",(function(){return f})),n.d(t,"TEXT_ALIGN_TO_ANCHOR",(function(){return h})),n.d(t,"adjustTextY",(function(){return p})),n.d(t,"hasShadow",(function(){return m})),n.d(t,"getShadowKey",(function(){return g})),n.d(t,"getClipPathsKey",(function(){return v})),n.d(t,"isImagePattern",(function(){return _})),n.d(t,"isSVGPattern",(function(){return y})),n.d(t,"isPattern",(function(){return b})),n.d(t,"isLinearGradient",(function(){return S})),n.d(t,"isRadialGradient",(function(){return E})),n.d(t,"isGradient",(function(){return w})),n.d(t,"getIdURL",(function(){return T})),n.d(t,"getPathPrecision",(function(){return O})),n.d(t,"getSRTTransformString",(function(){return C})),n.d(t,"encodeBase64",(function(){return x}));var r=n(0),i=n(76),a=n(54),o=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"==typeof e&&e.indexOf("rgba")>-1){var n=Object(i.parse)(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}function l(e){return e<1e-4&&e>-1e-4}function u(e){return o(1e3*e)/1e3}function c(e){return o(1e4*e)/1e4}function d(e){return o(10*e)/10}function f(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+c(e[4])+","+c(e[5])+")"}var h={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(e){var t=[];if(e)for(var n=0;n0&&r>0||n<0&&r<0)}function v(e){var t,n,i=e.getLabelModel().get("formatter"),a="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?(n=i,function(t,r){return e.scale.getFormattedLabel(t,r,n)}):r.isString(i)?function(t){return function(n){var r=e.scale.getLabel(n);return t.replace("{value}",null!=r?r:"")}}(i):r.isFunction(i)?(t=i,function(n,r){return null!=a&&(r=n.value-a),t(_(e,n),r,null!=n.level?{level:n.level}:null)}):function(t){return e.scale.getLabel(t)}}function _(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function y(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,a,o=n.getExtent();a=n instanceof i.default?n.count():(r=n.getTicks()).length;var s,u,c,d,f,h,p,m,g=e.getLabelModel(),_=v(e),y=1;a>40&&(y=Math.ceil(a/40));for(var b=0;be[1]&&(e[1]=r[1])}))}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";n.r(t),n.d(t,"registerRenderer",(function(){return f})),n.d(t,"getRenderer",(function(){return v})),n.d(t,"hasRenderer",(function(){return p})),n.d(t,"getRegisteredRendererNames",(function(){return m})),n.d(t,"getRegisteredRenderers",(function(){return g}));var r=n(161),i=n(1312),a=n(1313),o=n(1314),s=n(1315),l=n(1316),u=n(1317),c=n(1318),d=Object(r.default)("renderers"),f=d.register,h=d.getItem,p=d.hasItem,m=d.getNames,g=d.getValues;function v(e){if("function"==typeof e)return e;if(!p(e))throw Error('No registered renderer found under "'.concat(e,'" name'));return h(e)}f("base",i.default),f("autocomplete",a.default),f("checkbox",o.default),f("html",s.default),f("numeric",l.default),f("password",u.default),f("text",c.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"clientToLocal",(function(){return u})),n.d(t,"getNativeEvent",(function(){return d})),n.d(t,"normalizeEvent",(function(){return f})),n.d(t,"addEventListener",(function(){return h})),n.d(t,"removeEventListener",(function(){return p})),n.d(t,"stop",(function(){return m})),n.d(t,"isMiddleOrRightButtonOnMouseUpDown",(function(){return g}));var r=n(129);n.d(t,"Dispatcher",(function(){return r.default}));var i=n(54),a=n(462),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,s=[],l=i.default.browser.firefox&&+i.default.browser.version.split(".")[0]<39;function u(e,t,n,r){return n=n||{},r?c(e,t,n):l&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):c(e,t,n),n}function c(e,t,n){if(i.default.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(Object(a.isCanvasEl)(e)){var l=e.getBoundingClientRect();return n.zrX=r-l.left,void(n.zrY=o-l.top)}if(Object(a.transformCoordWithViewport)(s,e,r,o))return n.zrX=s[0],void(n.zrY=s[1])}n.zrX=n.zrY=0}function d(e){return e||window.event}function f(e,t,n){if(null!=(t=d(t)).zrX)return t;var r=t.type;if(r&&r.indexOf("touch")>=0){var i="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];i&&u(e,i,t,n)}else{u(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&o.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function h(e,t,n,r){e.addEventListener(t,n,r)}function p(e,t,n,r){e.removeEventListener(t,n,r)}var m=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function g(e){return 2===e.which||3===e.which}},function(e,t,n){"use strict";n.r(t),n.d(t,"SVGNS",(function(){return i})),n.d(t,"XLINKNS",(function(){return a})),n.d(t,"XMLNS",(function(){return o})),n.d(t,"XML_NAMESPACE",(function(){return s})),n.d(t,"createElement",(function(){return l})),n.d(t,"createVNode",(function(){return u})),n.d(t,"vNodeToString",(function(){return c})),n.d(t,"getCssString",(function(){return d})),n.d(t,"createBrushScope",(function(){return f})),n.d(t,"createSVGVNode",(function(){return h}));var r=n(0),i="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xlink",o="http://www.w3.org/2000/xmlns/",s="http://www.w3.org/XML/1998/namespace";function l(e){return document.createElementNS(i,e)}function u(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function c(e,t){var n=(t=t||{}).newline?"\n":"";return function e(t){var i=t.children,a=t.tag;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;!1!==i&&(!0!==i&&null!=i&&(a+='="'+i+'"'),n.push(a))}return"<"+e+" "+n.join(" ")+">"}(a,t.attrs)+(t.text||"")+(i?""+n+Object(r.map)(i,(function(t){return e(t)})).join(n)+n:"")+function(e){return""}(a)}(e)}function d(e,t,n){var i=(n=n||{}).newline?"\n":"",a=" {"+i,o=i+"}",s=Object(r.map)(Object(r.keys)(e),(function(t){return t+a+Object(r.map)(Object(r.keys)(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),l=Object(r.map)(Object(r.keys)(t),(function(e){return"@keyframes "+e+a+Object(r.map)(Object(r.keys)(t[e]),(function(n){return n+a+Object(r.map)(Object(r.keys)(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(i)+o})).join(i)+o})).join(i);return s||l?[""].join(i):""}function f(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function h(e,t,n,r){return u("svg","root",{width:e,height:t,xmlns:i,"xmlns:xlink":a,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}},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";n.r(t),n.d(t,"isFunction",(function(){return i})),n.d(t,"throttle",(function(){return a})),n.d(t,"throttleAfterHits",(function(){return o})),n.d(t,"debounce",(function(){return s})),n.d(t,"pipe",(function(){return l})),n.d(t,"partial",(function(){return u})),n.d(t,"curry",(function(){return c})),n.d(t,"curryRight",(function(){return d}));n(75),n(521),n(108),n(128);var r=n(2);function i(e){return"function"==typeof e}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=0,r={lastCallThrottled:!0},i=null;function a(){for(var a=this,o=arguments.length,s=new Array(o),l=0;l1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=a(e,t),i=n;function o(){i=n}function s(){for(var t=arguments.length,n=new Array(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:200,r=null;function i(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s1?t-1:0),r=1;r=t?e.apply(this,s):n(s)}}([])}function d(e){var t=e.length;return function n(r){return function(){for(var i=arguments.length,a=new Array(i),o=0;o=t?e.apply(this,s):n(s)}}([])}},function(e,t,n){var r=n(73),i=n(1675);r({target:"Array",stat:!0,forced:!n(965)((function(e){Array.from(e)}))},{from:i})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";var r,i=n(57),a=n(77),o=n(667),s=n(439),l=n(513),u=n(966),c=n(133),d=n(960),f=n(271).enforce,h=n(952),p=!i.ActiveXObject&&"ActiveXObject"in i,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=l("WeakMap",m,u);if(h&&p){r=u.getConstructor(m,"WeakMap",!0),s.enable();var v=g.prototype,_=a(v.delete),y=a(v.has),b=a(v.get),S=a(v.set);o(v,{delete:function(e){if(c(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new r),_(this,e)||t.frozen.delete(e)}return _(this,e)},has:function(e){if(c(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new r),y(this,e)||t.frozen.has(e)}return y(this,e)},get:function(e){if(c(e)&&!d(e)){var t=f(this);return t.frozen||(t.frozen=new r),y(this,e)?b(this,e):t.frozen.get(e)}return b(this,e)},set:function(e,t){if(c(e)&&!d(e)){var n=f(this);n.frozen||(n.frozen=new r),y(this,e)?S(this,e,t):n.frozen.set(e,t)}else S(this,e,t);return this}})}},function(e,t,n){"use strict";var r=n(73),i=n(515);r({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_FONT_SIZE",(function(){return r})),n.d(t,"DEFAULT_FONT_FAMILY",(function(){return i})),n.d(t,"DEFAULT_FONT",(function(){return a})),n.d(t,"DEFAULT_TEXT_WIDTH_MAP",(function(){return l})),n.d(t,"platformApi",(function(){return u})),n.d(t,"setPlatformAPI",(function(){return c}));var r=12,i="sans-serif",a=r+"px "+i;var o,s,l=function(e){var t={};if("undefined"==typeof JSON)return t;for(var n=0;n=0)d=c*e.length;else for(var f=0;f=2&&"="===e.charAt(0)}function i(e){return"string"==typeof e&&"'"===e.charAt(0)&&"="===e.charAt(1)}function a(e){return i(e)?e.substr(1):e}function o(e){var t=/(\\"|"(?:\\"|[^"])*"|(\+))|(\\'|'(?:\\'|[^'])*'|(\+))/g,n=e.match(t)||[],r=-1;return e.toUpperCase().replace(t,(function(){return n[r+=1]}))}function s(e,t){return function(n){return{row:"row"===e?t:n.row,column:"column"===e?t:n.column}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"REDRAW_BIT",(function(){return r})),n.d(t,"STYLE_CHANGED_BIT",(function(){return i})),n.d(t,"SHAPE_CHANGED_BIT",(function(){return a}));var r=1,i=2,a=4},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.r(t),n.d(t,"getUID",(function(){return o})),n.d(t,"enableSubTypeDefaulter",(function(){return s})),n.d(t,"enableTopologicalTravel",(function(){return l})),n.d(t,"inheritDefaultOption",(function(){return u}));var r=n(0),i=n(116),a=Math.round(10*Math.random());function o(e){return[e||"",a++].join("_")}function s(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=Object(i.parseClassType)(e);t[r.main]=n},e.determineSubType=function(n,r){var a=r.type;if(!a){var o=Object(i.parseClassType)(n).main;e.hasSubTypes(n)&&t[o]&&(a=t[o](r))}return a}}function l(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,i,a,o){if(e.length){var s=function(e){var i={},a=[];return r.each(e,(function(o){var s=n(i,o),l=function(e,t){var n=[];return r.each(e,(function(e){r.indexOf(t,e)>=0&&n.push(e)})),n}(s.originalDeps=t(o),e);s.entryCount=l.length,0===s.entryCount&&a.push(o),r.each(l,(function(e){r.indexOf(s.predecessor,e)<0&&s.predecessor.push(e);var t=n(i,e);r.indexOf(t.successor,e)<0&&t.successor.push(o)}))})),{graph:i,noEntryList:a}}(i),l=s.graph,u=s.noEntryList,c={};for(r.each(e,(function(e){c[e]=!0}));u.length;){var d=u.pop(),f=l[d],h=!!c[d];h&&(a.call(o,d,f.originalDeps.slice()),delete c[d]),r.each(f.successor,h?m:p)}r.each(c,(function(){throw new Error("")}))}function p(e){l[e].entryCount--,0===l[e].entryCount&&u.push(e)}function m(e){c[e]=!0,p(e)}}}function u(e,t){return r.merge(r.merge({},e,!0),t,!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"DEFAULT_COMMON_STYLE",(function(){return u})),n.d(t,"DEFAULT_COMMON_ANIMATION_PROPS",(function(){return c}));var r=n(66),i=n(548),a=n(37),o=n(0),s=n(96),l="__zr_style_"+Math.round(10*Math.random()),u={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},c={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};u[l]=!0;var d=["z","z2","invisible"],f=["invisible"],h=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.__extends)(t,e),t.prototype._init=function(t){for(var n=Object(o.keys)(t),r=0;r1?t-1:0),i=1;it
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),i=e.offsetHeight<2*e.lastChild.offsetHeight,document.body.removeChild(e)}(),i}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return a||(a="object"===("undefined"==typeof Intl?"undefined":r(Intl))?new Intl.Collator(e,t).compare:"function"==typeof String.prototype.localeCompare?function(e,t){return"".concat(e).localeCompare(t)}:function(e,t){return e===t?0:e>t?-1:1})}function S(){if(void 0!==o)return o;try{var e={get passive(){o=!0}};window.addEventListener("test",e,e),window.removeEventListener("test",e,e)}catch(e){o=!1}return o}u||(u=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-s)),r=window.setTimeout((function(){e(t+n)}),n);return s=t+n,r}),c||(c=function(e){clearTimeout(e)})},function(e,t,n){"use strict";function r(e,t){for(var n=0;n=e.getSetting("totalRows")||this.col>=e.getSetting("totalColumns"))}},{key:"isEqual",value:function(e){return e===this||this.row===e.row&&this.col===e.col}},{key:"isSouthEastOf",value:function(e){return this.row>=e.row&&this.col>=e.col}},{key:"isNorthWestOf",value:function(e){return this.row<=e.row&&this.col<=e.col}},{key:"isSouthWestOf",value:function(e){return this.row>=e.row&&this.col<=e.col}},{key:"isNorthEastOf",value:function(e){return this.row<=e.row&&this.col>=e.col}},{key:"toObject",value:function(){return{row:this.row,col:this.col}}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i},function(e,t,n){"use strict";n.r(t),n.d(t,"DEC_LENGTH",(function(){return r})),n.d(t,"WEEK_LENGTH",(function(){return i})),n.d(t,"getMixedMonthObject",(function(){return a})),n.d(t,"getMixedMonthName",(function(){return o})),n.d(t,"getShorthand",(function(){return s})),n.d(t,"getStartDate",(function(){return l})),n.d(t,"getEndDate",(function(){return u})),n.d(t,"getAdditionalData",(function(){return c})),n.d(t,"setStartDate",(function(){return d})),n.d(t,"setEndDate",(function(){return f})),n.d(t,"parseDate",(function(){return h})),n.d(t,"getDateYear",(function(){return p}));n(75),n(193),n(12),n(31);var r=31,i=7;function a(e,t){return{name:e,days:i,daysBeforeFullWeeks:0,daysAfterFullWeeks:0,fullWeeks:1,index:t}}function o(e,t){var n=s(t[e].name),r=e>0?s(t[e-1].name):null,i=s(t[0].name),a=s(t[t.length-1].name);return e>0?"".concat(r,"/").concat(n):e===t.length-1?"".concat(n,"/").concat(i):"".concat(a,"/").concat(n)}function s(e){return e.substring(0,3)}function l(e){return h(Array.isArray(e)?e[1]:e.startDate)}function u(e){return h(Array.isArray(e)?e[2]:e.endDate)}function c(e){return Array.isArray(e)?e[3]:e.additionalData}function d(e,t){Array.isArray(e)?e[1]=t:e.startDate=t}function f(e,t){Array.isArray(e)?e[2]=t:e.endDate=t}function h(e){var t=e;return null===t?null:t instanceof Date||"Invalid Date"!==(t=new Date(t)).toString()?t:null}function p(e){var t=h(e);return t?t.getFullYear():null}},function(e,t,n){"use strict";var r=n(73),i=n(57),a=n(441),o=n(514),s=n(133),l=n(435),u=n(208),c=n(190),d=n(363),f=n(121),h=n(443),p=n(442),m=h("slice"),g=f("species"),v=i.Array,_=Math.max;r({target:"Array",proto:!0,forced:!m},{slice:function(e,t){var n,r,i,f=c(this),h=u(f),m=l(e,h),y=l(void 0===t?h:t,h);if(a(f)&&(n=f.constructor,(o(n)&&(n===v||a(n.prototype))||s(n)&&null===(n=n[g]))&&(n=void 0),n===v||void 0===n))return p(f,m,y);for(r=new(void 0===n?v:n)(_(y-m,0)),i=0;m=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,a=this._idList;if(n.getSource().sourceFormat===g.SOURCE_FORMAT_ORIGINAL&&!n.pure)for(var o=[],s=e;s0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),c.isArray(i)?i=i.slice():E(i)&&(i=c.extend({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,E(t)?c.extend(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){E(e)?c.extend(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?c.extend(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;Object(_.setCommonECData)(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){c.each(this._graphicEls,(function(n,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:w(this.dimensions,this._getDimInfo,this),this.hostModel)),s(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(c.slice(arguments)))})},e.internalField=(r=function(e){var t=e._invertedIndicesMap;c.each(t,(function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new T(a.categories.length);for(var s=0;s1&&(l+="__ec__"+c),r[t]=l}})),e}();t.default=x},function(e,t,n){"use strict";n.r(t),n.d(t,"setBrowserMeta",(function(){return s})),n.d(t,"setPlatformMeta",(function(){return l})),n.d(t,"isChrome",(function(){return u})),n.d(t,"isEdge",(function(){return c})),n.d(t,"isIE",(function(){return d})),n.d(t,"isIE8",(function(){return f})),n.d(t,"isIE9",(function(){return h})),n.d(t,"isMSBrowser",(function(){return p})),n.d(t,"isMobileBrowser",(function(){return m})),n.d(t,"isSafari",(function(){return g})),n.d(t,"isFirefox",(function(){return v})),n.d(t,"isWindowsOS",(function(){return _})),n.d(t,"isMacOS",(function(){return y})),n.d(t,"isLinuxOS",(function(){return b}));var r=n(3),i=function(e){var t={value:!1,test:function(n,r){t.value=e(n,r)}};return t},a={chrome:i((function(e,t){return/Chrome/.test(e)&&/Google/.test(t)})),edge:i((function(e){return/Edge/.test(e)})),firefox:i((function(e){return/Firefox/.test(e)})),ie:i((function(e){return/Trident/.test(e)})),ie8:i((function(){return!document.createTextNode("test").textContent})),ie9:i((function(){return!!document.documentMode})),mobile:i((function(e){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(e)})),safari:i((function(e,t){return/Safari/.test(e)&&/Apple Computer/.test(t)}))},o={mac:i((function(e){return/^Mac/.test(e)})),win:i((function(e){return/^Win/.test(e)})),linux:i((function(e){return/^Linux/.test(e)}))};function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.userAgent,n=void 0===t?navigator.userAgent:t,i=e.vendor,o=void 0===i?navigator.vendor:i;Object(r.objectEach)(a,(function(e){(0,e.test)(n,o)}))}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.platform,n=void 0===t?navigator.platform:t;Object(r.objectEach)(o,(function(e){(0,e.test)(n)}))}function u(){return a.chrome.value}function c(){return a.edge.value}function d(){return a.ie.value}function f(){return a.ie8.value}function h(){return a.ie9.value}function p(){return a.ie.value||a.edge.value}function m(){return a.mobile.value}function g(){return a.safari.value}function v(){return a.firefox.value}function _(){return o.win.value}function y(){return o.mac.value}function b(){return o.linux.value}s(),l()},function(e,t,n){"use strict";n.r(t),n.d(t,"toUpperCaseFirst",(function(){return i})),n.d(t,"equalsIgnoreCase",(function(){return a})),n.d(t,"randomString",(function(){return o})),n.d(t,"isPercentValue",(function(){return s})),n.d(t,"substitute",(function(){return l})),n.d(t,"stripTags",(function(){return c}));n(58),n(12),n(92),n(31),n(155);var r=n(26);function i(e){return e[0].toUpperCase()+e.substr(1)}function a(){for(var e=[],t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};return"".concat(e).replace(/(?:\\)?\[([^[\]]+)]/g,(function(e,n){return"\\"===e.charAt(0)?e.substr(1,e.length-1):void 0===t[n]?"":t[n]}))}var u=/<\/?\w+\/?>|<\w+[\s|/][^>]*>/gi;function c(e){return"".concat(e).replace(u,"")}},function(e,t,n){"use strict";n.r(t),n.d(t,"isValueNice",(function(){return i})),n.d(t,"isIntervalOrLogScale",(function(){return a})),n.d(t,"intervalScaleNiceTicks",(function(){return o})),n.d(t,"increaseInterval",(function(){return s})),n.d(t,"getIntervalPrecision",(function(){return l})),n.d(t,"fixExtent",(function(){return c})),n.d(t,"contain",(function(){return d})),n.d(t,"normalize",(function(){return f})),n.d(t,"scale",(function(){return h}));var r=n(5);function i(e){var t=Math.pow(10,Object(r.quantityExponent)(Math.abs(e))),n=Math.abs(e/t);return 0===n||1===n||2===n||3===n||5===n}function a(e){return"interval"===e.type||"log"===e.type}function o(e,t,n,i){var a={},o=e[1]-e[0],s=a.interval=Object(r.nice)(o/t,!0);null!=n&&si&&(s=a.interval=i);var u=a.intervalPrecision=l(s);return c(a.niceTickExtent=[Object(r.round)(Math.ceil(e[0]/s)*s,u),Object(r.round)(Math.floor(e[1]/s)*s,u)],e),a}function s(e){var t=Math.pow(10,Object(r.quantityExponent)(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(r.round)(n*t)}function l(e){return Object(r.getPrecision)(e)+2}function u(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function c(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),u(e,0,t),u(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function d(e,t){return e>=t[0]&&e<=t[1]}function f(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function h(e,t){return e*(t[1]-t[0])+t[0]}},function(e,t,n){"use strict";n.r(t),n.d(t,"translateLegacyCodec",(function(){return l})),n.d(t,"translateLegacyCodecs",(function(){return u})),n.d(t,"mapLegacyAvcCodecs",(function(){return c})),n.d(t,"parseCodecs",(function(){return d})),n.d(t,"codecsFromDefault",(function(){return f})),n.d(t,"isVideoCodec",(function(){return h})),n.d(t,"isAudioCodec",(function(){return p})),n.d(t,"isTextCodec",(function(){return m})),n.d(t,"getMimeForCodec",(function(){return g})),n.d(t,"browserSupportsCodec",(function(){return v})),n.d(t,"muxerSupportsCodec",(function(){return _})),n.d(t,"DEFAULT_AUDIO_CODEC",(function(){return y})),n.d(t,"DEFAULT_VIDEO_CODEC",(function(){return b}));var r=n(7),i=n.n(r),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},o=["video","audio","text"],s=["Video","Audio","Text"],l=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e},u=function(e){return e.map(l)},c=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return u([e])[0]}))},d=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),o.forEach((function(r){var i=a[r].exec(e.toLowerCase());if(i&&!(i.length<=1)){t=r;var o=e.substring(0,i[1].length),s=e.replace(o,"");n.push({type:o,details:s,mediaType:r})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n},f=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return d(i.playlists[0].attributes.CODECS)}return null},h=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())},p=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},m=function(e){return void 0===e&&(e=""),a.text.test(e.trim().toLowerCase())},g=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return l(e.trim())})),n="video";1===t.length&&p(t[0])?n="audio":1===t.length&&m(t[0])&&(n="application");var r="mp4";return t.every((function(e){return a.mp4.test(e)}))?r="mp4":t.every((function(e){return a.webm.test(e)}))?r="webm":t.every((function(e){return a.ogg.test(e)}))&&(r="ogg"),n+"/"+r+';codecs="'+e+'"'}},v=function(e){return void 0===e&&(e=""),i.a.MediaSource&&i.a.MediaSource.isTypeSupported&&i.a.MediaSource.isTypeSupported(g(e))||!1},_=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t1?arguments[1]:void 0)}}),a("includes")},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n(3),a={_localHooks:Object.create(null),addLocalHook:function(e,t){return this._localHooks[e]||(this._localHooks[e]=[]),this._localHooks[e].push(t),this},runLocalHooks:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),a=1;a5e-5||e<-5e-5}var s=[],l=[],u=r.create(),c=Math.abs,d=function(){function e(){}var t;return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return o(this.rotation)||o(this.x)||o(this.y)||o(this.scaleX-1)||o(this.scaleY-1)||o(this.skewX)||o(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||r.create(),t?this.getLocalTransform(n):a(n),e&&(t?r.mul(n,e,n):r.copy(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&a(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(s);var n=s[0]<0?-1:1,i=s[1]<0?-1:1,a=((s[0]-n)*t+n)/s[0]||0,o=((s[1]-i)*t+i)/s[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,e)},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r.mul(l,e.invTransform,t),t=l);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r.mul(l,t,u),l[4]-=n,l[5]-=i,t=l),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i.applyTransform(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&c(e[0]-1)>1e-10&&c(e[3]-1)>1e-10?Math.sqrt(c(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){h(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,a=e.scaleX,o=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,d=e.y,f=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,m=i+l;t[4]=-p*a-f*m*o,t[5]=-m*o-h*p*a}else t[4]=t[5]=0;return t[0]=a,t[3]=o,t[1]=h*a,t[2]=f*o,u&&r.rotate(t,t,u),t[4]+=n+c,t[5]+=i+d,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),f=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function h(e,t){for(var n=0;n'.concat(String.fromCharCode(10003),"").concat(e)}},function(e,t,n){var r=n(424)("wks"),i=n(324),a=n(87).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(229),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(57),i=n(505),a=n(150),o=n(506),s=n(654),l=n(949),u=i("wks"),c=r.Symbol,d=c&&c.for,f=l?c:c&&c.withoutSetter||o;e.exports=function(e){if(!a(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&a(c,e)?u[e]=c[e]:u[e]=l&&d?d(t):f(t)}return u[e]}},function(e,t,n){"use strict";var r=n(73),i=n(57),a=n(435),o=n(301),s=n(208),l=n(176),u=n(672),c=n(363),d=n(443)("splice"),f=i.TypeError,h=Math.max,p=Math.min;r({target:"Array",proto:!0,forced:!d},{splice:function(e,t){var n,r,i,d,m,g,v=l(this),_=s(v),y=a(e,_),b=arguments.length;if(0===b?n=r=0:1===b?(n=0,r=_-y):(n=b-2,r=p(h(o(t),0),_-y)),_+n-r>9007199254740991)throw f("Maximum allowed length exceeded");for(i=u(v,r),d=0;d_-r+n;d--)delete v[d-1]}else if(n>r)for(d=_-r;d>y;d--)g=d+n-1,(m=d+r-1)in v?v[g]=v[m]:delete v[g];for(d=0;d0}},{key:"hasPrecedent",value:function(e){return Object(i.arrayFilter)(this.precedents,(function(t){return t.isEqual(e)})).length>0}}]),t}(a.default);t.default=h},function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return z})),n.d(t,"dependencies",(function(){return G})),n.d(t,"PRIORITY",(function(){return $})),n.d(t,"init",(function(){return Le})),n.d(t,"connect",(function(){return Pe})),n.d(t,"disConnect",(function(){return je})),n.d(t,"disconnect",(function(){return Fe})),n.d(t,"dispose",(function(){return Be})),n.d(t,"getInstanceByDom",(function(){return He})),n.d(t,"getInstanceById",(function(){return Ue})),n.d(t,"registerTheme",(function(){return Ye})),n.d(t,"registerPreprocessor",(function(){return Ve})),n.d(t,"registerProcessor",(function(){return We})),n.d(t,"registerPostInit",(function(){return ze})),n.d(t,"registerPostUpdate",(function(){return Ge})),n.d(t,"registerUpdateLifecycle",(function(){return $e})),n.d(t,"registerAction",(function(){return qe})),n.d(t,"registerCoordinateSystem",(function(){return Ke})),n.d(t,"getCoordinateSystemDimensions",(function(){return Xe})),n.d(t,"registerLayout",(function(){return Qe})),n.d(t,"registerVisual",(function(){return Ze})),n.d(t,"registerLoading",(function(){return tt})),n.d(t,"setCanvasCreator",(function(){return nt})),n.d(t,"registerMap",(function(){return rt})),n.d(t,"getMap",(function(){return it})),n.d(t,"registerTransform",(function(){return at})),n.d(t,"dataTool",(function(){return ot}));var r=n(4),i=n(343),a=n(0),o=n(54),s=n(409),l=n(129),u=n(552),c=n(554),d=n(233),f=n(1077),h=n(721),p=n(1082),m=n(60),g=n(69),v=n(59),_=n(74),y=n(102),b=n(24),S=n(38),E=n(29),w=n(9),T=n(6),O=n(130),C=n(605),x=n(1083),k=n(723),M=n(1084),A=n(1085),R=n(116),I=n(1061),D=n(725),N=n(168),L=n(40),P=n(378),j=n(557),F=n(216),B=n(287),H=n(1080),U=n(223),Y=n(93),V=n(465);n.d(t,"registerLocale",(function(){return F.registerLocale}));var W="undefined"!=typeof window,z="5.3.0",G={zrender:"5.3.0"},$={PROCESSOR:{FILTER:1e3,SERIES_FILTER:800,STATISTIC:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:2e3,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:4500,ARIA:6e3,DECAL:7e3}},q="__pendingUpdate",K=/^[a-zA-Z0-9_]+$/;function X(e){return function(){for(var t=[],n=0;n0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this.__flagInMainProcess)if(this._disposed)Ee(this.id);else{var r,i,o;if(Object(a.isObject)(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this.__flagInMainProcess=!0,!this._model||t){var s=new f.default(this._api),l=this._theme,c=this._model=new u.default;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,l,this._locale,s)}this._model.setOption(e,{replaceMerge:i},Ce);var d={seriesTransition:o,optionChanged:!0};if(n)this[q]={silent:r,updateParams:d},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{J(this),ne.update.call(this,null,d)}catch(e){throw this[q]=null,this.__flagInMainProcess=!1,e}this._ssr||this._zr.flush(),this[q]=null,this.__flagInMainProcess=!1,oe.call(this,r),se.call(this,r)}}},t.prototype.setTheme=function(){Object(L.deprecateLog)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||W&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e=e||{},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e=e||{},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(o.default.svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(a.each)(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e=e||{}).excludeComponents,n=this._model,r=[],i=this;Object(a.each)(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(a.each)(r,(function(e){e.group.ignore=!1})),o}Ee(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,o=Math.max;if(Re[n]){var s=1/0,l=1/0,u=-1/0,c=-1/0,d=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();Object(a.each)(Ae,(function(i,f){if(i.group===n){var h=t?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(a.clone)(e)),p=i.getDom().getBoundingClientRect();s=r(p.left,s),l=r(p.top,l),u=o(p.right,u),c=o(p.bottom,c),d.push({dom:h,left:p.left,top:p.top})}}));var h=(u*=f)-(s*=f),p=(c*=f)-(l*=f),m=Y.platformApi.createCanvas(),g=i.init(m,{renderer:t?"svg":"canvas"});if(g.resize({width:h,height:p}),t){var v="";return Object(a.each)(d,(function(e){var t=e.left-s,n=e.top-l;v+=''+e.dom+""})),g.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new _.default({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),Object(a.each)(d,(function(e){var t=new y.default({style:{x:e.left*f-s,y:e.top*f-l,image:e.dom}});g.add(t)})),g.refreshImmediately(),m.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Ee(this.id)},t.prototype.convertToPixel=function(e,t){return re(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return re(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=T.parseFinder(r,e);return Object(a.each)(i,(function(e,r){r.indexOf("Models")>=0&&Object(a.each)(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n=n||a.containPoint(t,e))}else 0}),this)}),this),!!n}Ee(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=T.parseFinder(n,e,{defaultMainType:"series"});var i=r.seriesModel.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=a?Object(N.getItemVisualFromData)(i,a,t):Object(N.getVisualFromData)(i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(a.each)(Se,(function(t){var n=function(n){var r,i=e.getModel(),o=n.target;if("globalout"===t?r={}:o&&Object(B.findEventDispatcher)(o,(function(e){var t=Object(E.getECData)(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return r=Object(a.extend)({},t.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(a.each)(Te,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(a.each)(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),Object(P.handleLegacySelectEvents)(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Ee(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Ee(this.id);else{this._disposed=!0,this.getDom()&&T.setAttribute(this.getDom(),Ne,"");var e=this._api,t=this._model;Object(a.each)(this._componentsViews,(function(n){n.dispose(t,e)})),Object(a.each)(this._chartsViews,(function(n){n.dispose(t,e)})),this._zr.dispose(),this._dom=this._model=this._chartsMap=this._componentsMap=this._chartsViews=this._componentsViews=this._scheduler=this._api=this._zr=this._throttledZrFlush=this._theme=this._coordSysMgr=this._messageCenter=null,delete Ae[this.id]}},t.prototype.resize=function(e){if(!this.__flagInMainProcess)if(this._disposed)Ee(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[q]&&(null==r&&(r=this[q].silent),n=!0,this[q]=null),this.__flagInMainProcess=!0;try{n&&J(this),ne.update.call(this,{type:"resize",animation:Object(a.extend)({duration:0},e&&e.animation)})}catch(e){throw this.__flagInMainProcess=!1,e}this.__flagInMainProcess=!1,oe.call(this,r),se.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Ee(this.id);else if(Object(a.isObject)(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Me[e]){var n=Me[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Ee(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(a.extend)({},e);return t.type=Te[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Ee(this.id);else if(Object(a.isObject)(t)||(t={silent:!!t}),we[e.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(e);else{var n=t.silent;ae.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&o.default.browser.weChat&&this._throttledZrFlush(),oe.call(this,n),se.call(this,n)}},t.prototype.updateLabelLayout=function(){U.default.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Ee(this.id);else{var t=e.seriesIndex;0,this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){for(var t=[],n=e.currentStates,r=0;r0?{duration:a,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(e){if(e.states&&e.states.emphasis){if(b.isElementRemoved(e))return;if(e instanceof S.default&&Object(w.savePathStates)(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&t(e)}}))}J=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),ee(e,!0),ee(e,!1),t.plan()},ee=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,l=0;lt.get("hoverLayerThreshold")&&!o.default.node&&!o.default.worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}(e,t),U.default.trigger("series:afterupdate",t,r,u)},me=function(e){e.__needsUpdateStatus=!0,e.getZr().wakeUp()},ge=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse((function(e){b.isElementRemoved(e)||t(e)})),e.__needsUpdateStatus=!1)},he=function(e){return new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(n,t),n.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(null!=n)return e._model.getComponent(n.mainType,n.index);t=t.parent}},n.prototype.enterEmphasis=function(t,n){Object(w.enterEmphasis)(t,n),me(e)},n.prototype.leaveEmphasis=function(t,n){Object(w.leaveEmphasis)(t,n),me(e)},n.prototype.enterBlur=function(t){Object(w.enterBlur)(t),me(e)},n.prototype.leaveBlur=function(t){Object(w.leaveBlur)(t),me(e)},n.prototype.enterSelect=function(t){Object(w.enterSelect)(t),me(e)},n.prototype.leaveSelect=function(t){Object(w.leaveSelect)(t),me(e)},n.prototype.getModel=function(){return e.getModel()},n.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},n.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},n}(c.default))(e)},pe=function(e){function t(e,t){for(var n=0;n=0)){Je.push(n);var o=k.default.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function tt(e,t){Me[e]=t}function nt(e){Object(Y.setPlatformAPI)({createCanvas:e})}function rt(e,t,n){var r=Object(V.getImpl)("registerMap");r&&r(e,t,n)}function it(e){var t=Object(V.getImpl)("getMap");return t&&t(e)}var at=j.registerExternalTransform;Ze(2e3,C.seriesStyleTask),Ze(4500,C.dataStyleTask),Ze(4500,C.dataColorPaletteTask),Ze(2e3,D.seriesSymbolTask),Ze(4500,D.dataSymbolTask),Ze(7e3,H.default),Ve(h.default),We(900,p.default),tt("default",x.default),qe({type:w.HIGHLIGHT_ACTION_TYPE,event:w.HIGHLIGHT_ACTION_TYPE,update:w.HIGHLIGHT_ACTION_TYPE},a.noop),qe({type:w.DOWNPLAY_ACTION_TYPE,event:w.DOWNPLAY_ACTION_TYPE,update:w.DOWNPLAY_ACTION_TYPE},a.noop),qe({type:w.SELECT_ACTION_TYPE,event:w.SELECT_ACTION_TYPE,update:w.SELECT_ACTION_TYPE},a.noop),qe({type:w.UNSELECT_ACTION_TYPE,event:w.UNSELECT_ACTION_TYPE,update:w.UNSELECT_ACTION_TYPE},a.noop),qe({type:w.TOGGLE_SELECT_ACTION_TYPE,event:w.TOGGLE_SELECT_ACTION_TYPE,update:w.TOGGLE_SELECT_ACTION_TYPE},a.noop),Ye("light",M.default),Ye("dark",A.default);var ot={}},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(76),a=n(5),o=r.each,s=r.isObject,l=function(){function e(t){var n=t.mappingMethod,i=t.type,a=this.option=r.clone(t);this.type=i,this.mappingMethod=n,this._normalizeData=_[n];var s=e.visualHandlers[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[n],"piecewise"===n?(u(a),function(e){var t=e.pieceList;e.hasSpecialVisual=!1,r.each(t,(function(t,n){t.originIndex=n,null!=t.visual&&(e.hasSpecialVisual=!0)}))}(a)):"category"===n?a.categories?function(e){var t=e.categories,n=e.categoryMap={},i=e.visual;if(o(t,(function(e,t){n[e]=t})),!r.isArray(i)){var a=[];r.isObject(i)?o(i,(function(e,t){var r=n[t];a[null!=r?r:-1]=e})):a[-1]=i,i=v(e,a)}for(var s=t.length-1;s>=0;s--)null==i[s]&&(delete n[t[s]],t.pop())}(a):u(a,!0):(r.assert("linear"!==n||a.dataExtent),u(a))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return r.bind(this._normalizeData,this)},e.listVisualTypes=function(){return r.keys(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){r.isObject(e)?r.each(e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var a,o=r.isArray(t)?[]:r.isObject(t)?{}:(a=!0,null);return e.eachVisual(t,(function(e,t){var r=n.call(i,e,t);a?o=r:o[t]=r})),o},e.retrieveVisuals=function(t){var n,r={};return t&&o(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(r.isArray(e))e=e.slice();else{if(!s(e))return[];var t=[];o(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,a=1/0,o=0,s=t.length;o2,i=o(t)?t:d(t),s=r?l(arguments,2):void 0;return e(r?function(){a(i,this,s)}:i,n)}};r({global:!0,bind:!0,forced:c},{setTimeout:f(i.setTimeout),setInterval:f(i.setInterval)})},function(e,t,n){"use strict";n.r(t);var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof t&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;null!=t&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o=0?d():c=setTimeout(d,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(e){s=e},f}function o(e,t,n,o){var s=e[t];if(s){var l=s[r]||s,u=s["\0__throttleType"];if(s[i]!==n||u!==o){if(null==n||!o)return e[t]=l;(s=e[t]=a(l,n,"debounce"===o))[r]=l,s["\0__throttleType"]=o,s[i]=n}return s}}function s(e,t){var n=e[t];n&&n[r]&&(n.clear&&n.clear(),e[t]=n[r])}},function(e,t,n){"use strict";n.r(t),n.d(t,"enableDataStack",(function(){return a})),n.d(t,"isDimensionStacked",(function(){return o})),n.d(t,"getStackedDimension",(function(){return s}));var r=n(0),i=n(288);function a(e,t,n){var a,o,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(e){return!Object(i.isSeriesDataSchema)(e.schema)}(t)?(o=t.schema,a=o.dimensions,s=t.store):a=t;var c,d,f,h,p=!(!e||!e.get("stack"));if(Object(r.each)(a,(function(e,t){Object(r.isString)(e)&&(a[t]=e={name:e}),p&&!e.isExtraCoord&&(l||c||!e.ordinalMeta||(c=e),d||"ordinal"===e.type||"time"===e.type||u&&u!==e.coordDim||(d=e))})),!d||l||c||(l=!0),d){f="__\0ecstackresult_"+e.id,h="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var m=d.coordDim,g=d.type,v=0;Object(r.each)(a,(function(e){e.coordDim===m&&v++}));var _={name:f,coordDim:m,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:h,coordDim:h,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(_.storeDimIndex=s.ensureCalculationDimension(h,g),y.storeDimIndex=s.ensureCalculationDimension(f,g)),o.appendCalculationDimension(_),o.appendCalculationDimension(y)):(a.push(_),a.push(y))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:h,stackResultDimension:f}}function o(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function s(e,t){return o(e,t)?e.getCalculationInfo("stackResultDimension"):t}},function(e,t,n){var r=n(81),i=n(912),a=n(240),o=Object.defineProperty;t.f=n(126)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(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){var r=n(127);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},function(e,t,n){var r=n(57),i=n(133),a=r.String,o=r.TypeError;e.exports=function(e){if(i(e))return e;throw o(a(e)+" is not an object")}},function(e,t,n){"use strict";n.r(t),n.d(t,"BE_ORDINAL",(function(){return o})),n.d(t,"resetSourceDefaulter",(function(){return l})),n.d(t,"makeSeriesEncodeForAxisCoordSys",(function(){return u})),n.d(t,"makeSeriesEncodeForNameBased",(function(){return c})),n.d(t,"querySeriesUpstreamDatasetModel",(function(){return d})),n.d(t,"queryDatasetUpstreamDatasetModels",(function(){return f})),n.d(t,"guessOrdinal",(function(){return h}));var r=n(6),i=n(0),a=n(28),o={Must:1,Might:2,Not:3},s=Object(r.makeInner)();function l(e){s(e).datasetMap=Object(i.createHashMap)()}function u(e,t,n){var r={},a=d(t);if(!a||!e)return r;var o,l,u=[],c=[],f=t.ecModel,h=s(f).datasetMap,p=a.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(i.each)(e,(function(t,n){var a=Object(i.isObject)(t)?t:e[n]={name:t};"ordinal"===a.type&&null==o&&(o=n,l=v(a)),r[a.name]=[]}));var m=h.get(p)||h.set(p,{categoryWayDim:l,valueWayDim:0});function g(e,t,n){for(var r=0;r=0){var i=n.getData().tree.root,a=e.targetNode;if(r.isString(a)&&(a=i.getNodeById(a)),a&&i.contains(a))return{node:a};var o=e.targetNodeId;if(null!=o&&(a=i.getNodeById(o)))return{node:a}}}function a(e){for(var t=[];e;)(e=e.parentNode)&&t.push(e);return t.reverse()}function o(e,t){var n=a(e);return r.indexOf(n,t)>=0}function s(e,t){for(var n=[];e;){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}},function(e,t,n){var r;"undefined"!=typeof self&&self,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=15)}([function(e,t){t.nil=new Error("#NULL!"),t.div0=new Error("#DIV/0!"),t.value=new Error("#VALUE!"),t.ref=new Error("#REF!"),t.name=new Error("#NAME?"),t.num=new Error("#NUM!"),t.na=new Error("#N/A"),t.error=new Error("#ERROR!"),t.data=new Error("#GETTING_DATA")},function(e,t,n){var r=n(0);t.flattenShallow=function(e){return e&&e.reduce?e.reduce((function(e,t){var n=Array.isArray(e),r=Array.isArray(t);return n&&r?e.concat(t):n?(e.push(t),e):r?[e].concat(t):[e,t]})):e},t.isFlat=function(e){if(!e)return!1;for(var t=0;t-1?parseFloat(e):parseInt(e,10)),t}t.__esModule=!0,t.toNumber=r,t.invertNumber=function(e){return-1*r(e)}},function(e,t,n){var r=n(1),i=n(0),a=n(5),o=n(8),s=n(7);t.ABS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.abs(e)},t.ACOS=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.acos(e);return isNaN(t)&&(t=i.num),t},t.ACOSH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log(e+Math.sqrt(e*e-1));return isNaN(t)&&(t=i.num),t},t.ACOT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(1/e)},t.ACOTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=.5*Math.log((e+1)/(e-1));return isNaN(t)&&(t=i.num),t},t.AGGREGATE=function(e,n,o,s){if(e=r.parseNumber(e),n=r.parseNumber(e),r.anyIsError(e,n))return i.value;switch(e){case 1:return a.AVERAGE(o);case 2:return a.COUNT(o);case 3:return a.COUNTA(o);case 4:return a.MAX(o);case 5:return a.MIN(o);case 6:return t.PRODUCT(o);case 7:return a.STDEV.S(o);case 8:return a.STDEV.P(o);case 9:return t.SUM(o);case 10:return a.VAR.S(o);case 11:return a.VAR.P(o);case 12:return a.MEDIAN(o);case 13:return a.MODE.SNGL(o);case 14:return a.LARGE(o,s);case 15:return a.SMALL(o,s);case 16:return a.PERCENTILE.INC(o,s);case 17:return a.QUARTILE.INC(o,s);case 18:return a.PERCENTILE.EXC(o,s);case 19:return a.QUARTILE.EXC(o,s)}},t.ARABIC=function(e){if(!/^M*(?:D?C{0,3}|C[MD])(?:L?X{0,3}|X[CL])(?:V?I{0,3}|I[XV])$/.test(e))return i.value;var t=0;return e.replace(/[MDLV]|C[MD]?|X[CL]?|I[XV]?/g,(function(e){t+={M:1e3,CM:900,D:500,CD:400,C:100,XC:90,L:50,XL:40,X:10,IX:9,V:5,IV:4,I:1}[e]})),t},t.ASIN=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.asin(e);return isNaN(t)&&(t=i.num),t},t.ASINH=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e+Math.sqrt(e*e+1))},t.ATAN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.atan(e)},t.ATAN2=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:Math.atan2(e,t)},t.ATANH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.log((1+e)/(1-e))/2;return isNaN(t)&&(t=i.num),t},t.BASE=function(e,t,n){if(n=n||0,e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(e,t,n))return i.value;n=void 0===n?0:n;var a=e.toString(t);return new Array(Math.max(n+1-a.length,0)).join("0")+a},t.CEILING=function(e,n,a){if(n=void 0===n?1:Math.abs(n),a=a||0,e=r.parseNumber(e),n=r.parseNumber(n),a=r.parseNumber(a),r.anyIsError(e,n,a))return i.value;if(0===n)return 0;var o=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.ceil(e/n)*n,o):0===a?-t.ROUND(Math.floor(Math.abs(e)/n)*n,o):-t.ROUND(Math.ceil(Math.abs(e)/n)*n,o)},t.CEILING.MATH=t.CEILING,t.CEILING.PRECISE=t.CEILING,t.COMBIN=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?i.value:t.FACT(e)/(t.FACT(n)*t.FACT(e-n))},t.COMBINA=function(e,n){return e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n)?i.value:0===e&&0===n?1:t.COMBIN(e+n-1,e-1)},t.COS=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.cos(e)},t.COSH=function(e){return(e=r.parseNumber(e))instanceof Error?e:(Math.exp(e)+Math.exp(-e))/2},t.COT=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.tan(e)},t.COTH=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var t=Math.exp(2*e);return(t+1)/(t-1)},t.CSC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.sin(e)},t.CSCH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)-Math.exp(-e))},t.DECIMAL=function(e,t){return arguments.length<1?i.value:parseInt(e,t)},t.DEGREES=function(e){return(e=r.parseNumber(e))instanceof Error?e:180*e/Math.PI},t.EVEN=function(e){return(e=r.parseNumber(e))instanceof Error?e:t.CEILING(e,-2,-1)},t.EXP=function(e){return arguments.length<1?i.na:"number"!=typeof e||arguments.length>1?i.error:e=Math.exp(e)};var l=[];t.FACT=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return 0===n||1===n?1:(l[n]>0||(l[n]=t.FACT(n-1)*n),l[n])},t.FACTDOUBLE=function(e){if((e=r.parseNumber(e))instanceof Error)return e;var n=Math.floor(e);return n<=0?1:n*t.FACTDOUBLE(n-2)},t.FLOOR=function(e,n){if(e=r.parseNumber(e),n=r.parseNumber(n),r.anyIsError(e,n))return i.value;if(0===n)return 0;if(!(e>0&&n>0||e<0&&n<0))return i.num;n=Math.abs(n);var a=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,a):-t.ROUND(Math.ceil(Math.abs(e)/n),a)},t.FLOOR.MATH=function(e,n,a){if(n=void 0===n?1:n,a=void 0===a?0:a,e=r.parseNumber(e),n=r.parseNumber(n),a=r.parseNumber(a),r.anyIsError(e,n,a))return i.value;if(0===n)return 0;n=n?Math.abs(n):1;var o=-Math.floor(Math.log(n)/Math.log(10));return e>=0?t.ROUND(Math.floor(e/n)*n,o):0===a||void 0===a?-t.ROUND(Math.ceil(Math.abs(e)/n)*n,o):-t.ROUND(Math.floor(Math.abs(e)/n)*n,o)},t.FLOOR.PRECISE=t.FLOOR.MATH,t.GCD=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=e.length,n=e[0],i=n<0?-n:n,a=1;as?i%=s:s%=i;i+=s}return i},t.INT=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.floor(e)},t.ISO={CEILING:t.CEILING},t.LCM=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t,n,i,a,o=1;void 0!==(i=e.pop());)for(;i>1;){if(i%2){for(t=3,n=Math.floor(Math.sqrt(i));t<=n&&i%t;t+=2);a=t<=n?t:i}else a=2;for(i/=a,o*=a,t=e.length;t;e[--t]%a==0&&1==(e[t]/=a)&&e.splice(t,1));}return o},t.LN=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)},t.LN10=function(){return Math.log(10)},t.LN2=function(){return Math.log(2)},t.LOG10E=function(){return Math.LOG10E},t.LOG2E=function(){return Math.LOG2E},t.LOG=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:(t=void 0===t?10:t,Math.log(e)/Math.log(t))},t.LOG10=function(e){return(e=r.parseNumber(e))instanceof Error?e:Math.log(e)/Math.log(10)},t.MOD=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return i.value;if(0===t)return i.div0;var n=Math.abs(e%t);return t>0?n:-n},t.MROUND=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:e*t<0?i.num:Math.round(e/t)*t},t.MULTINOMIAL=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var n=0,i=1,a=0;a0?t:-t},t.PI=function(){return Math.PI},t.E=function(){return Math.E},t.POWER=function(e,t){if(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t))return i.value;var n=Math.pow(e,t);return isNaN(n)?i.num:n},t.PRODUCT=function(){var e=r.parseNumberArray(r.flatten(arguments));if(e instanceof Error)return e;for(var t=1,n=0;n0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.ROUNDUP=function(e,t){return e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.value:(e>0?1:-1)*Math.ceil(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)},t.SEC=function(e){return(e=r.parseNumber(e))instanceof Error?e:1/Math.cos(e)},t.SECH=function(e){return(e=r.parseNumber(e))instanceof Error?e:2/(Math.exp(e)+Math.exp(-e))},t.SERIESSUM=function(e,t,n,a){if(e=r.parseNumber(e),t=r.parseNumber(t),n=r.parseNumber(n),a=r.parseNumberArray(a),r.anyIsError(e,t,n,a))return i.value;for(var o=a[0]*Math.pow(e,t),s=1;s=t)},t.LT=function(e,t){return 2!==arguments.length?i.na:(e=r.parseNumber(e),t=r.parseNumber(t),r.anyIsError(e,t)?i.error:e0?1:-1)*Math.floor(Math.abs(e)*Math.pow(10,t))/Math.pow(10,t)}},function(e,t,n){var r=n(4),i=n(6),a=n(10),o=n(1),s=n(7),l=n(0),u=n(11);t.AVEDEV=function(){var e=o.parseNumberArray(o.flatten(arguments));return e instanceof Error?e:a.sum(a(e).subtract(a.mean(e)).abs()[0])/e.length},t.AVERAGE=function(){for(var e,t=o.numbers(o.flatten(arguments)),n=t.length,r=0,i=0,a=0;a=n)return r;r++}},t.CHISQ={},t.CHISQ.DIST=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?l.value:n?a.chisquare.cdf(e,t):a.chisquare.pdf(e,t)},t.CHISQ.DIST.RT=function(e,t){return!e|!t?l.na:e<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:1-a.chisquare.cdf(e,t)},t.CHISQ.INV=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?l.value:a.chisquare.inv(e,t)},t.CHISQ.INV.RT=function(e,t){return!e|!t?l.na:e<0||e>1||t<1||t>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t?l.value:a.chisquare.inv(1-e,t)},t.CHISQ.TEST=function(e,t){if(2!==arguments.length)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.value;if(e.length!==t.length)return l.value;if(e[0]&&t[0]&&e[0].length!==t[0].length)return l.value;var n,r,i,a=e.length;for(r=0;r=2;)n=n*e/r,r-=2;for(var i=n,a=t;i>1e-10*n;)n+=i=i*e/(a+=2);return 1-n}return Math.round(1e6*d(u,s))/1e6},t.COLUMN=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?a.col(e,t):void 0:l.value},t.COLUMNS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:a.cols(e):l.value},t.CONFIDENCE={},t.CONFIDENCE.NORM=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:a.normalci(1,e,t,n)[1]-1},t.CONFIDENCE.T=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:a.tci(1,e,t,n)[1]-1},t.CORREL=function(e,t){return e=o.parseNumberArray(o.flatten(e)),t=o.parseNumberArray(o.flatten(t)),o.anyIsError(e,t)?l.value:a.corrcoeff(e,t)},t.COUNT=function(){return o.numbers(o.flatten(arguments)).length},t.COUNTA=function(){var e=o.flatten(arguments);return e.length-t.COUNTBLANK(e)},t.COUNTIN=function(e,t){var n=0;e=o.flatten(e);for(var r=0;r1?l.num:a.centralF.inv(e,t,n)},t.F.INV.RT=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<1||t>Math.pow(10,10)||n<1||n>Math.pow(10,10)?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:a.centralF.inv(1-e,t,n)},t.F.TEST=function(e,t){if(!e||!t)return l.na;if(!(e instanceof Array&&t instanceof Array))return l.na;if(e.length<2||t.length<2)return l.div0;var n=function(e,t){for(var n=0,r=0;rt[a-1]&&e[s]<=t[a]&&(i[a]+=1):a===r&&e[s]>t[r-1]&&(i[r]+=1)}return i},t.GAMMA=function(e){return(e=o.parseNumber(e))instanceof Error?e:0===e||parseInt(e,10)===e&&e<0?l.num:a.gammafn(e)},t.GAMMA.DIST=function(e,t,n,r){return 4!==arguments.length?l.na:e<0||t<=0||n<=0||"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:r?a.gamma.cdf(e,t,n,!0):a.gamma.pdf(e,t,n,!1)},t.GAMMA.INV=function(e,t,n){return 3!==arguments.length?l.na:e<0||e>1||t<=0||n<=0?l.num:"number"!=typeof e||"number"!=typeof t||"number"!=typeof n?l.value:a.gamma.inv(e,t,n)},t.GAMMALN=function(e){return(e=o.parseNumber(e))instanceof Error?e:a.gammaln(e)},t.GAMMALN.PRECISE=function(e){return 1!==arguments.length?l.na:e<=0?l.num:"number"!=typeof e?l.value:a.gammaln(e)},t.GAUSS=function(e){return(e=o.parseNumber(e))instanceof Error?e:a.normal.cdf(e,0,1)-.5},t.GEOMEAN=function(){var e=o.parseNumberArray(o.flatten(arguments));return e instanceof Error?e:a.geomean(e)},t.GROWTH=function(e,t,n,r){if((e=o.parseNumberArray(e))instanceof Error)return e;var i;if(void 0===t)for(t=[],i=1;i<=e.length;i++)t.push(i);if(void 0===n)for(n=[],i=1;i<=e.length;i++)n.push(i);if(t=o.parseNumberArray(t),n=o.parseNumberArray(n),o.anyIsError(t,n))return l.value;void 0===r&&(r=!0);var a,s,u=e.length,c=0,d=0,f=0,h=0;for(i=0;ia&&(a=r[t],i=[]),r[t]===a&&(i[i.length]=t);return i},t.MODE.SNGL=function(){var e=o.parseNumberArray(o.flatten(arguments));return e instanceof Error?e:t.MODE.MULT(e).sort((function(e,t){return e-t}))[0]},t.NEGBINOM={},t.NEGBINOM.DIST=function(e,t,n,r){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:r?a.negbin.cdf(e,t,n):a.negbin.pdf(e,t,n)},t.NORM={},t.NORM.DIST=function(e,t,n,r){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:n<=0?l.num:r?a.normal.cdf(e,t,n):a.normal.pdf(e,t,n)},t.NORM.INV=function(e,t,n){return e=o.parseNumber(e),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n)?l.value:a.normal.inv(e,t,n)},t.NORM.S={},t.NORM.S.DIST=function(e,t){return(e=o.parseNumber(e))instanceof Error?l.value:t?a.normal.cdf(e,0,1):a.normal.pdf(e,0,1)},t.NORM.S.INV=function(e){return(e=o.parseNumber(e))instanceof Error?l.value:a.normal.inv(e,0,1)},t.PEARSON=function(e,t){if(t=o.parseNumberArray(o.flatten(t)),e=o.parseNumberArray(o.flatten(e)),o.anyIsError(t,e))return l.value;for(var n=a.mean(e),r=a.mean(t),i=e.length,s=0,u=0,c=0,d=0;d1-1/(n+1))return l.num;var r=t*(n+1)-1,i=Math.floor(r);return o.cleanFloat(r===i?e[r]:e[i]+(r-i)*(e[i+1]-e[i]))},t.PERCENTILE.INC=function(e,t){if(e=o.parseNumberArray(o.flatten(e)),t=o.parseNumber(t),o.anyIsError(e,t))return l.value;var n=t*((e=e.sort((function(e,t){return e-t}))).length-1),r=Math.floor(n);return o.cleanFloat(n===r?e[n]:e[r]+(n-r)*(e[r+1]-e[r]))},t.PERCENTRANK={},t.PERCENTRANK.EXC=function(e,t,n){if(n=void 0===n?3:n,e=o.parseNumberArray(o.flatten(e)),t=o.parseNumber(t),n=o.parseNumber(n),o.anyIsError(e,t,n))return l.value;e=e.sort((function(e,t){return e-t}));for(var r=u.UNIQUE.apply(null,e),i=e.length,a=r.length,s=Math.pow(10,n),c=0,d=!1,f=0;!d&&f=r[f]&&(t=r[f]&&(t=0?t[e.indexOf(n)]:0;for(var i=e.sort((function(e,t){return e-t})),a=i.length,s=0,u=0;u=n&&i[u]<=r&&(s+=t[e.indexOf(i[u])]);return s},t.QUARTILE={},t.QUARTILE.EXC=function(e,n){if(e=o.parseNumberArray(o.flatten(e)),n=o.parseNumber(n),o.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.EXC(e,.25);case 2:return t.PERCENTILE.EXC(e,.5);case 3:return t.PERCENTILE.EXC(e,.75);default:return l.num}},t.QUARTILE.INC=function(e,n){if(e=o.parseNumberArray(o.flatten(e)),n=o.parseNumber(n),o.anyIsError(e,n))return l.value;switch(n){case 1:return t.PERCENTILE.INC(e,.25);case 2:return t.PERCENTILE.INC(e,.5);case 3:return t.PERCENTILE.INC(e,.75);default:return l.num}},t.RANK={},t.RANK.AVG=function(e,t,n){if(e=o.parseNumber(e),t=o.parseNumberArray(o.flatten(t)),o.anyIsError(e,t))return l.value;for(var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e},i=(t=(t=o.flatten(t)).sort(r)).length,a=0,s=0;s1?(2*t.indexOf(e)+a+1)/2:t.indexOf(e)+1},t.RANK.EQ=function(e,t,n){if(e=o.parseNumber(e),t=o.parseNumberArray(o.flatten(t)),o.anyIsError(e,t))return l.value;var r=(n=n||!1)?function(e,t){return e-t}:function(e,t){return t-e};return(t=t.sort(r)).indexOf(e)+1},t.ROW=function(e,t){return 2!==arguments.length?l.na:t<0?l.num:e instanceof Array&&"number"==typeof t?0!==e.length?a.row(e,t):void 0:l.value},t.ROWS=function(e){return 1!==arguments.length?l.na:e instanceof Array?0===e.length?0:a.rows(e):l.value},t.RSQ=function(e,n){return e=o.parseNumberArray(o.flatten(e)),n=o.parseNumberArray(o.flatten(n)),o.anyIsError(e,n)?l.value:Math.pow(t.PEARSON(e,n),2)},t.SKEW=function(){var e=o.parseNumberArray(o.flatten(arguments));if(e instanceof Error)return e;for(var t=a.mean(e),n=e.length,r=0,i=0;i1||t<1?l.num:o.anyIsError(e,t)?l.value:Math.abs(a.studentt.inv(e/2,t))},t.T.TEST=function(e,n){if(e=o.parseNumberArray(o.flatten(e)),n=o.parseNumberArray(o.flatten(n)),o.anyIsError(e,n))return l.value;var r,i=a.mean(e),s=a.mean(n),u=0,c=0;for(r=0;r-1;)e[t]="TRUE";for(var n=0;(n=e.indexOf(!1))>-1;)e[n]="FALSE";return e.join("")},t.DBCS=function(){throw new Error("DBCS is not implemented")},t.DOLLAR=function(){throw new Error("DOLLAR is not implemented")},t.EXACT=function(e,t){return 2!==arguments.length?i.na:e===t},t.FIND=function(e,t,n){return arguments.length<2?i.na:(n=void 0===n?0:n,t?t.indexOf(e,n-1)+1:null)},t.FIXED=function(){throw new Error("FIXED is not implemented")},t.HTML2TEXT=function(e){var t="";return e&&(e instanceof Array?e.forEach((function(e){""!==t&&(t+="\n"),t+=e.replace(/<(?:.|\n)*?>/gm,"")})):t=e.replace(/<(?:.|\n)*?>/gm,"")),t},t.LEFT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error||"string"!=typeof e?i.value:e?e.substring(0,t):null},t.LEN=function(e){return 0===arguments.length?i.error:"string"==typeof e?e?e.length:0:e.length?e.length:i.value},t.LOWER=function(e){return"string"!=typeof e?i.value:e?e.toLowerCase():e},t.MID=function(e,t,n){if(t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e)return n;var i=t-1,a=i+n;return e.substring(i,a)},t.NUMBERVALUE=function(e,t,n){return t=void 0===t?".":t,n=void 0===n?",":n,Number(e.replace(t,".").replace(n,""))},t.PRONETIC=function(){throw new Error("PRONETIC is not implemented")},t.PROPER=function(e){return void 0===e||0===e.length?i.value:(!0===e&&(e="TRUE"),!1===e&&(e="FALSE"),isNaN(e)&&"number"==typeof e?i.value:("number"==typeof e&&(e=""+e),e.replace(/\w\S*/g,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))))},t.REGEXEXTRACT=function(e,t){if(arguments.length<2)return i.na;var n=e.match(new RegExp(t));return n?n[n.length>1?n.length-1:0]:null},t.REGEXMATCH=function(e,t,n){if(arguments.length<2)return i.na;var r=e.match(new RegExp(t));return n?r:!!r},t.REGEXREPLACE=function(e,t,n){return arguments.length<3?i.na:e.replace(new RegExp(t),n)},t.REPLACE=function(e,t,n,a){return t=r.parseNumber(t),n=r.parseNumber(n),r.anyIsError(t,n)||"string"!=typeof e||"string"!=typeof a?i.value:e.substr(0,t-1)+a+e.substr(t-1+n)},t.REPT=function(e,t){return(t=r.parseNumber(t))instanceof Error?t:new Array(t+1).join(e)},t.RIGHT=function(e,t){return t=void 0===t?1:t,(t=r.parseNumber(t))instanceof Error?t:e?e.substring(e.length-t):i.na},t.SEARCH=function(e,t,n){var r;return"string"!=typeof e||"string"!=typeof t?i.value:(n=void 0===n?0:n,0===(r=t.toLowerCase().indexOf(e.toLowerCase(),n-1)+1)?i.value:r)},t.SPLIT=function(e,t){return e.split(t)},t.SUBSTITUTE=function(e,t,n,r){if(arguments.length<2)return i.na;if(!(e&&t&&n))return e;if(void 0===r)return e.replace(new RegExp(t,"g"),n);for(var a=0,o=0;e.indexOf(t,a)>0;)if(a=e.indexOf(t,a+1),++o===r)return e.substring(0,a)+n+e.substring(a+t.length)},t.T=function(e){return"string"==typeof e?e:""},t.TEXT=function(){throw new Error("TEXT is not implemented")},t.TRIM=function(e){return"string"!=typeof e?i.value:e.replace(/ +/g," ").trim()},t.UNICHAR=t.CHAR,t.UNICODE=t.CODE,t.UPPER=function(e){return"string"!=typeof e?i.value:e.toUpperCase()},t.VALUE=function(){throw new Error("VALUE is not implemented")}},function(e,t){var n=[">",">=","<","<=","=","<>"],r=["operator","literal"];function i(e,t){if(-1===r.indexOf(t))throw new Error("Unsupported token type: "+t);return{value:e,type:t}}function a(e){for(var t,r="",a=[],o=0;o=0?a.push(i(s,"operator")):r+=s}return r.length>0&&a.push(i(("string"!=typeof(t=r)||/^\d+(\.\d+)?$/.test(t)&&(t=-1===t.indexOf(".")?parseInt(t,10):parseFloat(t)),t),"literal")),a.length>0&&"operator"!==a[0].type&&a.unshift(i("=","operator")),a}t.TOKEN_TYPE_OPERATOR="operator",t.TOKEN_TYPE_LITERAL="literal",t.parse=function(e){return a(function(e){for(var t=e.length,n=[],r=0,i="",a="";r":case"<":case"=":a+=o,i.length>0&&(n.push(i),i="");break;default:a.length>0&&(n.push(a),a=""),i+=o}r++}return i.length>0&&n.push(i),a.length>0&&n.push(a),n}(e))},t.createToken=i,t.compute=function(e){for(var t,n=[],r=0;r":n=e[0]>e[1];break;case">=":n=e[0]>=e[1];break;case"<":n=e[0]":n=e[0]!=e[1]}return n}(n,t)}},function(e,t,n){var r=n(0);t.CELL=function(){throw new Error("CELL is not implemented")},t.ERROR={},t.ERROR.TYPE=function(e){switch(e){case r.nil:return 1;case r.div0:return 2;case r.value:return 3;case r.ref:return 4;case r.name:return 5;case r.num:return 6;case r.na:return 7;case r.data:return 8}return r.na},t.INFO=function(){throw new Error("INFO is not implemented")},t.ISBLANK=function(e){return null===e},t.ISBINARY=function(e){return/^[01]{1,10}$/.test(e)},t.ISERR=function(e){return[r.value,r.ref,r.div0,r.num,r.name,r.nil].indexOf(e)>=0||"number"==typeof e&&(isNaN(e)||!isFinite(e))},t.ISERROR=function(e){return t.ISERR(e)||e===r.na},t.ISEVEN=function(e){return!(1&Math.floor(Math.abs(e)))},t.ISFORMULA=function(){throw new Error("ISFORMULA is not implemented")},t.ISLOGICAL=function(e){return!0===e||!1===e},t.ISNA=function(e){return e===r.na},t.ISNONTEXT=function(e){return"string"!=typeof e},t.ISNUMBER=function(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)},t.ISODD=function(e){return!!(1&Math.floor(Math.abs(e)))},t.ISREF=function(){throw new Error("ISREF is not implemented")},t.ISTEXT=function(e){return"string"==typeof e},t.N=function(e){return this.ISNUMBER(e)?e:e instanceof Date?e.getTime():!0===e?1:!1===e?0:this.ISERROR(e)?e:0},t.NA=function(){return r.na},t.SHEET=function(){throw new Error("SHEET is not implemented")},t.SHEETS=function(){throw new Error("SHEETS is not implemented")},t.TYPE=function(e){return this.ISNUMBER(e)?1:this.ISTEXT(e)?2:this.ISLOGICAL(e)?4:this.ISERROR(e)?16:Array.isArray(e)?64:void 0}},function(e,t,n){var r=n(0),i=n(1),a=new Date(Date.UTC(1900,0,1)),o=[void 0,0,1,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,1,2,3,4,5,6,0],s=[[],[1,2,3,4,5,6,7],[7,1,2,3,4,5,6],[6,0,1,2,3,4,5],[],[],[],[],[],[],[],[7,1,2,3,4,5,6],[6,7,1,2,3,4,5],[5,6,7,1,2,3,4],[4,5,6,7,1,2,3],[3,4,5,6,7,1,2],[2,3,4,5,6,7,1],[1,2,3,4,5,6,7]],l=[[],[6,0],[0,1],[1,2],[2,3],[3,4],[4,5],[5,6],void 0,void 0,void 0,[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6]];function u(e){return 1===new Date(e,1,29).getMonth()}function c(e,t){return Math.ceil((t-e)/1e3/60/60/24)}function d(e){var t=e>-22038912e5?2:1;return Math.ceil((e-a)/864e5)+t}t.DATE=function(e,t,n){return e=i.parseNumber(e),t=i.parseNumber(t),n=i.parseNumber(n),i.anyIsError(e,t,n)?r.value:e<0||t<0||n<0?r.num:new Date(e,t-1,n)},t.DATEVALUE=function(e){var t,n=2;return"string"!=typeof e?r.value:(t=Date.parse(e),isNaN(t)?r.value:(t<=-22038912e5&&(n=1),Math.ceil((t-a)/864e5)+n))},t.DAY=function(e){var t=i.parseDate(e);return t instanceof Error?t:t.getDate()},t.DAYS=function(e,t){return e=i.parseDate(e),t=i.parseDate(t),e instanceof Error?e:t instanceof Error?t:d(e)-d(t)},t.DAYS360=function(e,t,n){if(n=i.parseBool(n),e=i.parseDate(e),t=i.parseDate(t),e instanceof Error)return e;if(t instanceof Error)return t;if(n instanceof Error)return n;var r,a,o=e.getMonth(),s=t.getMonth();if(n)r=31===e.getDate()?30:e.getDate(),a=31===t.getDate()?30:t.getDate();else{var l=new Date(e.getFullYear(),o+1,0).getDate(),u=new Date(t.getFullYear(),s+1,0).getDate();r=e.getDate()===l?30:e.getDate(),t.getDate()===u?r<30?(s++,a=1):a=30:a=t.getDate()}return 360*(t.getFullYear()-e.getFullYear())+30*(s-o)+(a-r)},t.EDATE=function(e,t){return(e=i.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),e.setMonth(e.getMonth()+t),d(e))},t.EOMONTH=function(e,t){return(e=i.parseDate(e))instanceof Error?e:isNaN(t)?r.value:(t=parseInt(t,10),d(new Date(e.getFullYear(),e.getMonth()+t+1,0)))},t.HOUR=function(e){return(e=i.parseDate(e))instanceof Error?e:e.getHours()},t.INTERVAL=function(e){if("number"!=typeof e&&"string"!=typeof e)return r.value;e=parseInt(e,10);var t=Math.floor(e/94608e4);e%=94608e4;var n=Math.floor(e/2592e3);e%=2592e3;var i=Math.floor(e/86400);e%=86400;var a=Math.floor(e/3600);e%=3600;var o=Math.floor(e/60),s=e%=60;return"P"+(t=t>0?t+"Y":"")+(n=n>0?n+"M":"")+(i=i>0?i+"D":"")+"T"+(a=a>0?a+"H":"")+(o=o>0?o+"M":"")+(s=s>0?s+"S":"")},t.ISOWEEKNUM=function(e){if((e=i.parseDate(e))instanceof Error)return e;e.setHours(0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7));var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+1)/7)},t.MINUTE=function(e){return(e=i.parseDate(e))instanceof Error?e:e.getMinutes()},t.MONTH=function(e){return(e=i.parseDate(e))instanceof Error?e:e.getMonth()+1},t.NETWORKDAYS=function(e,t,n){return this.NETWORKDAYS.INTL(e,t,1,n)},t.NETWORKDAYS.INTL=function(e,t,n,a){if((e=i.parseDate(e))instanceof Error)return e;if((t=i.parseDate(t))instanceof Error)return t;if(!((n=void 0===n?l[1]:l[n])instanceof Array))return r.value;void 0===a?a=[]:a instanceof Array||(a=[a]);for(var o=0;o0?d.getUTCDay():d.getDay(),h=!1;f!==n[0]&&f!==n[1]||(h=!0);for(var p=0;pl||a===l&&r>=s))return(o===d&&u(o)||function(e,t){var n=e.getFullYear(),r=new Date(n,2,1);if(u(n)&&e=r)return!0;var i=t.getFullYear(),a=new Date(i,2,1);return u(i)&&t>=a&&e=0;)t+=e[n];return t},e.sumsqrd=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n]*e[n];return t},e.sumsqerr=function(t){for(var n,r=e.mean(t),i=0,a=t.length;--a>=0;)i+=(n=t[a]-r)*n;return i},e.sumrow=function(e){for(var t=0,n=e.length;--n>=0;)t+=e[n];return t},e.product=function(e){for(var t=1,n=e.length;--n>=0;)t*=e[n];return t},e.min=function(e){for(var t=e[0],n=0;++nt&&(t=e[n]);return t},e.unique=function(e){for(var t={},n=[],r=0;ro?(l=[i[t]],o=a,s=0):a===o&&(l.push(i[t]),s++),a=1);return 0===s?l[0]:l},e.range=function(t){return e.max(t)-e.min(t)},e.variance=function(t,n){return e.sumsqerr(t)/(t.length-(n?1:0))},e.pooledvariance=function(t){return t.reduce((function(t,n){return t+e.sumsqerr(n)}),0)/(t.reduce((function(e,t){return e+t.length}),0)-t.length)},e.deviation=function(t){for(var n=e.mean(t),r=t.length,i=new Array(r),a=0;a=0;a--)i.push(t.abs(n[a]-r));return e.mean(i)},e.meddev=function(n){for(var r=e.median(n),i=[],a=n.length-1;a>=0;a--)i.push(t.abs(n[a]-r));return e.median(i)},e.coeffvar=function(t){return e.stdev(t)/e.mean(t)},e.quartiles=function(e){var n=e.length,i=e.slice().sort(r);return[i[t.round(n/4)-1],i[t.round(n/2)-1],i[t.round(3*n/4)-1]]},e.quantiles=function(e,n,a,o){var s,l,u,c,d,f=e.slice().sort(r),h=[n.length],p=e.length;for(void 0===a&&(a=3/8),void 0===o&&(o=3/8),s=0;s1){for(l=!0===r?this:this.transpose();s1){for("sumrow"!==t&&(l=!0===r?this:this.transpose());s1){for(s=s.transpose();on?t:n;return e.pow(10,17-~~(e.log(r>0?r:-r)*e.LOG10E))}var o=Array.isArray||function(e){return"[object Array]"===i.call(e)};function s(e){return"[object Function]"===i.call(e)}function l(e){return"number"==typeof e&&e-e==0}function u(){return new u._init(arguments)}function c(){return 0}function d(){return 1}function f(e,t){return e===t?1:0}u.fn=u.prototype,u._init=function(e){if(o(e[0]))if(o(e[0][0])){s(e[1])&&(e[0]=u.map(e[0],e[1]));for(var t=0;t=0;t--,r++)n[r]=[e[r][t]];return n},u.transpose=function(e){var t,n,r,i,a,s=[];for(o(e[0])||(e=[e]),n=e.length,r=e[0].length,a=0;a0&&(s[r][0]=e[r][0]),l=1;lt&&n>0)return[];if(n>0)for(r=e;rt;r+=n)i.push(r);return i},u.slice=function(){function e(e,t,n,r){var i,a=[],o=e.length;if(void 0===t&&void 0===n&&void 0===r)return u.copy(e);if(r=r||1,(t=(t=t||0)>=0?t:o+t)===(n=(n=n||e.length)>=0?n:o+n)||0===r)return[];if(tn&&r>0)return[];if(r>0)for(i=t;in;i+=r)a.push(e[i]);return a}return function(t,n){var r,i;return l((n=n||{}).row)?l(n.col)?t[n.row][n.col]:e(u.rowa(t,n.row),(r=n.col||{}).start,r.end,r.step):l(n.col)?e(u.cola(t,n.col),(i=n.row||{}).start,i.end,i.step):(i=n.row||{},r=n.col||{},e(t,i.start,i.end,i.step).map((function(t){return e(t,r.start,r.end,r.step)})))}}(),u.sliceAssign=function(t,n,r){var i,a;if(l(n.row)){if(l(n.col))return t[n.row][n.col]=r;n.col=n.col||{},n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,i=u.arange(n.col.start,e.min(t.length,n.col.end),n.col.step);var o=n.row;return i.forEach((function(e,n){t[o][e]=r[n]})),t}if(l(n.col)){n.row=n.row||{},n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,a=u.arange(n.row.start,e.min(t[0].length,n.row.end),n.row.step);var s=n.col;return a.forEach((function(e,n){t[e][s]=r[n]})),t}return void 0===r[0].length&&(r=[r]),n.row.start=n.row.start||0,n.row.end=n.row.end||t.length,n.row.step=n.row.step||1,n.col.start=n.col.start||0,n.col.end=n.col.end||t[0].length,n.col.step=n.col.step||1,a=u.arange(n.row.start,e.min(t.length,n.row.end),n.row.step),i=u.arange(n.col.start,e.min(t[0].length,n.col.end),n.col.step),a.forEach((function(e,n){i.forEach((function(i,a){t[e][i]=r[n][a]}))})),t},u.diagonal=function(e){var t=u.zeros(e.length,e.length);return e.forEach((function(e,n){t[n][n]=e})),t},u.copy=function(e){return e.map((function(e){return l(e)?e:e.map((function(e){return e}))}))};var h=u.prototype;return h.length=0,h.push=Array.prototype.push,h.sort=Array.prototype.sort,h.splice=Array.prototype.splice,h.slice=Array.prototype.slice,h.toArray=function(){return this.length>1?r.call(this):r.call(this)[0]},h.map=function(e,t){return u(u.map(this,e,t))},h.cumreduce=function(e,t){return u(u.cumreduce(this,e,t))},h.alter=function(e){return u.alter(this,e),this},function(e){for(var t=0;t=0;s--)o*=r,o+=u[s];if(a=o/n+.5*t.log(i)+(n-.5)*t.log(n)-n,e<=7)for(s=1;s<=l;s++)a-=t.log(n-1),n-=1;return a},e.gammafn=function(e){var n,r,i,a,o=[-1.716185138865495,24.76565080557592,-379.80425647094563,629.3311553128184,866.9662027904133,-31451.272968848367,-36144.413418691176,66456.14382024054],s=[-30.8402300119739,315.35062697960416,-1015.1563674902192,-3107.771671572311,22538.11842098015,4755.846277527881,-134659.9598649693,-115132.2596755535],l=!1,u=0,c=0,d=0,f=e;if(f<=0){if(!(a=f%1+36e-17))return 1/0;l=(1&f?-1:1)*t.PI/t.sin(t.PI*a),f=1-f}for(i=f,r=f<1?f++:(f-=u=(0|f)-1)-1,n=0;n<8;++n)d=(d+o[n])*r,c=c*r+s[n];if(a=d/c+1,if)for(n=0;n=1?n:1/n)+.4*n+17);if(r<0||n<=0)return NaN;if(r170||r>170?t.exp(e.combinationln(n,r)):e.factorial(n)/e.factorial(r)/e.factorial(n-r)},e.combinationln=function(t,n){return e.factorialln(t)-e.factorialln(n)-e.factorialln(t-n)},e.permutation=function(t,n){return e.factorial(t)/e.factorial(t-n)},e.betafn=function(n,r){if(!(n<=0||r<=0))return n+r>170?t.exp(e.betaln(n,r)):e.gammafn(n)*e.gammafn(r)/e.gammafn(n+r)},e.betaln=function(t,n){return e.gammaln(t)+e.gammaln(n)-e.gammaln(t+n)},e.betacf=function(e,n,r){var i,a,o,s,l=1,u=n+r,c=n+1,d=n-1,f=1,h=1-u*e/c;for(t.abs(h)<1e-30&&(h=1e-30),s=h=1/h;l<=100&&(h=1+(a=l*(r-l)*e/((d+(i=2*l))*(n+i)))*h,t.abs(h)<1e-30&&(h=1e-30),f=1+a/f,t.abs(f)<1e-30&&(f=1e-30),s*=(h=1/h)*f,h=1+(a=-(n+l)*(u+l)*e/((n+i)*(c+i)))*h,t.abs(h)<1e-30&&(h=1e-30),f=1+a/f,t.abs(f)<1e-30&&(f=1e-30),s*=o=(h=1/h)*f,!(t.abs(o-1)<3e-7));l++);return s},e.gammapinv=function(n,r){var i,a,o,s,l,u,c=0,d=r-1,f=e.gammaln(r);if(n>=1)return t.max(100,r+100*t.sqrt(r));if(n<=0)return 0;for(r>1?(l=t.log(d),u=t.exp(d*(l-1)-f),s=n<.5?n:1-n,i=(2.30753+.27061*(a=t.sqrt(-2*t.log(s))))/(1+a*(.99229+.04481*a))-a,n<.5&&(i=-i),i=t.max(.001,r*t.pow(1-1/(9*r)-i/(3*t.sqrt(r)),3))):i=n<(a=1-r*(.253+.12*r))?t.pow(n/a,1/r):1-t.log(1-(n-a)/(1-a));c<12;c++){if(i<=0)return 0;if((i-=a=(o=(e.lowRegGamma(r,i)-n)/(a=r>1?u*t.exp(-(i-d)+d*(t.log(i)-l)):t.exp(-i+d*t.log(i)-f)))/(1-.5*t.min(1,o*((r-1)/i-1))))<=0&&(i=.5*(i+a)),t.abs(a)<1e-8*i)break}return i},e.erf=function(e){var n,r,i,a,o=[-1.3026537197817094,.6419697923564902,.019476473204185836,-.00956151478680863,-.000946595344482036,.000366839497852761,42523324806907e-18,-20278578112534e-18,-1624290004647e-18,130365583558e-17,1.5626441722e-8,-8.5238095915e-8,6.529054439e-9,5.059343495e-9,-9.91364156e-10,-2.27365122e-10,96467911e-18,2394038e-18,-6886027e-18,894487e-18,313092e-18,-112708e-18,381e-18,7106e-18,-1523e-18,-94e-18,121e-18,-28e-18],s=o.length-1,l=!1,u=0,c=0;for(e<0&&(e=-e,l=!0),r=4*(n=2/(2+e))-2;s>0;s--)i=u,u=r*u-c+o[s],c=i;return a=n*t.exp(-e*e+.5*(o[0]+r*u)-c),l?a-1:1-a},e.erfc=function(t){return 1-e.erf(t)},e.erfcinv=function(n){var r,i,a,o,s=0;if(n>=2)return-100;if(n<=0)return 100;for(o=n<1?n:2-n,r=-.70711*((2.30753+.27061*(a=t.sqrt(-2*t.log(o/2))))/(1+a*(.99229+.04481*a))-a);s<2;s++)r+=(i=e.erfc(r)-o)/(1.1283791670955126*t.exp(-r*r)-r*i);return n<1?r:-r},e.ibetainv=function(n,r,i){var a,o,s,l,u,c,d,f,h,p,m=r-1,g=i-1,v=0;if(n<=0)return 0;if(n>=1)return 1;for(r>=1&&i>=1?(s=n<.5?n:1-n,c=(2.30753+.27061*(l=t.sqrt(-2*t.log(s))))/(1+l*(.99229+.04481*l))-l,n<.5&&(c=-c),d=(c*c-3)/6,f=2/(1/(2*r-1)+1/(2*i-1)),h=c*t.sqrt(d+f)/f-(1/(2*i-1)-1/(2*r-1))*(d+5/6-2/(3*f)),c=r/(r+i*t.exp(2*h))):(a=t.log(r/(r+i)),o=t.log(i/(r+i)),c=n<(l=t.exp(r*a)/r)/(h=l+(u=t.exp(i*o)/i))?t.pow(r*h*n,1/r):1-t.pow(i*h*(1-n),1/i)),p=-e.gammaln(r)-e.gammaln(i)+e.gammaln(r+i);v<10;v++){if(0===c||1===c)return c;if((c-=l=(u=(e.ibeta(c,r,i)-n)/(l=t.exp(m*t.log(c)+g*t.log(1-c)+p)))/(1-.5*t.min(1,u*(m/c-g/(1-c)))))<=0&&(c=.5*(c+l)),c>=1&&(c=.5*(c+l+1)),t.abs(l)<1e-8*c&&v>0)break}return c},e.ibeta=function(n,r,i){var a=0===n||1===n?0:t.exp(e.gammaln(r+i)-e.gammaln(r)-e.gammaln(i)+r*t.log(n)+i*t.log(1-n));return!(n<0||n>1)&&(n<(r+1)/(r+i+2)?a*e.betacf(n,r,i)/r:1-a*e.betacf(1-n,i,r)/i)},e.randn=function(n,r){var i,a,o,s,l;if(r||(r=n),n)return e.create(n,r,(function(){return e.randn()}));do{i=e._random_fn(),a=1.7156*(e._random_fn()-.5),l=(o=i-.449871)*o+(s=t.abs(a)+.386595)*(.196*s-.25472*o)}while(l>.27597&&(l>.27846||a*a>-4*t.log(i)*i*i));return a/i},e.randg=function(n,r,i){var a,o,s,l,u,c,d=n;if(i||(i=r),n||(n=1),r)return(c=e.zeros(r,i)).alter((function(){return e.randg(n)})),c;n<1&&(n+=1),a=n-1/3,o=1/t.sqrt(9*a);do{do{l=1+o*(u=e.randn())}while(l<=0);l*=l*l,s=e._random_fn()}while(s>1-.331*t.pow(u,4)&&t.log(s)>.5*u*u+a*(1-l+t.log(l)));if(n==d)return a*l;do{s=e._random_fn()}while(0===s);return t.pow(s,1/d)*a*l},function(t){for(var n=0;ni;)d=l,s=u+(a=-(n+c)*(n+r+c)*e/(n+2*c)/(n+2*c+1))*s,l=(o=l+a*o)+(a=(c+=1)*(r-c)*e/(n+2*c-1)/(n+2*c))*l,o/=u=s+a*u,s/=u,l/=u,u=1;return l/n}function r(n,r,i){var a=[.9815606342467192,.9041172563704749,.7699026741943047,.5873179542866175,.3678314989981802,.1252334085114689],o=[.04717533638651183,.10693932599531843,.16007832854334622,.20316742672306592,.2334925365383548,.24914704581340277],s=.5*n;if(s>=8)return 1;var l,u=2*e.normal.cdf(s,0,1,1,0)-1;u=u>=t.exp(-50/i)?t.pow(u,i):0;for(var c=s,d=(8-s)/(l=n>3?2:3),f=c+d,h=0,p=i-1,m=1;m<=l;m++){for(var g=0,v=.5*(f+c),_=.5*(f-c),y=1;y<=12;y++){var b,S=v+_*(660)break;var w=2*e.normal.cdf(S,0,1,1,0)*.5-2*e.normal.cdf(S,n,1,1,0)*.5;w>=t.exp(-30/p)&&(g+=w=o[b-1]*t.exp(-.5*E)*t.pow(w,p))}h+=g*=2*_*i/t.sqrt(2*t.PI),c=f,f+=d}return(u+=h)<=t.exp(-30/r)?0:(u=t.pow(u,r))>=1?1:u}!function(t){for(var n=0;n1||n<0?0:1==r&&1==i?1:r<512&&i<512?t.pow(n,r-1)*t.pow(1-n,i-1)/e.betafn(r,i):t.exp((r-1)*t.log(n)+(i-1)*t.log(1-n)-e.betaln(r,i))},cdf:function(t,n,r){return t>1||t<0?1*(t>1):e.ibeta(t,n,r)},inv:function(t,n,r){return e.ibetainv(t,n,r)},mean:function(e,t){return e/(e+t)},median:function(t,n){return e.ibetainv(.5,t,n)},mode:function(e,t){return(e-1)/(e+t-2)},sample:function(t,n){var r=e.randg(t);return r/(r+e.randg(n))},variance:function(e,n){return e*n/(t.pow(e+n,2)*(e+n+1))}}),e.extend(e.centralF,{pdf:function(n,r,i){var a;return n<0?0:r<=2?0===n&&r<2?1/0:0===n&&2===r?1:1/e.betafn(r/2,i/2)*t.pow(r/i,r/2)*t.pow(n,r/2-1)*t.pow(1+r/i*n,-(r+i)/2):(a=r*n/(i+n*r),r*(i/(i+n*r))/2*e.binomial.pdf((r-2)/2,(r+i-2)/2,a))},cdf:function(t,n,r){return t<0?0:e.ibeta(n*t/(n*t+r),n/2,r/2)},inv:function(t,n,r){return r/(n*(1/e.ibetainv(t,n/2,r/2)-1))},mean:function(e,t){return t>2?t/(t-2):void 0},mode:function(e,t){return e>2?t*(e-2)/(e*(t+2)):void 0},sample:function(t,n){return 2*e.randg(t/2)/t/(2*e.randg(n/2)/n)},variance:function(e,t){if(!(t<=4))return 2*t*t*(e+t-2)/(e*(t-2)*(t-2)*(t-4))}}),e.extend(e.cauchy,{pdf:function(e,n,r){return r<0?0:r/(t.pow(e-n,2)+t.pow(r,2))/t.PI},cdf:function(e,n,r){return t.atan((e-n)/r)/t.PI+.5},inv:function(e,n,r){return n+r*t.tan(t.PI*(e-.5))},median:function(e){return e},mode:function(e){return e},sample:function(n,r){return e.randn()*t.sqrt(1/(2*e.randg(.5)))*r+n}}),e.extend(e.chisquare,{pdf:function(n,r){return n<0?0:0===n&&2===r?.5:t.exp((r/2-1)*t.log(n)-n/2-r/2*t.log(2)-e.gammaln(r/2))},cdf:function(t,n){return t<0?0:e.lowRegGamma(n/2,t/2)},inv:function(t,n){return 2*e.gammapinv(t,.5*n)},mean:function(e){return e},median:function(e){return e*t.pow(1-2/(9*e),3)},mode:function(e){return e-2>0?e-2:0},sample:function(t){return 2*e.randg(t/2)},variance:function(e){return 2*e}}),e.extend(e.exponential,{pdf:function(e,n){return e<0?0:n*t.exp(-n*e)},cdf:function(e,n){return e<0?0:1-t.exp(-n*e)},inv:function(e,n){return-t.log(1-e)/n},mean:function(e){return 1/e},median:function(e){return 1/e*t.log(2)},mode:function(){return 0},sample:function(n){return-1/n*t.log(e._random_fn())},variance:function(e){return t.pow(e,-2)}}),e.extend(e.gamma,{pdf:function(n,r,i){return n<0?0:0===n&&1===r?1/i:t.exp((r-1)*t.log(n)-n/i-e.gammaln(r)-r*t.log(i))},cdf:function(t,n,r){return t<0?0:e.lowRegGamma(n,t/r)},inv:function(t,n,r){return e.gammapinv(t,n)*r},mean:function(e,t){return e*t},mode:function(e,t){if(e>1)return(e-1)*t},sample:function(t,n){return e.randg(t)*n},variance:function(e,t){return e*t*t}}),e.extend(e.invgamma,{pdf:function(n,r,i){return n<=0?0:t.exp(-(r+1)*t.log(n)-i/n-e.gammaln(r)+r*t.log(i))},cdf:function(t,n,r){return t<=0?0:1-e.lowRegGamma(n,r/t)},inv:function(t,n,r){return r/e.gammapinv(1-t,n)},mean:function(e,t){return e>1?t/(e-1):void 0},mode:function(e,t){return t/(e+1)},sample:function(t,n){return n/e.randg(t)},variance:function(e,t){if(!(e<=2))return t*t/((e-1)*(e-1)*(e-2))}}),e.extend(e.kumaraswamy,{pdf:function(e,n,r){return 0===e&&1===n?r:1===e&&1===r?n:t.exp(t.log(n)+t.log(r)+(n-1)*t.log(e)+(r-1)*t.log(1-t.pow(e,n)))},cdf:function(e,n,r){return e<0?0:e>1?1:1-t.pow(1-t.pow(e,n),r)},inv:function(e,n,r){return t.pow(1-t.pow(1-e,1/r),1/n)},mean:function(t,n){return n*e.gammafn(1+1/t)*e.gammafn(n)/e.gammafn(1+1/t+n)},median:function(e,n){return t.pow(1-t.pow(2,-1/n),1/e)},mode:function(e,n){if(e>=1&&n>=1&&1!==e&&1!==n)return t.pow((e-1)/(e*n-1),1/e)},variance:function(){throw new Error("variance not yet implemented")}}),e.extend(e.lognormal,{pdf:function(e,n,r){return e<=0?0:t.exp(-t.log(e)-.5*t.log(2*t.PI)-t.log(r)-t.pow(t.log(e)-n,2)/(2*r*r))},cdf:function(n,r,i){return n<0?0:.5+.5*e.erf((t.log(n)-r)/t.sqrt(2*i*i))},inv:function(n,r,i){return t.exp(-1.4142135623730951*i*e.erfcinv(2*n)+r)},mean:function(e,n){return t.exp(e+n*n/2)},median:function(e){return t.exp(e)},mode:function(e,n){return t.exp(e-n*n)},sample:function(n,r){return t.exp(e.randn()*r+n)},variance:function(e,n){return(t.exp(n*n)-1)*t.exp(2*e+n*n)}}),e.extend(e.noncentralt,{pdf:function(n,r,i){return t.abs(i)<1e-14?e.studentt.pdf(n,r):t.abs(n)<1e-14?t.exp(e.gammaln((r+1)/2)-i*i/2-.5*t.log(t.PI*r)-e.gammaln(r/2)):r/n*(e.noncentralt.cdf(n*t.sqrt(1+2/r),r+2,i)-e.noncentralt.cdf(n,r,i))},cdf:function(n,r,i){if(t.abs(i)<1e-14)return e.studentt.cdf(n,r);var a=!1;n<0&&(a=!0,i=-i);for(var o=e.normal.cdf(-i,0,1),s=1e-14+1,l=s,u=n*n/(n*n+r),c=0,d=t.exp(-i*i/2),f=t.exp(-i*i/2-.5*t.log(2)-e.gammaln(1.5))*i;c<200||l>1e-14||s>1e-14;)l=s,c>0&&(d*=i*i/(2*c),f*=i*i/(2*(c+.5))),o+=.5*(s=d*e.beta.cdf(u,c+.5,r/2)+f*e.beta.cdf(u,c+1,r/2)),c++;return a?1-o:o}}),e.extend(e.normal,{pdf:function(e,n,r){return t.exp(-.5*t.log(2*t.PI)-t.log(r)-t.pow(e-n,2)/(2*r*r))},cdf:function(n,r,i){return.5*(1+e.erf((n-r)/t.sqrt(2*i*i)))},inv:function(t,n,r){return-1.4142135623730951*r*e.erfcinv(2*t)+n},mean:function(e){return e},median:function(e){return e},mode:function(e){return e},sample:function(t,n){return e.randn()*n+t},variance:function(e,t){return t*t}}),e.extend(e.pareto,{pdf:function(e,n,r){return e1e100?1e100:r,1/(t.sqrt(r)*e.betafn(.5,r/2))*t.pow(1+n*n/r,-(r+1)/2)},cdf:function(n,r){var i=r/2;return e.ibeta((n+t.sqrt(n*n+r))/(2*t.sqrt(n*n+r)),i,i)},inv:function(n,r){var i=e.ibetainv(2*t.min(n,1-n),.5*r,.5);return i=t.sqrt(r*(1-i)/i),n>.5?i:-i},mean:function(e){return e>1?0:void 0},median:function(){return 0},mode:function(){return 0},sample:function(n){return e.randn()*t.sqrt(n/(2*e.randg(n/2)))},variance:function(e){return e>2?e/(e-2):e>1?1/0:void 0}}),e.extend(e.weibull,{pdf:function(e,n,r){return e<0||n<0||r<0?0:r/n*t.pow(e/n,r-1)*t.exp(-t.pow(e/n,r))},cdf:function(e,n,r){return e<0?0:1-t.exp(-t.pow(e/n,r))},inv:function(e,n,r){return n*t.pow(-t.log(1-e),1/r)},mean:function(t,n){return t*e.gammafn(1+1/n)},median:function(e,n){return e*t.pow(t.log(2),1/n)},mode:function(e,n){return n<=1?0:e*t.pow((n-1)/n,1/n)},sample:function(n,r){return n*t.pow(-t.log(e._random_fn()),1/r)},variance:function(n,r){return n*n*e.gammafn(1+2/r)-t.pow(e.weibull.mean(n,r),2)}}),e.extend(e.uniform,{pdf:function(e,t,n){return en?0:1/(n-t)},cdf:function(e,t,n){return e=i)return 1;if(a<0||a>1||i<=0)return NaN;var s=a,l=(r=t.floor(r))+1,u=i-r,c=l+u,d=t.exp(e.gammaln(c)-e.gammaln(u)-e.gammaln(l)+l*t.log(s)+u*t.log(1-s));return o=s<(l+1)/(c+2)?d*n(s,l,u,1e-10):1-d*n(1-s,u,l,1e-10),t.round(1/1e-10*(1-o))/(1/1e-10)}}),e.extend(e.negbin,{pdf:function(n,r,i){return n===n>>>0&&(n<0?0:e.combination(n+r-1,r-1)*t.pow(1-i,n)*t.pow(i,r))},cdf:function(t,n,r){var i=0,a=0;if(t<0)return 0;for(;a<=t;a++)i+=e.negbin.pdf(a,n,r);return i}}),e.extend(e.hypgeom,{pdf:function(n,r,i,a){if(n!=n|0)return!1;if(n<0||na||n>i)return 0;if(2*i>r)return 2*a>r?e.hypgeom.pdf(r-i-a+n,r,r-i,r-a):e.hypgeom.pdf(a-n,r,r-i,a);if(2*a>r)return e.hypgeom.pdf(i-n,r,i,r-a);if(i1&&s=a||n>=i)return 1;if(2*i>r)return 2*a>r?e.hypgeom.cdf(r-i-a+n,r,r-i,r-a):1-e.hypgeom.cdf(a-n-1,r,r-i,a);if(2*a>r)return 1-e.hypgeom.cdf(i-n-1,r,i,r-a);if(i1&&la);return i-1},sampleLarge:function(n){var r,i,a,o,s,l,u,c,d,f,h=n;for(o=t.sqrt(h),s=t.log(h),l=.02483*(u=.931+2.53*o)-.059,c=1.1239+1.1328/(u-3.4),d=.9277-3.6224/(u-2);;){if(i=t.random()-.5,a=t.random(),f=.5-t.abs(i),r=t.floor((2*l/f+u)*i+h+.43),f>=.07&&a<=d)return r;if(!(r<0||f<.013&&a>f)&&t.log(a)+t.log(c)-t.log(l/(f*f)+u)<=r*s-h-e.loggam(r+1))return r}},sample:function(e){return e<10?this.sampleSmall(e):this.sampleLarge(e)}}),e.extend(e.triangular,{pdf:function(e,t,n,r){return n<=t||rn?NaN:en?0:er?NaN:e<=n?0:e>=r?1:e<=i?t.pow(e-n,2)/((r-n)*(i-n)):1-t.pow(r-e,2)/((r-n)*(r-i))},inv:function(e,n,r,i){return r<=n||ir?NaN:e<=(i-n)/(r-n)?n+(r-n)*t.sqrt(e*((i-n)/(r-n))):n+(r-n)*(1-t.sqrt((1-e)*(1-(i-n)/(r-n))))},mean:function(e,t,n){return(e+t+n)/3},median:function(e,n,r){return r<=(e+n)/2?n-t.sqrt((n-e)*(n-r))/t.sqrt(2):r>(e+n)/2?e+t.sqrt((n-e)*(r-e))/t.sqrt(2):void 0},mode:function(e,t,n){return n},sample:function(n,r,i){var a=e._random_fn();return a<(i-n)/(r-n)?n+t.sqrt(a*(r-n)*(i-n)):r-t.sqrt((1-a)*(r-n)*(r-i))},variance:function(e,t,n){return(e*e+t*t+n*n-e*t-e*n-t*n)/18}}),e.extend(e.arcsine,{pdf:function(e,n,r){return r<=n?NaN:e<=n||e>=r?0:2/t.PI*t.pow(t.pow(r-n,2)-t.pow(2*e-n-r,2),-.5)},cdf:function(e,n,r){return e25e3)return r(n,1,o);var u,c=.5*a,d=c*t.log(a)-a*t.log(2)-e.gammaln(c),f=c-1,h=.25*a;u=a<=100?1:a<=800?.5:a<=5e3?.25:.125,d+=t.log(u);for(var p=0,m=1;m<=50;m++){for(var g=0,v=(2*m-1)*u,_=1;_<=16;_++){var y,b;8<_?(y=_-8-1,b=d+f*t.log(v+s[y]*u)-(s[y]*u+v)*h):(y=_-1,b=d+f*t.log(v-s[y]*u)+(s[y]*u-v)*h),b>=-30&&(g+=r(8<_?n*t.sqrt(.5*(s[y]*u+v)):n*t.sqrt(.5*(-s[y]*u+v)),1,o)*l[y]*t.exp(b))}if(m*u>=1&&g<=1e-14)break;p+=g}if(g>1e-14)throw new Error("tukey.cdf failed to converge");return p>1&&(p=1),p},inv:function(n,r,i){if(i<2||r<2)return NaN;if(n<0||n>1)return NaN;if(0===n)return 0;if(1===n)return 1/0;var a,o=function(e,n,r){var i=.5-.5*e,a=t.sqrt(t.log(1/(i*i))),o=a+((((-453642210148e-16*a-.204231210125)*a-.342242088547)*a-1)*a+.322232421088)/((((.0038560700634*a+.10353775285)*a+.531103462366)*a+.588581570495)*a+.099348462606);r<120&&(o+=(o*o*o+o)/r/4);var s=.8832-.2368*o;return r<120&&(s+=-1.214/r+1.208*o/r),o*(s*t.log(n-1)+1.4142)}(n,r,i),s=e.tukey.cdf(o,r,i)-n;a=s>0?t.max(0,o-1):o+1;for(var l,u=e.tukey.cdf(a,r,i)-n,c=1;c<50;c++)if(l=a-u*(a-o)/(u-s),s=u,o=a,l<0&&(l=0,u=-n),u=e.tukey.cdf(l,r,i)-n,a=l,t.abs(a-o)<1e-4)return l;throw new Error("tukey.inv failed to converge")}})}(r,Math),function(e,t){var n,r,i=Array.prototype.push,a=e.utils.isArray;function o(t){return a(t)||t instanceof e}e.extend({add:function(t,n){return o(n)?(o(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e+n[t][r]}))):e.map(t,(function(e){return e+n}))},subtract:function(t,n){return o(n)?(o(n[0])||(n=[n]),e.map(t,(function(e,t,r){return e-n[t][r]||0}))):e.map(t,(function(e){return e-n}))},divide:function(t,n){return o(n)?(o(n[0])||(n=[n]),e.multiply(t,e.inv(n))):e.map(t,(function(e){return e/n}))},multiply:function(t,n){var r,i,a,s,l,u,c,d;if(void 0===t.length&&void 0===n.length)return t*n;if(l=t.length,u=t[0].length,c=e.zeros(l,a=o(n)?n[0].length:u),d=0,o(n)){for(;d=0;l--){for(h=0,u=l+1;u<=c-1;u++)h+=p[u]*n[l][u];p[l]=(n[l][i-1]-h)/n[l][l]}return p},gauss_jordan:function(n,r){var i,a,o,s=e.aug(n,r),l=s.length,u=s[0].length,c=0;for(a=0;at.abs(s[d][a])&&(d=o);var f=s[a];for(s[a]=s[d],s[d]=f,o=a+1;o=0;a--){for(c=s[a][a],o=0;oa-1;i--)s[o][i]-=s[a][i]*s[o][a]/c;for(s[a][a]/=c,i=l;id?(h[c][d]=n[c][d],p[c][d]=m[c][d]=0):ca;)o=u,u=e.add(e.multiply(l,o),s),c++;return u},gauss_seidel:function(n,r,i,a){for(var o,s,l,u,c,d=0,f=n.length,h=[],p=[],m=[];do?(h[d][o]=n[d][o],p[d][o]=m[d][o]=0):da;)s=c,c=e.add(e.multiply(u,s),l),d+=1;return c},SOR:function(n,r,i,a,o){for(var s,l,u,c,d,f=0,h=n.length,p=[],m=[],g=[];fs?(p[f][s]=n[f][s],m[f][s]=g[f][s]=0):fa;)l=d,d=e.add(e.multiply(c,l),u),f++;return d},householder:function(n){for(var r,i,a,o,s=n.length,l=n[0].length,u=0,c=[],d=[];u0?-1:1)*t.sqrt(r),i=t.sqrt((r*r-n[u+1][u]*r)/2),(c=e.zeros(s,1))[u+1][0]=(n[u+1][u]-r)/(2*i),a=u+2;a0?t.PI/4:-t.PI/4:t.atan(2*n[a][o]/(n[a][a]-n[o][o]))/2,(u=e.identity(d,d))[a][a]=t.cos(l),u[a][o]=-t.sin(l),u[o][a]=t.sin(l),u[o][o]=t.cos(l),f=e.multiply(f,u),n=e.multiply(e.multiply(e.inv(u),n),u),c=0,r=1;r.001&&(c=1)}for(r=0;r=d;)o=a(e,r+i),s=a(e,r),h[f]=(n[o]-2*n[s]+n[2*s-o])/(i*i),i/=2,f++;for(u=h.length,l=1;1!=u;){for(c=0;cr);i++);return n[i-=1]+(r-t[i])*f[i]+e.sq(r-t[i])*a[i]+(r-t[i])*e.sq(r-t[i])*h[i]},gauss_quadrature:function(){throw new Error("gauss_quadrature not yet implemented")},PCA:function(t){var n,r,i,a,o,s=t.length,l=t[0].length,u=0,c=[],d=[],f=[],h=[],p=[],m=[],g=[];for(u=0;u1||r>1||e<=0||r<=0)throw new Error("Proportions should be greater than 0 and less than 1");var a=(e*n+r*i)/(n+i);return(e-r)/t.sqrt(a*(1-a)*(1/n+1/i))}e.extend({zscore:function(){var t=n.call(arguments);return r(t[1])?(t[0]-t[1])/t[2]:(t[0]-e.mean(t[1]))/e.stdev(t[1],t[2])},ztest:function(){var r,a=n.call(arguments);return i(a[1])?(r=e.zscore(a[0],a[1],a[3]),1===a[2]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):a.length>2?(r=e.zscore(a[0],a[1],a[2]),1===a[3]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1)):(r=a[0],1===a[1]?e.normal.cdf(-t.abs(r),0,1):2*e.normal.cdf(-t.abs(r),0,1))}}),e.extend(e.fn,{zscore:function(e,t){return(e-this.mean())/this.stdev(t)},ztest:function(n,r,i){var a=t.abs(this.zscore(n,i));return 1===r?e.normal.cdf(-a,0,1):2*e.normal.cdf(-a,0,1)}}),e.extend({tscore:function(){var r=n.call(arguments);return 4===r.length?(r[0]-r[1])/(r[2]/t.sqrt(r[3])):(r[0]-e.mean(r[1]))/(e.stdev(r[1],!0)/t.sqrt(r[1].length))},ttest:function(){var i,a=n.call(arguments);return 5===a.length?(i=t.abs(e.tscore(a[0],a[1],a[2],a[3])),1===a[4]?e.studentt.cdf(-i,a[3]-1):2*e.studentt.cdf(-i,a[3]-1)):r(a[1])?(i=t.abs(a[0]),1==a[2]?e.studentt.cdf(-i,a[1]-1):2*e.studentt.cdf(-i,a[1]-1)):(i=t.abs(e.tscore(a[0],a[1])),1==a[2]?e.studentt.cdf(-i,a[1].length-1):2*e.studentt.cdf(-i,a[1].length-1))}}),e.extend(e.fn,{tscore:function(e){return(e-this.mean())/(this.stdev(!0)/t.sqrt(this.cols()))},ttest:function(n,r){return 1===r?1-e.studentt.cdf(t.abs(this.tscore(n)),this.cols()-1):2*e.studentt.cdf(-t.abs(this.tscore(n)),this.cols()-1)}}),e.extend({anovafscore:function(){var r,i,a,o,s,l,u,c,d=n.call(arguments);if(1===d.length){for(s=new Array(d[0].length),u=0;u.5?1-n:n)})),c=r.studentt.inv(.975,t.df_resid),d=t.coef.map((function(e,t){var n=c*s[t];return[e-n,e+n]}));return{se:s,t:l,p:u,sigmaHat:o,interval95:d}}return{ols:function(n,i){var a=e(n,i),o=t(a),s=function(e){var t,n,i,a=e.R2/e.df_model/((1-e.R2)/e.df_resid);return{F_statistic:a,pvalue:1-(t=a,n=e.df_model,i=e.df_resid,r.beta.cdf(t/(i/n+t),n/2,i/2))}}(a),l=1-(1-a.R2)*((a.nobs-1)/a.df_resid);return a.t=o,a.f=s,a.adjust_R2=l,a}}}(),r.extend({buildxmatrix:function(){for(var e=new Array(arguments.length),t=0;t1){for(o=[],n=0;n=i.length?a.REPT("0",t-i.length)+i:r.num},t.BIN2OCT=function(e,t){if(!l(e))return r.num;var n=e.toString();if(10===n.length&&"1"===n.substring(0,1))return(1073741312+parseInt(n.substring(1),2)).toString(8);var i=parseInt(e,2).toString(8);return void 0===t?i:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=i.length?a.REPT("0",t-i.length)+i:r.num},t.BITAND=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e&t},t.BITLSHIFT=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e<>-t},t.BITOR=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e|t},t.BITRSHIFT=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||Math.floor(e)!==e||e>0xffffffffffff||Math.abs(t)>53?r.num:t>=0?e>>t:e<<-t},t.BITXOR=function(e,t){return e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e<0||t<0||Math.floor(e)!==e||Math.floor(t)!==t||e>0xffffffffffff||t>0xffffffffffff?r.num:e^t},t.COMPLEX=function(e,t,n){if(e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t))return e;if("i"!==(n=void 0===n?"i":n)&&"j"!==n)return r.value;if(0===e&&0===t)return 0;if(0===e)return 1===t?n:t.toString()+n;if(0===t)return e.toString();var i=t>0?"+":"";return e.toString()+i+(1===t?n:t.toString()+n)},t.CONVERT=function(e,t,n){if((e=o.parseNumber(e))instanceof Error)return e;for(var i,a=[["a.u. of action","?",null,"action",!1,!1,105457168181818e-48],["a.u. of charge","e",null,"electric_charge",!1,!1,160217653141414e-33],["a.u. of energy","Eh",null,"energy",!1,!1,435974417757576e-32],["a.u. of length","a?",null,"length",!1,!1,529177210818182e-25],["a.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["a.u. of time","?/Eh",null,"time",!1,!1,241888432650516e-31],["admiralty knot","admkn",null,"speed",!1,!0,.514773333],["ampere","A",null,"electric_current",!0,!1,1],["ampere per meter","A/m",null,"magnetic_field_intensity",!0,!1,1],["ångström","Å",["ang"],"length",!1,!0,1e-10],["are","ar",null,"area",!1,!0,100],["astronomical unit","ua",null,"length",!1,!1,149597870691667e-25],["bar","bar",null,"pressure",!1,!1,1e5],["barn","b",null,"area",!1,!1,1e-28],["becquerel","Bq",null,"radioactivity",!0,!1,1],["bit","bit",["b"],"information",!1,!0,1],["btu","BTU",["btu"],"energy",!1,!0,1055.05585262],["byte","byte",null,"information",!1,!0,8],["candela","cd",null,"luminous_intensity",!0,!1,1],["candela per square metre","cd/m?",null,"luminance",!0,!1,1],["coulomb","C",null,"electric_charge",!0,!1,1],["cubic ångström","ang3",["ang^3"],"volume",!1,!0,1e-30],["cubic foot","ft3",["ft^3"],"volume",!1,!0,.028316846592],["cubic inch","in3",["in^3"],"volume",!1,!0,16387064e-12],["cubic light-year","ly3",["ly^3"],"volume",!1,!0,846786664623715e-61],["cubic metre","m?",null,"volume",!0,!0,1],["cubic mile","mi3",["mi^3"],"volume",!1,!0,4168181825.44058],["cubic nautical mile","Nmi3",["Nmi^3"],"volume",!1,!0,6352182208],["cubic Pica","Pica3",["Picapt3","Pica^3","Picapt^3"],"volume",!1,!0,7.58660370370369e-8],["cubic yard","yd3",["yd^3"],"volume",!1,!0,.764554857984],["cup","cup",null,"volume",!1,!0,.0002365882365],["dalton","Da",["u"],"mass",!1,!1,166053886282828e-41],["day","d",["day"],"time",!1,!0,86400],["degree","°",null,"angle",!1,!1,.0174532925199433],["degrees Rankine","Rank",null,"temperature",!1,!0,.555555555555556],["dyne","dyn",["dy"],"force",!1,!0,1e-5],["electronvolt","eV",["ev"],"energy",!1,!0,1.60217656514141],["ell","ell",null,"length",!1,!0,1.143],["erg","erg",["e"],"energy",!1,!0,1e-7],["farad","F",null,"electric_capacitance",!0,!1,1],["fluid ounce","oz",null,"volume",!1,!0,295735295625e-16],["foot","ft",null,"length",!1,!0,.3048],["foot-pound","flb",null,"energy",!1,!0,1.3558179483314],["gal","Gal",null,"acceleration",!1,!1,.01],["gallon","gal",null,"volume",!1,!0,.003785411784],["gauss","G",["ga"],"magnetic_flux_density",!1,!0,1],["grain","grain",null,"mass",!1,!0,647989e-10],["gram","g",null,"mass",!1,!0,.001],["gray","Gy",null,"absorbed_dose",!0,!1,1],["gross registered ton","GRT",["regton"],"volume",!1,!0,2.8316846592],["hectare","ha",null,"area",!1,!0,1e4],["henry","H",null,"inductance",!0,!1,1],["hertz","Hz",null,"frequency",!0,!1,1],["horsepower","HP",["h"],"power",!1,!0,745.69987158227],["horsepower-hour","HPh",["hh","hph"],"energy",!1,!0,2684519.538],["hour","h",["hr"],"time",!1,!0,3600],["imperial gallon (U.K.)","uk_gal",null,"volume",!1,!0,.00454609],["imperial hundredweight","lcwt",["uk_cwt","hweight"],"mass",!1,!0,50.802345],["imperial quart (U.K)","uk_qt",null,"volume",!1,!0,.0011365225],["imperial ton","brton",["uk_ton","LTON"],"mass",!1,!0,1016.046909],["inch","in",null,"length",!1,!0,.0254],["international acre","uk_acre",null,"area",!1,!0,4046.8564224],["IT calorie","cal",null,"energy",!1,!0,4.1868],["joule","J",null,"energy",!0,!0,1],["katal","kat",null,"catalytic_activity",!0,!1,1],["kelvin","K",["kel"],"temperature",!0,!0,1],["kilogram","kg",null,"mass",!0,!0,1],["knot","kn",null,"speed",!1,!0,.514444444444444],["light-year","ly",null,"length",!1,!0,9460730472580800],["litre","L",["l","lt"],"volume",!1,!0,.001],["lumen","lm",null,"luminous_flux",!0,!1,1],["lux","lx",null,"illuminance",!0,!1,1],["maxwell","Mx",null,"magnetic_flux",!1,!1,1e-18],["measurement ton","MTON",null,"volume",!1,!0,1.13267386368],["meter per hour","m/h",["m/hr"],"speed",!1,!0,.00027777777777778],["meter per second","m/s",["m/sec"],"speed",!0,!0,1],["meter per second squared","m?s??",null,"acceleration",!0,!1,1],["parsec","pc",["parsec"],"length",!1,!0,0x6da012f958ee1c],["meter squared per second","m?/s",null,"kinematic_viscosity",!0,!1,1],["metre","m",null,"length",!0,!0,1],["miles per hour","mph",null,"speed",!1,!0,.44704],["millimetre of mercury","mmHg",null,"pressure",!1,!1,133.322],["minute","?",null,"angle",!1,!1,.000290888208665722],["minute","min",["mn"],"time",!1,!0,60],["modern teaspoon","tspm",null,"volume",!1,!0,5e-6],["mole","mol",null,"amount_of_substance",!0,!1,1],["morgen","Morgen",null,"area",!1,!0,2500],["n.u. of action","?",null,"action",!1,!1,105457168181818e-48],["n.u. of mass","m?",null,"mass",!1,!1,910938261616162e-45],["n.u. of speed","c?",null,"speed",!1,!1,299792458],["n.u. of time","?/(me?c??)",null,"time",!1,!1,128808866778687e-35],["nautical mile","M",["Nmi"],"length",!1,!0,1852],["newton","N",null,"force",!0,!0,1],["œrsted","Oe ",null,"magnetic_field_intensity",!1,!1,79.5774715459477],["ohm","Ω",null,"electric_resistance",!0,!1,1],["ounce mass","ozm",null,"mass",!1,!0,.028349523125],["pascal","Pa",null,"pressure",!0,!1,1],["pascal second","Pa?s",null,"dynamic_viscosity",!0,!1,1],["pferdestärke","PS",null,"power",!1,!0,735.49875],["phot","ph",null,"illuminance",!1,!1,1e-4],["pica (1/6 inch)","pica",null,"length",!1,!0,.00035277777777778],["pica (1/72 inch)","Pica",["Picapt"],"length",!1,!0,.00423333333333333],["poise","P",null,"dynamic_viscosity",!1,!1,.1],["pond","pond",null,"force",!1,!0,.00980665],["pound force","lbf",null,"force",!1,!0,4.4482216152605],["pound mass","lbm",null,"mass",!1,!0,.45359237],["quart","qt",null,"volume",!1,!0,.000946352946],["radian","rad",null,"angle",!0,!1,1],["second","?",null,"angle",!1,!1,484813681109536e-20],["second","s",["sec"],"time",!0,!0,1],["short hundredweight","cwt",["shweight"],"mass",!1,!0,45.359237],["siemens","S",null,"electrical_conductance",!0,!1,1],["sievert","Sv",null,"equivalent_dose",!0,!1,1],["slug","sg",null,"mass",!1,!0,14.59390294],["square ångström","ang2",["ang^2"],"area",!1,!0,1e-20],["square foot","ft2",["ft^2"],"area",!1,!0,.09290304],["square inch","in2",["in^2"],"area",!1,!0,64516e-8],["square light-year","ly2",["ly^2"],"area",!1,!0,895054210748189e17],["square meter","m?",null,"area",!0,!0,1],["square mile","mi2",["mi^2"],"area",!1,!0,2589988.110336],["square nautical mile","Nmi2",["Nmi^2"],"area",!1,!0,3429904],["square Pica","Pica2",["Picapt2","Pica^2","Picapt^2"],"area",!1,!0,1792111111111e-17],["square yard","yd2",["yd^2"],"area",!1,!0,.83612736],["statute mile","mi",null,"length",!1,!0,1609.344],["steradian","sr",null,"solid_angle",!0,!1,1],["stilb","sb",null,"luminance",!1,!1,1e-4],["stokes","St",null,"kinematic_viscosity",!1,!1,1e-4],["stone","stone",null,"mass",!1,!0,6.35029318],["tablespoon","tbs",null,"volume",!1,!0,147868e-10],["teaspoon","tsp",null,"volume",!1,!0,492892e-11],["tesla","T",null,"magnetic_flux_density",!0,!0,1],["thermodynamic calorie","c",null,"energy",!1,!0,4.184],["ton","ton",null,"mass",!1,!0,907.18474],["tonne","t",null,"mass",!1,!1,1e3],["U.K. pint","uk_pt",null,"volume",!1,!0,.00056826125],["U.S. bushel","bushel",null,"volume",!1,!0,.03523907],["U.S. oil barrel","barrel",null,"volume",!1,!0,.158987295],["U.S. pint","pt",["us_pt"],"volume",!1,!0,.000473176473],["U.S. survey mile","survey_mi",null,"length",!1,!0,1609.347219],["U.S. survey/statute acre","us_acre",null,"area",!1,!0,4046.87261],["volt","V",null,"voltage",!0,!1,1],["watt","W",null,"power",!0,!0,1],["watt-hour","Wh",["wh"],"energy",!1,!0,3600],["weber","Wb",null,"magnetic_flux",!0,!1,1],["yard","yd",null,"length",!1,!0,.9144],["year","yr",null,"time",!1,!0,31557600]],s={Yi:["yobi",80,12089258196146292e8,"Yi","yotta"],Zi:["zebi",70,11805916207174113e5,"Zi","zetta"],Ei:["exbi",60,0x1000000000000000,"Ei","exa"],Pi:["pebi",50,0x4000000000000,"Pi","peta"],Ti:["tebi",40,1099511627776,"Ti","tera"],Gi:["gibi",30,1073741824,"Gi","giga"],Mi:["mebi",20,1048576,"Mi","mega"],ki:["kibi",10,1024,"ki","kilo"]},l={Y:["yotta",1e24,"Y"],Z:["zetta",1e21,"Z"],E:["exa",1e18,"E"],P:["peta",1e15,"P"],T:["tera",1e12,"T"],G:["giga",1e9,"G"],M:["mega",1e6,"M"],k:["kilo",1e3,"k"],h:["hecto",100,"h"],e:["dekao",10,"e"],d:["deci",.1,"d"],c:["centi",.01,"c"],m:["milli",.001,"m"],u:["micro",1e-6,"u"],n:["nano",1e-9,"n"],p:["pico",1e-12,"p"],f:["femto",1e-15,"f"],a:["atto",1e-18,"a"],z:["zepto",1e-21,"z"],y:["yocto",1e-24,"y"]},u=null,c=null,d=t,f=n,h=1,p=1,m=0;m=0)&&(u=a[m]),(a[m][1]===f||i.indexOf(f)>=0)&&(c=a[m]);if(null===u){var g=s[t.substring(0,2)],v=l[t.substring(0,1)];"da"===t.substring(0,2)&&(v=["dekao",10,"da"]),g?(h=g[2],d=t.substring(2)):v&&(h=v[1],d=t.substring(v[2].length));for(var _=0;_=0)&&(u=a[_])}if(null===c){var y=s[n.substring(0,2)],b=l[n.substring(0,1)];"da"===n.substring(0,2)&&(b=["dekao",10,"da"]),y?(p=y[2],f=n.substring(2)):b&&(p=b[1],f=n.substring(b[2].length));for(var S=0;S=0)&&(c=a[S])}return null===u||null===c||u[3]!==c[3]?r.na:e*u[6]*h/(c[6]*p)},t.DEC2BIN=function(e,t){if((e=o.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,3}$/.test(e)||e<-512||e>511)return r.num;if(e<0)return"1"+a.REPT("0",9-(512+e).toString(2).length)+(512+e).toString(2);var n=parseInt(e,10).toString(2);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?a.REPT("0",t-n.length)+n:r.num},t.DEC2HEX=function(e,t){if((e=o.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,12}$/.test(e)||e<-549755813888||e>549755813887)return r.num;if(e<0)return(1099511627776+e).toString(16);var n=parseInt(e,10).toString(16);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?a.REPT("0",t-n.length)+n:r.num},t.DEC2OCT=function(e,t){if((e=o.parseNumber(e))instanceof Error)return e;if(!/^-?[0-9]{1,9}$/.test(e)||e<-536870912||e>536870911)return r.num;if(e<0)return(1073741824+e).toString(8);var n=parseInt(e,10).toString(8);return void 0===t?n:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=n.length?a.REPT("0",t-n.length)+n:r.num},t.DELTA=function(e,t){return t=void 0===t?0:t,e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:e===t?1:0},t.ERF=function(e,t){return t=void 0===t?0:t,e=o.parseNumber(e),t=o.parseNumber(t),o.anyIsError(e,t)?r.value:i.erf(e)},t.ERF.PRECISE=function(){throw new Error("ERF.PRECISE is not implemented")},t.ERFC=function(e){return isNaN(e)?r.value:i.erfc(e)},t.ERFC.PRECISE=function(){throw new Error("ERFC.PRECISE is not implemented")},t.GESTEP=function(e,t){return t=t||0,e=o.parseNumber(e),o.anyIsError(t,e)?e:e>=t?1:0},t.HEX2BIN=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=10===e.length&&"f"===e.substring(0,1).toLowerCase(),i=n?parseInt(e,16)-1099511627776:parseInt(e,16);if(i<-512||i>511)return r.num;if(n)return"1"+a.REPT("0",9-(512+i).toString(2).length)+(512+i).toString(2);var o=i.toString(2);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?a.REPT("0",t-o.length)+o:r.num},t.HEX2DEC=function(e){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var t=parseInt(e,16);return t>=549755813888?t-1099511627776:t},t.HEX2OCT=function(e,t){if(!/^[0-9A-Fa-f]{1,10}$/.test(e))return r.num;var n=parseInt(e,16);if(n>536870911&&n<0xffe0000000)return r.num;if(n>=0xffe0000000)return(n-0xffc0000000).toString(8);var i=n.toString(8);return void 0===t?i:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=i.length?a.REPT("0",t-i.length)+i:r.num},t.IMABS=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:Math.sqrt(Math.pow(n,2)+Math.pow(i,2))},t.IMAGINARY=function(e){if(void 0===e||!0===e||!1===e)return r.value;if(0===e||"0"===e)return 0;if(["i","j"].indexOf(e)>=0)return 1;var t=(e=e.replace("+i","+1i").replace("-i","-1i").replace("+j","+1j").replace("-j","-1j")).indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var i=e.substring(e.length-1,e.length),a="i"===i||"j"===i;return t>=0||n>=0?a?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(t+1,e.length-1)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:-Number(e.substring(n+1,e.length-1)):r.num:a?isNaN(e.substring(0,e.length-1))?r.num:e.substring(0,e.length-1):isNaN(e)?r.num:0},t.IMARGUMENT=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:0===n&&0===i?r.div0:0===n&&i>0?Math.PI/2:0===n&&i<0?-Math.PI/2:0===i&&n>0?0:0===i&&n<0?-Math.PI:n>0?Math.atan(i/n):n<0&&i>=0?Math.atan(i/n)+Math.PI:Math.atan(i/n)-Math.PI},t.IMCONJUGATE=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",0!==i?t.COMPLEX(n,-i,a):e},t.IMCOS=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(n)*(Math.exp(i)+Math.exp(-i))/2,-Math.sin(n)*(Math.exp(i)-Math.exp(-i))/2,a)},t.IMCOSH=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(i)*(Math.exp(n)+Math.exp(-n))/2,Math.sin(i)*(Math.exp(n)-Math.exp(-n))/2,a)},t.IMCOT=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:t.IMDIV(t.IMCOS(e),t.IMSIN(e))},t.IMDIV=function(e,n){var i=t.IMREAL(e),a=t.IMAGINARY(e),s=t.IMREAL(n),l=t.IMAGINARY(n);if(o.anyIsError(i,a,s,l))return r.value;var u=e.substring(e.length-1),c=n.substring(n.length-1),d="i";if(("j"===u||"j"===c)&&(d="j"),0===s&&0===l)return r.num;var f=s*s+l*l;return t.COMPLEX((i*s+a*l)/f,(a*s-i*l)/f,d)},t.IMEXP=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);a="i"===a||"j"===a?a:"i";var s=Math.exp(n);return t.COMPLEX(s*Math.cos(i),s*Math.sin(i),a)},t.IMLN=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+i*i)),Math.atan(i/n),a)},t.IMLOG10=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+i*i))/Math.log(10),Math.atan(i/n)/Math.log(10),a)},t.IMLOG2=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.log(Math.sqrt(n*n+i*i))/Math.log(2),Math.atan(i/n)/Math.log(2),a)},t.IMPOWER=function(e,n){n=o.parseNumber(n);var i=t.IMREAL(e),a=t.IMAGINARY(e);if(o.anyIsError(n,i,a))return r.value;var s=e.substring(e.length-1);s="i"===s||"j"===s?s:"i";var l=Math.pow(t.IMABS(e),n),u=t.IMARGUMENT(e);return t.COMPLEX(l*Math.cos(n*u),l*Math.sin(n*u),s)},t.IMPRODUCT=function(){var e=arguments[0];if(!arguments.length)return r.value;for(var n=1;n=0)return 0;var t=e.indexOf("+"),n=e.indexOf("-");0===t&&(t=e.indexOf("+",1)),0===n&&(n=e.indexOf("-",1));var i=e.substring(e.length-1,e.length),a="i"===i||"j"===i;return t>=0||n>=0?a?t>=0?isNaN(e.substring(0,t))||isNaN(e.substring(t+1,e.length-1))?r.num:Number(e.substring(0,t)):isNaN(e.substring(0,n))||isNaN(e.substring(n+1,e.length-1))?r.num:Number(e.substring(0,n)):r.num:a?isNaN(e.substring(0,e.length-1))?r.num:0:isNaN(e)?r.num:e},t.IMSEC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:t.IMDIV("1",t.IMCOS(e))},t.IMSECH=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.value:t.IMDIV("1",t.IMCOSH(e))},t.IMSIN=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.sin(n)*(Math.exp(i)+Math.exp(-i))/2,Math.cos(n)*(Math.exp(i)-Math.exp(-i))/2,a)},t.IMSINH=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);return a="i"===a||"j"===a?a:"i",t.COMPLEX(Math.cos(i)*(Math.exp(n)-Math.exp(-n))/2,Math.sin(i)*(Math.exp(n)+Math.exp(-n))/2,a)},t.IMSQRT=function(e){var n=t.IMREAL(e),i=t.IMAGINARY(e);if(o.anyIsError(n,i))return r.value;var a=e.substring(e.length-1);a="i"===a||"j"===a?a:"i";var s=Math.sqrt(t.IMABS(e)),l=t.IMARGUMENT(e);return t.COMPLEX(s*Math.cos(l/2),s*Math.sin(l/2),a)},t.IMCSC=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.num:t.IMDIV("1",t.IMSIN(e))},t.IMCSCH=function(e){if(!0===e||!1===e)return r.value;var n=t.IMREAL(e),i=t.IMAGINARY(e);return o.anyIsError(n,i)?r.num:t.IMDIV("1",t.IMSINH(e))},t.IMSUB=function(e,t){var n=this.IMREAL(e),i=this.IMAGINARY(e),a=this.IMREAL(t),s=this.IMAGINARY(t);if(o.anyIsError(n,i,a,s))return r.value;var l=e.substring(e.length-1),u=t.substring(t.length-1),c="i";return("j"===l||"j"===u)&&(c="j"),this.COMPLEX(n-a,i-s,c)},t.IMSUM=function(){if(!arguments.length)return r.value;for(var e=o.flatten(arguments),t=e[0],n=1;n511)return r.num;if(n)return"1"+a.REPT("0",9-(512+i).toString(2).length)+(512+i).toString(2);var o=i.toString(2);return void 0===t?o:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=o.length?a.REPT("0",t-o.length)+o:r.num},t.OCT2DEC=function(e){if(!/^[0-7]{1,10}$/.test(e))return r.num;var t=parseInt(e,8);return t>=536870912?t-1073741824:t},t.OCT2HEX=function(e,t){if(!/^[0-7]{1,10}$/.test(e))return r.num;var n=parseInt(e,8);if(n>=536870912)return"ff"+(n+3221225472).toString(16);var i=n.toString(16);return void 0===t?i:isNaN(t)?r.value:t<0?r.num:(t=Math.floor(t))>=i.length?a.REPT("0",t-i.length)+i:r.num}},function(e,t,n){"use strict";t.__esModule=!0,t.default=["ABS","ACCRINT","ACOS","ACOSH","ACOT","ACOTH","ADD","AGGREGATE","AND","ARABIC","ARGS2ARRAY","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETA.DIST","BETA.INV","BETADIST","BETAINV","BIN2DEC","BIN2HEX","BIN2OCT","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BINOMDIST","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CEILING","CEILINGMATH","CEILINGPRECISE","CHAR","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHOOSE","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUNTIN","COUNTUNIQUE","COVARIANCE.P","COVARIANCE.S","CSC","CSCH","CUMIPMT","CUMPRINC","DATE","DATEVALUE","DAY","DAYS","DAYS360","DB","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DIVIDE","DOLLARDE","DOLLARFR","E","EDATE","EFFECT","EOMONTH","EQ","ERF","ERFC","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","F.DIST","F.DIST.RT","F.INV","F.INV.RT","FACT","FACTDOUBLE","FALSE","FDIST","FDISTRT","FIND","FINV","FINVRT","FISHER","FISHERINV","FLATTEN","FLOOR","FORECAST","FREQUENCY","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMA.INV","GAMMADIST","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GROWTH","GTE","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HOUR","HTML2TEXT","HYPGEOM.DIST","HYPGEOMDIST","IF","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INT","INTERCEPT","INTERVAL","IPMT","IRR","ISBINARY","ISBLANK","ISEVEN","ISLOGICAL","ISNONTEXT","ISNUMBER","ISODD","ISODD","ISOWEEKNUM","ISPMT","ISTEXT","JOIN","KURT","LARGE","LCM","LEFT","LEN","LINEST","LN","LOG","LOG10","LOGEST","LOGNORM.DIST","LOGNORM.INV","LOGNORMDIST","LOGNORMINV","LOWER","LT","LTE","MATCH","MAX","MAXA","MEDIAN","MID","MIN","MINA","MINUS","MINUTE","MIRR","MOD","MODE.MULT","MODE.SNGL","MODEMULT","MODESNGL","MONTH","MROUND","MULTINOMIAL","MULTIPLY","NE","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NOMINAL","NORM.DIST","NORM.INV","NORM.S.DIST","NORM.S.INV","NORMDIST","NORMINV","NORMSDIST","NORMSINV","NOT","NOW","NPER","NPV","NUMBERS","OCT2BIN","OCT2DEC","OCT2HEX","ODD","OR","PDURATION","PEARSON","PERCENTILEEXC","PERCENTILEINC","PERCENTRANKEXC","PERCENTRANKINC","PERMUT","PERMUTATIONA","PHI","PI","PMT","POISSON.DIST","POISSONDIST","POW","POWER","PPMT","PROB","PRODUCT","PROPER","PV","QUARTILE.EXC","QUARTILE.INC","QUARTILEEXC","QUARTILEINC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANKAVG","RANKEQ","RATE","REFERENCE","REGEXEXTRACT","REGEXMATCH","REGEXREPLACE","REPLACE","REPT","RIGHT","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","SEARCH","SEC","SECH","SECOND","SERIESSUM","SIGN","SIN","SINH","SKEW","SKEW.P","SKEWP","SLN","SLOPE","SMALL","SPLIT","SPLIT","SQRT","SQRTPI","STANDARDIZE","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STDEVS","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","T.DIST","T.DIST.2T","T.DIST.RT","T.INV","T.INV.2T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","TDIST","TDIST2T","TDISTRT","TIME","TIMEVALUE","TINV","TINV2T","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE","TRUNC","UNICHAR","UNICODE","UNIQUE","UPPER","VAR.P","VAR.S","VARA","VARP","VARPA","VARS","WEEKDAY","WEEKNUM","WEIBULL.DIST","WEIBULLDIST","WORKDAY","XIRR","XNPV","XOR","YEAR","YEARFRAC"]},function(e,t,n){"use strict";function r(e){var t=parseInt(e,10);return t=isNaN(t)?-1:Math.max(t-1,-1)}function i(e){var t="";return e>=0&&(t=""+(e+1)),t}t.__esModule=!0,t.rowLabelToIndex=r,t.rowIndexToLabel=i,t.columnLabelToIndex=o,t.columnIndexToLabel=s,t.extractLabel=function(e){if("string"!=typeof e||!l.test(e))return[];var t=e.toUpperCase().match(l),n=t[1],i=t[2],a=t[3],s=t[4];return[{index:r(s),label:s,isAbsolute:"$"===a},{index:o(i),label:i,isAbsolute:"$"===n}]},t.toLabel=function(e,t){var n=(e.isAbsolute?"$":"")+i(e.index);return(t.isAbsolute?"$":"")+s(t.index)+n};var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ".length;function o(e){var t=0;if("string"==typeof e)for(var n=0,r=(e=e.toUpperCase()).length-1;n=0;)t=String.fromCharCode(e%a+97)+t,e=Math.floor(e/a)-1;return t.toUpperCase()}var l=/^([$])?([A-Za-z]+)([$])?([0-9]+)$/},function(e,t,n){"use strict";t.__esModule=!0,t.rowLabelToIndex=t.rowIndexToLabel=t.columnLabelToIndex=t.columnIndexToLabel=t.toLabel=t.extractLabel=t.error=t.Parser=t.ERROR_VALUE=t.ERROR_REF=t.ERROR_NUM=t.ERROR_NULL=t.ERROR_NOT_AVAILABLE=t.ERROR_NAME=t.ERROR_DIV_ZERO=t.ERROR=t.SUPPORTED_FORMULAS=void 0;var r=l(n(16)),i=l(n(13)),a=n(2),o=l(a),s=n(14);function l(e){return e&&e.__esModule?e:{default:e}}t.SUPPORTED_FORMULAS=i.default,t.ERROR=a.ERROR,t.ERROR_DIV_ZERO=a.ERROR_DIV_ZERO,t.ERROR_NAME=a.ERROR_NAME,t.ERROR_NOT_AVAILABLE=a.ERROR_NOT_AVAILABLE,t.ERROR_NULL=a.ERROR_NULL,t.ERROR_NUM=a.ERROR_NUM,t.ERROR_REF=a.ERROR_REF,t.ERROR_VALUE=a.ERROR_VALUE,t.Parser=r.default,t.error=o.default,t.extractLabel=s.extractLabel,t.toLabel=s.toLabel,t.columnIndexToLabel=s.columnIndexToLabel,t.columnLabelToIndex=s.columnLabelToIndex,t.rowIndexToLabel=s.rowIndexToLabel,t.rowLabelToIndex=s.rowLabelToIndex},function(e,t,n){"use strict";t.__esModule=!0;var r=d(n(17)),i=d(n(18)),a=n(39),o=n(40),s=n(3),l=n(2),u=d(l),c=n(14);function d(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this));return n.parser=new a.Parser,n.parser.yy={toNumber:s.toNumber,trimEdges:o.trimEdges,invertNumber:s.invertNumber,throwError:function(e){return n._throwError(e)},callVariable:function(e){return n._callVariable(e)},evaluateByOperator:i.default,callFunction:function(e,t){return n._callFunction(e,t)},cellValue:function(e){return n._callCellValue(e)},rangeValue:function(e,t){return n._callRangeValue(e,t)}},n.variables=Object.create(null),n.functions=Object.create(null),n.setVariable("TRUE",!0).setVariable("FALSE",!1).setVariable("NULL",null),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.parse=function(e){var t=null,n=null;try{t=""===e?"":this.parser.parse(e)}catch(e){var r=(0,u.default)(e.message);n=r||(0,u.default)(l.ERROR)}return t instanceof Error&&(n=(0,u.default)(t.message)||(0,u.default)(l.ERROR),t=null),{error:n,result:t}},t.prototype.setVariable=function(e,t){return this.variables[e]=t,this},t.prototype.getVariable=function(e){return this.variables[e]},t.prototype._callVariable=function(e){var t=this.getVariable(e);if(this.emit("callVariable",e,(function(e){void 0!==e&&(t=e)})),void 0===t)throw Error(l.ERROR_NAME);return t},t.prototype.setFunction=function(e,t){return this.functions[e]=t,this},t.prototype.getFunction=function(e){return this.functions[e]},t.prototype._callFunction=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this.getFunction(e),r=void 0;return n&&(r=n(t)),this.emit("callFunction",e,t,(function(e){void 0!==e&&(r=e)})),void 0===r?(0,i.default)(e,t):r},t.prototype._callCellValue=function(e){e=e.toUpperCase();var t=(0,c.extractLabel)(e),n=t[0],r=t[1],i=void 0;return this.emit("callCellValue",{label:e,row:n,column:r},(function(e){i=e})),i},t.prototype._callRangeValue=function(e,t){e=e.toUpperCase(),t=t.toUpperCase();var n=(0,c.extractLabel)(e),r=n[0],i=n[1],a=(0,c.extractLabel)(t),o=a[0],s=a[1],l={},u={};r.index<=o.index?(l.row=r,u.row=o):(l.row=o,u.row=r),i.index<=s.index?(l.column=i,u.column=s):(l.column=s,u.column=i),l.label=(0,c.toLabel)(l.row,l.column),u.label=(0,c.toLabel)(u.row,u.column);var d=[];return this.emit("callRangeValue",l,u,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];d=e})),d},t.prototype._throwError=function(e){if((0,l.isValidStrict)(e))throw Error(e);throw Error(l.ERROR)},t}(r.default);t.default=f},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r1&&void 0!==arguments[1]?arguments[1]:[];if(e=e.toUpperCase(),!_[e])throw Error(g.ERROR_NAME);return _[e].apply(_,t)},t.registerOperation=y;var r=v(n(19)),i=v(n(20)),a=v(n(21)),o=v(n(22)),s=v(n(23)),l=v(n(31)),u=v(n(32)),c=v(n(33)),d=v(n(34)),f=v(n(35)),h=v(n(36)),p=v(n(37)),m=v(n(38)),g=n(2);function v(e){return e&&e.__esModule?e:{default:e}}var _=Object.create(null);function y(e,t){Array.isArray(e)||(e=[e.toUpperCase()]),e.forEach((function(e){t.isFactory?_[e]=t(e):_[e]=t}))}y(r.default.SYMBOL,r.default),y(i.default.SYMBOL,i.default),y(a.default.SYMBOL,a.default),y(o.default.SYMBOL,o.default),y(m.default.SYMBOL,m.default),y(s.default.SYMBOL,s.default),y(l.default.SYMBOL,l.default),y(u.default.SYMBOL,u.default),y(c.default.SYMBOL,c.default),y(d.default.SYMBOL,d.default),y(h.default.SYMBOL,h.default),y(p.default.SYMBOL,p.default),y(f.default.SYMBOL,f.default)},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=o;var r=n(3),i=n(2),a=t.SYMBOL="+";function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),a=1;a1?t-1:0),a=1;ai)a=r(n,i,l(n),h(n),-1);else{for(var o=!1,s=0,u=0,c=1,d=0,f=2/n,p=2*t.floor((i+t.floor(t.sqrt(40*i)))/2);p>0;p--)d=p*f*c-s,s=c,c=d,t.abs(c)>1e10&&(c*=1e-10,s*=1e-10,a*=1e-10,u*=1e-10),o&&(u+=c),o=!o,p==i&&(a=s);a/=u=2*u-c}return a}}(),y=(a=.636619772,o=[-2957821389,7062834065,-512359803.6,10879881.29,-86327.92757,228.4622733].reverse(),s=[40076544269,745249964.8,7189466.438,47447.2647,226.1030244,1].reverse(),l=[1,-.001098628627,2734510407e-14,-2073370639e-15,2.093887211e-7].reverse(),u=[-.01562499995,.0001430488765,-6911147651e-15,7.621095161e-7,-9.34945152e-8].reverse(),c=[-4900604943e3,127527439e4,-51534381390,734926455.1,-4237922.726,8511.937935].reverse(),d=[249958057e5,424441966400,3733650367,22459040.02,102042.605,354.9632885,1].reverse(),f=[1,.00183105,-3516396496e-14,2457520174e-15,-2.40337019e-7].reverse(),h=[.04687499995,-.0002002690873,8449199096e-15,-8.8228987e-7,1.05787412e-7].reverse(),i((function(e){var r=0,i=0,c=0,d=e*e,f=e-.785398164;return e<8?r=(i=n(o,d))/(c=n(s,d))+a*_(e,0)*t.log(e):(i=n(l,d=64/d),c=n(u,d),r=t.sqrt(a/e)*(t.sin(f)*i+t.cos(f)*c*8/e)),r}),(function(e){var r=0,i=0,o=0,s=e*e,l=e-2.356194491;return e<8?r=(i=e*n(c,s))/(o=n(d,s))+a*(_(e,1)*t.log(e)-1/e):(i=n(f,s=64/s),o=n(h,s),r=t.sqrt(a/e)*(t.sin(l)*i+t.cos(l)*o*8/e)),r}),0,1,-1)),b=(p=[1,3.5156229,3.0899424,1.2067492,.2659732,.0360768,.0045813].reverse(),m=[.39894228,.01328592,.00225319,-.00157565,.00916281,-.02057706,.02635537,-.01647633,.00392377].reverse(),g=[.5,.87890594,.51498869,.15084934,.02658733,.00301532,32411e-8].reverse(),v=[.39894228,-.03988024,-.00362018,.00163801,-.01031555,.02282967,-.02895312,.01787654,-.00420059].reverse(),function e(r,i){if(0===(i=Math.round(i)))return function(e){return e<=3.75?n(p,e*e/14.0625):t.exp(t.abs(e))/t.sqrt(t.abs(e))*n(m,3.75/t.abs(e))}(r);if(1===i)return function(e){return e<3.75?e*n(g,e*e/14.0625):(e<0?-1:1)*t.exp(t.abs(e))/t.sqrt(t.abs(e))*n(v,3.75/t.abs(e))}(r);if(i<0)return NaN;if(0===t.abs(r))return 0;if(r==1/0)return 1/0;var a,o=0,s=2/t.abs(r),l=0,u=1,c=0;for(a=2*t.round((i+t.round(t.sqrt(40*i)))/2);a>0;a--)c=a*s*u+l,l=u,u=c,t.abs(u)>1e10&&(u*=1e-10,l*=1e-10,o*=1e-10),a==i&&(o=l);return o*=e(r,0)/u,r<0&&i%2?-o:o}),S=function(){var e=[-.57721566,.4227842,.23069756,.0348859,.00262698,1075e-7,74e-7].reverse(),r=[1.25331414,-.07832358,.02189568,-.01062446,.00587872,-.0025154,53208e-8].reverse(),a=[1,.15443144,-.67278579,-.18156897,-.01919402,-.00110404,-4686e-8].reverse(),o=[1.25331414,.23498619,-.0365562,.01504268,-.00780353,.00325614,-68245e-8].reverse();return i((function(i){return i<=2?-t.log(i/2)*b(i,0)+n(e,i*i/4):t.exp(-i)/t.sqrt(i)*n(r,2/i)}),(function(e){return e<=2?t.log(e/2)*b(e,1)+1/e*n(a,e*e/4):t.exp(-e)/t.sqrt(e)*n(o,2/e)}),0,2,1)}();e.besselj=_,e.bessely=y,e.besseli=b,e.besselk=S},"undefined"==typeof DO_NOT_EXPORT_BESSEL?r(t):r({})},function(e,t,n){var r=n(0),i=n(5),a=n(4),o=n(1),s=n(7);function l(e){var t=[];return o.arrayEach(e,(function(e){e&&t.push(e)})),t}function u(e,t){for(var n={},r=1;ri&&(i=t[r].length);for(var a=1;a1?r.num:s[a[0]]},t.DMAX=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var a=u(e,i),s=[];if("string"==typeof n){var l=t.FINDFIELD(e,n);s=o.rest(e[l])}else s=o.rest(e[n]);var c=s[a[0]];return o.arrayEach(a,(function(e){cs[e]&&(c=s[e])})),c},t.DPRODUCT=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var a=u(e,i),s=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);s=o.rest(e[c])}else s=o.rest(e[n]);var d=[];o.arrayEach(a,(function(e){d.push(s[e])})),d=l(d);var f=1;return o.arrayEach(d,(function(e){f*=e})),f},t.DSTDEV=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),c=[];if("string"==typeof n){var d=t.FINDFIELD(e,n);c=o.rest(e[d])}else c=o.rest(e[n]);var f=[];return o.arrayEach(s,(function(e){f.push(c[e])})),f=l(f),i.STDEV.S(f)},t.DSTDEVP=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),c=[];if("string"==typeof n){var d=t.FINDFIELD(e,n);c=o.rest(e[d])}else c=o.rest(e[n]);var f=[];return o.arrayEach(s,(function(e){f.push(c[e])})),f=l(f),i.STDEV.P(f)},t.DSUM=function(e,n,i){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,i),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=o.rest(e[c])}else l=o.rest(e[n]);var d=[];return o.arrayEach(s,(function(e){d.push(l[e])})),a.SUM(d)},t.DVAR=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=o.rest(e[c])}else l=o.rest(e[n]);var d=[];return o.arrayEach(s,(function(e){d.push(l[e])})),i.VAR.S(d)},t.DVARP=function(e,n,a){if(isNaN(n)&&"string"!=typeof n)return r.value;var s=u(e,a),l=[];if("string"==typeof n){var c=t.FINDFIELD(e,n);l=o.rest(e[c])}else l=o.rest(e[n]);var d=[];return o.arrayEach(s,(function(e){d.push(l[e])})),i.VAR.P(d)}},function(e,t,n){var r=n(0),i=n(1),a=n(8);t.AND=function(){for(var e=i.flatten(arguments),t=!0,n=0;n254||arguments.length0){var t=arguments[0],n=arguments.length-1,i=Math.floor(n/2),a=!1,o=n%2!=0,s=n%2==0?null:arguments[arguments.length-1];if(i)for(var l=0;ls)return r.num;if(0!==l&&1!==l)return r.num;var u=t.PMT(e,n,i,0,l),c=0;1===o&&0===l&&(c=-i,o++);for(var d=o;d<=s;d++)c+=1===l?t.FV(e,d-2,u,i,1)-u:t.FV(e,d-1,u,i,0);return c*=e},t.CUMPRINC=function(e,n,i,o,s,l){if(e=a.parseNumber(e),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,n,i))return r.value;if(e<=0||n<=0||i<=0)return r.num;if(o<1||s<1||o>s)return r.num;if(0!==l&&1!==l)return r.num;var u=t.PMT(e,n,i,0,l),c=0;1===o&&(c=0===l?u+i*e:u,o++);for(var d=o;d<=s;d++)c+=l>0?u-(t.FV(e,d-2,u,i,1)-u)*e:u-t.FV(e,d-1,u,i,0)*e;return c},t.DB=function(e,t,n,i,o){if(o=void 0===o?12:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),o=a.parseNumber(o),a.anyIsError(e,t,n,i,o))return r.value;if(e<0||t<0||n<0||i<0)return r.num;if(-1===[1,2,3,4,5,6,7,8,9,10,11,12].indexOf(o))return r.num;if(i>n)return r.num;if(t>=e)return 0;for(var s=(1-Math.pow(t/e,1/n)).toFixed(3),l=e*s*o/12,u=l,c=0,d=i===n?n-1:i,f=2;f<=d;f++)u+=c=(e-u)*s;return 1===i?l:i===n?(e-u)*s:c},t.DDB=function(e,t,n,i,o){if(o=void 0===o?2:o,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),o=a.parseNumber(o),a.anyIsError(e,t,n,i,o))return r.value;if(e<0||t<0||n<0||i<0||o<=0)return r.num;if(i>n)return r.num;if(t>=e)return 0;for(var s=0,l=0,u=1;u<=i;u++)s+=l=Math.min(o/n*(e-s),e-t-s);return l},t.DISC=function(){throw new Error("DISC is not implemented")},t.DOLLARDE=function(e,t){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return r.value;if(t<0)return r.num;if(t>=0&&t<1)return r.div0;t=parseInt(t,10);var n=parseInt(e,10);n+=e%1*Math.pow(10,Math.ceil(Math.log(t)/Math.LN10))/t;var i=Math.pow(10,Math.ceil(Math.log(t)/Math.LN2)+1);return n=Math.round(n*i)/i},t.DOLLARFR=function(e,t){if(e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t))return r.value;if(t<0)return r.num;if(t>=0&&t<1)return r.div0;t=parseInt(t,10);var n=parseInt(e,10);return n+=e%1*Math.pow(10,-Math.ceil(Math.log(t)/Math.LN10))*t},t.DURATION=function(){throw new Error("DURATION is not implemented")},t.EFFECT=function(e,t){return e=a.parseNumber(e),t=a.parseNumber(t),a.anyIsError(e,t)?r.value:e<=0||t<1?r.num:(t=parseInt(t,10),Math.pow(1+e/t,t)-1)},t.FV=function(e,t,n,i,o){if(i=i||0,o=o||0,e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),o=a.parseNumber(o),a.anyIsError(e,t,n,i,o))return r.value;var s;if(0===e)s=i+n*t;else{var l=Math.pow(1+e,t);s=1===o?i*l+n*(1+e)*(l-1)/e:i*l+n*(l-1)/e}return-s},t.FVSCHEDULE=function(e,t){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),a.anyIsError(e,t))return r.value;for(var n=t.length,i=e,o=0;o0&&(s=!0),e[u]<0&&(l=!0);if(!s||!l)return r.num;var c,d,f,h=t=void 0===t?.1:t,p=!0;do{c=h-(f=n(e,o,h))/i(e,o,h),d=Math.abs(c-h),h=c,p=d>1e-10&&Math.abs(f)>1e-10}while(p);return h},t.ISPMT=function(e,t,n,i){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,t,n,i)?r.value:i*e*(t/n-1)},t.MDURATION=function(){throw new Error("MDURATION is not implemented")},t.MIRR=function(e,n,i){if(e=a.parseNumberArray(a.flatten(e)),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,n,i))return r.value;for(var o=e.length,s=[],l=[],u=0;u1e-10&&h<50;)p=(u*c-l*d)/(u-l),c=d,d=p,l=u,u=Math.abs(p)<1e-10?n*(1+e*p)+t*(1+p*o)*e+i:n*(f=Math.exp(e*Math.log(1+p)))+t*(1/p+o)*(f-1)+i,++h;return p},t.RECEIVED=function(){throw new Error("RECEIVED is not implemented")},t.RRI=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:0===e||0===t?r.num:Math.pow(n/t,1/e)-1},t.SLN=function(e,t,n){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:0===n?r.num:(e-t)/n},t.SYD=function(e,t,n,i){return e=a.parseNumber(e),t=a.parseNumber(t),n=a.parseNumber(n),i=a.parseNumber(i),a.anyIsError(e,t,n,i)?r.value:0===n||i<1||i>n?r.num:(e-t)*(n-(i=parseInt(i,10))+1)*2/(n*(n+1))},t.TBILLEQ=function(e,t,n){return e=a.parseDate(e),t=a.parseDate(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:365*n/(360-n*i.DAYS360(e,t,!1))},t.TBILLPRICE=function(e,t,n){return e=a.parseDate(e),t=a.parseDate(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:100*(1-n*i.DAYS360(e,t,!1)/360)},t.TBILLYIELD=function(e,t,n){return e=a.parseDate(e),t=a.parseDate(t),n=a.parseNumber(n),a.anyIsError(e,t,n)?r.value:n<=0||e>t||t-e>31536e6?r.num:360*(100-n)/(n*i.DAYS360(e,t,!1))},t.VDB=function(){throw new Error("VDB is not implemented")},t.XNPV=function(e,t,n){if(e=a.parseNumber(e),t=a.parseNumberArray(a.flatten(t)),n=a.parseDateArray(a.flatten(n)),a.anyIsError(e,t,n))return r.value;for(var o=0,s=0;sa&&(i=o+1,a=t[o]):(i=o+1,a=t[o]))}else if(0===n){if("string"==typeof e){if(e=e.replace(/\?/g,"."),t[o].toLowerCase().match(e.toLowerCase()))return o+1}else if(t[o]===e)return o+1}else if(-1===n){if(t[o]===e)return o+1;t[o]>e&&(a?t[o]";function i(e,t){return e>t}i.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=i;var r=t.SYMBOL=">=";function i(e,t){return e>=t}i.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.default=i;var r=t.SYMBOL="<";function i(e,t){return e1?t-1:0),a=1;a1?t-1:0),a=1;a";function i(e,t){return e!==t}i.SYMBOL=r},function(e,t,n){"use strict";t.__esModule=!0,t.SYMBOL=void 0,t.default=o;var r=n(3),i=n(2),a=t.SYMBOL="^";function o(e,t){var n=Math.pow((0,r.toNumber)(e),(0,r.toNumber)(t));if(isNaN(n))throw Error(i.ERROR_VALUE);return n}o.SYMBOL=a},function(e,t,n){var r=function(){var e=function(e,t,n,r){for(n=n||{},r=e.length;r--;n[e[r]]=t);return n},t=[1,5],n=[1,8],r=[1,6],i=[1,7],a=[1,9],o=[1,14],s=[1,15],l=[1,16],u=[1,12],c=[1,13],d=[1,17],f=[1,19],h=[1,20],p=[1,21],m=[1,22],g=[1,23],v=[1,24],_=[1,25],y=[1,26],b=[1,27],S=[1,28],E=[5,9,10,11,13,14,15,16,17,18,19,20,29,30],w=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,32],T=[5,9,10,11,13,14,15,16,17,18,19,20,29,30,34],O=[5,10,11,13,14,15,16,17,29,30],C=[5,10,13,14,15,16,29,30],x=[5,10,11,13,14,15,16,17,18,19,29,30],k=[13,29,30],M={trace:function(){},yy:{},symbols_:{error:2,expressions:3,expression:4,EOF:5,variableSequence:6,number:7,STRING:8,"&":9,"=":10,"+":11,"(":12,")":13,"<":14,">":15,NOT:16,"-":17,"*":18,"/":19,"^":20,FUNCTION:21,expseq:22,cell:23,ABSOLUTE_CELL:24,RELATIVE_CELL:25,MIXED_CELL:26,":":27,ARRAY:28,";":29,",":30,VARIABLE:31,DECIMAL:32,NUMBER:33,"%":34,ERROR:35,$accept:0,$end:1},terminals_:{5:"EOF",8:"STRING",9:"&",10:"=",11:"+",12:"(",13:")",14:"<",15:">",16:"NOT",17:"-",18:"*",19:"/",20:"^",21:"FUNCTION",24:"ABSOLUTE_CELL",25:"RELATIVE_CELL",26:"MIXED_CELL",27:":",28:"ARRAY",29:";",30:",",31:"VARIABLE",32:"DECIMAL",33:"NUMBER",34:"%",35:"ERROR"},productions_:[0,[3,2],[4,1],[4,1],[4,1],[4,3],[4,3],[4,3],[4,3],[4,4],[4,4],[4,4],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,2],[4,3],[4,4],[4,1],[4,1],[4,2],[23,1],[23,1],[23,1],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[23,3],[22,1],[22,1],[22,3],[22,3],[6,1],[6,3],[7,1],[7,3],[7,2],[2,1]],performAction:function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=r.callVariable(a[s][0]);break;case 3:this.$=r.toNumber(a[s]);break;case 4:this.$=r.trimEdges(a[s]);break;case 5:this.$=r.evaluateByOperator("&",[a[s-2],a[s]]);break;case 6:this.$=r.evaluateByOperator("=",[a[s-2],a[s]]);break;case 7:this.$=r.evaluateByOperator("+",[a[s-2],a[s]]);break;case 8:this.$=a[s-1];break;case 9:this.$=r.evaluateByOperator("<=",[a[s-3],a[s]]);break;case 10:this.$=r.evaluateByOperator(">=",[a[s-3],a[s]]);break;case 11:this.$=r.evaluateByOperator("<>",[a[s-3],a[s]]);break;case 12:this.$=r.evaluateByOperator("NOT",[a[s-2],a[s]]);break;case 13:this.$=r.evaluateByOperator(">",[a[s-2],a[s]]);break;case 14:this.$=r.evaluateByOperator("<",[a[s-2],a[s]]);break;case 15:this.$=r.evaluateByOperator("-",[a[s-2],a[s]]);break;case 16:this.$=r.evaluateByOperator("*",[a[s-2],a[s]]);break;case 17:this.$=r.evaluateByOperator("/",[a[s-2],a[s]]);break;case 18:this.$=r.evaluateByOperator("^",[a[s-2],a[s]]);break;case 19:var l=r.invertNumber(a[s]);this.$=l,isNaN(this.$)&&(this.$=0);break;case 20:l=r.toNumber(a[s]),this.$=l,isNaN(this.$)&&(this.$=0);break;case 21:this.$=r.callFunction(a[s-2]);break;case 22:this.$=r.callFunction(a[s-3],a[s-1]);break;case 26:case 27:case 28:this.$=r.cellValue(a[s]);break;case 29:case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:this.$=r.rangeValue(a[s-2],a[s]);break;case 38:case 42:this.$=[a[s]];break;case 39:this.$=r.trimEdges(e).split(",");break;case 40:case 41:a[s-2].push(a[s]),this.$=a[s-2];break;case 43:this.$=Array.isArray(a[s-2])?a[s-2]:[a[s-2]],this.$.push(a[s]);break;case 44:this.$=a[s];break;case 45:this.$=1*(a[s-2]+"."+a[s]);break;case 46:this.$=.01*a[s-1];break;case 47:this.$=r.throwError(a[s])}},table:[{2:11,3:1,4:2,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{1:[3]},{5:[1,18],9:f,10:h,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S},e(E,[2,2],{32:[1,29]}),e(E,[2,3],{34:[1,30]}),e(E,[2,4]),{2:11,4:31,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:32,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:33,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{12:[1,34]},e(E,[2,23]),e(E,[2,24],{2:35,35:d}),e(w,[2,42]),e(T,[2,44],{32:[1,36]}),e(E,[2,26],{27:[1,37]}),e(E,[2,27],{27:[1,38]}),e(E,[2,28],{27:[1,39]}),e([5,9,10,11,13,14,15,16,17,18,19,20,29,30,35],[2,47]),{1:[2,1]},{2:11,4:40,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:41,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:42,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:45,6:3,7:4,8:t,10:[1,43],11:n,12:r,15:[1,44],17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:47,6:3,7:4,8:t,10:[1,46],11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:48,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:49,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:50,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:51,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:52,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{31:[1,53]},e(T,[2,46]),{9:f,10:h,11:p,13:[1,54],14:m,15:g,16:v,17:_,18:y,19:b,20:S},e(O,[2,19],{9:f,18:y,19:b,20:S}),e(O,[2,20],{9:f,18:y,19:b,20:S}),{2:11,4:57,6:3,7:4,8:t,11:n,12:r,13:[1,55],17:i,21:a,22:56,23:10,24:o,25:s,26:l,28:[1,58],31:u,33:c,35:d},e(E,[2,25]),{33:[1,59]},{24:[1,60],25:[1,61],26:[1,62]},{24:[1,63],25:[1,64],26:[1,65]},{24:[1,66],25:[1,67],26:[1,68]},e(E,[2,5]),e([5,10,13,29,30],[2,6],{9:f,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S}),e(O,[2,7],{9:f,18:y,19:b,20:S}),{2:11,4:69,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:70,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},e(C,[2,14],{9:f,11:p,17:_,18:y,19:b,20:S}),{2:11,4:71,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},e(C,[2,13],{9:f,11:p,17:_,18:y,19:b,20:S}),e([5,10,13,16,29,30],[2,12],{9:f,11:p,14:m,15:g,17:_,18:y,19:b,20:S}),e(O,[2,15],{9:f,18:y,19:b,20:S}),e(x,[2,16],{9:f,20:S}),e(x,[2,17],{9:f,20:S}),e([5,10,11,13,14,15,16,17,18,19,20,29,30],[2,18],{9:f}),e(w,[2,43]),e(E,[2,8]),e(E,[2,21]),{13:[1,72],29:[1,73],30:[1,74]},e(k,[2,38],{9:f,10:h,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S}),e(k,[2,39]),e(T,[2,45]),e(E,[2,29]),e(E,[2,30]),e(E,[2,31]),e(E,[2,32]),e(E,[2,33]),e(E,[2,34]),e(E,[2,35]),e(E,[2,36]),e(E,[2,37]),e(C,[2,9],{9:f,11:p,17:_,18:y,19:b,20:S}),e(C,[2,11],{9:f,11:p,17:_,18:y,19:b,20:S}),e(C,[2,10],{9:f,11:p,17:_,18:y,19:b,20:S}),e(E,[2,22]),{2:11,4:75,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},{2:11,4:76,6:3,7:4,8:t,11:n,12:r,17:i,21:a,23:10,24:o,25:s,26:l,31:u,33:c,35:d},e(k,[2,40],{9:f,10:h,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S}),e(k,[2,41],{9:f,10:h,11:p,14:m,15:g,16:v,17:_,18:y,19:b,20:S})],defaultActions:{18:[2,1]},parseError:function(e,t){if(!t.recoverable){var n=new Error(e);throw n.hash=t,n}this.trace(e)},parse:function(e){var t=this,n=[0],r=[null],i=[],a=this.table,o="",s=0,l=0,u=0,c=2,d=1,f=i.slice.call(arguments,1),h=Object.create(this.lexer),p={yy:{}};for(var m in this.yy)Object.prototype.hasOwnProperty.call(this.yy,m)&&(p.yy[m]=this.yy[m]);h.setInput(e,p.yy),p.yy.lexer=h,p.yy.parser=this,void 0===h.yylloc&&(h.yylloc={});var g=h.yylloc;i.push(g);var v=h.options&&h.options.ranges;function _(e){n.length=n.length-2*e,r.length=r.length-e,i.length=i.length-e}"function"==typeof p.yy.parseError?this.parseError=p.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;for(var y,b,S,E,w,T,O,C,x,k=function(){var e;return"number"!=typeof(e=h.lex()||d)&&(e=t.symbols_[e]||e),e},M={};;){if(S=n[n.length-1],this.defaultActions[S]?E=this.defaultActions[S]:(null==y&&(y=k()),E=a[S]&&a[S][y]),void 0===E||!E.length||!E[0]){var A,R="";function I(e){for(var t=n.length-1,r=0;;){if(c.toString()in a[e])return r;if(0===e||t<2)return!1;e=n[t-=2],++r}}if(u)b!==d&&(A=I(S));else{for(T in A=I(S),x=[],a[S])this.terminals_[T]&&T>c&&x.push("'"+this.terminals_[T]+"'");R=h.showPosition?"Parse error on line "+(s+1)+":\n"+h.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[y]||y)+"'":"Parse error on line "+(s+1)+": Unexpected "+(y==d?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(R,{text:h.match,token:this.terminals_[y]||y,line:h.yylineno,loc:g,expected:x,recoverable:!1!==A})}if(3==u){if(y===d||b===d)throw new Error(R||"Parsing halted while starting to recover from another error.");l=h.yyleng,o=h.yytext,s=h.yylineno,g=h.yylloc,y=k()}if(!1===A)throw new Error(R||"Parsing halted. No suitable error recovery rule available.");_(A),b=y==c?null:y,y=c,S=n[n.length-1],E=a[S]&&a[S][c],u=3}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+y);switch(E[0]){case 1:n.push(y),r.push(h.yytext),i.push(h.yylloc),n.push(E[1]),y=null,b?(y=b,b=null):(l=h.yyleng,o=h.yytext,s=h.yylineno,g=h.yylloc,u>0&&u--);break;case 2:if(O=this.productions_[E[1]][1],M.$=r[r.length-O],M._$={first_line:i[i.length-(O||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(O||1)].first_column,last_column:i[i.length-1].last_column},v&&(M._$.range=[i[i.length-(O||1)].range[0],i[i.length-1].range[1]]),void 0!==(w=this.performAction.apply(M,[o,l,s,p.yy,E[1],r,i].concat(f))))return w;O&&(n=n.slice(0,-1*O*2),r=r.slice(0,-1*O),i=i.slice(0,-1*O)),n.push(this.productions_[E[1]][0]),r.push(M.$),i.push(M._$),C=a[n[n.length-2]][n[n.length-1]],n.push(C);break;case 3:return!0}}return!0}},A={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){return this.options.backtrack_lexer?(this._backtrack=!0,this):this.parseError("Lexical error on line "+(this.yylineno+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},test_match:function(e,t){var n,r,i;if(this.options.backtrack_lexer&&(i={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(i.yylloc.range=this.yylloc.range.slice(0))),(r=e[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=r.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:r?r[r.length-1].length-r[r.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+e[0].length},this.yytext+=e[0],this.match+=e[0],this.matches=e,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(e[0].length),this.matched+=e[0],n=this.performAction.call(this,this.yy,this,t,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),n)return n;if(this._backtrack){for(var a in i)this[a]=i[a];return!1}return!1},next:function(){if(this.done)return this.EOF;var e,t,n,r;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var i=this._currentRules(),a=0;at[0].length)){if(t=n,r=a,this.options.backtrack_lexer){if(!1!==(e=this.test_match(n,i[a])))return e;if(this._backtrack){t=!1;continue}return!1}if(!this.options.flex)break}return t?!1!==(e=this.test_match(t,i[r]))&&e:""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return e||this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.length-1>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(e){return(e=this.conditionStack.length-1-Math.abs(e||0))>=0?this.conditionStack[e]:"INITIAL"},pushState:function(e){this.begin(e)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(e,t,n,r){switch(n){case 0:break;case 1:case 2:return 8;case 3:return 21;case 4:return 35;case 5:return 24;case 6:case 7:return 26;case 8:return 25;case 9:return 21;case 10:case 11:return 31;case 12:return 33;case 13:return 28;case 14:return 9;case 15:return" ";case 16:return 32;case 17:return 27;case 18:return 29;case 19:return 30;case 20:return 18;case 21:return 19;case 22:return 17;case 23:return 11;case 24:return 20;case 25:return 12;case 26:return 13;case 27:return 15;case 28:return 14;case 29:return 16;case 30:return'"';case 31:return"'";case 32:return"!";case 33:return 10;case 34:return 34;case 35:return"#";case 36:return 5}},rules:[/^(?:\s+)/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/,/^(?:#[A-Z0-9\/]+(!|\?)?)/,/^(?:\$[A-Za-z]+\$[0-9]+)/,/^(?:\$[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z]+\$[0-9]+)/,/^(?:[A-Za-z]+[0-9]+)/,/^(?:[A-Za-z\.]+(?=[(]))/,/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,/^(?:[A-Za-z_]+)/,/^(?:[0-9]+)/,/^(?:\[(.*)?\])/,/^(?:&)/,/^(?: )/,/^(?:[.])/,/^(?::)/,/^(?:;)/,/^(?:,)/,/^(?:\*)/,/^(?:\/)/,/^(?:-)/,/^(?:\+)/,/^(?:\^)/,/^(?:\()/,/^(?:\))/,/^(?:>)/,/^(?:<)/,/^(?:NOT\b)/,/^(?:")/,/^(?:')/,/^(?:!)/,/^(?:=)/,/^(?:%)/,/^(?:[#])/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],inclusive:!0}}};function R(){this.yy={}}return M.lexer=A,R.prototype=M,M.Parser=R,new R}();t.parser=r,t.Parser=r.Parser,t.parse=function(){return r.parse.apply(r,arguments)}},function(e,t,n){"use strict";t.__esModule=!0,t.trimEdges=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e=e.substring(t,e.length-t)}}])},e.exports=r()},function(e,t,n){"use strict";n.r(t),n.d(t,"LineShape",(function(){return s}));var r=n(66),i=n(38),a=n(310),o={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var l=Object(a.subPixelOptimizeLine)(o,t,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=t.x1,r=t.y1,i=t.x2,s=t.y2;var u=t.percent;0!==u&&(e.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),e.lineTo(i,s))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(i.default);l.prototype.type="line",t.default=l},function(e,t,n){"use strict";function r(e){return document.createTextNode(e)}function i(e){return document.createComment(e)}function a(e,t,n){e.insertBefore(t,n)}function o(e,t){e.removeChild(t)}function s(e,t){e.appendChild(t)}function l(e){return e.parentNode}function u(e){return e.nextSibling}function c(e){return e.tagName}function d(e,t){e.textContent=t}function f(e){return e.textContent}function h(e){return 1===e.nodeType}function p(e){return 3===e.nodeType}function m(e){return 8===e.nodeType}n.r(t),n.d(t,"createTextNode",(function(){return r})),n.d(t,"createComment",(function(){return i})),n.d(t,"insertBefore",(function(){return a})),n.d(t,"removeChild",(function(){return o})),n.d(t,"appendChild",(function(){return s})),n.d(t,"parentNode",(function(){return l})),n.d(t,"nextSibling",(function(){return u})),n.d(t,"tagName",(function(){return c})),n.d(t,"setTextContent",(function(){return d})),n.d(t,"getTextContent",(function(){return f})),n.d(t,"isElement",(function(){return h})),n.d(t,"isText",(function(){return p})),n.d(t,"isComment",(function(){return m}))},function(e,t,n){var r=n(241);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";var r=n(73),i=n(77),a=n(677),o=n(175),s=n(151),l=n(678),u=i("".indexOf);r({target:"String",proto:!0,forced:!l("includes")},{includes:function(e){return!!~u(s(o(this)),s(a(e)),arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(109),a=n(209),o=n(280),s=n(6),l=n(233),u=n(1086),c=n(136),d=n(131),f=n(135),h=n(28);t.default=function(e,t,n){n=n||{};var p,m=t.getSourceManager(),g=!1;e?(g=!0,p=Object(c.createSourceFromSeriesDataOption)(e)):g=(p=m.getSource()).sourceFormat===h.SOURCE_FORMAT_ORIGINAL;var v=Object(u.getCoordSysInfoBySeries)(t),_=function(e,t){var n,i=e.get("coordinateSystem"),a=l.default.get(i);return t&&t.coordSysDims&&(n=r.map(t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=Object(o.getDimensionTypeByAxis)(i)}return n}))),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}(t,v),y=n.useEncodeDefaulter,b=r.isFunction(y)?y:y?r.curry(f.makeSeriesEncodeForAxisCoordSys,_,t):null,S={coordDimensions:_,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!g},E=Object(a.default)(p,S),w=function(e,t,n){var i,a;return n&&r.each(e,(function(e,r){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(null==i&&(i=r),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(a=!0)})),a||null==i||(e[i].otherDims.itemName=0),i}(E.dimensions,n.createInvertedIndices,v),T=g?null:m.getSharedDataStore(E),O=Object(d.enableDataStack)(t,{schema:E,store:T}),C=new i.default(E,t);C.setCalculationInfo(O);var x=null!=w&&function(e){if(e.sourceFormat===h.SOURCE_FORMAT_ORIGINAL){var t=function(e){var t=0;for(;t=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return Object(i.getPixelPrecision)(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count()),Object(i.linearMap)(e,o,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count());var a=Object(i.linearMap)(e,n,o,t);return this.scale.scale(a)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e=e||{}).tickModel||this.getTickModel(),n=Object(a.createAxisTicks)(this,t).ticks,o=Object(r.map)(n,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this);return function(e,t,n,a){var o=t.length;if(!e.onBand||n||!o)return;var s,l,u=e.getExtent();if(1===o)t[0].coord=u[0],s=t[1]={coord:u[0]};else{var c=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/c;Object(r.each)(t,(function(e){e.coord-=d/2}));var f=e.scale.getExtent();l=1+f[1]-t[o-1].tickValue,s={coord:t[o-1].coord+d*l},t.push(s)}var h=u[0]>u[1];p(t[0].coord,u[0])&&(a?t[0].coord=u[0]:t.shift());a&&p(u[0],t[0].coord)&&t.unshift({coord:u[0]});p(u[1],s.coord)&&(a?s.coord=u[1]:t.pop());a&&p(s.coord,u[1])&&t.push({coord:u[1]});function p(e,t){return e=Object(i.round)(e),t=Object(i.round)(t),h?e>t:e0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return Object(r.map)(t,(function(e){return Object(r.map)(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this)},e.prototype.getViewLabels=function(){return Object(a.createAxisLabels)(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return Object(a.calculateCategoryInterval)(this)},e}();function l(e,t){var n=(e[1]-e[0])/t/2;e[0]+=n,e[1]-=n}t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"parseDataValue",(function(){return o})),n.d(t,"getRawValueParser",(function(){return l})),n.d(t,"SortOrderComparator",(function(){return d})),n.d(t,"createFilterComparator",(function(){return h}));var r=n(5),i=n(0),a=n(40);function o(e,t){var n=t&&t.type;return"ordinal"===n?e:("time"!==n||Object(i.isNumber)(e)||null==e||"-"===e||(e=+Object(r.parseDate)(e)),null==e||""===e?NaN:+e)}var s=Object(i.createHashMap)({number:function(e){return parseFloat(e)},time:function(e){return+Object(r.parseDate)(e)},trim:function(e){return Object(i.isString)(e)?Object(i.trim)(e):e}});function l(e){return s.get(e)}var u={lt:function(e,t){return et},gte:function(e,t){return e>=t}},c=function(){function e(e,t){if(!Object(i.isNumber)(t)){0,Object(a.throwError)("")}this._opFn=u[e],this._rvalFloat=Object(r.numericToNumber)(t)}return e.prototype.evaluate=function(e){return Object(i.isNumber)(e)?this._opFn(e,this._rvalFloat):this._opFn(Object(r.numericToNumber)(e),this._rvalFloat)},e}(),d=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(i.isNumber)(e)?e:Object(r.numericToNumber)(e),a=Object(i.isNumber)(t)?t:Object(r.numericToNumber)(t),o=isNaN(n),s=isNaN(a);if(o&&(n=this._incomparable),s&&(a=this._incomparable),o&&s){var l=Object(i.isString)(e),u=Object(i.isString)(t);l&&(n=u?e:0),u&&(a=l?t:0)}return na?-this._resultLT:0},e}(),f=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Object(r.numericToNumber)(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=Object(r.numericToNumber)(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function h(e,t){return"eq"===e||"ne"===e?new f("eq"===e,t):Object(i.hasOwn)(u,e)?new c(e,t):null}},function(e,t,n){"use strict";n.r(t),n.d(t,"debugMode",(function(){return i})),n.d(t,"devicePixelRatio",(function(){return a})),n.d(t,"DARK_MODE_THRESHOLD",(function(){return o})),n.d(t,"DARK_LABEL_COLOR",(function(){return s})),n.d(t,"LIGHT_LABEL_COLOR",(function(){return l})),n.d(t,"LIGHTER_LABEL_COLOR",(function(){return u}));var r=1;n(54).default.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=0,a=r,o=.4,s="#333",l="#ccc",u="#eee"},function(e,t,n){"use strict";n.r(t),n.d(t,"SELECTION_TYPE_UNRECOGNIZED",(function(){return l})),n.d(t,"SELECTION_TYPE_EMPTY",(function(){return u})),n.d(t,"SELECTION_TYPE_ARRAY",(function(){return c})),n.d(t,"SELECTION_TYPE_OBJECT",(function(){return d})),n.d(t,"SELECTION_TYPES",(function(){return f})),n.d(t,"detectSelectionType",(function(){return g})),n.d(t,"normalizeSelectionFactory",(function(){return v})),n.d(t,"transformSelectionToColumnDistance",(function(){return _})),n.d(t,"transformSelectionToRowDistance",(function(){return y})),n.d(t,"isValidCoord",(function(){return b}));n(18),n(19),n(20),n(89),n(114),n(15),n(366),n(273),n(12),n(31),n(305),n(142),n(16),n(17);var r=n(13),i=n(2),a=n(26);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function s(e){return(s="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})(e)}var l=0,u=1,c=2,d=3,f=[d,c],h=[["number"],["number","string"],["number","undefined"],["number","string","undefined"]],p=Symbol("root"),m=Symbol("child");function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p;if(t!==p&&t!==m)throw new Error("The second argument is used internally only and cannot be overwritten.");var n=Array.isArray(e),i=t===p,a=l;if(n){var o=e[0];if(0===e.length)a=u;else if(i&&o instanceof r.CellRange)a=d;else if(i&&Array.isArray(o))a=g(o,m);else if(e.length>=2&&e.length<=4){var f=!e.some((function(e,t){return!h[t].includes(s(e))}));f&&(a=c)}}return a}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.keepDirection,r=void 0!==n&&n,i=t.propToCol;if(!f.includes(e))throw new Error("Unsupported selection ranges schema type was provided.");return function(t){var n=e===d,o=n?t.from.row:t[0],s=n?t.from.col:t[1],l=n?t.to.row:t[2],u=n?t.to.col:t[3];if("function"==typeof i&&("string"==typeof s&&(s=i(s)),"string"==typeof u&&(u=i(u))),Object(a.isUndefined)(l)&&(l=o),Object(a.isUndefined)(u)&&(u=s),!r){var c=o,f=s,h=l,p=u;o=Math.min(c,h),s=Math.min(f,p),l=Math.max(c,h),u=Math.max(f,p)}return[o,s,l,u]}}function _(e){var t=g(e);if(t===l||t===u)return[];var n=v(t),r=new Set;Object(i.arrayEach)(e,(function(e){var t=o(n(e),4),a=t[1],s=t[3]-a+1;Object(i.arrayEach)(Array.from(new Array(s),(function(e,t){return a+t})),(function(e){r.has(e)||r.add(e)}))}));var a=Array.from(r).sort((function(e,t){return e-t}));return Object(i.arrayReduce)(a,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])}function y(e){var t=g(e);if(t===l||t===u)return[];var n=v(t),r=new Set;Object(i.arrayEach)(e,(function(e){var t=o(n(e),3),a=t[0],s=t[2]-a+1;Object(i.arrayEach)(Array.from(new Array(s),(function(e,t){return a+t})),(function(e){r.has(e)||r.add(e)}))}));var a=Array.from(r).sort((function(e,t){return e-t}));return Object(i.arrayReduce)(a,(function(e,t,n,r){return 0!==n&&t===r[n-1]+1?e[e.length-1][1]+=1:e.push([t,1]),e}),[])}function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0;return"number"==typeof e&&e>=0&&e=S?i=n+S:t&&n-i>=S?i=n-S:!t&&n>i?i=n+(S-T(n-i)):t&&n0&&(this._ux=y(n/a.devicePixelRatio/e)||0,this._uy=y(n/a.devicePixelRatio/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=y(e-this._xi),r=y(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(l.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(l.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(l.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),w[0]=r,w[1]=i,O(w,a),r=w[0];var o=(i=w[1])-r;return this.addData(l.A,e,t,n,n,r,o,0,a?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=v(i)*n+e,this._yi=_(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!E||(this.data=new Float32Array(t));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){d[0]=d[1]=h[0]=h[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,a=0,s=0,u=0;for(e=0;en||y(T)>r||h===t-1)&&(E=Math.sqrt(j*j+T*T),i=w,a=x);break;case l.C:var O=e[h++],C=e[h++],x=(w=e[h++],e[h++]),k=e[h++],M=e[h++];E=Object(s.cubicLength)(i,a,O,C,w,x,k,M,10),i=k,a=M;break;case l.Q:O=e[h++],C=e[h++],w=e[h++],x=e[h++];E=Object(s.quadraticLength)(i,a,O,C,w,x,10),i=w,a=x;break;case l.A:var A=e[h++],R=e[h++],I=e[h++],D=e[h++],N=e[h++],L=e[h++],P=L+N;h+=1;e[h++];b&&(o=v(N)*I+A,u=_(N)*D+R),E=g(I,D)*m(S,Math.abs(L)),i=v(P)*I+A,a=_(P)*D+R;break;case l.R:o=i=e[h++],u=a=e[h++],E=2*e[h++]+2*e[h++];break;case l.Z:var j=o-i;T=u-a;E=Math.sqrt(j*j+T*T),i=o,a=u}E>=0&&(c[f++]=E,d+=E)}return this._pathLen=d,d},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,d,f,h,p,b,S=this.data,E=this._ux,w=this._uy,T=this._len,O=t<1,C=0,x=0,k=0;if(!O||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,h=t*this._pathLen))e:for(var M=0;M0&&(e.lineTo(p,b),k=0),A){case l.M:n=i=S[M++],r=a=S[M++],e.moveTo(i,a);break;case l.L:o=S[M++],d=S[M++];var I=y(o-i),D=y(d-a);if(I>E||D>w){if(O){if(C+(re=f[x++])>h){var N=(h-C)/re;e.lineTo(i*(1-N)+o*N,a*(1-N)+d*N);break e}C+=re}e.lineTo(o,d),i=o,a=d,k=0}else{var L=I*I+D*D;L>k&&(p=o,b=d,k=L)}break;case l.C:var P=S[M++],j=S[M++],F=S[M++],B=S[M++],H=S[M++],U=S[M++];if(O){if(C+(re=f[x++])>h){N=(h-C)/re;Object(s.cubicSubdivide)(i,P,F,H,N,u),Object(s.cubicSubdivide)(a,j,B,U,N,c),e.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break e}C+=re}e.bezierCurveTo(P,j,F,B,H,U),i=H,a=U;break;case l.Q:P=S[M++],j=S[M++],F=S[M++],B=S[M++];if(O){if(C+(re=f[x++])>h){N=(h-C)/re;Object(s.quadraticSubdivide)(i,P,F,N,u),Object(s.quadraticSubdivide)(a,j,B,N,c),e.quadraticCurveTo(u[1],c[1],u[2],c[2]);break e}C+=re}e.quadraticCurveTo(P,j,F,B),i=F,a=B;break;case l.A:var Y=S[M++],V=S[M++],W=S[M++],z=S[M++],G=S[M++],$=S[M++],q=S[M++],K=!S[M++],X=W>z?W:z,Q=y(W-z)>.001,Z=G+$,J=!1;if(O)C+(re=f[x++])>h&&(Z=G+$*(h-C)/re,J=!0),C+=re;if(Q&&e.ellipse?e.ellipse(Y,V,W,z,q,G,Z,K):e.arc(Y,V,X,G,Z,K),J)break e;R&&(n=v(G)*W+Y,r=_(G)*z+V),i=v(Z)*W+Y,a=_(Z)*z+V;break;case l.R:n=i=S[M],r=a=S[M+1],o=S[M++],d=S[M++];var ee=S[M++],te=S[M++];if(O){if(C+(re=f[x++])>h){var ne=h-C;e.moveTo(o,d),e.lineTo(o+m(ne,ee),d),(ne-=ee)>0&&e.lineTo(o+ee,d+m(ne,te)),(ne-=te)>0&&e.lineTo(o+g(ee-ne,0),d+te),(ne-=ee)>0&&e.lineTo(o,d+g(te-ne,0));break e}C+=re}e.rect(o,d,ee,te);break;case l.Z:if(O){var re;if(C+(re=f[x++])>h){N=(h-C)/re;e.lineTo(i*(1-N)+n*N,a*(1-N)+r*N);break e}C+=re}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();t.default=C},function(e,t,n){"use strict";n.r(t),n.d(t,"registerValidator",(function(){return u})),n.d(t,"getValidator",(function(){return p})),n.d(t,"hasValidator",(function(){return d})),n.d(t,"getRegisteredValidatorNames",(function(){return f})),n.d(t,"getRegisteredValidators",(function(){return h}));var r=n(161),i=n(1319),a=n(1320),o=n(1321),s=n(1322),l=Object(r.default)("validators"),u=l.register,c=l.getItem,d=l.hasItem,f=l.getNames,h=l.getValues;function p(e){if("function"==typeof e)return e;if(!d(e))throw Error('No registered validator found under "'.concat(e,'" name'));return c(e)}u("autocomplete",i.default),u("date",a.default),u("numeric",o.default),u("time",s.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"DATA_ZOOM_AXIS_DIMENSIONS",(function(){return i})),n.d(t,"isCoordSupported",(function(){return o})),n.d(t,"getAxisMainType",(function(){return s})),n.d(t,"getAxisIndexPropName",(function(){return l})),n.d(t,"getAxisIdPropName",(function(){return u})),n.d(t,"findEffectedDataZooms",(function(){return c})),n.d(t,"collectReferCoordSysModelInfo",(function(){return d}));var r=n(0),i=["x","y","radius","angle","single"],a=["cartesian2d","polar","singleAxis"];function o(e){var t=e.get("coordinateSystem");return Object(r.indexOf)(a,t)>=0}function s(e){return e+"Axis"}function l(e){return e+"AxisIndex"}function u(e){return e+"AxisId"}function c(e,t){var n,i=Object(r.createHashMap)(),a=[],o=Object(r.createHashMap)();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||l(e)}));do{n=!1,e.eachComponent("dataZoom",s)}while(n);function s(e){!o.get(e.uid)&&function(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}(e)&&(l(e),n=!0)}function l(e){o.set(e.uid,!0),a.push(e),e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return a}function d(e){var t=e.ecModel,n={infoList:[],infoMap:Object(r.createHashMap)()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(s(e),r);if(i){var a=i.getCoordSysModel();if(a){var o=a.uid,l=n.infoMap.get(o);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(o,l)),l.axisModels.push(i)}}})),n}},function(e,t,n){"use strict";var r=n(339),i=n(158),a=n(77),o=n(516),s=n(83),l=n(134),u=n(127),c=n(301),d=n(337),f=n(151),h=n(175),p=n(676),m=n(335),g=n(1679),v=n(517),_=n(121)("replace"),y=Math.max,b=Math.min,S=a([].concat),E=a([].push),w=a("".indexOf),T=a("".slice),O="$0"==="a".replace(/./,"$0"),C=!!/./[_]&&""===/./[_]("a","$0");o("replace",(function(e,t,n){var a=C?"$":"$0";return[function(e,n){var r=h(this),a=null==e?void 0:m(e,_);return a?i(a,e,r,n):i(t,f(r),e,n)},function(e,i){var o=l(this),s=f(e);if("string"==typeof i&&-1===w(i,a)&&-1===w(i,"$<")){var h=n(t,o,s,i);if(h.done)return h.value}var m=u(i);m||(i=f(i));var _=o.global;if(_){var O=o.unicode;o.lastIndex=0}for(var C=[];;){var x=v(o,s);if(null===x)break;if(E(C,x),!_)break;""===f(x[0])&&(o.lastIndex=p(s,d(o.lastIndex),O))}for(var k,M="",A=0,R=0;R=A&&(M+=T(s,A,D)+F,A=D+I.length)}return M+T(s,A)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}))||!O||C)},function(e,t,n){"use strict";n.r(t),n.d(t,"PolygonShape",(function(){return o}));var r=n(66),i=n(38),a=n(555),o=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},s=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){a.buildPath(e,t,!0)},t}(i.default);s.prototype.type="polygon",t.default=s},function(e,t,n){"use strict";n.r(t),function(e,n){ /*! * Vue.js v2.6.11 * (c) 2014-2019 Evan You * Released under the MIT License. */ var r=Object.freeze({});function i(e){return null==e}function a(e){return null!=e}function o(e){return!0===e}function s(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function l(e){return null!==e&&"object"==typeof e}var u=Object.prototype.toString;function c(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function f(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function p(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function m(e){var t=parseFloat(e);return isNaN(t)?e:t}function g(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function S(e,t){return b.call(e,t)}function E(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var w=/-(\w)/g,T=E((function(e){return e.replace(w,(function(e,t){return t?t.toUpperCase():""}))})),O=E((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),C=/\B([A-Z])/g,x=E((function(e){return e.replace(C,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function M(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function R(e){for(var t={},n=0;n0,J=X&&X.indexOf("edge/")>0,ee=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===K),te=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),ne={}.watch,re=!1;if($)try{var ie={};Object.defineProperty(ie,"passive",{get:function(){re=!0}}),window.addEventListener("test-passive",null,ie)}catch(e){}var ae=function(){return void 0===z&&(z=!$&&!q&&void 0!==e&&(e.process&&"server"===e.process.env.VUE_ENV)),z},oe=$&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function se(e){return"function"==typeof e&&/native code/.test(e.toString())}var le,ue="undefined"!=typeof Symbol&&se(Symbol)&&"undefined"!=typeof Reflect&&se(Reflect.ownKeys);le="undefined"!=typeof Set&&se(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ce=I,de=0,fe=function(){this.id=de++,this.subs=[]};fe.prototype.addSub=function(e){this.subs.push(e)},fe.prototype.removeSub=function(e){y(this.subs,e)},fe.prototype.depend=function(){fe.target&&fe.target.addDep(this)},fe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(a&&!S(i,"default"))o=!1;else if(""===o||o===x(e)){var l=Ve(String,i.type);(l<0||s0&&(ft((l=e(l,(n||"")+"_"+r))[0])&&ft(c)&&(d[u]=ye(c.text+l[0].text),l.shift()),d.push.apply(d,l)):s(l)?ft(c)?d[u]=ye(c.text+l):""!==l&&d.push(ye(l)):ft(l)&&ft(c)?d[u]=ye(c.text+l.text):(o(t._isVList)&&a(l.tag)&&i(l.key)&&a(n)&&(l.key="__vlist"+n+"_"+r+"__"),d.push(l)));return d}(e):void 0}function ft(e){return a(e)&&a(e.text)&&!1===e.isComment}function ht(e,t){if(e){for(var n=Object.create(null),r=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=vt(t,l,e[l]))}else i={};for(var u in t)u in i||(i[u]=_t(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),V(i,"$stable",o),V(i,"$key",s),V(i,"$hasNormal",a),i}function vt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:dt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function _t(e,t){return function(){return e[t]}}function yt(e,t){var n,r,i,o,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;rdocument.createEvent("Event").timeStamp&&(cn=function(){return dn.now()})}function fn(){var e,t;for(un=cn(),sn=!0,nn.sort((function(e,t){return e.id-t.id})),ln=0;lnln&&nn[n].id>e.id;)n--;nn.splice(n+1,0,e)}else nn.push(e);on||(on=!0,rt(fn))}}(this)},pn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||l(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){We(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},pn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},pn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},pn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var mn={enumerable:!0,configurable:!0,get:I,set:I};function gn(e,t,n){mn.get=function(){return this[t][n]},mn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,mn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&Oe(!1);var a=function(a){i.push(a);var o=He(a,t,n,e);ke(r,a,o),a in e||gn(e,"_props",a)};for(var o in t)a(o);Oe(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?I:k(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;c(t=e._data="function"==typeof t?function(e,t){pe();try{return e.call(t,t)}catch(e){return We(e,t,"data()"),{}}finally{me()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var a=n[i];0,r&&S(r,a)||Y(a)||gn(e,"_data",a)}xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ae();for(var i in t){var a=t[i],o="function"==typeof a?a:a.get;0,r||(n[i]=new pn(e,o||I,I,_n)),i in e||yn(e,i,a)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function Mn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var a in n){var o=n[a];if(o){var s=xn(o.componentOptions);s&&!t(s)&&An(n,a,r,i)}}}function An(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,y(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=wn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Fe(Tn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Xt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=pt(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,n,r,i){return Ut(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Ut(e,t,n,r,i,!0)};var a=n&&n.data;ke(e,"$attrs",a&&a.attrs||r,null,!0),ke(e,"$listeners",t._parentListeners||r,null,!0)}(t),tn(t,"beforeCreate"),function(e){var t=ht(e.$options.inject,e);t&&(Oe(!1),Object.keys(t).forEach((function(n){ke(e,n,t[n])})),Oe(!0))}(t),vn(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),tn(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(On),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Me,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(c(t))return En(this,e,t,n);(n=n||{}).user=!0;var r=new pn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){We(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(On),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,a=e.length;i1?M(n):n;for(var r=M(arguments,1),i='event handler for "'+e+'"',a=0,o=n.length;aparseInt(this.max)&&An(o,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return H}};Object.defineProperty(e,"config",t),e.util={warn:ce,extend:A,mergeOptions:Fe,defineReactive:ke},e.set=Me,e.delete=Ae,e.nextTick=rt,e.observable=function(e){return xe(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,A(e.options.components,In),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Fe(this.options,e),this}}(e),Cn(e),function(e){F.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&c(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(On),Object.defineProperty(On.prototype,"$isServer",{get:ae}),Object.defineProperty(On.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(On,"FunctionalRenderContext",{value:Nt}),On.version="2.6.11";var Dn=g("style,class"),Nn=g("input,textarea,option,select,progress"),Ln=function(e,t,n){return"value"===n&&Nn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Pn=g("contenteditable,draggable,spellcheck"),jn=g("events,caret,typing,plaintext-only"),Fn=g("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Bn="http://www.w3.org/1999/xlink",Hn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Un=function(e){return Hn(e)?e.slice(6,e.length):""},Yn=function(e){return null==e||!1===e};function Vn(e){for(var t=e.data,n=e,r=e;a(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Wn(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=Wn(t,n.data));return function(e,t){if(a(e)||a(t))return zn(e,Gn(t));return""}(t.staticClass,t.class)}function Wn(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Gn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r-1?vr(e,t,n):Fn(t)?Yn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Pn(t)?e.setAttribute(t,function(e,t){return Yn(t)||"false"===t?"false":"contenteditable"===e&&jn(t)?t:"true"}(t,n)):Hn(t)?Yn(n)?e.removeAttributeNS(Bn,Un(t)):e.setAttributeNS(Bn,t,n):vr(e,t,n)}function vr(e,t,n){if(Yn(n))e.removeAttribute(t);else{if(Q&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var _r={create:mr,update:mr};function yr(e,t){var n=t.elm,r=t.data,o=e.data;if(!(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))){var s=Vn(t),l=n._transitionClasses;a(l)&&(s=zn(s,Gn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var br,Sr,Er,wr,Tr,Or,Cr={create:yr,update:yr},xr=/[\w).+\-_$\]]/;function kr(e){var t,n,r,i,a,o=!1,s=!1,l=!1,u=!1,c=0,d=0,f=0,h=0;for(r=0;r=0&&" "===(m=e.charAt(p));p--);m&&xr.test(m)||(u=!0)}}else void 0===i?(h=r+1,i=e.slice(0,r).trim()):g();function g(){(a||(a=[])).push(e.slice(h,r).trim()),h=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==h&&g(),a)for(r=0;r-1?{exp:e.slice(0,wr),key:'"'+e.slice(wr+1)+'"'}:{exp:e,key:null};Sr=e,wr=Tr=Or=0;for(;!zr();)Gr(Er=Wr())?qr(Er):91===Er&&$r(Er);return{exp:e.slice(0,Tr),key:e.slice(Tr+1,Or)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Wr(){return Sr.charCodeAt(++wr)}function zr(){return wr>=br}function Gr(e){return 34===e||39===e}function $r(e){var t=1;for(Tr=wr;!zr();)if(Gr(e=Wr()))qr(e);else if(91===e&&t++,93===e&&t--,0===t){Or=wr;break}}function qr(e){for(var t=e;!zr()&&(e=Wr())!==t;);}var Kr;function Xr(e,t,n){var r=Kr;return function i(){var a=t.apply(null,arguments);null!==a&&Jr(e,i,n,r)}}var Qr=Ke&&!(te&&Number(te[1])<=53);function Zr(e,t,n,r){if(Qr){var i=un,a=t;t=a._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return a.apply(this,arguments)}}Kr.addEventListener(e,t,re?{capture:n,passive:r}:n)}function Jr(e,t,n,r){(r||Kr).removeEventListener(e,t._wrapper||t,n)}function ei(e,t){if(!i(e.data.on)||!i(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Kr=t.elm,function(e){if(a(e.__r)){var t=Q?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),lt(n,r,Zr,Jr,Xr,t.context),Kr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,t){if(!i(e.data.domProps)||!i(t.data.domProps)){var n,r,o=t.elm,s=e.data.domProps||{},l=t.data.domProps||{};for(n in a(l.__ob__)&&(l=t.data.domProps=A({},l)),s)n in l||(o[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;var u=i(r)?"":String(r);ii(o,u)&&(o.value=u)}else if("innerHTML"===n&&Kn(o.tagName)&&i(o.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+r+"";for(var c=ti.firstChild;o.firstChild;)o.removeChild(o.firstChild);for(;c.firstChild;)o.appendChild(c.firstChild)}else if(r!==s[n])try{o[n]=r}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return m(n)!==m(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var ai={create:ri,update:ri},oi=E((function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function si(e){var t=li(e.style);return e.staticStyle?A(e.staticStyle,t):t}function li(e){return Array.isArray(e)?R(e):"string"==typeof e?oi(e):e}var ui,ci=/^--/,di=/\s*!important$/,fi=function(e,t,n){if(ci.test(t))e.style.setProperty(t,n);else if(di.test(n))e.style.setProperty(x(t),n.replace(di,""),"important");else{var r=pi(t);if(Array.isArray(n))for(var i=0,a=n.length;i-1?t.split(vi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function yi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(vi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&A(t,Si(e.name||"v")),A(t,e),t}return"string"==typeof e?Si(e):void 0}}var Si=E((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),Ei=$&&!Z,wi="transition",Ti="transitionend",Oi="animation",Ci="animationend";Ei&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(wi="WebkitTransition",Ti="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Ci="webkitAnimationEnd"));var xi=$?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ki(e){xi((function(){xi(e)}))}function Mi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),_i(e,t))}function Ai(e,t){e._transitionClasses&&y(e._transitionClasses,t),yi(e,t)}function Ri(e,t,n){var r=Di(e,t),i=r.type,a=r.timeout,o=r.propCount;if(!i)return n();var s="transition"===i?Ti:Ci,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=o&&u()};setTimeout((function(){l0&&(n="transition",c=o,d=a.length):"animation"===t?u>0&&(n="animation",c=u,d=l.length):d=(n=(c=Math.max(o,u))>0?o>u?"transition":"animation":null)?"transition"===n?a.length:l.length:0,{type:n,timeout:c,propCount:d,hasTransform:"transition"===n&&Ii.test(r[wi+"Property"])}}function Ni(e,t){for(;e.length1}function Hi(e,t){!0!==t.data.show&&Pi(t)}var Ui=function(e){var t,n,r={},l=e.modules,u=e.nodeOps;for(t=0;tp?y(e,i(n[v+1])?null:n[v+1].elm,n,h,v,r):h>v&&S(t,f,p)}(f,g,v,n,c):a(v)?(a(e.text)&&u.setTextContent(f,""),y(f,null,v,0,v.length-1,n)):a(g)?S(g,0,g.length-1):a(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),a(p)&&a(h=p.hook)&&a(h=h.postpatch)&&h(e,t)}}}function O(e,t,n){if(o(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r-1,o.selected!==a&&(o.selected=a);else if(L(Gi(o),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function zi(e,t){return t.every((function(t){return!L(t,e)}))}function Gi(e){return"_value"in e?e._value:e.value}function $i(e){e.target.composing=!0}function qi(e){e.target.composing&&(e.target.composing=!1,Ki(e.target,"input"))}function Ki(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Xi(e){return!e.componentInstance||e.data&&e.data.transition?e:Xi(e.componentInstance._vnode)}var Qi={model:Yi,show:{bind:function(e,t,n){var r=t.value,i=(n=Xi(n)).data&&n.data.transition,a=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,(function(){e.style.display=a}))):e.style.display=r?a:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Xi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,(function(){e.style.display=e.__vOriginalDisplay})):ji(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Zi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ji(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ji(Gt(t.children)):e}function ea(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var a in i)t[T(a)]=i[a];return t}function ta(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var na=function(e){return e.tag||zt(e)},ra=function(e){return"show"===e.name},ia={name:"transition",props:Zi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(na)).length){0;var r=this.mode;0;var i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var a=Ji(i);if(!a)return i;if(this._leaving)return ta(e,i);var o="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?o+"comment":o+a.tag:s(a.key)?0===String(a.key).indexOf(o)?a.key:o+a.key:a.key;var l=(a.data||(a.data={})).transition=ea(this),u=this._vnode,c=Ji(u);if(a.data.directives&&a.data.directives.some(ra)&&(a.data.show=!0),c&&c.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,c)&&!zt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=A({},l);if("out-in"===r)return this._leaving=!0,ut(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ta(e,i);if("in-out"===r){if(zt(a))return u;var f,h=function(){f()};ut(l,"afterEnter",h),ut(l,"enterCancelled",h),ut(d,"delayLeave",(function(e){f=e}))}}return i}}},aa=A({tag:String,moveClass:String},Zi);function oa(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function sa(e){e.data.newPos=e.elm.getBoundingClientRect()}function la(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var a=e.elm.style;a.transform=a.WebkitTransform="translate("+r+"px,"+i+"px)",a.transitionDuration="0s"}}delete aa.mode;var ua={Transition:ia,TransitionGroup:{props:aa,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],a=this.children=[],o=ea(this),s=0;s-1?Zn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Zn[e]=/HTMLUnknownElement/.test(t.toString())},A(On.options.directives,Qi),A(On.options.components,ua),On.prototype.__patch__=$?Ui:I,On.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=_e),tn(e,"beforeMount"),r=function(){e._update(e._render(),n)},new pn(e,r,I,{before:function(){e._isMounted&&!e._isDestroyed&&tn(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,tn(e,"mounted")),e}(this,e=e&&$?er(e):void 0,t)},$&&setTimeout((function(){H.devtools&&oe&&oe.emit("init",On)}),0);var ca=/\{\{((?:.|\r?\n)+?)\}\}/g,da=/[-.*+?^${}()|[\]\/\\]/g,fa=E((function(e){var t=e[0].replace(da,"\\$&"),n=e[1].replace(da,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var ha={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Br(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Fr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var pa,ma={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Br(e,"style");n&&(e.staticStyle=JSON.stringify(oi(n)));var r=Fr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},ga=function(e){return(pa=pa||document.createElement("div")).innerHTML=e,pa.textContent},va=g("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_a=g("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ya=g("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ba=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Sa=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,Ea="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+U.source+"]*",wa="((?:"+Ea+"\\:)?"+Ea+")",Ta=new RegExp("^<"+wa),Oa=/^\s*(\/?)>/,Ca=new RegExp("^<\\/"+wa+"[^>]*>"),xa=/^]+>/i,ka=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Da=/&(?:lt|gt|quot|amp|#39);/g,Na=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,La=g("pre,textarea",!0),Pa=function(e,t){return e&&La(e)&&"\n"===t[0]};function ja(e,t){var n=t?Na:Da;return e.replace(n,(function(e){return Ia[e]}))}var Fa,Ba,Ha,Ua,Ya,Va,Wa,za,Ga=/^@|^v-on:/,$a=/^v-|^@|^:|^#/,qa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Ka=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Xa=/^\(|\)$/g,Qa=/^\[.*\]$/,Za=/:(.*)$/,Ja=/^:|^\.|^v-bind:/,eo=/\.[^.\]]+(?=[^\]]*$)/g,to=/^v-slot(:|$)|^#/,no=/[\r\n]/,ro=/\s+/g,io=E(ga);function ao(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ho(t),rawAttrsMap:{},parent:n,children:[]}}function oo(e,t){Fa=t.warn||Ar,Va=t.isPreTag||D,Wa=t.mustUseProp||D,za=t.getTagNamespace||D;var n=t.isReservedTag||D;(function(e){return!!e.component||!n(e.tag)}),Ha=Rr(t.modules,"transformNode"),Ua=Rr(t.modules,"preTransformNode"),Ya=Rr(t.modules,"postTransformNode"),Ba=t.delimiters;var r,i,a=[],o=!1!==t.preserveWhitespace,s=t.whitespace,l=!1,u=!1;function c(e){if(d(e),l||e.processed||(e=so(e,t)),a.length||e===r||r.if&&(e.elseif||e.else)&&uo(r,{exp:e.elseif,block:e}),i&&!e.forbidden)if(e.elseif||e.else)o=e,(s=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(i.children))&&s.if&&uo(s,{exp:o.elseif,block:o});else{if(e.slotScope){var n=e.slotTarget||'"default"';(i.scopedSlots||(i.scopedSlots={}))[n]=e}i.children.push(e),e.parent=i}var o,s;e.children=e.children.filter((function(e){return!e.slotScope})),d(e),e.pre&&(l=!1),Va(e.tag)&&(u=!1);for(var c=0;c]*>)","i")),f=e.replace(d,(function(e,n,r){return u=r.length,Aa(c)||"noscript"===c||(n=n.replace(//g,"$1").replace(//g,"$1")),Pa(c,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""}));l+=e.length-f.length,e=f,C(c,l-u,l)}else{var h=e.indexOf("<");if(0===h){if(ka.test(e)){var p=e.indexOf("--\x3e");if(p>=0){t.shouldKeepComment&&t.comment(e.substring(4,p),l,l+p+3),w(p+3);continue}}if(Ma.test(e)){var m=e.indexOf("]>");if(m>=0){w(m+2);continue}}var g=e.match(xa);if(g){w(g[0].length);continue}var v=e.match(Ca);if(v){var _=l;w(v[0].length),C(v[1],_,l);continue}var y=T();if(y){O(y),Pa(y.tagName,e)&&w(1);continue}}var b=void 0,S=void 0,E=void 0;if(h>=0){for(S=e.slice(h);!(Ca.test(S)||Ta.test(S)||ka.test(S)||Ma.test(S)||(E=S.indexOf("<",1))<0);)h+=E,S=e.slice(h);b=e.substring(0,h)}h<0&&(b=e),b&&w(b.length),t.chars&&b&&t.chars(b,l-b.length,l)}if(e===n){t.chars&&t.chars(e);break}}function w(t){l+=t,e=e.substring(t)}function T(){var t=e.match(Ta);if(t){var n,r,i={tagName:t[1],attrs:[],start:l};for(w(t[0].length);!(n=e.match(Oa))&&(r=e.match(Sa)||e.match(ba));)r.start=l,w(r[0].length),r.end=l,i.attrs.push(r);if(n)return i.unarySlash=n[1],w(n[0].length),i.end=l,i}}function O(e){var n=e.tagName,l=e.unarySlash;a&&("p"===r&&ya(n)&&C(r),s(n)&&r===n&&C(n));for(var u=o(n)||!!l,c=e.attrs.length,d=new Array(c),f=0;f=0&&i[o].lowerCasedTag!==s;o--);else o=0;if(o>=0){for(var u=i.length-1;u>=o;u--)t.end&&t.end(i[u].tag,n,a);i.length=o,r=o&&i[o-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,a):"p"===s&&(t.start&&t.start(e,[],!1,n,a),t.end&&t.end(e,n,a))}C()}(e,{warn:Fa,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,n,o,s,d){var f=i&&i.ns||za(e);Q&&"svg"===f&&(n=function(e){for(var t=[],n=0;nl&&(s.push(a=e.slice(l,i)),o.push(JSON.stringify(a)));var u=kr(r[1].trim());o.push("_s("+u+")"),s.push({"@binding":u}),l=i+r[0].length}return l-1"+("true"===a?":("+t+")":":_q("+t+","+a+")")),jr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Vr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Vr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Vr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===a&&"radio"===o)!function(e,t,n){var r=n&&n.number,i=Fr(e,"value")||"null";Ir(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),jr(e,"change",Vr(t,i),null,!0)}(e,r,i);else if("input"===a||"textarea"===a)!function(e,t,n){var r=e.attrsMap.type;0;var i=n||{},a=i.lazy,o=i.number,s=i.trim,l=!a&&"range"!==r,u=a?"change":"range"===r?"__r":"input",c="$event.target.value";s&&(c="$event.target.value.trim()");o&&(c="_n("+c+")");var d=Vr(t,c);l&&(d="if($event.target.composing)return;"+d);Ir(e,"value","("+t+")"),jr(e,u,d,null,!0),(s||o)&&jr(e,"blur","$forceUpdate()")}(e,r,i);else{if(!H.isReservedTag(a))return Yr(e,r,i),!1}return!0},text:function(e,t){t.value&&Ir(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ir(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:va,mustUseProp:Ln,canBeLeftOpenTag:_a,isReservedTag:Xn,getTagNamespace:Qn,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(vo)},So=E((function(e){return g("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function Eo(e,t){e&&(_o=So(t.staticKeys||""),yo=t.isReservedTag||D,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!yo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(_o)))}(t),1===t.type){if(!yo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,To=/\([^)]*?\);*$/,Oo=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Co={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},xo={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ko=function(e){return"if("+e+")return null;"},Mo={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ko("$event.target !== $event.currentTarget"),ctrl:ko("!$event.ctrlKey"),shift:ko("!$event.shiftKey"),alt:ko("!$event.altKey"),meta:ko("!$event.metaKey"),left:ko("'button' in $event && $event.button !== 0"),middle:ko("'button' in $event && $event.button !== 1"),right:ko("'button' in $event && $event.button !== 2")};function Ao(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var a in e){var o=Ro(e[a]);e[a]&&e[a].dynamic?i+=a+","+o+",":r+='"'+a+'":'+o+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Ro(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return Ro(e)})).join(",")+"]";var t=Oo.test(e.value),n=wo.test(e.value),r=Oo.test(e.value.replace(To,""));if(e.modifiers){var i="",a="",o=[];for(var s in e.modifiers)if(Mo[s])a+=Mo[s],Co[s]&&o.push(s);else if("exact"===s){var l=e.modifiers;a+=ko(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else o.push(s);return o.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Io).join("&&")+")return null;"}(o)),a&&(i+=a),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Io(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Co[e],r=xo[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Do={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:I},No=function(e){this.options=e,this.warn=e.warn||Ar,this.transforms=Rr(e.modules,"transformCode"),this.dataGenFns=Rr(e.modules,"genData"),this.directives=A(A({},Do),e.directives);var t=e.isReservedTag||D;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Lo(e,t){var n=new No(t);return{render:"with(this){return "+(e?Po(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Po(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return jo(e,t);if(e.once&&!e.onceProcessed)return Fo(e,t);if(e.for&&!e.forProcessed)return Ho(e,t);if(e.if&&!e.ifProcessed)return Bo(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Wo(e,t),i="_t("+n+(r?","+r:""),a=e.attrs||e.dynamicAttrs?$o((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:T(e.name),value:e.value,dynamic:e.dynamic}}))):null,o=e.attrsMap["v-bind"];!a&&!o||r||(i+=",null");a&&(i+=","+a);o&&(i+=(a?"":",null")+","+o);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Wo(t,n,!0);return"_c("+e+","+Uo(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Uo(e,t));var i=e.inlineTemplate?null:Wo(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var a=0;a>>0}(o):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var a=function(e,t){var n=e.children[0];0;if(n&&1===n.type){var r=Lo(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);a&&(n+=a+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+$o(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Yo(e){return 1===e.type&&("slot"===e.tag||e.children.some(Yo))}function Vo(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Bo(e,t,Vo,"null");if(e.for&&!e.forProcessed)return Ho(e,t,Vo);var r="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Wo(e,t)||"undefined")+":undefined":Wo(e,t)||"undefined":Po(e,t))+"}",a=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+a+"}"}function Wo(e,t,n,r,i){var a=e.children;if(a.length){var o=a[0];if(1===a.length&&o.for&&"template"!==o.tag&&"slot"!==o.tag){var s=n?t.maybeComponent(o)?",1":",0":"";return""+(r||Po)(o,t)+s}var l=n?function(e,t){for(var n=0,r=0;r':'
',Zo.innerHTML.indexOf(" ")>0}var ns=!!$&&ts(!1),rs=!!$&&ts(!0),is=E((function(e){var t=er(e);return t&&t.innerHTML})),as=On.prototype.$mount;On.prototype.$mount=function(e,t){if((e=e&&er(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=is(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){0;var i=es(r,{outputSourceRange:!1,shouldDecodeNewlines:ns,shouldDecodeNewlinesForHref:rs,delimiters:n.delimiters,comments:n.comments},this),a=i.render,o=i.staticRenderFns;n.render=a,n.staticRenderFns=o}}return as.call(this,e,t)},On.compile=es,t.default=On}.call(this,n(225),n(485).setImmediate)},function(e,t,n){var r=n(429),i=Function.prototype.call;e.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},function(e,t,n){"use strict";function r(e){return null==e?0:e.length||1}function i(e){return e}n.r(t);var a=function(){function e(e,t,n,r,a,o){this._old=e,this._new=t,this._oldKeyGetter=n||i,this._newKeyGetter=r||i,this.context=a,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),a=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,o)}else 1===u?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},a=[],o=[];this._initIndexMap(e,n,a,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var s=0;s1&&1===f)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===d&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===d&&1===f)this._update&&this._update(c,u),i[l]=null;else if(d>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(d>1)for(var h=0;h1)for(var s=0;s0?"top":"bottom",r="center"):Object(d.isRadianAroundZero)(a-v)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=a>0&&a0?"right":"left":n>0?"left":"right"),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),y={axisLine:function(e,t,n,i){var o=t.get(["axisLine","show"]);if("auto"===o&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),o){var s=t.axis.getExtent(),l=i.transform,u=[s[0],0],c=[s[1],0];l&&(Object(p.applyTransform)(u,u,l),Object(p.applyTransform)(c,c,l));var d=Object(r.extend)({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),h=new a.default({subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:d,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});h.anid="line",n.add(h);var m=t.get(["axisLine","symbol"]);if(null!=m){var g=t.get(["axisLine","symbolSize"]);Object(r.isString)(m)&&(m=[m,m]),(Object(r.isString)(g)||Object(r.isNumber)(g))&&(g=[g,g]);var v=Object(f.normalizeSymbolOffset)(t.get(["axisLine","symbolOffset"])||0,g),_=g[0],y=g[1];Object(r.each)([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-c[0])*(u[0]-c[0])+(u[1]-c[1])*(u[1]-c[1]))}],(function(t,r){if("none"!==m[r]&&null!=m[r]){var i=Object(f.createSymbol)(m[r],-_/2,-y/2,_,y,d.stroke,!0),a=t.r+t.offset;i.attr({rotation:t.rotate,x:u[0]+a*Math.cos(e.rotation),y:u[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(e,t,n,i){var a=function(e,t,n,i){var a=n.axis,o=n.getModel("axisTick"),s=o.get("show");"auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick"));if(!s||a.scale.isBlank())return;for(var l=o.getModel("lineStyle"),u=i.tickDirection*o.get("length"),c=w(a.getTicksCoords(),t.transform,u,Object(r.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),d=0;dy[1]?-1:1,S=["start"===h?y[0]-b*g:"end"===h?y[1]+b*g:(y[0]+y[1])/2,E(h)?e.labelOffset+p*g:0],w=t.get("nameRotate");null!=w&&(w=w*v/180),E(h)?c=_.innerTextLayout(e.rotation,null!=w?w:e.rotation,p):(c=function(e,t,n,r){var i,a,o=Object(d.remRadian)(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;Object(d.isRadianAroundZero)(o-v/2)?(a=l?"bottom":"top",i="center"):Object(d.isRadianAroundZero)(o-1.5*v)?(a=l?"top":"bottom",i="center"):(a="middle",i=o<1.5*v&&o>v/2?l?"left":"right":l?"right":"left");return{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,h,w||0,y),null!=(f=e.axisNameAvailableWidth)&&(f=Math.abs(f/Math.sin(c.rotation)),!isFinite(f)&&(f=null)));var T=m.getFont(),O=t.get("nameTruncate",!0)||{},C=O.ellipsis,x=Object(r.retrieve)(e.nameTruncateMaxWidth,O.maxWidth,f),k=new o.default({x:S[0],y:S[1],rotation:c.rotation,silent:_.isLabelSilent(t),style:Object(u.createTextStyle)(m,{text:a,font:T,overflow:"truncate",width:x,ellipsis:C,fill:m.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:m.get("align")||c.textAlign,verticalAlign:m.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(s.setTooltipConfig({el:k,componentModel:t,itemName:a}),k.__fullText=a,k.anid="name",t.get("triggerEvent")){var M=_.makeAxisEventDataBase(t);M.targetType="axisName",M.name=a,Object(l.getECData)(k).eventData=M}i.add(k),k.updateTransform(),n.add(k),k.decomposeTransform()}}};function b(e){e&&(e.ignore=!0)}function S(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=h.identity([]);return h.rotate(i,i,-e.rotation),n.applyTransform(h.mul([],i,e.getLocalTransform())),r.applyTransform(h.mul([],i,t.getLocalTransform())),n.intersect(r)}}function E(e){return"middle"===e||"center"===e}function w(e,t,n,r,i){for(var o=[],s=[],l=[],u=0;u0&&void 0!==arguments[0]?arguments[0]:"common";i.has(e)||i.set(e,new Map);var t=i.get(e);function n(e,n){t.set(e,n)}function a(e){return t.get(e)}function o(e){return t.has(e)}function s(){return r(t.keys())}function l(){return r(t.values())}return{register:n,getItem:a,hasItem:o,getNames:s,getValues:l}}},function(e,t,n){"use strict";n.r(t),n.d(t,"DefaultDataProvider",(function(){return f})),n.d(t,"getRawSourceItemGetter",(function(){return m})),n.d(t,"getRawSourceDataCounter",(function(){return _})),n.d(t,"getRawSourceValueGetter",(function(){return S})),n.d(t,"retrieveRawValue",(function(){return w})),n.d(t,"retrieveRawAttr",(function(){return T}));var r,i,a,o,s,l=n(0),u=n(6),c=n(136),d=n(28),f=function(){function e(e,t){var n=Object(c.isSourceInstance)(e)?e:Object(c.createSourceFromSeriesDataOption)(e);this._source=n;var r=this._data=n.data;n.sourceFormat===d.SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=t,this._data=r),s(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;s=function(e,i,a){var s=a.sourceFormat,u=a.seriesLayoutBy,c=a.startIndex,f=a.dimensionsDefine,h=o[E(s,u)];if(Object(l.extend)(e,h),s===d.SOURCE_FORMAT_TYPED_ARRAY)e.getItem=t,e.count=r,e.fillStorage=n;else{var p=m(s,u);e.getItem=Object(l.bind)(p,null,i,c,f);var g=_(s,u);e.count=Object(l.bind)(g,null,i,c,f)}};var t=function(e,t){e-=this._offset,t=t||[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;au&&(u=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t=0&&(l[s]=+l[s].toFixed(p)),[l,f]}var l={min:Object(a.curry)(s,"min"),max:Object(a.curry)(s,"max"),average:Object(a.curry)(s,"average"),median:Object(a.curry)(s,"median")};function u(e,t){var n=e.getData(),r=e.coordinateSystem;if(t&&!function(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}(t)&&!Object(a.isArray)(t.coord)&&r){var i=r.dimensions,o=c(t,n,r,e);if((t=Object(a.clone)(t)).type&&l[t.type]&&o.baseAxis&&o.valueAxis){var s=Object(a.indexOf)(i,o.baseAxis.dim),u=Object(a.indexOf)(i,o.valueAxis.dim),d=l[t.type](n,o.baseDataDim,o.valueDataDim,s,u);t.coord=d[0],t.value=d[1]}else{for(var f=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],p=0;p<2;p++)l[f[p]]&&(f[p]=h(n,n.mapDimension(i[p]),f[p]));t.coord=f}}return t}function c(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(function(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function d(e,t){return!(e&&e.containData&&t.coord&&!function(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}(t))||e.containData(t.coord)}function f(e,t){return e?function(e,n,r,i){var a=i<2?e.coord&&e.coord[i]:e.value;return Object(o.parseDataValue)(a,t[i])}:function(e,n,r,i){return Object(o.parseDataValue)(e.value,t[i])}}function h(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}},function(e,t,n){var r=n(57),i=n(149),a=n(950),o=n(951),s=n(134),l=n(502),u=r.TypeError,c=Object.defineProperty,d=Object.getOwnPropertyDescriptor;t.f=i?o?function(e,t,n){if(s(e),t=l(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=d(e,t);r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=l(t),s(n),a)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw u("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";var r=n(73),i=n(272).filter;r({target:"Array",proto:!0,forced:!n(443)("filter")},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){"use strict";function r(e,t,n){switch(n){case"color":return e.getItemVisual(t,"style")[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,n);default:0}}function i(e,t){switch(t){case"color":return e.getVisual("style")[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:0}}function a(e,t,n,r){switch(n){case"color":e.ensureUniqueItemVisual(t,"style")[e.getVisual("drawType")]=r,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,n,r);break;default:0}}n.r(t),n.d(t,"getItemVisualFromData",(function(){return r})),n.d(t,"getVisualFromData",(function(){return i})),n.d(t,"setItemVisualFromData",(function(){return a}))},function(e,t,n){"use strict";n.r(t),n.d(t,"sortComparison",(function(){return o})),n.d(t,"toVisualValue",(function(){return s})),n.d(t,"createArrayAssertion",(function(){return c})),n.d(t,"toEmptyString",(function(){return d})),n.d(t,"unifyColumnValues",(function(){return f})),n.d(t,"intersectValues",(function(){return h}));n(89),n(58),n(15),n(273),n(12),n(305),n(16),n(17);var r=n(105),i=n(2),a=Object(r.getComparisonFunction)();function o(e,t){return"number"==typeof e&&"number"==typeof t?e-t:a(e,t)}function s(e,t){var n=e;return""===n&&(n="(".concat(t,")")),n}var l=new Set([1]).has(1),u=l&&"function"==typeof Array.from;function c(e){var t=e;return l&&(t=new Set(t)),function(e){return l?t.has(e):!!~t.indexOf(e)}}function d(e){return null==e?"":e}function f(e){var t=e;return t=(t=u?Array.from(new Set(t)):Object(i.arrayUnique)(t)).sort((function(e,t){return"number"==typeof e&&"number"==typeof t?e-t:e===t?0:e>t?1:-1}))}function h(e,t,n,r){var a,o=[],l=e===t;return l||(a=c(t)),Object(i.arrayEach)(e,(function(e){var t=!1;(l||a(e))&&(t=!0);var i={checked:t,value:e,visualValue:s(e,n)};r&&r(i),o.push(i)})),o}},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";n.r(t);var r=n(4),i=n(0),a=n(54),o=n(278),s=n(44),l=n(6),u=n(79);function c(e){Object(l.defaultEmphasis)(e,"label",["show"])}var d=Object(l.makeInner)(),f=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.createdBySelf=!1,n}return Object(r.__extends)(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._mergeOption(e,n,!1,!0)},t.prototype.isAnimationEnabled=function(){if(a.default.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,t){this._mergeOption(e,t,!1,!1)},t.prototype._mergeOption=function(e,t,n,r){var a=this.mainType;n||t.eachSeries((function(e){var n=e.get(this.mainType,!0),o=d(e)[a];n&&n.data?(o?o._mergeOption(n,t,!0):(r&&c(n),i.each(n.data,(function(e){e instanceof Array?(c(e[0]),c(e[1])):c(e)})),o=this.createMarkerModelFromSeries(n,this,t),i.extend(o,{mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0}),o.__hostSeries=e),d(e)[a]=o):d(e)[a]=null}),this)},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),a=r.getName(e);return Object(u.createTooltipMarkup)("section",{header:this.name,blocks:[Object(u.createTooltipMarkup)("nameValue",{name:a,value:i,noName:!a,noValue:null==i})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.getMarkerModelFromSeries=function(e,t){return d(e)[t]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(s.default);i.mixin(f,o.DataFormatMixin.prototype),t.default=f},function(e,t,n){"use strict";n.r(t);var r=n(0),i=n(1118),a=n(1119),o=Object(r.createHashMap)();t.default={registerMap:function(e,t,n){if(t.svg){var r=new i.GeoSVGResource(e,t.svg);o.set(e,r)}else{var s=t.geoJson||t.geoJSON;s&&!t.features?n=t.specialAreas:s=t;r=new a.GeoJSONResource(e,s,n);o.set(e,r)}},getGeoResource:function(e){return o.get(e)},getMapForUser:function(e){var t=o.get(e);return t&&"geoJSON"===t.type&&t.getMapForUser()},load:function(e,t,n){var r=o.get(e);if(r)return r.load(t,n)}}},function(e,t,n){"use strict";n.r(t),n.d(t,"createFloat32Array",(function(){return o}));var r=n(0),i="undefined"!=typeof Float32Array,a=i?Float32Array:Array;function o(e){return Object(r.isArray)(e)?i?new Float32Array(e):e:new a(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"ASC_SORT_STATE",(function(){return o})),n.d(t,"DESC_SORT_STATE",(function(){return s})),n.d(t,"HEADER_SPAN_CLASS",(function(){return l})),n.d(t,"areValidSortStates",(function(){return c})),n.d(t,"getNextSortOrder",(function(){return d})),n.d(t,"getHeaderSpanElement",(function(){return f})),n.d(t,"isFirstLevelColumnHeader",(function(){return h})),n.d(t,"wasHeaderClickedProperly",(function(){return p}));n(367),n(89),n(114),n(58),n(15),n(523),n(303),n(304),n(12),n(305),n(16),n(17);var r=n(26),i=n(3),a=n(27),o="asc",s="desc",l="colHeader";function u(e){if(Object(r.isUndefined)(e))return!1;var t=e.column,n=e.sortOrder;return Number.isInteger(t)&&[o,s].includes(n)}function c(e){if(!1===Array.isArray(e)||!1===e.every((function(e){return Object(i.isObject)(e)})))return!1;var t=e.map((function(e){return e.column}));return new Set(t).size===t.length&&e.every(u)}function d(e){if(e!==s)return e===o?s:o}function f(e){return e.querySelector(".".concat(l))}function h(e,t){if(e<0||!t.parentNode)return!1;var n=t.parentNode.parentNode.childNodes;return-1===Array.from(n).indexOf(t.parentNode)-n.length}function p(e,t,n){return-1===e&&t>=0&&!1===Object(a.isRightClick)(n)}},function(e,t,n){var r=n(57).TypeError;e.exports=function(e){if(null==e)throw r("Can't call method on "+e);return e}},function(e,t,n){var r=n(57),i=n(175),a=r.Object;e.exports=function(e){return a(i(e))}},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(282),a=n(69),o={},s=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return Object(r.__extends)(t,e),t.prototype.render=function(t,n,r,a){this.axisPointerClass&&i.fixValue(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=i.getAxisPointerModel(e);o?(this._axisPointer||(this._axisPointer=new a)).render(e,o,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){o[e]=t},t.getAxisPointerClass=function(e){return e&&o[e]},t.type="axis",t}(a.default);t.default=s},function(e,t,n){"use strict";n.r(t);var r=n(4),i=n(5),a=n(53),o=n(179),s=n(112),l=i.round,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return Object(r.__extends)(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return s.contain(e,this._extent)},t.prototype.normalize=function(e){return s.normalize(e,this._extent)},t.prototype.scale=function(e){return s.scale(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,a=[];if(!t)return a;n[0]1e4)return[];var s=a.length?a[a.length-1].value:r[1];return n[1]>s&&(e?a.push({value:l(s+t,i)}):a.push({value:n[1]})),a},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&dt[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();r.enableClassManagement(i),t.default=i},function(e,t,n){"use strict";function r(e,t){return e.type===t}n.r(t),n.d(t,"isCoordinateSystemType",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"EditorState",(function(){return h}));n(18),n(19),n(20),n(15),n(33),n(35),n(12),n(16),n(518),n(17);var r=n(13),i=n(26),a=n(3),o=n(1304);function s(e){return(s="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})(e)}function l(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;nn[2]&&(r=n[0],n[0]=n[2],n[2]=r),n[1]>n[3]&&(r=n[1],n[1]=n[3],n[3]=r)):n=[this.row,this.col,null,null],this.hot.populateFromArray(n[0],n[1],e,n[2],n[3],"edit")}},{key:"beginEditing",value:function(e,t){if(this.state===h.VIRGIN){if(this.hot.view.scrollViewport(new r.CellCoords(this.row,this.col)),this.state=h.EDITING,this.isInFullEditMode()){var n="string"==typeof e?e:Object(i.stringify)(this.originalValue);this.setValue(n)}this.open(t),this._opened=!0,this.focus(),this.hot.view.render(),this.hot.runHooks("afterBeginEditing",this.row,this.col)}}},{key:"finishEditing",value:function(e,t,n){var r,i=this;if(n){var a=this._closeCallback;this._closeCallback=function(e){a&&a(e),n(e),i.hot.view.render()}}if(!this.isWaiting())if(this.state!==h.VIRGIN){if(this.state===h.EDITING){if(e)return this.cancelChanges(),void this.hot.view.render();var o=this.getValue();r=this.hot.getSettings().trimWhitespace?[["string"==typeof o?String.prototype.trim.call(o||""):o]]:[[o]],this.state=h.WAITING,this.saveValue(r,t),this.hot.getCellValidator(this.cellProperties)?this.hot.addHookOnce("postAfterValidate",(function(e){i.state=h.FINISHED,i.discardEditor(e)})):(this.state=h.FINISHED,this.discardEditor(!0))}}else this.hot._registerTimeout((function(){i._fireCallbacks(!0)}))}},{key:"cancelChanges",value:function(){this.state=h.FINISHED,this.discardEditor()}},{key:"discardEditor",value:function(e){this.state===h.FINISHED&&(!1===e&&!0!==this.cellProperties.allowInvalid?(this.hot.selectCell(this.row,this.col),this.focus(),this.state=h.EDITING,this._fireCallbacks(!1)):(this.close(),this._opened=!1,this._fullEditMode=!1,this.state=h.VIRGIN,this._fireCallbacks(!0)))}},{key:"enableFullEditMode",value:function(){this._fullEditMode=!0}},{key:"isInFullEditMode",value:function(){return this._fullEditMode}},{key:"isOpened",value:function(){return this._opened}},{key:"isWaiting",value:function(){return this.state===h.WAITING}},{key:"getEditedCellsLayerClass",value:function(){switch(this.checkEditorSection()){case"right":return"ht_clone_right";case"left":return"ht_clone_left";case"bottom":return"ht_clone_bottom";case"bottom-right-corner":return"ht_clone_bottom_right_corner";case"bottom-left-corner":return"ht_clone_bottom_left_corner";case"top":return"ht_clone_top";case"top-right-corner":return"ht_clone_top_right_corner";case"top-left-corner":return"ht_clone_top_left_corner";default:return"ht_clone_master"}}},{key:"getEditedCell",value:function(){return this.hot.getCell(this.row,this.col,!0)}},{key:"checkEditorSection",value:function(){var e=this.hot.countRows(),t="";return this.row=e-this.hot.getSettings().fixedRowsBottom?t=this.coli&&(i+=h);var m=Math.atan2(l,o);if(m<0&&(m+=h),m>=r&&m<=i||m+h>=r&&m+h<=i)return u[0]=d,u[1]=f,c-n;var g=n*Math.cos(r)+e,v=n*Math.sin(r)+t,_=n*Math.cos(i)+e,y=n*Math.sin(i)+t,b=(g-o)*(g-o)+(v-l)*(v-l),S=(_-o)*(_-o)+(y-l)*(y-l);return b0){t=t/180*Math.PI,w.fromArray(e[0]),T.fromArray(e[1]),O.fromArray(e[2]),r.default.sub(C,w,T),r.default.sub(x,O,T);var n=C.len(),i=x.len();if(!(n<.001||i<.001)){C.scale(1/n),x.scale(1/i);var a=C.dot(x);if(Math.cos(t)1&&r.default.copy(A,O),A.toArray(e[1])}}}}function I(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,w.fromArray(e[0]),T.fromArray(e[1]),O.fromArray(e[2]),r.default.sub(C,T,w),r.default.sub(x,O,T);var i=C.len(),a=x.len();if(!(i<.001||a<.001))if(C.scale(1/i),x.scale(1/a),C.dot(t)=s)r.default.copy(A,O);else{A.scaleAndAdd(x,o/Math.tan(Math.PI/2-l));var u=O.x!==T.x?(A.x-T.x)/(O.x-T.x):(A.y-T.y)/(O.y-T.y);if(isNaN(u))return;u<0?r.default.copy(A,T):u>1&&r.default.copy(A,O)}A.toArray(e[1])}}}function D(e,t,n,r){var i="normal"===n,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get("smooth");o&&!0===o&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function N(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=d.dist(r[0],r[1]),a=d.dist(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=d.lerp([],r[1],r[0],o/i),l=d.lerp([],r[1],r[2],o/a),u=d.lerp([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&(l.during=u?Object(i.bind)(S,{el:t,userDuring:u}):null,l.setToFinal=!0,l.scope=e),Object(i.extend)(l,n[o]),l}function m(e,t,n,a){var s=(a=a||{}).dataIndex,m=a.isInit,v=a.clearStyle,y=n.isAnimationEnabled(),b=h(e),S=t.style;b.userDuring=t.during;var T={},O={};if(function(e,t,n){for(var r=0;r=0)){var p=e.getAnimationStyleProps(),m=p?p.style:null;if(m){!o&&(o=a.style={});var g=Object(i.keys)(n);for(d=0;d0&&e.animateFrom(C,x)}else!function(e,t,n,r,i){if(i){var a=p("update",e,t,r,n);a.duration>0&&e.animateFrom(i,a)}}(e,t,s||0,n,T);g(e,t),S?e.dirty():e.markRedraw()}function g(e,t){for(var n=h(e).leaveToProps,r=0;r=0){!s&&(s=a[e]={});var p=Object(i.keys)(l);for(f=0;f"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){var r=n(431),i=n(175);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";var r=n(339),i=n(158),a=n(77),o=n(516),s=n(675),l=n(134),u=n(175),c=n(1677),d=n(676),f=n(337),h=n(151),p=n(335),m=n(662),g=n(517),v=n(515),_=n(674),y=n(83),b=_.UNSUPPORTED_Y,S=Math.min,E=[].push,w=a(/./.exec),T=a(E),O=a("".slice);o("split",(function(e,t,n){var a;return a="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var a=h(u(this)),o=void 0===n?4294967295:n>>>0;if(0===o)return[];if(void 0===e)return[a];if(!s(e))return i(t,a,e,o);for(var l,c,d,f=[],p=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,_=new RegExp(e.source,p+"g");(l=i(v,_,a))&&!((c=_.lastIndex)>g&&(T(f,O(a,g,l.index)),l.length>1&&l.index=o));)_.lastIndex===l.index&&_.lastIndex++;return g===a.length?!d&&w(_,"")||T(f,""):T(f,O(a,g)),f.length>o?m(f,0,o):f}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:i(t,this,e,n)}:t,[function(t,n){var r=u(this),o=null==t?void 0:p(t,e);return o?i(o,t,r,n):i(a,h(r),t,n)},function(e,r){var i=l(this),o=h(e),s=n(a,i,o,r,a!==t);if(s.done)return s.value;var u=c(i,RegExp),p=i.unicode,m=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(b?"g":"y"),v=new u(b?"^(?:"+i.source+")":i,m),_=void 0===r?4294967295:r>>>0;if(0===_)return[];if(0===o.length)return null===g(v,o)?[o]:[];for(var y=0,E=0,w=[];E=0||a&&r.indexOf(a,l)<0)){var u=n.getShallow(l,t);null!=u&&(o[e[s][0]]=u)}}return o}}},function(e,t,n){"use strict";function r(e,t,n,r,o,s){e=e||0;var l=n[1]-n[0];if(null!=o&&(o=a(o,[0,l])),null!=s&&(s=Math.max(s,null!=o?o:0)),"all"===r){var u=Math.abs(t[1]-t[0]);u=a(u,[0,l]),o=s=a(u,[o,s]),r=0}t[0]=a(t[0],n),t[1]=a(t[1],n);var c=i(t,r);t[r]+=e;var d,f=o||0,h=n.slice();return c.sign<0?h[0]+=f:h[1]-=f,t[r]=a(t[r],h),d=i(t,r),null!=o&&(d.sign!==c.sign||d.spans&&(t[1-r]=t[r]+d.sign*s),t}function i(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function a(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"getDefaultLabel",(function(){return a})),n.d(t,"getDefaultInterpolatedLabel",(function(){return o}));var r=n(162),i=n(0);function a(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var a=Object(r.retrieveRawValue)(e,t,n[0]);return null!=a?a+"":null}if(i){for(var o=[],s=0;s=0&&r.push(t[o])}return r.join(" ")}},function(e,t,n){"use strict";n.r(t);n(524);var r=n(3),i=n(115),a=n(49),o=n(1),s=n(2),l=n(8);function u(e,t){for(var n=0;n1e-4)return p[0]=e-n,p[1]=t-i,m[0]=e+n,void(m[1]=t+i);if(c[0]=l(a)*n+e,c[1]=s(a)*i+t,d[0]=l(o)*n+e,d[1]=s(o)*i+t,g(p,c,d),v(m,c,d),(a%=u)<0&&(a+=u),(o%=u)<0&&(o+=u),a>o&&!h?o+=u:aa&&(f[0]=l(b)*n+e,f[1]=s(b)*i+t,g(p,f,p),v(m,f,m))}},function(e,t,n){"use strict";n.r(t),n.d(t,"CircleShape",(function(){return a}));var r=n(66),i=n(38),a=function(){this.cx=0,this.cy=0,this.r=0},o=function(e){function t(t){return e.call(this,t)||this}return Object(r.__extends)(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(i.default);o.prototype.type="circle",t.default=o},function(e,t,n){"use strict";function r(e){var t=e.coordinateSystem;if("view"!==t.type)return 1;var n=e.option.nodeScaleRatio,r=t.scaleX;return((t.getZoom()-1)*n+1)/r}function i(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}n.r(t),n.d(t,"getNodeGlobalScale",(function(){return r})),n.d(t,"getSymbolSize",(function(){return i}))},function(e,t,n){"use strict";n.r(t);n(108),n(245);var r=n(13),i=n(104);function a(){var e=u(["The merged cell declared at [",", ",'] has "rowspan" or "colspan" declared as \n "0", which is not supported. It cannot be added to the collection.']);return a=function(){return e},e}function o(){var e=u(["The merged cell declared at [",", ",'] has both "rowspan" \n and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.']);return o=function(){return e},e}function s(){var e=u(["The merged cell declared at [",", ","] is positioned (or positioned partially) \n outside of the table range. It was not added to the table, please fix your setup."]);return s=function(){return e},e}function l(){var e=u(["The merged cell declared with {row: ",", col: ",", rowspan: \n ",", colspan: ","} contains negative values, which is not supported. It \n will not be added to the collection."]);return l=function(){return e},e}function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function c(e,t){for(var n=0;n=t||e.row+e.rowspan-1>=t||e.col>=n||e.col+e.colspan-1>=n}}],(n=[{key:"normalize",value:function(e){var t=e.countRows(),n=e.countCols();this.row<0?this.row=0:this.row>t-1&&(this.row=t-1),this.col<0?this.col=0:this.col>n-1&&(this.col=n-1),this.row+this.rowspan>t-1&&(this.rowspan=t-this.row),this.col+this.colspan>n-1&&(this.colspan=n-this.col)}},{key:"includes",value:function(e,t){return this.row<=e&&this.col<=t&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=t}},{key:"includesHorizontally",value:function(e){return this.col<=e&&this.col+this.colspan-1>=e}},{key:"includesVertically",value:function(e){return this.row<=e&&this.row+this.rowspan-1>=e}},{key:"shift",value:function(e,t){var n=e[0]||e[1],r=t+Math.abs(e[0]||e[1])-1,i=e[0]?"colspan":"rowspan",a=e[0]?"col":"row",o=Math.min(t,r),s=Math.max(t,r),l=this[a],u=this[a]+this[i]-1;if(l>=t&&(this[a]+=n),n>0)t<=u&&t>l&&(this[i]+=n);else if(n<0){if(o<=l&&s>=u)return this.removed=!0,!1;if(l>=o&&l<=s){var c=s-l+1,d=Math.abs(n)-c;this[a]-=d+n,this[i]-=c}else if(l<=o&&u>=s)this[i]+=n;else if(l<=o&&u>=o&&uthis.row:"right"===t?e.col+e.colspan-1this.col:null)}},{key:"getLastRow",value:function(){return this.row+this.rowspan-1}},{key:"getLastColumn",value:function(){return this.col+this.colspan-1}},{key:"getRange",value:function(){return new r.CellRange(new r.CellCoords(this.row,this.col),new r.CellCoords(this.row,this.col),new r.CellCoords(this.getLastRow(),this.getLastColumn()))}}])&&c(t.prototype,n),u&&c(t,u),e}();t.default=d},function(e,t,n){"use strict";n.r(t),n.d(t,"init",(function(){return i})),n.d(t,"firstWalk",(function(){return a})),n.d(t,"secondWalk",(function(){return o})),n.d(t,"separation",(function(){return s})),n.d(t,"radialCoordinate",(function(){return l})),n.d(t,"getViewRect",(function(){return u}));var r=n(34);function i(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[t];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var a=r.length-1;a>=0;a--){var o=r[a];o.hierNode={defaultAncestor:null,ancestor:o,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(o)}}function a(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){!function(e){var t=e.children,n=t.length,r=0,i=0;for(;--n>=0;){var a=t[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}(e);var a=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=function(e,t,n,r){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,p=o.hierNode.modifier,m=s.hierNode.modifier;s=c(s),a=d(a),s&&a;){i=c(i),o=d(o),i.hierNode.ancestor=e;var g=s.hierNode.prelim+m-a.hierNode.prelim-u+r(s,a);g>0&&(h(f(s,e,n),e,g),u+=g,l+=g),m+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,p+=o.hierNode.modifier}s&&!c(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=m-l),a&&!d(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-p,n=e)}return n}(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function o(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function s(e){return arguments.length?e:p}function l(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function u(e,t){return r.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function c(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function d(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function f(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function h(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function p(e,t){return e.parentNode===t.parentNode?1:2}},function(e,t,n){"use strict";var r=n(771),i=n(1426),a=Object.prototype.toString;function o(e){return"[object Array]"===a.call(e)}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===a.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;n0&&(r.name=i+(o-1)),o++,t.set(i,o)}}(p),new c.SeriesDataSchema({source:e,dimensions:p,fullDimensionCount:m,dimensionOmitted:g})}function h(e,t,n){var r=t.data;if(n||r.hasOwnProperty(e)){for(var i=0;r.hasOwnProperty(e+i);)i++;e+=i}return t.set(e,!0),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return i}));var r=n(6);function i(){var e=Object(r.makeInner)();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===o&&a===s)&&"reset"}}},function(e,t,n){"use strict";n.r(t),n.d(t,"AxisModelCommonMixin",(function(){return r}));var r=function(){function e(){}return e.prototype.getNeedCrossZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return o}));var r=n(209),i=n(109),a=n(0);function o(e,t,n){t=Object(a.isArray)(t)&&{coordDimensions:t}||Object(a.extend)({encodeDefine:e.getEncode()},t);var o=e.getSource(),s=Object(r.default)(o,t).dimensions,l=new i.default(s,e);return l.initData(o,n),l}},function(e,t,n){"use strict";n.r(t);n(18),n(19),n(20),n(89),n(114),n(15),n(12),n(31),n(16),n(17);var r=n(1),i=n(88),a=n(106),o=n(536),s=n(537),l=n(539),u=n(63),c=n(1297),d=n(1298);function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]&&arguments[0],t=this.wot,n=t.wtOverlays,i=t.wtViewport,a=t.getSetting("totalRows"),l=t.getSetting("totalColumns"),c=t.getSetting("rowHeaders"),d=c.length,f=t.getSetting("columnHeaders"),h=f.length,p=!1,m=e;if(this.isMaster&&(this.holderOffset=Object(r.offset)(this.holder),m=i.createRenderCalculators(m),d&&!t.getSetting("fixedColumnsLeft"))){var g=n.leftOverlay.getScrollPosition(),v=this.correctHeaderWidth;this.correctHeaderWidth=g>0,v!==this.correctHeaderWidth&&(m=!1)}if(this.isMaster&&(p=n.prepareOverlays()),m)this.isMaster&&i.createVisibleCalculators(),n&&n.refresh(!0);else{this.isMaster?this.tableOffset=Object(r.offset)(this.TABLE):this.tableOffset=this.wot.cloneSource.wtTable.tableOffset;var _=a>0?this.getFirstRenderedRow():0,y=l>0?this.getFirstRenderedColumn():0;this.rowFilter=new s.default(_,a,h),this.columnFilter=new o.default(y,l,d);var b,S=!0;if(this.isMaster){this.alignOverlaysWithTrimmingContainer();var E={};this.wot.getSetting("beforeDraw",!0,E),S=!0!==E.skipRender}if(S)if(this.tableRenderer.setHeaderContentRenderers(c,f),(this.is(u.default.CLONE_BOTTOM)||this.is(u.default.CLONE_BOTTOM_LEFT_CORNER))&&this.tableRenderer.setHeaderContentRenderers(c,[]),this.resetOversizedRows(),this.tableRenderer.setViewportSize(this.getRenderedRowsCount(),this.getRenderedColumnsCount()).setFilters(this.rowFilter,this.columnFilter).render(),this.isMaster&&(b=this.wot.wtViewport.getWorkspaceWidth(),this.wot.wtViewport.containerWidth=null,this.markOversizedColumnHeaders()),this.adjustColumnHeaderHeights(),(this.isMaster||this.is(u.default.CLONE_BOTTOM))&&this.markOversizedRows(),this.isMaster){this.wot.wtViewport.createVisibleCalculators(),this.wot.wtOverlays.refresh(!1),this.wot.wtOverlays.applyToDOM();var w=Object(r.outerWidth)(this.hider),T=Object(r.outerWidth)(this.TABLE);0!==w&&T!==w&&(this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),b!==this.wot.wtViewport.getWorkspaceWidth()&&(this.wot.wtViewport.containerWidth=null,this.columnUtils.calculateWidths(),this.tableRenderer.renderer.colGroup.render()),this.wot.getSetting("onDraw",!0)}else this.is(u.default.CLONE_BOTTOM)&&this.wot.cloneSource.wtOverlays.adjustElementsSize()}return this.refreshSelections(m),this.isMaster&&(n.topOverlay.resetFixedPosition(),n.bottomOverlay.clone&&n.bottomOverlay.resetFixedPosition(),n.leftOverlay.resetFixedPosition(),n.topLeftCornerOverlay&&n.topLeftCornerOverlay.resetFixedPosition(),n.bottomLeftCornerOverlay&&n.bottomLeftCornerOverlay.clone&&n.bottomLeftCornerOverlay.resetFixedPosition()),p&&n.syncScrollWithMaster(),t.drawn=!0,this}},{key:"markIfOversizedColumnHeader",value:function(e){for(var t,n,i,a=this.wot.wtTable.columnFilter.renderedToSource(e),o=this.wot.getSetting("columnHeaders").length,s=this.wot.wtSettings.settings.defaultRowHeight,l=this.wot.getSetting("columnHeaderHeight")||[];o;)o-=1,t=this.wot.wtTable.getColumnHeaderHeight(o),(n=this.wot.wtTable.getColumnHeader(a,o))&&(i=Object(r.innerHeight)(n),(!t&&s=0)throw new Error("TR was expected to be rendered but is not");var s=o.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(n)];if(!s&&n>=0)throw new Error("TD or TH was expected to be rendered but is not");return s}},{key:"getColumnHeader",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.THEAD.childNodes[t];if(n)return n.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(e)]}},{key:"getRowHeader",value:function(e){if(0===this.columnFilter.sourceColumnToVisibleRowHeadedColumn(0))return null;var t=this.TBODY.childNodes[this.rowFilter.sourceToRendered(e)];return t?t.childNodes[0]:void 0}},{key:"getCoords",value:function(e){var t=e;if("TD"!==t.nodeName&&"TH"!==t.nodeName&&(t=Object(r.closest)(t,["TD","TH"])),null===t)return null;var n=t.parentNode,i=n.parentNode,o=Object(r.index)(n),s=t.cellIndex;return Object(r.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_TOP,t,this.wtRootElement)?"THEAD"===i.nodeName&&(o-=i.childNodes.length):o=Object(r.overlayContainsElement)(u.default.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_BOTTOM,t,this.wtRootElement)?this.wot.getSetting("totalRows")-i.childNodes.length+o:i===this.THEAD?this.rowFilter.visibleColHeadedRowToSourceRow(o):this.rowFilter.renderedToSource(o),s=Object(r.overlayContainsElement)(u.default.CLONE_TOP_LEFT_CORNER,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_LEFT,t,this.wtRootElement)||Object(r.overlayContainsElement)(u.default.CLONE_BOTTOM_LEFT_CORNER,t,this.wtRootElement)?this.columnFilter.offsettedTH(s):this.columnFilter.visibleRowHeadedColumnToSourceColumn(s),new a.default(o,s)}},{key:"markOversizedRows",value:function(){if(!this.wot.getSetting("externalRowCalculator")){var e,t,n,i,a,o=this.TBODY.childNodes.length;if(o*this.wot.wtSettings.settings.defaultRowHeight!=Object(r.innerHeight)(this.TBODY)-1||this.wot.getSetting("fixedRowsBottom"))for(;o;)o-=1,n=this.rowFilter.renderedToSource(o),e=this.getRowHeight(n),t=(a=(i=this.getTrForRow(n)).querySelector("th"))?Object(r.innerHeight)(a):Object(r.innerHeight)(i)-1,(!e&&this.wot.wtSettings.settings.defaultRowHeightthis.wot.getSetting("columnHeaders").length-1}},{key:"isRowHeaderLevelRendered",value:function(e){return e>this.wot.getSetting("rowHeaders").length-1}},{key:"isRowBeforeRenderedRows",value:function(e){var t=this.getFirstRenderedRow();return e<0&&(e=0),-1===t||ethis.getLastVisibleRow()}},{key:"isRowAfterRenderedRows",value:function(e){if(e<0){var t=this.wot.getSetting("columnHeaders").length+e;return this.isColumnHeaderLevelRendered(t)}return e>this.getLastRenderedRow()}},{key:"isColumnBeforeViewport",value:function(e){return this.columnFilter&&this.columnFilter.sourceToRendered(e)<0&&e>=0}},{key:"isColumnBeforeRenderedColumns",value:function(e){var t=this.getFirstRenderedColumn();return e<0&&(e=0),-1===t||ethis.getLastVisibleColumn()}},{key:"isColumnAfterRenderedColumns",value:function(e){if(e<0){var t=this.wot.getSetting("rowHeaders").length+e;return this.isRowHeaderLevelRendered(t)}return this.columnFilter&&e>this.getLastRenderedColumn()}},{key:"isLastRowFullyVisible",value:function(){return this.getLastVisibleRow()===this.getLastRenderedRow()}},{key:"isLastColumnFullyVisible",value:function(){return this.getLastVisibleColumn()===this.getLastRenderedColumn()}},{key:"allRowsInViewport",value:function(){return this.wot.getSetting("totalRows")===this.getVisibleRowsCount()}},{key:"allColumnsInViewport",value:function(){return this.wot.getSetting("totalColumns")===this.getVisibleColumnsCount()}},{key:"getRowHeight",value:function(e){return this.rowUtils.getHeight(e)}},{key:"getColumnHeaderHeight",value:function(e){return this.columnUtils.getHeaderHeight(e)}},{key:"getColumnWidth",value:function(e){return this.columnUtils.getWidth(e)}},{key:"getStretchedColumnWidth",value:function(e){return this.columnUtils.getStretchedColumnWidth(e)}},{key:"hasDefinedSize",value:function(){return this.hasTableHeight&&this.hasTableWidth}},{key:"isVisible",value:function(){return Object(r.isVisible)(this.TABLE)}},{key:"_modifyRowHeaderWidth",value:function(e){var t=Object(i.isFunction)(e)?e():null;return Array.isArray(t)?(t=f(t))[t.length-1]=this._correctRowHeaderWidth(t[t.length-1]):t=this._correctRowHeaderWidth(t),t}},{key:"_correctRowHeaderWidth",value:function(e){var t=e;return"number"!=typeof e&&(t=this.wot.getSetting("defaultColumnWidth")),this.correctHeaderWidth&&(t+=1),t}}])&&p(t.prototype,n),m&&p(t,m),e}();t.default=m},function(e,t,n){"use strict";n.r(t),n.d(t,"RecordTranslator",(function(){return o})),n.d(t,"registerIdentity",(function(){return u})),n.d(t,"getTranslator",(function(){return c})),n.d(t,"getIdentity",(function(){return d}));n(15),n(12),n(16),n(91),n(17);var r=n(345),i=n(3);function a(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:1,i=Object(r.arrayMax)(this._arrayMap)+1,o=[];return Object(a.rangeEach)(n-1,(function(n){o.push(t._arrayMap.splice(e+n,0,i+n))})),o},removeItems:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=[];if(Array.isArray(e)){var r=[].concat(this._arrayMap);e.sort((function(e,t){return t-e}));for(var i=0,a=e.length;i1&&void 0!==arguments[1]?arguments[1]:1,n=this.removeItems(e,t);function i(e){return Object(r.arrayReduce)(n,(function(t,n){var r=t;return e>n&&(r+=1),r}),0)}this._arrayMap=Object(r.arrayMap)(this._arrayMap,(function(e){var t=e,n=i(t);return n&&(t-=n),t}))},shiftItems:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._arrayMap=Object(r.arrayMap)(this._arrayMap,(function(t){var r=t;return r>=e&&(r+=n),r})),Object(a.rangeEach)(n-1,(function(n){t._arrayMap.splice(e+n,0,e+n)}))},swapIndexes:function(e,t){var n;(n=this._arrayMap).splice.apply(n,[t,0].concat(o(this._arrayMap.splice(e,1))))},clearMap:function(){this._arrayMap.length=0}};Object(i.defineGetter)(s,"MIXIN_NAME","arrayMapper",{writable:!1,enumerable:!1}),t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"SYSTEM_LANG",(function(){return c})),n.d(t,"registerLocale",(function(){return d})),n.d(t,"createLocaleObject",(function(){return f})),n.d(t,"getLocaleModel",(function(){return h})),n.d(t,"getDefaultLocaleModel",(function(){return p}));var r=n(64),i=n(54),a=n(1074),o=n(1075),s=n(0),l={},u={},c=i.default.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function d(e,t){e=e.toUpperCase(),u[e]=new r.default(t),l[e]=t}function f(e){if(Object(s.isString)(e)){var t=l[e.toUpperCase()]||{};return"ZH"===e||"EN"===e?Object(s.clone)(t):Object(s.merge)(Object(s.clone)(t),Object(s.clone)(l.EN),!1)}return Object(s.merge)(Object(s.clone)(e),Object(s.clone)(l.EN),!1)}function h(e){return u[e]}function p(){return u.EN}d("EN",a.default),d("ZH",o.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"createFromString",(function(){return S})),n.d(t,"extendFromString",(function(){return E})),n.d(t,"mergePath",(function(){return w})),n.d(t,"clonePath",(function(){return T}));var r=n(66),i=n(38),a=n(152),o=n(724),s=n(0),l=Math.sqrt,u=Math.sin,c=Math.cos,d=Math.PI;function f(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function h(e,t){return(e[0]*t[0]+e[1]*t[1])/(f(e)*f(t))}function p(e,t){return(e[0]*t[1]1&&(o*=l(b),s*=l(b));var S=(i===a?-1:1)*l((o*o*(s*s)-o*o*(y*y)-s*s*(_*_))/(o*o*(y*y)+s*s*(_*_)))||0,E=S*o*y/s,w=S*-s*_/o,T=(e+n)/2+c(v)*E-u(v)*w,O=(t+r)/2+u(v)*E+c(v)*w,C=p([1,0],[(_-E)/o,(y-w)/s]),x=[(_-E)/o,(y-w)/s],k=[(-1*_-E)/o,(-1*y-w)/s],M=p(x,k);if(h(x,k)<=-1&&(M=d),h(x,k)>=1&&(M=0),M<0){var A=Math.round(M/d*1e6)/1e6;M=2*d+A%2*d}g.addData(m,T,O,o,s,C,M,v,a)}var g=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,v=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.applyTransform=function(e){},t}(i.default);function y(e){return null!=e.setData}function b(e,t){var n=function(e){var t=new a.default;if(!e)return t;var n,r=0,i=0,o=r,s=i,l=a.default.CMD,u=e.match(g);if(!u)return t;for(var c=0;c0))}function g(e){return"string"==typeof e&&"none"!==e}function v(e){var t=e.fill;return null!=t&&"none"!==t}function _(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function y(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function b(e,t,n){var r=Object(a.createOrUpdateImage)(t.image,t.__image,n);if(Object(a.isImageReady)(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*c.RADIAN_TO_DEGREE),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],E=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function w(e,t,n,i,a){var o=!1;if(!i&&t===(n=n||{}))return!1;if(i||t.opacity!==n.opacity){C(e,a),o=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?r.DEFAULT_COMMON_STYLE.opacity:s}(i||t.blend!==n.blend)&&(o||(C(e,a),o=!0),e.globalCompositeOperation=t.blend||r.DEFAULT_COMMON_STYLE.blend);for(var l=0;l0&&(o=null===o?l:Math.min(o,l))}n[i]=o}}return n}(e),n=[];return Object(r.each)(e,(function(e){var r,a=e.coordinateSystem.getBaseAxis(),o=a.getExtent();if("category"===a.type)r=a.getBandWidth();else if("value"===a.type||"time"===a.type){var s=a.dim+"_"+a.index,c=t[s],d=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),h=Math.abs(f[1]-f[0]);r=c?d/h*c:d}else{var p=e.getData();r=Math.abs(o[1]-o[0])/p.count()}var m=Object(i.parsePercent)(e.get("barWidth"),r),g=Object(i.parsePercent)(e.get("barMaxWidth"),r),v=Object(i.parsePercent)(e.get("barMinWidth")||(_(e)?.5:1),r),y=e.get("barGap"),b=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:m,barMaxWidth:g,barMinWidth:v,barGap:y,barCategoryGap:b,axisKey:u(a),stackId:l(e)})})),h(n)}function h(e){var t={};Object(r.each)(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,a=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},o=a.stacks;t[r]=a;var s=e.stackId;o[s]||a.autoWidthCount++,o[s]=o[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!o[s].width&&(o[s].width=l,l=Math.min(a.remainedWidth,l),a.remainedWidth-=l);var u=e.barMaxWidth;u&&(o[s].maxWidth=u);var c=e.barMinWidth;c&&(o[s].minWidth=c);var d=e.barGap;null!=d&&(a.gap=d);var f=e.barCategoryGap;null!=f&&(a.categoryGap=f)}));var n={};return Object(r.each)(t,(function(e,t){n[t]={};var a=e.stacks,o=e.bandWidth,s=e.categoryGap;if(null==s){var l=Object(r.keys)(a).length;s=Math.max(35-4*l,15)+"%"}var u=Object(i.parsePercent)(s,o),c=Object(i.parsePercent)(e.gap,1),d=e.remainedWidth,f=e.autoWidthCount,h=(d-u)/(f+(f-1)*c);h=Math.max(h,0),Object(r.each)(a,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,d-=r+c*r,f--}else{var r=h;t&&tr&&(r=n),r!==h&&(e.width=r,d-=r+c*r,f--)}})),h=(d-u)/(f+(f-1)*c),h=Math.max(h,0);var p,m=0;Object(r.each)(a,(function(e,t){e.width||(e.width=h),p=e,m+=e.width*(1+c)})),p&&(m-=p.width*c);var g=-m/2;Object(r.each)(a,(function(e,r){n[t][r]=n[t][r]||{bandWidth:o,offset:g,width:e.width},g+=e.width*(1+c)}))})),n}function p(e,t,n){if(e&&t){var r=e[u(t)];return null!=r&&null!=n?r[l(n)]:r}}function m(e,t){var n=d(e,t),i=f(n);Object(r.each)(n,(function(e){var t=e.getData(),n=e.coordinateSystem.getBaseAxis(),r=l(e),a=i[u(n)][r],o=a.offset,s=a.width;t.setLayout({bandWidth:a.bandWidth,offset:o,size:s})}))}function g(e){return{seriesType:e,plan:Object(o.default)(),reset:function(e){if(v(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),l=t.getDimensionIndex(t.mapDimension(r.dim)),u=e.get("showBackground",!0),c=t.mapDimension(i.dim),d=t.getCalculationInfo("stackResultDimension"),f=Object(a.isDimensionStacked)(t,c)&&!!t.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),p=function(e,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,i),m=_(e),g=e.get("barMinHeight")||0,y=d&&t.getDimensionIndex(d),b=t.getLayout("size"),S=t.getLayout("offset");return{progress:function(e,t){for(var r,i=e.count,a=m&&Object(s.createFloat32Array)(3*i),c=m&&u&&Object(s.createFloat32Array)(3*i),d=m&&Object(s.createFloat32Array)(i),v=n.master.getRect(),_=h?v.width:v.height,E=t.getStore(),w=0;null!=(r=e.next());){var T=E.get(f?y:o,r),O=E.get(l,r),C=p,x=void 0;f&&(x=+T-E.get(o,r));var k=void 0,M=void 0,A=void 0,R=void 0;if(h){var I=n.dataToPoint([T,O]);if(f)C=n.dataToPoint([x,O])[0];k=C,M=I[1]+S,A=I[0]-C,R=b,Math.abs(A)0;)t=(n-1)%a,r=String.fromCharCode(65+t)+r,n=parseInt((n-t)/a,10);return r}function s(e){var t=0;if(e)for(var n=0,r=e.length-1;n0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e0&&void 0!==arguments[0]?arguments[0]:100,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,i=[];for(e=0;e0?r:n)(e)}},function(e,t,n){"use strict";var r=n(90);e.exports=function(e,t){return!!e&&r((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,n){var r=n(57),i=n(127),a=n(150),o=n(300),s=n(656),l=n(657),u=n(271),c=n(434).CONFIGURABLE,d=u.get,f=u.enforce,h=String(String).split("String");(e.exports=function(e,t,n,l){var u,d=!!l&&!!l.unsafe,p=!!l&&!!l.enumerable,m=!!l&&!!l.noTargetGet,g=l&&void 0!==l.name?l.name:t;i(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!a(n,"name")||c&&n.name!==g)&&o(n,"name",g),(u=f(n)).source||(u.source=h.join("string"==typeof g?g:""))),e!==r?(d?!m&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return i(this)&&d(this).source||l(this)}))},function(e,t,n){var r=n(73),i=n(176),a=n(437);r({target:"Object",stat:!0,forced:n(83)((function(){a(1)}))},{keys:function(e){return a(i(e))}})},function(e,t,n){"use strict";n.r(t);var r=n(0),i={},a=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(e,t){var n=[];r.each(i,(function(r,i){var a=r.create(e,t);n=n.concat(a||[])})),this._coordinateSystems=n},e.prototype.update=function(e,t){r.each(this._coordinateSystems,(function(n){n.update&&n.update(e,t)}))},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(e,t){i[e]=t},e.get=function(e){return i[e]},e}();t.default=a},function(e,t,n){"use strict";n.r(t),n.d(t,"createGridClipPath",(function(){return l})),n.d(t,"createPolarClipPath",(function(){return u})),n.d(t,"createClipPath",(function(){return c}));var r=n(74),i=n(24),a=n(163),o=n(5),s=n(0);function l(e,t,n,a,o){var l=e.getArea(),u=l.x,c=l.y,d=l.width,f=l.height,h=n.get(["lineStyle","width"])||2;u-=h/2,c-=h/2,d+=h,f+=h,u=Math.floor(u),d=Math.round(d);var p=new r.default({shape:{x:u,y:c,width:d,height:f}});if(t){var m=e.getBaseAxis(),g=m.isHorizontal(),v=m.inverse;g?(v&&(p.shape.x+=d),p.shape.width=0):(v||(p.shape.y+=f),p.shape.height=0);var _=Object(s.isFunction)(o)?function(e){o(e,p)}:null;i.initProps(p,{shape:{width:d,height:f,x:u,y:c}},n,null,a,_)}return p}function u(e,t,n){var r=e.getArea(),s=Object(o.round)(r.r0,1),l=Object(o.round)(r.r,1),u=new a.default({shape:{cx:Object(o.round)(e.cx,1),cy:Object(o.round)(e.cy,1),r0:s,r:l,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});t&&("angle"===e.getBaseAxis().dim?u.shape.endAngle=r.startAngle:u.shape.r=s,i.initProps(u,{shape:{endAngle:r.endAngle,r:l}},n));return u}function c(e,t,n,r,i){return e?"polar"===e.type?u(e,t,n):"cartesian2d"===e.type?l(e,t,n,r,i):null:null}},function(e,t,n){"use strict";n.r(t),n.d(t,"operations",(function(){return r})),n.d(t,"getOperationFunc",(function(){return i})),n.d(t,"getOperationName",(function(){return a})),n.d(t,"registerOperation",(function(){return o}));n(193);var r={};function i(e){if(!r[e])throw Error('Operation with id "'.concat(e,'" does not exist.'));var t=r[e].func;return function(e,n){return t(e,n)}}function a(e){return r[e].name}function o(e,t,n){r[e]={name:t,func:n}}},function(e,t,n){"use strict";n.r(t),n.d(t,"createVisualMappings",(function(){return l})),n.d(t,"replaceVisualOption",(function(){return u})),n.d(t,"applyVisual",(function(){return c})),n.d(t,"incrementalApplyVisual",(function(){return d}));var r=n(0),i=n(125),a=n(168),o=r.each;function s(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function l(e,t,n){var a={};return o(t,(function(t){var s,l=a[t]=((s=function(){}).prototype.__hidden=s.prototype,new s);o(e[t],(function(e,a){if(i.default.isValidType(a)){var o={type:a,visual:e};n&&n(o,t),l[a]=new i.default(o),"opacity"===a&&((o=r.clone(o)).type="colorAlpha",l.__hidden.__alphaForOpacity=new i.default(o))}}))})),a}function u(e,t,n){var i;r.each(n,(function(e){t.hasOwnProperty(e)&&s(t[e])&&(i=!0)})),i&&r.each(n,(function(n){t.hasOwnProperty(n)&&s(t[n])?e[n]=r.clone(t[n]):delete e[n]}))}function c(e,t,n,o,s,l){var u,c={};function d(e){return Object(a.getItemVisualFromData)(n,u,e)}function f(e,t){Object(a.setItemVisualFromData)(n,u,e,t)}function h(e,r){u=null==l?e:r;var i=n.getRawDataItem(u);if(!i||!1!==i.visualMap)for(var a=o.call(s,e),h=t[a],p=c[a],m=0,g=p.length;mt&&a>r||ai?s:0}n.r(t),n.d(t,"default",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"WORKING_SPACE_ALL",(function(){return r})),n.d(t,"WORKING_SPACE_TOP",(function(){return i})),n.d(t,"WORKING_SPACE_BOTTOM",(function(){return a}));var r=0,i=1,a=2},function(e,t,n){var r=n(97);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(23),i=n(226),a=n(90);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],o={};o[e]=t(n),r(r.S+r.F*a((function(){n(1)})),"Object",o)}},function(e,t,n){var r=n(227),i=n(425),a=n(141),o=n(120),s=n(645);e.exports=function(e,t){var n=1==e,l=2==e,u=3==e,c=4==e,d=6==e,f=5==e||d,h=t||s;return function(t,s,p){for(var m,g,v=a(t),_=i(v),y=r(s,p,3),b=o(_.length),S=0,E=n?h(t,b):l?h(t,0):void 0;b>S;S++)if((f||S in _)&&(g=y(m=_[S],S,v),e))if(n)E[S]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return S;case 2:E.push(m)}else if(c)return!1;return d?-1:u||c?c:E}}},function(e,t,n){"use strict";n(513)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(971))},function(e,t,n){var r=n(73),i=n(961),a=n(83),o=n(133),s=n(439).onFreeze,l=Object.freeze;r({target:"Object",stat:!0,forced:a((function(){l(1)})),sham:!i},{freeze:function(e){return l&&o(e)?l(s(e)):e}})},function(e,t,n){"use strict";t.__esModule=!0,t.isEmpty=t.isEqual=t.arrayEquals=t.looseEqual=t.capitalize=t.kebabCase=t.autoprefixer=t.isFirefox=t.isEdge=t.isIE=t.coerceTruthyValueToArray=t.arrayFind=t.arrayFindIndex=t.escapeRegexpString=t.valueEquals=t.generateId=t.getValueByPath=void 0;var r="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.noop=function(){},t.hasOwn=function(e,t){return l.call(e,t)},t.toObject=function(e){for(var t={},n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return String(e).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=t.arrayFindIndex=function(e,t){for(var n=0;n!==e.length;++n)if(t(e[n]))return n;return-1},d=(t.arrayFind=function(e,t){var n=c(e,t);return-1!==n?e[n]:void 0},t.coerceTruthyValueToArray=function(e){return Array.isArray(e)?e:e?[e]:[]},t.isIE=function(){return!o.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},t.isEdge=function(){return!o.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},t.isFirefox=function(){return!o.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},t.autoprefixer=function(e){if("object"!==(void 0===e?"undefined":r(e)))return e;var t=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var r=e[n];n&&r&&t.forEach((function(t){e[t+n]=r}))})),e},t.kebabCase=function(e){var t=/([^-])([A-Z])/g;return e.replace(t,"$1-$2").replace(t,"$1-$2").toLowerCase()},t.capitalize=function(e){return(0,s.isString)(e)?e.charAt(0).toUpperCase()+e.slice(1):e},t.looseEqual=function(e,t){var n=(0,s.isObject)(e),r=(0,s.isObject)(t);return n&&r?JSON.stringify(e)===JSON.stringify(t):!n&&!r&&String(e)===String(t)}),f=t.arrayEquals=function(e,t){if(t=t||[],(e=e||[]).length!==t.length)return!1;for(var n=0;n=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return a},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t.default=a},function(e,t,n){"use strict";n.r(t);var r=n(42),i=n(24),a=n(14),o=n(281),s=n(0),l=n(25);function u(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function c(e){return null==e||Object(s.isObject)(e)||(e={isIgnore:e}),e||{}}function d(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(l.getLabelStatesModels)(t),cursorStyle:t.get("cursor")}}var f=function(){function e(e){this.group=new r.default,this._SymbolCtor=e||o.default}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=c(t);var n=this.group,r=e.hostModel,a=this._data,o=this._SymbolCtor,s=t.disableAnimation,l=d(e),f={disableAnimation:s},h=t.getSymbolPoint||function(t){return e.getItemLayout(t)};a||n.removeAll(),e.diff(a).add((function(r){var i=h(r);if(u(e,i,r,t)){var a=new o(e,r,l,f);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,d){var p=a.getItemGraphicEl(d),m=h(c);if(u(e,m,c,t)){var g=e.getItemVisual(c,"symbol")||"circle",v=p&&p.getSymbolType&&p.getSymbolType();if(!p||v&&v!==g)n.remove(p),(p=new o(e,c,l,f)).setPosition(m);else{p.updateData(e,c,l,f);var _={x:m[0],y:m[1]};s?p.attr(_):i.updateProps(p,_,r)}n.add(p),e.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(e){var t=a.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}))})).execute(),this._getSymbolPoint=h,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=d(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var i=e.start;i=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}();t.default=r},function(e,t,n){"use strict";function r(e){return{seriesType:e,reset:function(e,t){var n=t.findComponents({mainType:"legend"});if(n&&n.length){var r=e.getData();r.filterSelf((function(e){for(var t=r.getName(e),i=0;i3?1.4:i>1?1.2:1.1;u(this,"zoom","zoomOnMouseWheel",e,{scale:r>0?s:1/s,originX:a,originY:o,isAvailableBehavior:null})}if(n){var l=Math.abs(r);u(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:a,originY:o,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){o.isTaken(this._zr,"globalPan")||u(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(i.default);function u(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(a.stop(r.event),c(e,t,n,r,i))}function c(e,t,n,r,i){i.isAvailableBehavior=Object(s.bind)(d,null,n,r),e.trigger(t,i)}function d(e,t,n){var r=n[e];return!e||r&&(!Object(s.isString)(r)||t.event[r+"Key"])}t.default=l},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return a}));var r=n(1296);function i(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];e?Object(r.selectElementIfAllowed)(this.TEXTAREA):(this.TEXTAREA.select(),Object(r.setCaretPosition)(this.TEXTAREA,this.TEXTAREA.value.length))}},{key:"createElements",value:function(){var e=this.hot.rootDocument;this.TEXTAREA=e.createElement("TEXTAREA"),this.TEXTAREA.tabIndex=-1,Object(r.addClass)(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),Object(r.addClass)(this.TEXTAREA_PARENT,"handsontableInputHolder"),Object(r.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&Object(r.removeClass)(this.TEXTAREA_PARENT,this.layerClass),Object(r.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}},{key:"hideEditableElement",value:function(){(Object(s.isIE)()||Object(s.isEdge)())&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",Object(r.hasClass)(this.TEXTAREA_PARENT,this.layerClass)&&Object(r.removeClass)(this.TEXTAREA_PARENT,this.layerClass),Object(r.addClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")}},{key:"showEditableElement",value:function(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle.right="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";var e=this.TEXTAREA_PARENT.childNodes,t=!1;Object(i.rangeEach)(e.length-1,(function(n){var i=e[n];if(Object(r.hasClass)(i,"handsontableEditor"))return t=!0,!1})),Object(r.hasClass)(this.TEXTAREA_PARENT,"ht_editor_hidden")&&Object(r.removeClass)(this.TEXTAREA_PARENT,"ht_editor_hidden"),t?(this.layerClass="ht_editor_visible",Object(r.addClass)(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),Object(r.addClass)(this.TEXTAREA_PARENT,this.layerClass))}},{key:"refreshValue",value:function(){var e=this.hot.toPhysicalRow(this.row),t=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=t,this.setValue(t),this.refreshDimensions()}},{key:"refreshDimensions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this.state===l.EditorState.EDITING||e)if(this.TD=this.getEditedCell(),this.TD){var t,n=this.hot.view.wt,i=n.wtOverlays,a=n.wtViewport,o=Object(r.offset)(this.TD),s=Object(r.offset)(this.hot.rootElement),u=i.topOverlay.holder,c=i.leftOverlay.holder,d=this.hot.countRows(),f=u!==this.hot.rootWindow?u.scrollTop:0,h=c!==this.hot.rootWindow?c.scrollLeft:0,p=this.checkEditorSection(),m=["","left"].includes(p)?f:0,g=["","top","bottom"].includes(p)?h:0,v=o.top===s.top?0:1,_=this.hot.getSettings(),y=this.hot.hasColHeaders(),b=this.TD.style.backgroundColor,S=o.top-s.top-v-m,E=o.left-s.left-1-g;switch(p){case"top":t=Object(r.getCssTransform)(i.topOverlay.clone.wtTable.holder.parentNode);break;case"left":t=Object(r.getCssTransform)(i.leftOverlay.clone.wtTable.holder.parentNode);break;case"top-left-corner":t=Object(r.getCssTransform)(i.topLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom-left-corner":t=Object(r.getCssTransform)(i.bottomLeftCornerOverlay.clone.wtTable.holder.parentNode);break;case"bottom":t=Object(r.getCssTransform)(i.bottomOverlay.clone.wtTable.holder.parentNode)}(y&&0===this.hot.getSelectedLast()[0]||_.fixedRowsBottom&&this.hot.getSelectedLast()[0]===d-_.fixedRowsBottom)&&(S+=1),0===this.hot.getSelectedLast()[1]&&(E+=1),t&&-1!==t?this.textareaParentStyle[t[0]]=t[1]:Object(r.resetCssTransform)(this.TEXTAREA_PARENT),this.textareaParentStyle.top="".concat(S,"px"),this.textareaParentStyle.left="".concat(E,"px"),this.showEditableElement();var w=a.rowsRenderCalculator.startPosition,T=a.columnsRenderCalculator.startPosition,O=i.leftOverlay.getScrollPosition(),C=i.topOverlay.getScrollPosition(),x=Object(r.getScrollbarWidth)(this.hot.rootDocument),k=this.TD.offsetTop+w-C,M=this.TD.offsetLeft+T-O,A=Object(r.innerWidth)(this.TD)-8,R=Object(r.hasVerticalScrollbar)(u)?x:0,I=Object(r.hasHorizontalScrollbar)(c)?x:0,D=this.hot.view.maximumVisibleElementWidth(M)-9-R,N=this.TD.scrollHeight+1,L=Math.max(this.hot.view.maximumVisibleElementHeight(k)-I,23),P=Object(r.getComputedStyle)(this.TD,this.hot.rootWindow);this.TEXTAREA.style.fontSize=P.fontSize,this.TEXTAREA.style.fontFamily=P.fontFamily,this.TEXTAREA.style.backgroundColor=b,this.autoResize.init(this.TEXTAREA,{minHeight:Math.min(N,L),maxHeight:L,minWidth:Math.min(A,D),maxWidth:D},!0)}else e||this.close()}},{key:"bindEvents",value:function(){var e=this;this.eventManager.addEventListener(this.TEXTAREA,"cut",(function(e){return Object(d.stopPropagation)(e)})),this.eventManager.addEventListener(this.TEXTAREA,"paste",(function(e){return Object(d.stopPropagation)(e)})),this.addHook("afterScrollHorizontally",(function(){return e.refreshDimensions()})),this.addHook("afterScrollVertically",(function(){return e.refreshDimensions()})),this.addHook("afterColumnResize",(function(){e.refreshDimensions(),e.focus()})),this.addHook("afterRowResize",(function(){e.refreshDimensions(),e.focus()}))}},{key:"allowKeyEventPropagation",value:function(){}},{key:"destroy",value:function(){this.eventManager.destroy(),this.clearHooks()}},{key:"onBeforeKeyDown",value:function(e){var t=(e.ctrlKey||e.metaKey)&&!e.altKey;if(e.target===this.TEXTAREA&&!Object(d.isImmediatePropagationStopped)(e)){switch(e.keyCode){case c.KEY_CODES.ARROW_RIGHT:case c.KEY_CODES.ARROW_LEFT:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Object(d.stopImmediatePropagation)(e));break;case c.KEY_CODES.ARROW_UP:case c.KEY_CODES.ARROW_DOWN:this.isInFullEditMode()&&(this.isWaiting()||this.allowKeyEventPropagation(e.keyCode)||Object(d.stopImmediatePropagation)(e));break;case c.KEY_CODES.ENTER:var n=this.hot.selection.isMultiple();if(t&&!n||e.altKey){if(this.isOpened()){var i=Object(r.getCaretPosition)(this.TEXTAREA),a=this.getValue(),o="".concat(a.slice(0,i),"\n").concat(a.slice(i));this.setValue(o),Object(r.setCaretPosition)(this.TEXTAREA,i+1)}else this.beginEditing("".concat(this.originalValue,"\n"));Object(d.stopImmediatePropagation)(e)}e.preventDefault();break;case c.KEY_CODES.BACKSPACE:case c.KEY_CODES.DELETE:case c.KEY_CODES.HOME:case c.KEY_CODES.END:Object(d.stopImmediatePropagation)(e)}-1===[c.KEY_CODES.ARROW_UP,c.KEY_CODES.ARROW_RIGHT,c.KEY_CODES.ARROW_DOWN,c.KEY_CODES.ARROW_LEFT].indexOf(e.keyCode)&&this.autoResize.resize(String.fromCharCode(e.keyCode))}}}])&&h(n.prototype,a),_&&h(n,_),t}(l.default);t.default=_},function(e,t,n){"use strict";n.r(t),n.d(t,"KEY",(function(){return r})),n.d(t,"default",(function(){return i}));var r="---------";function i(){return{name:r}}},function(e,t,n){"use strict";n.r(t);n(18),n(19),n(20),n(58),n(15),n(12),n(92),n(31),n(16),n(445),n(155),n(191),n(524),n(17);var r=n(138),i=n(2),a=n(3),o=n(115),s=n(95);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e))&&"[object Arguments]"!==Object.prototype.toString.call(e))return;var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function u(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return Object(i.arrayEach)(this.cells,(function(e){null!=n&&t._translateCell(e,"row",n,a.row),null!=r&&t._translateCell(e,"column",r,a.column)})),this}},{key:"toString",value:function(){var e=this,t=this.expression.replace(p,(function(t,n,i){var a=-1===t.indexOf(":"),o=t,s=t,l=null;a&&(s=c.test(n)?n:i);var u=e._searchCell(s);return u&&(l=u.refError?Object(r.error)(r.ERROR_REF):u.toLabel(),o=a?t.replace(s,l):l),o}));return t.startsWith("=")||(t="=".concat(t)),t}},{key:"_translateCell",value:function(e,t,n,r){var i=e.start,a=e.end,o=i[t].index,s=a[t].index,u=n,c=n,d=!1;if(this.customModifier){var f=l(this.customModifier(e,t,n,r),3);u=f[0],c=f[1],d=f[2]}else i[t].isAbsolute&&(u=0),a[t].isAbsolute&&(c=0);u&&!d&&(o+u<0&&(d=!0),i[t].index=Math.max(o+u,0)),c&&!d&&(s+c<0&&(d=!0),a[t].index=Math.max(s+c,0)),d&&(e.refError=!0)}},{key:"_extractCells",value:function(){var e=this,t=this.expression.match(f);t&&Object(i.arrayEach)(t,(function(t){var n=t.match(d);if(n){var i=l(Object(r.extractLabel)(n[0]),2),a=i[0],o=i[1];e.cells.push(e._createCell({row:a,column:o},{row:a,column:o},n[0]))}}))}},{key:"_extractCellsRange",value:function(){var e=this,t=this.expression.match(h);t&&Object(i.arrayEach)(t,(function(t){var n=l(t.split(":"),2),i=n[0],a=n[1],o=l(Object(r.extractLabel)(i),2),s=o[0],u=o[1],c=l(Object(r.extractLabel)(a),2),d={row:s,column:u},f={row:c[0],column:c[1]};e.cells.push(e._createCell(d,f,t))}))}},{key:"_searchCell",value:function(e){return l(Object(i.arrayFilter)(this.cells,(function(t){return t.origLabel===e})),1)[0]||null}},{key:"_createCell",value:function(e,t,n){return{start:e,end:t,origLabel:n,type:-1===n.indexOf(":")?"cell":"range",refError:!1,toLabel:function(){var e=Object(r.toLabel)(this.start.row,this.start.column);return"range"===this.type&&(e+=":".concat(Object(r.toLabel)(this.end.row,this.end.column))),e}}}}])&&u(t.prototype,n),a&&u(t,a),e}();Object(a.mixin)(m,o.default),t.default=m},function(e,t,n){"use strict";n.r(t),n.d(t,"getDecalFromPalette",(function(){return s})),n.d(t,"PaletteMixin",(function(){return o}));var r=n(6),i=Object(r.makeInner)(),a=Object(r.makeInner)(),o=function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var a=Object(r.normalizeToArray)(this.get("color",!0)),o=this.get("colorLayer",!0);return l(this,i,a,o,e,t,n)},e.prototype.clearColorPalette=function(){var e,t;(t=i)(e=this).paletteIdx=0,t(e).paletteNameMap={}},e}();function s(e,t,n,i){var o=Object(r.normalizeToArray)(e.get(["aria","decal","decals"]));return l(e,a,o,null,t,n,i)}function l(e,t,n,r,i,a,o){var s=t(a=a||e),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=o&&r?function(e,t){for(var n=e.length,r=0;rt)return e[r];return e[n-1]}(r,o):n;if((c=c||n)&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}},function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));var r=n(4),i=n(566),a=n(34),o=n(468),s=n(1105),l=n(0);function u(e,t,n,u){Object(l.each)(s.AXIS_TYPES,(function(s,d){var f=Object(l.merge)(Object(l.merge)({},i.default[d],!0),u,!0),h=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+d,n}return Object(r.__extends)(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Object(a.fetchLayoutMode)(this),r=n?Object(a.getLayoutParams)(e):{},i=t.getTheme();Object(l.merge)(e,i.get(d+"Axis")),Object(l.merge)(e,this.getDefaultOption()),e.type=c(e),n&&Object(a.mergeLayoutParam)(e,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=o.default.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+d,n.defaultOption=f,n}(n);e.registerComponentModel(h)})),e.registerSubTypeDefaulter(t+"Axis",c)}function c(e){return e.type||(e.data?"category":"value")}},function(e,t,n){"use strict";n.r(t),n.d(t,"_getRefCount",(function(){return h})),n.d(t,"_resetState",(function(){return c})),n.d(t,"isPressed",(function(){return d})),n.d(t,"isPressedCtrlKey",(function(){return f})),n.d(t,"startObserving",(function(){return l})),n.d(t,"stopObserving",(function(){return u}));n(89),n(15),n(366),n(12),n(305),n(16),n(17);var r=n(49),i=n(41),a=new r.default,o=new Set,s=0;function l(e){0===s&&(a.addEventListener(e,"keydown",(function(e){o.has(e.keyCode)||o.add(e.keyCode)})),a.addEventListener(e,"keyup",(function(e){o.has(e.keyCode)&&o.delete(e.keyCode)})),a.addEventListener(e,"visibilitychange",(function(){e.hidden&&o.clear()})),a.addEventListener(e.defaultView,"blur",(function(){o.clear()}))),s+=1}function u(){s>0&&(s-=1),0===s&&c()}function c(){a.clearEvents(),o.clear(),s=0}function d(e){return Array.from(o.values()).some((function(t){return Object(i.isKey)(t,e)}))}function f(){return Array.from(o.values()).some((function(e){return Object(i.isCtrlMetaKey)(e)}))}function h(){return s}},function(e,t,n){"use strict";n.r(t),n.d(t,"findExistImage",(function(){return o})),n.d(t,"createOrUpdateImage",(function(){return s})),n.d(t,"isImageReady",(function(){return u}));var r=n(247),i=n(93),a=new r.default(50);function o(e){if("string"==typeof e){var t=a.get(e);return t&&t.image}return e}function s(e,t,n,r,o){if(e){if("string"==typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=a.get(e),c={hostEl:n,cb:r,cbPayload:o};if(s)!u(t=s.image)&&s.pending.push(c);else{var d=i.platformApi.loadImage(e,l,l);d.__zrImageSrc=e,a.put(e,d.__cachedImgObj={image:d,pending:[c]})}return t}return e}return t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;tn&&(e=i,n=o)}if(e)return function(e){for(var t=0,n=0,r=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s0&&a&&E(-d/o,0,o);var g,v,_=e[0],y=e[o-1];return b(),g<0&&w(-g,.8),v<0&&w(v,.8),b(),S(g,v,1),S(v,g,-1),b(),g<0&&T(-g),v<0&&T(v),u}function b(){g=_.rect[t]-r,v=i-y.rect[t]-y.rect[n]}function S(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){E(r*n,0,o);var i=r+e;i<0&&w(-i*n,1)}else w(-e*n,1)}}function E(n,r,i){0!==n&&(u=!0);for(var a=r;a0)for(l=0;l0;l--){E(-(a[l-1]*d),l,o)}}}function T(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(o-1)),r=0;r0?E(n,0,r+1):E(-n,o-r-1,o),(e-=n)<=0)return}}function s(e,t,n,r){return o(e,"x","width",t,n,r)}function l(e,t,n,r){return o(e,"y","height",t,n,r)}function u(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new i.default(0,0,0,0);function a(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var o=0;ot+s&&o>r+s||oe+s&&a>n+s||a=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}a=l.length;var u=Math.ceil(a/2);n[i].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var c={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0){var h,p,m=i.getModel("universalTransition").get("delay"),g=Object.assign({setToFinal:!0},f);l(e)&&(h=e,p=t),l(t)&&(h=t,p=e);for(var v=h?h===e:e.length>t.length,_=h?u(p,h):u(v?t:e,[v?e:t]),y=0,b=0;b<_.length;b++)y+=_[b].many.length;var S=0;for(b=0;b<_.length;b++)E(_[b],v,S,y),S+=_[b].many.length}}function E(e,t,i,o,s){var l=e.many,u=e.one;if(1!==l.length||s)for(var f=Object(a.defaults)({dividePath:c[n],individualDelay:m&&function(e,t,n,r){return m(e+i,o)}},g),h=t?Object(r.combineMorph)(l,u,f):Object(r.separateMorph)(u,l,f),p=h.fromIndividuals,v=h.toIndividuals,_=p.length,y=0;y<_;y++){w=m?Object(a.defaults)({delay:m(y,_)},g):g;d(p[y],v[y],t?l[y]:e.one,t?e.one:l[y],w)}else{var b=t?l[0]:u,S=t?u:l[0];if(Object(r.isCombineMorphing)(b))E({many:[b],one:S},!0,i,o,!0);else{var w=m?Object(a.defaults)({delay:m(i,o)},g):g;Object(r.morphPath)(b,S,w),d(b,S,b,S,w)}}}}function f(e){if(!e)return[];if(Object(a.isArray)(e)){for(var t=[],n=0;nn;)i[n]=t[n++];return i},Me=function(e,t,n){U(e,t,{get:function(){return this._d[n]}})},Ae=function(e){var t,n,r,i,a,o,s=E(e),l=arguments.length,c=l>1?arguments[1]:void 0,d=void 0!==c,f=x(s);if(null!=f&&!w(f)){for(o=f.call(s),r=[],t=0;!(a=o.next()).done;t++)r.push(a.value);s=r}for(d&&l>2&&(c=u(c,arguments[2],2)),t=0,n=m(s.length),i=Ce(this,n);n>t;t++)i[t]=d?c(s[t],t):s[t];return i},Re=function(){for(var e=0,t=arguments.length,n=Ce(this,t);t>e;)n[e]=arguments[e++];return n},Ie=!!z&&a((function(){he.call(new z(1))})),De=function(){return he.apply(Ie?de.call(Oe(this)):Oe(this),arguments)},Ne={copyWithin:function(e,t){return F.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Z(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return j.apply(Oe(this),arguments)},filter:function(e){return xe(this,X(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Oe(this),arguments)},lastIndexOf:function(e){return oe.apply(Oe(this),arguments)},map:function(e){return Se(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return le.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(Oe(this),e)},subarray:function(e,t){var n=Oe(this),r=n.length,i=v(e,r);return new(I(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Le=function(e,t){return xe(this,de.call(Oe(this),e,t))},Pe=function(e){Oe(this);var t=Te(arguments[1],1),n=this.length,r=E(e),i=m(r.length),a=0;if(i+t>n)throw V("Wrong length!");for(;a255?255:255&r),i.v[h](n*t+i.o,r,Ee)}(this,n,e)},enumerable:!0})};y?(p=n((function(e,n,r,i){c(e,p,u,"_d");var a,o,s,l,d=0,h=0;if(S(n)){if(!(n instanceof $||"ArrayBuffer"==(l=b(n))||"SharedArrayBuffer"==l))return ye in n?ke(p,n):Ae.call(p,n);a=n,h=Te(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw V("Wrong length!");if((o=v-h)<0)throw V("Wrong length!")}else if((o=m(i)*t)+h>v)throw V("Wrong length!");s=o/t}else s=g(n),a=new $(o=s*t);for(f(e,"_d",{b:a,o:h,l:o,e:s,v:new q(a)});dT;T++)if((h||T in S)&&(y=E(_=S[T],T,b),e))if(t)C[T]=y;else if(y)switch(e){case 3:return!0;case 5:return _;case 6:return T;case 2:u(C,_)}else switch(e){case 4:return!1;case 7:u(C,_)}return d?-1:i||c?c:C}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(e,t,n){"use strict";var r=n(73),i=n(77),a=n(361),o=n(176),s=n(208),l=n(151),u=n(83),c=n(1685),d=n(302),f=n(1686),h=n(1687),p=n(432),m=n(1688),g=[],v=i(g.sort),_=i(g.push),y=u((function(){g.sort(void 0)})),b=u((function(){g.sort(null)})),S=d("sort"),E=!u((function(){if(p)return p<70;if(!(f&&f>3)){if(h)return!0;if(m)return m<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)g.push({k:t+r,v:n})}for(g.sort((function(e,t){return t.v-e.v})),r=0;rl(n)?1:-1}}(e)),n=i.length,r=0;r-1}var p=t.getStyle=u<9?function(e,t){if(!o){if(!e||!t)return null;"float"===(t=c(t))&&(t="styleFloat");try{switch(t){case"opacity":try{return e.filters.item("alpha").opacity/100}catch(e){return 1}default:return e.style[t]||e.currentStyle?e.currentStyle[t]:null}}catch(n){return e.style[t]}}}:function(e,t){if(!o){if(!e||!t)return null;"float"===(t=c(t))&&(t="cssFloat");try{var n=document.defaultView.getComputedStyle(e,"");return e.style[t]||n?n[t]:null}catch(n){return e.style[t]}}};var m=t.isScroll=function(e,t){if(!o)return p(e,null!=t?t?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};t.getScrollContainer=function(e,t){if(!o){for(var n=e;n;){if([window,document,document.documentElement].includes(n))return window;if(m(n,t))return n;n=n.parentNode}return n}},t.isInContainer=function(e,t){if(o||!e||!t)return!1;var n=e.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(t)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:t.getBoundingClientRect(),n.topr.top&&n.right>r.left&&n.left0},t.prototype.hasFill=function(){var e=this.style.fill;return null!=e&&"none"!==e},t.prototype.createStyle=function(e){return Object(s.createObject)(u,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(a.getBoundingRect)(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(i.default);c.prototype.type="tspan",t.default=c},function(e,t,n){"use strict";n.r(t),n.d(t,"DataFormatMixin",(function(){return s})),n.d(t,"normalizeTooltipFormatResult",(function(){return l}));var r=n(0),i=n(162),a=n(53),o=/\{@(.+?)\}/g,s=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,"style"),l=s&&s[n.getItemVisual(e,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,d="series"===c,f=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:l,borderColor:u,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(e,t,n,s,l,u){t=t||"normal";var c=this.getData(n),d=this.getDataParams(e,n);(u&&(d.value=u.interpolatedValue),null!=s&&r.isArray(d.value)&&(d.value=d.value[s]),l)||(l=c.getItemModel(e).get("normal"===t?["label","formatter"]:[t,"label","formatter"]));return r.isFunction(l)?(d.status=t,d.dimensionIndex=s,l(d)):r.isString(l)?Object(a.formatTpl)(l,d).replace(o,(function(t,n){var a=n.length,o=n;"["===o.charAt(0)&&"]"===o.charAt(a-1)&&(o=+o.slice(1,a-1));var s=Object(i.retrieveRawValue)(c,e,o);if(u&&r.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(o);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""})):void 0},e.prototype.getRawValue=function(e,t){return Object(i.retrieveRawValue)(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function l(e){var t,n;return r.isObject(e)?e.type&&(n=e):t=e,{text:t,frag:n}}},function(e,t,n){"use strict";n.r(t),n.d(t,"createOrUpdatePatternFromDecal",(function(){return h}));var r=n(1081),i=n(247),a=n(0),o=n(5),s=n(68),l=n(218),u=n(93),c=new r.default,d=new i.default(100),f=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function h(e,t){if("none"===e)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i="svg"===r.painter.type;e.dirty&&c.delete(e);var h=c.get(e);if(h)return h;var m=Object(a.defaults)(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});"none"===m.backgroundColor&&(m.backgroundColor=null);var g={repeat:"repeat"};return function(e){for(var t,c=[n],h=!0,g=0;g=0||e===t}function s(e){var t=l(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");null!=o&&(o=r.parse(o));var s=c(n);null==a&&(i.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==o||o>u[1])&&(o=u[1]),oa&&(a=t);var s=a%2?a+2:a+3;o=[];for(var l=0;l30}},function(e,t,n){"use strict";function r(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function i(e,t,n,r){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}n.r(t),n.d(t,"updateViewOnPan",(function(){return r})),n.d(t,"updateViewOnZoom",(function(){return i}))},function(e,t,n){"use strict";n.r(t),n.d(t,"registerCellType",(function(){return w})),n.d(t,"getCellType",(function(){return E})),n.d(t,"hasCellType",(function(){return y})),n.d(t,"getRegisteredCellTypeNames",(function(){return b})),n.d(t,"getRegisteredCellTypes",(function(){return S}));var r=n(161),i=n(103),a=n(84),o=n(153),s=n(1323),l=n(1324),u=n(1325),c=n(1326),d=n(1327),f=n(1328),h=n(1329),p=n(1330),m=n(1331),g=Object(r.default)("cellTypes"),v=g.register,_=g.getItem,y=g.hasItem,b=g.getNames,S=g.getValues;function E(e){if(!y(e))throw Error('You declared cell type "'.concat(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 _(e)}function w(e,t){var n=t.editor,r=t.renderer,s=t.validator;n&&Object(i.registerEditor)(e,n),r&&Object(a.registerRenderer)(e,r),s&&Object(o.registerValidator)(e,s),v(e,t)}w("autocomplete",s.default),w("checkbox",l.default),w("date",u.default),w("dropdown",c.default),w("handsontable",d.default),w("numeric",f.default),w("password",h.default),w("text",p.default),w("time",m.default)},function(e,t,n){"use strict";n.r(t),n.d(t,"instanceToHTML",(function(){return u})),n.d(t,"_dataToHTML",(function(){return c})),n.d(t,"htmlToGridSettings",(function(){return d}));n(18),n(19),n(20),n(75),n(167),n(1695),n(89),n(114),n(15),n(192),n(1696),n(523),n(993),n(122),n(232),n(12),n(444),n(92),n(31),n(142),n(16),n(445),n(155),n(17);var r=n(1),i=n(26);function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t"},s=new RegExp(Object.keys(o).map((function(e){return"(".concat(e,")")})).join("|"),"gi");function l(e){return"TABLE"===(e&&e.nodeName||"")}function u(e){for(var t=e.hasColHeaders(),n=e.hasRowHeaders(),r=[t?-1:0,n?-1:0,e.countRows()-1,e.countCols()-1],a=e.getData.apply(e,r),o=a.length,s=o>0?a[0].length:0,l=["","
"],u=t?["",""]:[],c=["",""],d=n?1:0,f=t?1:0,h=0;h".concat(e.getColHeader(g-d),"");else if(v)_="".concat(e.getRowHeader(h-f),"");else{var y=a[h][g],b=e.getCellMeta(h-d,g-f),S=b.hidden,E=b.rowspan,w=b.colspan;if(!S){var T=[];if(E&&T.push('rowspan="'.concat(E,'"')),w&&T.push('colspan="'.concat(w,'"')),Object(i.isEmpty)(y))_="");else{var O=y.toString().replace("<","<").replace(">",">").replace(/((\r\n|\n)?|\r\n|\n)/g,"
\r\n").replace(/\x20/gi," ").replace(/\t/gi," ");_="").concat(O,"")}}}m.push(_)}var C=[""].concat(m,[""]).join("");p?u.splice(1,0,C):c.splice(-1,0,C)}return l.splice(1,0,u.join(""),c.join("")),l.join("")}function c(e){for(var t=e.length,n=[""],r=0;r");for(var l=0;l/g,">").replace(/((\r\n|\n)?|\r\n|\n)/g,"
\r\n").replace(/\x20/gi," ").replace(/\t/gi," ");s.push("
"))}n.push.apply(n,[""].concat(s,[""])),r+1===t&&n.push("")}return n.push("
".concat(c,"
"),n.join("")}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document,n={},i=t.createDocumentFragment(),u=t.createElement("div");i.appendChild(u);var c=e;if("string"==typeof c){var d=c.replace(/]*?>([\s\S]*?)<\/\s*td>/g,(function(e){var t=e.match(/]*?>/g)[0],n=e.substring(t.length,e.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return"".concat(t).concat(n).concat("")}));u.insertAdjacentHTML("afterbegin","".concat(d)),c=u.querySelector("table")}if(c&&l(c)){var f=u.querySelector("style"),h=null,p=[];f&&(t.body.appendChild(f),f.disabled=!0,h=f.sheet,p=h?Array.from(h.cssRules):[],t.body.removeChild(f));var m=u.querySelector('meta[name$="enerator"]'),g=null!==c.querySelector("tbody th"),v=Array.from(c.querySelector("tr").cells).reduce((function(e,t){return e+t.colSpan}),0)-(g?1:0),_=c.tFoot&&Array.from(c.tFoot.rows)||[],y=[],b=!1,S=0,E=0;if(c.tHead){var w=Array.from(c.tHead.rows).filter((function(e){var t=null!==e.querySelector("td");return t&&y.push(e),!t}));b=(S=w.length)>0,S>1?n.nestedHeaders=Array.from(w).reduce((function(e,t){var n=Array.from(t.cells).reduce((function(e,t,n){if(g&&0===n)return e;var r=t.colSpan,i=t.innerHTML,a=r>1?{label:i,colspan:r}:i;return e.push(a),e}),[]);return e.push(n),e}),[]):b&&(n.colHeaders=Array.from(w[0].children).reduce((function(e,t,n){return g&&0===n||e.push(t.innerHTML),e}),[]))}y.length&&(n.fixedRowsTop=y.length),_.length&&(n.fixedRowsBottom=_.length);var T=[].concat(y,a(Array.from(c.tBodies).reduce((function(e,t){return e.push.apply(e,a(Array.from(t.rows))),e}),[])),a(_));E=T.length;for(var O=new Array(E),C=0;C1||l>1){for(var c=M;c/gim,"\r\n"):m&&/excel/gi.test(m.content)?i.replace(/[\r\n][\x20]{0,2}/g," ").replace(/[\r\n]?[\x20]{0,3}/gim,"\r\n"):i.replace(/[\r\n]?/gim,"\r\n"),O[M][u]=h.replace(s,(function(e){return o[e]}))}else k.push(i)},N=0;N0?r:n)(t)}},function(e,t,n){"use strict";var r=n(83);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},function(e,t,n){"use strict";var r=n(149),i=n(57),a=n(77),o=n(509),s=n(231),l=n(150),u=n(671),c=n(299),d=n(503),f=n(948),h=n(83),p=n(362).f,m=n(270).f,g=n(166).f,v=n(991),_=n(976).trim,y=i.Number,b=y.prototype,S=i.TypeError,E=a("".slice),w=a("".charCodeAt),T=function(e){var t=f(e,"number");return"bigint"==typeof t?t:O(t)},O=function(e){var t,n,r,i,a,o,s,l,u=f(e,"number");if(d(u))throw S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=_(u),43===(t=w(u,0))||45===t){if(88===(n=w(u,2))||120===n)return NaN}else if(48===t){switch(w(u,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+u}for(o=(a=E(u,2)).length,s=0;si)return NaN;return parseInt(a,r)}return+u};if(o("Number",!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var C,x=function(e){var t=arguments.length<1?0:y(T(e)),n=this;return c(b,n)&&h((function(){v(n)}))?u(Object(t),n,x):t},k=r?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),M=0;k.length>M;M++)l(y,C=k[M])&&!l(x,C)&&g(x,C,m(y,C));x.prototype=b,b.constructor=x,s(i,"Number",x)}},function(e,t,n){n(73)({target:"Number",stat:!0},{isInteger:n(1691)})},function(e,t,n){"use strict";n(513)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(971))},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";n.r(t),n.d(t,"onIrrelevantElement",(function(){return i}));var r={axisPointer:1,tooltip:1,brush:1};function i(e,t,n){var i=t.getComponentByElement(e.topTarget),a=i&&i.coordinateSystem;return i&&i!==n&&!r.hasOwnProperty(i.mainType)&&a&&a.model!==n}},function(e,t,n){"use strict";n.r(t);var r=n(2),i=n(3),a=n(115),o=n(1380);function s(e,t){for(var n=0;nr?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so)r.length=o;else for(var s=a;s=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,u=r.length,c=!1,d=6,f=t;if(Object(a.isArrayLike)(t)){var h=function(e){return Object(a.isArrayLike)(e&&e[0])?2:1}(t);d=h,(1===h&&!Object(a.isNumber)(t[0])||2===h&&!Object(a.isNumber)(t[0][0]))&&(c=!0)}else if(Object(a.isNumber)(t)&&!Object(a.eqNaN)(t))d=0;else if(Object(a.isString)(t))if(isNaN(+t)){var p=i.parse(t);p&&(f=p,d=3)}else d=0;else if(Object(a.isGradientObject)(t)){var m=Object(a.extend)({},f);m.colorStops=Object(a.map)(t.colorStops,(function(e){return{offset:e.offset,color:i.parse(e.color)}})),Object(l.isLinearGradient)(t)?d=4:Object(l.isRadialGradient)(t)&&(d=5),f=m}0===u?this.valType=d:d===this.valType&&6!==d||(c=!0),this.discrete=this.discrete||c;var g={time:e,value:f,rawValue:t,percent:0};return n&&(g.easing=n,g.easingFunc=Object(a.isFunction)(n)?n:o.default[n]||Object(s.createCubicEasingFunc)(n)),r.push(g),g},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=y(r),l=_(r),u=0;u=0&&!(u[n].percent<=t);n--);n=g(n,f-2)}else{for(n=m;nt);n++);n=g(n-1,f-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var S=i.percent-r.percent,E=0===S?1:g((t-r.percent)/S,1);i.easingFunc&&(E=i.easingFunc(E));var w=o?this._additiveValue:p?b:e[h];if(!y(l)&&!p||w||(w=this._additiveValue=[]),this.discrete)e[h]=E<1?r.rawValue:i.rawValue;else if(y(l))1===l?d(w,r[s],i[s],E):function(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o0&&s.addKeyframe(0,g(l),r),this._trackKeys.push(o)}s.addKeyframe(e,g(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();i.addKeyframe(s.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();t.default=E},function(e,t,n){"use strict";n.r(t),n.d(t,"subPixelOptimizeLine",(function(){return i})),n.d(t,"subPixelOptimizeRect",(function(){return a})),n.d(t,"subPixelOptimize",(function(){return o}));var r=Math.round;function i(e,t,n){if(t){var i=t.x1,a=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=a,e.y1=s,e.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*a)&&(e.x1=e.x2=o(i,u,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=o(s,u,!0)),e):e}}function a(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,s=t.height;e.x=r,e.y=i,e.width=a,e.height=s;var l=n&&n.lineWidth;return l?(e.x=o(r,l,!0),e.y=o(i,l,!0),e.width=Math.max(o(r+a,l,!1)-e.x,0===a?0:1),e.height=Math.max(o(i+s,l,!1)-e.y,0===s?0:1),e):e}}function o(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2==0?i/2:(i+(n?1:-1))/2}},function(e,t,n){"use strict";n.r(t),n.d(t,"createTask",(function(){return i})),n.d(t,"Task",(function(){return a}));var r=n(0);function i(e){return new a(e)}var a=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,s=d(this._modBy),l=this._modDataCount||0,u=d(e&&e.modBy),c=e&&e.modDataCount||0;function d(e){return!(e>=1)&&(e=1),e}s===u&&l===c||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=u,this._modDataCount=c;var f=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=f?this._dueIndex+f:1/0,this._dueEnd);if(!i&&(o||h1&&r>0?s:o}};return a;function o(){return t=e?null:a0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(i.each)([["start","startValue"],["end","endValue"]],(function(r,i){var a=null!=e[r[0]],o=null!=e[r[1]];a&&!o?t[i]="percent":!a&&o?t[i]="value":n?t[i]=n[i]:a&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(Object(o.getAxisMainType)(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(i.each)(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(Object(o.getAxisMainType)(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(i.each)([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(i.each)(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),r=0;r=0,o=e.fill||"#000";l(i,t);var s=null==i.textFill;return a?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(r.each)(t.rich,(function(e){l(e,e)})),i}function l(e,t){t&&(Object(r.hasOwn)(t,"fill")&&(e.textFill=t.fill),Object(r.hasOwn)(t,"stroke")&&(e.textStroke=t.fill),Object(r.hasOwn)(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(r.hasOwn)(t,"font")&&(e.font=t.font),Object(r.hasOwn)(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(r.hasOwn)(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(r.hasOwn)(t,"fontSize")&&(e.fontSize=t.fontSize),Object(r.hasOwn)(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(r.hasOwn)(t,"align")&&(e.textAlign=t.align),Object(r.hasOwn)(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(r.hasOwn)(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(r.hasOwn)(t,"width")&&(e.textWidth=t.width),Object(r.hasOwn)(t,"height")&&(e.textHeight=t.height),Object(r.hasOwn)(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(r.hasOwn)(t,"padding")&&(e.textPadding=t.padding),Object(r.hasOwn)(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(r.hasOwn)(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(r.hasOwn)(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(r.hasOwn)(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(r.hasOwn)(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(r.hasOwn)(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(r.hasOwn)(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(r.hasOwn)(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(r.hasOwn)(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(r.hasOwn)(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(r.hasOwn)(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function u(e,t){}},function(e,t,n){"use strict";n.r(t),n.d(t,"getItemAlign",(function(){return o})),n.d(t,"makeHighDownBatch",(function(){return s}));var r=n(0),i=n(34),a=[["left","right","width"],["top","bottom","height"]];function o(e,t,n){var r=e.option,o=r.align;if(null!=o&&"auto"!==o)return o;for(var s={width:t.getWidth(),height:t.getHeight()},l="horizontal"===r.orient?1:0,u=a[l],c=[0,null,10],d={},f=0;f<3;f++)d[a[1-l][f]]=c[f],d[u[f]]=2===f?n[0]:r[u[f]];var h=[["x","width",3],["y","height",0]][l],p=Object(i.getLayoutRect)(d,s,r.padding);return u[(p.margin[h[2]]||0)+p[h[0]]+.5*p[h[1]]<.5*s[h[1]]?0:1]}function s(e,t){return r.each(e||[],(function(e){null!=e.dataIndex&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")})),e}},function(e,t,n){"use strict";n.r(t),n.d(t,"getAv1Codec",(function(){return i})),n.d(t,"getAvcCodec",(function(){return a})),n.d(t,"getHvcCodec",(function(){return o}));var r=n(22),i=function(e){var t,n="",i=e[1]>>>3,a=31&e[1],o=e[2]>>>7,s=(64&e[2])>>6,l=(32&e[2])>>5,u=(16&e[2])>>4,c=(8&e[2])>>3,d=(4&e[2])>>2,f=3&e[2];return n+=i+"."+Object(r.padStart)(a,2,"0"),0===o?n+="M":1===o&&(n+="H"),t=2===i&&s?l?12:10:s?10:8,n+="."+Object(r.padStart)(t,2,"0"),n+="."+u,n+="."+c+d+f},a=function(e){return""+Object(r.toHexString)(e[1])+Object(r.toHexString)(252&e[2])+Object(r.toHexString)(e[3])},o=function(e){var t="",n=e[1]>>6,i=31&e[1],a=(32&e[1])>>5,o=e.subarray(2,6),s=e.subarray(6,12),l=e[12];1===n?t+="A":2===n?t+="B":3===n&&(t+="C"),t+=i+".";var u=parseInt(Object(r.toBinaryString)(o).split("").reverse().join(""),2);u>255&&(u=parseInt(Object(r.toBinaryString)(o),2)),t+=u.toString(16)+".",t+=0===a?"L":"H",t+=l;for(var c="",d=0;d1&&""===i[i.length-1]&&i.pop(),t=0,r=i.length;t0&&(o+="\t"),"string"==typeof(a=e[t][r])?a.indexOf("\n")>-1?o+='"'+a.replace(/"/g,'""')+'"':o+=a:o+=null==a?"":a;t!==n-1&&(o+="\n")}return o};t.parse=r,t.stringify=i}(window)},function(e,t,n){"use strict";n.r(t),n.d(t,"holder",(function(){return r})),n.d(t,"rootInstanceSymbol",(function(){return i})),n.d(t,"registerAsRootInstance",(function(){return a})),n.d(t,"hasValidParameter",(function(){return o})),n.d(t,"isRootInstance",(function(){return s}));n(18),n(19),n(15),n(12),n(16),n(91),n(17);var r=new WeakMap,i=Symbol("rootInstance");function a(e){r.set(e,!0)}function o(e){return e===i}function s(e){return r.has(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"VERSION",(function(){return J})),n.d(t,"addSidxSegmentsToPlaylist",(function(){return w})),n.d(t,"generateSidxKey",(function(){return T})),n.d(t,"inheritAttributes",(function(){return Q})),n.d(t,"parse",(function(){return ee})),n.d(t,"parseUTCTiming",(function(){return te})),n.d(t,"stringToMpdXml",(function(){return Z})),n.d(t,"toM3u8",(function(){return I})),n.d(t,"toPlaylists",(function(){return H}));var r=n(419),i=n(7),a=n.n(i),o=n(585),s=n(1291),l=function(e){return!!e&&"object"==typeof e},u=function e(){for(var t=arguments.length,n=new Array(t),r=0;r=0&&(h.minimumUpdatePeriod=1e3*l),t&&(h.locations=t),"dynamic"===o&&(h.suggestedPresentationDelay=s);var p=0===h.playlists.length;return c.length&&(h.mediaGroups.AUDIO.audio=function(e,t,n){var r;void 0===t&&(t={}),void 0===n&&(n=!1);var i=e.reduce((function(e,i){var a=i.attributes.role&&i.attributes.role.value||"",o=i.attributes.lang||"",s=i.attributes.label||"main";if(o&&!i.attributes.label){var l=a?" ("+a+")":"";s=""+i.attributes.lang+l}e[s]||(e[s]={language:o,autoselect:!0,default:"main"===a,playlists:[],uri:""});var u=C(function(e,t){var n,r=e.attributes,i=e.segments,a=e.sidx,o={attributes:(n={NAME:r.id,BANDWIDTH:r.bandwidth,CODECS:r.codecs},n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===r.type,timeline:r.periodIndex,resolvedUri:"",targetDuration:r.duration,segments:i,mediaSequence:i.length?i[0].number:1};return r.contentProtection&&(o.contentProtection=r.contentProtection),a&&(o.sidx=a),t&&(o.attributes.AUDIO="audio",o.attributes.SUBTITLES="subs"),o}(i,n),t);return e[s].playlists.push(u),void 0===r&&"main"===a&&((r=i).default=!0),e}),{});r||(i[Object.keys(i)[0]].default=!0);return i}(c,n,p)),d.length&&(h.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var r=n.attributes.lang||"text";return e[r]||(e[r]={language:r,default:!1,autoselect:!1,playlists:[],uri:""}),e[r].playlists.push(C(function(e){var t,n=e.attributes,r=e.segments;void 0===r&&(r=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var i=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(i.CODECS=n.codecs),{attributes:i,uri:"",endList:"static"===n.type,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1}}(n),t)),e}),{})}(d,n)),f.length&&(h.mediaGroups["CLOSED-CAPTIONS"].cc=f.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,r=t.language;e[r]={autoselect:!1,default:!1,instreamId:n,language:r},t.hasOwnProperty("aspectRatio")&&(e[r].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[r].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[r]["3D"]=t["3D"])})),e):e}),{})),h},D=function(e,t,n){var r=e.NOW,i=e.clientOffset,a=e.availabilityStartTime,o=e.timescale,s=void 0===o?1:o,l=e.start,u=void 0===l?0:l,c=e.minimumUpdatePeriod,d=(r+i)/1e3+(void 0===c?0:c)-(a+u);return Math.ceil((d*s-t)/n)},N=function(e,t){for(var n=e.type,r=e.minimumUpdatePeriod,i=void 0===r?0:r,a=e.media,o=void 0===a?"":a,s=e.sourceDuration,l=e.timescale,u=void 0===l?1:l,c=e.startNumber,d=void 0===c?1:c,f=e.periodIndex,h=[],p=-1,m=0;mp&&(p=y);var b=void 0;if(_<0){var S=m+1;b=S===t.length?"dynamic"===n&&i>0&&o.indexOf("$Number$")>0?D(e,p,v):(s*u-p)/v:(t[S].t-p)/v}else b=_+1;for(var E=d+h.length+b,w=d+h.length;w=i?a:""+new Array(i-a.length+1).join("0")+a)}}(t))},j=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,a=void 0===i?{sourceURL:"",range:""}:i,o=_({baseUrl:e.baseUrl,source:P(a.sourceURL,n),range:a.range});return function(e,t){return e.duration||t?e.duration?S(e):N(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map((function(t){n.Number=t.number,n.Time=t.time;var i=P(e.media||"",n),a=e.timescale||1,s=e.presentationTimeOffset||0,l=e.periodStart+(t.time-s)/a;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:Object(r.default)(e.baseUrl||"",i),map:o,number:t.number,presentationTime:l}}))},F=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(g);var o,s=i.map((function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,a=_({baseUrl:n,source:i.sourceURL,range:i.range}),o=_({baseUrl:n,source:t.media,range:t.mediaRange});return o.map=a,o}(e,t)}));return n&&(o=S(e)),t&&(o=N(e,t)),o.map((function(t,n){if(s[n]){var r=s[n],i=e.timescale||1,o=e.presentationTimeOffset||0;return r.timeline=t.timeline,r.duration=t.duration,r.number=t.number,r.presentationTime=a+(t.time-o)/i,r}})).filter((function(e){return e}))},B=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=j,t=u(r,i.template)):i.base?(n=E,t=u(r,i.base)):i.list&&(n=F,t=u(r,i.list));var a={attributes:r};if(!n)return a;var o=n(t,i.segmentTimeline);if(t.duration){var s=t,l=s.duration,c=s.timescale,d=void 0===c?1:c;t.duration=l/d}else o.length?t.duration=o.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=o,i.base&&t.indexRange&&(a.sidx=o[0],a.segments=[]),a},H=function(e){return e.map(B)},U=function(e,t){return d(e.childNodes).filter((function(e){return e.tagName===t}))},Y=function(e){return e.textContent.trim()},V=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(i||0)+86400*parseFloat(a||0)+3600*parseFloat(o||0)+60*parseFloat(s||0)+parseFloat(l||0)},W={mediaPresentationDuration:function(e){return V(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return V(e)},suggestedPresentationDelay:function(e){return V(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return V(e)},start:function(e){return V(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?V(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},z=function(e){return e&&e.attributes?d(e.attributes).reduce((function(e,t){var n=W[t.name]||W.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},G={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},$=function(e,t){return t.length?c(e.map((function(e){return t.map((function(t){return Object(r.default)(e,Y(t))}))}))):e},q=function(e){var t=U(e,"SegmentTemplate")[0],n=U(e,"SegmentList")[0],r=n&&U(n,"SegmentURL").map((function(e){return u({tag:"SegmentURL"},z(e))})),i=U(e,"SegmentBase")[0],a=n||t,o=a&&U(a,"SegmentTimeline")[0],s=n||i||t,l=s&&U(s,"Initialization")[0],c=t&&z(t);c&&l?c.initialization=l&&z(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var d={template:c,segmentTimeline:o&&U(o,"S").map((function(e){return z(e)})),list:n&&u(z(n),{segmentUrls:r,initialization:z(l)}),base:i&&u(z(i),{initialization:z(l)})};return Object.keys(d).forEach((function(e){d[e]||delete d[e]})),d},K=function(e,t,n){return function(r){var i,a=z(r),s=$(t,U(r,"BaseURL")),l=U(r,"Role")[0],d={role:z(l)},f=u(e,a,d),h=U(r,"Accessibility")[0],p="urn:scte:dash:cc:cea-608:2015"===(i=z(h)).schemeIdUri?("string"!=typeof i.value?[]:i.value.split(";")).map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var r=e.split("=");t=r[0],n=r[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}})):"urn:scte:dash:cc:cea-708:2015"===i.schemeIdUri?("string"!=typeof i.value?[]:i.value.split(";")).map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),r=n[0],i=n[1],a=void 0===i?"":i;t.channel=r,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),r=n[0],i=n[1];"lang"===r?t.language=i:"er"===r?t.easyReader=Number(i):"war"===r?t.aspectRatio=Number(i):"3D"===r&&(t["3D"]=Number(i))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})):void 0;p&&(f=u(f,{captionServices:p}));var m=U(r,"Label")[0];if(m&&m.childNodes.length){var g=m.childNodes[0].nodeValue.trim();f=u(f,{label:g})}var v=U(r,"ContentProtection").reduce((function(e,t){var n=z(t),r=G[n.schemeIdUri];if(r){e[r]={attributes:n};var i=U(t,"cenc:pssh")[0];if(i){var a=Y(i),s=a&&Object(o.default)(a);e[r].pssh=s}}return e}),{});Object.keys(v).length&&(f=u(f,{contentProtection:v}));var _=q(r),y=U(r,"Representation"),b=u(n,_);return c(y.map(function(e,t,n){return function(r){var i=U(r,"BaseURL"),a=$(t,i),o=u(e,z(r)),s=q(r);return a.map((function(e){return{segmentInfo:u(n,s),attributes:u(o,{baseUrl:e})}}))}}(f,s,b)))}},X=function(e,t){return function(n,r){var i=$(t,U(n.node,"BaseURL")),o=parseInt(n.attributes.id,10),s=a.a.isNaN(o)?r:o,l=u(e,{periodIndex:s,periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(l.periodDuration=n.attributes.duration);var d=U(n.node,"AdaptationSet"),f=q(n.node);return c(d.map(K(l,i,f)))}},Q=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,a=n.NOW,o=void 0===a?Date.now():a,s=n.clientOffset,l=void 0===s?0:s,u=U(e,"Period");if(!u.length)throw new Error(f);var d=U(e,"Location"),h=z(e),p=$([i],U(e,"BaseURL"));h.type=h.type||"static",h.sourceDuration=h.mediaPresentationDuration||0,h.NOW=o,h.clientOffset=l,d.length&&(h.locations=d.map(Y));var m=[];return u.forEach((function(e,t){var n=z(e),r=m[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes,r=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==r?null:0}({attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:h.type}),m.push({node:e,attributes:n})})),{locations:h.locations,representationInfo:c(m.map(X(h,p)))}},Z=function(e){if(""===e)throw new Error(h);var t,n,r=new s.DOMParser;try{n=(t=r.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(p);return n},J="0.19.2",ee=function(e,t){void 0===t&&(t={});var n=Q(Z(e),t),r=H(n.representationInfo);return I(r,n.locations,t.sidxMapping)},te=function(e){return function(e){var t=U(e,"UTCTiming")[0];if(!t)return null;var n=z(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(v)}return n}(Z(e))}},function(e,t,n){e.exports=function e(t,n,r){function i(o,s){if(!n[o]){if(!t[o]){if(a)return a(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[o]={exports:{}};t[o][0].call(u.exports,(function(e){return i(t[o][1][e]||e)}),u,u.exports,e,t,n,r)}return n[o].exports}for(var a=!1,o=0;oa[o]^n?1:-1;return l==u?0:u(r=e.length)){for(i=n,t-=r;--t;i+=n);e+=i}else tj?e.c=e.e=null:e.c=n=g.length){if(!r)break e;for(;g.length<=p;g.push(0));h=m=0,c=(s%=u)-u+(o=1)}else{for(h=f=g[p],o=1;10<=f;f/=10,o++);m=(c=(s%=u)-u+o)<0?0:h/v[o-c-1]%10|0}if(r=r||t<0||null!=g[p+1]||(c<0?h:h%v[o-c-1]),r=n<4?(m||r)&&(0==n||n==(e.s<0?3:2)):5j?e.c=e.e=null:e.e>>11))?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(f.push(l%1e14),c+=2);c=s/2}else{if(!crypto.randomBytes)throw F=!1,Error(o+"crypto unavailable");for(t=crypto.randomBytes(s*=7);cn-1&&(null==o[i+1]&&(o[i+1]=0),o[i+1]+=o[i]/n|0,o[i]%=n)}return o.reverse()}return function(r,i,a,o,s){var l,u,c,d,f,h,p,g,v=r.indexOf("."),_=I,y=D;for(0<=v&&(d=H,H=0,r=r.replace(".",""),h=(g=new V(i)).pow(r.length-v),H=d,g.c=t(b(m(h.c),h.e,"0"),10,a,e),g.e=g.c.length),c=d=(p=t(r,i,a,s?(l=Y,e):(l=e,Y))).length;0==p[--d];p.pop());if(!p[0])return l.charAt(0);if(v<0?--c:(h.c=p,h.e=c,h.s=o,p=(h=n(h,g,_,y,a)).c,f=h.r,c=h.e),v=p[u=c+_+1],d=a/2,f=f||u<0||null!=p[u+1],f=y<4?(null!=v||f)&&(0==y||y==(h.s<0?3:2)):da;)p[u]=0,u||(++c,p=[1].concat(p));for(d=p.length;!p[--d];);for(v=0,r="";v<=d;r+=l.charAt(p[v++]));r=b(r,c,l.charAt(0))}return r}}(),n=function(){function e(e,t,n){var r,i,a,o,s=0,l=e.length,u=t%f,c=t/f|0;for(e=e.slice();l--;)s=((i=u*(a=e[l]%f)+(r=c*a+(o=e[l]/f|0)*u)%f*f+s)/n|0)+(r/f|0)+c*o,e[l]=i%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var i,a;if(n!=r)a=rt[i]?1:-1;break}return a}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n](A[h]||0)&&f--,M<0)b.push(1),m=!0;else{for(O=A.length,x=R.length,M+=2,1<(g=a(c/(R[h=0]+1)))&&(R=e(R,g,c),A=e(A,g,c),x=R.length,O=A.length),T=x,E=(S=A.slice(0,x)).length;E=c/2&&C++;do{if(g=0,(d=t(R,S,x,E))<0){if(w=S[0],x!=E&&(w=w*c+(S[1]||0)),1<(g=a(w/C)))for(c<=g&&(g=c-1),_=(v=e(R,g,c)).length,E=S.length;1==t(v,S,_,E);)g--,n(v,x<_?k:R,_,c),_=v.length,d=1;else 0==g&&(d=g=1),_=(v=R.slice()).length;if(_l&&(h.c.length=l):r&&(h=h.mod(t))}if(s){if(0===(s=a(s/2)))break;f=s%2}else if($(e=e.times(n),e.e+1,1),14l&&(p.c.length=l):r&&(p=p.mod(t))}return r?h:(d&&(h=R.div(h)),t?h.mod(t):l?$(h,H,D,void 0):h)},A.integerValue=function(e){var t=new V(this);return null==e?e=D:v(e,0,8),$(t,t.e+1,e)},A.isEqualTo=A.eq=function(e,t){return 0===g(this,new V(e,t))},A.isFinite=function(){return!!this.c},A.isGreaterThan=A.gt=function(e,t){return 0this.c.length-2},A.isLessThan=A.lt=function(e,t){return g(this,new V(e,t))<0},A.isLessThanOrEqualTo=A.lte=function(e,t){return-1===(t=g(this,new V(e,t)))||0===t},A.isNaN=function(){return!this.s},A.isNegative=function(){return this.s<0},A.isPositive=function(){return 0r&&(r=this.e+1),r},A.shiftedBy=function(e){return v(e,-c,c),this.times("1e"+e)},A.squareRoot=A.sqrt=function(){var e,t,r,i,a,o=this,s=o.c,l=o.s,u=o.e,c=I+4,d=new V("0.5");if(1!==l||!s||!s[0])return new V(!l||l<0&&(!s||s[0])?NaN:s?o:1/0);if((r=0==(l=Math.sqrt(+q(o)))||l==1/0?(((t=m(s)).length+u)%2==0&&(t+="0"),l=Math.sqrt(+t),u=p((u+1)/2)-(u<0||u%2),new V(t=l==1/0?"1e"+u:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+u)):new V(l+"")).c[0])for((l=(u=r.e)+c)<3&&(l=0);;)if(a=r,r=d.times(a.plus(n(o,a,c,1))),m(a.c).slice(0,l)===(t=m(r.c)).slice(0,l)){if(r.e=Math.pow(10,12)&&!n||"trillion"===n?(l=r.trillion,t/=Math.pow(10,12)):u=Math.pow(10,9)&&!n||"billion"===n?(l=r.billion,t/=Math.pow(10,9)):u=Math.pow(10,6)&&!n||"million"===n?(l=r.million,t/=Math.pow(10,6)):(u=Math.pow(10,3)&&!n||"thousand"===n)&&(l=r.thousand,t/=Math.pow(10,3)),l&&(l=(a?" ":"")+l),s){var d=t.toString().split(".")[0];c=Math.max(s-d.length,0)}return{value:t,abbreviation:l,mantissaPrecision:c}}({value:d,forceAverage:O,abbreviations:o.currentAbbreviations(),spaceSeparated:R,totalLength:E});d=P.value,L+=P.abbreviation,E&&(x=P.mantissaPrecision)}if(N){var j=(p=(f={value:d,characteristicPrecision:w}).value,g=void 0===(m=f.characteristicPrecision)?0:m,_=(v=r(p.toExponential().split("e"),2))[0],y=v[1],b=+_,g&&1document.F=Object<\/script>"),e.close(),l=e.F;r--;)delete l.prototype[a[r]];return l()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=l(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(914),i=n(630).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(87),i=n(132),a=n(126),o=n(119)("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(227),i=n(927),a=n(642),o=n(81),s=n(120),l=n(644),u={},c={};(t=e.exports=function(e,t,n,d,f){var h,p,m,g,v=f?function(){return e}:l(e),_=r(n,d,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(h=s(e.length);h>y;y++)if((g=t?_(o(p=e[y])[0],p[1]):_(e[y]))===u||g===c)return g}else for(m=v.call(e);!(p=m.next()).done;)if((g=i(m,_,p.value,t))===u||g===c)return g}).BREAK=u,t.RETURN=c},function(e,t,n){var r=n(188);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(97);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(298);e.exports=r("navigator","userAgent")||""},function(e,t,n){var r=n(361);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},function(e,t){e.exports=!1},function(e,t,n){var r=n(301),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r,i=n(134),a=n(956),o=n(659),s=n(433),l=n(957),u=n(507),c=n(508),d=c("IE_PROTO"),f=function(){},h=function(e){return"