var vendor_a9cfc25f7cd85ed5fee5=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1784)}([function(t,e,n){"use strict";n.r(e),n.d(e,"guid",(function(){return g})),n.d(e,"logError",(function(){return v})),n.d(e,"clone",(function(){return m})),n.d(e,"merge",(function(){return y})),n.d(e,"mergeAll",(function(){return b})),n.d(e,"extend",(function(){return _})),n.d(e,"defaults",(function(){return x})),n.d(e,"createCanvas",(function(){return w})),n.d(e,"indexOf",(function(){return O})),n.d(e,"inherits",(function(){return S})),n.d(e,"mixin",(function(){return C})),n.d(e,"isArrayLike",(function(){return E})),n.d(e,"each",(function(){return T})),n.d(e,"map",(function(){return M})),n.d(e,"reduce",(function(){return A})),n.d(e,"filter",(function(){return I})),n.d(e,"find",(function(){return j})),n.d(e,"keys",(function(){return k})),n.d(e,"bind",(function(){return P})),n.d(e,"curry",(function(){return L})),n.d(e,"isArray",(function(){return D})),n.d(e,"isFunction",(function(){return R})),n.d(e,"isString",(function(){return N})),n.d(e,"isStringSafe",(function(){return F})),n.d(e,"isNumber",(function(){return B})),n.d(e,"isObject",(function(){return z})),n.d(e,"isBuiltInObject",(function(){return V})),n.d(e,"isTypedArray",(function(){return U})),n.d(e,"isDom",(function(){return G})),n.d(e,"isGradientObject",(function(){return H})),n.d(e,"isImagePatternObject",(function(){return W})),n.d(e,"isRegExp",(function(){return Y})),n.d(e,"eqNaN",(function(){return $})),n.d(e,"retrieve",(function(){return X})),n.d(e,"retrieve2",(function(){return q})),n.d(e,"retrieve3",(function(){return Z})),n.d(e,"slice",(function(){return K})),n.d(e,"normalizeCssArray",(function(){return J})),n.d(e,"assert",(function(){return Q})),n.d(e,"trim",(function(){return tt})),n.d(e,"setAsPrimitive",(function(){return et})),n.d(e,"isPrimitive",(function(){return nt})),n.d(e,"HashMap",(function(){return rt})),n.d(e,"createHashMap",(function(){return it})),n.d(e,"concatArray",(function(){return ot})),n.d(e,"createObject",(function(){return at})),n.d(e,"disableUserSelect",(function(){return st})),n.d(e,"hasOwn",(function(){return lt})),n.d(e,"noop",(function(){return ut})),n.d(e,"RADIAN_TO_DEGREE",(function(){return ct}));var r=n(98),i=A(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),o=A(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,u=s.filter,c=s.slice,h=s.map,d=function(){}.constructor,f=d?d.prototype:null,p=2311;function g(){return p++}function v(){for(var t=[],e=0;e=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&d(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function M(t,e,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 e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}function A(t,e){if(null===e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},function(t,e){t.exports=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);var r=n(1098);n.d(e,"flow",(function(){return r.flow}));var i=n(625);n.d(e,"pick",(function(){return i.pick}));var o=n(1099);n.d(e,"template",(function(){return o.template}));var a=n(388);n.d(e,"log",(function(){return a.log})),n.d(e,"invariant",(function(){return a.invariant})),n.d(e,"LEVEL",(function(){return a.LEVEL}));var s=n(1100);n.d(e,"getContainerSize",(function(){return s.getContainerSize}));var l=n(1101);n.d(e,"findGeometry",(function(){return l.findGeometry})),n.d(e,"getAllElements",(function(){return l.getAllElements})),n.d(e,"getAllElementsRecursively",(function(){return l.getAllElementsRecursively})),n.d(e,"getAllGeometriesRecursively",(function(){return l.getAllGeometriesRecursively}));var u=n(110);n.d(e,"findViewById",(function(){return u.findViewById})),n.d(e,"getViews",(function(){return u.getViews})),n.d(e,"getSiblingViews",(function(){return u.getSiblingViews}));var c=n(1102);n.d(e,"transformLabel",(function(){return c.transformLabel}));var h=n(1103);n.d(e,"getSplinePath",(function(){return h.getSplinePath}));var d=n(626);n.d(e,"deepAssign",(function(){return d.deepAssign}));var f=n(1104);n.d(e,"kebabCase",(function(){return f.kebabCase}));var p=n(519);n.d(e,"renderStatistic",(function(){return p.renderStatistic})),n.d(e,"renderGaugeStatistic",(function(){return p.renderGaugeStatistic}));var g=n(1105);n.d(e,"measureTextWidth",(function(){return g.measureTextWidth}));var v=n(298);n.d(e,"isBetween",(function(){return v.isBetween})),n.d(e,"isRealNumber",(function(){return v.isRealNumber}));var m=n(354);n.d(e,"adjustYMetaByZero",(function(){return m.adjustYMetaByZero})),n.d(e,"transformDataToNodeLinkData",(function(){return m.transformDataToNodeLinkData})),n.d(e,"processIllegalData",(function(){return m.processIllegalData}));var y=n(207);n.d(e,"normalPadding",(function(){return y.normalPadding})),n.d(e,"getAdjustAppendPadding",(function(){return y.getAdjustAppendPadding})),n.d(e,"resolveAllPadding",(function(){return y.resolveAllPadding}))},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__spreadArray",(function(){return y})),n.d(e,"__await",(function(){return b})),n.d(e,"__asyncGenerator",(function(){return _})),n.d(e,"__asyncDelegator",(function(){return x})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return O})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return E})),n.d(e,"__classPrivateFieldGet",(function(){return T})),n.d(e,"__classPrivateFieldSet",(function(){return M})); /*! ***************************************************************************** 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(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&d(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function M(t,e,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 e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"linearMap",(function(){return i})),n.d(e,"parsePercent",(function(){return o})),n.d(e,"round",(function(){return a})),n.d(e,"asc",(function(){return s})),n.d(e,"getPrecision",(function(){return l})),n.d(e,"getPrecisionSafe",(function(){return u})),n.d(e,"getPixelPrecision",(function(){return c})),n.d(e,"getPercentWithPrecision",(function(){return h})),n.d(e,"addSafe",(function(){return d})),n.d(e,"MAX_SAFE_INTEGER",(function(){return f})),n.d(e,"remRadian",(function(){return p})),n.d(e,"isRadianAroundZero",(function(){return g})),n.d(e,"parseDate",(function(){return m})),n.d(e,"quantity",(function(){return y})),n.d(e,"quantityExponent",(function(){return b})),n.d(e,"nice",(function(){return _})),n.d(e,"quantile",(function(){return x})),n.d(e,"reformIntervals",(function(){return w})),n.d(e,"numericToNumber",(function(){return O})),n.d(e,"isNumeric",(function(){return S})),n.d(e,"getRandomIdBase",(function(){return C})),n.d(e,"getGreatestCommonDividor",(function(){return E})),n.d(e,"getLeastCommonMultiple",(function(){return T}));var r=n(0);function i(t,e,n,r){var i=e[0],o=e[1],a=n[0],s=n[1],l=o-i,u=s-a;if(0===l)return 0===u?a:(a+s)/2;if(r)if(l>0){if(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function o(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return r.isString(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function a(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function s(t){return t.sort((function(t,e){return t-e})),t}function l(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return u(t)}function u(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function c(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function h(t,e,n){if(!t[e])return 0;var i=r.reduce(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===i)return 0;for(var o=Math.pow(10,n),a=r.map(t,(function(t){return(isNaN(t)?0:t)/i*o*100})),s=100*o,l=r.map(a,(function(t){return Math.floor(t)})),u=r.reduce(l,(function(t,e){return t+e}),0),c=r.map(a,(function(t,e){return t-l[e]}));uh&&(h=c[f],d=f);++l[d],c[d]=0,++u}return l[e]/o}function d(t,e){var n=Math.max(l(t),l(e)),r=t+e;return n>20?r:a(r,n)}var f=9007199254740991;function p(t){var e=2*Math.PI;return(t%e+e)%e}function g(t){return t>-1e-4&&t<1e-4}var v=/^(?:(\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 m(t){if(t instanceof Date)return t;if(r.isString(t)){var e=v.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}return null==t?new Date(NaN):new Date(Math.round(t))}function y(t){return Math.pow(10,b(t))}function b(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function _(t,e){var n=b(t),r=Math.pow(10,n),i=t/r;return t=(e?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?+t.toFixed(n<0?-n:0):t}function x(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function w(t){t.sort((function(t,e){return function t(e,n,r){return e.interval[r]=0,a=!1;if(t instanceof l.default){var s=h(t),u=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(C(u)||C(c)){var d=(r=r||{}).style||{};"inherit"===d.fill?(a=!0,r=Object(i.extend)({},r),(d=Object(i.extend)({},d)).fill=u):!C(d.fill)&&C(u)?(a=!0,r=Object(i.extend)({},r),(d=Object(i.extend)({},d)).fill=T(u)):!C(d.stroke)&&C(c)&&(a||(r=Object(i.extend)({},r),d=Object(i.extend)({},d)),d.stroke=T(c)),r.style=d}}if(r&&null==r.z2){a||(r=Object(i.extend)({},r));var f=t.z2EmphasisLift;r.z2=t.z2+(null!=f?f:y)}return r}(this,0,e,n);if("blur"===t)return function(t,e,n){var r=Object(i.indexOf)(t.currentStates,e)>=0,o=t.style.opacity,a=r?null:function(t,e,n,r){for(var i=t.style,o={},a=0;a0){var o={dataIndex:i,seriesIndex:t.seriesIndex};null!=r&&(o.dataType=r),e.push(o)}}))})),e}function at(t,e,n){ft(t,!0),R(t,z),ut(t,e,n)}function st(t){ft(t,!1)}function lt(t,e,n,r){r?st(t):at(t,e,n)}function ut(t,e,n){var r=Object(o.getECData)(t);null!=e?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var ct=["emphasis","blur","select"],ht={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dt(t,e,n,r){n=n||"itemStyle";for(var i=0;iMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function K(t){return!t.isGroup}function J(t,e,n){if(t&&e){var r,i=(r={},t.traverse((function(t){K(t)&&t.anid&&(r[t.anid]=t)})),r);e.traverse((function(t){if(K(t)&&t.anid){var e=i[t.anid];if(e){var r=o(t);t.attr(o(e)),Object(j.updateProps)(t,r,n,Object(I.getECData)(t).dataIndex)}}}))}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Object(A.extend)({},t.shape)),e}}function Q(t,e){return Object(A.map)(t,(function(t){var n=t[0];n=k(n,e.x),n=P(n,e.x+e.width);var r=t[1];return r=k(r,e.y),[n,r=P(r,e.y+e.height)]}))}function tt(t,e){var n=k(t.x,e.x),r=P(t.x+t.width,e.x+e.width),i=k(t.y,e.y),o=P(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function et(t,e,n){var r=Object(A.extend)({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),Object(A.defaults)(i,n),new l.default(r)):z(t.replace("path://",""),r,n,"center")}function nt(t,e,n,r,i){for(var o=0,a=i[i.length-1];o=-1e-6)return!1;var p=t-i,g=e-o,v=it(p,g,u,c)/f;if(v<0||v>1)return!1;var m=it(p,g,h,d)/f;return!(m<0||m>1)}function it(t,e,n,r){return t*r-n*e}function ot(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Object(A.isString)(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&Object(A.each)(Object(A.keys)(l),(function(t){Object(A.hasOwn)(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Object(I.getECData)(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(A.defaults)({content:r,formatterParams:s},i)}}function at(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function st(t,e){if(t)if(Object(A.isArray)(t))for(var n=0;n0}n.d(e,"VIEW_LIFE_CIRCLE",(function(){return Ut.VIEW_LIFE_CIRCLE})),n.d(e,"VERSION",(function(){return r.VERSION})),n.d(e,"Chart",(function(){return r.Chart})),n.d(e,"View",(function(){return r.View})),n.d(e,"Event",(function(){return r.Event})),n.d(e,"ComponentController",(function(){return r.ComponentController})),n.d(e,"TooltipController",(function(){return r.TooltipController})),n.d(e,"Geometry",(function(){return r.Geometry})),n.d(e,"Element",(function(){return r.Element})),n.d(e,"GeometryLabel",(function(){return r.GeometryLabel})),n.d(e,"Interaction",(function(){return r.Interaction})),n.d(e,"Action",(function(){return r.Action})),n.d(e,"Facet",(function(){return r.Facet})),n.d(e,"InteractionAction",(function(){return r.InteractionAction})),n.d(e,"registerComponentController",(function(){return r.registerComponentController})),n.d(e,"registerGeometry",(function(){return r.registerGeometry})),n.d(e,"registerShape",(function(){return r.registerShape})),n.d(e,"registerShapeFactory",(function(){return r.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return r.getShapeFactory})),n.d(e,"registerGeometryLabel",(function(){return r.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return r.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return r.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return r.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return r.getInteraction})),n.d(e,"registerInteraction",(function(){return r.registerInteraction})),n.d(e,"registerAction",(function(){return r.registerAction})),n.d(e,"getActionClass",(function(){return r.getActionClass})),n.d(e,"getFacet",(function(){return r.getFacet})),n.d(e,"registerFacet",(function(){return r.registerFacet})),n.d(e,"getTheme",(function(){return r.getTheme})),n.d(e,"registerTheme",(function(){return r.registerTheme})),n.d(e,"registerEngine",(function(){return r.registerEngine})),n.d(e,"getEngine",(function(){return r.getEngine})),n.d(e,"registerAnimation",(function(){return r.registerAnimation})),n.d(e,"getAnimation",(function(){return r.getAnimation})),n.d(e,"LAYER",(function(){return r.LAYER})),n.d(e,"DIRECTION",(function(){return r.DIRECTION})),n.d(e,"Coordinate",(function(){return r.Coordinate})),n.d(e,"Scale",(function(){return r.Scale})),n.d(e,"Util",(function(){return r.Util})),Object(r.registerTheme)("dark",Object(o.createThemeByStyleSheet)(i.antvDark)),Object(r.registerEngine)("canvas",a),Object(r.registerEngine)("svg",s),Object(r.registerGeometry)("Polygon",g.default),Object(r.registerGeometry)("Interval",h.default),Object(r.registerGeometry)("Schema",v.default),Object(r.registerGeometry)("Path",f.default),Object(r.registerGeometry)("Point",p.default),Object(r.registerGeometry)("Line",d.default),Object(r.registerGeometry)("Area",l.default),Object(r.registerGeometry)("Edge",u.default),Object(r.registerGeometry)("Heatmap",c.default),Object(r.registerGeometry)("Violin",m.default),Object(r.registerGeometryLabel)("base",y.default),Object(r.registerGeometryLabel)("interval",b.default),Object(r.registerGeometryLabel)("pie",_.default),Object(r.registerGeometryLabel)("polar",x.default),Object(r.registerGeometryLabelLayout)("overlap",T.overlap),Object(r.registerGeometryLabelLayout)("distribute",w.distribute),Object(r.registerGeometryLabelLayout)("fixed-overlap",T.fixedOverlap),Object(r.registerGeometryLabelLayout)("hide-overlap",M.hideOverlap),Object(r.registerGeometryLabelLayout)("limit-in-shape",E.limitInShape),Object(r.registerGeometryLabelLayout)("limit-in-canvas",C.limitInCanvas),Object(r.registerGeometryLabelLayout)("limit-in-plot",L.limitInPlot),Object(r.registerGeometryLabelLayout)("pie-outer",O.pieOuterLabelLayout),Object(r.registerGeometryLabelLayout)("adjust-color",A.adjustColor),Object(r.registerGeometryLabelLayout)("interval-adjust-position",I.intervalAdjustPosition),Object(r.registerGeometryLabelLayout)("interval-hide-overlap",j.intervalHideOverlap),Object(r.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),Object(r.registerGeometryLabelLayout)("pie-spider",S.pieSpiderLabelLayout),Object(r.registerGeometryLabelLayout)("path-adjust-position",P.pathAdjustPosition),Object(r.registerAnimation)("fade-in",D.fadeIn),Object(r.registerAnimation)("fade-out",D.fadeOut),Object(r.registerAnimation)("grow-in-x",R.growInX),Object(r.registerAnimation)("grow-in-xy",R.growInXY),Object(r.registerAnimation)("grow-in-y",R.growInY),Object(r.registerAnimation)("scale-in-x",B.scaleInX),Object(r.registerAnimation)("scale-in-y",B.scaleInY),Object(r.registerAnimation)("wave-in",V.waveIn),Object(r.registerAnimation)("zoom-in",U.zoomIn),Object(r.registerAnimation)("zoom-out",U.zoomOut),Object(r.registerAnimation)("position-update",F.positionUpdate),Object(r.registerAnimation)("sector-path-update",z.sectorPathUpdate),Object(r.registerAnimation)("path-in",N.pathIn),Object(r.registerFacet)("rect",$.default),Object(r.registerFacet)("mirror",Y.default),Object(r.registerFacet)("list",H.default),Object(r.registerFacet)("matrix",W.default),Object(r.registerFacet)("circle",G.default),Object(r.registerFacet)("tree",X.default),Object(r.registerComponentController)("axis",Z.default),Object(r.registerComponentController)("legend",K.default),Object(r.registerComponentController)("tooltip",Q.default),Object(r.registerComponentController)("annotation",q.default),Object(r.registerComponentController)("slider",J.default),Object(r.registerComponentController)("scrollbar",tt.default),Object(r.registerAction)("tooltip",rt.default),Object(r.registerAction)("sibling-tooltip",nt.default),Object(r.registerAction)("ellipsis-text",it.default),Object(r.registerAction)("element-active",ot.default),Object(r.registerAction)("element-single-active",lt.default),Object(r.registerAction)("element-range-active",st.default),Object(r.registerAction)("element-highlight",ut.default),Object(r.registerAction)("element-highlight-by-x",ht.default),Object(r.registerAction)("element-highlight-by-color",ct.default),Object(r.registerAction)("element-single-highlight",ft.default),Object(r.registerAction)("element-range-highlight",dt.default),Object(r.registerAction)("element-sibling-highlight",dt.default,{effectSiblings:!0,effectByRecord:!0}),Object(r.registerAction)("element-selected",gt.default),Object(r.registerAction)("element-single-selected",vt.default),Object(r.registerAction)("element-range-selected",pt.default),Object(r.registerAction)("element-link-by-color",at.default),Object(r.registerAction)("active-region",et.default),Object(r.registerAction)("list-active",mt.default),Object(r.registerAction)("list-selected",bt.default),Object(r.registerAction)("list-highlight",yt.default),Object(r.registerAction)("list-unchecked",_t.default),Object(r.registerAction)("list-checked",xt.default),Object(r.registerAction)("list-focus",wt.default),Object(r.registerAction)("list-radio",Ot.default),Object(r.registerAction)("legend-item-highlight",yt.default,{componentNames:["legend"]}),Object(r.registerAction)("axis-label-highlight",yt.default,{componentNames:["axis"]}),Object(r.registerAction)("axis-description",Vt.default),Object(r.registerAction)("rect-mask",Tt.default),Object(r.registerAction)("x-rect-mask",Ct.default,{dim:"x"}),Object(r.registerAction)("y-rect-mask",Ct.default,{dim:"y"}),Object(r.registerAction)("circle-mask",St.default),Object(r.registerAction)("path-mask",Et.default),Object(r.registerAction)("smooth-path-mask",Mt.default),Object(r.registerAction)("cursor",At.default),Object(r.registerAction)("data-filter",It.default),Object(r.registerAction)("brush",jt.default),Object(r.registerAction)("brush-x",jt.default,{dims:["x"]}),Object(r.registerAction)("brush-y",jt.default,{dims:["y"]}),Object(r.registerAction)("sibling-filter",kt.default),Object(r.registerAction)("sibling-x-filter",kt.default),Object(r.registerAction)("sibling-y-filter",kt.default),Object(r.registerAction)("element-filter",Pt.default),Object(r.registerAction)("element-sibling-filter",Lt.default),Object(r.registerAction)("element-sibling-filter-record",Lt.default,{byRecord:!0}),Object(r.registerAction)("view-drag",Rt.default),Object(r.registerAction)("view-move",Nt.default),Object(r.registerAction)("scale-translate",Ft.default),Object(r.registerAction)("scale-zoom",Bt.default),Object(r.registerAction)("reset-button",Dt.default,{name:"reset-button",text:"reset"}),Object(r.registerAction)("mousewheel-scroll",zt.default),Object(r.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),Object(r.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Object(r.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Object(r.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Object(r.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Object(r.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Object(r.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Object(r.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),Object(r.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),Object(r.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),Object(r.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gt,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gt,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gt,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),Object(r.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),Object(r.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gt,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Gt,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Gt,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Object(r.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Gt,action:"path-mask:start"},{trigger:"mousedown",isEnable:Gt,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),Object(r.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Object(r.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Object(r.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Object(r.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Object(r.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),Object(r.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Object(r.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Object(r.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ht(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ht(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Object(r.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Object(r.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},function(t,e,n){"use strict";n.r(e);var r=n(22);n.d(e,"glMatrix",(function(){return r}));var i=n(1019);n.d(e,"mat2",(function(){return i}));var o=n(1020);n.d(e,"mat2d",(function(){return o}));var a=n(612);n.d(e,"mat3",(function(){return a}));var s=n(135);n.d(e,"mat4",(function(){return s}));var l=n(259);n.d(e,"quat",(function(){return l}));var u=n(1021);n.d(e,"quat2",(function(){return u}));var c=n(251);n.d(e,"vec2",(function(){return c}));var h=n(187);n.d(e,"vec3",(function(){return h}));var d=n(158);n.d(e,"vec4",(function(){return d}))},function(t,e,n){"use strict";n.r(e);var r=n(801);n.d(e,"djb2hash",(function(){return r.djb2hash})),n.d(e,"BKDRHash",(function(){return r.BKDRHash}));var i=n(1163);n.d(e,"DOM",(function(){return i}));var o=n(1168);n.d(e,"Satistics",(function(){return o}));var a=n(120);n.d(e,"isMiniAli",(function(){return a.isMiniAli})),n.d(e,"isWeChatMiniProgram",(function(){return a.isWeChatMiniProgram})),n.d(e,"isMini",(function(){return a.isMini})),n.d(e,"miniWindow",(function(){return a.miniWindow})),n.d(e,"$window",(function(){return a.$window})),n.d(e,"$XMLHttpRequest",(function(){return a.$XMLHttpRequest})),n.d(e,"$location",(function(){return a.$location})),n.d(e,"dispatchTouchStart",(function(){return a.dispatchTouchStart})),n.d(e,"dispatchTouchMove",(function(){return a.dispatchTouchMove})),n.d(e,"dispatchTouchEnd",(function(){return a.dispatchTouchEnd})),n.d(e,"dispatchMapCameraParams",(function(){return a.dispatchMapCameraParams})),n.d(e,"dispatchPointerDown",(function(){return a.dispatchPointerDown})),n.d(e,"dispatchPointerMove",(function(){return a.dispatchPointerMove})),n.d(e,"dispatchPointerUp",(function(){return a.dispatchPointerUp})),n.d(e,"dispatchMouseDown",(function(){return a.dispatchMouseDown})),n.d(e,"dispatchMouseMove",(function(){return a.dispatchMouseMove})),n.d(e,"dispatchMouseUp",(function(){return a.dispatchMouseUp}));var s=n(1169);n.d(e,"getJSON",(function(){return s.getJSON})),n.d(e,"getArrayBuffer",(function(){return s.getArrayBuffer})),n.d(e,"getImage",(function(){return s.getImage}));var l=n(1170);n.d(e,"extent",(function(){return l.extent})),n.d(e,"tranfrormCoord",(function(){return l.tranfrormCoord})),n.d(e,"lngLatToMeters",(function(){return l.lngLatToMeters})),n.d(e,"metersToLngLat",(function(){return l.metersToLngLat})),n.d(e,"longitude",(function(){return l.longitude})),n.d(e,"latitude",(function(){return l.latitude})),n.d(e,"validateLngLat",(function(){return l.validateLngLat})),n.d(e,"aProjectFlat",(function(){return l.aProjectFlat})),n.d(e,"unProjectFlat",(function(){return l.unProjectFlat})),n.d(e,"amap2Project",(function(){return l.amap2Project})),n.d(e,"lnglatDistance",(function(){return l.lnglatDistance})),n.d(e,"project",(function(){return l.project})),n.d(e,"padBounds",(function(){return l.padBounds})),n.d(e,"boundsContains",(function(){return l.boundsContains})),n.d(e,"bBoxToBounds",(function(){return l.bBoxToBounds})),n.d(e,"normalize",(function(){return l.normalize})),n.d(e,"calDistance",(function(){return l.calDistance})),n.d(e,"calAngle",(function(){return l.calAngle})),n.d(e,"getAngle",(function(){return l.getAngle})),n.d(e,"flow",(function(){return l.flow}));var u=n(1171);n.d(e,"LRUCache",(function(){return u.LRUCache}));var c=n(1172);n.d(e,"bindAll",(function(){return c.bindAll})),n.d(e,"FrequencyController",(function(){return c.FrequencyController}));var h=n(1173);n.d(e,"isColor",(function(){return h.isColor})),n.d(e,"rgb2arr",(function(){return h.rgb2arr})),n.d(e,"decodePickingColor",(function(){return h.decodePickingColor})),n.d(e,"encodePickingColor",(function(){return h.encodePickingColor})),n.d(e,"generateColorRamp",(function(){return h.generateColorRamp}));var d=n(1174);n.d(e,"anchorType",(function(){return d.anchorType})),n.d(e,"anchorTranslate",(function(){return d.anchorTranslate})),n.d(e,"applyAnchorClass",(function(){return d.applyAnchorClass}));var f=n(1175);n.d(e,"getMask",(function(){return f.getMask}));var p=n(1176);n.d(e,"getCullFace",(function(){return p.getCullFace}));var g=n(1177);n.d(e,"isURLTemplate",(function(){return g.isURLTemplate})),n.d(e,"getURLFromTemplate",(function(){return g.getURLFromTemplate})),n.d(e,"UpdateTileStrategy",(function(){return g.UpdateTileStrategy})),n.d(e,"LoadTileDataStatus",(function(){return g.LoadTileDataStatus})),n.d(e,"Tile",(function(){return g.Tile})),n.d(e,"TilesetManager",(function(){return g.TilesetManager}))},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,n(e)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"VERSION",(function(){return T})),n.d(e,"Util",(function(){return M}));var r=n(161);n.d(e,"Chart",(function(){return r.Chart})),n.d(e,"View",(function(){return r.View})),n.d(e,"Event",(function(){return r.Event}));var i=n(203);n.d(e,"ComponentController",(function(){return i.Controller}));var o=n(623);n.d(e,"TooltipController",(function(){return o.default}));var a=n(163);n.d(e,"Geometry",(function(){return a.default}));var s=n(437);n.d(e,"Element",(function(){return s.default}));var l=n(352);n.d(e,"GeometryLabel",(function(){return l.default}));var u=n(286);n.d(e,"Interaction",(function(){return u.Interaction})),n.d(e,"Action",(function(){return u.Action}));var c=n(383);n.d(e,"Facet",(function(){return c.Facet}));var h=n(87);n.d(e,"InteractionAction",(function(){return h.default})),n.d(e,"registerComponentController",(function(){return r.registerComponentController})),n.d(e,"registerGeometry",(function(){return r.registerGeometry}));var d=n(38);n.d(e,"registerShape",(function(){return d.registerShape})),n.d(e,"registerShapeFactory",(function(){return d.registerShapeFactory})),n.d(e,"getShapeFactory",(function(){return d.getShapeFactory}));var f=n(325);n.d(e,"registerGeometryLabel",(function(){return f.registerGeometryLabel})),n.d(e,"registerGeometryLabelLayout",(function(){return f.registerGeometryLabelLayout})),n.d(e,"getGeometryLabel",(function(){return f.getGeometryLabel})),n.d(e,"getGeometryLabelLayout",(function(){return f.getGeometryLabelLayout})),n.d(e,"getInteraction",(function(){return u.getInteraction})),n.d(e,"registerInteraction",(function(){return u.registerInteraction})),n.d(e,"registerAction",(function(){return u.registerAction})),n.d(e,"getActionClass",(function(){return u.getActionClass})),n.d(e,"getFacet",(function(){return c.getFacet})),n.d(e,"registerFacet",(function(){return c.registerFacet}));var p=n(392);n.d(e,"getTheme",(function(){return p.getTheme})),n.d(e,"registerTheme",(function(){return p.registerTheme}));var g=n(517);n.d(e,"registerEngine",(function(){return g.registerEngine})),n.d(e,"getEngine",(function(){return g.getEngine}));var v=n(436);n.d(e,"registerAnimation",(function(){return v.registerAnimation})),n.d(e,"getAnimation",(function(){return v.getAnimation}));var m=n(7);n.d(e,"LAYER",(function(){return m.LAYER})),n.d(e,"DIRECTION",(function(){return m.DIRECTION}));n(1873);var y=n(89);n.d(e,"Coordinate",(function(){return y.Coordinate})),n.d(e,"Scale",(function(){return y.Scale}));var b=n(547),_=n(318),x=n(69),w=n(186),O=n(359),S=n(24),C=n(194),E=n(624),T="4.2.2",M={getLegendItems:_.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:x.getAngle,getSectorPath:x.getSectorPath,polarToCartesian:x.polarToCartesian,getDelegationObject:S.getDelegationObject,getTooltipItems:O.getTooltipItems,getMappingValue:b.getMappingValue,getPath:E.getPath,getPathPoints:C.getPathPoints}},function(t,e,n){"use strict";function r(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function i(t,e){return t[0]=e[0],t[1]=e[1],t}function o(t){return[t[0],t[1]]}function a(t,e,n){return t[0]=e,t[1]=n,t}function s(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function l(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function c(t){return Math.sqrt(d(t))}n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"copy",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"set",(function(){return a})),n.d(e,"add",(function(){return s})),n.d(e,"scaleAndAdd",(function(){return l})),n.d(e,"sub",(function(){return u})),n.d(e,"len",(function(){return c})),n.d(e,"length",(function(){return h})),n.d(e,"lenSquare",(function(){return d})),n.d(e,"lengthSquare",(function(){return f})),n.d(e,"mul",(function(){return p})),n.d(e,"div",(function(){return g})),n.d(e,"dot",(function(){return v})),n.d(e,"scale",(function(){return m})),n.d(e,"normalize",(function(){return y})),n.d(e,"distance",(function(){return b})),n.d(e,"dist",(function(){return _})),n.d(e,"distanceSquare",(function(){return x})),n.d(e,"distSquare",(function(){return w})),n.d(e,"negate",(function(){return O})),n.d(e,"lerp",(function(){return S})),n.d(e,"applyTransform",(function(){return C})),n.d(e,"min",(function(){return E})),n.d(e,"max",(function(){return T}));var h=c;function d(t){return t[0]*t[0]+t[1]*t[1]}var f=d;function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function g(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function v(t,e){return t[0]*e[0]+t[1]*e[1]}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function y(t,e){var n=c(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function b(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var _=b;function x(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var w=x;function O(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function C(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function E(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function T(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.multiBindToService=e.getServiceIdentifierAsString=e.typeConstraint=e.namedConstraint=e.taggedConstraint=e.traverseAncerstors=e.decorate=e.id=e.MetadataReader=e.postConstruct=e.targetName=e.multiInject=e.unmanaged=e.optional=e.LazyServiceIdentifer=e.inject=e.named=e.tagged=e.injectable=e.ContainerModule=e.AsyncContainerModule=e.TargetTypeEnum=e.BindingTypeEnum=e.BindingScopeEnum=e.Container=e.METADATA_KEY=void 0;var r=n(160);e.METADATA_KEY=r;var i=n(1936);Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return i.Container}});var o=n(324);Object.defineProperty(e,"BindingScopeEnum",{enumerable:!0,get:function(){return o.BindingScopeEnum}}),Object.defineProperty(e,"BindingTypeEnum",{enumerable:!0,get:function(){return o.BindingTypeEnum}}),Object.defineProperty(e,"TargetTypeEnum",{enumerable:!0,get:function(){return o.TargetTypeEnum}});var a=n(1952);Object.defineProperty(e,"AsyncContainerModule",{enumerable:!0,get:function(){return a.AsyncContainerModule}}),Object.defineProperty(e,"ContainerModule",{enumerable:!0,get:function(){return a.ContainerModule}});var s=n(1953);Object.defineProperty(e,"injectable",{enumerable:!0,get:function(){return s.injectable}});var l=n(1954);Object.defineProperty(e,"tagged",{enumerable:!0,get:function(){return l.tagged}});var u=n(1955);Object.defineProperty(e,"named",{enumerable:!0,get:function(){return u.named}});var c=n(1159);Object.defineProperty(e,"inject",{enumerable:!0,get:function(){return c.inject}}),Object.defineProperty(e,"LazyServiceIdentifer",{enumerable:!0,get:function(){return c.LazyServiceIdentifer}});var h=n(1956);Object.defineProperty(e,"optional",{enumerable:!0,get:function(){return h.optional}});var d=n(1957);Object.defineProperty(e,"unmanaged",{enumerable:!0,get:function(){return d.unmanaged}});var f=n(1958);Object.defineProperty(e,"multiInject",{enumerable:!0,get:function(){return f.multiInject}});var p=n(1959);Object.defineProperty(e,"targetName",{enumerable:!0,get:function(){return p.targetName}});var g=n(1960);Object.defineProperty(e,"postConstruct",{enumerable:!0,get:function(){return g.postConstruct}});var v=n(1157);Object.defineProperty(e,"MetadataReader",{enumerable:!0,get:function(){return v.MetadataReader}});var m=n(382);Object.defineProperty(e,"id",{enumerable:!0,get:function(){return m.id}});var y=n(347);Object.defineProperty(e,"decorate",{enumerable:!0,get:function(){return y.decorate}});var b=n(1162);Object.defineProperty(e,"traverseAncerstors",{enumerable:!0,get:function(){return b.traverseAncerstors}}),Object.defineProperty(e,"taggedConstraint",{enumerable:!0,get:function(){return b.taggedConstraint}}),Object.defineProperty(e,"namedConstraint",{enumerable:!0,get:function(){return b.namedConstraint}}),Object.defineProperty(e,"typeConstraint",{enumerable:!0,get:function(){return b.typeConstraint}});var _=n(514);Object.defineProperty(e,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return _.getServiceIdentifierAsString}});var x=n(1961);Object.defineProperty(e,"multiBindToService",{enumerable:!0,get:function(){return x.multiBindToService}})},function(t,e,n){"use strict";n.r(e),n.d(e,"EPSILON",(function(){return r})),n.d(e,"ARRAY_TYPE",(function(){return i})),n.d(e,"RANDOM",(function(){return o})),n.d(e,"setMatrixArrayType",(function(){return a})),n.d(e,"toRadian",(function(){return l})),n.d(e,"equals",(function(){return u}));var r=1e-6,i="undefined"!=typeof Float32Array?Float32Array:Array,o=Math.random;function a(t){i=t}var s=Math.PI/180;function l(t){return t*s}function u(t,e){return Math.abs(t-e)<=r*Math.max(1,Math.abs(t),Math.abs(e))}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";n.r(e),n.d(e,"transitionStore",(function(){return o})),n.d(e,"getAnimationConfig",(function(){return a})),n.d(e,"updateProps",(function(){return l})),n.d(e,"initProps",(function(){return u})),n.d(e,"isElementRemoved",(function(){return c})),n.d(e,"removeElement",(function(){return h})),n.d(e,"removeElementWithFadeOut",(function(){return f})),n.d(e,"saveOldStyle",(function(){return p})),n.d(e,"getOldStyle",(function(){return g}));var r=n(0),i=n(10),o=Object(i.makeInner)();function a(t,e,n,i,o){var a;if(e&&e.ecModel){var s=e.ecModel.getUpdatePayload();a=s&&s.animation}var l="update"===t;if(e&&e.isAnimationEnabled()){var u=void 0,c=void 0,h=void 0;return i?(u=Object(r.retrieve2)(i.duration,200),c=Object(r.retrieve2)(i.easing,"cubicOut"),h=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),h=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(null!=a.duration&&(u=a.duration),null!=a.easing&&(c=a.easing),null!=a.delay&&(h=a.delay)),Object(r.isFunction)(h)&&(h=h(n,o)),Object(r.isFunction)(u)&&(u=u(n)),{duration:u||0,delay:h,easing:c}}return null}function s(t,e,n,i,o,s,l){var u,c=!1;Object(r.isFunction)(o)?(l=s,s=o,o=null):Object(r.isObject)(o)&&(s=o.cb,l=o.during,c=o.isFrom,u=o.removeOpt,o=o.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var d=a(t,i,o,h?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(e,o):null);if(d&&d.duration>0){var f={duration:d.duration,delay:d.delay||0,easing:d.easing,done:s,force:!!s||!!l,setToFinal:!h,scope:t,during:l};c?e.animateFrom(n,f):e.animateTo(n,f)}else e.stopAnimation(),!c&&e.attr(n),l&&l(1),s&&s()}function l(t,e,n,r,i,o){s("update",t,e,n,r,i,o)}function u(t,e,n,r,i,o){s("enter",t,e,n,r,i,o)}function c(t){if(!t.__zr)return!0;for(var e=0;e=e||n.height>=e?n:null}function l(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function u(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function c(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function h(t){return t&&t.component&&t.component.isList()}function d(t){return t&&t.component&&t.component.isSlider()}function f(t){var e=t.event.target;return e&&"mask"===e.get("name")}function p(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return O(t.view,n)}var r=s(t,e);return r?x(t.view,r):null}function g(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,o=A(i,e,{x:r.x,y:r.y}),a=A(i,e,{x:r.maxX,y:r.maxY});return x(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function v(t){var e=t.geometries,n=[];return Object(r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(r.each)(t.views,(function(t){n=n.concat(v(t))})),n}function m(t,e,n){return v(t).filter((function(t){return b(t,e)===n}))}function y(t,e){var n=t.geometries,i=[];return Object(r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function b(t,e){var n=t.getModel().data;return Object(r.isArray)(n)?n[0][e]:n[e]}function _(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function M(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function A(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function I(t,e,n,i){var o=!1;return Object(r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return o=!0,!1})),o}function j(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(r.each)(t.views,(function(t){if(n=j(t,e))return!1})),n}},function(t,e,n){"use strict";n.r(e);var r=n(16);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1018);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"PLOT_CONTAINER_OPTIONS",(function(){return u})),n.d(e,"Plot",(function(){return c}));var r=n(2),i=n(15),o=n(1),a=n(456),s=n(1624),l=n(4),u=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],c=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"==typeof e?document.getElementById(e):e,r.options=Object(l.deepAssign)({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.defaultInteractions;this.chart=new i.Chart(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(l.pick)(this.options,u)),{defaultInteractions:o})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(l.getContainerSize)(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null==e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(l.deepAssign)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(l.getAllElementsRecursively)(this.chart);Object(o.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(l.getAllElementsRecursively)(this.chart),e=[];return Object(o.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(o.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(r.__spreadArrays)(t),i=e.getController("annotation"),o=i.getComponents().map((function(t){return t.extra}));i.clear(!0);for(var a=function(t){var e=o[t],r=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==r&&(e=Object(l.deepAssign)({},e,n[r]),n.splice(r,1)),i.annotation(e)},s=0;s"),IRendererService:Symbol.for("IRendererService"),IShaderModuleService:Symbol.for("IShaderModuleService"),IIconService:Symbol.for("IIconService"),IFontService:Symbol.for("IFontService"),IInteractionService:Symbol.for("IInteractionService"),IPickingService:Symbol.for("IPickingService"),IControlService:Symbol.for("IControlService"),IStyleAttributeService:Symbol.for("IStyleAttributeService"),ILayer:Symbol.for("ILayer"),ILayerPlugin:Symbol.for("ILayerPlugin"),INormalPass:Symbol.for("INormalPass"),IPostProcessor:Symbol.for("IPostProcessor"),IPostProcessingPass:Symbol.for("IPostProcessingPass"),IFactoryPostProcessingPass:Symbol.for("Factory"),IFactoryNormalPass:Symbol.for("Factory"),IMultiPassRenderer:Symbol.for("IMultiPassRenderer"),SceneID:Symbol.for("SceneID"),MapConfig:Symbol.for("MapConfig")}},function(t,e,n){"use strict";n.r(e),n.d(e,"VISUAL_DIMENSIONS",(function(){return i})),n.d(e,"SOURCE_FORMAT_ORIGINAL",(function(){return o})),n.d(e,"SOURCE_FORMAT_ARRAY_ROWS",(function(){return a})),n.d(e,"SOURCE_FORMAT_OBJECT_ROWS",(function(){return s})),n.d(e,"SOURCE_FORMAT_KEYED_COLUMNS",(function(){return l})),n.d(e,"SOURCE_FORMAT_TYPED_ARRAY",(function(){return u})),n.d(e,"SOURCE_FORMAT_UNKNOWN",(function(){return c})),n.d(e,"SERIES_LAYOUT_BY_COLUMN",(function(){return h})),n.d(e,"SERIES_LAYOUT_BY_ROW",(function(){return d}));var r=n(0),i=Object(r.createHashMap)(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),o="original",a="arrayRows",s="objectRows",l="keyedColumns",u="typedArray",c="unknown",h="column",d="row"},function(t,e,n){var r=n(798);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){var r=n(440).default,i=n(8);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(t)},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"getECData",(function(){return i})),n.d(e,"setCommonECData",(function(){return o}));var r=n(10),i=Object(r.makeInner)(),o=function(t,e,n,r){if(r){var o=i(r);o.dataIndex=n,o.dataType=e,o.seriesIndex=t,"group"===r.type&&r.traverse((function(r){var o=i(r);o.seriesIndex=t,o.dataIndex=n,o.dataType=e}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"LOCATION_PARAMS",(function(){return l})),n.d(e,"HV_NAMES",(function(){return u})),n.d(e,"box",(function(){return h})),n.d(e,"vbox",(function(){return d})),n.d(e,"hbox",(function(){return f})),n.d(e,"getAvailableSize",(function(){return p})),n.d(e,"getLayoutRect",(function(){return g})),n.d(e,"positionElement",(function(){return v})),n.d(e,"sizeCalculable",(function(){return m})),n.d(e,"fetchLayoutMode",(function(){return y})),n.d(e,"mergeLayoutParam",(function(){return b})),n.d(e,"getLayoutParams",(function(){return _})),n.d(e,"copyLayoutParams",(function(){return x}));var r=n(0),i=n(35),o=n(6),a=n(48),s=r.each,l=["left","right","top","bottom","width","height"],u=[["width","left","right"],["height","top","bottom"]];function c(t,e,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>r||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(p?-p.y+d.y:0);(h=a+v)>i||l.newline?(o+=s+n,a=0,h=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)}))}var h=c,d=r.curry(c,"vertical"),f=r.curry(c,"horizontal");function p(t,e,n){var r=e.width,i=e.height,s=Object(o.parsePercent)(t.left,r),l=Object(o.parsePercent)(t.top,i),u=Object(o.parsePercent)(t.right,r),c=Object(o.parsePercent)(t.bottom,i);return(isNaN(s)||isNaN(parseFloat(t.left)))&&(s=0),(isNaN(u)||isNaN(parseFloat(t.right)))&&(u=r),(isNaN(l)||isNaN(parseFloat(t.top)))&&(l=0),(isNaN(c)||isNaN(parseFloat(t.bottom)))&&(c=i),n=a.normalizeCssArray(n||0),{width:Math.max(u-s-n[1]-n[3],0),height:Math.max(c-l-n[0]-n[2],0)}}function g(t,e,n){n=a.normalizeCssArray(n||0);var r=e.width,s=e.height,l=Object(o.parsePercent)(t.left,r),u=Object(o.parsePercent)(t.top,s),c=Object(o.parsePercent)(t.right,r),h=Object(o.parsePercent)(t.bottom,s),d=Object(o.parsePercent)(t.width,r),f=Object(o.parsePercent)(t.height,s),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(d)&&(d=r-c-g-l),isNaN(f)&&(f=s-h-p-u),null!=v&&(isNaN(d)&&isNaN(f)&&(v>r/s?d=.8*r:f=.8*s),isNaN(d)&&(d=v*f),isNaN(f)&&(f=d/v)),isNaN(l)&&(l=r-c-d-g),isNaN(u)&&(u=s-h-f-p),t.left||t.right){case"center":l=r/2-d/2-n[3];break;case"right":l=r-d-g}switch(t.top||t.bottom){case"middle":case"center":u=s/2-f/2-n[0];break;case"bottom":u=s-f-p}l=l||0,u=u||0,isNaN(d)&&(d=r-g-l-(c||0)),isNaN(f)&&(f=s-p-u-(h||0));var m=new i.default(l+n[3],u+n[0],d,f);return m.margin=n,m}function v(t,e,n,o,a,s){var l,u=!a||!a.hv||a.hv[0],c=!a||!a.hv||a.hv[1],h=a&&a.boundingMode||"all";if((s=s||t).x=t.x,s.y=t.y,!u&&!c)return!1;if("raw"===h)l="group"===t.type?new i.default(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var d=t.getLocalTransform();(l=l.clone()).applyTransform(d)}var f=g(r.defaults({width:l.width,height:l.height},e),n,o),p=u?f.x-l.x:0,v=c?f.y-l.y:0;return"raw"===h?(s.x=p,s.y=v):(s.x+=p,s.y+=v),s===t&&t.markRedraw(),!0}function m(t,e){return null!=t[u[e][0]]||null!=t[u[e][1]]&&null!=t[u[e][2]]}function y(t){var e=t.layoutMode||t.constructor.layoutMode;return r.isObject(e)?e:e?{type:e}:null}function b(t,e,n){var i=n&&n.ignoreSize;!r.isArray(i)&&(i=[i,i]);var o=l(u[0],0),a=l(u[1],1);function l(n,r){var o={},a=0,l={},u=0;if(s(n,(function(e){l[e]=t[e]})),s(n,(function(t){c(e,t)&&(o[t]=l[t]=e[t]),h(o,t)&&a++,h(l,t)&&u++})),i[r])return h(e,n[1])?l[n[2]]=null:h(e,n[2])&&(l[n[1]]=null),l;if(2!==u&&a){if(a>=2)return o;for(var d=0;dm&&(m=w,ym&&(m=O,_=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,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],h=r[3],d=r[4],f=r[5];return e.x=n.x*i+d,e.y=n.y*h+f,e.width=n.width*i,e.height=n.height*h,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.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),e.x=o(s.x,l.x,u.x,c.x),e.y=o(s.y,l.y,u.y,c.y);var p=a(s.x,l.x,u.x,c.x),g=a(s.y,l.y,u.y,c.y);e.width=p-e.x,e.height=g-e.y}else e!==n&&t.copy(e,n)},t}();e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_PATH_STYLE",(function(){return d})),n.d(e,"DEFAULT_PATH_ANIMATION_PROPS",(function(){return f}));var r=n(59),i=n(97),o=n(138),a=n(827),s=n(0),l=n(71),u=n(151),c=n(100),h=n(119),d=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),f={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=h.TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),g=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){n.buildPath(t,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?u.DARK_LABEL_COLOR:e>.2?u.LIGHTER_LABEL_COLOR:u.LIGHT_LABEL_COLOR}if(t)return u.LIGHT_LABEL_COLOR}return u.DARK_LABEL_COLOR},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(Object(s.isString)(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())===Object(l.lum)(t,0)0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;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()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),r=this.getBoundingRect(),i=this.style;if(t=n[0],e=n[1],r.contain(t,e)){var o=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)),a.containStroke(o,s/l,t,e)))return!0}if(this.hasFill())return a.contain(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=c.SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Object(s.extend)(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&c.SHAPE_CHANGED_BIT)},e.prototype.createStyle=function(t){return Object(s.createObject)(d,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Object(s.extend)({},this.shape))},e.prototype._applyStateObj=function(e,n,r,i,o,a){t.prototype._applyStateObj.call(this,e,n,r,i,o,a);var l,u=!(n&&i);if(n&&n.shape?o?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(o){this.shape=Object(s.extend)({},this.shape);for(var c={},h=Object(s.keys)(l),d=0;d=0&&(n.splice(r,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=i.indexOf(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,r=n[e];if(t&&t!==this&&t.parent!==this&&t!==r){n[e]=t,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,r=i.indexOf(n,t);return r<0||(n.splice(r,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n=0;l--)a=i.merge(a,n[l],!0);e.defaultOption=a}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",r=t+"Id";return Object(l.queryReferringComponents)(this.ecModel,t,{index:this.get(n,!0),id:this.get(r,!0)},e)},e.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=((n=e.prototype).type="component",n.id="",n.name="",n.mainType="",n.subType="",void(n.componentIndex=0)),e}(o.default);Object(s.mountExtend)(h,o.default),Object(s.enableClassManagement)(h),a.enableSubTypeDefaulter(h),a.enableTopologicalTravel(h,(function(t){var e=[];i.each(h.getClassesByMainType(t),(function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])})),e=i.map(e,(function(t){return Object(s.parseClassType)(t).main})),"dataset"!==t&&i.indexOf(e,"dataset")<=0&&e.unshift("dataset");return e})),e.default=h},function(t,e,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function o(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function a(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function s(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function l(t,e,n){var r=e[0],i=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=-r*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function u(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function c(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function h(t){var e=[1,0,0,1,0,0];return o(e,t),e}n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"identity",(function(){return i})),n.d(e,"copy",(function(){return o})),n.d(e,"mul",(function(){return a})),n.d(e,"translate",(function(){return s})),n.d(e,"rotate",(function(){return l})),n.d(e,"scale",(function(){return u})),n.d(e,"invert",(function(){return c})),n.d(e,"clone",(function(){return h}))},function(t,e){t.exports=function(t,e,n,r,i){var o={};return Object.keys(r).forEach((function(t){o[t]=r[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=n.slice().reverse().reduce((function(n,r){return r(t,e,n)||n}),o),i&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(i):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"ONE_SECOND",(function(){return s})),n.d(e,"ONE_MINUTE",(function(){return l})),n.d(e,"ONE_HOUR",(function(){return u})),n.d(e,"ONE_DAY",(function(){return c})),n.d(e,"ONE_YEAR",(function(){return h})),n.d(e,"defaultLeveledFormatter",(function(){return d})),n.d(e,"fullLeveledFormatter",(function(){return f})),n.d(e,"primaryTimeUnits",(function(){return p})),n.d(e,"timeUnits",(function(){return g})),n.d(e,"pad",(function(){return v})),n.d(e,"getPrimaryTimeUnit",(function(){return m})),n.d(e,"isPrimaryTimeUnit",(function(){return y})),n.d(e,"getDefaultFormatPrecisionOfInterval",(function(){return b})),n.d(e,"format",(function(){return _})),n.d(e,"leveledFormat",(function(){return x})),n.d(e,"getUnitFromValue",(function(){return w})),n.d(e,"getUnitValue",(function(){return O})),n.d(e,"fullYearGetterName",(function(){return S})),n.d(e,"monthGetterName",(function(){return C})),n.d(e,"dateGetterName",(function(){return E})),n.d(e,"hoursGetterName",(function(){return T})),n.d(e,"minutesGetterName",(function(){return M})),n.d(e,"secondsGetterName",(function(){return A})),n.d(e,"millisecondsGetterName",(function(){return I})),n.d(e,"fullYearSetterName",(function(){return j})),n.d(e,"monthSetterName",(function(){return k})),n.d(e,"dateSetterName",(function(){return P})),n.d(e,"hoursSetterName",(function(){return L})),n.d(e,"minutesSetterName",(function(){return D})),n.d(e,"secondsSetterName",(function(){return R})),n.d(e,"millisecondsSetterName",(function(){return N}));var r=n(0),i=n(6),o=n(247),a=n(57),s=1e3,l=60*s,u=60*l,c=24*u,h=365*c,d={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}"},f={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+d.hour,minute:"{yyyy}-{MM}-{dd} "+d.minute,second:"{yyyy}-{MM}-{dd} "+d.second,millisecond:d.none},p=["year","month","day","hour","minute","second","millisecond"],g=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function v(t,e){return"0000".substr(0,e-(t+="").length)+t}function m(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function y(t){return t===m(t)}function b(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function _(t,e,n,r){var s=i.parseDate(t),l=s[S(n)](),u=s[C(n)]()+1,c=Math.floor((u-1)/4)+1,h=s[E(n)](),d=s["get"+(n?"UTC":"")+"Day"](),f=s[T(n)](),p=(f-1)%12+1,g=s[M(n)](),m=s[A(n)](),y=s[I(n)](),b=(r instanceof a.default?r:Object(o.getLocaleModel)(r||o.SYSTEM_LANG)||Object(o.getDefaultLocaleModel)()).getModel("time"),_=b.get("month"),x=b.get("monthAbbr"),w=b.get("dayOfWeek"),O=b.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,c+"").replace(/{MMMM}/g,_[u-1]).replace(/{MMM}/g,x[u-1]).replace(/{MM}/g,v(u,2)).replace(/{M}/g,u+"").replace(/{dd}/g,v(h,2)).replace(/{d}/g,h+"").replace(/{eeee}/g,w[d]).replace(/{ee}/g,O[d]).replace(/{e}/g,d+"").replace(/{HH}/g,v(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,v(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,v(g,2)).replace(/{m}/g,g+"").replace(/{ss}/g,v(m,2)).replace(/{s}/g,m+"").replace(/{SSS}/g,v(y,3)).replace(/{S}/g,y+"")}function x(t,e,n,i,o){var a=null;if(r.isString(n))a=n;else if(r.isFunction(n))a=n(t.value,e,{level:t.level});else{var s=r.extend({},d);if(t.level>0)for(var l=0;l=0;--l)if(u[c]){a=u[c];break}a=a||s.none}if(r.isArray(a)){var h=null==t.level?0:t.level>=0?t.level:a.length+t.level;a=a[h=Math.min(h,a.length-1)]}}return _(new Date(t.value),a,o,i)}function w(t,e){var n=i.parseDate(t),r=n[C(e)]()+1,o=n[E(e)](),a=n[T(e)](),s=n[M(e)](),l=n[A(e)](),u=0===n[I(e)](),c=u&&0===l,h=c&&0===s,d=h&&0===a,f=d&&1===o;return f&&1===r?"year":f?"month":d?"day":h?"hour":c?"minute":u?"second":"millisecond"}function O(t,e,n){var o=r.isNumber(t)?i.parseDate(t):t;switch(e=e||w(t,n)){case"year":return o[S(n)]();case"half-year":return o[C(n)]()>=6?1:0;case"quarter":return Math.floor((o[C(n)]()+1)/4);case"month":return o[C(n)]();case"day":return o[E(n)]();case"half-day":return o[T(n)]()/24;case"hour":return o[T(n)]();case"minute":return o[M(n)]();case"second":return o[A(n)]();case"millisecond":return o[I(n)]()}}function S(t){return t?"getUTCFullYear":"getFullYear"}function C(t){return t?"getUTCMonth":"getMonth"}function E(t){return t?"getUTCDate":"getDate"}function T(t){return t?"getUTCHours":"getHours"}function M(t){return t?"getUTCMinutes":"getMinutes"}function A(t){return t?"getUTCSeconds":"getSeconds"}function I(t){return t?"getUTCMilliseconds":"getMilliseconds"}function j(t){return t?"setUTCFullYear":"setFullYear"}function k(t){return t?"setUTCMonth":"setMonth"}function P(t){return t?"setUTCDate":"setDate"}function L(t){return t?"setUTCHours":"setHours"}function D(t){return t?"setUTCMinutes":"setMinutes"}function R(t){return t?"setUTCSeconds":"setSeconds"}function N(t){return t?"setUTCMilliseconds":"setMilliseconds"}},function(t,e,n){"use strict";n.r(e),n.d(e,"formatPadding",(function(){return i})),n.d(e,"clearDom",(function(){return o})),n.d(e,"hasClass",(function(){return a})),n.d(e,"regionToBBox",(function(){return s})),n.d(e,"pointsToBBox",(function(){return l})),n.d(e,"createBBox",(function(){return u})),n.d(e,"getValueByPercent",(function(){return c})),n.d(e,"getCirclePoint",(function(){return h})),n.d(e,"distance",(function(){return d})),n.d(e,"wait",(function(){return f})),n.d(e,"near",(function(){return p})),n.d(e,"intersectBBox",(function(){return g})),n.d(e,"mergeBBox",(function(){return v})),n.d(e,"getBBoxWithClip",(function(){return m})),n.d(e,"updateClip",(function(){return y})),n.d(e,"toPx",(function(){return b})),n.d(e,"getTextPoint",(function(){return _}));var r=n(1);function i(t){var e=0,n=0,i=0,o=0;return Object(r.isNumber)(t)?e=n=i=o=t:Object(r.isArray)(t)&&(e=t[0],i=Object(r.isNil)(t[1])?t[0]:t[1],o=Object(r.isNil)(t[2])?t[0]:t[2],n=Object(r.isNil)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function u(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function c(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function d(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}var f=function(t){return new Promise((function(e){setTimeout(e,t)}))},p=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?Object(r.each)(c,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=m(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),u=t.applyToMatrix([e.maxX,e.maxY,1]),c=Math.min(n[0],r[0],i[0],u[0]),h=Math.max(n[0],r[0],i[0],u[0]),d=Math.min(n[1],r[1],i[1],u[1]),f=Math.max(n[1],r[1],i[1],u[1]);ca&&(a=h),dl&&(l=f)}})):(o=0,a=0,s=0,l=0),e=u(o,s,a-o,l-s)}else e=t.getBBox();return i?g(e,i):e}function y(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}}function b(t){return t+"px"}function _(t,e,n,r){var i=r/d(t,e),o=0;return"start"===n?o=0-i:"end"===n&&(o=1+i),{x:c(t.x,e.x,o),y:c(t.y,e.y,o)}}},function(t,e){t.exports=function(t,e,n,r){n&&Object.defineProperty(t,e,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"use",(function(){return f}));var r=n(126),i=n(62),o=n(53),a=n(40),s=n(54),l=n(0),u=n(533),c=n(389),h=[],d={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:a.default,ComponentView:i.default,SeriesModel:s.default,ChartView:o.default,registerComponentModel:function(t){a.default.registerClass(t)},registerComponentView:function(t){i.default.registerClass(t)},registerSeriesModel:function(t){s.default.registerClass(t)},registerChartView:function(t){o.default.registerClass(t)},registerSubTypeDefaulter:function(t,e){a.default.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Object(c.registerPainter)(t,e)}};function f(t){Object(l.isArray)(t)?Object(l.each)(t,(function(t){f(t)})):Object(l.indexOf)(h,t)>=0||(h.push(t),Object(l.isFunction)(t)&&(t={install:t}),t.install(d))}},function(t,e,n){"use strict";n.r(e),n.d(e,"cubicAt",(function(){return d})),n.d(e,"cubicDerivativeAt",(function(){return f})),n.d(e,"cubicRootAt",(function(){return p})),n.d(e,"cubicExtrema",(function(){return g})),n.d(e,"cubicSubdivide",(function(){return v})),n.d(e,"cubicProjectPoint",(function(){return m})),n.d(e,"cubicLength",(function(){return y})),n.d(e,"quadraticAt",(function(){return b})),n.d(e,"quadraticDerivativeAt",(function(){return _})),n.d(e,"quadraticRootAt",(function(){return x})),n.d(e,"quadraticExtremum",(function(){return w})),n.d(e,"quadraticSubdivide",(function(){return O})),n.d(e,"quadraticProjectPoint",(function(){return S})),n.d(e,"quadraticLength",(function(){return C}));var r=n(20),i=Math.pow,o=Math.sqrt,a=o(3),s=Object(r.create)(),l=Object(r.create)(),u=Object(r.create)();function c(t){return t>-1e-8&&t<1e-8}function h(t){return t>1e-8||t<-1e-8}function d(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function f(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function p(t,e,n,r,s,l){var u=r+3*(e-n)-t,h=3*(n-2*e+t),d=3*(e-t),f=t-s,p=h*h-3*u*d,g=h*d-9*u*f,v=d*d-3*h*f,m=0;if(c(p)&&c(g)){if(c(h))l[0]=0;else(M=-d/h)>=0&&M<=1&&(l[m++]=M)}else{var y=g*g-4*p*v;if(c(y)){var b=g/p,_=-b/2;(M=-h/u+b)>=0&&M<=1&&(l[m++]=M),_>=0&&_<=1&&(l[m++]=_)}else if(y>0){var x=o(y),w=p*h+1.5*u*(-g+x),O=p*h+1.5*u*(-g-x);(M=(-h-((w=w<0?-i(-w,1/3):i(w,1/3))+(O=O<0?-i(-O,1/3):i(O,1/3))))/(3*u))>=0&&M<=1&&(l[m++]=M)}else{var S=(2*p*h-3*u*g)/(2*o(p*p*p)),C=Math.acos(S)/3,E=o(p),T=Math.cos(C),M=(-h-2*E*T)/(3*u),A=(_=(-h+E*(T+a*Math.sin(C)))/(3*u),(-h+E*(T-a*Math.sin(C)))/(3*u));M>=0&&M<=1&&(l[m++]=M),_>=0&&_<=1&&(l[m++]=_),A>=0&&A<=1&&(l[m++]=A)}}return m}function g(t,e,n,r,i){var a=6*n-12*e+6*t,s=9*e+3*r-3*t-9*n,l=3*e-3*t,u=0;if(c(s)){if(h(a))(f=-l/a)>=0&&f<=1&&(i[u++]=f)}else{var d=a*a-4*s*l;if(c(d))i[0]=-a/(2*s);else if(d>0){var f,p=o(d),g=(-a-p)/(2*s);(f=(-a+p)/(2*s))>=0&&f<=1&&(i[u++]=f),g>=0&&g<=1&&(i[u++]=g)}}return u}function v(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,h=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=r}function m(t,e,n,i,a,c,h,f,p,g,v){var m,y,b,_,x,w=.005,O=1/0;s[0]=p,s[1]=g;for(var S=0;S<1;S+=.05)l[0]=d(t,n,a,h,S),l[1]=d(e,i,c,f,S),(_=Object(r.distSquare)(s,l))=0&&_=0&&f<=1&&(i[u++]=f)}else{var d=s*s-4*a*l;if(c(d))(f=-s/(2*a))>=0&&f<=1&&(i[u++]=f);else if(d>0){var f,p=o(d),g=(-s-p)/(2*a);(f=(-s+p)/(2*a))>=0&&f<=1&&(i[u++]=f),g>=0&&g<=1&&(i[u++]=g)}}return u}function w(t,e,n){var r=t+n-2*e;return 0===r?.5:(t-e)/r}function O(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function S(t,e,n,i,a,c,h,d,f){var p,g=.005,v=1/0;s[0]=h,s[1]=d;for(var m=0;m<1;m+=.05){l[0]=b(t,n,a,m),l[1]=b(e,i,c,m),(w=Object(r.distSquare)(s,l))=0&&w1?"."+e[1]:"")}function u(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}n.d(e,"getTextRect",(function(){return s.getTextRect}));var c=r.normalizeCssArray,h=/([&<>"'])/g,d={"&":"&","<":"<",">":">",'"':""","'":"'"};function f(t){return null==t?"":(t+"").replace(h,(function(t,e){return d[e]}))}function p(t,e,n){function a(t){return t&&r.trim(t)?t:"-"}function s(t){return!(null==t||isNaN(t)||!isFinite(t))}var u="time"===e,c=t instanceof Date;if(u||c){var h=u?Object(i.parseDate)(t):t;if(!isNaN(+h))return Object(o.format)(h,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(c)return"-"}if("ordinal"===e)return r.isStringSafe(t)?a(t):r.isNumber(t)&&s(t)?t+"":"-";var d=Object(i.numericToNumber)(t);return s(d)?l(d):r.isStringSafe(t)?a(t):"boolean"==typeof t?t+"":"-"}var g=["a","b","c","d","e","f","g"],v=function(t,e){return"{"+t+(null==e?"":e)+"}"};function m(t,e,n){r.isArray(e)||(e=[e]);var i=e.length;if(!i)return"";for(var o=e[0].$vars||[],a=0;a':'':{renderMode:a,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===o?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function _(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var r=Object(i.parseDate)(e),a=n?"getUTC":"get",s=r[a+"FullYear"](),l=r[a+"Month"]()+1,u=r[a+"Date"](),c=r[a+"Hours"](),h=r[a+"Minutes"](),d=r[a+"Seconds"](),f=r[a+"Milliseconds"]();return t=t.replace("MM",Object(o.pad)(l,2)).replace("M",l).replace("yyyy",s).replace("yy",s%100+"").replace("dd",Object(o.pad)(u,2)).replace("d",u).replace("hh",Object(o.pad)(c,2)).replace("h",c).replace("mm",Object(o.pad)(h,2)).replace("m",h).replace("ss",Object(o.pad)(d,2)).replace("s",d).replace("SSS",Object(o.pad)(f,3))}function x(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function w(t,e){return e=e||"transparent",r.isString(t)?t:r.isObject(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function O(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}},function(t,e,n){"use strict";n.r(e);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(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]);i&&(n.ie=!0,n.version=i[1]);o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18);a&&(n.weChat=!0);e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,i),e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"warning",(function(){return l})),n.d(e,"format",(function(){return u})),n.d(e,"isEmptyValue",(function(){return c})),n.d(e,"isEmptyObject",(function(){return h})),n.d(e,"asyncMap",(function(){return f})),n.d(e,"complementError",(function(){return p})),n.d(e,"deepMerge",(function(){return g}));var r=n(405),i=n.n(r),o=n(254),a=n.n(o),s=/%[sdj%]/g,l=function(){};function u(){for(var t=arguments.length,e=Array(t),n=0;n=o)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}})),l=e[r];rthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var r=this.ecModel,i=l.PaletteMixin.prototype.getColorFromPalette.call(this,t,e,n);return i||(i=r.getColorFromPalette(t,e,n)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(e);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(o)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(e);return("all"===n||n[v(r,t)])&&!r.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[m])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,r,o=this.option,a=o.selectedMode,s=e.length;if(a&&s)if("series"===a)o.selectedMap="all";else if("multiple"===a){i.isObject(o.selectedMap)||(o.selectedMap={});for(var l=o.selectedMap,u=0;u0&&this._innerSelect(t,e)}},e.registerClass=function(t){return s.default.registerClass(t)},e.protoInitialize=((n=e.prototype).type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",void(n.visualDrawType="fill")),e}(s.default);function b(t){var e=t.name;a.isNameSpecified(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return i.each(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&r.push(n.displayName)})),r.join(" ")}(t)||e)}function _(t){return t.model.getRawData().count()}function x(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),w}function w(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function O(t,e){i.each(i.concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,i.curry(S,e))}))}function S(t,e){var n=C(t);return n&&n.setOutputEnd((e||this).count()),e}function C(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}i.mixin(y,u.DataFormatMixin),i.mixin(y,l.PaletteMixin),Object(d.mountExtend)(y,s.default),e.default=y},function(t,e,n){"use strict";n.r(e),n.d(e,"getWidth",(function(){return s})),n.d(e,"innerGetBoundingRect",(function(){return l})),n.d(e,"getBoundingRect",(function(){return u})),n.d(e,"adjustTextX",(function(){return c})),n.d(e,"adjustTextY",(function(){return h})),n.d(e,"getLineHeight",(function(){return d})),n.d(e,"measureText",(function(){return f})),n.d(e,"parsePercent",(function(){return p})),n.d(e,"calculateTextPosition",(function(){return g}));var r=n(35),i=n(291),o=n(98),a={};function s(t,e){e=e||o.DEFAULT_FONT;var n=a[e];n||(n=a[e]=new i.default(500));var r=n.get(t);return null==r&&(r=o.platformApi.measureText(t,e).width,n.put(t,r)),r}function l(t,e,n,i){var o=s(t,e),a=d(e),l=c(0,o,n),u=h(0,a,i);return new r.default(l,u,o,a)}function u(t,e,n,i){var o=((t||"")+"").split("\n");if(1===o.length)return l(o[0],e,n,i);for(var a=new r.default(0,0,0,0),s=0;s=0?parseFloat(t)/100*e:parseFloat(t):t}function g(t,e,n){var r=e.position||"inside",i=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(r instanceof Array)l+=p(r[0],n.width),u+=p(r[1],n.height),c=null,h=null;else switch(r){case"left":l-=i,u+=s,c="right",h="middle";break;case"right":l+=i+a,u+=s,h="middle";break;case"top":l+=a/2,u-=i,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=i,u+=s,h="middle";break;case"insideRight":l+=a-i,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",h="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getPixelRatio",(function(){return i})),n.d(e,"distance",(function(){return o})),n.d(e,"inBox",(function(){return a})),n.d(e,"intersectRect",(function(){return s})),n.d(e,"mergeRegion",(function(){return l})),n.d(e,"isSamePoint",(function(){return u}));var r=n(1);function i(){return window?window.devicePixelRatio:1}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof b?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function x(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:b(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function O(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}var S=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&d(e,t,n);return S(e,t),e}function E(t){return t&&t.__esModule?t:{default:t}}function T(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)}function M(t,e,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 e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"symbolBuildProxies",(function(){return y})),n.d(e,"createSymbol",(function(){return x})),n.d(e,"normalizeSymbolSize",(function(){return w})),n.d(e,"normalizeSymbolOffset",(function(){return O}));var r=n(0),i=n(36),o=n(144),a=n(70),s=n(233),l=n(14),u=n(35),c=n(55),h=n(6),d=i.default.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),f=i.default.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),p=i.default.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,h=Math.sin(u),d=Math.cos(u),f=.6*a,p=.7*a;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,2*Math.PI+u),t.bezierCurveTo(n+c-h*f,l+s+d*f,n,r-p,n,r),t.bezierCurveTo(n,r-p,n-c+h*f,l+s+d*f,n-c,l+s),t.closePath()}}),g=i.default.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),v={line:o.default,rect:a.default,roundRect:a.default,square:a.default,circle:s.default,diamond:f,pin:p,arrow:g,triangle:d},m={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},y={};Object(r.each)(v,(function(t,e){y[e]=new t}));var b=i.default.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=Object(c.calculateTextPosition)(t,e,n),i=this.shape;return i&&"pin"===i.symbolType&&"inside"===e.position&&(r.y=n.y+.4*n.height),r},buildPath:function(t,e,n){var r=e.symbolType;if("none"!==r){var i=y[r];i||(i=y[r="rect"]),m[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function _(t,e){if("image"!==this.type){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):"line"===this.shape.symbolType?n.stroke=t:n.fill=t,this.markRedraw()}}function x(t,e,n,r,i,o,a){var s,c=0===t.indexOf("empty");return c&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?l.makeImage(t.slice(8),new u.default(e,n,r,i),a?"center":"cover"):0===t.indexOf("path://")?l.makePath(t.slice(7),{},new u.default(e,n,r,i),a?"center":"cover"):new b({shape:{symbolType:t,x:e,y:n,width:r,height:i}})).__isEmptyBrush=c,s.setColor=_,o&&s.setColor(o),s}function w(t){return Object(r.isArray)(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function O(t,e){if(null!=t)return Object(r.isArray)(t)||(t=[t,t]),[Object(h.parsePercent)(t[0],e[0])||0,Object(h.parsePercent)(Object(r.retrieve2)(t[1],t[0]),e[1])||0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"wrap",(function(){return u})),n.d(e,"clamp",(function(){return c})),n.d(e,"interpolate",(function(){return h})),n.d(e,"bezier",(function(){return d})),n.d(e,"ease",(function(){return f})),n.d(e,"prefersReducedMotion",(function(){return p})),n.d(e,"pick",(function(){return g})),n.d(e,"now",(function(){return v})),n.d(e,"raf",(function(){return m})),n.d(e,"cancel",(function(){return y})),n.d(e,"renderframe",(function(){return b}));var r,i=n(17),o=n(1762),a=n.n(o);function s(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0,N=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),F=a.calculatedLineHeight,B=0;B=0&&"right"===(k=w[j]).align;)this._placeToken(k,t,S,m,I,"right",b),C-=k.width,I-=k.width,j--;for(A+=(r-(A-v)-(y-I)-C)/2;E<=j;)k=w[E],this._placeToken(k,t,S,m,A+k.width/2,"center",b),A+=k.width,E++;m+=S}},e.prototype._placeToken=function(t,e,n,r,i,l,u){var h=e.rich[t.styleName]||{};h.text=t.text;var f=t.verticalAlign,p=r+n/2;"top"===f?p=r+t.height/2:"bottom"===f&&(p=r+n-t.height/2),!t.isLineHolder&&M(h)&&this._renderBackground(h,e,"right"===l?i-t.width:"center"===l?i-t.width/2:i,p-t.height/2,t.width,t.height);var g=!!h.backgroundColor,v=t.textPadding;v&&(i=E(i,l,v),p-=t.height/2-v[0]-t.innerHeight/2);var m=this._getOrCreateChild(o.default),y=m.createStyle();m.useStyle(y);var b=this._defaultStyle,x=!1,w=0,O=C("fill"in h?h.fill:"fill"in e?e.fill:(x=!0,b.fill)),T=S("stroke"in h?h.stroke:"stroke"in e?e.stroke:g||u||b.autoStroke&&!x?null:(w=2,b.stroke)),A=h.textShadowBlur>0||e.textShadowBlur>0;y.text=t.text,y.x=i,y.y=p,A&&(y.shadowBlur=h.textShadowBlur||e.textShadowBlur||0,y.shadowColor=h.textShadowColor||e.textShadowColor||"transparent",y.shadowOffsetX=h.textShadowOffsetX||e.textShadowOffsetX||0,y.shadowOffsetY=h.textShadowOffsetY||e.textShadowOffsetY||0),y.textAlign=l,y.textBaseline="middle",y.font=t.font||d.DEFAULT_FONT,y.opacity=Object(a.retrieve3)(h.opacity,e.opacity,1),_(y,h),T&&(y.lineWidth=Object(a.retrieve3)(h.lineWidth,e.lineWidth,w),y.lineDash=Object(a.retrieve2)(h.lineDash,e.lineDash),y.lineDashOffset=e.lineDashOffset||0,y.stroke=T),O&&(y.fill=O);var I=t.contentWidth,j=t.contentHeight;m.setBoundingRect(new c.default(Object(s.adjustTextX)(y.x,I,y.textAlign),Object(s.adjustTextY)(y.y,j,y.textBaseline),I,j))},e.prototype._renderBackground=function(t,e,n,r,i,o){var s,c,h,d=t.backgroundColor,f=t.borderWidth,p=t.borderColor,g=d&&d.image,v=d&&!g,m=t.borderRadius,y=this;if(v||t.lineHeight||f&&p){(s=this._getOrCreateChild(u.default)).useStyle(s.createStyle()),s.style.fill=null;var b=s.shape;b.x=n,b.y=r,b.width=i,b.height=o,b.r=m,s.dirtyShape()}if(v)(h=s.style).fill=d||null,h.fillOpacity=Object(a.retrieve2)(t.fillOpacity,1);else if(g){(c=this._getOrCreateChild(l.default)).onload=function(){y.dirtyStyle()};var _=c.style;_.image=d.image,_.x=n,_.y=r,_.width=i,_.height=o}f&&p&&((h=s.style).lineWidth=f,h.stroke=p,h.strokeOpacity=Object(a.retrieve2)(t.strokeOpacity,1),h.lineDash=t.borderDash,h.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(h.strokeFirst=!0,h.lineWidth*=2));var x=(s||c).style;x.shadowBlur=t.shadowBlur||0,x.shadowColor=t.shadowColor||"transparent",x.shadowOffsetX=t.shadowOffsetX||0,x.shadowOffsetY=t.shadowOffsetY||0,x.opacity=Object(a.retrieve3)(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return x(t)&&(e=[t.fontStyle,t.fontWeight,b(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Object(a.trim)(e)||t.textFont||t.font},e}(h.default),v={left:!0,right:1,center:1},m={top:1,bottom:1,middle:1},y=["fontStyle","fontWeight","fontSize","fontFamily"];function b(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?d.DEFAULT_FONT_SIZE+"px":t+"px":t}function _(t,e){for(var n=0;nt.x?t.x:e,n=nt.y?t.y:i,o=o255?255:t}function a(t){return t<0?0:t>1?1:t}function s(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?o(parseFloat(e)/100*255):o(parseInt(e,10))}function l(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?a(parseFloat(e)/100):a(parseFloat(e))}function u(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function c(t,e,n){return t+(e-t)*n}function h(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function d(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var f=new r.default(20),p=null;function g(t,e){p&&d(p,e),p=f.put(t,p||e.slice())}function v(t,e){if(t){e=e||[];var n=f.get(t);if(n)return d(e,n);var r=(t+="").replace(/ /g,"").toLowerCase();if(r in i)return d(e,i[r]),g(t,e),e;var o,a=r.length;if("#"===r.charAt(0))return 4===a||5===a?(o=parseInt(r.slice(1,4),16))>=0&&o<=4095?(h(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===a?parseInt(r.slice(4),16)/15:1),g(t,e),e):void h(e,0,0,0,1):7===a||9===a?(o=parseInt(r.slice(1,7),16))>=0&&o<=16777215?(h(e,(16711680&o)>>16,(65280&o)>>8,255&o,9===a?parseInt(r.slice(7),16)/255:1),g(t,e),e):void h(e,0,0,0,1):void 0;var u=r.indexOf("("),c=r.indexOf(")");if(-1!==u&&c+1===a){var p=r.substr(0,u),v=r.substr(u+1,c-(u+1)).split(","),y=1;switch(p){case"rgba":if(4!==v.length)return 3===v.length?h(e,+v[0],+v[1],+v[2],1):h(e,0,0,0,1);y=l(v.pop());case"rgb":return 3!==v.length?void h(e,0,0,0,1):(h(e,s(v[0]),s(v[1]),s(v[2]),y),g(t,e),e);case"hsla":return 4!==v.length?void h(e,0,0,0,1):(v[3]=l(v[3]),m(v,e),g(t,e),e);case"hsl":return 3!==v.length?void h(e,0,0,0,1):(m(v,e),g(t,e),e);default:return}}h(e,0,0,0,1)}}function m(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=l(t[1]),i=l(t[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return h(e=e||[],o(255*u(s,a,n+1/3)),o(255*u(s,a,n)),o(255*u(s,a,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function y(t,e){var n=v(t);if(n){for(var r=0;r<3;r++)n[r]=e<0?n[r]*(1-e)|0:(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return E(n,4===n.length?"rgba":"rgb")}}function b(t){var e=v(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function _(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),l=e[i],u=e[s],h=r-i;return n[0]=o(c(l[0],u[0],h)),n[1]=o(c(l[1],u[1],h)),n[2]=o(c(l[2],u[2],h)),n[3]=a(c(l[3],u[3],h)),n}}var x=_;function w(t,e,n){if(e&&e.length&&t>=0&&t<=1){var r=t*(e.length-1),i=Math.floor(r),s=Math.ceil(r),l=v(e[i]),u=v(e[s]),h=r-i,d=E([o(c(l[0],u[0],h)),o(c(l[1],u[1],h)),o(c(l[2],u[2],h)),a(c(l[3],u[3],h))],"rgba");return n?{color:d,leftIndex:i,rightIndex:s,value:r}:d}}var O=w;function S(t,e,n,r){var i,o=v(t);if(t)return o=function(t){if(t){var e,n,r=t[0]/255,i=t[1]/255,o=t[2]/255,a=Math.min(r,i,o),s=Math.max(r,i,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-r)/6+l/2)/l,h=((s-i)/6+l/2)/l,d=((s-o)/6+l/2)/l;r===s?e=d-h:i===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(o),null!=e&&(o[0]=(i=e,(i=Math.round(i))<0?0:i>360?360:i)),null!=n&&(o[1]=l(n)),null!=r&&(o[2]=l(r)),E(m(o),"rgba")}function C(t,e){var n=v(t);if(n&&null!=e)return n[3]=a(e),E(n,"rgba")}function E(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function T(t,e){var n=v(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function M(){return E([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}},function(t,e,n){var r=n(1932),i=n(1933),o=n(1156),a=n(1934);t.exports=function(t,e){return r(t)||i(t,e)||o(t,e)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"FUNNEL_PERCENT",(function(){return i})),n.d(e,"FUNNEL_MAPPING_VALUE",(function(){return o})),n.d(e,"FUNNEL_CONVERSATION",(function(){return a})),n.d(e,"FUNNEL_TOTAL_PERCENT",(function(){return s})),n.d(e,"PLOYGON_X",(function(){return l})),n.d(e,"PLOYGON_Y",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",s="$$totalPercentage$$",l="$$x$$",u="$$y$$",c={appendPadding:[0,80],minSize:0,maxSize:1,meta:(r={},r[o]={min:0,max:1,nice:!1},r),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}}},function(t,e,n){"use strict";n.r(e);var r=n(131);e.default=function(t){return Array.isArray?Array.isArray(t):Object(r.default)(t,"Array")}},function(t,e,n){"use strict";n.r(e),n.d(e,"createTooltipMarkup",(function(){return c})),n.d(e,"buildTooltipMarkup",(function(){return g})),n.d(e,"retrieveVisualColorForTooltipMarker",(function(){return y})),n.d(e,"getPaddingFromTooltipModel",(function(){return b})),n.d(e,"TooltipMarkupStyleCreator",(function(){return _}));var r=n(48),i=n(0),o=n(150),a=n(6);function s(t,e){var n=t.color||"#6e7079",i=t.fontSize||12,o=t.fontWeight||"400",a=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+Object(r.encodeHTML)(i+"")+"px;color:"+Object(r.encodeHTML)(n)+";font-weight:"+Object(r.encodeHTML)(o+""),valueStyle:"font-size:"+Object(r.encodeHTML)(s+"")+"px;color:"+Object(r.encodeHTML)(a)+";font-weight:"+Object(r.encodeHTML)(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:o},valueStyle:{fontSize:s,fill:a,fontWeight:l}}}var l=[0,10,20,30],u=["","\n","\n\n","\n\n\n"];function c(t,e){return e.type=t,e}function h(t){return"section"===t.type}function d(t){return h(t)?f:p}function f(t,e,n,a){var c,f=e.noHeader,p=(c=function t(e){if(h(e)){var n=0,r=e.blocks.length,o=r>1||r>0&&!e.noHeader;return Object(i.each)(e.blocks,(function(e){var r=t(e);r>=n&&(n=r+ +(o&&(!r||h(e)&&!e.noHeader)))})),n}return 0}(e),{html:l[c],richText:u[c]}),g=[],y=e.blocks||[];Object(i.assert)(!y||Object(i.isArray)(y)),y=y||[];var b=t.orderMode;if(e.sortBlocks&&b){y=y.slice();var _={valueAsc:"asc",valueDesc:"desc"};if(Object(i.hasOwn)(_,b)){var x=new o.SortOrderComparator(_[b],null);y.sort((function(t,e){return x.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===b&&y.reverse()}Object(i.each)(y,(function(n,r){var o=e.valueFormatter,s=d(n)(o?Object(i.extend)(Object(i.extend)({},t),{valueFormatter:o}):t,n,r>0?p.html:0,a);null!=s&&g.push(s)}));var w="richText"===t.renderMode?g.join(p.richText):v(g.join(""),f?n:p.html);if(f)return w;var O=Object(r.makeValueReadable)(e.header,"ordinal",t.useUTC),S=s(a,t.renderMode).nameStyle;return"richText"===t.renderMode?m(t,O,S)+p.richText+w:v('
'+Object(r.encodeHTML)(O)+"
"+w,n)}function p(t,e,n,o){var a=t.renderMode,l=e.noName,u=e.noValue,c=!e.markerType,h=e.name,d=t.useUTC,f=e.valueFormatter||t.valueFormatter||function(t){return t=Object(i.isArray)(t)?t:[t],Object(i.map)(t,(function(t,e){return Object(r.makeValueReadable)(t,Object(i.isArray)(y)?y[e]:y,d)}))};if(!l||!u){var p=c?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",a),g=l?"":Object(r.makeValueReadable)(h,"ordinal",d),y=e.valueType,b=u?[]:f(e.value),_=!c||!l,x=!c&&l,w=s(o,a),O=w.nameStyle,S=w.valueStyle;return"richText"===a?(c?"":p)+(l?"":m(t,g,O))+(u?"":function(t,e,n,r,o){var a=[o],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(Object(i.isArray)(e)?e.join(" "):e,a)}(t,b,_,x,S)):v((c?"":p)+(l?"":function(t,e,n){return''+Object(r.encodeHTML)(t)+""}(g,!c,O))+(u?"":function(t,e,n,o){var a=n?"10px":"20px",s=e?"float:right;margin-left:"+a:"";return t=Object(i.isArray)(t)?t:[t],''+Object(i.map)(t,(function(t){return Object(r.encodeHTML)(t)})).join("  ")+""}(b,_,x,S)),n)}}function g(t,e,n,r,i,o){if(t)return d(t)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function v(t,e){return'
'+t+'
'}function m(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function y(t,e){var n=t.getData().getItemVisual(e,"style")[t.visualDrawType];return Object(r.convertToColorString)(n)}function b(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var _=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Object(a.getRandomIdBase)()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var o="richText"===n?this._generateStyleName():null,a=Object(r.getTooltipMarker)({color:e,type:t,renderMode:n,markerId:o});return Object(i.isString)(a)?a:(this.richTextStyles[o]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};Object(i.isArray)(e)?Object(i.each)(e,(function(t){return Object(i.extend)(n,t)})):Object(i.extend)(n,e);var r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+t+"}"},t}()},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"normalizeColor",(function(){return s})),n.d(e,"isAroundZero",(function(){return l})),n.d(e,"round3",(function(){return u})),n.d(e,"round4",(function(){return c})),n.d(e,"round1",(function(){return h})),n.d(e,"getMatrixStr",(function(){return d})),n.d(e,"TEXT_ALIGN_TO_ANCHOR",(function(){return f})),n.d(e,"adjustTextY",(function(){return p})),n.d(e,"hasShadow",(function(){return g})),n.d(e,"getShadowKey",(function(){return v})),n.d(e,"getClipPathsKey",(function(){return m})),n.d(e,"isImagePattern",(function(){return y})),n.d(e,"isSVGPattern",(function(){return b})),n.d(e,"isPattern",(function(){return _})),n.d(e,"isLinearGradient",(function(){return x})),n.d(e,"isRadialGradient",(function(){return w})),n.d(e,"isGradient",(function(){return O})),n.d(e,"getIdURL",(function(){return S})),n.d(e,"getPathPrecision",(function(){return C})),n.d(e,"getSRTTransformString",(function(){return E})),n.d(e,"encodeBase64",(function(){return T}));var r=n(0),i=n(71),o=n(49),a=Math.round;function s(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Object(i.parse)(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}function l(t){return t<1e-4&&t>-1e-4}function u(t){return a(1e3*t)/1e3}function c(t){return a(1e4*t)/1e4}function h(t){return a(10*t)/10}function d(t){return"matrix("+u(t[0])+","+u(t[1])+","+u(t[2])+","+u(t[3])+","+c(t[4])+","+c(t[5])+")"}var f={left:"start",right:"end",center:"middle",middle:"middle"};function p(t,e,n){return"top"===n?t+=e/2:"bottom"===n&&(t-=e/2),t}function g(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function v(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function m(t){var e=[];if(t)for(var n=0;n0&&r>0||n<0&&r<0)}function m(t){var e,n,i=t.getLabelModel().get("formatter"),o="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,r){return t.scale.getFormattedLabel(e,r,n)}):r.isString(i)?function(e){return function(n){var r=t.scale.getLabel(n);return e.replace("{value}",null!=r?r:"")}}(i):r.isFunction(i)?(e=i,function(n,r){return null!=o&&(r=n.value-o),e(y(t,n),r,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function y(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function b(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var r,o,a=n.getExtent();o=n instanceof i.default?n.count():(r=n.getTicks()).length;var s,u,c,h,d,f,p,g,v=t.getLabelModel(),y=m(t),b=1;o>40&&(b=Math.ceil(o/40));for(var _=0;_t[1]&&(t[1]=r[1])}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"isBetween",(function(){return o})),n.d(e,"padEnd",(function(){return a})),n.d(e,"omit",(function(){return s})),n.d(e,"uniq",(function(){return l}));var r=n(2),i=n(1);function o(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function a(t,e,n){if(Object(i.isString)(t))return t.padEnd(e,n);if(Object(i.isArray)(t)){var r=t.length;if(r=0){var i="touchend"!==r?e.targetTouches[0]:e.changedTouches[0];i&&u(t,i,e,n)}else{u(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(null==n||null==r)return e;return 3*(0!==r?Math.abs(r):Math.abs(n))*(r>0?-1:r<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&a.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function f(t,e,n,r){t.addEventListener(e,n,r)}function p(t,e,n,r){t.removeEventListener(e,n,r)}var g=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function v(t){return 2===t.which||3===t.which}},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return h}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(3),l=n.n(s),u=n(96),c=n.n(u),h=i()((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};a()(this,t),l()(this,"type",void 0),c()(this,n),this.type=e}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getXDimensionLength",(function(){return a})),n.d(e,"isFullCircle",(function(){return s})),n.d(e,"getDistanceToCenter",(function(){return l})),n.d(e,"isPointInCoordinate",(function(){return u})),n.d(e,"getAngleByPoint",(function(){return c})),n.d(e,"getCoordinateClipCfg",(function(){return h})),n.d(e,"getCoordinateBBox",(function(){return d}));var r=n(69),i=n(78),o=n(116);function a(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function s(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1}function l(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function u(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,o=t.end;n=Object(i.isBetween)(e.x,r.x,o.x)&&Object(i.isBetween)(e.y,r.y,o.y)}else{var a=t.invert(e);n=Object(i.isBetween)(a.x,0,1)&&Object(i.isBetween)(a.y,0,1)}return n}function c(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function h(t,e){void 0===e&&(e=0);var n,i=t.start,o=t.end,a=t.getWidth(),s=t.getHeight();if(t.isPolar){var l=t.startAngle,u=t.endAngle,c=t.getCenter(),h=t.getRadius();return{type:"path",startState:{path:Object(r.getSectorPath)(c.x,c.y,h+e,l,l)},endState:function(t){var n=(u-l)*t+l;return{path:Object(r.getSectorPath)(c.x,c.y,h+e,l,n)}},attrs:{path:Object(r.getSectorPath)(c.x,c.y,h+e,l,u)}}}return n=t.isTransposed?{height:s+2*e}:{width:a+2*e},{type:"rect",startState:{x:i.x-e,y:o.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:o.y-e,width:a+2*e,height:s+2*e}}}function d(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),a=t.getHeight(),s=Math.min(n.x,r.x),l=Math.min(n.y,r.y);return o.BBox.fromRange(s-e,l-e,s+i+e,l+a+e)}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}function o(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function a(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=r(t),o=r(e);return{x:n,y:o,width:i(t)-n,height:i(e)-o}}function l(t,e,n,o){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,o]),maxY:i([e,o])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(e),n.d(e,"distance",(function(){return o})),n.d(e,"isNumberEqual",(function(){return a})),n.d(e,"getBBoxByArray",(function(){return s})),n.d(e,"getBBoxRange",(function(){return l})),n.d(e,"piMod",(function(){return u}))},function(t,e,n){"use strict";n.r(e);var r=n(1009);n.d(e,"addEventListener",(function(){return r.default}));var i=n(1010);n.d(e,"createDom",(function(){return i.default}));var o=n(608);n.d(e,"getHeight",(function(){return o.default}));var a=n(1011);n.d(e,"getOuterHeight",(function(){return a.default}));var s=n(1012);n.d(e,"getOuterWidth",(function(){return s.default}));var l=n(1013);n.d(e,"getRatio",(function(){return l.default}));var u=n(152);n.d(e,"getStyle",(function(){return u.default}));var c=n(609);n.d(e,"getWidth",(function(){return c.default}));var h=n(1014);n.d(e,"modifyCSS",(function(){return h.default}))},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"gl",(function(){return r})),function(t){t[t.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",t[t.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",t[t.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT",t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t[t.ZERO=0]="ZERO",t[t.ONE=1]="ONE",t[t.SRC_COLOR=768]="SRC_COLOR",t[t.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",t[t.SRC_ALPHA=770]="SRC_ALPHA",t[t.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",t[t.DST_ALPHA=772]="DST_ALPHA",t[t.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",t[t.DST_COLOR=774]="DST_COLOR",t[t.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",t[t.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",t[t.FUNC_ADD=32774]="FUNC_ADD",t[t.BLEND_EQUATION=32777]="BLEND_EQUATION",t[t.BLEND_EQUATION_RGB=32777]="BLEND_EQUATION_RGB",t[t.BLEND_EQUATION_ALPHA=34877]="BLEND_EQUATION_ALPHA",t[t.FUNC_SUBTRACT=32778]="FUNC_SUBTRACT",t[t.FUNC_REVERSE_SUBTRACT=32779]="FUNC_REVERSE_SUBTRACT",t[t.MAX_EXT=32776]="MAX_EXT",t[t.MIN_EXT=32775]="MIN_EXT",t[t.BLEND_DST_RGB=32968]="BLEND_DST_RGB",t[t.BLEND_SRC_RGB=32969]="BLEND_SRC_RGB",t[t.BLEND_DST_ALPHA=32970]="BLEND_DST_ALPHA",t[t.BLEND_SRC_ALPHA=32971]="BLEND_SRC_ALPHA",t[t.CONSTANT_COLOR=32769]="CONSTANT_COLOR",t[t.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",t[t.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",t[t.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA",t[t.BLEND_COLOR=32773]="BLEND_COLOR",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER_BINDING=34964]="ARRAY_BUFFER_BINDING",t[t.ELEMENT_ARRAY_BUFFER_BINDING=34965]="ELEMENT_ARRAY_BUFFER_BINDING",t[t.STREAM_DRAW=35040]="STREAM_DRAW",t[t.STATIC_DRAW=35044]="STATIC_DRAW",t[t.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",t[t.BUFFER_SIZE=34660]="BUFFER_SIZE",t[t.BUFFER_USAGE=34661]="BUFFER_USAGE",t[t.CURRENT_VERTEX_ATTRIB=34342]="CURRENT_VERTEX_ATTRIB",t[t.FRONT=1028]="FRONT",t[t.BACK=1029]="BACK",t[t.FRONT_AND_BACK=1032]="FRONT_AND_BACK",t[t.CULL_FACE=2884]="CULL_FACE",t[t.BLEND=3042]="BLEND",t[t.DITHER=3024]="DITHER",t[t.STENCIL_TEST=2960]="STENCIL_TEST",t[t.DEPTH_TEST=2929]="DEPTH_TEST",t[t.SCISSOR_TEST=3089]="SCISSOR_TEST",t[t.POLYGON_OFFSET_FILL=32823]="POLYGON_OFFSET_FILL",t[t.SAMPLE_ALPHA_TO_COVERAGE=32926]="SAMPLE_ALPHA_TO_COVERAGE",t[t.SAMPLE_COVERAGE=32928]="SAMPLE_COVERAGE",t[t.NO_ERROR=0]="NO_ERROR",t[t.INVALID_ENUM=1280]="INVALID_ENUM",t[t.INVALID_VALUE=1281]="INVALID_VALUE",t[t.INVALID_OPERATION=1282]="INVALID_OPERATION",t[t.OUT_OF_MEMORY=1285]="OUT_OF_MEMORY",t[t.CW=2304]="CW",t[t.CCW=2305]="CCW",t[t.LINE_WIDTH=2849]="LINE_WIDTH",t[t.ALIASED_POINT_SIZE_RANGE=33901]="ALIASED_POINT_SIZE_RANGE",t[t.ALIASED_LINE_WIDTH_RANGE=33902]="ALIASED_LINE_WIDTH_RANGE",t[t.CULL_FACE_MODE=2885]="CULL_FACE_MODE",t[t.FRONT_FACE=2886]="FRONT_FACE",t[t.DEPTH_RANGE=2928]="DEPTH_RANGE",t[t.DEPTH_WRITEMASK=2930]="DEPTH_WRITEMASK",t[t.DEPTH_CLEAR_VALUE=2931]="DEPTH_CLEAR_VALUE",t[t.DEPTH_FUNC=2932]="DEPTH_FUNC",t[t.STENCIL_CLEAR_VALUE=2961]="STENCIL_CLEAR_VALUE",t[t.STENCIL_FUNC=2962]="STENCIL_FUNC",t[t.STENCIL_FAIL=2964]="STENCIL_FAIL",t[t.STENCIL_PASS_DEPTH_FAIL=2965]="STENCIL_PASS_DEPTH_FAIL",t[t.STENCIL_PASS_DEPTH_PASS=2966]="STENCIL_PASS_DEPTH_PASS",t[t.STENCIL_REF=2967]="STENCIL_REF",t[t.STENCIL_VALUE_MASK=2963]="STENCIL_VALUE_MASK",t[t.STENCIL_WRITEMASK=2968]="STENCIL_WRITEMASK",t[t.STENCIL_BACK_FUNC=34816]="STENCIL_BACK_FUNC",t[t.STENCIL_BACK_FAIL=34817]="STENCIL_BACK_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_FAIL=34818]="STENCIL_BACK_PASS_DEPTH_FAIL",t[t.STENCIL_BACK_PASS_DEPTH_PASS=34819]="STENCIL_BACK_PASS_DEPTH_PASS",t[t.STENCIL_BACK_REF=36003]="STENCIL_BACK_REF",t[t.STENCIL_BACK_VALUE_MASK=36004]="STENCIL_BACK_VALUE_MASK",t[t.STENCIL_BACK_WRITEMASK=36005]="STENCIL_BACK_WRITEMASK",t[t.VIEWPORT=2978]="VIEWPORT",t[t.SCISSOR_BOX=3088]="SCISSOR_BOX",t[t.COLOR_CLEAR_VALUE=3106]="COLOR_CLEAR_VALUE",t[t.COLOR_WRITEMASK=3107]="COLOR_WRITEMASK",t[t.UNPACK_ALIGNMENT=3317]="UNPACK_ALIGNMENT",t[t.PACK_ALIGNMENT=3333]="PACK_ALIGNMENT",t[t.MAX_TEXTURE_SIZE=3379]="MAX_TEXTURE_SIZE",t[t.MAX_VIEWPORT_DIMS=3386]="MAX_VIEWPORT_DIMS",t[t.SUBPIXEL_BITS=3408]="SUBPIXEL_BITS",t[t.RED_BITS=3410]="RED_BITS",t[t.GREEN_BITS=3411]="GREEN_BITS",t[t.BLUE_BITS=3412]="BLUE_BITS",t[t.ALPHA_BITS=3413]="ALPHA_BITS",t[t.DEPTH_BITS=3414]="DEPTH_BITS",t[t.STENCIL_BITS=3415]="STENCIL_BITS",t[t.POLYGON_OFFSET_UNITS=10752]="POLYGON_OFFSET_UNITS",t[t.POLYGON_OFFSET_FACTOR=32824]="POLYGON_OFFSET_FACTOR",t[t.TEXTURE_BINDING_2D=32873]="TEXTURE_BINDING_2D",t[t.SAMPLE_BUFFERS=32936]="SAMPLE_BUFFERS",t[t.SAMPLES=32937]="SAMPLES",t[t.SAMPLE_COVERAGE_VALUE=32938]="SAMPLE_COVERAGE_VALUE",t[t.SAMPLE_COVERAGE_INVERT=32939]="SAMPLE_COVERAGE_INVERT",t[t.COMPRESSED_TEXTURE_FORMATS=34467]="COMPRESSED_TEXTURE_FORMATS",t[t.DONT_CARE=4352]="DONT_CARE",t[t.FASTEST=4353]="FASTEST",t[t.NICEST=4354]="NICEST",t[t.GENERATE_MIPMAP_HINT=33170]="GENERATE_MIPMAP_HINT",t[t.BYTE=5120]="BYTE",t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.SHORT=5122]="SHORT",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.INT=5124]="INT",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.FLOAT=5126]="FLOAT",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.ALPHA=6406]="ALPHA",t[t.RGB=6407]="RGB",t[t.RGBA=6408]="RGBA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",t[t.VERTEX_SHADER=35633]="VERTEX_SHADER",t[t.MAX_VERTEX_ATTRIBS=34921]="MAX_VERTEX_ATTRIBS",t[t.MAX_VERTEX_UNIFORM_VECTORS=36347]="MAX_VERTEX_UNIFORM_VECTORS",t[t.MAX_VARYING_VECTORS=36348]="MAX_VARYING_VECTORS",t[t.MAX_COMBINED_TEXTURE_IMAGE_UNITS=35661]="MAX_COMBINED_TEXTURE_IMAGE_UNITS",t[t.MAX_VERTEX_TEXTURE_IMAGE_UNITS=35660]="MAX_VERTEX_TEXTURE_IMAGE_UNITS",t[t.MAX_TEXTURE_IMAGE_UNITS=34930]="MAX_TEXTURE_IMAGE_UNITS",t[t.MAX_FRAGMENT_UNIFORM_VECTORS=36349]="MAX_FRAGMENT_UNIFORM_VECTORS",t[t.SHADER_TYPE=35663]="SHADER_TYPE",t[t.DELETE_STATUS=35712]="DELETE_STATUS",t[t.LINK_STATUS=35714]="LINK_STATUS",t[t.VALIDATE_STATUS=35715]="VALIDATE_STATUS",t[t.ATTACHED_SHADERS=35717]="ATTACHED_SHADERS",t[t.ACTIVE_UNIFORMS=35718]="ACTIVE_UNIFORMS",t[t.ACTIVE_ATTRIBUTES=35721]="ACTIVE_ATTRIBUTES",t[t.SHADING_LANGUAGE_VERSION=35724]="SHADING_LANGUAGE_VERSION",t[t.CURRENT_PROGRAM=35725]="CURRENT_PROGRAM",t[t.NEVER=512]="NEVER",t[t.LESS=513]="LESS",t[t.EQUAL=514]="EQUAL",t[t.LEQUAL=515]="LEQUAL",t[t.GREATER=516]="GREATER",t[t.NOTEQUAL=517]="NOTEQUAL",t[t.GEQUAL=518]="GEQUAL",t[t.ALWAYS=519]="ALWAYS",t[t.KEEP=7680]="KEEP",t[t.REPLACE=7681]="REPLACE",t[t.INCR=7682]="INCR",t[t.DECR=7683]="DECR",t[t.INVERT=5386]="INVERT",t[t.INCR_WRAP=34055]="INCR_WRAP",t[t.DECR_WRAP=34056]="DECR_WRAP",t[t.VENDOR=7936]="VENDOR",t[t.RENDERER=7937]="RENDERER",t[t.VERSION=7938]="VERSION",t[t.NEAREST=9728]="NEAREST",t[t.LINEAR=9729]="LINEAR",t[t.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",t[t.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",t[t.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",t[t.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR",t[t.TEXTURE_MAG_FILTER=10240]="TEXTURE_MAG_FILTER",t[t.TEXTURE_MIN_FILTER=10241]="TEXTURE_MIN_FILTER",t[t.TEXTURE_WRAP_S=10242]="TEXTURE_WRAP_S",t[t.TEXTURE_WRAP_T=10243]="TEXTURE_WRAP_T",t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE=5890]="TEXTURE",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_BINDING_CUBE_MAP=34068]="TEXTURE_BINDING_CUBE_MAP",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t[t.MAX_CUBE_MAP_TEXTURE_SIZE=34076]="MAX_CUBE_MAP_TEXTURE_SIZE",t[t.TEXTURE0=33984]="TEXTURE0",t[t.TEXTURE1=33985]="TEXTURE1",t[t.TEXTURE2=33986]="TEXTURE2",t[t.TEXTURE3=33987]="TEXTURE3",t[t.TEXTURE4=33988]="TEXTURE4",t[t.TEXTURE5=33989]="TEXTURE5",t[t.TEXTURE6=33990]="TEXTURE6",t[t.TEXTURE7=33991]="TEXTURE7",t[t.TEXTURE8=33992]="TEXTURE8",t[t.TEXTURE9=33993]="TEXTURE9",t[t.TEXTURE10=33994]="TEXTURE10",t[t.TEXTURE11=33995]="TEXTURE11",t[t.TEXTURE12=33996]="TEXTURE12",t[t.TEXTURE13=33997]="TEXTURE13",t[t.TEXTURE14=33998]="TEXTURE14",t[t.TEXTURE15=33999]="TEXTURE15",t[t.TEXTURE16=34e3]="TEXTURE16",t[t.TEXTURE17=34001]="TEXTURE17",t[t.TEXTURE18=34002]="TEXTURE18",t[t.TEXTURE19=34003]="TEXTURE19",t[t.TEXTURE20=34004]="TEXTURE20",t[t.TEXTURE21=34005]="TEXTURE21",t[t.TEXTURE22=34006]="TEXTURE22",t[t.TEXTURE23=34007]="TEXTURE23",t[t.TEXTURE24=34008]="TEXTURE24",t[t.TEXTURE25=34009]="TEXTURE25",t[t.TEXTURE26=34010]="TEXTURE26",t[t.TEXTURE27=34011]="TEXTURE27",t[t.TEXTURE28=34012]="TEXTURE28",t[t.TEXTURE29=34013]="TEXTURE29",t[t.TEXTURE30=34014]="TEXTURE30",t[t.TEXTURE31=34015]="TEXTURE31",t[t.ACTIVE_TEXTURE=34016]="ACTIVE_TEXTURE",t[t.REPEAT=10497]="REPEAT",t[t.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t[t.FLOAT_VEC2=35664]="FLOAT_VEC2",t[t.FLOAT_VEC3=35665]="FLOAT_VEC3",t[t.FLOAT_VEC4=35666]="FLOAT_VEC4",t[t.INT_VEC2=35667]="INT_VEC2",t[t.INT_VEC3=35668]="INT_VEC3",t[t.INT_VEC4=35669]="INT_VEC4",t[t.BOOL=35670]="BOOL",t[t.BOOL_VEC2=35671]="BOOL_VEC2",t[t.BOOL_VEC3=35672]="BOOL_VEC3",t[t.BOOL_VEC4=35673]="BOOL_VEC4",t[t.FLOAT_MAT2=35674]="FLOAT_MAT2",t[t.FLOAT_MAT3=35675]="FLOAT_MAT3",t[t.FLOAT_MAT4=35676]="FLOAT_MAT4",t[t.SAMPLER_2D=35678]="SAMPLER_2D",t[t.SAMPLER_CUBE=35680]="SAMPLER_CUBE",t[t.VERTEX_ATTRIB_ARRAY_ENABLED=34338]="VERTEX_ATTRIB_ARRAY_ENABLED",t[t.VERTEX_ATTRIB_ARRAY_SIZE=34339]="VERTEX_ATTRIB_ARRAY_SIZE",t[t.VERTEX_ATTRIB_ARRAY_STRIDE=34340]="VERTEX_ATTRIB_ARRAY_STRIDE",t[t.VERTEX_ATTRIB_ARRAY_TYPE=34341]="VERTEX_ATTRIB_ARRAY_TYPE",t[t.VERTEX_ATTRIB_ARRAY_NORMALIZED=34922]="VERTEX_ATTRIB_ARRAY_NORMALIZED",t[t.VERTEX_ATTRIB_ARRAY_POINTER=34373]="VERTEX_ATTRIB_ARRAY_POINTER",t[t.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING=34975]="VERTEX_ATTRIB_ARRAY_BUFFER_BINDING",t[t.COMPILE_STATUS=35713]="COMPILE_STATUS",t[t.LOW_FLOAT=36336]="LOW_FLOAT",t[t.MEDIUM_FLOAT=36337]="MEDIUM_FLOAT",t[t.HIGH_FLOAT=36338]="HIGH_FLOAT",t[t.LOW_INT=36339]="LOW_INT",t[t.MEDIUM_INT=36340]="MEDIUM_INT",t[t.HIGH_INT=36341]="HIGH_INT",t[t.FRAMEBUFFER=36160]="FRAMEBUFFER",t[t.RENDERBUFFER=36161]="RENDERBUFFER",t[t.RGBA4=32854]="RGBA4",t[t.RGB5_A1=32855]="RGB5_A1",t[t.RGB565=36194]="RGB565",t[t.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",t[t.STENCIL_INDEX=6401]="STENCIL_INDEX",t[t.STENCIL_INDEX8=36168]="STENCIL_INDEX8",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t[t.RENDERBUFFER_WIDTH=36162]="RENDERBUFFER_WIDTH",t[t.RENDERBUFFER_HEIGHT=36163]="RENDERBUFFER_HEIGHT",t[t.RENDERBUFFER_INTERNAL_FORMAT=36164]="RENDERBUFFER_INTERNAL_FORMAT",t[t.RENDERBUFFER_RED_SIZE=36176]="RENDERBUFFER_RED_SIZE",t[t.RENDERBUFFER_GREEN_SIZE=36177]="RENDERBUFFER_GREEN_SIZE",t[t.RENDERBUFFER_BLUE_SIZE=36178]="RENDERBUFFER_BLUE_SIZE",t[t.RENDERBUFFER_ALPHA_SIZE=36179]="RENDERBUFFER_ALPHA_SIZE",t[t.RENDERBUFFER_DEPTH_SIZE=36180]="RENDERBUFFER_DEPTH_SIZE",t[t.RENDERBUFFER_STENCIL_SIZE=36181]="RENDERBUFFER_STENCIL_SIZE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE=36048]="FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE",t[t.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME=36049]="FRAMEBUFFER_ATTACHMENT_OBJECT_NAME",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL=36050]="FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL",t[t.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE=36051]="FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE",t[t.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",t[t.DEPTH_ATTACHMENT=36096]="DEPTH_ATTACHMENT",t[t.STENCIL_ATTACHMENT=36128]="STENCIL_ATTACHMENT",t[t.DEPTH_STENCIL_ATTACHMENT=33306]="DEPTH_STENCIL_ATTACHMENT",t[t.NONE=0]="NONE",t[t.FRAMEBUFFER_COMPLETE=36053]="FRAMEBUFFER_COMPLETE",t[t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT=36054]="FRAMEBUFFER_INCOMPLETE_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT=36055]="FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT",t[t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS=36057]="FRAMEBUFFER_INCOMPLETE_DIMENSIONS",t[t.FRAMEBUFFER_UNSUPPORTED=36061]="FRAMEBUFFER_UNSUPPORTED",t[t.FRAMEBUFFER_BINDING=36006]="FRAMEBUFFER_BINDING",t[t.RENDERBUFFER_BINDING=36007]="RENDERBUFFER_BINDING",t[t.MAX_RENDERBUFFER_SIZE=34024]="MAX_RENDERBUFFER_SIZE",t[t.INVALID_FRAMEBUFFER_OPERATION=1286]="INVALID_FRAMEBUFFER_OPERATION",t[t.UNPACK_FLIP_Y_WEBGL=37440]="UNPACK_FLIP_Y_WEBGL",t[t.UNPACK_PREMULTIPLY_ALPHA_WEBGL=37441]="UNPACK_PREMULTIPLY_ALPHA_WEBGL",t[t.CONTEXT_LOST_WEBGL=37442]="CONTEXT_LOST_WEBGL",t[t.UNPACK_COLORSPACE_CONVERSION_WEBGL=37443]="UNPACK_COLORSPACE_CONVERSION_WEBGL",t[t.BROWSER_DEFAULT_WEBGL=37444]="BROWSER_DEFAULT_WEBGL"}(r||(r={}))},function(t,e,n){(function(t,e){ /*! ***************************************************************************** Copyright (C) Microsoft. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var n;!function(n){!function(r){var i="object"==typeof e?e:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),o=a(n);function a(t,e){return function(n,r){"function"!=typeof t[n]&&Object.defineProperty(t,n,{configurable:!0,writable:!0,value:r}),e&&e(n,r)}}void 0===i.Reflect?i.Reflect=n:o=a(i.Reflect,o),function(e){var n=Object.prototype.hasOwnProperty,r="function"==typeof Symbol,i=r&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",o=r&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",a="function"==typeof Object.create,s={__proto__:[]}instanceof Array,l=!a&&!s,u={create:a?function(){return P(Object.create(null))}:s?function(){return P({__proto__:null})}:function(){return P({})},has:l?function(t,e){return n.call(t,e)}:function(t,e){return e in t},get:l?function(t,e){return n.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},c=Object.getPrototypeOf(Function),h="object"==typeof t&&t.env&&"true"===t.env.REFLECT_METADATA_USE_MAP_POLYFILL,d=h||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var t={},e=[],n=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[o]=function(){return this},t.prototype.next=function(){var t=this._index;if(t>=0&&t=this._keys.length?(this._index=-1,this._keys=e,this._values=e):this._index++,{value:n,done:!1}}return{value:void 0,done:!0}},t.prototype.throw=function(t){throw this._index>=0&&(this._index=-1,this._keys=e,this._values=e),t},t.prototype.return=function(t){return this._index>=0&&(this._index=-1,this._keys=e,this._values=e),{value:t,done:!0}},t}();return function(){function e(){this._keys=[],this._values=[],this._cacheKey=t,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return this._find(t,!1)>=0},e.prototype.get=function(t){var e=this._find(t,!1);return e>=0?this._values[e]:void 0},e.prototype.set=function(t,e){var n=this._find(t,!0);return this._values[n]=e,this},e.prototype.delete=function(e){var n=this._find(e,!1);if(n>=0){for(var r=this._keys.length,i=n+1;i=0;--n){var r=(0,t[n])(e);if(!x(r)&&!w(r)){if(!M(r))throw new TypeError;e=r}}return e}(t,e)}if(!E(t))throw new TypeError;if(!O(e))throw new TypeError;if(!O(r)&&!x(r)&&!w(r))throw new TypeError;return w(r)&&(r=void 0),function(t,e,n,r){for(var i=t.length-1;i>=0;--i){var o=(0,t[i])(e,n,r);if(!x(o)&&!w(o)){if(!O(o))throw new TypeError;r=o}}return r}(t,e,n=C(n),r)})),e("metadata",(function(t,e){return function(n,r){if(!O(n))throw new TypeError;if(!x(r)&&!function(t){switch(_(t)){case 3:case 4:return!0;default:return!1}}(r))throw new TypeError;y(t,e,n,r)}})),e("defineMetadata",(function(t,e,n,r){if(!O(n))throw new TypeError;return x(r)||(r=C(r)),y(t,e,n,r)})),e("hasMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),function t(e,n,r){if(v(e,n,r))return!0;var i=k(n);return!w(i)&&t(e,i,r)}(t,e,n)})),e("hasOwnMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),v(t,e,n)})),e("getMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),function t(e,n,r){if(v(e,n,r))return m(e,n,r);var i=k(n);return w(i)?void 0:t(e,i,r)}(t,e,n)})),e("getOwnMetadata",(function(t,e,n){if(!O(e))throw new TypeError;return x(n)||(n=C(n)),m(t,e,n)})),e("getMetadataKeys",(function(t,e){if(!O(t))throw new TypeError;return x(e)||(e=C(e)),function t(e,n){var r=b(e,n),i=k(e);if(null===i)return r;var o=t(i,n);if(o.length<=0)return r;if(r.length<=0)return o;for(var a=new f,s=[],l=0,u=r;l0)return!0;var i=p.get(e);return i.delete(n),i.size>0||p.delete(e),!0}))}(o)}()}(n||(n={}))}).call(this,n(416),n(322))},function(t,e,n){"use strict";n.r(e);var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(621),a=n(118),s=n(44),l=n(431),u=["visible","tip","delegateObject"],c=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(i.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.__rest)(e,["id","component"]),a=new i(Object(r.__assign)(Object(r.__assign)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,o=this.get("animate"),a=this.get("animateOption"),l=t.getChildren().slice(0);Object(i.each)(l,(function(t){var l=t.get("id"),h=r.getElementById(l),d=t.get("name");if(h)if(t.get("isComponent")){var f=t.get("component"),p=h.get("component"),g=Object(i.pick)(f.cfg,Object(i.difference)(Object(i.keys)(f.cfg),c));p.update(g),h.set("update_status","update")}else{var v=r.getReplaceAttrs(h,t);o&&a.update?r.updateAnimation(d,h,v,a.update):h.attr(v),t.isGroup()&&r.updateElements(t,h),Object(i.each)(u,(function(e){h.set(e,t.get(e))})),Object(s.updateClip)(h,t),n=h,h.set("update_status","update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var y=m.indexOf(n);m.splice(y+1,0,t)}else m.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(f=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,o){var b=r.get("isInit")?a.appear:a.enter;b&&r.addAnimation(d,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(i.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.each)(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(r&&o.leave){var u=Object(i.mix)({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(l.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"LineAxis",(function(){return u})),n.d(e,"CircleAxis",(function(){return c})),n.d(e,"LineGrid",(function(){return h})),n.d(e,"CircleGrid",(function(){return d})),n.d(e,"CategoryLegend",(function(){return f})),n.d(e,"ContinuousLegend",(function(){return p})),n.d(e,"HtmlTooltip",(function(){return g}));var r=n(79);n.d(e,"Event",(function(){return r.Event})),n.d(e,"AbstractGroup",(function(){return r.AbstractGroup})),n.d(e,"AbstractShape",(function(){return r.AbstractShape}));var i=n(424);n.d(e,"registerAdjust",(function(){return i.registerAdjust})),n.d(e,"getAdjust",(function(){return i.getAdjust})),n.d(e,"Adjust",(function(){return i.Adjust}));var o=n(384);n.d(e,"getAttribute",(function(){return o.getAttribute})),n.d(e,"Attribute",(function(){return o.Attribute})),n.d(e,"Color",(function(){return o.Color}));var a=n(584);n.d(e,"getCoordinate",(function(){return a.getCoordinate})),n.d(e,"registerCoordinate",(function(){return a.registerCoordinate})),n.d(e,"Coordinate",(function(){return a.Coordinate}));var s=n(287);n.d(e,"getScale",(function(){return s.getScale})),n.d(e,"registerScale",(function(){return s.registerScale})),n.d(e,"Scale",(function(){return s.Scale}));var l=n(91);n.d(e,"HtmlComponent",(function(){return l.HtmlComponent})),n.d(e,"GroupComponent",(function(){return l.GroupComponent})),n.d(e,"Component",(function(){return l.Component})),n.d(e,"Crosshair",(function(){return l.Crosshair})),n.d(e,"Annotation",(function(){return l.Annotation})),n.d(e,"Slider",(function(){return l.Slider})),n.d(e,"Scrollbar",(function(){return l.Scrollbar}));var u=l.Axis.Line,c=l.Axis.Circle,h=l.Grid.Line,d=l.Grid.Circle,f=l.Legend.Category,p=l.Legend.Continuous,g=l.Tooltip.Html},function(t,e,n){"use strict";n.r(e),n.d(e,"SVGNS",(function(){return i})),n.d(e,"XLINKNS",(function(){return o})),n.d(e,"XMLNS",(function(){return a})),n.d(e,"XML_NAMESPACE",(function(){return s})),n.d(e,"createElement",(function(){return l})),n.d(e,"createVNode",(function(){return u})),n.d(e,"vNodeToString",(function(){return c})),n.d(e,"getCssString",(function(){return h})),n.d(e,"createBrushScope",(function(){return d})),n.d(e,"createSVGVNode",(function(){return f}));var r=n(0),i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xlink",a="http://www.w3.org/2000/xmlns/",s="http://www.w3.org/XML/1998/namespace";function l(t){return document.createElementNS(i,t)}function u(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function c(t,e){var n=(e=e||{}).newline?"\n":"";return function t(e){var i=e.children,o=e.tag;return function(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;!1!==i&&(!0!==i&&null!=i&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}(o,e.attrs)+(e.text||"")+(i?""+n+Object(r.map)(i,(function(e){return t(e)})).join(n)+n:"")+("")}(t)}function h(t,e,n){var i=(n=n||{}).newline?"\n":"",o=" {"+i,a=i+"}",s=Object(r.map)(Object(r.keys)(t),(function(e){return e+o+Object(r.map)(Object(r.keys)(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+a})).join(i),l=Object(r.map)(Object(r.keys)(e),(function(t){return"@keyframes "+t+o+Object(r.map)(Object(r.keys)(e[t]),(function(n){return n+o+Object(r.map)(Object(r.keys)(e[t][n]),(function(r){var i=e[t][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(i)+a})).join(i)+a})).join(i);return s||l?[""].join(i):""}function d(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function f(t,e,n,r){return u("svg","root",{width:t,height:e,xmlns:i,"xmlns:xlink":o,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+t+" "+e},n)}},function(t,e,n){"use strict";n.r(e);var r=n(1039);n.d(e,"Annotation",(function(){return r}));var i=n(1050);n.d(e,"Axis",(function(){return i}));var o=n(1056);n.d(e,"Crosshair",(function(){return o}));var a=n(1060);n.d(e,"Grid",(function(){return a}));var s=n(1063);n.d(e,"Legend",(function(){return s}));var l=n(1066);n.d(e,"Tooltip",(function(){return l}));var u=n(431);n.d(e,"Component",(function(){return u.default}));var c=n(88);n.d(e,"GroupComponent",(function(){return c.default}));var h=n(351);n.d(e,"HtmlComponent",(function(){return h.default}));var d=n(1068);n.d(e,"Slider",(function(){return d.Slider}));var f=n(1070);n.d(e,"Scrollbar",(function(){return f.Scrollbar}));var p=n(1072);for(var g in p)["default","Component","GroupComponent","HtmlComponent","Axis","Annotation","Grid","Legend","Tooltip","Crosshair","Slider","Scrollbar","propagationDelegate","TOOLTIP_CSS_CONST"].indexOf(g)<0&&function(t){n.d(e,t,(function(){return p[t]}))}(g);var v=n(1073);for(var g in v)["default","Component","GroupComponent","HtmlComponent","Axis","Annotation","Grid","Legend","Tooltip","Crosshair","Slider","Scrollbar","propagationDelegate","TOOLTIP_CSS_CONST"].indexOf(g)<0&&function(t){n.d(e,t,(function(){return v[t]}))}(g);var m=n(621);n.d(e,"propagationDelegate",(function(){return m.propagationDelegate}));var y=n(123);n.d(e,"TOOLTIP_CSS_CONST",(function(){return y}))},function(t,e,n){"use strict";n.r(e),n.d(e,"removeFromArray",(function(){return i})),n.d(e,"isBrowser",(function(){return o})),n.d(e,"isParent",(function(){return a})),n.d(e,"isAllowCapture",(function(){return s}));var r=n(1);function i(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"isNil",(function(){return r.isNil})),n.d(e,"isFunction",(function(){return r.isFunction})),n.d(e,"isString",(function(){return r.isString})),n.d(e,"isObject",(function(){return r.isObject})),n.d(e,"isArray",(function(){return r.isArray})),n.d(e,"mix",(function(){return r.mix})),n.d(e,"each",(function(){return r.each})),n.d(e,"upperFirst",(function(){return r.upperFirst}));var o="undefined"!=typeof window&&void 0!==window.document;function a(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function s(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";n.r(e),n.d(e,"earthRadius",(function(){return d})),n.d(e,"default",(function(){return f}));var r=n(440),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(61),d=6371008.8,f=function(){function t(e,n){if(a()(this,t),c()(this,"lng",void 0),c()(this,"lat",void 0),isNaN(e)||isNaN(n))throw new Error("Invalid LngLat object: (".concat(e,", ").concat(n,")"));if(this.lng=+e,this.lat=+n,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")}return l()(t,[{key:"wrap",value:function(){return new t(Object(h.wrap)(this.lng,-180,180),this.lat)}},{key:"toArray",value:function(){return[this.lng,this.lat]}},{key:"toString",value:function(){return"LngLat(".concat(this.lng,", ").concat(this.lat,")")}},{key:"distanceTo",value:function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return d*Math.acos(Math.min(i,1))}}],[{key:"convert",value:function(e){if(e instanceof t)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new t(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"===i()(e)&&null!==e){var n="lng"in e?e.lng:e.lon;return new t(Number(n),Number(e.lat))}throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return o})),n.d(e,"VIOLIN_Y_FIELD",(function(){return a})),n.d(e,"VIOLIN_SIZE_FIELD",(function(){return s})),n.d(e,"MIN_MAX_FIELD",(function(){return l})),n.d(e,"QUANTILE_FIELD",(function(){return u})),n.d(e,"MEDIAN_FIELD",(function(){return c})),n.d(e,"VIOLIN_VIEW_ID",(function(){return h})),n.d(e,"MIN_MAX_VIEW_ID",(function(){return d})),n.d(e,"QUANTILE_VIEW_ID",(function(){return f})),n.d(e,"MEDIAN_VIEW_ID",(function(){return p})),n.d(e,"DEFAULT_OPTIONS",(function(){return g}));var r=n(26),i=n(4),o="x",a="violinY",s="violinSize",l="minMax",u="quantile",c="median",h="violin_view",d="min_max_view",f="quantile_view",p="median_view",g=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{syncViewPadding:!0,kde:{type:"triangular",sampleSize:32,width:3},violinStyle:{lineWidth:1,fillOpacity:.3,strokeOpacity:.75},xAxis:{grid:{line:null},tickLine:{alignTick:!1}},yAxis:{grid:{line:{style:{lineWidth:.5,lineDash:[4,4]}}}},legend:{position:"top-left"},tooltip:{showMarkers:!1}})},function(t,e,n){"use strict";n.r(e);var r=n(1025);n.d(e,"Quad",(function(){return r.default}));var i=n(1026);n.d(e,"Cubic",(function(){return i.default}));var o=n(1027);n.d(e,"Arc",(function(){return o.default}));var a=n(213);n.d(e,"Line",(function(){return a.default}));var s=n(1028);n.d(e,"Polygon",(function(){return s.default}));var l=n(614);n.d(e,"Polyline",(function(){return l.default}));var u=n(83);n.d(e,"Util",(function(){return u}))},function(t,e,n){var r=n(1964),i=n(2020)((function(t,e,n){r(t,e,n)}));t.exports=i},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COMMON_STYLE",(function(){return u})),n.d(e,"DEFAULT_COMMON_ANIMATION_PROPS",(function(){return c}));var r=n(59),i=n(650),o=n(35),a=n(0),s=n(100),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 h=["z","z2","invisible"],d=["invisible"],f=function(t){function e(e){return t.call(this,e)||this}var n;return Object(r.__extends)(e,t),e.prototype._init=function(e){for(var n=Object(a.keys)(e),r=0;r=0)h=c*t.length;else for(var d=0;d0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r.isDate)(t)&&(t=t.getTime()),t}var l=1e3,u=60*l,c=60*u,h=24*c,d=31*h,f=365*h,p=[["HH:mm:ss",l],["HH:mm:ss",10*l],["HH:mm:ss",30*l],["HH:mm",u],["HH:mm",10*u],["HH:mm",30*u],["HH",c],["HH",6*c],["HH",12*c],["YYYY-MM-DD",h],["YYYY-MM-DD",4*h],["YYYY-WW",7*h],["YYYY-MM",d],["YYYY-MM",4*d],["YYYY-MM",6*d],["YYYY",380*h]];function g(t,e,n){var i=(e-t)/n,a=Object(o.default)((function(t){return t[1]}))(p,i)-1,s=p[a];return a<0?s=p[0]:a>=p.length&&(s=Object(r.last)(p)),s}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMappingField",(function(){return a})),n.d(e,"getMappingFunction",(function(){return s})),n.d(e,"geometry",(function(){return l}));var r=n(2),i=n(1),o=n(4);function a(t,e){var n=t.type,o=t.xField,a=t.yField,s=t.colorField,l=t.shapeField,u=t.sizeField,c=t.styleField,h=t.rawFields,d=void 0===h?[]:h,f=[];if("color"===e)f=Object(r.__spreadArrays)([s||o],d);else if("shape"===e)f=Object(r.__spreadArrays)([l||o],d);else if("size"===e)f=Object(r.__spreadArrays)([u||o],d);else{f=Object(r.__spreadArrays)([o,a,s,l,u,c],d);var p=["x","y","color","shape","size","style"].indexOf(e),g=f[p];f.splice(p,1),f.unshift(g)}var v=Object(i.uniq)(f.filter((function(t){return!!t}))),m="line"===n&&[o,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:m}}function s(t,e){if(e)return function(){for(var n=[],r=0;r=0&&n.push(t)})),n}(s.originalDeps=e(a),t);s.entryCount=l.length,0===s.entryCount&&o.push(a),r.each(l,(function(t){r.indexOf(s.predecessor,t)<0&&s.predecessor.push(t);var e=n(i,t);r.indexOf(e.successor,t)<0&&e.successor.push(a)}))})),{graph:i,noEntryList:o}}(i),l=s.graph,u=s.noEntryList,c={};for(r.each(t,(function(t){c[t]=!0}));u.length;){var h=u.pop(),d=l[h],f=!!c[h];f&&(o.call(a,h,d.originalDeps.slice()),delete c[h]),r.each(d.successor,f?g:p)}r.each(c,(function(){throw new Error("")}))}function p(t){l[t].entryCount--,0===l[t].entryCount&&u.push(t)}function g(t){c[t]=!0,p(t)}}}function u(t,e){return r.merge(r.merge({},t,!0),e,!0)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ToolboxFeature",(function(){return r})),n.d(e,"registerFeature",(function(){return o})),n.d(e,"getFeature",(function(){return a}));var r=function(){},i={};function o(t,e){i[t]=e}function a(t){return i[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_AXES_VIEW",(function(){return i})),n.d(e,"RIGHT_AXES_VIEW",(function(){return o})),n.d(e,"DEFAULT_YAXIS_CONFIG",(function(){return a})),n.d(e,"DEFAULT_LEFT_YAXIS_CONFIG",(function(){return s})),n.d(e,"DEFAULT_RIGHT_YAXIS_CONFIG",(function(){return l}));var r=n(2),i="left-axes-view",o="right-axes-view",a={nice:!0,label:{autoHide:!0,autoRotate:!1}},s=Object(r.__assign)(Object(r.__assign)({},a),{position:"left"}),l=Object(r.__assign)(Object(r.__assign)({},a),{position:"right",grid:null})},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_IMAGE_STYLE",(function(){return s})),n.d(e,"DEFAULT_IMAGE_ANIMATION_PROPS",(function(){return l}));var r=n(59),i=n(97),o=n(35),a=n(0),s=Object(a.defaults)({x:0,y:0},i.DEFAULT_COMMON_STYLE),l={style:Object(a.defaults)({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},i.DEFAULT_COMMON_ANIMATION_PROPS.style)};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.createStyle=function(t){return Object(a.createObject)(s,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var r,i=(r=e.image)&&"string"!=typeof r&&r.width&&r.height?e.image:this.__image;if(!i)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?i[t]:i[t]/i[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return l},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new o.default(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(i.default);u.prototype.type="image",e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"FIRST_AXES_VIEW",(function(){return r})),n.d(e,"SECOND_AXES_VIEW",(function(){return i})),n.d(e,"SERIES_FIELD_KEY",(function(){return o}));var r="first-axes-view",i="second-axes-view",o="series-field-key"},function(t,e,n){"use strict";n.r(e);var r=n(16);n.d(e,"mat3",(function(){return r.mat3})),n.d(e,"vec2",(function(){return r.vec2})),n.d(e,"vec3",(function(){return r.vec3}));var i=n(1030);n.d(e,"ext",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r,i,o,a,s,l,u,c=n(0),h=n(57),d=n(169),f=n(171),p=n(331),g=n(477),v=n(29),m=n(10),y=n(32),b=n(140),_=n(394),x=n(339),w=c.isObject,O=c.map,S="undefined"==typeof Int32Array?Array:Int32Array,C=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],E=["_approximateExtent"],T=function(){function t(t,e){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r=!1;Object(x.isSeriesDataSchema)(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(r=!0,n=t),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList;if(n.getSource().sourceFormat===v.SOURCE_FORMAT_ORIGINAL&&!n.pure)for(var a=[],s=t;s0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,r=n[t];r||(r=n[t]={});var i=r[e];return null==i&&(i=this.getVisual(e),c.isArray(i)?i=i.slice():w(i)&&(i=c.extend({},i)),r[e]=i),i},t.prototype.setItemVisual=function(t,e,n){var r=this._itemVisuals[t]||{};this._itemVisuals[t]=r,w(e)?c.extend(r,e):r[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){w(t)?c.extend(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?c.extend(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Object(y.setCommonECData)(n,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){c.each(this._graphicEls,(function(n,r){n&&t&&t.call(e,n,r)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:O(this.dimensions,this._getDimInfo,this),this.hostModel)),s(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];c.isFunction(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(c.slice(arguments)))})},t.internalField=(r=function(t){var e=t._invertedIndicesMap;c.each(e,(function(n,r){var i=t._dimInfos[r],o=i.ordinalMeta,a=t._store;if(o){n=e[r]=new S(o.categories.length);for(var s=0;s1&&(l+="__ec__"+c),r[e]=l}})),t}();e.default=T},function(t,e,n){"use strict";function r(t,e){return t.views.find((function(t){return t.id===e}))}function i(t){var e=t.parent;return e?e.views:[]}function o(t){return i(t).filter((function(e){return e!==t}))}n.r(e),n.d(e,"findViewById",(function(){return r})),n.d(e,"getViews",(function(){return i})),n.d(e,"getSiblingViews",(function(){return o}))},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";n.r(e),n.d(e,"createSVGElement",(function(){return o})),n.d(e,"createDom",(function(){return a})),n.d(e,"sortDom",(function(){return s})),n.d(e,"moveTo",(function(){return l}));var r=n(1),i=n(58);function o(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function a(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=o(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var a=n.get("el");a||(a=n.createDom(),n.set("el",a)),a.appendChild(r)}return r}function s(t,e){var n=t.get("el"),i=Object(r.toArray)(n.children).sort(e),o=document.createDocumentFragment();i.forEach((function(t){o.appendChild(t)})),n.appendChild(o)}function l(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(oi&&(s=o.interval=i);var u=o.intervalPrecision=l(s);return c(o.niceTickExtent=[Object(r.round)(Math.ceil(t[0]/s)*s,u),Object(r.round)(Math.floor(t[1]/s)*s,u)],t),o}function s(t){var e=Math.pow(10,Object(r.quantityExponent)(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,Object(r.round)(n*e)}function l(t){return Object(r.getPrecision)(t)+2}function u(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function c(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),u(t,0,e),u(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function h(t,e){return t>=e[0]&&t<=e[1]}function d(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function f(t,e){return t*(e[1]-e[0])+e[0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLineAxisRelativeRegion",(function(){return s})),n.d(e,"getCircleAxisRelativeRegion",(function(){return l})),n.d(e,"getAxisRegion",(function(){return u})),n.d(e,"getAxisFactor",(function(){return c})),n.d(e,"isVertical",(function(){return h})),n.d(e,"getAxisFactorByRegion",(function(){return d})),n.d(e,"getAxisThemeCfg",(function(){return f})),n.d(e,"getAxisTitleOptions",(function(){return p})),n.d(e,"getCircleAxisCenterRadius",(function(){return g})),n.d(e,"getAxisOption",(function(){return v})),n.d(e,"getAxisDirection",(function(){return m})),n.d(e,"getAxisTitleText",(function(){return y}));var r=n(1),i=n(7),o=n(155),a=n(25);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function l(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function u(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function c(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1}function h(t){var e=t.start,n=t.end;return e.x===n.x}function d(t,e){var n=t.start,r=t.end;return h(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function f(t,e){var n=Object(r.get)(t,["components","axis"],{});return Object(r.deepMix)({},Object(r.get)(n,["common"],{}),Object(r.deepMix)({},Object(r.get)(n,[e],{})))}function p(t,e,n){var i=Object(r.get)(t,["components","axis"],{});return Object(r.deepMix)({},Object(r.get)(i,["common","title"],{}),Object(r.deepMix)({},Object(r.get)(i,[e,"title"],{})),n)}function g(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[o.x-r.x,o.y-r.y],l=[1,0],u=o.y>r.y?a.vec2.angle(s,l):-1*a.vec2.angle(s,l),c=u+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:u,endAngle:c}}function v(t,e){return Object(r.isBoolean)(t)?!1!==t&&{}:Object(r.get)(t,[e])}function m(t,e){return Object(r.get)(t,"position",e)}function y(t,e){return Object(r.get)(e,["title","text"],Object(o.getName)(t))}},function(t,e,n){"use strict";n.r(e);var r=n(131);e.default=function(t){return Object(r.default)(t,"Function")}},function(t,e,n){"use strict";n.r(e),n.d(e,"BBox",(function(){return a})),n.d(e,"getRegionBBox",(function(){return s})),n.d(e,"toPoints",(function(){return l}));var r=n(2),i=n(1),o=n(7),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}(),s=function(t,e){var n=e.start,r=e.end;return new a(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))};function l(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";n.r(e),n.d(e,"parseClassType",(function(){return a})),n.d(e,"isExtendedClass",(function(){return s})),n.d(e,"enableClassExtend",(function(){return l})),n.d(e,"mountExtend",(function(){return u})),n.d(e,"enableClassCheck",(function(){return h})),n.d(e,"enableClassManagement",(function(){return p}));var r=n(5),i=n(0),o="___EC__COMPONENT__CONTAINER___";function a(t){var e={main:"",sub:""};if(t){var n=t.split(".");e.main=n[0]||"",e.sub=n[1]||""}return e}function s(t){return!(!t||!t.___EC__EXTENDED_CLASS___)}function l(t,e){t.$constructor=t,t.extend=function(t){var e,n,o=this;return n=o,i.isFunction(n)&&/^class\s/.test(Function.prototype.toString.call(n))?e=function(t){function e(){return t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(o):(e=function(){(t.$constructor||o).apply(this,arguments)},i.inherits(e,this)),i.extend(e.prototype,t),e.___EC__EXTENDED_CLASS___=!0,e.extend=this.extend,e.superCall=d,e.superApply=f,e.superClass=o,e}}function u(t,e){t.extend=e.extend}var c=Math.round(10*Math.random());function h(t){var e=["__\0is_clz",c++].join("_");t.prototype[e]=!0,t.isInstance=function(t){return!(!t||!t[e])}}function d(t,e){for(var n=[],r=2;r5e-5||t<-5e-5}var s=[],l=[],u=r.create(),c=Math.abs,h=function(){function t(){}var e;return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return a(this.rotation)||a(this.x)||a(this.y)||a(this.scaleX-1)||a(this.scaleY-1)||a(this.skewX)||a(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||r.create(),e?this.getLocalTransform(n):o(n),t&&(e?r.mul(n,t,n):r.copy(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(s);var n=s[0]<0?-1:1,i=s[1]<0?-1:1,o=((s[0]-n)*e+n)/s[0]||0,a=((s[1]-i)*e+i)/s[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||r.create(),r.invert(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],r=Math.atan2(t[1],t[0]),i=Math.PI/2+r-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(l,t.invTransform,e),e=l);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r.mul(l,e,u),l[4]-=n,l[5]-=i,e=l),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],r=this.invTransform;return r&&i.applyTransform(n,n,r),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],r=this.transform;return r&&i.applyTransform(n,n,r),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){f(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,h=t.y,d=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var p=n+s,g=i+l;e[4]=-p*o-d*g*a,e[5]=-g*a-f*p*o}else e[4]=e[5]=0;return e[0]=o,e[3]=a,e[1]=f*o,e[2]=d*a,u&&r.rotate(e,e,u),e[4]+=n+c,e[5]+=i+h,e},t.initDefaultProps=((e=t.prototype).scaleX=e.scaleY=e.globalScaleRatio=1,void(e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0)),t}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function f(t,e){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:{};a.$document.addEventListener(t,e,n)},removeEventListener:function(t,e,n){a.$document.removeEventListener(t,e)},dispatchEvent:function(t){a.$document.dispatchEvent(t)},innerWidth:x.screen.availWidth,innerHeight:x.screen.availHeight,setTimeout:setTimeout,clearTimeout:clearTimeout,setInterval:setInterval,clearInterval:clearInterval},k=I?j:E.globalWindow,P=I?C.$XMLHttpRequest:E.globalWindow.XMLHttpRequest,L=I?v.$location:E.globalWindow.location},function(t,e,n){"use strict";n.r(e),n.d(e,"calBase",(function(){return i})),n.d(e,"log",(function(){return o})),n.d(e,"getLogPositiveMin",(function(){return a})),n.d(e,"precisionAdd",(function(){return l}));var r=n(1);function i(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function o(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function a(t,e,n){Object(r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r.each)(t,(function(t){t>0&&t1&&(i=1),i}function s(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}function l(t,e){var n=s(t),r=s(e),i=Math.pow(10,Math.max(n,r));return(t*i+e*i)/i}},function(t,e,n){"use strict";n.r(e),n.d(e,"Y_FIELD",(function(){return r})),n.d(e,"DIFF_FIELD",(function(){return i})),n.d(e,"ABSOLUTE_FIELD",(function(){return o})),n.d(e,"IS_TOTAL",(function(){return a})),n.d(e,"DEFAULT_OPTIONS",(function(){return s}));var r="$$yField$$",i="$$diffField$$",o="$$absoluteField$$",a="$$isTotal$$",s={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"TITLE_CLASS",(function(){return i})),n.d(e,"LIST_CLASS",(function(){return o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),n.d(e,"MARKER_CLASS",(function(){return s})),n.d(e,"VALUE_CLASS",(function(){return l})),n.d(e,"NAME_CLASS",(function(){return u})),n.d(e,"CROSSHAIR_X",(function(){return c})),n.d(e,"CROSSHAIR_Y",(function(){return h}));var r="g2-tooltip",i="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",s="g2-tooltip-marker",l="g2-tooltip-value",u="g2-tooltip-name",c="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(79),o=n(188),a=n(112),s=n(399),l=n(58),u=n(353),c=n(439),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){Object(s.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(i.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,o=e.y,a=e.width,s=e.height,l=this.getHitLineWidth(),u=l/2,c=r-u,h=o-u;return{x:c,y:h,minX:c,minY:h,maxX:r+a+u,maxY:o+s+u,width:a+l,height:s+l}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(a.createDom)(this),Object(o.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,o=n.stroke,a=n.strokeStyle,s=n.fillOpacity,u=n.strokeOpacity,c=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&h.setAttribute(l.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),u&&h.setAttribute(l.SVG_ATTR_MAP.strokeOpacity,u),c&&h.setAttribute(l.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(l.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(l.SVG_ATTR_MAP[e],n);else r.setAttribute(l.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||a||s||l)&&Object(o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&Object(o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(i.AbstractShape);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"getTooltipMapping",(function(){return i}));var r=n(1);function i(t,e){if(!1===t)return{fields:!1};var n=Object(r.get)(t,"fields"),i=Object(r.get)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return W})),n.d(e,"dependencies",(function(){return Y})),n.d(e,"PRIORITY",(function(){return $})),n.d(e,"init",(function(){return Dt})),n.d(e,"connect",(function(){return Rt})),n.d(e,"disConnect",(function(){return Nt})),n.d(e,"disconnect",(function(){return Ft})),n.d(e,"dispose",(function(){return Bt})),n.d(e,"getInstanceByDom",(function(){return zt})),n.d(e,"getInstanceById",(function(){return Vt})),n.d(e,"registerTheme",(function(){return Ut})),n.d(e,"registerPreprocessor",(function(){return Gt})),n.d(e,"registerProcessor",(function(){return Ht})),n.d(e,"registerPostInit",(function(){return Wt})),n.d(e,"registerPostUpdate",(function(){return Yt})),n.d(e,"registerUpdateLifecycle",(function(){return $t})),n.d(e,"registerAction",(function(){return Xt})),n.d(e,"registerCoordinateSystem",(function(){return qt})),n.d(e,"getCoordinateSystemDimensions",(function(){return Zt})),n.d(e,"registerLayout",(function(){return Kt})),n.d(e,"registerVisual",(function(){return Jt})),n.d(e,"registerLoading",(function(){return ee})),n.d(e,"setCanvasCreator",(function(){return ne})),n.d(e,"registerMap",(function(){return re})),n.d(e,"getMap",(function(){return ie})),n.d(e,"registerTransform",(function(){return oe})),n.d(e,"dataTool",(function(){return ae}));var r=n(5),i=n(389),o=n(0),a=n(49),s=n(475),l=n(129),u=n(654),c=n(656),h=n(273),d=n(1273),f=n(826),p=n(1278),g=n(54),v=n(62),m=n(53),y=n(70),b=n(106),_=n(23),x=n(36),w=n(32),O=n(13),S=n(10),C=n(130),E=n(747),T=n(1279),M=n(828),A=n(1280),I=n(1281),j=n(117),k=n(1257),P=n(830),L=n(185),D=n(37),R=n(442),N=n(659),F=n(247),B=n(338),z=n(1276),V=n(264),U=n(98),G=n(533);n.d(e,"registerLocale",(function(){return F.registerLocale}));var H="undefined"!=typeof window,W="5.3.2",Y={zrender:"5.3.1"},$={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}},X="__pendingUpdate",q=/^[a-zA-Z0-9_]+$/;function Z(t){return function(){for(var e=[],n=0;n0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,n){if(!this.__flagInMainProcess)if(this._disposed)wt(this.id);else{var r,i,a;if(Object(o.isObject)(e)&&(n=e.lazyUpdate,r=e.silent,i=e.replaceMerge,a=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var s=new d.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(t,{replaceMerge:i},Et);var h={seriesTransition:a,optionChanged:!0};if(n)this[X]={silent:r,updateParams:h},this.__flagInMainProcess=!1,this.getZr().wakeUp();else{try{Q(this),nt.update.call(this,null,h)}catch(t){throw this[X]=null,this.__flagInMainProcess=!1,t}this._ssr||this._zr.flush(),this[X]=null,this.__flagInMainProcess=!1,at.call(this,r),st.call(this,r)}}},e.prototype.setTheme=function(){Object(D.deprecateLog)("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||H&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(a.default.svgSupported){var t=this._zr,e=t.storage.getDisplayList();return Object(o.each)(e,(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,n=this._model,r=[],i=this;Object(o.each)(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(r.push(e),e.group.ignore=!0)}))}));var a="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return Object(o.each)(r,(function(t){t.group.ignore=!1})),a}wt(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,r=Math.min,a=Math.max;if(jt[n]){var s=1/0,l=1/0,u=-1/0,c=-1/0,h=[],d=t&&t.pixelRatio||this.getDevicePixelRatio();Object(o.each)(It,(function(i,d){if(i.group===n){var f=e?i.getZr().painter.getSvgDom().innerHTML:i.renderToCanvas(Object(o.clone)(t)),p=i.getDom().getBoundingClientRect();s=r(p.left,s),l=r(p.top,l),u=a(p.right,u),c=a(p.bottom,c),h.push({dom:f,left:p.left,top:p.top})}}));var f=(u*=d)-(s*=d),p=(c*=d)-(l*=d),g=U.platformApi.createCanvas(),v=i.init(g,{renderer:e?"svg":"canvas"});if(v.resize({width:f,height:p}),e){var m="";return Object(o.each)(h,(function(t){var e=t.left-s,n=t.top-l;m+=''+t.dom+""})),v.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&v.painter.setBackgroundColor(t.connectedBackgroundColor),v.refreshImmediately(),v.painter.toDataURL()}return t.connectedBackgroundColor&&v.add(new y.default({shape:{x:0,y:0,width:f,height:p},style:{fill:t.connectedBackgroundColor}})),Object(o.each)(h,(function(t){var e=new b.default({style:{x:t.left*d-s,y:t.top*d-l,image:t.dom}});v.add(e)})),v.refreshImmediately(),g.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}wt(this.id)},e.prototype.convertToPixel=function(t,e){return rt(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return rt(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){if(!this._disposed){var n,r=this._model,i=S.parseFinder(r,t);return Object(o.each)(i,(function(t,r){r.indexOf("Models")>=0&&Object(o.each)(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(e);else if("seriesModels"===r){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}else 0}),this)}),this),!!n}wt(this.id)},e.prototype.getVisual=function(t,e){var n=this._model,r=S.parseFinder(n,t,{defaultMainType:"series"});var i=r.seriesModel.getData(),o=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?i.indexOfRawIndex(r.dataIndex):null;return null!=o?Object(L.getItemVisualFromData)(i,o,e):Object(L.getVisualFromData)(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t=this;Object(o.each)(xt,(function(e){var n=function(n){var r,i=t.getModel(),a=n.target;if("globalout"===e?r={}:a&&Object(B.findEventDispatcher)(a,(function(t){var e=Object(w.getECData)(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return r=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return r=Object(o.extend)({},e.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&&t["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=e,t._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:u,view:c},t.trigger(e,r)}};n.zrEventfulCallAtLast=!0,t._zr.on(e,n,t)})),Object(o.each)(St,(function(e,n){t._messageCenter.on(n,(function(t){this.trigger(n,t)}),t)})),Object(o.each)(["selectchanged"],(function(e){t._messageCenter.on(e,(function(t){this.trigger(e,t)}),t)})),Object(R.handleLegacySelectEvents)(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?wt(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)wt(this.id);else{this._disposed=!0,this.getDom()&&S.setAttribute(this.getDom(),Lt,"");var t=this._api,e=this._model;Object(o.each)(this._componentsViews,(function(n){n.dispose(e,t)})),Object(o.each)(this._chartsViews,(function(n){n.dispose(e,t)})),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 It[this.id]}},e.prototype.resize=function(t){if(!this.__flagInMainProcess)if(this._disposed)wt(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),r=t&&t.silent;this[X]&&(null==r&&(r=this[X].silent),n=!0,this[X]=null),this.__flagInMainProcess=!0;try{n&&Q(this),nt.update.call(this,{type:"resize",animation:Object(o.extend)({duration:0},t&&t.animation)})}catch(t){throw this.__flagInMainProcess=!1,t}this.__flagInMainProcess=!1,at.call(this,r),st.call(this,r)}}},e.prototype.showLoading=function(t,e){if(this._disposed)wt(this.id);else if(Object(o.isObject)(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),At[t]){var n=At[t](this._api,e),r=this._zr;this._loadingFX=n,r.add(n)}},e.prototype.hideLoading=function(){this._disposed?wt(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Object(o.extend)({},t);return e.type=St[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)wt(this.id);else if(Object(o.isObject)(e)||(e={silent:!!e}),Ot[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;ot.call(this,t,n);var r=e.flush;r?this._zr.flush():!1!==r&&a.default.browser.weChat&&this._throttledZrFlush(),at.call(this,n),st.call(this,n)}},e.prototype.updateLabelLayout=function(){V.default.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)wt(this.id);else{var e=t.seriesIndex;0,this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],n=t.currentStates,r=0;r0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(_.isElementRemoved(t))return;if(t instanceof x.default&&Object(O.savePathStates)(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(i){t.stateTransition=a;var r=t.getTextContent(),o=t.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}Q=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),tt(t,!0),tt(t,!1),e.plan()},tt=function(t,e){for(var n=t._model,r=t._scheduler,i=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!a.default.node&&!a.default.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),V.default.trigger("series:afterupdate",e,r,u)},gt=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},vt=function(t){t.__needsUpdateStatus&&(t.getZr().storage.traverse((function(t){_.isElementRemoved(t)||e(t)})),t.__needsUpdateStatus=!1)},ft=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Object(O.enterEmphasis)(e,n),gt(t)},n.prototype.leaveEmphasis=function(e,n){Object(O.leaveEmphasis)(e,n),gt(t)},n.prototype.enterBlur=function(e){Object(O.enterBlur)(e),gt(t)},n.prototype.leaveBlur=function(e){Object(O.leaveBlur)(e),gt(t)},n.prototype.enterSelect=function(e){Object(O.enterSelect)(e),gt(t)},n.prototype.leaveSelect=function(e){Object(O.leaveSelect)(e),gt(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(c.default))(t)},pt=function(t){function e(t,e){for(var n=0;n=0)){Qt.push(n);var a=M.default.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function ee(t,e){At[t]=e}function ne(t){Object(U.setPlatformAPI)({createCanvas:t})}function re(t,e,n){var r=Object(G.getImpl)("registerMap");r&&r(t,e,n)}function ie(t){var e=Object(G.getImpl)("getMap");return e&&e(t)}var oe=N.registerExternalTransform;Jt(2e3,E.seriesStyleTask),Jt(4500,E.dataStyleTask),Jt(4500,E.dataColorPaletteTask),Jt(2e3,P.seriesSymbolTask),Jt(4500,P.dataSymbolTask),Jt(7e3,z.default),Gt(f.default),Ht(900,p.default),ee("default",T.default),Xt({type:O.HIGHLIGHT_ACTION_TYPE,event:O.HIGHLIGHT_ACTION_TYPE,update:O.HIGHLIGHT_ACTION_TYPE},o.noop),Xt({type:O.DOWNPLAY_ACTION_TYPE,event:O.DOWNPLAY_ACTION_TYPE,update:O.DOWNPLAY_ACTION_TYPE},o.noop),Xt({type:O.SELECT_ACTION_TYPE,event:O.SELECT_ACTION_TYPE,update:O.SELECT_ACTION_TYPE},o.noop),Xt({type:O.UNSELECT_ACTION_TYPE,event:O.UNSELECT_ACTION_TYPE,update:O.UNSELECT_ACTION_TYPE},o.noop),Xt({type:O.TOGGLE_SELECT_ACTION_TYPE,event:O.TOGGLE_SELECT_ACTION_TYPE,update:O.TOGGLE_SELECT_ACTION_TYPE},o.noop),Ut("light",A.default),Ut("dark",I.default);var ae={}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(71),o=n(6),a=(n(37),r.each),s=r.isObject,l=function(){function t(e){var n=e.mappingMethod,i=e.type,o=this.option=r.clone(e);this.type=i,this.mappingMethod=n,this._normalizeData=y[n];var s=t.visualHandlers[i];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._normalizedToVisual=s._normalizedToVisual[n],"piecewise"===n?(u(o),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,r.each(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(o)):"category"===n?o.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(a(e,(function(t,e){n[t]=e})),!r.isArray(i)){var o=[];r.isObject(i)?a(i,(function(t,e){var r=n[e];o[null!=r?r:-1]=t})):o[-1]=i,i=m(t,o)}for(var s=e.length-1;s>=0;s--)null==i[s]&&(delete n[e[s]],e.pop())}(o):u(o,!0):(r.assert("linear"!==n||o.dataExtent),u(o))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return r.bind(this._normalizeData,this)},t.listVisualTypes=function(){return r.keys(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){r.isObject(t)?r.each(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var o,a=r.isArray(e)?[]:r.isObject(e)?{}:(o=!0,null);return t.eachVisual(e,(function(t,e){var r=n.call(i,t,e);o?a=r:a[e]=r})),a},t.retrieveVisuals=function(e){var n,r={};return e&&a(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(r[i]=e[i],n=!0)})),n?r:null},t.prepareVisualTypes=function(t){if(r.isArray(t))t=t.slice();else{if(!s(t))return[];var e=[];a(t,(function(t,n){e.push(n)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,o=1/0,a=0,s=e.length;a=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){l=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&f?t.addEventListener(e,n,r):t.addEventListener(e,n,r.capture)},s.removeEventListener=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"passive"in r&&f?t.removeEventListener(e,n,r):t.removeEventListener(e,n,r.capture)};var g=function t(e){e.preventDefault(),e.stopPropagation(),r.$window.removeEventListener("click",t,!0)};s.suppressClick=function(){r.isMini||(r.$window.addEventListener("click",g,!0),setTimeout((function(){r.$window.removeEventListener("click",g,!0)}),0))},s.mousePos=function(t,e){if(r.isMini)return new i.default(e.clientX-t.left-0,e.clientY-t.top-0);var n=t.getBoundingClientRect();return new i.default(e.clientX-n.left-t.clientLeft,e.clientY-n.top-t.clientTop)},s.touchPos=function(t,e){if(r.isMini){var n,a=[],s=o(e);try{for(s.s();!(n=s.n()).done;){var l=n.value;a.push(new i.default(l.clientX-t.left,l.clientY-t.top))}}catch(t){s.e(t)}finally{s.f()}return a}var u,c=t.getBoundingClientRect(),h=[],d=o(e);try{for(d.s();!(u=d.n()).done;){var f=u.value;h.push(new i.default(f.clientX-c.left-t.clientLeft,f.clientY-c.top-t.clientTop))}}catch(t){d.e(t)}finally{d.f()}return h},s.mouseButton=function(t){return r.isMini&&void 0!==r.$window.InstallTrigger&&2===t.button&&t.ctrlKey&&r.$window.navigator.platform.toUpperCase().indexOf("MAC")>=0?0:t.button},s.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"==typeof e&&(r=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),i[t]||(i[t]=[]);for(var a=0;a=0?h():c=setTimeout(h,-i),l=r};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function a(t,e,n,a){var s=t[e];if(s){var l=s[r]||s,u=s["\0__throttleType"];if(s[i]!==n||u!==a){if(null==n||!a)return t[e]=l;(s=t[e]=o(l,n,"debounce"===a))[r]=l,s["\0__throttleType"]=a,s[i]=n}return s}}function s(t,e){var n=t[e];n&&n[r]&&(n.clear&&n.clear(),t[e]=n[r])}},function(t,e,n){"use strict";n.r(e);var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(79),o=n(56),a=n(136),s=n(270),l=n(438),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return l.default},e.prototype.onCanvasChange=function(t){Object(a.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(i.getBBoxMethod)(t)(this),r=e/2,o=n.x-r,a=n.y-r,s=n.x+n.width+r,l=n.y+n.height+r;return{x:o,minX:o,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:s,maxY:l}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(a.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!Object(o.intersectRect)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(a.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(o.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(Object(o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(i.AbstractShape);e.default=u},function(t,e,n){"use strict";n.r(e),n.d(e,"enableDataStack",(function(){return o})),n.d(e,"isDimensionStacked",(function(){return a})),n.d(e,"getStackedDimension",(function(){return s}));var r=n(0),i=n(339);function o(t,e,n){var o,a,s,l=(n=n||{}).byIndex,u=n.stackedCoordDimension;!function(t){return!Object(i.isSeriesDataSchema)(t.schema)}(e)?(a=e.schema,o=a.dimensions,s=e.store):o=e;var c,h,d,f,p=!(!t||!t.get("stack"));if(Object(r.each)(o,(function(t,e){Object(r.isString)(t)&&(o[e]=t={name:t}),p&&!t.isExtraCoord&&(l||c||!t.ordinalMeta||(c=t),h||"ordinal"===t.type||"time"===t.type||u&&u!==t.coordDim||(h=t))})),!h||l||c||(l=!0),h){d="__\0ecstackresult_"+t.id,f="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var g=h.coordDim,v=h.type,m=0;Object(r.each)(o,(function(t){t.coordDim===g&&m++}));var y={name:d,coordDim:g,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:f,coordDim:f,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(f,v),b.storeDimIndex=s.ensureCalculationDimension(d,v)),a.appendCalculationDimension(y),a.appendCalculationDimension(b)):(o.push(y),o.push(b))}return{stackedDimension:h&&h.name,stackedByDimension:c&&c.name,isStackedByIndex:l,stackedOverDimension:f,stackResultDimension:d}}function a(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function s(t,e){return a(t,e)?t.getCalculationInfo("stackResultDimension"):e}},function(t,e,n){"use strict";n.r(e),n.d(e,"AXIS_META_CONFIG_KEYS",(function(){return r}));var r=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"copy",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"identity",(function(){return u})),n.d(e,"transpose",(function(){return c})),n.d(e,"invert",(function(){return h})),n.d(e,"adjoint",(function(){return d})),n.d(e,"determinant",(function(){return f})),n.d(e,"multiply",(function(){return p})),n.d(e,"translate",(function(){return g})),n.d(e,"scale",(function(){return v})),n.d(e,"rotate",(function(){return m})),n.d(e,"rotateX",(function(){return y})),n.d(e,"rotateY",(function(){return b})),n.d(e,"rotateZ",(function(){return _})),n.d(e,"fromTranslation",(function(){return x})),n.d(e,"fromScaling",(function(){return w})),n.d(e,"fromRotation",(function(){return O})),n.d(e,"fromXRotation",(function(){return S})),n.d(e,"fromYRotation",(function(){return C})),n.d(e,"fromZRotation",(function(){return E})),n.d(e,"fromRotationTranslation",(function(){return T})),n.d(e,"fromQuat2",(function(){return M})),n.d(e,"getTranslation",(function(){return A})),n.d(e,"getScaling",(function(){return I})),n.d(e,"getRotation",(function(){return j})),n.d(e,"fromRotationTranslationScale",(function(){return k})),n.d(e,"fromRotationTranslationScaleOrigin",(function(){return P})),n.d(e,"fromQuat",(function(){return L})),n.d(e,"frustum",(function(){return D})),n.d(e,"perspectiveNO",(function(){return R})),n.d(e,"perspective",(function(){return N})),n.d(e,"perspectiveZO",(function(){return F})),n.d(e,"perspectiveFromFieldOfView",(function(){return B})),n.d(e,"orthoNO",(function(){return z})),n.d(e,"ortho",(function(){return V})),n.d(e,"orthoZO",(function(){return U})),n.d(e,"lookAt",(function(){return G})),n.d(e,"targetTo",(function(){return H})),n.d(e,"str",(function(){return W})),n.d(e,"frob",(function(){return Y})),n.d(e,"add",(function(){return $})),n.d(e,"subtract",(function(){return X})),n.d(e,"multiplyScalar",(function(){return q})),n.d(e,"multiplyScalarAndAdd",(function(){return Z})),n.d(e,"exactEquals",(function(){return K})),n.d(e,"equals",(function(){return J})),n.d(e,"mul",(function(){return Q})),n.d(e,"sub",(function(){return tt}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function o(t){var e=new r.ARRAY_TYPE(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function s(t,e,n,i,o,a,s,l,u,c,h,d,f,p,g,v){var m=new r.ARRAY_TYPE(16);return m[0]=t,m[1]=e,m[2]=n,m[3]=i,m[4]=o,m[5]=a,m[6]=s,m[7]=l,m[8]=u,m[9]=c,m[10]=h,m[11]=d,m[12]=f,m[13]=p,m[14]=g,m[15]=v,m}function l(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=d,t[12]=f,t[13]=p,t[14]=g,t[15]=v,t}function u(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function c(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}function h(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15],y=n*s-r*a,b=n*l-i*a,_=n*u-o*a,x=r*l-i*s,w=r*u-o*s,O=i*u-o*l,S=c*g-h*p,C=c*v-d*p,E=c*m-f*p,T=h*v-d*g,M=h*m-f*g,A=d*m-f*v,I=y*A-b*M+_*T+x*E-w*C+O*S;return I?(I=1/I,t[0]=(s*A-l*M+u*T)*I,t[1]=(i*M-r*A-o*T)*I,t[2]=(g*O-v*w+m*x)*I,t[3]=(d*w-h*O-f*x)*I,t[4]=(l*E-a*A-u*C)*I,t[5]=(n*A-i*E+o*C)*I,t[6]=(v*_-p*O-m*b)*I,t[7]=(c*O-d*_+f*b)*I,t[8]=(a*M-s*E+u*S)*I,t[9]=(r*E-n*M-o*S)*I,t[10]=(p*w-g*_+m*y)*I,t[11]=(h*_-c*w-f*y)*I,t[12]=(s*C-a*T-l*S)*I,t[13]=(n*T-r*C+i*S)*I,t[14]=(g*b-p*x-v*y)*I,t[15]=(c*x-h*b+d*y)*I,t):null}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],g=e[13],v=e[14],m=e[15];return t[0]=s*(d*m-f*v)-h*(l*m-u*v)+g*(l*f-u*d),t[1]=-(r*(d*m-f*v)-h*(i*m-o*v)+g*(i*f-o*d)),t[2]=r*(l*m-u*v)-s*(i*m-o*v)+g*(i*u-o*l),t[3]=-(r*(l*f-u*d)-s*(i*f-o*d)+h*(i*u-o*l)),t[4]=-(a*(d*m-f*v)-c*(l*m-u*v)+p*(l*f-u*d)),t[5]=n*(d*m-f*v)-c*(i*m-o*v)+p*(i*f-o*d),t[6]=-(n*(l*m-u*v)-a*(i*m-o*v)+p*(i*u-o*l)),t[7]=n*(l*f-u*d)-a*(i*f-o*d)+c*(i*u-o*l),t[8]=a*(h*m-f*g)-c*(s*m-u*g)+p*(s*f-u*h),t[9]=-(n*(h*m-f*g)-c*(r*m-o*g)+p*(r*f-o*h)),t[10]=n*(s*m-u*g)-a*(r*m-o*g)+p*(r*u-o*s),t[11]=-(n*(s*f-u*h)-a*(r*f-o*h)+c*(r*u-o*s)),t[12]=-(a*(h*v-d*g)-c*(s*v-l*g)+p*(s*d-l*h)),t[13]=n*(h*v-d*g)-c*(r*v-i*g)+p*(r*d-i*h),t[14]=-(n*(s*v-l*g)-a*(r*v-i*g)+p*(r*l-i*s)),t[15]=n*(s*d-l*h)-a*(r*d-i*h)+c*(r*l-i*s),t}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],g=t[14],v=t[15];return(e*a-n*o)*(h*v-d*g)-(e*s-r*o)*(c*v-d*p)+(e*l-i*o)*(c*g-h*p)+(n*s-r*a)*(u*v-d*f)-(n*l-i*a)*(u*g-h*f)+(r*l-i*s)*(u*p-c*f)}function p(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],w=n[3];return t[0]=b*r+_*s+x*h+w*g,t[1]=b*i+_*l+x*d+w*v,t[2]=b*o+_*u+x*f+w*m,t[3]=b*a+_*c+x*p+w*y,b=n[4],_=n[5],x=n[6],w=n[7],t[4]=b*r+_*s+x*h+w*g,t[5]=b*i+_*l+x*d+w*v,t[6]=b*o+_*u+x*f+w*m,t[7]=b*a+_*c+x*p+w*y,b=n[8],_=n[9],x=n[10],w=n[11],t[8]=b*r+_*s+x*h+w*g,t[9]=b*i+_*l+x*d+w*v,t[10]=b*o+_*u+x*f+w*m,t[11]=b*a+_*c+x*p+w*y,b=n[12],_=n[13],x=n[14],w=n[15],t[12]=b*r+_*s+x*h+w*g,t[13]=b*i+_*l+x*d+w*v,t[14]=b*o+_*u+x*f+w*m,t[15]=b*a+_*c+x*p+w*y,t}function g(t,e,n){var r,i,o,a,s,l,u,c,h,d,f,p,g=n[0],v=n[1],m=n[2];return e===t?(t[12]=e[0]*g+e[4]*v+e[8]*m+e[12],t[13]=e[1]*g+e[5]*v+e[9]*m+e[13],t[14]=e[2]*g+e[6]*v+e[10]*m+e[14],t[15]=e[3]*g+e[7]*v+e[11]*m+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=r*g+s*v+h*m+e[12],t[13]=i*g+l*v+d*m+e[13],t[14]=o*g+u*v+f*m+e[14],t[15]=a*g+c*v+p*m+e[15]),t}function v(t,e,n){var r=n[0],i=n[1],o=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*o,t[9]=e[9]*o,t[10]=e[10]*o,t[11]=e[11]*o,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function m(t,e,n,i){var o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T,M,A=i[0],I=i[1],j=i[2],k=Math.hypot(A,I,j);return k0?(n[0]=2*(l*s+h*i+u*a-c*o)/d,n[1]=2*(u*s+h*o+c*i-l*a)/d,n[2]=2*(c*s+h*a+l*o-u*i)/d):(n[0]=2*(l*s+h*i+u*a-c*o),n[1]=2*(u*s+h*o+c*i-l*a),n[2]=2*(c*s+h*a+l*o-u*i)),T(t,e,n),t}function A(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function I(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(l,u,c),t}function j(t,e){var n=new r.ARRAY_TYPE(3);I(n,e);var i=1/n[0],o=1/n[1],a=1/n[2],s=e[0]*i,l=e[1]*o,u=e[2]*a,c=e[4]*i,h=e[5]*o,d=e[6]*a,f=e[8]*i,p=e[9]*o,g=e[10]*a,v=s+h+g,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(d-p)/m,t[1]=(f-u)/m,t[2]=(l-c)/m):s>h&&s>g?(m=2*Math.sqrt(1+s-h-g),t[3]=(d-p)/m,t[0]=.25*m,t[1]=(l+c)/m,t[2]=(f+u)/m):h>g?(m=2*Math.sqrt(1+h-s-g),t[3]=(f-u)/m,t[0]=(l+c)/m,t[1]=.25*m,t[2]=(d+p)/m):(m=2*Math.sqrt(1+g-s-h),t[3]=(l-c)/m,t[0]=(f+u)/m,t[1]=(d+p)/m,t[2]=.25*m),t}function k(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3],l=i+i,u=o+o,c=a+a,h=i*l,d=i*u,f=i*c,p=o*u,g=o*c,v=a*c,m=s*l,y=s*u,b=s*c,_=r[0],x=r[1],w=r[2];return t[0]=(1-(p+v))*_,t[1]=(d+b)*_,t[2]=(f-y)*_,t[3]=0,t[4]=(d-b)*x,t[5]=(1-(h+v))*x,t[6]=(g+m)*x,t[7]=0,t[8]=(f+y)*w,t[9]=(g-m)*w,t[10]=(1-(h+p))*w,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function P(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],l=e[3],u=o+o,c=a+a,h=s+s,d=o*u,f=o*c,p=o*h,g=a*c,v=a*h,m=s*h,y=l*u,b=l*c,_=l*h,x=r[0],w=r[1],O=r[2],S=i[0],C=i[1],E=i[2],T=(1-(g+m))*x,M=(f+_)*x,A=(p-b)*x,I=(f-_)*w,j=(1-(d+m))*w,k=(v+y)*w,P=(p+b)*O,L=(v-y)*O,D=(1-(d+g))*O;return t[0]=T,t[1]=M,t[2]=A,t[3]=0,t[4]=I,t[5]=j,t[6]=k,t[7]=0,t[8]=P,t[9]=L,t[10]=D,t[11]=0,t[12]=n[0]+S-(T*S+I*C+P*E),t[13]=n[1]+C-(M*S+j*C+L*E),t[14]=n[2]+E-(A*S+k*C+D*E),t[15]=1,t}function L(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,s=r+r,l=i+i,u=n*a,c=r*a,h=r*s,d=i*a,f=i*s,p=i*l,g=o*a,v=o*s,m=o*l;return t[0]=1-h-p,t[1]=c+m,t[2]=d-v,t[3]=0,t[4]=c-m,t[5]=1-u-p,t[6]=f+g,t[7]=0,t[8]=d+v,t[9]=f-g,t[10]=1-u-h,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function D(t,e,n,r,i,o,a){var s=1/(n-e),l=1/(i-r),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t}function R(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=(i+r)*o,t[14]=2*i*r*o):(t[10]=-1,t[14]=-2*r),t}var N=R;function F(t,e,n,r,i){var o,a=1/Math.tan(e/2);return t[0]=a/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(o=1/(r-i),t[10]=i*o,t[14]=i*r*o):(t[10]=-1,t[14]=-r),t}function B(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(a+s),u=2/(i+o);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(a-s)*l*.5,t[9]=(i-o)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t}function z(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t}var V=z;function U(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=o*u,t[15]=1,t}function G(t,e,n,i){var o,a,s,l,c,h,d,f,p,g,v=e[0],m=e[1],y=e[2],b=i[0],_=i[1],x=i[2],w=n[0],O=n[1],S=n[2];return Math.abs(v-w)0&&(c*=f=1/Math.sqrt(f),h*=f,d*=f);var p=l*d-u*h,g=u*c-s*d,v=s*h-l*c;return(f=p*p+g*g+v*v)>0&&(p*=f=1/Math.sqrt(f),g*=f,v*=f),t[0]=p,t[1]=g,t[2]=v,t[3]=0,t[4]=h*v-d*g,t[5]=d*p-c*v,t[6]=c*g-h*p,t[7]=0,t[8]=c,t[9]=h,t[10]=d,t[11]=0,t[12]=i,t[13]=o,t[14]=a,t[15]=1,t}function W(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"}function Y(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}function $(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t}function X(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}function q(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t}function Z(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t}function K(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]}function J(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=t[9],f=t[10],p=t[11],g=t[12],v=t[13],m=t[14],y=t[15],b=e[0],_=e[1],x=e[2],w=e[3],O=e[4],S=e[5],C=e[6],E=e[7],T=e[8],M=e[9],A=e[10],I=e[11],j=e[12],k=e[13],P=e[14],L=e[15];return Math.abs(n-b)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(b))&&Math.abs(i-_)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(o-x)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-w)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-O)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(O))&&Math.abs(l-S)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(S))&&Math.abs(u-C)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(C))&&Math.abs(c-E)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(E))&&Math.abs(h-T)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(T))&&Math.abs(d-M)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(M))&&Math.abs(f-A)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(A))&&Math.abs(p-I)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(I))&&Math.abs(g-j)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(j))&&Math.abs(v-k)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(k))&&Math.abs(m-P)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))}var Q=p,tt=X},function(t,e,n){"use strict";n.r(e),n.d(e,"applyAttrsToContext",(function(){return u})),n.d(e,"drawChildren",(function(){return c})),n.d(e,"checkRefresh",(function(){return h})),n.d(e,"checkChildrenRefresh",(function(){return d})),n.d(e,"clearChanged",(function(){return f})),n.d(e,"drawPath",(function(){return v})),n.d(e,"refreshElement",(function(){return m})),n.d(e,"getRefreshRegion",(function(){return y})),n.d(e,"getMergedRegion",(function(){return b})),n.d(e,"mergeView",(function(){return _}));var r=n(1),i=n(700),o=n(528),a=n(56),s=n(176),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function u(t,e){var n=e.attr();for(var o in n){var a=n[o],s=l[o]?l[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(r.isArray)(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(i.parseStyle)(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function c(t,e,n){for(var r=0;rw?x:w,M=x>w?1:x/w,A=x>w?w/x:1;e.translate(b,_),e.rotate(C),e.scale(M,A),e.arc(0,0,T,O,S,1-E),e.scale(1/M,1/A),e.rotate(-C),e.translate(-b,-_)}break;case"Z":e.closePath()}if("Z"===p)u=c;else{var I=f.length;u=[f[I-2],f[I-1]]}}}}function m(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function y(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),o=i&&!(!i.width||!i.height);r&&o?e=Object(a.mergeRegion)(n,i):r?e=n:o&&(e=i)}return e}function b(t){if(!t.length)return null;var e=[],n=[],i=[],o=[];return Object(r.each)(t,(function(t){var r=y(t);r&&(e.push(r.minX),n.push(r.minY),i.push(r.maxX),o.push(r.maxY))})),{minX:Object(r.min)(e),minY:Object(r.min)(n),maxX:Object(r.max)(i),maxY:Object(r.max)(o)}}function _(t,e){return t&&e&&Object(a.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"RANGE_VALUE",(function(){return i})),n.d(e,"RANGE_TYPE",(function(){return o})),n.d(e,"PERCENT",(function(){return a})),n.d(e,"DEFAULT_COLOR",(function(){return s})),n.d(e,"INDICATEOR_VIEW_ID",(function(){return l})),n.d(e,"RANGE_VIEW_ID",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var i="range",o="type",a="percent",s="#f0f0f0",l="indicator-view",u="range-view",c={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(r={},r[i]={sync:"v"},r[a]={sync:"v",tickCount:5,tickInterval:.2},r),animation:!1}},function(t,e,n){"use strict";n.r(e),n.d(e,"normalizeArcAngles",(function(){return C}));var r=n(20),i=n(35),o=n(151),a=n(232),s=n(47),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],d=[],f=[],p=[],g=Math.min,v=Math.max,m=Math.cos,y=Math.sin,b=Math.abs,_=Math.PI,x=2*_,w="undefined"!=typeof Float32Array,O=[];function S(t){return Math.round(t/_*1e8)/1e8%2*_}function C(t,e){var n=S(t[0]);n<0&&(n+=x);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=x?i=n+x:e&&n-i>=x?i=n-x:!e&&n>i?i=n+(x-S(n-i)):e&&n0&&(this._ux=b(n/o.devicePixelRatio/t)||0,this._uy=b(n/o.devicePixelRatio/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=b(t-this._xi),r=b(e-this._yi),i=n>this._ux||r>this._uy;if(this.addData(l.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){return this._drawPendingPt(),this.addData(l.C,t,e,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,r,i,o),this._xi=i,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,r){return this._drawPendingPt(),this.addData(l.Q,t,e,n,r),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,r),this._xi=n,this._yi=r,this},t.prototype.arc=function(t,e,n,r,i,o){this._drawPendingPt(),O[0]=r,O[1]=i,C(O,o),r=O[0];var a=(i=O[1])-r;return this.addData(l.A,t,e,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,r,i,o),this._xi=m(i)*n+t,this._yi=y(i)*n+e,this},t.prototype.arcTo=function(t,e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,r,i),this},t.prototype.rect=function(t,e,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,r),this.addData(l.R,t,e,n,r),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!w||(this.data=new Float32Array(e));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)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){h[0]=h[1]=f[0]=f[1]=Number.MAX_VALUE,d[0]=d[1]=p[0]=p[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,o=0,s=0,u=0;for(t=0;tn||b(S)>r||f===e-1)&&(w=Math.sqrt(N*N+S*S),i=O,o=T);break;case l.C:var C=t[f++],E=t[f++],T=(O=t[f++],t[f++]),M=t[f++],A=t[f++];w=Object(s.cubicLength)(i,o,C,E,O,T,M,A,10),i=M,o=A;break;case l.Q:C=t[f++],E=t[f++],O=t[f++],T=t[f++];w=Object(s.quadraticLength)(i,o,C,E,O,T,10),i=O,o=T;break;case l.A:var I=t[f++],j=t[f++],k=t[f++],P=t[f++],L=t[f++],D=t[f++],R=D+L;f+=1;t[f++];_&&(a=m(L)*k+I,u=y(L)*P+j),w=v(k,P)*g(x,Math.abs(D)),i=m(R)*k+I,o=y(R)*P+j;break;case l.R:a=i=t[f++],u=o=t[f++],w=2*t[f++]+2*t[f++];break;case l.Z:var N=a-i;S=u-o;w=Math.sqrt(N*N+S*S),i=a,o=u}w>=0&&(c[d++]=w,h+=w)}return this._pathLen=h,h},t.prototype.rebuildPath=function(t,e){var n,r,i,o,a,h,d,f,p,_,x=this.data,w=this._ux,O=this._uy,S=this._len,C=e<1,E=0,T=0,M=0;if(!C||(this._pathSegLen||this._calculateLength(),d=this._pathSegLen,f=e*this._pathLen))t:for(var A=0;A0&&(t.lineTo(p,_),M=0),I){case l.M:n=i=x[A++],r=o=x[A++],t.moveTo(i,o);break;case l.L:a=x[A++],h=x[A++];var k=b(a-i),P=b(h-o);if(k>w||P>O){if(C){if(E+(rt=d[T++])>f){var L=(f-E)/rt;t.lineTo(i*(1-L)+a*L,o*(1-L)+h*L);break t}E+=rt}t.lineTo(a,h),i=a,o=h,M=0}else{var D=k*k+P*P;D>M&&(p=a,_=h,M=D)}break;case l.C:var R=x[A++],N=x[A++],F=x[A++],B=x[A++],z=x[A++],V=x[A++];if(C){if(E+(rt=d[T++])>f){L=(f-E)/rt;Object(s.cubicSubdivide)(i,R,F,z,L,u),Object(s.cubicSubdivide)(o,N,B,V,L,c),t.bezierCurveTo(u[1],c[1],u[2],c[2],u[3],c[3]);break t}E+=rt}t.bezierCurveTo(R,N,F,B,z,V),i=z,o=V;break;case l.Q:R=x[A++],N=x[A++],F=x[A++],B=x[A++];if(C){if(E+(rt=d[T++])>f){L=(f-E)/rt;Object(s.quadraticSubdivide)(i,R,F,L,u),Object(s.quadraticSubdivide)(o,N,B,L,c),t.quadraticCurveTo(u[1],c[1],u[2],c[2]);break t}E+=rt}t.quadraticCurveTo(R,N,F,B),i=F,o=B;break;case l.A:var U=x[A++],G=x[A++],H=x[A++],W=x[A++],Y=x[A++],$=x[A++],X=x[A++],q=!x[A++],Z=H>W?H:W,K=b(H-W)>.001,J=Y+$,Q=!1;if(C)E+(rt=d[T++])>f&&(J=Y+$*(f-E)/rt,Q=!0),E+=rt;if(K&&t.ellipse?t.ellipse(U,G,H,W,X,Y,J,q):t.arc(U,G,Z,Y,J,q),Q)break t;j&&(n=m(Y)*H+U,r=y(Y)*W+G),i=m(J)*H+U,o=y(J)*W+G;break;case l.R:n=i=x[A],r=o=x[A+1],a=x[A++],h=x[A++];var tt=x[A++],et=x[A++];if(C){if(E+(rt=d[T++])>f){var nt=f-E;t.moveTo(a,h),t.lineTo(a+g(nt,tt),h),(nt-=tt)>0&&t.lineTo(a+tt,h+g(nt,et)),(nt-=et)>0&&t.lineTo(a+v(tt-nt,0),h+et),(nt-=tt)>0&&t.lineTo(a,h+v(et-nt,0));break t}E+=rt}t.rect(a,h,tt,et);break;case l.Z:if(C){var rt;if(E+(rt=d[T++])>f){L=(f-E)/rt;t.lineTo(i*(1-L)+n*L,o*(1-L)+r*L);break t}E+=rt}t.closePath(),i=n,o=r}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=l,t.initDefaultProps=((e=t.prototype)._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,void(e._version=0)),t}();e.default=E},function(t,e,n){"use strict";n.r(e),n.d(e,"BE_ORDINAL",(function(){return a})),n.d(e,"resetSourceDefaulter",(function(){return l})),n.d(e,"makeSeriesEncodeForAxisCoordSys",(function(){return u})),n.d(e,"makeSeriesEncodeForNameBased",(function(){return c})),n.d(e,"querySeriesUpstreamDatasetModel",(function(){return h})),n.d(e,"queryDatasetUpstreamDatasetModels",(function(){return d})),n.d(e,"guessOrdinal",(function(){return f}));var r=n(10),i=n(0),o=n(29),a={Must:1,Might:2,Not:3},s=Object(r.makeInner)();function l(t){s(t).datasetMap=Object(i.createHashMap)()}function u(t,e,n){var r={},o=h(e);if(!o||!t)return r;var a,l,u=[],c=[],d=e.ecModel,f=s(d).datasetMap,p=o.uid+"_"+n.seriesLayoutBy;t=t.slice(),Object(i.each)(t,(function(e,n){var o=Object(i.isObject)(e)?e:t[n]={name:e};"ordinal"===o.type&&null==a&&(a=n,l=m(o)),r[o.name]=[]}));var g=f.get(p)||f.set(p,{categoryWayDim:l,valueWayDim:0});function v(t,e,n){for(var r=0;r=0){var i=n.getData().tree.root,o=t.targetNode;if(r.isString(o)&&(o=i.getNodeById(o)),o&&i.contains(o))return{node:o};var a=t.targetNodeId;if(null!=a&&(o=i.getNodeById(a)))return{node:o}}}function o(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function a(t,e){var n=o(t);return r.indexOf(n,e)>=0}function s(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_ANIMATE_CFG",(function(){return s})),n.d(e,"getDefaultAnimateCfg",(function(){return c})),n.d(e,"doAnimate",(function(){return h})),n.d(e,"doGroupAppearAnimate",(function(){return d}));var r=n(2),i=n(1),o=n(7),a=n(436),s={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},l={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},u={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function c(t,e,n){var r=l[t];return r&&(Object(i.isFunction)(r)&&(r=r(e)),r=Object(i.deepMix)({},s,r),n)?r[n]:r}function h(t,e,n){var r=Object(i.get)(t.get("origin"),"data",o.FIELD_ORIGIN),s=e.animation,l=function(t,e){return{delay:Object(i.isFunction)(t.delay)?t.delay(e):t.delay,easing:Object(i.isFunction)(t.easing)?t.easing(e):t.easing,duration:Object(i.isFunction)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var u=Object(a.getAnimation)(s);u&&u(t,l,n)}else t.animate(n.toAttrs,l)}function d(t,e,n,o,l){if(u[n]){var c=u[n](o),h=Object(a.getAnimation)(Object(i.get)(c,"animation",""));if(h){var d=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},s.appear),c),e);t.stopAnimate(),h(t,d,{coordinate:o,minYPoint:l,toAttrs:null})}}}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"InteractionEvent",(function(){return r})),function(t){t.Hover="hover",t.Click="click",t.Select="select",t.Active="active",t.Drag="drag"}(r||(r={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"LineShape",(function(){return s}));var r=n(59),i=n(36),o=n(363),a={},s=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},l=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new s},e.prototype.buildPath=function(t,e){var n,r,i,s;if(this.subPixelOptimize){var l=Object(o.subPixelOptimizeLine)(a,e,this.style);n=l.x1,r=l.y1,i=l.x2,s=l.y2}else n=e.x1,r=e.y1,i=e.x2,s=e.y2;var u=e.percent;0!==u&&(t.moveTo(n,r),u<1&&(i=n*(1-u)+i*u,s=r*(1-u)+s*u),t.lineTo(i,s))},e.prototype.pointAt=function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]},e}(i.default);l.prototype.type="line",e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"parentNode",(function(){return s})),n.d(e,"style",(function(){return l})),n.d(e,"clientRegion",(function(){return u})),n.d(e,"offsetRegion",(function(){return c})),n.d(e,"scrollRegion",(function(){return h})),n.d(e,"classList",(function(){return d}));var r=n(410),i=r.screen.availWidth,o=r.screen.availHeight,a={style:[]};function s(t,e){var n,r;"parentNode"in t||(n=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentNode",{enumerable:!0,get:n}));"parentElement"in t||(r=0===e?function(){return null}:1===e?function(){return a}:function(){return null},Object.defineProperty(t,"parentElement",{enumerable:!0,get:r}))}function l(t){t.style=t.style||{},Object.assign(t.style,{top:"0px",left:"0px",width:i+"px",height:o+"px",margin:"0px",padding:"0px"})}function u(t){"clientLeft"in t||(t.clientLeft=0,t.clientTop=0),"clientWidth"in t||(t.clientWidth=i,t.clientHeight=o),"getBoundingClientRect"in t||(t.getBoundingClientRect=function(){return{x:0,y:0,top:0,left:0,width:this.clientWidth,height:this.clientHeight,right:this.clientWidth,bottom:this.clientHeight}})}function c(t){"offsetLeft"in t||(t.offsetLeft=0,t.offsetTop=0),"offsetWidth"in t||(t.offsetWidth=i,t.offsetHeight=o)}function h(t){"scrollLeft"in t||(t.scrollLeft=0,t.scrollTop=0),"scrollWidth"in t||(t.scrollWidth=i,t.scrollHeight=o)}function d(t){var e=function(){return!0};t.classList=[],t.classList.add=e,t.classList.remove=e,t.classList.contains=e,t.classList.toggle=e}},function(t,e,n){"use strict";function r(t){return document.createTextNode(t)}function i(t){return document.createComment(t)}function o(t,e,n){t.insertBefore(e,n)}function a(t,e){t.removeChild(e)}function s(t,e){t.appendChild(e)}function l(t){return t.parentNode}function u(t){return t.nextSibling}function c(t){return t.tagName}function h(t,e){t.textContent=e}function d(t){return t.textContent}function f(t){return 1===t.nodeType}function p(t){return 3===t.nodeType}function g(t){return 8===t.nodeType}n.r(e),n.d(e,"createTextNode",(function(){return r})),n.d(e,"createComment",(function(){return i})),n.d(e,"insertBefore",(function(){return o})),n.d(e,"removeChild",(function(){return a})),n.d(e,"appendChild",(function(){return s})),n.d(e,"parentNode",(function(){return l})),n.d(e,"nextSibling",(function(){return u})),n.d(e,"tagName",(function(){return c})),n.d(e,"setTextContent",(function(){return h})),n.d(e,"getTextContent",(function(){return d})),n.d(e,"isElement",(function(){return f})),n.d(e,"isText",(function(){return p})),n.d(e,"isComment",(function(){return g}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return I}));var r,i,o,a,s,l=n(45),u=n.n(l),c=n(11),h=n.n(c),d=n(12),f=n.n(d),p=n(3),g=n.n(p),v=n(42),m=n.n(v),y=(n(182),n(824)),b=n.n(y),_=n(253),x=n.n(_),w=n(1732),O=n.n(w),S=n(21),C=(n(86),n(85)),E=n(28),T=n(204);function M(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function A(t){for(var e=1;e=n&&t<=r},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Object(i.getPixelPrecision)(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count()),Object(i.linearMap)(t,a,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&l(n=n.slice(),r.count());var o=Object(i.linearMap)(t,n,a,e);return this.scale.scale(o)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=Object(o.createAxisTicks)(this,e).ticks,a=Object(r.map)(n,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,n,o){var a=e.length;if(!t.onBand||n||!a)return;var s,l,u=t.getExtent();if(1===a)e[0].coord=u[0],s=e[1]={coord:u[0]};else{var c=e[a-1].tickValue-e[0].tickValue,h=(e[a-1].coord-e[0].coord)/c;Object(r.each)(e,(function(t){t.coord-=h/2}));var d=t.scale.getExtent();l=1+d[1]-e[a-1].tickValue,s={coord:e[a-1].coord+h*l},e.push(s)}var f=u[0]>u[1];p(e[0].coord,u[0])&&(o?e[0].coord=u[0]:e.shift());o&&p(u[0],e[0].coord)&&e.unshift({coord:u[0]});p(u[1],s.coord)&&(o?s.coord=u[1]:e.pop());o&&p(s.coord,u[1])&&e.push({coord:u[1]});function p(t,e){return t=Object(i.round)(t),e=Object(i.round)(e),f?t>e:t0&&t<100||(t=5);var e=this.scale.getMinorTicks(t);return Object(r.map)(e,(function(t){return Object(r.map)(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return Object(o.createAxisLabels)(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(t[1]-t[0]);return Math.abs(r)/n},t.prototype.calculateCategoryInterval=function(){return Object(o.calculateCategoryInterval)(this)},t}();function l(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"parseDataValue",(function(){return a})),n.d(e,"getRawValueParser",(function(){return l})),n.d(e,"SortOrderComparator",(function(){return h})),n.d(e,"createFilterComparator",(function(){return f}));var r=n(6),i=n(0),o=n(37);function a(t,e){var n=e&&e.type;return"ordinal"===n?t:("time"!==n||Object(i.isNumber)(t)||null==t||"-"===t||(t=+Object(r.parseDate)(t)),null==t||""===t?NaN:+t)}var s=Object(i.createHashMap)({number:function(t){return parseFloat(t)},time:function(t){return+Object(r.parseDate)(t)},trim:function(t){return Object(i.isString)(t)?Object(i.trim)(t):t}});function l(t){return s.get(t)}var u={lt:function(t,e){return te},gte:function(t,e){return t>=e}},c=function(){function t(t,e){if(!Object(i.isNumber)(e)){0,Object(o.throwError)("")}this._opFn=u[t],this._rvalFloat=Object(r.numericToNumber)(e)}return t.prototype.evaluate=function(t){return Object(i.isNumber)(t)?this._opFn(t,this._rvalFloat):this._opFn(Object(r.numericToNumber)(t),this._rvalFloat)},t}(),h=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=Object(i.isNumber)(t)?t:Object(r.numericToNumber)(t),o=Object(i.isNumber)(e)?e:Object(r.numericToNumber)(e),a=isNaN(n),s=isNaN(o);if(a&&(n=this._incomparable),s&&(o=this._incomparable),a&&s){var l=Object(i.isString)(t),u=Object(i.isString)(e);l&&(n=u?t:0),u&&(o=l?e:0)}return no?-this._resultLT:0},t}(),d=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Object(r.numericToNumber)(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Object(r.numericToNumber)(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function f(t,e){return"eq"===t||"ne"===t?new d("eq"===t,e):Object(i.hasOwn)(u,t)?new c(t,e):null}},function(t,e,n){"use strict";n.r(e),n.d(e,"debugMode",(function(){return i})),n.d(e,"devicePixelRatio",(function(){return o})),n.d(e,"DARK_MODE_THRESHOLD",(function(){return a})),n.d(e,"DARK_LABEL_COLOR",(function(){return s})),n.d(e,"LIGHT_LABEL_COLOR",(function(){return l})),n.d(e,"LIGHTER_LABEL_COLOR",(function(){return u}));var r=1;n(49).default.hasGlobalWindow&&(r=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var i=0,o=r,a=.4,s="#333",l="#ccc",u="#eee"},function(t,e,n){"use strict";function r(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"buildElStyle",(function(){return h})),n.d(e,"buildLabelElOption",(function(){return d})),n.d(e,"getValueLabel",(function(){return f})),n.d(e,"getTransformedPosition",(function(){return p})),n.d(e,"buildCartesianSingleLabelElOption",(function(){return g})),n.d(e,"makeLineShape",(function(){return v})),n.d(e,"makeRectShape",(function(){return m})),n.d(e,"makeSectorShape",(function(){return y}));var r=n(0),i=n(14),o=n(55),a=n(48),s=n(41),l=n(77),u=n(170),c=n(27);function h(t){var e,n=t.get("type"),r=t.getModel(n+"Style");return"line"===n?(e=r.getLineStyle()).fill=null:"shadow"===n&&((e=r.getAreaStyle()).stroke=null),e}function d(t,e,n,r,i){var s=f(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=a.normalizeCssArray(l.get("padding")||0),h=l.getFont(),d=o.getBoundingRect(s,h),p=i.position,g=d.width+u[1]+u[3],v=d.height+u[0]+u[2],m=i.align;"right"===m&&(p[0]-=g),"center"===m&&(p[0]-=g/2);var y=i.verticalAlign;"bottom"===y&&(p[1]-=v),"middle"===y&&(p[1]-=v/2),function(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(p,g,v,r);var b=l.get("backgroundColor");b&&"auto"!==b||(b=e.get(["axisLine","lineStyle","color"])),t.label={x:p[0],y:p[1],style:Object(c.createTextStyle)(l,{text:s,font:h,fill:l.getTextColor(),padding:u,backgroundColor:b}),z2:10}}function f(t,e,n,i,o){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:o.precision}),s=o.formatter;if(s){var u={value:l.getAxisRawValue(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};r.each(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),r=t.dataIndexInside,i=e&&e.getDataParams(r);i&&u.seriesData.push(i)})),r.isString(s)?a=s.replace("{value}",a):r.isFunction(s)&&(a=s(u))}return a}function p(t,e,n){var r=s.create();return s.rotate(r,r,n.rotation),s.translate(r,r,n.position),i.applyTransform([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function g(t,e,n,r,i,o){var a=u.default.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),d(e,r,i,o,{position:p(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function v(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function m(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function y(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}},function(t,e,n){"use strict";n.r(e);var r=n(131);e.default=function(t){return Object(r.default)(t,"String")}},function(t,e,n){"use strict";n.r(e),n.d(e,"inferScaleType",(function(){return u})),n.d(e,"createScaleByField",(function(){return c})),n.d(e,"syncScale",(function(){return h})),n.d(e,"getName",(function(){return d})),n.d(e,"getDefaultCategoryScaleRange",(function(){return f})),n.d(e,"getMaxScale",(function(){return p}));var r=n(2),i=n(1),o=n(7),a=n(89),s=n(82),l=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function u(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&o.GROUP_ATTRS.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function c(t,e,n){var o=e||[];if(Object(i.isNumber)(t)||Object(i.isNil)(Object(i.firstValue)(o,t))&&Object(i.isEmpty)(n))return new(Object(a.getScale)("identity"))({field:t.toString(),values:[t]});var s=Object(i.valuesOfKey)(o,t),u=Object(i.get)(n,"type",function(t){var e="linear";return l.test(t)?e="timeCat":Object(i.isString)(t)&&(e="cat"),e}(s[0]));return new(Object(a.getScale)(u))(Object(r.__assign)({field:t,values:s},n))}function h(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}}function d(t){return t.alias||t.field}function f(t,e,n){var r,o=t.values.length;if(1===o)r=[.5,1];else{var a=0;r=Object(s.isFullCircle)(e)?e.isTransposed?[(a=1/o*Object(i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-a/2]:[0,1-1/o]:[a=1/o/2,1-a]}return r}function p(t){var e=t.values.filter((function(t){return!Object(i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),[Object(i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";n.r(e),n.d(e,"DATA_ZOOM_AXIS_DIMENSIONS",(function(){return i})),n.d(e,"isCoordSupported",(function(){return a})),n.d(e,"getAxisMainType",(function(){return s})),n.d(e,"getAxisIndexPropName",(function(){return l})),n.d(e,"getAxisIdPropName",(function(){return u})),n.d(e,"findEffectedDataZooms",(function(){return c})),n.d(e,"collectReferCoordSysModelInfo",(function(){return h}));var r=n(0),i=["x","y","radius","angle","single"],o=["cartesian2d","polar","singleAxis"];function a(t){var e=t.get("coordinateSystem");return Object(r.indexOf)(o,e)>=0}function s(t){return t+"Axis"}function l(t){return t+"AxisIndex"}function u(t){return t+"AxisId"}function c(t,e){var n,i=Object(r.createHashMap)(),o=[],a=Object(r.createHashMap)();t.eachComponent({mainType:"dataZoom",query:e},(function(t){a.get(t.uid)||l(t)}));do{n=!1,t.eachComponent("dataZoom",s)}while(n);function s(t){!a.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(l(t),n=!0)}function l(t){a.set(t.uid,!0),o.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return o}function h(t){var e=t.ecModel,n={infoList:[],infoMap:Object(r.createHashMap)()};return t.eachTargetAxis((function(t,r){var i=e.getComponent(s(t),r);if(i){var o=i.getCoordSysModel();if(o){var a=o.uid,l=n.infoMap.get(a);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(a,l)),l.axisModels.push(i)}}})),n}},function(t,e,n){var r=n(1928),i=n(1929),o=n(1156),a=n(1930);t.exports=function(t){return r(t)||i(t)||o(t)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return c})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return f})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return _})),n.d(e,"squaredDistance",(function(){return x})),n.d(e,"length",(function(){return w})),n.d(e,"squaredLength",(function(){return O})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return M})),n.d(e,"lerp",(function(){return A})),n.d(e,"random",(function(){return I})),n.d(e,"transformMat4",(function(){return j})),n.d(e,"transformQuat",(function(){return k})),n.d(e,"zero",(function(){return P})),n.d(e,"str",(function(){return L})),n.d(e,"exactEquals",(function(){return D})),n.d(e,"equals",(function(){return R})),n.d(e,"sub",(function(){return F})),n.d(e,"mul",(function(){return B})),n.d(e,"div",(function(){return z})),n.d(e,"dist",(function(){return V})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"len",(function(){return G})),n.d(e,"sqrLen",(function(){return H})),n.d(e,"forEach",(function(){return W}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}function a(t,e,n,i){var o=new r.ARRAY_TYPE(4);return o[0]=t,o[1]=e,o[2]=n,o[3]=i,o}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}function l(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t}function _(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return Math.hypot(n,r,i,o)}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],o=e[3]-t[3];return n*n+r*r+i*i+o*o}function w(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function O(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o;return a>0&&(a=1/Math.sqrt(a)),t[0]=n*a,t[1]=r*a,t[2]=i*a,t[3]=o*a,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function M(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],o=n[0]*r[2]-n[2]*r[0],a=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],h=e[1],d=e[2],f=e[3];return t[0]=h*u-d*l+f*s,t[1]=-c*u+d*a-f*o,t[2]=c*l-h*a+f*i,t[3]=-c*s+h*o-d*i,t}function A(t,e,n,r){var i=e[0],o=e[1],a=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t[3]=s+r*(n[3]-s),t}function I(t,e){var n,i,o,a,s,l;e=e||1;do{s=(n=2*r.RANDOM()-1)*n+(i=2*r.RANDOM()-1)*i}while(s>=1);do{l=(o=2*r.RANDOM()-1)*o+(a=2*r.RANDOM()-1)*a}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*i,t[2]=e*o*u,t[3]=e*a*u,t}function j(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*o-l*i,h=u*i+l*r-a*o,d=u*o+a*i-s*r,f=-a*r-s*i-l*o;return t[0]=c*u+f*-a+h*-l-d*-s,t[1]=h*u+f*-s+d*-a-c*-l,t[2]=d*u+f*-l+c*-s-h*-a,t[3]=e[3],t}function P(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}function L(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}function D(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]}function R(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(o-u)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(u))&&Math.abs(a-c)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(c))}var N,F=c,B=h,z=d,V=_,U=x,G=w,H=O,W=(N=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=4),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(a.isNil)(e)||Object(a.isObject)(e))Object(a.isObject)(e)&&Object(a.isEqual)(Object.keys(e),["values"])?Object(a.set)(this.attributeOption,t,{fields:e.values}):Object(a.set)(this.attributeOption,t,e);else{var r={};Object(a.isNumber)(e)?r.values=[e]:r.fields=Object(v.parseFields)(e),n&&(Object(a.isFunction)(n)?r.callback=n:r.values=n),Object(a.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,i=this.theme,s=this.shapeType;this.groupScales=[];var l={},c=function(c){if(n.hasOwnProperty(c)){var h=n[c];if(!h)return{value:void 0};var d=Object(r.__assign)({},h),f=d.callback,p=d.values,g=d.fields,v=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!l[e]&&u.GROUP_ATTRS.includes(c)&&("cat"===Object(y.inferScaleType)(n,Object(a.get)(t.scaleDefs,e),c,t.type)&&(t.groupScales.push(n),l[e]=!0));return n}));d.scales=v,"position"!==c&&1===v.length&&"identity"===v[0].type?d.values=v[0].values:f||p||("size"===c?d.values=i.sizes:"shape"===c?d.values=i.shapes[s]||[]:"color"===c&&(v.length?d.values=v[0].values.length<=10?i.colors10:i.colors20:d.values=i.colors10));var m=Object(o.getAttribute)(c);e[c]=new m(d)}};for(var h in n){var d=c(h);if("object"==typeof d)return d.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),o=this.groupData(t),a=[],s=0,l=o.length;so&&(o=c)}var h=this.scaleDefs,d={};it.max&&!Object(a.get)(h,[r,"max"])&&(d.max=o),t.change(d)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n1)for(var d=0;d
',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},l={appendPadding:2,tooltip:Object(r.__assign)({},s),animation:{}}},function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"UpdateTileStrategy",(function(){return r})),n.d(e,"LoadTileDataStatus",(function(){return i})),function(t){t.Overlap="overlap",t.Replace="replace"}(r||(r={})),function(t){t.Loading="Loading",t.Loaded="Loaded",t.Failure="Failure",t.Cancelled="Cancelled"}(i||(i={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"intersectionArea",(function(){return r})),n.d(e,"containedInCircles",(function(){return i})),n.d(e,"circleArea",(function(){return o})),n.d(e,"distance",(function(){return a})),n.d(e,"circleOverlap",(function(){return s})),n.d(e,"circleCircleIntersection",(function(){return l})),n.d(e,"getCenter",(function(){return u}));function r(t,e){var n,r=function(t){for(var e=[],n=0;n1){var f=u(s);for(n=0;n-1){var _=t[v.parentIndex[b]],x=Math.atan2(v.x-_.x,v.y-_.y),w=Math.atan2(g.x-_.x,g.y-_.y),O=w-x;O<0&&(O+=2*Math.PI);var S=w-O/2,C=a(m,{x:_.x+_.radius*Math.sin(S),y:_.y+_.radius*Math.cos(S)});C>2*_.radius&&(C=2*_.radius),(null===y||y.width>C)&&(y={circle:_,width:C,p1:v,p2:g})}null!==y&&(d.push(y),c+=o(y.circle.radius,y.width),g=v)}}else{var E=t[0];for(n=1;nMath.abs(E.radius-t[n].radius)){T=!0;break}T?c=h=0:(c=E.radius*E.radius*Math.PI,d.push({circle:E,p1:{x:E.x,y:E.y+E.radius},p2:{x:E.x-1e-10,y:E.y+E.radius},width:2*E.radius}))}return h/=2,e&&(e.area=c+h,e.arcArea=c,e.polygonArea=h,e.arcs=d,e.innerPoints=s,e.intersectionPoints=r),c+h}function i(t,e){for(var n=0;ne[n].radius+1e-10)return!1;return!0}function o(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function a(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function s(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return o(t,t-(n*n-e*e+t*t)/(2*n))+o(e,r)}function l(t,e){var n=a(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),s=Math.sqrt(r*r-o*o),l=t.x+o*(e.x-t.x)/n,u=t.y+o*(e.y-t.y)/n,c=-(e.y-t.y)*(s/n),h=-(e.x-t.x)*(s/n);return[{x:l+c,y:u-h},{x:l-c,y:u+h}]}function u(t){for(var e={x:0,y:0},n=0;n1){var c=l.shift();1===l.length&&(n[s]=l[0]),this._update&&this._update(c,a)}else 1===u?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(e,i,a,"_newKeyGetter");for(var s=0;s1&&1===d)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(1===h&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(1===h&&1===d)this._update&&this._update(c,u),i[l]=null;else if(h>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(h>1)for(var f=0;f1)for(var s=0;s0?"top":"bottom",r="center"):Object(h.isRadianAroundZero)(o-m)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),b={axisLine:function(t,e,n,i){var a=e.get(["axisLine","show"]);if("auto"===a&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),a){var s=e.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 h=Object(r.extend)({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new o.default({subPixelOptimize:!0,shape:{x1:u[0],y1:u[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});f.anid="line",n.add(f);var g=e.get(["axisLine","symbol"]);if(null!=g){var v=e.get(["axisLine","symbolSize"]);Object(r.isString)(g)&&(g=[g,g]),(Object(r.isString)(v)||Object(r.isNumber)(v))&&(v=[v,v]);var m=Object(d.normalizeSymbolOffset)(e.get(["axisLine","symbolOffset"])||0,v),y=v[0],b=v[1];Object(r.each)([{rotate:t.rotation+Math.PI/2,offset:m[0],r:0},{rotate:t.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((u[0]-c[0])*(u[0]-c[0])+(u[1]-c[1])*(u[1]-c[1]))}],(function(e,r){if("none"!==g[r]&&null!=g[r]){var i=Object(d.createSymbol)(g[r],-y/2,-b/2,y,b,h.stroke,!0),o=e.r+e.offset;i.attr({rotation:e.rotate,x:u[0]+o*Math.cos(t.rotation),y:u[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(i)}}))}}},axisTickLabel:function(t,e,n,i){var o=function(t,e,n,i){var o=n.axis,a=n.getModel("axisTick"),s=a.get("show");"auto"===s&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick"));if(!s||o.scale.isBlank())return;for(var l=a.getModel("lineStyle"),u=i.tickDirection*a.get("length"),c=O(o.getTicksCoords(),e.transform,u,Object(r.defaults)(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hb[1]?-1:1,x=["start"===f?b[0]-_*v:"end"===f?b[1]+_*v:(b[0]+b[1])/2,w(f)?t.labelOffset+p*v:0],O=e.get("nameRotate");null!=O&&(O=O*m/180),w(f)?c=y.innerTextLayout(t.rotation,null!=O?O:t.rotation,p):(c=function(t,e,n,r){var i,o,a=Object(h.remRadian)(n-t),s=r[0]>r[1],l="start"===e&&!s||"start"!==e&&s;Object(h.isRadianAroundZero)(a-m/2)?(o=l?"bottom":"top",i="center"):Object(h.isRadianAroundZero)(a-1.5*m)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*m&&a>m/2?l?"left":"right":l?"right":"left");return{rotation:a,textAlign:i,textVerticalAlign:o}}(t.rotation,f,O||0,b),null!=(d=t.axisNameAvailableWidth)&&(d=Math.abs(d/Math.sin(c.rotation)),!isFinite(d)&&(d=null)));var S=g.getFont(),C=e.get("nameTruncate",!0)||{},E=C.ellipsis,T=Object(r.retrieve)(t.nameTruncateMaxWidth,C.maxWidth,d),M=new a.default({x:x[0],y:x[1],rotation:c.rotation,silent:y.isLabelSilent(e),style:Object(u.createTextStyle)(g,{text:o,font:S,overflow:"truncate",width:T,ellipsis:E,fill:g.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:g.get("align")||c.textAlign,verticalAlign:g.get("verticalAlign")||c.textVerticalAlign}),z2:1});if(s.setTooltipConfig({el:M,componentModel:e,itemName:o}),M.__fullText=o,M.anid="name",e.get("triggerEvent")){var A=y.makeAxisEventDataBase(e);A.targetType="axisName",A.name=o,Object(l.getECData)(M).eventData=A}i.add(M),M.updateTransform(),n.add(M),M.decomposeTransform()}}};function _(t){t&&(t.ignore=!0)}function x(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(n&&r){var i=f.identity([]);return f.rotate(i,i,-t.rotation),n.applyTransform(f.mul([],i,t.getLocalTransform())),r.applyTransform(f.mul([],i,e.getLocalTransform())),n.intersect(r)}}function w(t){return"middle"===t||"center"===t}function O(t,e,n,r,i){for(var a=[],s=[],l=[],u=0;uu&&(u=f)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=s[c]?1:0,f=h>Math.PI?1:0,p=n.convert(l),g=Object(a.getDistanceToCenter)(n,p);if(g>=.5)if(h===2*Math.PI){var v={x:(l.x+s.x)/2,y:(l.y+s.y)/2},m=n.convert(v);u.push(["A",g,g,0,f,d,m.x,m.y]),u.push(["A",g,g,0,f,d,p.x,p.y])}else u.push(["A",g,g,0,f,d,p.x,p.y]);return u}(n,r,t)):u.push(s(o,t));break;case"a":u.push(l(o,t));break;case"z":default:u.push(o)}})),function(t){Object(o.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(u),u}},function(t,e,n){"use strict";n.r(e),n.d(e,"findLabelTextShape",(function(){return o})),n.d(e,"getLabelBackgroundInfo",(function(){return a})),n.d(e,"getOverlapArea",(function(){return s})),n.d(e,"checkShapeOverlap",(function(){return l}));var r=n(1),i=n(186);function o(t){return t.find((function(t){return"text"===t.get("type")}))}function a(t,e,n){void 0===n&&(n=[0,0,0,0]);var o=t&&t.getChildren()[0];if(o){var a=o.clone();(null==e?void 0:e.rotate)&&Object(i.rotate)(a,-e.rotate);var s=a.getCanvasBBox(),l=s.x,u=s.y,c=s.width,h=s.height;a.destroy();var d=n;return Object(r.isNil)(d)?d=[2,2,2,2]:Object(r.isNumber)(d)&&(d=new Array(4).fill(d)),{x:l-d[3],y:u-d[0],width:c+d[1]+d[3],height:h+d[0]+d[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function s(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}function l(t,e){var n=t.getBBox();return Object(r.some)(e,(function(t){var e=t.getBBox();return s(n,e,2)>0}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"SectorShape",(function(){return a}));var r=n(59),i=n(36),o=n(1274),a=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(i.default);s.prototype.type="sector",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"PolylineShape",(function(){return a}));var r=n(59),i=n(36),o=n(657),a=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},s=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new a},e.prototype.buildPath=function(t,e){o.buildPath(t,e,!1)},e}(i.default);s.prototype.type="polyline",e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getShortenOffset",(function(){return h})),n.d(e,"addStartArrow",(function(){return d})),n.d(e,"addEndArrow",(function(){return f}));var r=n(2),i=n(270),o=Math.sin,a=Math.cos,s=Math.atan2,l=Math.PI;function u(t,e,n,r,u,c,h){var d=e.stroke,f=e.lineWidth,p=s(r-c,n-u),g=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(l/6)+","+10*o(l/6)+" L0,0 L"+10*a(l/6)+",-"+10*o(l/6),stroke:d,lineWidth:f}});g.translate(u,c),g.rotateAtPoint(u,c,p),t.set(h?"startArrowShape":"endArrowShape",g)}function c(t,e,n,l,u,c,h){var d=e.startArrow,f=e.endArrow,p=e.stroke,g=e.lineWidth,v=h?d:f,m=v.d,y=v.fill,b=v.stroke,_=v.lineWidth,x=Object(r.__rest)(v,["d","fill","stroke","lineWidth"]),w=s(l-c,n-u);m&&(u-=a(w)*m,c-=o(w)*m);var O=new i.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(r.__assign)(Object(r.__assign)({},x),{stroke:b||p,lineWidth:_||g,fill:y})});O.translate(u,c),O.rotateAtPoint(u,c,w),t.set(h?"startArrowShape":"endArrowShape",O)}function h(t,e,n,r,i){var l=s(r-e,n-t);return{dx:a(l)*i,dy:o(l)*i}}function d(t,e,n,r,i,o){"object"==typeof e.startArrow?c(t,e,n,r,i,o,!0):e.startArrow?u(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function f(t,e,n,r,i,o){"object"==typeof e.endArrow?c(t,e,n,r,i,o,!1):e.endArrow?u(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";n.r(e),n.d(e,"ID_FIELD",(function(){return r})),n.d(e,"PATH_FIELD",(function(){return i})),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r="id",i="path",o={appendPadding:[10,0,20,0],blendMode:"multiply",tooltip:{showTitle:!1,showMarkers:!1,fields:["id","size"],formatter:function(t){return{name:t.id,value:t.size}}},legend:{position:"top-left"},label:{style:{textAlign:"center",fill:"#fff"}},interactions:[{type:"legend-filter",enable:!1}],state:{active:{style:{stroke:"#000"}},selected:{style:{stroke:"#000",lineWidth:2}},inactive:{style:{fillOpacity:.3,strokeOpacity:.3}}},defaultInteractions:["tooltip","venn-legend-active"]}},function(t,e,n){"use strict";n.r(e),n.d(e,"dataTransform",(function(){return u})),n.d(e,"getAxisInfo",(function(){return c})),n.d(e,"dataFilter",(function(){return h})),n.d(e,"createMarkerDimValueGetter",(function(){return d})),n.d(e,"numCalculate",(function(){return f}));var r=n(6),i=n(133),o=n(0),a=n(150);function s(t,e,n,o,a,s){var l=[],u=Object(i.isDimensionStacked)(e,o)?e.getCalculationInfo("stackResultDimension"):o,c=f(e,u,t),h=e.indicesOfNearest(u,c)[0];l[a]=e.get(n,h),l[s]=e.get(u,h);var d=e.get(o,h),p=r.getPrecision(e.get(o,h));return(p=Math.min(p,20))>=0&&(l[s]=+l[s].toFixed(p)),[l,d]}var l={min:Object(o.curry)(s,"min"),max:Object(o.curry)(s,"max"),average:Object(o.curry)(s,"average"),median:Object(o.curry)(s,"median")};function u(t,e){var n=t.getData(),r=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!Object(o.isArray)(e.coord)&&r){var i=r.dimensions,a=c(e,n,r,t);if((e=Object(o.clone)(e)).type&&l[e.type]&&a.baseAxis&&a.valueAxis){var s=Object(o.indexOf)(i,a.baseAxis.dim),u=Object(o.indexOf)(i,a.valueAxis.dim),h=l[e.type](n,a.baseDataDim,a.valueDataDim,s,u);e.coord=h[0],e.value=h[1]}else{for(var d=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],p=0;p<2;p++)l[d[p]]&&(d[p]=f(n,n.mapDimension(i[p]),d[p]));e.coord=d}}return e}function c(t,e,n,r){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function h(t,e){return!(t&&t.containData&&e.coord&&!function(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}(e))||t.containData(e.coord)}function d(t,e){return t?function(t,n,r,i){var o=i<2?t.coord&&t.coord[i]:t.value;return Object(a.parseDataValue)(o,e[i])}:function(t,n,r,i){return Object(a.parseDataValue)(t.value,e[i])}}function f(t,e,n){if("average"===n){var r=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(r+=t,i++)})),r/i}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}},function(t,e,n){"use strict";n.r(e),n.d(e,"Y_FIELD",(function(){return o})),n.d(e,"TREND_FIELD",(function(){return a})),n.d(e,"TREND_UP",(function(){return s})),n.d(e,"TREND_DOWN",(function(){return l})),n.d(e,"DEFAULT_TOOLTIP_OPTIONS",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r=n(26),i=n(4),o="$$stock-range$$",a="trend",s="up",l="down",u={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var r;if("x"===t){var i=n[0];r=i?i.title:e}else r=e;return{position:"y"===t?"start":"end",content:r,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},c=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{tooltip:u,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"})},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return r})),n.d(e,"Y_FIELD",(function(){return i})),n.d(e,"COLOR_FIELD",(function(){return o})),n.d(e,"NODES_VIEW_ID",(function(){return a})),n.d(e,"EDGES_VIEW_ID",(function(){return s}));var r="x",i="y",o="name",a="nodes",s="edges"},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(1755),i=n(1756),o=n(1757),a=n(1758);function s(t,e){return Object(r.default)(t)||Object(i.default)(t,e)||Object(o.default)(t,e)||Object(a.default)()}},function(t,e){t.exports=function(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);e.default=function(t){return null==t}},function(t,e,n){var r=n(2043);function i(){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},t.exports.__esModule=!0,t.exports.default=t.exports),i.apply(this,arguments)}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";function r(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:0}}function i(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:0}}function o(t,e,n,r){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:0}}n.r(e),n.d(e,"getItemVisualFromData",(function(){return r})),n.d(e,"getVisualFromData",(function(){return i})),n.d(e,"setItemVisualFromData",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return r})),n.d(e,"translate",(function(){return i})),n.d(e,"getRotateMatrix",(function(){return o})),n.d(e,"rotate",(function(){return a})),n.d(e,"getIdentityMatrix",(function(){return s})),n.d(e,"zoom",(function(){return l}));var r=n(25).ext.transform;function i(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function o(t,e){var n=t.attr(),i=n.x,o=n.y;return r(t.getMatrix(),[["t",-i,-o],["r",e],["t",i,o]])}function a(t,e){var n=o(t,e);t.setMatrix(n)}function s(){return[1,0,0,0,1,0,0,0,1]}function l(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,o=(n.minY+n.maxY)/2;t.applyToMatrix([i,o,1]);var a=r(t.getMatrix(),[["t",-i,-o],["s",e,e],["t",i,o]]);t.setMatrix(a)}},function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return l})),n.d(e,"set",(function(){return u})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return d})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return _})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return w})),n.d(e,"squaredLength",(function(){return O})),n.d(e,"negate",(function(){return S})),n.d(e,"inverse",(function(){return C})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return T})),n.d(e,"cross",(function(){return M})),n.d(e,"lerp",(function(){return A})),n.d(e,"hermite",(function(){return I})),n.d(e,"bezier",(function(){return j})),n.d(e,"random",(function(){return k})),n.d(e,"transformMat4",(function(){return P})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return D})),n.d(e,"rotateX",(function(){return R})),n.d(e,"rotateY",(function(){return N})),n.d(e,"rotateZ",(function(){return F})),n.d(e,"angle",(function(){return B})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return U})),n.d(e,"equals",(function(){return G})),n.d(e,"sub",(function(){return W})),n.d(e,"mul",(function(){return Y})),n.d(e,"div",(function(){return $})),n.d(e,"dist",(function(){return X})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return Z})),n.d(e,"sqrLen",(function(){return K})),n.d(e,"forEach",(function(){return J}));var r=n(22);function i(){var t=new r.ARRAY_TYPE(3);return r.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){var i=new r.ARRAY_TYPE(3);return i[0]=t,i[1]=e,i[2]=n,i}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function d(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function _(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function w(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function O(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function S(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function C(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function M(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t}function A(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function I(t,e,n,r,i,o){var a=o*o,s=a*(2*o-3)+1,l=a*(o-2)+o,u=a*(o-1),c=a*(3-2*o);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t}function j(t,e,n,r,i,o){var a=1-o,s=a*a,l=o*o,u=s*a,c=3*o*s,h=3*l*a,d=l*o;return t[0]=e[0]*u+n[0]*c+r[0]*h+i[0]*d,t[1]=e[1]*u+n[1]*c+r[1]*h+i[1]*d,t[2]=e[2]*u+n[2]*c+r[2]*h+i[2]*d,t}function k(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,i=2*r.RANDOM()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function P(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function D(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],s=e[0],l=e[1],u=e[2],c=i*u-o*l,h=o*s-r*u,d=r*l-i*s,f=i*d-o*h,p=o*c-r*d,g=r*h-i*c,v=2*a;return c*=v,h*=v,d*=v,f*=2,p*=2,g*=2,t[0]=s+c+f,t[1]=l+h+p,t[2]=u+d+g,t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function N(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function F(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],s=e[2],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+s*s),u=l&&T(t,e)/l;return Math.acos(Math.min(Math.max(u,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function U(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function G(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],s=e[1],l=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-s)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(s))&&Math.abs(o-l)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(l))}var H,W=h,Y=d,$=f,X=x,q=w,Z=a,K=O,J=(H=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=3),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;ae&&(r=e-(n=n?e/(1+r/n):0)),o+a>e&&(a=e-(o=o?e/(1+a/o):0)),[n||0,r||0,o||0,a||0]}function u(t,e,n){var a=[];if(n.isRect){var s=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},u=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=Object(i.get)(t,["background","style","radius"]);if(c){var h=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,d=n.isTransposed?n.getWidth():n.getHeight(),f=Object(r.__read)(l(c,Math.min(h,d)),4),p=f[0],g=f[1],v=f[2],m=f[3];a.push(["M",s.x,u.y+p]),0!==p&&a.push(["A",p,p,0,0,1,s.x+p,u.y]),a.push(["L",u.x-g,u.y]),0!==g&&a.push(["A",g,g,0,0,1,u.x,u.y+g]),a.push(["L",u.x,s.y-v]),0!==v&&a.push(["A",v,v,0,0,1,u.x-v,s.y]),a.push(["L",s.x+m,s.y]),0!==m&&a.push(["A",m,m,0,0,1,s.x,s.y-m])}else a.push(["M",s.x,s.y]),a.push(["L",u.x,s.y]),a.push(["L",u.x,u.y]),a.push(["L",s.x,u.y]),a.push(["L",s.x,s.y]);a.push(["z"])}if(n.isPolar){var y=n.getCenter(),b=Object(o.getAngle)(t,n),_=b.startAngle,x=b.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};p=Math.sqrt(w(y.x-e[0].x)+w(y.y-e[0].y)),g=Math.sqrt(w(y.x-e[2].x)+w(y.y-e[2].y));a=Object(o.getSectorPath)(y.x,y.y,p,n.startAngle,n.endAngle,g)}else a=Object(o.getSectorPath)(y.x,y.y,n.getRadius(),_,x)}return a}function c(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+u]),a.push(["L",t[1].x,t[1].y-u]),a.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),a.push(["L",t[3].x,t[3].y+u]),a.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",l,l,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",l,l,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=s(t),a}function h(t,e,n){var r=[];return Object(i.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r}function d(t,e){return[e,t]}function f(t,e,n){var i,o,a,s,u,c,h,f=Object(r.__read)(Object(r.__spreadArray)([],Object(r.__read)(t),!1),4),p=f[0],g=f[1],v=f[2],m=f[3],y=Object(r.__read)("number"==typeof n?Array(4).fill(n):n,4),b=y[0],_=y[1],x=y[2],w=y[3];e.isTransposed&&(g=(i=Object(r.__read)(d(g,m),2))[0],m=i[1]),e.isReflect("y")&&(p=(o=Object(r.__read)(d(p,g),2))[0],g=o[1],v=(a=Object(r.__read)(d(v,m),2))[0],m=a[1]),e.isReflect("x")&&(p=(s=Object(r.__read)(d(p,m),2))[0],m=s[1],g=(u=Object(r.__read)(d(g,v),2))[0],v=u[1]);var O=[],S=function(t){return Math.abs(t)};return b=(c=Object(r.__read)(l([b,_,x,w],Math.min(S(m.x-p.x),S(g.y-p.y))).map((function(t){return S(t)})),4))[0],_=c[1],x=c[2],w=c[3],e.isTransposed&&(b=(h=Object(r.__read)([w,b,_,x],4))[0],_=h[1],x=h[2],w=h[3]),p.y=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";n.r(e);var r=n(1227);n.d(e,"MapMouseEvent",(function(){return r.default}));var i=n(1228);n.d(e,"MapTouchEvent",(function(){return i.default}));var o=n(1229);n.d(e,"MapWheelEvent",(function(){return o.default}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(49),a=n(329),s=n(40),l=n(10),u=n(75);function c(t){Object(l.defaultEmphasis)(t,"label",["show"])}var h=Object(l.makeInner)(),d=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._mergeOption(t,n,!1,!0)},e.prototype.isAnimationEnabled=function(){if(o.default.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},e.prototype.mergeOption=function(t,e){this._mergeOption(t,e,!1,!1)},e.prototype._mergeOption=function(t,e,n,r){var o=this.mainType;n||e.eachSeries((function(t){var n=t.get(this.mainType,!0),a=h(t)[o];n&&n.data?(a?a._mergeOption(n,e,!0):(r&&c(n),i.each(n.data,(function(t){t instanceof Array?(c(t[0]),c(t[1])):c(t)})),a=this.createMarkerModelFromSeries(n,this,e),i.extend(a,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),a.__hostSeries=t),h(t)[o]=a):h(t)[o]=null}),this)},e.prototype.formatTooltip=function(t,e,n){var r=this.getData(),i=this.getRawValue(t),o=r.getName(t);return Object(u.createTooltipMarkup)("section",{header:this.name,blocks:[Object(u.createTooltipMarkup)("nameValue",{name:o,value:i,noName:!o,noValue:null==i})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(t){this._data=t},e.getMarkerModelFromSeries=function(t,e){return h(t)[e]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(s.default);i.mixin(d,a.DataFormatMixin.prototype),e.default=d},function(t,e,n){"use strict";n.r(e);var r=n(616);n.d(e,"parsePath",(function(){return r.default}));var i=n(1029);n.d(e,"catmullRom2Bezier",(function(){return i.default}));var o=n(1031);n.d(e,"fillPath",(function(){return o.default}));var a=n(1032);n.d(e,"fillPathByDiff",(function(){return a.default}));var s=n(1033);n.d(e,"formatPath",(function(){return s.default}));var l=n(1034);n.d(e,"pathIntersection",(function(){return l.default}));var u=n(1035);n.d(e,"parsePathArray",(function(){return u.default}));var c=n(619);n.d(e,"parsePathString",(function(){return c.default}));var h=n(523);n.d(e,"path2Curve",(function(){return h.default}));var d=n(618);n.d(e,"path2Absolute",(function(){return d.default}));var f=n(617);n.d(e,"reactPath",(function(){return f.default}));var p=n(430);n.d(e,"getArcParams",(function(){return p.default}));var g=n(1036);n.d(e,"path2Segments",(function(){return g.default}));var v=n(620);n.d(e,"getLineIntersect",(function(){return v.default}));var m=n(1037);n.d(e,"isPolygonsIntersect",(function(){return m.default}));var y=n(524);n.d(e,"isPointInPolygon",(function(){return y.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getPathPoints",(function(){return s})),n.d(e,"getViolinPath",(function(){return l})),n.d(e,"getSmoothViolinPath",(function(){return u}));var r=n(1),i=n(172);function o(t){return!t&&(null==t||isNaN(t))}function a(t){if(Object(r.isArray)(t))return o(t[1].y);var e=t.y;return Object(r.isArray)(e)?o(e[0]):o(e)}function s(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,o=t.length;i0&&n=0&&Math.floor(e)===e&&isFinite(t)}function f(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function p(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function g(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(n,1)}}var b=Object.prototype.hasOwnProperty;function _(t,e){return b.call(t,e)}function x(t){var e=Object.create(null);return function(n){return e[n]||(e[n]=t(n))}}var w=/-(\w)/g,O=x((function(t){return t.replace(w,(function(t,e){return e?e.toUpperCase():""}))})),S=x((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,E=x((function(t){return t.replace(C,"-$1").toLowerCase()}));var T=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n};function M(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function A(t,e){for(var n in e)t[n]=e[n];return t}function I(t){for(var e={},n=0;n0,K=X&&X.indexOf("edge/")>0,J=(X&&X.indexOf("android"),X&&/iphone|ipad|ipod|ios/.test(X)||"ios"===$),Q=(X&&/chrome\/\d+/.test(X),X&&/phantomjs/.test(X),X&&X.match(/firefox\/(\d+)/)),tt={}.watch,et=!1;if(W)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){et=!0}}),window.addEventListener("test-passive",null,nt)}catch(t){}var rt=function(){return void 0===G&&(G=!W&&!Y&&void 0!==t&&(t.process&&"server"===t.process.env.VUE_ENV)),G},it=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ot(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,st="undefined"!=typeof Symbol&&ot(Symbol)&&"undefined"!=typeof Reflect&&ot(Reflect.ownKeys);at="undefined"!=typeof Set&&ot(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var lt=j,ut=0,ct=function(){this.id=ut++,this.subs=[]};ct.prototype.addSub=function(t){this.subs.push(t)},ct.prototype.removeSub=function(t){y(this.subs,t)},ct.prototype.depend=function(){ct.target&&ct.target.addDep(this)},ct.prototype.notify=function(){var t=this.subs.slice();for(var e=0,n=t.length;e-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===E(t)){var l=Vt(String,i.type);(l<0||s0&&(ce((l=t(l,(n||"")+"_"+r))[0])&&ce(c)&&(h[u]=mt(c.text+l[0].text),l.shift()),h.push.apply(h,l)):s(l)?ce(c)?h[u]=mt(c.text+l):""!==l&&h.push(mt(l)):ce(l)&&ce(c)?h[u]=mt(c.text+l.text):(a(e._isVList)&&o(l.tag)&&i(l.key)&&o(n)&&(l.key="__vlist"+n+"_"+r+"__"),h.push(l)));return h}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var n=Object.create(null),r=st?Reflect.ownKeys(t):Object.keys(t),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var l in i={},t)t[l]&&"$"!==l[0]&&(i[l]=ge(e,l,t[l]))}else i={};for(var u in e)u in i||(i[u]=ve(e,u));return t&&Object.isExtensible(t)&&(t._normalized=i),V(i,"$stable",a),V(i,"$key",s),V(i,"$hasNormal",o),i}function ge(t,e,n){var r=function(){var t=arguments.length?n.apply(null,arguments):n({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return n.proxy&&Object.defineProperty(t,e,{get:r,enumerable:!0,configurable:!0}),r}function ve(t,e){return function(){return t[e]}}function me(t,e){var n,r,i,a,s;if(Array.isArray(t)||"string"==typeof t)for(n=new Array(t.length),r=0,i=t.length;rdocument.createEvent("Event").timeStamp&&(ln=function(){return un.now()})}function cn(){var t,e;for(sn=ln(),on=!0,tn.sort((function(t,e){return t.id-e.id})),an=0;anan&&tn[n].id>t.id;)n--;tn.splice(n+1,0,t)}else tn.push(t);rn||(rn=!0,ee(cn))}}(this)},dn.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Ut(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},dn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},dn.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},dn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var fn={enumerable:!0,configurable:!0,get:j,set:j};function pn(t,e,n){fn.get=function(){return this[e][n]},fn.set=function(t){this[e][n]=t},Object.defineProperty(t,n,fn)}function gn(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var n=t.$options.propsData||{},r=t._props={},i=t.$options._propKeys=[];t.$parent&&Ot(!1);var o=function(o){i.push(o);var a=Ft(o,e,n,t);Et(r,o,a),o in t||pn(t,"_props",o)};for(var a in e)o(a);Ot(!0)}(t,e.props),e.methods&&function(t,e){t.$options.props;for(var n in e)t[n]="function"!=typeof e[n]?j:T(e[n],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){dt();try{return t.call(e,e)}catch(t){return Ut(t,e,"data()"),{}}finally{ft()}}(e,t):e||{})||(e={});var n=Object.keys(e),r=t.$options.props,i=(t.$options.methods,n.length);for(;i--;){var o=n[i];0,r&&_(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&pn(t,"_data",o))}var a;Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var n=t._computedWatchers=Object.create(null),r=rt();for(var i in e){var o=e[i],a="function"==typeof o?o:o.get;0,r||(n[i]=new dn(t,a||j,j,vn)),i in t||mn(t,i,o)}}(t,e.computed),e.watch&&e.watch!==tt&&function(t,e){for(var n in e){var r=e[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof t?t.split(",").indexOf(e)>-1:!!h(t)&&t.test(e)}function Tn(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=Cn(a.componentOptions);s&&!e(s)&&Mn(n,o,r,i)}}}function Mn(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,y(n,e)}!function(t){t.prototype._init=function(t){var e=this;e._uid=xn++,e._isVue=!0,t&&t._isComponent?function(t,e){var n=t.$options=Object.create(t.constructor.options),r=e._parentVnode;n.parent=e.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,e.render&&(n.render=e.render,n.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Rt(wn(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,n=e.parent;if(n&&!e.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(t)}t.$parent=n,t.$root=n?n.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Xe(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,i=n&&n.context;t.$slots=de(e._renderChildren,i),t.$scopedSlots=r,t._c=function(e,n,r,i){return Be(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Be(t,e,n,r,i,!0)};var o=n&&n.data;Et(t,"$attrs",o&&o.attrs||r,null,!0),Et(t,"$listeners",e._parentListeners||r,null,!0)}(e),Qe(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(Ot(!1),Object.keys(e).forEach((function(n){Et(t,n,e[n])})),Ot(!0))}(e),gn(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),Qe(e,"created"),e.$options.el&&e.$mount(e.$options.el)}}(On),function(t){var e={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(t.prototype,"$data",e),Object.defineProperty(t.prototype,"$props",n),t.prototype.$set=Tt,t.prototype.$delete=Mt,t.prototype.$watch=function(t,e,n){if(c(e))return _n(this,t,e,n);(n=n||{}).user=!0;var r=new dn(this,t,e,n);if(n.immediate)try{e.call(this,r.value)}catch(t){Ut(t,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(On),function(t){var e=/^hook:/;t.prototype.$on=function(t,n){var r=this;if(Array.isArray(t))for(var i=0,o=t.length;i1?M(n):n;for(var r=M(arguments,1),i='event handler for "'+t+'"',o=0,a=n.length;oparseInt(this.max)&&Mn(a,s[0],s,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return B}};Object.defineProperty(t,"config",e),t.util={warn:lt,extend:A,mergeOptions:Rt,defineReactive:Et},t.set=Tt,t.delete=Mt,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),N.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,A(t.options.components,In),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var n=M(arguments,1);return n.unshift(this),"function"==typeof t.install?t.install.apply(t,n):"function"==typeof t&&t.apply(null,n),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Rt(this.options,t),this}}(t),Sn(t),function(t){N.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&c(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&"function"==typeof n&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}(t)}(On),Object.defineProperty(On.prototype,"$isServer",{get:rt}),Object.defineProperty(On.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(On,"FunctionalRenderContext",{value:ke}),On.version="2.6.10";var jn=v("style,class"),kn=v("input,textarea,option,select,progress"),Pn=v("contenteditable,draggable,spellcheck"),Ln=v("events,caret,typing,plaintext-only"),Dn=v("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"),Rn="http://www.w3.org/1999/xlink",Nn=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Fn=function(t){return Nn(t)?t.slice(6,t.length):""},Bn=function(t){return null==t||!1===t};function zn(t){for(var e=t.data,n=t,r=t;o(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(e=Vn(r.data,e));for(;o(n=n.parent);)n&&n.data&&(e=Vn(e,n.data));return function(t,e){if(o(t)||o(e))return Un(t,Gn(e));return""}(e.staticClass,e.class)}function Vn(t,e){return{staticClass:Un(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Un(t,e){return t?e?t+" "+e:t:e||""}function Gn(t){return Array.isArray(t)?function(t){for(var e,n="",r=0,i=t.length;r-1?dr(t,e,n):Dn(e)?Bn(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):Pn(e)?t.setAttribute(e,function(t,e){return Bn(e)||"false"===e?"false":"contenteditable"===t&&Ln(e)?e:"true"}(e,n)):Nn(e)?Bn(n)?t.removeAttributeNS(Rn,Fn(e)):t.setAttributeNS(Rn,e,n):dr(t,e,n)}function dr(t,e,n){if(Bn(n))t.removeAttribute(e);else{if(q&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var fr={create:cr,update:cr};function pr(t,e){var n=e.elm,r=e.data,a=t.data;if(!(i(r.staticClass)&&i(r.class)&&(i(a)||i(a.staticClass)&&i(a.class)))){var s=zn(e),l=n._transitionClasses;o(l)&&(s=Un(s,Gn(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var gr,vr={create:pr,update:pr};function mr(t,e,n){var r=gr;return function i(){var o=e.apply(null,arguments);null!==o&&_r(t,i,n,r)}}var yr=$t&&!(Q&&Number(Q[1])<=53);function br(t,e,n,r){if(yr){var i=sn,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}gr.addEventListener(t,e,et?{capture:n,passive:r}:n)}function _r(t,e,n,r){(r||gr).removeEventListener(t,e._wrapper||e,n)}function xr(t,e){if(!i(t.data.on)||!i(e.data.on)){var n=e.data.on||{},r=t.data.on||{};gr=e.elm,function(t){if(o(t.__r)){var e=q?"change":"input";t[e]=[].concat(t.__r,t[e]||[]),delete t.__r}o(t.__c)&&(t.change=[].concat(t.__c,t.change||[]),delete t.__c)}(n),ae(n,r,br,_r,mr,e.context),gr=void 0}}var wr,Or={create:xr,update:xr};function Sr(t,e){if(!i(t.data.domProps)||!i(e.data.domProps)){var n,r,a=e.elm,s=t.data.domProps||{},l=e.data.domProps||{};for(n in o(l.__ob__)&&(l=e.data.domProps=A({},l)),s)n in l||(a[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n&&"PROGRESS"!==a.tagName){a._value=r;var u=i(r)?"":String(r);Cr(a,u)&&(a.value=u)}else if("innerHTML"===n&&Yn(a.tagName)&&i(a.innerHTML)){(wr=wr||document.createElement("div")).innerHTML=""+r+"";for(var c=wr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;c.firstChild;)a.appendChild(c.firstChild)}else if(r!==s[n])try{a[n]=r}catch(t){}}}}function Cr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var n=!0;try{n=document.activeElement!==t}catch(t){}return n&&t.value!==e}(t,e)||function(t,e){var n=t.value,r=t._vModifiers;if(o(r)){if(r.number)return g(n)!==g(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}(t,e))}var Er={create:Sr,update:Sr},Tr=x((function(t){var e={},n=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach((function(t){if(t){var r=t.split(n);r.length>1&&(e[r[0].trim()]=r[1].trim())}})),e}));function Mr(t){var e=Ar(t.style);return t.staticStyle?A(t.staticStyle,e):e}function Ar(t){return Array.isArray(t)?I(t):"string"==typeof t?Tr(t):t}var Ir,jr=/^--/,kr=/\s*!important$/,Pr=function(t,e,n){if(jr.test(e))t.style.setProperty(e,n);else if(kr.test(n))t.style.setProperty(E(e),n.replace(kr,""),"important");else{var r=Dr(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(Fr).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function zr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(Fr).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function Vr(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&A(e,Ur(t.name||"v")),A(e,t),e}return"string"==typeof t?Ur(t):void 0}}var Ur=x((function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}})),Gr=W&&!Z,Hr="transition",Wr="transitionend",Yr="animation",$r="animationend";Gr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Hr="WebkitTransition",Wr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Yr="WebkitAnimation",$r="webkitAnimationEnd"));var Xr=W?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function qr(t){Xr((function(){Xr(t)}))}function Zr(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),Br(t,e))}function Kr(t,e){t._transitionClasses&&y(t._transitionClasses,e),zr(t,e)}function Jr(t,e,n){var r=ti(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s="transition"===i?Wr:$r,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout((function(){l0&&(n="transition",c=a,h=o.length):"animation"===e?u>0&&(n="animation",c=u,h=l.length):h=(n=(c=Math.max(a,u))>0?a>u?"transition":"animation":null)?"transition"===n?o.length:l.length:0,{type:n,timeout:c,propCount:h,hasTransform:"transition"===n&&Qr.test(r[Hr+"Property"])}}function ei(t,e){for(;t.length1}function si(t,e){!0!==e.data.show&&ri(e)}var li=function(t){var e,n,r={},l=t.modules,u=t.nodeOps;for(e=0;ep?b(t,i(n[m+1])?null:n[m+1].elm,n,f,m,r):f>m&&x(0,e,d,p)}(d,v,m,n,c):o(m)?(o(t.text)&&u.setTextContent(d,""),b(d,null,m,0,m.length-1,n)):o(v)?x(0,v,0,v.length-1):o(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(t,e)}}}function C(t,e,n){if(a(n)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var r=0;r-1,a.selected!==o&&(a.selected=o);else if(L(fi(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function di(t,e){return e.every((function(e){return!L(e,t)}))}function fi(t){return"_value"in t?t._value:t.value}function pi(t){t.target.composing=!0}function gi(t){t.target.composing&&(t.target.composing=!1,vi(t.target,"input"))}function vi(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function mi(t){return!t.componentInstance||t.data&&t.data.transition?t:mi(t.componentInstance._vnode)}var yi={model:ui,show:{bind:function(t,e,n){var r=e.value,i=(n=mi(n)).data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,ri(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value;!r!=!e.oldValue&&((n=mi(n)).data&&n.data.transition?(n.data.show=!0,r?ri(n,(function(){t.style.display=t.__vOriginalDisplay})):ii(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none")},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}}},bi={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 _i(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?_i(He(e.children)):t}function xi(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var o in i)e[O(o)]=i[o];return e}function wi(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var Oi=function(t){return t.tag||Ge(t)},Si=function(t){return"show"===t.name},Ci={name:"transition",props:bi,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Oi)).length){0;var r=this.mode;0;var i=n[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return i;var o=_i(i);if(!o)return i;if(this._leaving)return wi(t,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:s(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var l=(o.data||(o.data={})).transition=xi(this),u=this._vnode,c=_i(u);if(o.data.directives&&o.data.directives.some(Si)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!Ge(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=A({},l);if("out-in"===r)return this._leaving=!0,se(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),wi(t,i);if("in-out"===r){if(Ge(o))return u;var d,f=function(){d()};se(l,"afterEnter",f),se(l,"enterCancelled",f),se(h,"delayLeave",(function(t){d=t}))}}return i}}},Ei=A({tag:String,moveClass:String},bi);function Ti(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function Mi(t){t.data.newPos=t.elm.getBoundingClientRect()}function Ai(t){var e=t.data.pos,n=t.data.newPos,r=e.left-n.left,i=e.top-n.top;if(r||i){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Ei.mode;var Ii={Transition:Ci,TransitionGroup:{props:Ei,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ze(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=xi(this),s=0;s-1?Xn[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Xn[t]=/HTMLUnknownElement/.test(e.toString())},A(On.options.directives,yi),A(On.options.components,Ii),On.prototype.__patch__=W?li:j,On.prototype.$mount=function(t,e){return function(t,e,n){var r;return t.$el=e,t.$options.render||(t.$options.render=vt),Qe(t,"beforeMount"),r=function(){t._update(t._render(),n)},new dn(t,r,j,{before:function(){t._isMounted&&!t._isDestroyed&&Qe(t,"beforeUpdate")}},!0),n=!1,null==t.$vnode&&(t._isMounted=!0,Qe(t,"mounted")),t}(this,t=t&&W?function(t){if("string"==typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}(t):void 0,e)},W&&setTimeout((function(){B.devtools&&it&&it.emit("init",On)}),0),e.default=On}.call(this,n(322),n(893).setImmediate)},function(t,e,n){"use strict";n.r(e);var r=n(1),i=function(t,e){return Object(r.isString)(e)?e:t.invert(t.scale(e))},o=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n0&&(n=n.map((function(t,n){return e.forEach((function(r,i){t+=e[i][n]})),t}))),n}},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"Version",(function(){return r})),function(t){t["GAODE1.x"]="GAODE1.x",t["GAODE2.x"]="GAODE2.x",t.MAPBOX="MAPBOX",t.L7MAP="L7MAP",t.SIMPLE="SIMPLE",t.GLOBEL="GLOBEL"}(r||(r={}))},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(6),o=n(48),a=n(211),s=n(113),l=i.round,u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return Object(r.__extends)(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return s.contain(t,this._extent)},e.prototype.normalize=function(t){return s.normalize(t,this._extent)},e.prototype.scale=function(t){return s.scale(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=s.getIntervalPrecision(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:r[1];return n[1]>s&&(t?o.push({value:l(s+e,i)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&h=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";n.r(e);var r=n(117),i=function(){function t(t){this._setting=t||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(t){return this._setting[t]},t.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();r.enableClassManagement(i),e.default=i},function(t,e,n){"use strict";function r(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],h=t[8],d=e[0],f=e[1],p=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],_=e[8];return n[0]=d*r+f*a+p*u,n[1]=d*i+f*s+p*c,n[2]=d*o+f*l+p*h,n[3]=g*r+v*a+m*u,n[4]=g*i+v*s+m*c,n[5]=g*o+v*l+m*h,n[6]=y*r+b*a+_*u,n[7]=y*i+b*s+_*c,n[8]=y*o+b*l+_*h,n}function i(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function o(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=c*a-s*u,d=-c*o+s*l,f=u*o-a*l,p=n*h+r*d+i*f;return p?(p=1/p,e[0]=h*p,e[1]=(-c*r+i*u)*p,e[2]=(s*r-i*a)*p,e[3]=d*p,e[4]=(c*n-i*l)*p,e[5]=(-s*n+i*o)*p,e[6]=f*p,e[7]=(-u*n+r*l)*p,e[8]=(a*n-r*o)*p,e):null}n.r(e),n.d(e,"multiplyMatrix",(function(){return r})),n.d(e,"multiplyVec2",(function(){return i})),n.d(e,"invert",(function(){return o}))},function(t,e,n){"use strict";n.r(e);var r=n(83),i=n(251);e.default={box:function(t,e,n,i){return Object(r.getBBoxByArray)([t,n],[e,i])},length:function(t,e,n,i){return Object(r.distance)(t,e,n,i)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,i,o,a){var s=(n-t)*(o-t)+(i-e)*(a-e);return s<0?Object(r.distance)(t,e,o,a):s>(n-t)*(n-t)+(i-e)*(i-e)?Object(r.distance)(n,i,o,a):this.pointToLine(t,e,n,i,o,a)},pointToLine:function(t,e,n,r,o,a){var s=[n-t,r-e];if(i.exactEquals(s,[0,0]))return Math.sqrt((o-t)*(o-t)+(a-e)*(a-e));var l=[-s[1],s[0]];i.normalize(l,l);var u=[o-t,a-e];return Math.abs(i.dot(u,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";function r(t,e,n){var r=null==e.x?0:e.x,i=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(r=r*n.width+n.x,i=i*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),r=isNaN(r)?0:r,i=isNaN(i)?1:i,o=isNaN(o)?0:o,a=isNaN(a)?0:a,t.createLinearGradient(r,o,i,a)}function i(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r;return e.global||(a=a*r+n.x,s=s*i+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}function o(t,e,n){for(var o="radial"===e.type?i(t,e,n):r(t,e,n),a=e.colorStops,s=0;si&&(i+=f);var g=Math.atan2(l,a);if(g<0&&(g+=f),g>=r&&g<=i||g+f>=r&&g+f<=i)return u[0]=h,u[1]=d,c-n;var v=n*Math.cos(r)+t,m=n*Math.sin(r)+e,y=n*Math.cos(i)+t,b=n*Math.sin(i)+e,_=(v-a)*(v-a)+(m-l)*(m-l),x=(y-a)*(y-a)+(b-l)*(b-l);return _0){e=e/180*Math.PI,O.fromArray(t[0]),S.fromArray(t[1]),C.fromArray(t[2]),r.default.sub(E,O,S),r.default.sub(T,C,S);var n=E.len(),i=T.len();if(!(n<.001||i<.001)){E.scale(1/n),T.scale(1/i);var o=E.dot(T);if(Math.cos(e)1&&r.default.copy(I,C),I.toArray(t[1])}}}}function k(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,O.fromArray(t[0]),S.fromArray(t[1]),C.fromArray(t[2]),r.default.sub(E,S,O),r.default.sub(T,C,S);var i=E.len(),o=T.len();if(!(i<.001||o<.001))if(E.scale(1/i),T.scale(1/o),E.dot(e)=s)r.default.copy(I,C);else{I.scaleAndAdd(T,a/Math.tan(Math.PI/2-l));var u=C.x!==S.x?(I.x-S.x)/(C.x-S.x):(I.y-S.y)/(C.y-S.y);if(isNaN(u))return;u<0?r.default.copy(I,S):u>1&&r.default.copy(I,C)}I.toArray(t[1])}}}function P(t,e,n,r){var i="normal"===n,o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function L(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=h.dist(r[0],r[1]),o=h.dist(r[1],r[2]);if(!i||!o)return t.lineTo(r[1][0],r[1][1]),void t.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=h.lerp([],r[1],r[0],a/i),l=h.lerp([],r[1],r[2],a/o),u=h.lerp([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.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)(x,{el:e,userDuring:u}):null,l.setToFinal=!0,l.scope=t),Object(i.extend)(l,n[a]),l}function g(t,e,n,o){var s=(o=o||{}).dataIndex,g=o.isInit,m=o.clearStyle,b=n.isAnimationEnabled(),_=f(t),x=e.style;_.userDuring=e.during;var S={},C={};if(function(t,e,n){for(var r=0;r=0)){var p=t.getAnimationStyleProps(),g=p?p.style:null;if(g){!a&&(a=o.style={});var v=Object(i.keys)(n);for(h=0;h0&&t.animateFrom(E,T)}else!function(t,e,n,r,i){if(i){var o=p("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}(t,e,s||0,n,S);v(t,e),x?t.dirty():t.markRedraw()}function v(t,e){for(var n=f(t).leaveToProps,r=0;r=0){!s&&(s=o[t]={});var p=Object(i.keys)(l);for(d=0;d=-90&&o<=90,"invalid latitude");var a=o*h;return[(e*=512)*(i*h+u)/(2*u),e*(u-Math.log(Math.tan(c+.5*a)))/(2*u)]}function v(t,e){var n=Object(r.default)(t,2),i=n[0],o=n[1],a=i/(e*=512)*(2*u)-u,s=2*(Math.atan(Math.exp(u-o/e*(2*u)))-c);return[a*d,s*d]}function m(t){var e=t.latitude;return Object(l.default)(Number.isFinite(e)),p(4003e4*Math.cos(e*h))-9}function y(t){var e=t.latitude,n=t.longitude,r=t.zoom,i=t.scale,o=t.highPrecision,a=void 0!==o&&o;i=void 0!==i?i:f(r),Object(l.default)(Number.isFinite(e)&&Number.isFinite(n)&&Number.isFinite(i));var s={},u=512*i,c=Math.cos(e*h),d=u/360,p=d/c,g=u/4003e4/c;if(s.pixelsPerMeter=[g,-g,g],s.metersPerPixel=[1/g,-1/g,1/g],s.pixelsPerDegree=[d,-p,g],s.degreesPerPixel=[1/d,-1/p,1/g],a){var v=h*Math.tan(e*h)/c,m=d*v/2,y=u/4003e4*v,b=y/p*g;s.pixelsPerDegree2=[0,-m,y],s.pixelsPerMeter2=[b,0,b]}return s}function b(t,e){var n=Object(r.default)(t,3),i=n[0],o=n[1],a=n[2],s=Object(r.default)(e,3),l=s[0],u=s[1],c=s[2],h=y({longitude:i,latitude:o,scale:1,highPrecision:!0}),d=h.pixelsPerMeter,f=h.pixelsPerMeter2,p=g(t,1);p[0]+=l*(d[0]+f[0]*u),p[1]+=u*(d[1]+f[1]*u);var m=v(p,1),b=(a||0)+(c||0);return Number.isFinite(a)||Number.isFinite(c)?[m[0],m[1],b]:m}function _(t){var e=t.height,n=t.pitch,r=t.bearing,a=t.altitude,l=t.center,u=void 0===l?null:l,c=t.flipY,d=void 0!==c&&c,f=Object(i.createMat4)();return o.translate(f,f,[0,0,-a]),o.scale(f,f,[1,1,1/e]),o.rotateX(f,f,-n*h),o.rotateZ(f,f,r*h),d&&o.scale(f,f,[1,-1,1]),u&&o.translate(f,f,s.negate([],u)),f}function x(t){var e=t.width,n=t.height,r=t.altitude,i=void 0===r?1.5:r,o=t.pitch,a=void 0===o?0:o,s=t.nearZMultiplier,l=void 0===s?1:s,u=t.farZMultiplier,c=void 0===u?1:u,d=a*h,f=Math.atan(.5/i),p=Math.sin(f)*i/Math.sin(Math.PI/2-d-f),g=Math.cos(Math.PI/2-d)*p+i;return{fov:2*Math.atan(n/2/i),aspect:e/n,focalDistance:i,near:l,far:g*c}}function w(t){var e=t.width,n=t.height,r=t.pitch,i=x({width:e,height:n,altitude:t.altitude,pitch:r,nearZMultiplier:t.nearZMultiplier,farZMultiplier:t.farZMultiplier}),a=i.fov,s=i.aspect,l=i.near,u=i.far;return o.perspective([],a,s,l,u)}function O(t,e){var n=Object(r.default)(t,3),o=n[0],a=n[1],s=n[2],u=void 0===s?0:s;return Object(l.default)(Number.isFinite(o)&&Number.isFinite(a)&&Number.isFinite(u)),Object(i.transformVector)(e,[o,a,u,1])}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=Object(r.default)(t,3),s=o[0],u=o[1],c=o[2];if(Object(l.default)(Number.isFinite(s)&&Number.isFinite(u),"invalid pixel coordinate"),Number.isFinite(c)){var h=Object(i.transformVector)(e,[s,u,c,1]);return h}var d=Object(i.transformVector)(e,[s,u,0,1]),f=Object(i.transformVector)(e,[s,u,1,1]),p=d[2],g=f[2],v=p===g?0:((n||0)-p)/(g-p);return a.lerp([],d,f,v)}},function(t,e,n){"use strict";var r=n(894),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return void 0===t}function s(t){return null!==t&&"object"==typeof t}function l(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function u(t){return"[object Function]"===i.call(t)}function c(t,e){if(null!=t)if("object"!=typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n= than the number of constructor arguments of its base class."},e.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",e.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",e.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",e.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",e.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class";e.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e=0||o&&r.indexOf(o,l)<0)){var u=n.getShallow(l,e);null!=u&&(a[t[s][0]]=u)}}return a}}},function(t,e,n){"use strict";function r(t,e,n,r,a,s){t=t||0;var l=n[1]-n[0];if(null!=a&&(a=o(a,[0,l])),null!=s&&(s=Math.max(s,null!=a?a:0)),"all"===r){var u=Math.abs(e[1]-e[0]);u=o(u,[0,l]),a=s=o(u,[a,s]),r=0}e[0]=o(e[0],n),e[1]=o(e[1],n);var c=i(e,r);e[r]+=t;var h,d=a||0,f=n.slice();return c.sign<0?f[0]+=d:f[1]-=d,e[r]=o(e[r],f),h=i(e,r),null!=a&&(h.sign!==c.sign||h.spans&&(e[1-r]=e[r]+h.sign*s),e}function i(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function o(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"percent",(function(){return a})),n.d(e,"getDeepPercent",(function(){return s})),n.d(e,"getDataWhetherPercentage",(function(){return l}));var r=n(2),i=n(1),o=n(298);function a(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,s=r[e];return a=Object(o.isRealNumber)(s)?a+s:a,t.set(i,a),t}),new Map);return Object(i.map)(t,(function(t){var i,l=t[e],u=t[n],c=Object(o.isRealNumber)(l)&&0!==s.get(u)?l/s.get(u):0;return Object(r.__assign)(Object(r.__assign)({},t),((i={})[a]=c,i))}))}function s(t,e,n,a){var s=Object(i.reduce)(t,(function(t,r){var a=Object(i.reduce)(n,(function(t,e){return""+t+r[e]}),""),s=t.has(a)?t.get(a):0,l=r[e];return s=Object(o.isRealNumber)(l)?s+l:s,t.set(a,s),t}),new Map);return Object(i.map)(t,(function(t){var l,u=t[e],c=Object(i.reduce)(n,(function(e,n){return""+e+t[n]}),""),h=Object(o.isRealNumber)(u)&&0!==s.get(c)?u/s.get(c):0;return Object(r.__assign)(Object(r.__assign)({},t),((l={})[a]=h,l))}))}function l(t,e,n,r,i){return i?a(t,e,n,r):t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTinyData",(function(){return i}));var r=n(1);function i(t){return Object(r.map)(t||[],(function(t,e){return{x:""+e,y:t}}))}},function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function s(t,e,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||t,o),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],s]:t._events[l].push(s):(t._events[l]=s,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new o:delete t._events[e]}function u(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),u.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)r.call(t,e)&&n.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},u.prototype.listeners=function(t){var e=i?i+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r=0&&r.push(e[a])}return r.join(" ")}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var c,h=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},f=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=u(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:h,gradient:function(t){var e=Object(r.isString)(t)?t.split("-"):t,n=Object(r.map)(e,(function(t){return h(-1===t.indexOf("#")?f(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),o=r*n-i,a=t[i],s=i===r?a:t[i+1];return u([l(a,s,o,0),l(a,s,o,1),l(a,s,o,2)])}(n,t)}},toRGB:Object(r.memoize)(f),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(l=o.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=a.exec(t))[4]}var u=n.match(s);return Object(r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMaxLabelWidth",(function(){return o})),n.d(e,"getLabelLength",(function(){return a})),n.d(e,"testLabel",(function(){return s})),n.d(e,"ellipsisLabel",(function(){return l}));var r=n(1),i=n(857);function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.isNil)(e)?"":""+e})),n=0,i=0,o=0;o=19968&&l<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.each)(t,(function(t){var n=t.getBBox().width;e=0?Object(i.ellipsisString)(l,p,o):"…")&&(e.attr("text",g),f=!0)}return f?e.set("tip",l):e.set("tip",null),f}},function(t,e,n){"use strict";n.r(e),n.d(e,"fromPoints",(function(){return f})),n.d(e,"fromLine",(function(){return p})),n.d(e,"fromCubic",(function(){return m})),n.d(e,"fromQuadratic",(function(){return y})),n.d(e,"fromArc",(function(){return b}));var r=n(20),i=n(47),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,u=2*Math.PI,c=r.create(),h=r.create(),d=r.create();function f(t,e,n){if(0!==t.length){for(var r=t[0],i=r[0],s=r[0],l=r[1],u=r[1],c=1;c1e-4)return p[0]=t-n,p[1]=e-i,g[0]=t+n,void(g[1]=e+i);if(c[0]=l(o)*n+t,c[1]=s(o)*i+e,h[0]=l(a)*n+t,h[1]=s(a)*i+e,v(p,c,h),m(g,c,h),(o%=u)<0&&(o+=u),(a%=u)<0&&(a+=u),o>a&&!f?a+=u:oo&&(d[0]=l(_)*n+t,d[1]=s(_)*i+e,v(p,d,p),m(g,d,g))}},function(t,e,n){"use strict";n.r(e),n.d(e,"CircleShape",(function(){return o}));var r=n(59),i=n(36),o=function(){this.cx=0,this.cy=0,this.r=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI)},e}(i.default);a.prototype.type="circle",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"registerCanvas",(function(){return s})),n.d(e,"registerCanvas2D",(function(){return l})),n.d(e,"getCanvas",(function(){return u})),n.d(e,"getCanvas2D",(function(){return c}));var r=n(560),i=n(145),o={},a={};function s(t,e){(o=t).id=e,"tagName"in o||(o.tagName="CANVAS"),o.type="canvas",i.parentNode(o),i.style(o),i.classList(o),i.clientRegion(o),i.offsetRegion(o),o.focus=function(){},o.blur=function(){}}function l(t,e){"tagName"in(a={width:1024,height:1024,clientWidth:1024/r.default,clientHeight:1024/r.default,id:e,type:"canvas"})||(a.tagName="CANVAS"),i.parentNode(a),i.style(a),i.classList(a),i.clientRegion(a),i.offsetRegion(a),a.getContext=function(e){if("2d"===e)return t},a.focus=function(){},a.blur=function(){}}function u(){return o}function c(){return a}},function(t,e,n){"use strict";function r(t){var e=t.coordinateSystem;if("view"!==e.type)return 1;var n=t.option.nodeScaleRatio,r=e.scaleX;return((e.getZoom()-1)*n+1)/r}function i(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}n.r(e),n.d(e,"getNodeGlobalScale",(function(){return r})),n.d(e,"getSymbolSize",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"register",(function(){return i})),n.d(e,"getMethod",(function(){return o}));var r=new Map;function i(t,e){r.set(t,e)}function o(t){return r.get(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScale",(function(){return o})),n.d(e,"registerScale",(function(){return a}));var r=n(288);n.d(e,"Scale",(function(){return r.default}));var i={};function o(t){return i[t]}function a(t,e){if(o(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"init",(function(){return i})),n.d(e,"firstWalk",(function(){return o})),n.d(e,"secondWalk",(function(){return a})),n.d(e,"separation",(function(){return s})),n.d(e,"radialCoordinate",(function(){return l})),n.d(e,"getViewRect",(function(){return u}));var r=n(33);function i(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,r,i=[e];n=i.pop();)if(r=n.children,n.isExpand&&r.length)for(var o=r.length-1;o>=0;o--){var a=r[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},i.push(a)}}function o(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){!function(t){var e=t.children,n=e.length,r=0,i=0;for(;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,p=a.hierNode.modifier,g=s.hierNode.modifier;s=c(s),o=h(o),s&&o;){i=c(i),a=h(a),i.hierNode.ancestor=t;var v=s.hierNode.prelim+g-o.hierNode.prelim-u+r(s,o);v>0&&(f(d(s,t,n),t,v),u+=v,l+=v),g+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,p+=a.hierNode.modifier}s&&!c(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=g-l),o&&!h(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-p,n=t)}return n}(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function a(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function s(t){return arguments.length?t:p}function l(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function u(t,e){return r.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function c(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function h(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function d(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function f(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function p(t,e){return t.parentNode===e.parentNode?1:2}},function(t,e,n){"use strict";n.r(e);var r=n(1),i=n(366),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===a?0:a-1],i=n[a===s-1?s-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.assign({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.DEFAULT_Y,1]}return o},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"createDimensions",(function(){return h})),n.d(e,"default",(function(){return d}));var r=n(29),i=n(477),o=n(0),a=n(140),s=n(394),l=n(10),u=n(139),c=n(339);function h(t,e){return d(t,e).dimensions}function d(t,e){Object(a.isSourceInstance)(t)||(t=Object(a.createSourceFromSeriesDataOption)(t));var n=(e=e||{}).coordDimensions||[],h=e.dimensionsDefine||t.dimensionsDefine||[],d=Object(o.createHashMap)(),p=[],g=function(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return Object(o.each)(e,(function(t){var e;Object(o.isObject)(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,n,h,e.dimensionsCount),v=e.canOmitUnusedDimensions&&Object(c.shouldOmitUnusedDimensions)(g),m=h===t.dimensionsDefine,y=m?Object(c.ensureSourceDimNameMap)(t):Object(c.createDimNameMap)(h),b=e.encodeDefine;!b&&e.encodeDefaulter&&(b=e.encodeDefaulter(t,g));for(var _=Object(o.createHashMap)(b),x=new s.CtorInt32Array(g),w=0;w0&&(r.name=i+(a-1)),a++,e.set(i,a)}}(p),new c.SeriesDataSchema({source:t,dimensions:p,fullDimensionCount:g,dimensionOmitted:v})}function f(t,e,n){var r=e.data;if(n||r.hasOwnProperty(t)){for(var i=0;r.hasOwnProperty(t+i);)i++;t+=i}return e.set(t,!0),t}},function(t,e,n){"use strict";n.r(e);var r=n(74),i=n(349);e.default=function(t,e){if(t)if(Object(r.default)(t))for(var n=0,o=t.length;n-1?"ZH":"EN";function h(t,e){t=t.toUpperCase(),u[t]=new r.default(e),l[t]=e}function d(t){if(Object(s.isString)(t)){var e=l[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?Object(s.clone)(e):Object(s.merge)(Object(s.clone)(e),Object(s.clone)(l.EN),!1)}return Object(s.merge)(Object(s.clone)(t),Object(s.clone)(l.EN),!1)}function f(t){return u[t]}function p(){return u.EN}h("EN",o.default),h("ZH",a.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"createFromString",(function(){return x})),n.d(e,"extendFromString",(function(){return w})),n.d(e,"mergePath",(function(){return O})),n.d(e,"clonePath",(function(){return S}));var r=n(59),i=n(36),o=n(138),a=n(829),s=n(0),l=Math.sqrt,u=Math.sin,c=Math.cos,h=Math.PI;function d(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function f(t,e){return(t[0]*e[0]+t[1]*e[1])/(d(t)*d(e))}function p(t,e){return(t[0]*e[1]1&&(a*=l(_),s*=l(_));var x=(i===o?-1:1)*l((a*a*(s*s)-a*a*(b*b)-s*s*(y*y))/(a*a*(b*b)+s*s*(y*y)))||0,w=x*a*b/s,O=x*-s*y/a,S=(t+n)/2+c(m)*w-u(m)*O,C=(e+r)/2+u(m)*w+c(m)*O,E=p([1,0],[(y-w)/a,(b-O)/s]),T=[(y-w)/a,(b-O)/s],M=[(-1*y-w)/a,(-1*b-O)/s],A=p(T,M);if(f(T,M)<=-1&&(A=h),f(T,M)>=1&&(A=0),A<0){var I=Math.round(A/h*1e6)/1e6;A=2*h+I%2*h}v.addData(g,S,C,a,s,E,A,m,o)}var v=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,m=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.applyTransform=function(t){},e}(i.default);function b(t){return null!=t.setData}function _(t,e){var n=function(t){var e=new o.default;if(!t)return e;var n,r=0,i=0,a=r,s=i,l=o.default.CMD,u=t.match(v);if(!u)return e;for(var c=0;c0))}function v(t){return"string"==typeof t&&"none"!==t}function m(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function b(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function _(t,e,n){var r=Object(o.createOrUpdateImage)(e.image,e.__image,n);if(Object(o.isImageReady)(r)){var i=t.createPattern(r,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*c.RADIAN_TO_DEGREE),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}var x=["shadowBlur","shadowOffsetX","shadowOffsetY"],w=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function O(t,e,n,i,o){var a=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){E(t,o),a=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?r.DEFAULT_COMMON_STYLE.opacity:s}(i||e.blend!==n.blend)&&(a||(E(t,o),a=!0),t.globalCompositeOperation=e.blend||r.DEFAULT_COMMON_STYLE.blend);for(var l=0;l0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function T(t,e){return t[0]*e[0]+t[1]*e[1]}function M(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function A(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function I(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function j(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t}function k(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function P(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t}function L(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t}function D(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),s=Math.cos(r);return t[0]=i*s-o*a+n[0],t[1]=i*a+o*s+n[1],t}function R(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),s=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function N(t){return t[0]=0,t[1]=0,t}function F(t){return"vec2("+t[0]+", "+t[1]+")"}function B(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(a))}var V,U=w,G=c,H=h,W=d,Y=_,$=x,X=O,q=(V=i(),function(t,e,n,r,i,o){var a,s;for(e||(e=2),n||(n=0),s=r?Math.min(r*e+n,t.length):t.length,a=n;a0&&(a=null===a?l:Math.min(a,l))}n[i]=a}}return n}(t),n=[];return Object(r.each)(t,(function(t){var r,o=t.coordinateSystem.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,c=e[s],h=Math.abs(a[1]-a[0]),d=o.scale.getExtent(),f=Math.abs(d[1]-d[0]);r=c?h/f*c:h}else{var p=t.getData();r=Math.abs(a[1]-a[0])/p.count()}var g=Object(i.parsePercent)(t.get("barWidth"),r),v=Object(i.parsePercent)(t.get("barMaxWidth"),r),m=Object(i.parsePercent)(t.get("barMinWidth")||(y(t)?.5:1),r),b=t.get("barGap"),_=t.get("barCategoryGap");n.push({bandWidth:r,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:b,barCategoryGap:_,axisKey:u(o),stackId:l(t)})})),f(n)}function f(t){var e={};Object(r.each)(t,(function(t,n){var r=t.axisKey,i=t.bandWidth,o=e[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[r]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return Object(r.each)(e,(function(t,e){n[e]={};var o=t.stacks,a=t.bandWidth,s=t.categoryGap;if(null==s){var l=Object(r.keys)(o).length;s=Math.max(35-4*l,15)+"%"}var u=Object(i.parsePercent)(s,a),c=Object(i.parsePercent)(t.gap,1),h=t.remainedWidth,d=t.autoWidthCount,f=(h-u)/(d+(d-1)*c);f=Math.max(f,0),Object(r.each)(o,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width){r=t.width;e&&(r=Math.min(r,e)),n&&(r=Math.max(r,n)),t.width=r,h-=r+c*r,d--}else{var r=f;e&&er&&(r=n),r!==f&&(t.width=r,h-=r+c*r,d--)}})),f=(h-u)/(d+(d-1)*c),f=Math.max(f,0);var p,g=0;Object(r.each)(o,(function(t,e){t.width||(t.width=f),p=t,g+=t.width*(1+c)})),p&&(g-=p.width*c);var v=-g/2;Object(r.each)(o,(function(t,r){n[e][r]=n[e][r]||{bandWidth:a,offset:v,width:t.width},v+=t.width*(1+c)}))})),n}function p(t,e,n){if(t&&e){var r=t[u(e)];return null!=r&&null!=n?r[l(n)]:r}}function g(t,e){var n=h(t,e),i=d(n);Object(r.each)(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=l(t),o=i[u(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function v(t){return{seriesType:t,plan:Object(a.default)(),reset:function(t){if(m(t)){var e=t.getData(),n=t.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=e.getDimensionIndex(e.mapDimension(i.dim)),l=e.getDimensionIndex(e.mapDimension(r.dim)),u=t.get("showBackground",!0),c=e.mapDimension(i.dim),h=e.getCalculationInfo("stackResultDimension"),d=Object(o.isDimensionStacked)(e,c)&&!!e.getCalculationInfo("stackedOnSeries"),f=i.isHorizontal(),p=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),g=y(t),v=t.get("barMinHeight")||0,b=h&&e.getDimensionIndex(h),_=e.getLayout("size"),x=e.getLayout("offset");return{progress:function(t,e){for(var r,i=t.count,o=g&&Object(s.createFloat32Array)(3*i),c=g&&u&&Object(s.createFloat32Array)(3*i),h=g&&Object(s.createFloat32Array)(i),m=n.master.getRect(),y=f?m.width:m.height,w=e.getStore(),O=0;null!=(r=t.next());){var S=w.get(d?b:a,r),C=w.get(l,r),E=p,T=void 0;d&&(T=+S-w.get(a,r));var M=void 0,A=void 0,I=void 0,j=void 0;if(f){var k=n.dataToPoint([S,C]);if(d)E=n.dataToPoint([T,C])[0];M=E,A=k[1]+x,I=k[0]-E,j=_,Math.abs(I)=l-d&&a<=u+d&&s>=c-d&&s<=h+d&&r.Line.pointToLine(t,e,n,i,a,s)<=o/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"$document",(function(){return w}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h),f=n(299),p=n(342),g=n(734),v=n(736),m=n(737);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var b=function(t){l()(n,t);var e=y(n);function n(){return i()(this,n),e.call(this,"body",0)}return a()(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e,n){}},{key:"dispatchEvent",value:function(t){}}]),n}(p.HTMLElement),_=function(t){l()(n,t);var e=y(n);function n(){return i()(this,n),e.call(this,"html",0)}return a()(n,[{key:"addEventListener",value:function(t,e){}},{key:"removeEventListener",value:function(t,e){}},{key:"dispatchEvent",value:function(t){}}]),n}(p.HTMLElement),x={},w={readyState:"complete",visibilityState:"visible",hidden:!1,fullscreen:!0,scripts:[],style:{},location:m.$location,ontouchstart:null,ontouchmove:null,ontouchend:null,onvisibilitychange:null,parentNode:null,parentElement:null,head:null,body:null,documentElement:{style:[]},createElement:function(t){return"canvas"===(t=t.toLowerCase())?my.createOffscreenCanvas(1024,128,"2d"):"img"===t?new v.Image:"video"===t?new g.HTMLVideoElement:new p.HTMLElement(t)},createElementNS:function(t,e){return this.createElement(e)},createTextNode:function(t){return t},getElementById:function(t){return null},getElementsByTagName:function(t){return t=t.toLowerCase(),[]},getElementsByTagNameNS:function(t,e){return this.getElementsByTagName(e)},getElementsByName:function(t){return[]},querySelector:function(t){return null},querySelectorAll:function(t){return[]},addEventListener:function(t,e,n){x[t]||(x[t]=[]),x[t].push(e)},removeEventListener:function(t,e){var n=x[t];if(n&&n.length>0)for(var r=n.length;r--;r>0)if(n[r]===e){n.splice(r,1);break}},dispatchEvent:function(t){var e=t.type,n=x[e];if(n)for(var r=0;rr.EPSILON?(t[0]=e[0]/i,t[1]=e[1]/i,t[2]=e[2]/i):(t[0]=1,t[1]=0,t[2]=0),n}function h(t,e){var n=z(t,e);return Math.acos(2*n*n-1)}function d(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+a*s+i*u-o*l,t[1]=i*c+a*l+o*s-r*u,t[2]=o*c+a*u+r*l-i*s,t[3]=a*c-r*s-i*l-o*u,t}function f(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=o*l-i*s,t[3]=a*l-r*s,t}function p(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-o*s,t[1]=i*l+a*s,t[2]=o*l+r*s,t[3]=a*l-i*s,t}function g(t,e,n){n*=.5;var r=e[0],i=e[1],o=e[2],a=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=o*l+a*s,t[3]=a*l-o*s,t}function v(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t}function m(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=Math.exp(o),l=a>0?s*Math.sin(a)/a:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(a),t}function y(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=Math.sqrt(n*n+r*r+i*i),s=a>0?Math.atan2(a,o)/a:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+o*o),t}function b(t,e,n){return y(t,e),B(t,t,n),m(t,t),t}function _(t,e,n,i){var o,a,s,l,u,c=e[0],h=e[1],d=e[2],f=e[3],p=n[0],g=n[1],v=n[2],m=n[3];return(a=c*p+h*g+d*v+f*m)<0&&(a=-a,p=-p,g=-g,v=-v,m=-m),1-a>r.EPSILON?(o=Math.acos(a),s=Math.sin(o),l=Math.sin((1-i)*o)/s,u=Math.sin(i*o)/s):(l=1-i,u=i),t[0]=l*c+u*p,t[1]=l*h+u*g,t[2]=l*d+u*v,t[3]=l*f+u*m,t}function x(t){var e=r.RANDOM(),n=r.RANDOM(),i=r.RANDOM(),o=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=o*Math.sin(2*Math.PI*n),t[1]=o*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*i),t[3]=a*Math.cos(2*Math.PI*i),t}function w(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n*n+r*r+i*i+o*o,s=a?1/a:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=o*s,t}function O(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t}function S(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var o=(i+1)%3,a=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*o+o]-e[3*a+a]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*o+a]-e[3*a+o])*n,t[o]=(e[3*o+i]+e[3*i+o])*n,t[a]=(e[3*a+i]+e[3*i+a])*n}return t}function C(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var o=Math.sin(e),a=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=o*l*c-a*s*u,t[1]=a*s*c+o*l*u,t[2]=a*l*u-o*s*c,t[3]=a*l*c+o*s*u,t}function E(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}var T,M,A,I,j,k,P=a.clone,L=a.fromValues,D=a.copy,R=a.set,N=a.add,F=d,B=a.scale,z=a.dot,V=a.lerp,U=a.length,G=U,H=a.squaredLength,W=H,Y=a.normalize,$=a.exactEquals,X=a.equals,q=(T=o.create(),M=o.fromValues(1,0,0),A=o.fromValues(0,1,0),function(t,e,n){var r=o.dot(e,n);return r<-.999999?(o.cross(T,M,e),o.len(T)<1e-6&&o.cross(T,A,e),o.normalize(T,T),u(t,T,Math.PI),t):r>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(o.cross(T,e,n),t[0]=T[0],t[1]=T[1],t[2]=T[2],t[3]=1+r,Y(t,t))}),Z=(I=s(),j=s(),function(t,e,n,r,i,o){return _(I,e,i,o),_(j,n,r,o),_(t,I,j,2*o*(1-o)),t}),K=(k=i.create(),function(t,e,n,r){return k[0]=n[0],k[3]=n[1],k[6]=n[2],k[1]=r[0],k[4]=r[1],k[7]=r[2],k[2]=-e[0],k[5]=-e[1],k[8]=-e[2],Y(t,S(t,k))})},function(t,e,n){"use strict";n.r(e),n.d(e,"STATUS_UNACTIVE",(function(){return u})),n.d(e,"STATUS_ACTIVE",(function(){return c}));var r=n(2),i=n(1),o=n(24),a=n(368),s=n(465),l=n(7),u=l.ELEMENT_STATE.INACTIVE,c=l.ELEMENT_STATE.ACTIVE,h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=c,e}return Object(r.__extends)(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(u)&&t.setState(u,!1),t.setState(c,!0)):t.hasState(c)||t.setState(u,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(i.each)(t,(function(t){r.setElementHighlight(t,e)}));else{var a=Object(o.getElementsByState)(this.context.view,c),s=!0;Object(i.each)(a,(function(t){if(!e(t))return s=!1,!1})),s?this.clear():Object(i.each)(t,(function(t){e(t)&&(t.hasState(c)&&t.setState(c,!1),t.setState(u,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,r=Object(o.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;Object(a.clearHighlight)(t)},e}(s.default);e.default=h},function(t,e,n){"use strict";n.r(e),n.d(e,"BOX_RANGE",(function(){return a})),n.d(e,"BOX_RANGE_ALIAS",(function(){return s})),n.d(e,"BOX_SYNC_NAME",(function(){return l})),n.d(e,"OUTLIERS_VIEW_ID",(function(){return u})),n.d(e,"DEFAULT_OPTIONS",(function(){return c}));var r,i=n(26),o=n(4),a="$$range$$",s="low-q1-median-q3-high",l="$$y_outliers$$",u="outliers_view",c=Object(o.deepAssign)({},i.Plot.getDefaultOptions(),{meta:(r={},r[a]={min:0,alias:s},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}})},function(t,e,n){"use strict";n.r(e),n.d(e,"HISTOGRAM_X_FIELD",(function(){return o})),n.d(e,"HISTOGRAM_Y_FIELD",(function(){return a})),n.d(e,"DEFAULT_OPTIONS",(function(){return s}));var r=n(26),i=n(4),o="range",a="count",s=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},function(t,e,n){!function(t){"use strict";function e(t){for(var e=new Array(t),n=0;nu+s*a*c||h>=g)p=a;else{if(Math.abs(f)<=-l*c)return a;f*(p-d)>=0&&(p=d),d=a,g=h}return 0}a=a||1,s=s||1e-6,l=l||.1;for(var v=0;v<10;++v){if(o(i.x,1,r.x,a,e),h=i.fx=t(i.x,i.fxprime),f=n(i.fxprime,e),h>u+s*a*c||v&&h>=d)return g(p,a,d);if(Math.abs(f)<=-l*c)return a;if(f>=0)return g(a,p,h);d=h,p=a,a*=2}return a}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),s=t(n),l=n-e;if(a*s>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var u=0;u=0&&(e=c),Math.abs(l)=g[p-1].fx){var M=!1;if(x.fx>T.fx?(o(w,1+d,_,-d,T),w.fx=t(w),w.fx=1)break;for(v=1;v2&&void 0!==arguments[2]?arguments[2]:0;i()(this,t),l()(this,"x",void 0),l()(this,"y",void 0),l()(this,"z",void 0),this.x=+e,this.y=+n,this.z=+r}return a()(t,[{key:"toLngLat",value:function(){return new u.default(g(this.x),v(this.y))}},{key:"toAltitude",value:function(){return m(this.z,this.y)}},{key:"meterInMercatorCoordinateUnits",value:function(){return 1/c*y(v(this.y))}}],[{key:"fromLngLat",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=u.default.convert(e);return new t(d(r.lng),f(r.lat),p(n,r.lat))}}]),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var r=n(160),i=function(){function t(t,e){this.key=t,this.value=e}return t.prototype.toString=function(){return this.key===r.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},t}();e.Metadata=i},function(t,e,n){"use strict";n.r(e);var r=n(390),i=n(131);e.default=function(t){if(!Object(r.default)(t)||!Object(i.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";n.r(e);var r=n(132);n.d(e,"Base",(function(){return r.default}));var i=n(1075);n.d(e,"Circle",(function(){return i.default}));var o=n(1076);n.d(e,"Ellipse",(function(){return o.default}));var a=n(1077);n.d(e,"Image",(function(){return a.default}));var s=n(1078);n.d(e,"Line",(function(){return s.default}));var l=n(1079);n.d(e,"Marker",(function(){return l.default}));var u=n(1080);n.d(e,"Path",(function(){return u.default}));var c=n(1081);n.d(e,"Polygon",(function(){return c.default}));var h=n(1082);n.d(e,"Polyline",(function(){return h.default}));var d=n(1083);n.d(e,"Rect",(function(){return d.default}));var f=n(1084);n.d(e,"Text",(function(){return f.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return g})),n.d(e,"legend",(function(){return m})),n.d(e,"adaptor",(function(){return _}));var r=n(2),i=n(1),o=n(9),a=n(1631),s=n(1632),l=n(34),u=n(243),c=n(712),h=n(4),d=n(226);function f(t){var e=t.options,n=e.legend,i=e.seriesField,o=e.isStack;return i?!1!==n&&(n=Object(r.__assign)({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function p(t){var e=t.chart,n=t.options,i=n.data,o=n.columnStyle,a=n.color,s=n.columnWidthRatio,u=n.isPercent,c=n.isGroup,f=n.isStack,p=n.xField,g=n.yField,v=n.seriesField,m=n.groupField,y=n.tooltip,b=n.shape,_=u&&c&&f?Object(d.getDeepPercent)(i,g,[p,m],g):Object(d.getDataWhetherPercentage)(i,g,p,g,u),x=[];f&&v&&!c?_.forEach((function(t){var e=x.find((function(e){return e[p]===t[p]&&e[v]===t[v]}));e?e[g]+=t[g]||0:x.push(Object(r.__assign)({},t))})):x=_,e.data(x);var w=u?Object(r.__assign)({formatter:function(t){return{name:c&&f?t[v]+" - "+t[m]:t[v]||t[p],value:(100*Number(t[g])).toFixed(2)+"%"}}},y):y,O=Object(h.deepAssign)({},t,{options:{data:x,widthRatio:s,tooltip:w,interval:{shape:b,style:o,color:a}}});return Object(l.interval)(O),O}function g(t){var e,n,i=t.options,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,c=i.data,d=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(h.flow)(Object(o.scale)(((e={})[l]=a,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=Object(r.__assign)(Object(r.__assign)({},Object(h.adjustYMetaByZero)(c,u)),d),n)))(t)}function v(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function m(t){var e=t.chart,n=t.options,r=n.legend,i=n.seriesField;return r&&i?e.legend(i,r):!1===r&&e.legend(!1),t}function y(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,a=n.isRange,s=Object(h.findGeometry)(e,"interval");if(i){var l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(r.__assign)({layout:(null==u?void 0:u.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(h.transformLabel)(a?Object(r.__assign)({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},u):u))})}else s.label(!1);return t}function b(t){var e=t.chart,n=t.options,o=n.tooltip,a=n.isGroup,s=n.isStack,l=n.groupField,u=n.data,c=n.xField,d=n.yField,f=n.seriesField;if(!1===o)e.tooltip(!1);else{var p=o;if(a&&s){var g=(null==p?void 0:p.formatter)||function(t){return{name:t[f]+" - "+t[l],value:t[d]}};p=Object(r.__assign)(Object(r.__assign)({},p),{customItems:function(t){var e=[];return Object(i.each)(t,(function(t){Object(i.filter)(u,(function(e){return Object(i.isMatch)(e,Object(h.pick)(t.data,[c,f]))})).forEach((function(n){e.push(Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{value:n[d],data:n,mappingData:{_origin:n}}),g(n)))}))})),e}})}e.tooltip(p)}return t}function _(t,e){void 0===e&&(e=!1);var n=t.options,r=n.seriesField;return Object(h.flow)(f,o.theme,Object(u.pattern)("columnStyle"),o.state,Object(o.transformations)("rect"),p,g,v,m,b,o.slider,o.scrollbar,y,c.brushInteraction,o.interaction,o.animation,Object(o.annotation)(),Object(a.conversionTag)(n.yField,!e,!!r),Object(s.connectedArea)(!n.isStack),o.limitInPlot)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"adaptor",(function(){return h}));var r=n(9),i=n(4),o=n(34),a=n(166),s=n(227),l=n(354);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.areaStyle,c=n.point,h=n.line,d=null==c?void 0:c.state,f=Object(s.getTinyData)(r);e.data(f);var p=Object(i.deepAssign)({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,area:{color:l,style:u},line:h,point:c}}),g=Object(i.deepAssign)({},p,{options:{tooltip:!1}}),v=Object(i.deepAssign)({},p,{options:{tooltip:!1,state:d}});return Object(o.area)(p),Object(o.line)(g),Object(o.point)(v),e.axis(!1),e.legend(!1),t}function c(t){var e,n,o=t.options,u=o.xAxis,c=o.yAxis,h=o.data,d=Object(s.getTinyData)(h);return Object(i.flow)(Object(r.scale)(((e={})[a.X_FIELD]=u,e[a.Y_FIELD]=c,e),((n={})[a.X_FIELD]={type:"cat"},n[a.Y_FIELD]=Object(l.adjustYMetaByZero)(d,a.Y_FIELD),n)))(t)}function h(t){return Object(i.flow)(Object(r.pattern)("areaStyle"),u,c,r.tooltip,r.theme,r.animation,Object(r.annotation)())(t)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i={},o=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(t,e){var n=[];r.each(i,(function(r,i){var o=r.create(t,e);n=n.concat(o||[])})),this._coordinateSystems=n},t.prototype.update=function(t,e){r.each(this._coordinateSystems,(function(n){n.update&&n.update(t,e)}))},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(t,e){i[t]=e},t.get=function(t){return i[t]},t}();e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"createGridClipPath",(function(){return l})),n.d(e,"createPolarClipPath",(function(){return u})),n.d(e,"createClipPath",(function(){return c}));var r=n(70),i=n(23),o=n(174),a=n(6),s=n(0);function l(t,e,n,o,a){var l=t.getArea(),u=l.x,c=l.y,h=l.width,d=l.height,f=n.get(["lineStyle","width"])||2;u-=f/2,c-=f/2,h+=f,d+=f,u=Math.floor(u),h=Math.round(h);var p=new r.default({shape:{x:u,y:c,width:h,height:d}});if(e){var g=t.getBaseAxis(),v=g.isHorizontal(),m=g.inverse;v?(m&&(p.shape.x+=h),p.shape.width=0):(m||(p.shape.y+=d),p.shape.height=0);var y=Object(s.isFunction)(a)?function(t){a(t,p)}:null;i.initProps(p,{shape:{width:h,height:d,x:u,y:c}},n,null,o,y)}return p}function u(t,e,n){var r=t.getArea(),s=Object(a.round)(r.r0,1),l=Object(a.round)(r.r,1),u=new o.default({shape:{cx:Object(a.round)(t.cx,1),cy:Object(a.round)(t.cy,1),r0:s,r:l,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});e&&("angle"===t.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(t,e,n,r,i){return t?"polar"===t.type?u(t,e,n):"cartesian2d"===t.type?l(t,e,n,r,i):null:null}},function(t,e,n){"use strict";n.r(e),n.d(e,"registerLocale",(function(){return s})),n.d(e,"getLocale",(function(){return l}));var r=n(1),i=n(4),o=n(627),a={};function s(t,e){a[t]=e}function l(t){return{get:function(e,n){return Object(i.template)(Object(r.get)(a[t],e)||Object(r.get)(a[o.GLOBAL.locale],e)||Object(r.get)(a["en-US"],e)||e,n)}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createVisualMappings",(function(){return l})),n.d(e,"replaceVisualOption",(function(){return u})),n.d(e,"applyVisual",(function(){return c})),n.d(e,"incrementalApplyVisual",(function(){return h}));var r=n(0),i=n(127),o=n(185),a=r.each;function s(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function l(t,e,n){var o={};return a(e,(function(e){var s,l=o[e]=((s=function(){}).prototype.__hidden=s.prototype,new s);a(t[e],(function(t,o){if(i.default.isValidType(o)){var a={type:o,visual:t};n&&n(a,e),l[o]=new i.default(a),"opacity"===o&&((a=r.clone(a)).type="colorAlpha",l.__hidden.__alphaForOpacity=new i.default(a))}}))})),o}function u(t,e,n){var i;r.each(n,(function(t){e.hasOwnProperty(t)&&s(e[t])&&(i=!0)})),i&&r.each(n,(function(n){e.hasOwnProperty(n)&&s(e[n])?t[n]=r.clone(e[n]):delete t[n]}))}function c(t,e,n,a,s,l){var u,c={};function h(t){return Object(o.getItemVisualFromData)(n,u,t)}function d(t,e){Object(o.setItemVisualFromData)(n,u,t,e)}function f(t,r){u=null==l?t:r;var i=n.getRawDataItem(u);if(!i||!1!==i.visualMap)for(var o=a.call(s,t),f=e[o],p=c[o],g=0,v=p.length;ge&&o>r||oi?s:0}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"CROSSHAIR_LINE",(function(){return i})),n.d(e,"CROSSHAIR_TEXT",(function(){return o}));var r="g2-crosshair",i=r+"-line",o=r+"-text"},function(t,e,n){"use strict";var r,i;n.r(e),n.d(e,"AxisType",(function(){return r})),n.d(e,"DualAxesGeometry",(function(){return i})),function(t){t.Left="Left",t.Right="Right"}(r||(r={})),function(t){t.Line="line",t.Column="column"}(i||(i={}))},function(t,e,n){"use strict";n.r(e),n.d(e,"findInteraction",(function(){return s})),n.d(e,"enableInteraction",(function(){return l})),n.d(e,"enableDrillInteraction",(function(){return u})),n.d(e,"resetDrillDown",(function(){return c})),n.d(e,"transformData",(function(){return h}));var r=n(2),i=n(1),o=n(360),a=n(726);function s(t,e){if(Object(i.isArray)(t))return t.find((function(t){return t.type===e}))}function l(t,e){var n=s(t,e);return n&&!1!==n.enable}function u(t){var e=t.interactions,n=t.drilldown;return Object(i.get)(n,"enabled")||l(e,"treemap-drill-down")}function c(t){var e=t.interactions["drill-down"];e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()}function h(t){var e=t.data,n=t.colorField,s=t.enableDrillDown,l=t.hierarchyConfig,u=Object(a.treemap)(e,Object(r.__assign)(Object(r.__assign)({},l),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return u.forEach((function(t){if(0===t.depth)return null;if(s&&1!==t.depth)return null;if(!s&&t.children)return null;var a=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),u=s&&Object(i.isArray)(e.path)?a.concat(e.path.slice(1)):a,h=Object.assign({},t.data,Object(r.__assign)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:u},t));if(!t.data[n]&&t.parent){var d=t.ancestors().find((function(t){return t.data[n]}));h[n]=null==d?void 0:d.data[n]}else h[n]=t.data[n];h[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:l,colorField:n,enableDrillDown:s},c.push(h)})),c}},function(t,e,n){"use strict";n.r(e),n.d(e,"X_FIELD",(function(){return i})),n.d(e,"Y_FIELD",(function(){return o})),n.d(e,"NODE_COLOR_FIELD",(function(){return a})),n.d(e,"EDGE_COLOR_FIELD",(function(){return s})),n.d(e,"DEFAULT_OPTIONS",(function(){return l}));var r=n(1),i="x",o="y",a="name",s="source",l={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:(t[0]+t[1])/2>.5?-4:4,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(r.get)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+t.target,value:t.value}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05}},function(t,e,n){"use strict";n.r(e),n.d(e,"createMat4",(function(){return i})),n.d(e,"transformVector",(function(){return o})),n.d(e,"mod",(function(){return a})),n.d(e,"lerp",(function(){return s}));var r=n(158);function i(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function o(t,e){var n=r.transformMat4([],e,t);return r.scale(n,n,1/n[3]),n}function a(t,e){var n=t%e;return n<0?e+n:n}function s(t,e,n){return n*e+(1-n)*t}},function(t,e,n){"use strict";e.__esModule=!0,e.isEmpty=e.isEqual=e.arrayEquals=e.looseEqual=e.capitalize=e.kebabCase=e.autoprefixer=e.isFirefox=e.isEdge=e.isIE=e.coerceTruthyValueToArray=e.arrayFind=e.arrayFindIndex=e.escapeRegexpString=e.valueEquals=e.generateId=e.getValueByPath=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.noop=function(){},e.hasOwn=function(t,e){return l.call(t,e)},e.toObject=function(t){for(var e={},n=0;n0&&void 0!==arguments[0]?arguments[0]:"";return String(t).replace(/[|\\{}()[\]^$+*?.]/g,"\\$&")};var c=e.arrayFindIndex=function(t,e){for(var n=0;n!==t.length;++n)if(e(t[n]))return n;return-1},h=(e.arrayFind=function(t,e){var n=c(t,e);return-1!==n?t[n]:void 0},e.coerceTruthyValueToArray=function(t){return Array.isArray(t)?t:t?[t]:[]},e.isIE=function(){return!a.default.prototype.$isServer&&!isNaN(Number(document.documentMode))},e.isEdge=function(){return!a.default.prototype.$isServer&&navigator.userAgent.indexOf("Edge")>-1},e.isFirefox=function(){return!a.default.prototype.$isServer&&!!window.navigator.userAgent.match(/firefox/i)},e.autoprefixer=function(t){if("object"!==(void 0===t?"undefined":r(t)))return t;var e=["ms-","webkit-"];return["transform","transition","animation"].forEach((function(n){var r=t[n];n&&r&&e.forEach((function(e){t[e+n]=r}))})),t},e.kebabCase=function(t){var e=/([^-])([A-Z])/g;return t.replace(e,"$1-$2").replace(e,"$1-$2").toLowerCase()},e.capitalize=function(t){return(0,s.isString)(t)?t.charAt(0).toUpperCase()+t.slice(1):t},e.looseEqual=function(t,e){var n=(0,s.isObject)(t),r=(0,s.isObject)(e);return n&&r?JSON.stringify(t)===JSON.stringify(e):!n&&!r&&String(t)===String(e)}),d=e.arrayEquals=function(t,e){if(e=e||[],(t=t||[]).length!==e.length)return!1;for(var n=0;n=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new r(e),s.key=t,n.insertEntry(s),i[t]=s}return o},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(39),i=n(23),o=n(14),a=n(332),s=n(0),l=n(27);function u(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function c(t){return null==t||Object(s.isObject)(t)||(t={isIgnore:t}),t||{}}function h(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Object(l.getLabelStatesModels)(e),cursorStyle:e.get("cursor")}}var d=function(){function t(t){this.group=new r.default,this._SymbolCtor=t||a.default}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=c(e);var n=this.group,r=t.hostModel,o=this._data,a=this._SymbolCtor,s=e.disableAnimation,l=h(t),d={disableAnimation:s},f=e.getSymbolPoint||function(e){return t.getItemLayout(e)};o||n.removeAll(),t.diff(o).add((function(r){var i=f(r);if(u(t,i,r,e)){var o=new a(t,r,l,d);o.setPosition(i),t.setItemGraphicEl(r,o),n.add(o)}})).update((function(c,h){var p=o.getItemGraphicEl(h),g=f(c);if(u(t,g,c,e)){var v=t.getItemVisual(c,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==v)n.remove(p),(p=new a(t,c,l,d)).setPosition(g);else{p.updateData(t,c,l,d);var y={x:g[0],y:g[1]};s?p.attr(y):i.updateProps(p,y,r)}n.add(p),t.setItemGraphicEl(c,p)}else n.remove(p)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),r)})).execute(),this._getSymbolPoint=f,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var r=t._getSymbolPoint(n);e.setPosition(r),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=h(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function r(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=c(n);for(var i=t.start;i=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();e.default=r},function(t,e,n){"use strict";function r(t){return{seriesType:t,reset:function(t,e){var n=e.findComponents({mainType:"legend"});if(n&&n.length){var r=t.getData();r.filterSelf((function(t){for(var e=r.getName(t),i=0;i3?1.4:i>1?1.2:1.1;u(this,"zoom","zoomOnMouseWheel",t,{scale:r>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(r);u(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(r>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){a.isTaken(this._zr,"globalPan")||u(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(i.default);function u(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(o.stop(r.event),c(t,e,n,r,i))}function c(t,e,n,r,i){i.isAvailableBehavior=Object(s.bind)(h,null,n,r),t.trigger(e,i)}function h(t,e,n){var r=n[t];return!t||r&&(!Object(s.isString)(r)||e.event[r+"Key"])}e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return i})),n.d(e,"__assign",(function(){return o})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return h})),n.d(e,"__createBinding",(function(){return d})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return g})),n.d(e,"__spread",(function(){return v})),n.d(e,"__spreadArrays",(function(){return m})),n.d(e,"__await",(function(){return y})),n.d(e,"__asyncGenerator",(function(){return b})),n.d(e,"__asyncDelegator",(function(){return _})),n.d(e,"__asyncValues",(function(){return x})),n.d(e,"__makeTemplateObject",(function(){return w})),n.d(e,"__importStar",(function(){return O})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return C})),n.d(e,"__classPrivateFieldSet",(function(){return E})); /*! ***************************************************************************** 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(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,r){e(n,r,t)}}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{l(r.next(t))}catch(t){o(t)}}function s(t){try{l(r.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=a.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof y?Promise.resolve(n.value.v).then(l,u):c(o[0][2],n)}catch(t){c(o[0][3],t)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:y(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function x(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}}function w(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function O(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function C(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function E(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";function r(t){return"number"==typeof t&&!isNaN(t)}function i(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}n.r(e),n.d(e,"isRealNumber",(function(){return r})),n.d(e,"isBetween",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Event",(function(){return u}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(3),l=n.n(s),u=i()((function t(e,n){a()(this,t),l()(this,"cancelBubble",void 0),l()(this,"cancelable",void 0),l()(this,"target",void 0),l()(this,"currentTarget",void 0),l()(this,"preventDefault",void 0),l()(this,"stopPropagation",void 0),l()(this,"type",void 0),l()(this,"timeStamp",void 0),this.cancelBubble=!1,this.cancelable=!1,this.target=null,this.currentTarget=null,this.preventDefault=function(){},this.stopPropagation=function(){},this.type=e,this.timeStamp=Date.now()}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SimpleMapCoord",(function(){return u}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=function(){function t(e){i()(this,t),l()(this,"size",1e4),this.size=e||1e4}return a()(t,[{key:"setSize",value:function(t){this.size=t}},{key:"getSize",value:function(){return[this.size,this.size]}},{key:"mercatorXfromLng",value:function(t){return(180+t)/360*this.size}},{key:"mercatorYfromLat",value:function(t){return(1-(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360)*this.size}},{key:"lngFromMercatorX",value:function(t){return t/this.size*360-180}},{key:"latFromMercatorY",value:function(t){var e=180-360*(1-t/this.size);return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}},{key:"project",value:function(t){return[this.mercatorXfromLng(t[0]),this.mercatorYfromLat(t[1])]}},{key:"unproject",value:function(t){return[this.lngFromMercatorX(t[0]),this.latFromMercatorY(t[1])]}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return b}));var r,i,o,a=n(45),s=n.n(a),l=n(11),u=n.n(l),c=n(12),h=n.n(c),d=n(3),f=n.n(d),p=n(42),g=n.n(p),v=(n(182),n(67));function m(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function y(t){for(var e=1;ee)return t[r];return t[n-1]}(r,a):n;if((c=c||n)&&c.length){var h=c[l];return i&&(u[i]=h),s.paletteIdx=(l+1)%c.length,h}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return u}));var r=n(5),i=n(668),o=n(33),a=n(536),s=n(1301),l=n(0);function u(t,e,n,u){Object(l.each)(s.AXIS_TYPES,(function(s,h){var d=Object(l.merge)(Object(l.merge)({},i.default[h],!0),u,!0),f=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+h,n}return Object(r.__extends)(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=Object(o.fetchLayoutMode)(this),r=n?Object(o.getLayoutParams)(t):{},i=e.getTheme();Object(l.merge)(t,i.get(h+"Axis")),Object(l.merge)(t,this.getDefaultOption()),t.type=c(t),n&&Object(o.mergeLayoutParam)(t,r,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=a.default.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+h,n.defaultOption=d,n}(n);t.registerComponentModel(f)})),t.registerSubTypeDefaulter(e+"Axis",c)}function c(t){return t.type||(t.data?"category":"value")}},function(t,e,n){"use strict";n.r(e),n.d(e,"getShapeAttrs",(function(){return l})),n.d(e,"getConstraint",(function(){return u}));var r=n(1),i=n(194),o=n(68),a=n(172);function s(t,e,n,i,o){var s=[];if(t.length){for(var l=[],u=[],c=0,h=t.length;c0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}function l(t,e,n,r,a){for(var l=Object(o.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,h=t.points,d=t.showSinglePoint,f=Object(i.getPathPoints)(h,u,d),p=[],g=0,v=f.length;g=0;--o)l.push(r=i[o]=new x(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(_)}function m(t){return t.children}function y(t){return Array.isArray(t)?t[1]:null}function b(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function _(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function x(t){this.data=t,this.depth=this.height=0,this.parent=null}x.prototype=v.prototype={constructor:x,count:r.default,each:i.default,eachAfter:a.default,eachBefore:o.default,find:s.default,sum:l.default,sort:u.default,path:c.default,ancestors:h.default,descendants:d.default,leaves:f.default,links:p.default,copy:function(){return v(this).eachBefore(b)},[Symbol.iterator]:g.default}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEFT_BUTTON",(function(){return a})),n.d(e,"RIGHT_BUTTON",(function(){return s})),n.d(e,"BUTTONS_FLAGS",(function(){return l})),n.d(e,"buttonStillPressed",(function(){return u}));var r,i=n(3),o=n.n(i),a=0,s=2,l=(r={},o()(r,a,1),o()(r,s,2),r);function u(t,e){var n=l[e];return void 0===t.buttons||(t.buttons&n)!==n}},function(t,e,n){"use strict";n.r(e),n.d(e,"findExistImage",(function(){return a})),n.d(e,"createOrUpdateImage",(function(){return s})),n.d(e,"isImageReady",(function(){return u}));var r=n(291),i=n(98),o=new r.default(50);function a(t){if("string"==typeof t){var e=o.get(t);return e&&e.image}return t}function s(t,e,n,r,a){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var s=o.get(t),c={hostEl:n,cb:r,cbPayload:a};if(s)!u(e=s.image)&&s.pending.push(c);else{var h=i.platformApi.loadImage(t,l,l);h.__zrImageSrc=t,o.put(t,h.__cachedImgObj={image:h,pending:[c]})}return e}return t}return e}function l(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;en&&(t=i,n=a)}if(t)return function(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s0&&o&&w(-h/a,0,a);var v,m,y=t[0],b=t[a-1];return _(),v<0&&O(-v,.8),m<0&&O(m,.8),_(),x(v,m,1),x(m,v,-1),_(),v<0&&S(-v),m<0&&S(m),u}function _(){v=y.rect[e]-r,m=i-b.rect[e]-b.rect[n]}function x(t,e,n){if(t<0){var r=Math.min(e,-t);if(r>0){w(r*n,0,a);var i=r+t;i<0&&O(-i*n,1)}else O(-t*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){w(-(o[l-1]*h),l,a)}}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),(t-=n)<=0)return}}function s(t,e,n,r){return a(t,"x","width",e,n,r)}function l(t,e,n,r){return a(t,"y","height",e,n,r)}function u(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new i.default(0,0,0,0);function o(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var a=0;a2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n},l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},u=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,s=t+n*Math.cos(-r*a),l=t+n*Math.cos(-i*a);o=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*a)]]}else o=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return o},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,h=0;"M"===t[0][0]&&(a=i=+t[0][1],c=o=+t[0][2],h++,r[0]=["M",i,o]);for(var d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,p=void 0,g=h,v=t.length;g1&&(n*=w=Math.sqrt(w),r*=w);var O=n*n,S=r*r,C=(o===a?-1:1)*Math.sqrt(Math.abs((O*S-O*x*x-S*_*_)/(O*x*x+S*_*_)));p=C*n*x/r+(t+s)/2,g=C*-r*_/n+(e+l)/2,h=Math.asin(((e-g)/r).toFixed(9)),d=Math.asin(((l-g)/r).toFixed(9)),h=td&&(h-=2*Math.PI),!a&&d>h&&(d-=2*Math.PI)}var E=d-h;if(Math.abs(E)>v){var T=d,M=s,A=l;d=h+v*(a&&d>h?1:-1),s=p+n*Math.cos(d),l=g+r*Math.sin(d),y=f(s,l,n,r,i,0,a,M,A,[d,T,p,g])}E=d-h;var I=Math.cos(h),j=Math.sin(h),k=Math.cos(d),P=Math.sin(d),L=Math.tan(E/4),D=4/3*n*L,R=4/3*r*L,N=[t,e],F=[t+D*j,e-R*I],B=[s+D*P,l-R*k],z=[s,l];if(F[0]=2*N[0]-F[0],F[1]=2*N[1]-F[1],u)return[F,B,z].concat(y);for(var V=[],U=0,G=(y=[F,B,z].concat(y).join().split(",")).length;U7){t[e].shift();for(var o=t[e];o.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},m=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var y=0;y1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,f=0;f<12;f++){var p=u*c[f]+u,g=m(p,t,n,i,a),v=m(p,e,r,o,s),y=g*g+v*v;d+=h[f]*Math.sqrt(y)}return u*d},b=function(t,e,n,r,i,o,a,s){for(var l,u,c,h,d=[],f=[[],[]],p=0;p<2;++p)if(0===p?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*a,c=3*n-3*t):(u=6*e-12*r+6*o,l=-3*e+9*r-9*o+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(h=-c/u)>0&&h<1&&d.push(h)}else{var g=u*u-4*c*l,v=Math.sqrt(g);if(!(g<0)){var m=(-u+v)/(2*l);m>0&&m<1&&d.push(m);var y=(-u-v)/(2*l);y>0&&y<1&&d.push(y)}}for(var b,_=d.length,x=_;_--;)b=1-(h=d[_]),f[0][_]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,f[1][_]=b*b*b*e+3*b*b*h*r+3*b*h*h*o+h*h*h*s;return f[0][x]=t,f[1][x]=e,f[0][x+1]=a,f[1][x+1]=s,f[0].length=f[1].length=x+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},_=function(t,e,n,r,i,o,a,s){if(!(Math.max(t,n)Math.max(i,a)||Math.max(e,r)Math.max(o,s))){var l=(t-n)*(o-s)-(e-r)*(i-a);if(l){var u=((t*r-e*n)*(i-a)-(t-n)*(i*s-o*a))/l,c=((t*r-e*n)*(o-s)-(e-r)*(i*s-o*a))/l,h=+u.toFixed(2),d=+c.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,a).toFixed(2)||h>+Math.max(i,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:u,y:c}}}},x=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},w=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=v,o},O=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:w(t,e,n,r),vb:[t,e,n,r].join(" ")}},S=function(t,e,n,i,o,a,s,l){Object(r.isArray)(t)||(t=[t,e,n,i,o,a,s,l]);var u=b.apply(null,t);return O(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},C=function(t,e,n,r,i,o,a,s,l){var u=1-l,c=Math.pow(u,3),h=Math.pow(u,2),d=l*l,f=d*l,p=t+2*l*(n-t)+d*(i-2*n+t),g=e+2*l*(r-e)+d*(o-2*r+e),v=n+2*l*(i-n)+d*(a-2*i+n),m=r+2*l*(o-r)+d*(s-2*o+r);return{x:c*t+3*h*l*n+3*u*l*l*i+f*a,y:c*e+3*h*l*r+3*u*l*l*o+f*s,m:{x:p,y:g},n:{x:v,y:m},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*a,y:u*o+l*s},alpha:90-180*Math.atan2(p-v,g-m)/Math.PI}},E=function(t,e,n){if(!function(t,e){return t=O(t),e=O(e),x(e,t.x,t.y)||x(e,t.x2,t.y)||x(e,t.x,t.y2)||x(e,t.x2,t.y2)||x(t,e.x,e.y)||x(t,e.x2,e.y)||x(t,e.x,e.y2)||x(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)}(S(t),S(e)))return n?0:[];for(var r=~~(y.apply(0,t)/8),i=~~(y.apply(0,e)/8),o=[],a=[],s={},l=n?0:[],u=0;u=0&&w<=1&&E>=0&&E<=1&&(n?l+=1:l.push({x:b.x,y:b.y,t1:w,t2:E}))}}return l},T=function(t,e){return function(t,e,n){var r,i,o,a,s,l,u,c,h,d;t=p(t),e=p(e);for(var f=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},I=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;l--)a=o[l].index,"add"===o[l].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var h=i-(r=t.length);if(r0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=L(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";function r(t,e,n,r,i,o,a){if(0===i)return!1;var s=i,l=0;if(a>e+s&&a>r+s||at+s&&o>n+s||o1||e<0||t.length<2)return null;var n=o(t),i=n.segments,a=n.totalLength;if(0===a)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u=s&&e<=s+f){var p=(e-s)/f;l=r.default.pointAt(h[0],h[1],d[0],d[1],p);break}s+=f}return l}function l(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=o(t),r=n.segments,i=n.totalLength,a=0,s=0,l=0;l=a&&e<=a+d){s=Math.atan2(h[1]-c[1],h[0]-c[0]);break}a+=d}return s}function u(t,e,n){for(var i=1/0,o=0;o=s.left?a.left:s.left;r.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,h),i.autoPadding=n.instance(a.bottom/2+5,s.right,s.bottom,h)}if(!o(u)&&"top"===c){h=a.left>=s.left?a.left:s.left;r.autoPadding=n.instance(a.top,a.right,0,h),i.autoPadding=n.instance(0,s.right,a.top,h)}}},function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error(e||"viewport-mercator-project: assertion failed.")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"applyMorphAnimation",(function(){return h})),n.d(e,"getPathList",(function(){return d}));var r=n(566),i=n(36),o=n(0),a=n(23),s=n(248);function l(t){return Object(o.isArray)(t[0])}function u(t,e){for(var n=[],r=t.length,i=0;i=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var c={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r0){var f,p,g=i.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);l(t)&&(f=t,p=e),l(e)&&(f=e,p=t);for(var m=f?f===t:t.length>e.length,y=f?u(p,f):u(m?e:t,[m?t:e]),b=0,_=0;_-1}var p=e.getStyle=u<9?function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="styleFloat");try{switch(e){case"opacity":try{return t.filters.item("alpha").opacity/100}catch(t){return 1}default:return t.style[e]||t.currentStyle?t.currentStyle[e]:null}}catch(n){return t.style[e]}}}:function(t,e){if(!a){if(!t||!e)return null;"float"===(e=c(e))&&(e="cssFloat");try{var n=document.defaultView.getComputedStyle(t,"");return t.style[e]||n?n[e]:null}catch(n){return t.style[e]}}};var g=e.isScroll=function(t,e){if(!a)return p(t,null!=e?e?"overflow-y":"overflow-x":"overflow").match(/(scroll|auto|overlay)/)};e.getScrollContainer=function(t,e){if(!a){for(var n=t;n;){if([window,document,document.documentElement].includes(n))return window;if(g(n,e))return n;n=n.parentNode}return n}},e.isInContainer=function(t,e){if(a||!t||!e)return!1;var n=t.getBoundingClientRect(),r=void 0;return r=[window,document,document.documentElement,null,void 0].includes(e)?{top:0,right:window.innerWidth,bottom:window.innerHeight,left:0}:e.getBoundingClientRect(),n.topr.top&&n.right>r.left&&n.left0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Object(s.createObject)(u,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Object(o.getBoundingRect)(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var r=t.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(i.default);c.prototype.type="tspan",e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"DataFormatMixin",(function(){return s})),n.d(e,"normalizeTooltipFormatResult",(function(){return l}));var r=n(0),i=n(171),o=n(48),a=/\{@(.+?)\}/g,s=function(){function t(){}return t.prototype.getDataParams=function(t,e){var n=this.getData(e),r=this.getRawValue(t,e),i=n.getRawIndex(t),o=n.getName(t),a=n.getRawDataItem(t),s=n.getItemVisual(t,"style"),l=s&&s[n.getItemVisual(t,"drawType")||"fill"],u=s&&s.stroke,c=this.mainType,h="series"===c,d=n.userOutput&&n.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:a,dataType:e,value:r,color:l,borderColor:u,dimensionNames:d?d.fullDimensions:null,encode:d?d.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,n,s,l,u){e=e||"normal";var c=this.getData(n),h=this.getDataParams(t,n);(u&&(h.value=u.interpolatedValue),null!=s&&r.isArray(h.value)&&(h.value=h.value[s]),l)||(l=c.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"]));return r.isFunction(l)?(h.status=e,h.dimensionIndex=s,l(h)):r.isString(l)?Object(o.formatTpl)(l,h).replace(a,(function(e,n){var o=n.length,a=n;"["===a.charAt(0)&&"]"===a.charAt(o-1)&&(a=+a.slice(1,o-1));var s=Object(i.retrieveRawValue)(c,t,a);if(u&&r.isArray(u.interpolatedValue)){var l=c.getDimensionIndex(a);l>=0&&(s=u.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Object(i.retrieveRawValue)(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function l(t){var e,n;return r.isObject(t)?t.type&&(n=t):e=t,{text:e,frag:n}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createOrUpdatePatternFromDecal",(function(){return f}));var r=n(1277),i=n(291),o=n(0),a=n(6),s=n(60),l=n(249),u=n(98),c=new r.default,h=new i.default(100),d=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function f(t,e){if("none"===t)return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i="svg"===r.painter.type;t.dirty&&c.delete(t);var f=c.get(t);if(f)return f;var g=Object(o.defaults)(t,{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"===g.backgroundColor&&(g.backgroundColor=null);var v={repeat:"repeat"};return function(t){for(var e,c=[n],f=!0,v=0;v=0||t===e}function s(t){var e=l(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=c(n);null==o&&(i.status=s?"show":"hide");var u=r.getExtent().slice();u[0]>u[1]&&u.reverse(),(null==a||a>u[1])&&(a=u[1]),ao&&(o=e);var s=o%2?o+2:o+3;a=[];for(var l=0;lthis.ne.lng&&(o=this.sw.lng>=n&&n>=this.ne.lng),i&&o}}],[{key:"convert",value:function(e){return e instanceof t?e:new t(e)}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){for(var r;t&&(!e(t)||(r=t,!n));)t=t.__hostTarget||t.parent;return r}n.r(e),n.d(e,"findEventDispatcher",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SeriesDataSchema",(function(){return l})),n.d(e,"isSeriesDataSchema",(function(){return u})),n.d(e,"createDimNameMap",(function(){return c})),n.d(e,"ensureSourceDimNameMap",(function(){return h})),n.d(e,"shouldOmitUnusedDimensions",(function(){return d}));var r=n(0),i=n(10),o=n(140),a=Object(i.makeInner)(),s={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},l=function(){function t(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=h(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return Object(r.retrieve2)(this._dimNameMap.get(t),-1)},t.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},t.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Object(o.shouldRetrieveDataByName)(this.source),n=!d(t),r="",i=[],a=0,l=0;a30}},function(t,e,n){"use strict";function r(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function i(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}n.r(e),n.d(e,"updateViewOnPan",(function(){return r})),n.d(e,"updateViewOnZoom",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"SHAPES",(function(){return a})),n.d(e,"HOLLOW_SHAPES",(function(){return s})),n.d(e,"drawPoints",(function(){return l}));var r=n(2),i=n(252),o=n(68),a=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],s=["cross","tick","plus","hyphen","line"];function l(t,e,n,a,s){var l,u,c=Object(o.getStyle)(e,s,!s,"r"),h=t.parsePoints(e.points),d=h[0];if(e.isStack)d=h[1];else if(h.length>1){var f=n.addGroup();try{for(var p=Object(r.__values)(h),g=p.next();!g.done;g=p.next()){var v=g.value;f.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),v)})}}catch(t){l={error:t}}finally{try{g&&!g.done&&(u=p.return)&&u.call(p)}finally{if(l)throw l.error}}return f}return n.addShape({type:"marker",attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},c),{symbol:i.MarkerSymbols[a]||a}),d)})}},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLElement",(function(){return x}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(732),y=n(145);function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}function _(){}var x=function(t){c()(n,t);var e=b(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1?arguments[1]:void 0;return a()(this,n),t=e.call(this),v()(l()(t),"className",void 0),v()(l()(t),"children",void 0),v()(l()(t),"focus",void 0),v()(l()(t),"blur",void 0),v()(l()(t),"insertBefore",void 0),v()(l()(t),"appendChild",void 0),v()(l()(t),"removeChild",void 0),v()(l()(t),"remove",void 0),v()(l()(t),"innerHTML",void 0),v()(l()(t),"tagName",void 0),t.className="",t.children=[],t.focus=_,t.blur=_,t.insertBefore=_,t.appendChild=_,t.removeChild=_,t.remove=_,t.innerHTML="",t.tagName=r.toUpperCase(),y.parentNode(l()(t),i),y.style(l()(t)),y.classList(l()(t)),y.clientRegion(l()(t)),y.offsetRegion(l()(t)),y.scrollRegion(l()(t)),t}return i()(n)}(m.Element)},function(t,e,n){"use strict";n.r(e),n.d(e,"contain",(function(){return o}));var r=n(278);function i(t,e){return Math.abs(t-e)<1e-8}function o(t,e,n){var o=0,a=t[0];if(!a)return!1;for(var s=1;s",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return Object(a.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if(Object(o.isNil)(t)){t=this.createDom();var e=this.get("parent");Object(o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(a.hasClass)(e,n)){var r=t[n];Object(i.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.each)(r,(function(t){Object(i.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(431).default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(7),a=n(142),s=n(69),l=n(1532);function u(t){var e=0;return Object(i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],o=this.getLabelCfgs(t);return Object(i.each)(t,(function(t,a){var s=o[a];if(!s||Object(i.isNil)(t.x)||Object(i.isNil)(t.y))n.push(null);else{var l=Object(i.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;Object(i.each)(l,(function(o,a){if(Object(i.isNil)(o)||""===o)n.push(null);else{var l=Object(r.__assign)(Object(r.__assign)({},s),e.getLabelPoint(s,t,a));l.textAlign||(l.textAlign=e.getLabelAlign(l,a,u)),l.offset<=0&&(l.labelLine=null),n.push(l)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(r.__awaiter)(this,void 0,void 0,(function(){var n,i,o;return Object(r.__generator)(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),o=this.getGeometryShapes(),[4,i.render(n,o,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,o=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(i.get)(o,"innerLabels",{}):Object(i.get)(o,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,o=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(i.deepMix)({},n,o.innerLabels,t):Object(i.deepMix)({},n,o.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,s={x:0,y:0};return s[o]=e>0||1===n?r*a:r*a*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),o=t.content.length;function a(e,n,r){void 0===r&&(r=!1);var o=e;return Object(i.isArray)(o)&&(o=1===t.content.length?r?u(o):o.length<=2?o[e.length-1]:u(o):o[n]),o}var l={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(i.isArray)(e.shape)?e.shape[0]:e.shape,h="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var d=Object(s.getPolygonCentroid)(e.x,e.y);l.x=d[0],l.y=d[1]}else"interval"!==this.geometry.type||h?(l.x=a(e.x,n),l.y=a(e.y,n)):(l.x=a(e.x,n,!0),l.y=a(e.y,n));if(h){var f=Object(i.get)(e,"nextPoints"),p=Object(i.get)(e,"points");if(f){var g=r.convert(p[1]),v=r.convert(f[1]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}else if("pyramid"===c){g=r.convert(p[1]),v=r.convert(p[2]);l.x=(g.x+v.x)/2,l.y=(g.y+v.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var m=this.getLabelOffsetPoint(t,n,o);return l.start={x:l.x,y:l.y},l.x+=m.x,l.y+=m.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),a=t[o.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" ".concat(a[r.field]):"path"===n&&(s+=" ".concat(a[r.field],"-").concat(a[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,o=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:Object(i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!o&&Object(a.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,a=n.labelOption,s=n.scales,l=n.coordinate,u=a,c=u.fields,h=u.callback,d=u.cfg,f=c.map((function(t){return s[t]})),p=[];return Object(i.each)(t,(function(t,n){var a,s=t[o.FIELD_ORIGIN],u=e.getLabelText(s,f);if(h){var g=c.map((function(t){return s[t]}));if(a=h.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(g),!1)),Object(i.isNil)(a))return void p.push(null)}var v=Object(r.__assign)(Object(r.__assign)({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:l},d),a);Object(i.isFunction)(v.position)&&(v.position=v.position(s,t,n));var m=e.getLabelOffset(v.offset||0),y=e.getDefaultLabelCfg(m,v.position);(v=Object(i.deepMix)({},y,v)).offset=e.getLabelOffset(v.offset||0);var b=v.content;Object(i.isFunction)(b)?v.content=b(s,t,n):Object(i.isUndefined)(b)&&(v.content=u[0]),p.push(v)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(i.each)(e,(function(e){var r=t[e.field];r=Object(i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(124);n.d(e,"Base",(function(){return r.default}));var i=n(1086);n.d(e,"Circle",(function(){return i.default}));var o=n(1087);n.d(e,"Dom",(function(){return o.default}));var a=n(1088);n.d(e,"Ellipse",(function(){return a.default}));var s=n(1089);n.d(e,"Image",(function(){return s.default}));var l=n(1090);n.d(e,"Line",(function(){return l.default}));var u=n(1091);n.d(e,"Marker",(function(){return u.default}));var c=n(1092);n.d(e,"Path",(function(){return c.default}));var h=n(1093);n.d(e,"Polygon",(function(){return h.default}));var d=n(1094);n.d(e,"Polyline",(function(){return d.default}));var f=n(1095);n.d(e,"Rect",(function(){return f.default}));var p=n(1096);n.d(e,"Text",(function(){return p.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"adjustYMetaByZero",(function(){return s})),n.d(e,"transformDataToNodeLinkData",(function(){return l})),n.d(e,"processIllegalData",(function(){return u}));var r=n(2),i=n(1),o=n(388),a=n(625);function s(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(i.get)(t,[e]);return Object(i.isNumber)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(i.get)(t,[e])>=0})),o=n.every((function(t){return Object(i.get)(t,[e])<=0}));return r?{min:0}:o?{max:0}:{}}function l(t,e,n,i,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],l={},u=-1;return t.forEach((function(t){var c=t[e],h=t[n],d=t[i],f=Object(a.pick)(t,o);l[c]||(l[c]=Object(r.__assign)({id:++u,name:c},f)),l[h]||(l[h]=Object(r.__assign)({id:++u,name:h},f)),s.push(Object(r.__assign)({source:l[c].id,target:l[h].id,value:d},f))})),{nodes:Object.values(l).sort((function(t,e){return t.id-e.id})),links:s}}function u(t,e){var n=Object(i.filter)(t,(function(t){var n=t[e];return null===n||"number"==typeof n&&!isNaN(n)}));return Object(o.log)(o.LEVEL.WARN,n.length===t.length,"illegal data existed in chart data."),n}},function(t,e,n){"use strict";n.r(e),e.default=function(t,e,n,r,i){for(var o,a=t.children,s=-1,l=a.length,u=t.value&&(i-n)/t.value;++sthis.max&&(this.max=r),Object(i.isNil)(this.minLimit)||(this.min=n),Object(i.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.getRange)(this.values),e=t.min,n=t.max;Object(i.isNil)(this.min)&&(this.min=e),Object(i.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(i.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(n(288).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"renderTag",(function(){return l}));var r=n(2),i=n(1),o=n(231),a=n(118),s=n(44);function l(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,h=e.id,d=e.name,f=e.rotate,p=e.maxLength,g=e.autoEllipsis,v=e.isVertical,m=e.ellipsisPosition,y=e.background,b=t.addGroup({id:h+"-group",name:d+"-group",attrs:{x:n,y:l}}),_=b.addShape({type:"text",id:h,name:d,attrs:Object(r.__assign)({x:0,y:0,text:u},c)}),x=Object(s.formatPadding)(Object(i.get)(y,"padding",0));if(p&&g){var w=p-(x[1]+x[3]);Object(o.ellipsisLabel)(!v,_,w,m)}if(y){var O=Object(i.get)(y,"style",{}),S=_.getCanvasBBox(),C=S.minX,E=S.minY,T=S.width,M=S.height;b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(r.__assign)({x:C-x[3],y:E-x[0],width:T+x[1]+x[3],height:M+x[0]+x[2]},O)}).toBack()}Object(a.applyTranslate)(b,n,l),Object(a.applyRotate)(b,f,n,l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"findDataByPoint",(function(){return h})),n.d(e,"getTooltipItems",(function(){return d})),n.d(e,"findItemsFromView",(function(){return g})),n.d(e,"findItemsFromViewRecurisive",(function(){return v}));var r=n(2),i=n(1),o=n(7),a=n(155);function s(t,e,n){var r=n.translate(t),o=n.translate(e);return Object(i.isNumberEqual)(r,o)}function l(t,e,n){var r=n.coordinate,a=n.getYScale(),s=a.field,l=r.invert(e),u=a.invert(l.y);return Object(i.find)(t,(function(t){var e=t[o.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=Object(i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;oi&&(i=s)}return(i-r)/(n-1)}));function c(t){var e,n,s,l=function(t){var e=Object(i.values)(t.attributes);return Object(i.filter)(e,(function(t){return Object(i.contains)(o.GROUP_ATTRS,t.type)}))}(t);try{for(var u=Object(r.__values)(l),c=u.next();!c.done;c=u.next()){var h=c.value,d=h.getScale(h.type);if(d&&d.isLinear){var f=Object(i.get)(t.scaleDefs,d.field);if("cat"!==Object(a.inferScaleType)(d,f,h.type,t.type)){s=d;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var p=t.getXScale(),g=t.getYScale();return s||g||p}function h(t,e,n){if(0===e.length)return null;var r=n.type,a=n.getXScale(),c=n.getYScale(),h=a.field,d=c.field,f=null;if("heatmap"===r||"point"===r){for(var p=n.coordinate.invert(t),g=a.invert(p.x),v=c.invert(p.y),m=1/0,y=0;y(1+o)/2&&(s=a),r.translate(r.invert(s))}(t,n),C=w[o.FIELD_ORIGIN][h],E=w[o.FIELD_ORIGIN][d],T=O[o.FIELD_ORIGIN][h],M=c.isLinear&&Object(i.isArray)(E);if(Object(i.isArray)(C)){for(y=0;y=S){if(!M){f=L;break}Object(i.isArray)(f)||(f=[]),f.push(L)}}Object(i.isArray)(f)&&(f=l(f,t,n))}else{var A=void 0;if(a.isLinear||"timeCat"===a.type){if((S>a.translate(T)||Sa.max||SMath.abs(a.translate(A[o.FIELD_ORIGIN][h])-S)&&(O=A)}var D=u(n.getXScale());return!f&&Math.abs(a.translate(O[o.FIELD_ORIGIN][h])-S)<=D/2&&(f=O),f}function d(t,e,n,s){var l,u;void 0===n&&(n=""),void 0===s&&(s=!1);var h,d=t[o.FIELD_ORIGIN],f=function(t,e,n){var r=e.getAttribute("position").getFields(),o=e.scales,a=Object(i.isFunction)(n)||!n?r[0]:n,s=o[a],l=s?s.getText(t[a]):t[a]||a;return Object(i.isFunction)(n)?n(l,t):l}(d,e,n),p=e.tooltipOption,g=e.theme.defaultColor,v=[];function m(e,n){if(s||!Object(i.isNil)(n)&&""!==n){var r={title:f,data:d,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};v.push(r)}}if(Object(i.isObject)(p)){var y=p.fields,b=p.callback;if(b){var _=y.map((function(e){return t[o.FIELD_ORIGIN][e]})),x=b.apply(void 0,Object(r.__spreadArray)([],Object(r.__read)(_),!1)),w=Object(r.__assign)({data:t[o.FIELD_ORIGIN],mappingData:t,title:f,color:t.color||g,marker:!0},x);v.push(w)}else{var O=e.scales;try{for(var S=Object(r.__values)(y),C=S.next();!C.done;C=S.next()){var E=C.value;if(!Object(i.isNil)(d[E])){var T=O[E];m(Object(a.getName)(T),h=T.getText(d[E]))}}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=S.return)&&u.call(S)}finally{if(l)throw l.error}}}}else{var M=c(e);h=function(t,e){var n=t[e.field];return Object(i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(d,M),m(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var o=c(e);return Object(a.getName)(o)}(d,e),h)}return v}function f(t,e,n,o){var a,s,l=o.showNil,u=[],c=t.dataArray;if(!Object(i.isEmpty)(c)){t.sort(c);try{for(var f=Object(r.__values)(c),p=f.next();!p.done;p=f.next()){var g=h(e,p.value,t);if(g){var v=t.getElementId(g),m=t.elementsMap[v];if("heatmap"===t.type||m.visible){var y=d(g,t,n,l);y.length&&u.push(y)}}}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}}return u}function p(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var s=d(a.get("origin").mappingData,t,n,i);s.length&&o.push(s)}return o}function g(t,e,n){var i,o,a=[],s=t.geometries,l=n.shared,u=n.title,c=n.reversed;try{for(var h=Object(r.__values)(s),d=h.next();!d.done;d=h.next()){var g=d.value;if(g.visible&&!1!==g.tooltipOption){var v=g.type,m=void 0;(m=["point","edge","polygon"].includes(v)?p(g,e,u,n):["area","line","path","heatmap"].includes(v)||!1!==l?f(g,e,u,n):p(g,e,u,n)).length&&(c&&m.reverse(),a.push(m))}}}catch(t){i={error:t}}finally{try{d&&!d.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return a}function v(t,e,n){var i,o,a=g(t,e,n);try{for(var s=Object(r.__values)(t.views),l=s.next();!l.done;l=s.next()){var u=l.value;a=a.concat(g(u,e,n))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return a}},function(t,e,n){"use strict";n.r(e),n.d(e,"PADDING_TOP",(function(){return s})),n.d(e,"BREAD_CRUMB_NAME",(function(){return l})),n.d(e,"DEFAULT_BREAD_CRUMB_CONFIG",(function(){return u})),n.d(e,"HIERARCHY_DATA_TRANSFORM_PARAMS",(function(){return c})),n.d(e,"DrillDownAction",(function(){return h}));var r=n(2),i=n(15),o=n(1),a=n(626),s=5,l="drilldown-bread-crumb",u={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},c="hierarchy-data-transform-params",h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.name="drill-down",e.historyCache=[],e.breadCrumbGroup=null,e.breadCrumbCfg=u,e}return Object(r.__extends)(e,t),e.prototype.click=function(){var t=Object(o.get)(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),r=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+2*s)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===r&&(o={x:t.start.x,y:t.start.y});var a=i.Util.transform(null,[["t",o.x+0,o.y+n.height+s]]);e.setMatrix(a)}},e.prototype.back=function(){Object(o.size)(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(o.get)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n(Object(r.__assign)({data:t.data},t[c]));e.changeData(i);for(var a=[],s=t;s;){var l=s.data;a.unshift({id:l.name+"_"+s.height+"_"+s.depth,name:l.name,children:n(Object(r.__assign)({data:l},t[c]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(o.last)(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(o.get)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(a.deepAssign)(this.breadCrumbCfg,null==e?void 0:e.breadCrumb,this.cfg)},e.prototype.drawBreadCrumb=function(){this.drawBreadCrumbGroup(),this.resetPosition(),this.breadCrumbGroup.show()},e.prototype.drawBreadCrumbGroup=function(){var t=this,e=this.getButtonCfg(),n=this.historyCache;this.breadCrumbGroup?this.breadCrumbGroup.clear():this.breadCrumbGroup=this.context.view.foregroundGroup.addGroup({name:l});var i=0;n.forEach((function(a,s){var u=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:l+"_"+a.name+"_text",attrs:Object(r.__assign)(Object(r.__assign)({text:0!==s||Object(o.isNil)(e.rootText)?a.name:e.rootText},e.textStyle),{x:i,y:0})}),c=u.getBBox();if(i+=c.width+4,u.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(a)}})),u.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(o.last)(n))||void 0===r?void 0:r.id)?u.attr(e.activeTextStyle):u.attr({cursor:"default"})})),u.on("mouseleave",(function(){u.attr(e.textStyle)})),sr?e:t,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)r.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var r=this.keyframes,u=r.length,c=!1,h=6,d=e;if(Object(o.isArrayLike)(e)){var f=function(t){return Object(o.isArrayLike)(t&&t[0])?2:1}(e);h=f,(1===f&&!Object(o.isNumber)(e[0])||2===f&&!Object(o.isNumber)(e[0][0]))&&(c=!0)}else if(Object(o.isNumber)(e)&&!Object(o.eqNaN)(e))h=0;else if(Object(o.isString)(e))if(isNaN(+e)){var p=i.parse(e);p&&(d=p,h=3)}else h=0;else if(Object(o.isGradientObject)(e)){var g=Object(o.extend)({},d);g.colorStops=Object(o.map)(e.colorStops,(function(t){return{offset:t.offset,color:i.parse(t.color)}})),Object(l.isLinearGradient)(e)?h=4:Object(l.isRadialGradient)(e)&&(h=5),d=g}0===u?this.valType=h:h===this.valType&&6!==h||(c=!0),this.discrete=this.discrete||c;var v={time:t,value:d,rawValue:e,percent:0};return n&&(v.easing=n,v.easingFunc=Object(o.isFunction)(n)?n:a.default[n]||Object(s.createCubicEasingFunc)(n)),r.push(v),v},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=b(r),l=y(r),u=0;u=0&&!(u[n].percent<=e);n--);n=v(n,d-2)}else{for(n=g;ne);n++);n=v(n-1,d-2)}i=u[n+1],r=u[n]}if(r&&i){this._lastFr=n,this._lastFrP=e;var x=i.percent-r.percent,w=0===x?1:v((e-r.percent)/x,1);i.easingFunc&&(w=i.easingFunc(w));var O=a?this._additiveValue:p?_:t[f];if(!b(l)&&!p||O||(O=this._additiveValue=[]),this.discrete)t[f]=w<1?r.rawValue:i.rawValue;else if(b(l))1===l?h(O,r[s],i[s],w):function(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a0&&s.addKeyframe(0,v(l),r),this._trackKeys.push(a)}s.addKeyframe(t,v(e[a]),r)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,o=0;o1){var s=a.pop();i.addKeyframe(s.time,t[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();e.default=w},function(t,e,n){"use strict";n.r(e),n.d(e,"subPixelOptimizeLine",(function(){return i})),n.d(e,"subPixelOptimizeRect",(function(){return o})),n.d(e,"subPixelOptimize",(function(){return a}));var r=Math.round;function i(t,e,n){if(e){var i=e.x1,o=e.x2,s=e.y1,l=e.y2;t.x1=i,t.x2=o,t.y1=s,t.y2=l;var u=n&&n.lineWidth;return u?(r(2*i)===r(2*o)&&(t.x1=t.x2=a(i,u,!0)),r(2*s)===r(2*l)&&(t.y1=t.y2=a(s,u,!0)),t):t}}function o(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,s=e.height;t.x=r,t.y=i,t.width=o,t.height=s;var l=n&&n.lineWidth;return l?(t.x=a(r,l,!0),t.y=a(i,l,!0),t.width=Math.max(a(r+o,l,!1)-t.x,0===o?0:1),t.height=Math.max(a(i+s,l,!1)-t.y,0===s?0:1),t):t}}function a(t,e,n){if(!e)return t;var i=r(2*t);return(i+r(e))%2==0?i/2:(i+(n?1:-1))/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"createTask",(function(){return i})),n.d(e,"Task",(function(){return o}));var r=n(0);function i(t){return new o(t)}var o=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var a,s=h(this._modBy),l=this._modDataCount||0,u=h(t&&t.modBy),c=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}s===u&&l===c||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,a=this._doReset(i)),this._modBy=u,this._modDataCount=c;var d=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(a||f1&&r>0?s:a}};return o;function a(){return e=t?null:o0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");Object(i.each)([["start","startValue"],["end","endValue"]],(function(r,i){var o=null!=t[r[0]],a=null!=t[r[1]];o&&!a?e[i]="percent":!o&&a?e[i]="value":n?e[i]=n[i]:o&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(Object(a.getAxisMainType)(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,r){Object(i.each)(n.indexList,(function(n){t.call(e,r,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(Object(a.getAxisMainType)(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;Object(i.each)([["start","startValue"],["end","endValue"]],(function(r){null==t[r[0]]&&null==t[r[1]]||(e[r[0]]=n[r[0]]=t[r[0]],e[r[1]]=n[r[1]]=t[r[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;Object(i.each)(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),r=0;r=0,a=t.fill||"#000";l(i,e);var s=null==i.textFill;return o?s&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=a),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(s&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,Object(r.each)(e.rich,(function(t){l(t,t)})),i}function l(t,e){e&&(Object(r.hasOwn)(e,"fill")&&(t.textFill=e.fill),Object(r.hasOwn)(e,"stroke")&&(t.textStroke=e.fill),Object(r.hasOwn)(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Object(r.hasOwn)(e,"font")&&(t.font=e.font),Object(r.hasOwn)(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Object(r.hasOwn)(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Object(r.hasOwn)(e,"fontSize")&&(t.fontSize=e.fontSize),Object(r.hasOwn)(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Object(r.hasOwn)(e,"align")&&(t.textAlign=e.align),Object(r.hasOwn)(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Object(r.hasOwn)(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Object(r.hasOwn)(e,"width")&&(t.textWidth=e.width),Object(r.hasOwn)(e,"height")&&(t.textHeight=e.height),Object(r.hasOwn)(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Object(r.hasOwn)(e,"padding")&&(t.textPadding=e.padding),Object(r.hasOwn)(e,"borderColor")&&(t.textBorderColor=e.borderColor),Object(r.hasOwn)(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Object(r.hasOwn)(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Object(r.hasOwn)(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Object(r.hasOwn)(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Object(r.hasOwn)(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Object(r.hasOwn)(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Object(r.hasOwn)(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Object(r.hasOwn)(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Object(r.hasOwn)(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Object(r.hasOwn)(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function u(t,e){}},function(t,e,n){"use strict";n.r(e),n.d(e,"getItemAlign",(function(){return a})),n.d(e,"makeHighDownBatch",(function(){return s}));var r=n(0),i=n(33),o=[["left","right","width"],["top","bottom","height"]];function a(t,e,n){var r=t.option,a=r.align;if(null!=a&&"auto"!==a)return a;for(var s={width:e.getWidth(),height:e.getHeight()},l="horizontal"===r.orient?1:0,u=o[l],c=[0,null,10],h={},d=0;d<3;d++)h[o[1-l][d]]=c[d],h[u[d]]=2===d?n[0]:r[u[d]];var f=[["x","width",3],["y","height",0]][l],p=Object(i.getLayoutRect)(h,s,r.padding);return u[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*s[f[1]]?0:1]}function s(t,e){return r.each(t||[],(function(t){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null),t.highlightKey="visualMap"+(e?e.componentIndex:"")})),t}},function(t,e,n){"use strict";n.r(e),n.d(e,"getCPath",(function(){return i})),n.d(e,"getQPath",(function(){return o}));var r=n(1);function i(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function o(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(r.each)(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTotalValue",(function(){return o})),n.d(e,"adaptOffset",(function(){return a})),n.d(e,"isAllZero",(function(){return s}));var r=n(1),i=n(4);function o(t,e){var n=null;return Object(r.each)(t,(function(t){"number"==typeof t[e]&&(n+=t[e])})),n}function a(t,e){var n;switch(t){case"inner":return n="-30%",Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(r.isString)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(r.every)(Object(i.processIllegalData)(t,e),(function(t){return 0===t[e]}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformOptions",(function(){return c})),n.d(e,"meta",(function(){return d})),n.d(e,"tooltip",(function(){return y})),n.d(e,"adaptor",(function(){return b}));var r=n(2),i=n(1),o=n(4),a=n(34),s=n(712),l=n(9),u=n(763);function c(t){var e=t.data,n=void 0===e?[]:e,r=t.xField,i=t.yField;if(n.length){for(var a=!0,s=!0,l=n[0],c=void 0,h=1;h=0))throw new Error("precision must be a positive number");var n=Math.pow(10,e||0);return Math.round(t*n)/n}function x(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t*n}function w(t,e){void 0===e&&(e="kilometers");var n=i[e];if(!n)throw new Error(e+" units is invalid");return t/n}function O(t,e){return C(w(t,e))}function S(t){var e=t%360;return e<0&&(e+=360),e}function C(t){return 180*(t%(2*Math.PI))/Math.PI}function E(t){return t%360*Math.PI/180}function T(t,e,n){if(void 0===e&&(e="kilometers"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("length must be a positive number");return x(w(t,e),n)}function M(t,e,n){if(void 0===e&&(e="meters"),void 0===n&&(n="kilometers"),!(t>=0))throw new Error("area must be a positive number");var r=a[e];if(!r)throw new Error("invalid original units");var i=a[n];if(!i)throw new Error("invalid final units");return t/r*i}function A(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function I(t){return!!t&&t.constructor===Object}function j(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach((function(t){if(!A(t))throw new Error("bbox must only contain numbers")}))}function k(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}},function(t,e,n){!function(t){"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function n(t,e,n,r){t=t.filter((function(t,r){var i=e(t,r),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,o,a,s=t.length,l=new Float64Array(s),u=new Float64Array(s),c=0,h=0,d=0;di&&(t.splice(a+1,0,d),r=!0)}return r}}function s(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function l(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function a(a){var l=0,u=0,c=0,h=0,d=0,f=t?+t[0]:1/0,p=t?+t[1]:-1/0;r(a,n,o,(function(e,n){++l,u+=(e-u)/l,c+=(n-c)/l,h+=(e*n-h)/l,d+=(e*e-d)/l,t||(ep&&(p=e))}));var g=e(s(u,c,h,d),2),v=g[0],m=g[1],y=function(t){return m*t+v},b=[[f,y(f)],[p,y(p)]];return b.a=m,b.b=v,b.predict=y,b.rSquared=i(a,n,o,c,y),b}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(o=t,a):o},a}function u(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1==0?(t[e-1]+t[e])/2:t[Math.floor(e)]}function c(t){return(t=1-t*t*t)*t*t}function h(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function d(){var t,o=function(t){return t[0]},s=function(t){return t[1]};function l(l){var u,c,h,d,f=e(n(l,o,s),4),p=f[0],g=f[1],v=f[2],m=f[3],y=p.length,b=0,_=0,x=0,w=0,O=0;for(u=0;uT&&(T=e))}));var M=x-b*b,A=b*M-_*_,I=(O*b-w*_)/A,j=(w*M-O*_)/A,k=-I*b,P=function(t){return I*(t-=v)*t+j*t+k+m},L=a(E,T,P);return L.a=I,L.b=j-2*I*v,L.c=k-j*v+I*v*v+m,L.predict=P,L.rSquared=i(l,o,s,S,P),L}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l}t.regressionExp=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function l(l){var u=0,c=0,h=0,d=0,f=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,o,(function(e,n){var r=Math.log(n),i=e*n;++u,c+=(n-c)/u,d+=(i-d)/u,p+=(e*i-p)/u,h+=(n*r-h)/u,f+=(i*r-f)/u,t||(ev&&(v=e))}));var m=e(s(d/c,h/c,f/c,p/c),2),y=m[0],b=m[1];y=Math.exp(y);var _=function(t){return y*Math.exp(b*t)},x=a(g,v,_);return x.a=y,x.b=b,x.predict=_,x.rSquared=i(l,n,o,c,_),x}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(o=t,l):o},l},t.regressionLinear=l,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function o(o){for(var a=e(n(o,t,r,!0),4),l=a[0],d=a[1],f=a[2],p=a[3],g=l.length,v=Math.max(2,~~(i*g)),m=new Float64Array(g),y=new Float64Array(g),b=new Float64Array(g).fill(1),_=-1;++_<=2;){for(var x=[0,v-1],w=0;wl[C]-O?S:C,T=0,M=0,A=0,I=0,j=0,k=1/Math.abs(l[E]-O||1),P=S;P<=C;++P){var L=l[P],D=d[P],R=c(Math.abs(O-L)*k)*b[P],N=L*R;T+=R,M+=N,A+=D*R,I+=D*N,j+=L*N}var F=e(s(M/T,A/T,I/T,j/T),2),B=F[0],z=F[1];m[w]=B+z*O,y[w]=Math.abs(d[w]-m[w]),h(l,w+1,x)}if(2===_)break;var V=u(y);if(Math.abs(V)<1e-12)break;for(var U,G,H=0;H=1?1e-12:(G=1-U*U)*G}return function(t,e,n,r){for(var i,o=t.length,a=[],s=0,l=0,u=[];sv&&(v=e))}));var y=e(s(h,d,f,p),2),b=y[0],_=y[1],x=function(t){return _*Math.log(t)/m+b},w=a(g,v,x);return w.a=_,w.b=b,w.predict=x,w.rSquared=i(u,n,o,d,x),w}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(n=t,u):n},u.y=function(t){return arguments.length?(o=t,u):o},u.base=function(t){return arguments.length?(l=t,u):l},u},t.regressionPoly=function(){var t,o=function(t){return t[0]},s=function(t){return t[1]},u=3;function c(c){if(1===u){var h=l().x(o).y(s).domain(t)(c);return h.coefficients=[h.b,h.a],delete h.a,delete h.b,h}if(2===u){var f=d().x(o).y(s).domain(t)(c);return f.coefficients=[f.c,f.b,f.a],delete f.a,delete f.b,delete f.c,f}var p,g,v,m,y,b=e(n(c,o,s),4),_=b[0],x=b[1],w=b[2],O=b[3],S=_.length,C=[],E=[],T=u+1,M=0,A=0,I=t?+t[0]:1/0,j=t?+t[1]:-1/0;for(r(c,o,s,(function(e,n){++A,M+=(n-M)/A,t||(ej&&(j=e))})),p=0;pMath.abs(t[e][i])&&(i=n);for(r=e;r=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r=0;--i)for(a=e[i],s=1,l[i]+=a,o=1;o<=i;++o)s*=(i+1-o)/o,l[i-o]+=a*Math.pow(n,o)*s;return l[0]+=r,l}(T,k,-w,O),L.predict=P,L.rSquared=i(c,o,s,M,P),L}return c.domain=function(e){return arguments.length?(t=e,c):t},c.x=function(t){return arguments.length?(o=t,c):o},c.y=function(t){return arguments.length?(s=t,c):s},c.order=function(t){return arguments.length?(u=t,c):u},c},t.regressionPow=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function l(l){var u=0,c=0,h=0,d=0,f=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(l,n,o,(function(e,n){var r=Math.log(e),i=Math.log(n);++u,c+=(r-c)/u,h+=(i-h)/u,d+=(r*i-d)/u,f+=(r*r-f)/u,p+=(n-p)/u,t||(ev&&(v=e))}));var m=e(s(c,h,d,f),2),y=m[0],b=m[1];y=Math.exp(y);var _=function(t){return y*Math.pow(t,b)},x=a(g,v,_);return x.a=y,x.b=b,x.predict=_,x.rSquared=i(l,n,o,p,_),x}return l.domain=function(e){return arguments.length?(t=e,l):t},l.x=function(t){return arguments.length?(n=t,l):n},l.y=function(t){return arguments.length?(o=t,l):o},l},t.regressionQuad=d,Object.defineProperty(t,"__esModule",{value:!0})}(e)},function(t,e,n){"use strict";function r(t,e,n){this.$children.forEach((function(i){i.$options.componentName===t?i.$emit.apply(i,[e].concat(n)):r.apply(i,[t,e].concat([n]))}))}e.__esModule=!0,e.default={methods:{dispatch:function(t,e,n){for(var r=this.$parent||this.$root,i=r.$options.componentName;r&&(!i||i!==t);)(r=r.$parent)&&(i=r.$options.componentName);r&&r.$emit.apply(r,[e].concat(n))},broadcast:function(t,e,n){r.call(this,t,e,n)}}}},function(t,e,n){t.exports=!n(504)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.id=void 0;var r=0;e.id=function(){return r++}},function(t,e,n){"use strict";n.r(e),n.d(e,"getFacet",(function(){return a})),n.d(e,"registerFacet",(function(){return s}));var r=n(1),i=n(202);n.d(e,"Facet",(function(){return i.Facet}));var o={},a=function(t){return o[Object(r.lowerCase)(t)]},s=function(t,e){o[Object(r.lowerCase)(t)]=e}},function(t,e,n){"use strict";n.r(e);var r=n(201);n.d(e,"Attribute",(function(){return r.default}));var i=n(808);n.d(e,"Color",(function(){return i.default}));var o=n(809);n.d(e,"Opacity",(function(){return o.default}));var a=n(810);n.d(e,"Position",(function(){return a.default}));var s=n(811);n.d(e,"Shape",(function(){return s.default}));var l=n(812);n.d(e,"Size",(function(){return l.default}));var u=n(367);n.d(e,"registerAttribute",(function(){return u.registerAttribute})),n.d(e,"getAttribute",(function(){return u.getAttribute}));var c=n(583);n.d(e,"Scale",(function(){return c.Scale})),Object(u.registerAttribute)("Color",i.default),Object(u.registerAttribute)("Opacity",o.default),Object(u.registerAttribute)("Position",a.default),Object(u.registerAttribute)("Shape",s.default),Object(u.registerAttribute)("Size",l.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"left",(function(){return o})),n.d(e,"right",(function(){return a})),n.d(e,"justify",(function(){return s})),n.d(e,"center",(function(){return l}));var r=n(1);function i(t){return t.target.depth}function o(t){return t.depth}function a(t,e){return e-1-t.height}function s(t,e){return t.sourceLinks.length?t.depth:e-1}function l(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r.minBy)(t.sourceLinks,i)-1:0}},function(t,e,n){"use strict";n.r(e);var r=n(111);e.default=function(t,e){return!!Object(r.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAction",(function(){return a})),n.d(e,"getActionClass",(function(){return s})),n.d(e,"registerAction",(function(){return l})),n.d(e,"unregisterAction",(function(){return u})),n.d(e,"createCallbackAction",(function(){return c}));var r=n(1523),i=n(1),o={};function a(t,e){var n=o[t],r=null;n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init());return r}function s(t){var e=o[t];return Object(i.get)(e,"ActionClass")}function l(t,e,n){o[t]={ActionClass:e,cfg:n}}function u(t){delete o[t]}function c(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";n.r(e),n.d(e,"LEVEL",(function(){return r})),n.d(e,"invariant",(function(){return s})),n.d(e,"log",(function(){return l}));var r,i=n(2);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(r||(r={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e1?e*i+a(e,n)*(i-1):e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(i.getOffScreenContext)(),o=0;if(Object(r.isNil)(t)||""===t)return o;if(n.save(),n.font=e,Object(r.isString)(t)&&t.includes("\n")){var a=t.split("\n");Object(r.each)(a,(function(t){var e=n.measureText(t).width;op&&(p=u),y=d*d*m,(g=Math.max(p/y,y/f))>v){d-=u;break}v=g}b.push(l={value:d,dice:c1?e:1)},n}(o)},function(t,e,n){"use strict";n.r(e),n.d(e,"CtorUint32Array",(function(){return s})),n.d(e,"CtorUint16Array",(function(){return l})),n.d(e,"CtorInt32Array",(function(){return u})),n.d(e,"CtorFloat64Array",(function(){return c}));var r,i=n(0),o=n(150),a=n(140),s="undefined"==typeof Uint32Array?Array:Uint32Array,l="undefined"==typeof Uint16Array?Array:Uint16Array,u="undefined"==typeof Int32Array?Array:Int32Array,c="undefined"==typeof Float64Array?Array:Float64Array,h={float:c,int:u,ordinal:Array,number:Array,time:c};function d(t){return t>65535?s:l}function f(t,e,n,r,i){var o=h[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;um[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(t,e,n){for(var r=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=Object(i.map)(a,(function(t){return t.property})),c=0;cy[1]&&(y[1]=m)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;i=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var r=this._chunks[t],i=[];if(!r)return i;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=h,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,r=this._count;if(n===Array){t=new n(r);for(var i=0;i=c&&x<=h||isNaN(x))&&(s[l++]=g),g++}p=!0}else if(2===o){v=f[r[0]];var y=f[r[1]],b=t[r[1]][0],_=t[r[1]][1];for(m=0;m=c&&x<=h||isNaN(x))&&(w>=b&&w<=_||isNaN(w))&&(s[l++]=g),g++}p=!0}}if(!p)if(1===o)for(m=0;m=c&&x<=h||isNaN(x))&&(s[l++]=O)}else for(m=0;mt[E][1])&&(S=!1)}S&&(s[l++]=e.getRawIndex(m))}return lv[1]&&(v[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var n,r,i,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),h=new(d(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));h[l++]=c;for(var f=1;fn&&(n=r,i=E)}C>0&&Cu-p&&(s=u-p,a.length=s);for(var g=0;gc[1]&&(c[1]=m),h[f++]=y}return i._count=f,i._indices=h,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,r=this._chunks,i=0,o=this.count();ia&&(a=l)}return r=[o,a],this._extent[t]=r,r},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],r=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,r){return Object(o.parseDataValue)(t[r],this._dimensions[r])}r={arrayRows:t,objectRows:function(t,e,n,r){return Object(o.parseDataValue)(t[e],this._dimensions[r])},keyedColumns:t,original:function(t,e,n,r){var i=t&&(null==t.value?t:t.value);return Object(o.parseDataValue)(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(t,e,n,r){return t[r]}}}(),t}();e.default=p},function(t,e,n){"use strict";n.r(e);var r,i=n(2),o=n(429),a=n(606),s=n(154);e.default=Object(a.default)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,o=e.fontWeight,a=e.fontStyle,l=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[a,l,o,n+"px",i].join(" "),r.measureText(Object(s.default)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(i.__spreadArrays)([t],Object(o.default)(e)).join("")}))},function(t,e,n){"use strict";n.r(e),n.d(e,"getAdjust",(function(){return s})),n.d(e,"registerAdjust",(function(){return l}));var r=n(239);n.d(e,"Adjust",(function(){return r.default}));var i=n(582);for(var o in i)["default","getAdjust","registerAdjust","Adjust"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a={},s=function(t){return a[t.toLowerCase()]},l=function(t,e){if(s(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"getCoordinate",(function(){return i})),n.d(e,"registerCoordinate",(function(){return o}));n(1038);var r={},i=function(t){return r[t.toLowerCase()]},o=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"isAutoPadding",(function(){return o})),n.d(e,"parsePadding",(function(){return a}));var r=n(2),i=n(1);function o(t){return!Object(i.isNumber)(t)&&!Object(i.isArray)(t)}function a(t){void 0===t&&(t=0);var e=Object(i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),Object(r.__read)(e),!1);break;case 3:e=Object(r.__spreadArray)(Object(r.__spreadArray)([],Object(r.__read)(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"drawChildren",(function(){return o})),n.d(e,"refreshElement",(function(){return a}));var r=n(188),i=n(112);function o(t,e){e.forEach((function(e){e.draw(t)}))}function a(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var o=n.get("context"),a=t.getParent(),s=a?a.getChildren():[n],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)Object(i.moveTo)(l,s.indexOf(t));else if("sort"===e){var h=t.get("children");h&&h.length&&Object(i.sortDom)(t,(function(t,e){return h.indexOf(t)-h.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?Object(r.setTransform)(t):"clip"===e?Object(r.setClip)(t,o):"attr"===e||"add"===e&&t.draw(o)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"BRUSH_FILTER_EVENTS",(function(){return r}));var r,i=n(2),o=n(161),a=n(87),s=n(24);function l(t,e,n,r){var o=Math.min(n[e],r[e]),a=Math.max(n[e],r[e]),s=Object(i.__read)(t.range,2),l=s[0],u=s[1];if(ou&&(a=u),o===u&&a===u)return null;var c=t.invert(o),h=t.invert(a);if(t.isCategory){var d=t.values.indexOf(c),f=t.values.indexOf(h),p=t.values.slice(d,f+1);return function(t){return p.includes(t)}}return function(t){return t>=c&&t<=h}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={}));var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return Object(i.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Object(s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,a=i.view,u={view:a,event:i.event,dims:this.dims};a.emit(r.BEFORE_FILTER,o.Event.fromData(a,r.BEFORE_FILTER,u));var c=a.getCoordinate(),h=c.invert(e),d=c.invert(t);if(this.hasDim("x")){var f=a.getXScale(),p=l(f,"x",h,d);this.filterView(a,f.field,p)}if(this.hasDim("y")){var g=a.getYScales()[0];p=l(g,"y",h,d);this.filterView(a,g.field,p)}this.reRender(a,{source:r.FILTER}),a.emit(r.AFTER_FILTER,o.Event.fromData(a,r.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,o.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,o.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(a.default);e.default=u},function(t,e,n){"use strict";function r(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}n.r(e),n.d(e,"placeElementsOrdered",(function(){return r}))},function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!=typeof t)throw new Error;return t}n.r(e),n.d(e,"optional",(function(){return r})),n.d(e,"required",(function(){return i}))},function(t,e,n){var r=n(798),i=n(1927);function o(e,n,a){return i()?(t.exports=o=Reflect.construct.bind(),t.exports.__esModule=!0,t.exports.default=t.exports):(t.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o},t.exports.__esModule=!0,t.exports.default=t.exports),o.apply(null,arguments)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,n){"use strict";var r;n.r(e),n.d(e,"CoordinateSystem",(function(){return r})),n.d(e,"CoordinateUniform",(function(){return i})),function(t){t[t.LNGLAT=1]="LNGLAT",t[t.LNGLAT_OFFSET=2]="LNGLAT_OFFSET",t[t.VECTOR_TILE=3]="VECTOR_TILE",t[t.IDENTITY=4]="IDENTITY",t[t.P20=5]="P20",t[t.P20_OFFSET=6]="P20_OFFSET",t[t.METER_OFFSET=7]="METER_OFFSET",t[t.P20_2=8]="P20_2"}(r||(r={}));var i={CoordinateSystem:"u_CoordinateSystem",ViewportCenter:"u_ViewportCenter",ViewportCenterProjection:"u_ViewportCenterProjection",PixelsPerDegree:"u_PixelsPerDegree",PixelsPerDegree2:"u_PixelsPerDegree2",PixelsPerMeter:"u_PixelsPerMeter",Mvp:"u_Mvp"}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(1832),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;eo)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return Object(r.distance)(c.x,c.y,s,l)<=a/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return l})),n.d(e,"screen",(function(){return d}));var r,i,o,a,s=n(216),l="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;if(l){var u=my.getSystemInfoSync();r=u.screenWidth,i=u.screenHeight,o=u.windowWidth,a=u.windowHeight}else{var c=s.globalWindow.innerWidth,h=s.globalWindow.innerHeight;r=c,i=h,o=c,a=h}var d={width:r,height:i,availWidth:o,availHeight:a,availLeft:0,availTop:0}},function(t,e,n){"use strict";n.r(e),n.d(e,"TILE_SIZE",(function(){return l})),n.d(e,"DEFAULT_EXTENT",(function(){return u})),n.d(e,"DEFAULT_CACHE_SCALE",(function(){return c})),n.d(e,"UPDATE_TILE_STRATEGIES",(function(){return h})),n.d(e,"NOOP",(function(){return d}));var r,i=n(3),o=n.n(i),a=n(167),s=n(880),l=256,u=[-1/0,-1/0,1/0,1/0],c=5,h=(r={},o()(r,a.UpdateTileStrategy.Overlap,s.updateTileStateOverlap),o()(r,a.UpdateTileStrategy.Replace,s.updateTileStateReplace),r),d=function(){}},function(t,e,n){"use strict";function r(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t,e,n){for(var r,i=[t],o=[];r=i.pop();)if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;o--)r.push(i[o])}}n.r(e),n.d(e,"eachAfter",(function(){return r})),n.d(e,"eachBefore",(function(){return i}))},function(t,e,n){"use strict";n.r(e);var r=n(1148);n.d(e,"sankey",(function(){return r.Sankey}));var i=n(385);n.d(e,"center",(function(){return i.center})),n.d(e,"left",(function(){return i.left})),n.d(e,"right",(function(){return i.right})),n.d(e,"justify",(function(){return i.justify}))},function(t,e,n){"use strict";n.r(e),n.d(e,"Color",(function(){return i})),n.d(e,"darker",(function(){return o})),n.d(e,"brighter",(function(){return a})),n.d(e,"default",(function(){return _})),n.d(e,"rgbConvert",(function(){return O})),n.d(e,"rgb",(function(){return S})),n.d(e,"Rgb",(function(){return C})),n.d(e,"hslConvert",(function(){return I})),n.d(e,"hsl",(function(){return j}));var r=n(496);function i(){}var o=.7,a=1/o,s="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",c=/^#([0-9a-f]{3,8})$/,h=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),d=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),f=new RegExp("^rgba\\("+[s,s,s,l]+"\\)$"),p=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),g=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),v=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),m={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function _(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=c.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?x(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?w(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?w(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=h.exec(t))?new C(e[1],e[2],e[3],1):(e=d.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?w(e[1],e[2],e[3],e[4]):(e=p.exec(t))?w(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=g.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=v.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?x(m[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function x(t){return new C(t>>16&255,t>>8&255,255&t,1)}function w(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function O(t){return t instanceof i||(t=_(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function S(t,e,n,r){return 1===arguments.length?O(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function E(){return"#"+M(this.r)+M(this.g)+M(this.b)}function T(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function A(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new k(t,e,n,r)}function I(t){if(t instanceof k)return new k(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=_(t)),!t)return new k;if(t instanceof k)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,o=Math.min(e,n,r),a=Math.max(e,n,r),s=NaN,l=a-o,u=(a+o)/2;return l?(s=e===a?(n-r)/l+6*(n0&&u<1?0:s,new k(s,l,u,t.opacity)}function j(t,e,n,r){return 1===arguments.length?I(t):new k(t,e,n,null==r?1:r)}function k(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function P(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}Object(r.default)(i,_,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return I(this).formatHsl()},formatRgb:b,toString:b}),Object(r.default)(C,S,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:E,formatHex:E,formatRgb:T,toString:T})),Object(r.default)(k,j,Object(r.extend)(i,{brighter:function(t){return t=null==t?a:Math.pow(a,t),new k(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?o:Math.pow(o,t),new k(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(P(t>=240?t-240:t+120,i,r),P(t,i,r),P(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=s(d);c=!0;for(var e=u.length;e;){for(l=u,u=[];++h1)for(var n=1;n>1^-(1&s),l=l>>1^-(1&l),i=s+=i,o=l+=o,r.push([s/n,l/n])}return r}function s(t,e){return t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);var i=e.features;return r.each(i,(function(t){var e=t.geometry,i=e.encodeOffsets,s=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=a(s,i,n);break;case"Polygon":case"MultiLineString":o(s,i,n);break;case"MultiPolygon":r.each(s,(function(t,e){return o(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t),r.map(r.filter(t.features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,o=t.geometry,a=[];switch(o.type){case"Polygon":var s=o.coordinates;a.push(new i.GeoJSONPolygonGeometry(s[0],s.slice(1)));break;case"MultiPolygon":r.each(o.coordinates,(function(t){t[0]&&a.push(new i.GeoJSONPolygonGeometry(t[0],t.slice(1)))}));break;case"LineString":a.push(new i.GeoJSONLineStringGeometry([o.coordinates]));break;case"MultiLineString":a.push(new i.GeoJSONLineStringGeometry(o.coordinates))}var l=new i.GeoJSONRegion(n[e||"name"],a,n.cp);return l.properties=n,l}))}},function(t,e,n){"use strict";n.r(e);var r=n(396);n.d(e,"getAdjust",(function(){return r.getAdjust})),n.d(e,"registerAdjust",(function(){return r.registerAdjust}));var i=n(239);n.d(e,"Adjust",(function(){return i.default}));var o=n(1500),a=n(1501),s=n(1502),l=n(1503),u=n(582);for(var c in u)["default","getAdjust","registerAdjust","Adjust"].indexOf(c)<0&&function(t){n.d(e,t,(function(){return u[t]}))}(c);Object(r.registerAdjust)("Dodge",o.default),Object(r.registerAdjust)("Jitter",a.default),Object(r.registerAdjust)("Stack",s.default),Object(r.registerAdjust)("Symmetric",l.default)},function(t,e,n){"use strict";n.r(e),n.d(e,"Mix",(function(){return a}));var r=n(2),i=n(26),o=n(1692),a=(n(1924),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(r.__extends)(e,t),e.prototype.getSchemaAdaptor=function(){return o.adaptor},e}(i.Plot))},function(t,e,n){"use strict";n.r(e),n.d(e,"truncateText",(function(){return s})),n.d(e,"parsePlainText",(function(){return h})),n.d(e,"RichTextContentBlock",(function(){return p})),n.d(e,"parseRichText",(function(){return g}));var r=n(308),i=n(0),o=n(55),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(t,e,n,r,i){if(!e)return"";var o=(t+"").split("\n");i=l(e,n,r,i);for(var a=0,s=o.length;a=l;c++)u-=l;var h=Object(o.getWidth)(n,e);return h>u&&(n="",h=0),u=t-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=u,a.containerWidth=t,a}function u(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var a=Object(o.getWidth)(t,r);if(a<=n)return t;for(var s=0;;s++){if(a<=i||s>=e.maxIterations){t+=e.ellipsis;break}var l=0===s?c(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,l),a=Object(o.getWidth)(t,r)}return""===t&&(t=e.placeholder),t}function c(t,e,n,r){for(var i=0,o=0,a=t.length;om&&p){var y=Math.floor(m/d);n=n.slice(0,y)}if(t&&c&&null!=g)for(var _=l(g,s,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x=0;xf&&v(n,t.substring(f,g),e,d),v(n,l[2],e,d,l[1]),f=a.lastIndex}fc){M>0?(C.tokens=C.tokens.slice(0,M),O(C,T,E),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break t}var L=A.width,D=null==L||"auto"===L;if("string"==typeof L&&"%"===L.charAt(L.length-1))B.percentWidth=L,m.push(B),B.contentWidth=Object(o.getWidth)(B.text,k);else{if(D){var R=A.backgroundColor,N=R&&R.image;N&&(N=r.findExistImage(N),r.isImageReady(N)&&(B.width=Math.max(B.width,N.width*P/N.height)))}var F=x&&null!=u?u-T:null;null!=F&&F0&&m+r.accumWidth>r.width&&(a=e.split("\n"),p=!0),r.accumWidth=m}else{var y=b(e,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+v,s=y.linesWidths,a=y.lines}}else a=e.split("\n");for(var _=0;_=33&&e<=383}(t)||!!m[t]}function b(t,e,n,r,i){for(var a=[],s=[],l="",u="",c=0,h=0,d=0;dn:i+h+p>n)?h?(l||u)&&(g?(l||(l=u,u="",h=c=0),a.push(l),s.push(h-c),u+=f,l="",h=c+=p):(u&&(l+=u,u="",c=0),a.push(l),s.push(h),l=f,h=p)):g?(a.push(u),s.push(c),u=f,c=p):(a.push(f),s.push(p)):(h+=p,g?(u+=f,c+=p):(u&&(l+=u,u="",c=0),l+=f))}else u&&(l+=u,h+=c),a.push(l),s.push(h),l="",u="",c=0,h=0}return a.length||l||(l=t,u="",c=0),u&&(l+=u),l&&(a.push(l),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"EllipseShape",(function(){return o}));var r=n(59),i=n(36),o=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=.5522848,r=e.cx,i=e.cy,o=e.rx,a=e.ry,s=o*n,l=a*n;t.moveTo(r-o,i),t.bezierCurveTo(r-o,i-l,r-s,i-a,r,i-a),t.bezierCurveTo(r+s,i-a,r+o,i-l,r+o,i),t.bezierCurveTo(r+o,i+l,r+s,i+a,r,i+a),t.bezierCurveTo(r-s,i+a,r-o,i+l,r-o,i),t.closePath()},e}(i.default);a.prototype.type="ellipse",e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(59),i=n(36),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return Object(r.__extends)(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),n=0;n1&&(n*=Math.sqrt(m),i*=Math.sqrt(m));var y=n*n*(v*v)+i*i*(g*g),b=y?Math.sqrt((n*n*(i*i)-y)/y):1;u===c&&(b*=-1),isNaN(b)&&(b=0);var _=i?b*n*v/i:0,x=n?b*-i*g/n:0,w=(h+f)/2+Math.cos(l)*_-Math.sin(l)*x,O=(d+p)/2+Math.sin(l)*_+Math.cos(l)*x,S=[(g-_)/n,(v-x)/i],C=[(-1*g-_)/n,(-1*v-x)/i],E=a([1,0],S),T=a(S,C);return o(S,C)<=-1&&(T=Math.PI),o(S,C)>=1&&(T=0),0===c&&T>0&&(T-=2*Math.PI),1===c&&T<0&&(T+=2*Math.PI),{cx:w,cy:O,rx:s(t,[f,p])?0:n,ry:s(t,[f,p])?0:i,startAngle:E,endAngle:E+T,xRotation:l,arcFlag:u,sweepFlag:c}}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(79),o=n(1),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};Object(o.each)(t,(function(t,r){var i=t;e.get(r)!==t&&(Object(o.isObject)(t)&&n[r]&&(i=Object(o.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(o.each)(e,(function(e,n){var r=t.get(n);if(Object(o.isObject)(r)){var i=Object(o.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(25),o=n(1),a=n(88),s=n(118),l=n(408),u=n(51),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:u.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:u.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:u.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:u.default.textColor,fontFamily:u.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:u.default.textColor,textBaseline:"middle",fontFamily:u.default.fontFamily,textAlign:"center"},iconStyle:{fill:u.default.descriptionIconFill,stroke:u.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:u.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(o.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(o.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(o.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(o.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),Object(o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var o=0;o0){var n=Object(o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,l=r.offsetY,u=r.rotate,c=r.formatter,h=this.getSidePoint(t.point,i),d=this.getSideVector(i,h),f=c?c(t.name,t,e):t.name,p=r.style;p=Object(o.isFunction)(p)?Object(o.get)(this.get("theme"),["label","style"],{}):p;var g=Object(o.mix)({x:h.x+a,y:h.y+l,text:f,textAlign:this.getTextAnchor(d),textBaseline:this.getTextBaseline(d)},p);return u&&(g.matrix=Object(s.getMatrixByAngle)(h,u)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=Object(o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),l=s.style,u=s.formatter;if(Object(o.isFunction)(l)){var c=i.map((function(t){return Object(o.get)(t.get("delegateObject"),"tick")}));Object(o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=u?u(n.name,n,e):n.name,i=Object(o.mix)({},a,l(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,a=t.spacing,l=void 0===a?0:a,u=t.autoRotate,c=e.fontSize,h=.5;"start"===n?h=0:"end"===n&&(h=1);var d=this.getTickPoint(h),f=this.getSidePoint(d,r||l+c/2),p=Object(o.mix)({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(Object(o.isNil)(g)&&u){var m=this.getAxisVector(d);v=i.ext.angleTo(m,[1,0],!0)}if(v){var y=Object(s.getMatrixByAngle)(f,v);p.matrix=y}return p},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),o=e.getBBox(),a=o.maxX,s=o.maxY,l=o.height,u=this.get("title").iconStyle,c=l/2,h=c/6,d=a+4,f=s-l/2,p=[d+c,f-c],g=p[0],v=p[1],m=[g+c,v+c],y=m[0],b=m[1],_=[g,b+c],x=_[0],w=_[1],O=[d,v+c],S=O[0],C=O[1],E=[d+c,f-l/4],T=E[0],M=E[1],A=[T,M+h],I=A[0],j=A[1],k=[I,j+h],P=k[0],L=k[1],D=[P,L+3*c/4],R=D[0],N=D[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(r.__assign)({path:[["M",g,v],["A",c,c,0,0,1,y,b],["A",c,c,0,0,1,x,w],["A",c,c,0,0,1,S,C],["A",c,c,0,0,1,g,v],["M",T,M],["L",I,j],["M",P,L],["L",R,N]],lineWidth:h,matrix:n},u)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:d,y:f-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var o=Object(l.getStatesStyle)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),s=e.findById(a);if(s){var u=Object(l.getStatesStyle)(t,"tickLine",n);u&&s.attr(u)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=Object(l.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(a){var u=Object(l.getStatesStyle)(t,"tickLine",n);u&&a.attr(u)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(a.default);e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(88),a=n(118),s=n(51),l=n(44),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:s.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:s.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:s.default.fontFamily}},textBackground:{padding:5,style:{stroke:s.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,o=e.autoRotate,s=e.content;if(!Object(i.isNil)(s)){var l=this.getTextPoint(),u=null;if(o){var c=this.getRotateAngle();u=Object(a.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},l),{text:s,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var o=n.getBBox(),a=Object(l.formatPadding)(i.padding),s=i.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r.__assign)({x:o.x-a[3],y:o.y-a[0],width:o.width+a[1]+a[3],height:o.height+a[0]+a[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=u},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(88),a=n(51),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),o=this.get("alternateColor"),a=null;Object(i.each)(r,(function(s,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=Object(i.isFunction)(c)?c(s,l,r):c;var h=e.getElementId("line-"+u),d=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(i.mix)({path:d},c)})}if(o&&l>0){var f=e.getElementId("region-"+u),p=l%2==0;if(Object(i.isString)(o))p&&e.drawAlternateRegion(f,t,a.points,s.points,o);else{var g=p?o[1]:o[0];e.drawAlternateRegion(f,t,a.points,s.points,g)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(88),o=n(44),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),Object(o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),i=Object(o.formatPadding)(e.padding),a=Object(r.__assign)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.__assign)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"getAnimation",(function(){return i})),n.d(e,"registerAnimation",(function(){return o}));var r={};function i(t){return r[t.toLowerCase()]}function o(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(91),a=n(142),s=n(455),l=n(69),u=n(7),c=n(461),h=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=l,n.elementIndex=a,n}return Object(r.__extends)(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?Object(a.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:Object(r.__assign)({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,a=n.model,s=n.shape,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===u)return;if(r.splice(u,1),"active"===t||"selected"===t){var c=this.geometry,h=c.sortZIndex,d=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;h?s.setZIndex(d):s.set("zIndex",d)}}var f=i.drawShape(l,a,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,f,r,null):this.syncShapeStyle(s,f,["reset"],null),f.remove(!0);var p={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",p),Object(o.propagationDelegate)(this.shape,"statechange",p)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,o=n.defaultShapeType,a=n.theme[t]||n.theme[o];this.statesStyle=Object(i.deepMix)({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(i.get)(n,[t,"style"],{}),o=r[e]||r;return Object(i.isFunction)(o)?o(this):o},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var o=n[t];return o?Object(r.__assign)(Object(r.__assign)({},o),{callback:function(){var t;Object(i.isFunction)(o.callback)&&o.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):o}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var o=this.shapeFactory,s=this.container,l=this.shapeType;if(this.shape=o.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?Object(i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",d=this.getAnimateCfg(h);d&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),Object(a.doAnimate)(this.shape,d,{coordinate:o.coordinate,toAttrs:Object(r.__assign)({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,o){var s,h=this;if(void 0===n&&(n=[]),void 0===o&&(o=0),t&&e){var d=t.get("clipShape"),f=e.get("clipShape");if(this.syncShapeStyle(d,f,n,r),t.isGroup())for(var p=t.get("children"),g=e.get("children"),v=0;v=1?1:Object(r.cubicRootAt)(0,a,l,1,t,c)&&Object(r.cubicAt)(0,s,u,1,c[0])}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createLegacyDataSelectAction",(function(){return o})),n.d(e,"handleLegacySelectEvents",(function(){return s}));var r=n(0),i=n(10);function o(t,e){function n(e,n){var r=[];return e.eachComponent({mainType:"series",subType:t,query:n},(function(t){r.push(t.seriesIndex)})),r}Object(r.each)([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],(function(t){e(t[0],(function(e,i,o){e=Object(r.extend)({},e),o.dispatchAction(Object(r.extend)(e,{type:t[1],seriesIndex:n(i,e)}))}))}))}function a(t,e,n,o,a){var s=t+e;n.isSilent(s)||o.eachComponent({mainType:"series",subType:"pie"},(function(t){for(var e=t.seriesIndex,o=t.option.selectedMap,l=a.selected,u=0;ue&&(e=r.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,r=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=t.start;r0&&(y[0]=-y[0],y[1]=-y[1]);var _=m[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var x=-Math.atan2(m[1],m[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*p+l[0],n.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=p*_+l[0],n.y=l[1]+w,h=m[0]<0?"right":"left",n.originX=-p*_,n.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=b[0],n.y=b[1]+w,h="center",n.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-p*_+u[0],n.y=u[1]+w,h=m[0]>=0?"right":"left",n.originX=p*_,n.originY=-w}n.scaleX=n.scaleY=r,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||h})}}}function O(t,e){var n=t.__specifiedRotation;if(null==n){var r=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else t.attr("rotation",n)}},e}(u.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(129),a=n(39),s=n(70),l=n(14),u=n(175),c=n(165),h=n(482),d=n(169),f=Math.min,p=Math.max,g=Math.pow,v={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},m={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},y={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},b=0,_=function(t){function e(e){var n=t.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=e,n.group=new a.default,n._uid="brushController_"+b++,Object(i.each)($,(function(t,e){this._handlers[e]=Object(i.bind)(t,this)}),n),n}return Object(r.__extends)(e,t),e.prototype.enableBrush=function(t){return this._brushType&&this._doDisableBrush(),t.brushType&&this._doEnableBrush(t),this},e.prototype._doEnableBrush=function(t){var e=this._zr;this._enableGlobalPan||h.take(e,"globalPan",this._uid),Object(i.each)(this._handlers,(function(t,n){e.on(n,t)})),this._brushType=t.brushType,this._brushOption=Object(i.merge)(Object(i.clone)(y),t,!0)},e.prototype._doDisableBrush=function(){var t=this._zr;h.release(t,"globalPan",this._uid),Object(i.each)(this._handlers,(function(e,n){t.off(n,e)})),this._brushType=this._brushOption=null},e.prototype.setPanels=function(t){if(t&&t.length){var e=this._panels={};Object(i.each)(t,(function(t){e[t.panelId]=Object(i.clone)(t)}))}else this._panels=null;return this},e.prototype.mount=function(t){t=t||{},this._enableGlobalPan=t.enableGlobalPan;var e=this.group;return this._zr.add(e),e.attr({x:t.x||0,y:t.y||0,rotation:t.rotation||0,scaleX:t.scaleX||1,scaleY:t.scaleY||1}),this._transform=e.getLocalTransform(),this},e.prototype.updateCovers=function(t){t=Object(i.map)(t,(function(t){return Object(i.merge)(Object(i.clone)(y),t,!0)}));var e=this._covers,n=this._covers=[],r=this,o=this._creatingCover;return new d.default(e,t,(function(t,e){return a(t.__brushOption,e)}),a).add(s).update(s).remove((function(t){e[t]!==o&&r.group.remove(e[t])})).execute(),this;function a(t,e){return(null!=t.id?t.id:"\0-brush-index-"+e)+"-"+t.brushType}function s(i,a){var s=t[i];if(null!=a&&e[a]===o)n[i]=e[a];else{var l=n[i]=null!=a?(e[a].__brushOption=s,e[a]):w(r,x(r,s));C(r,l)}}},e.prototype.unmount=function(){return this.enableBrush(!1),A(this),this._zr.remove(this.group),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(o.default);function x(t,e){var n=q[e.brushType].createCover(t,e);return n.__brushOption=e,S(n,e),t.group.add(n),n}function w(t,e){var n=E(e);return n.endCreating&&(n.endCreating(t,e),S(e,e.__brushOption)),e}function O(t,e){var n=e.__brushOption;E(e).updateCoverShape(t,e,n.range,n)}function S(t,e){var n=e.z;null==n&&(n=1e4),t.traverse((function(t){t.z=n,t.z2=n}))}function C(t,e){E(e).updateCommon(t,e),O(t,e)}function E(t){return q[t.__brushOption.brushType]}function T(t,e,n){var r,o=t._panels;if(!o)return!0;var a=t._transform;return Object(i.each)(o,(function(t){t.isTargetByCursor(e,n,a)&&(r=t)})),r}function M(t,e){var n=t._panels;if(!n)return!0;var r=e.__brushOption.panelId;return null==r||n[r]}function A(t){var e=t._covers,n=e.length;return Object(i.each)(e,(function(e){t.group.remove(e)}),t),e.length=0,!!n}function I(t,e){var n=Object(i.map)(t._covers,(function(t){var e=t.__brushOption,n=Object(i.clone)(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}}));t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function j(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function k(t,e,n,r){var o=new a.default;return o.add(new s.default({name:"main",style:R(n),silent:!0,draggable:!0,cursor:"move",drift:Object(i.curry)(B,t,e,o,["n","s","w","e"]),ondragend:Object(i.curry)(I,e,{isEnd:!0})})),Object(i.each)(r,(function(n){o.add(new s.default({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(i.curry)(B,t,e,o,n),ondragend:Object(i.curry)(I,e,{isEnd:!0})}))})),o}function P(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=p(i,6),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],h=n[1][1],d=c-o+i/2,f=h-o+i/2,g=c-a,v=h-s,m=g+i,y=v+i;D(t,e,"main",a,s,g,v),r.transformable&&(D(t,e,"w",l,u,o,y),D(t,e,"e",d,u,o,y),D(t,e,"n",l,u,m,o),D(t,e,"s",l,f,m,o),D(t,e,"nw",l,u,o,o),D(t,e,"ne",d,u,o,o),D(t,e,"sw",l,f,o,o),D(t,e,"se",d,f,o,o))}function L(t,e){var n=e.__brushOption,r=n.transformable,o=e.childAt(0);o.useStyle(R(n)),o.attr({silent:!r,cursor:r?"move":"default"}),Object(i.each)([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=e.childOfName(n.join("")),o=1===n.length?F(t,n[0]):function(t,e){var n=[F(t,e[0]),F(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}(t,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?m[o]+"-resize":null})}))}function D(t,e,n,r,i,o,a){var s,l,u,c,h,d=e.childOfName(n);d&&d.setShape((s=U(t,e,[[r,i],[r+o,i+a]]),l=f(s[0][0],s[1][0]),u=f(s[0][1],s[1][1]),c=p(s[0][0],s[1][0]),h=p(s[0][1],s[1][1]),{x:l,y:u,width:c-l,height:h-u}))}function R(t){return Object(i.defaults)({strokeNoScale:!0},t.brushStyle)}function N(t,e,n,r){var i=[f(t,n),f(e,r)],o=[p(t,n),p(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function F(t,e){return{left:"w",right:"e",top:"n",bottom:"s"}[l.transformDirection({w:"left",e:"right",n:"top",s:"bottom"}[e],function(t){return l.getTransform(t.group)}(t))]}function B(t,e,n,r,o,a){var s=n.__brushOption,l=t.toRectRange(s.range),u=V(e,o,a);Object(i.each)(r,(function(t){var e=v[t];l[e[0]][e[1]]+=u[e[0]]})),s.range=t.fromRectRange(N(l[0][0],l[1][0],l[0][1],l[1][1])),C(e,n),I(e,{isEnd:!1})}function z(t,e,n,r){var o=e.__brushOption.range,a=V(t,n,r);Object(i.each)(o,(function(t){t[0]+=a[0],t[1]+=a[1]})),C(t,e),I(t,{isEnd:!1})}function V(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function U(t,e,n){var r=M(t,e);return r&&!0!==r?r.clipPath(n,t._transform):Object(i.clone)(n)}function G(t){var e=t.event;e.preventDefault&&e.preventDefault()}function H(t,e,n){return t.childOfName("main").contain(e,n)}function W(t,e,n,r){var o,a=t._creatingCover,s=t._creatingPanel,l=t._brushOption;if(t._track.push(n.slice()),function(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1];return g(i*i+o*o,.5)>6}(t)||a){if(s&&!a){"single"===l.brushMode&&A(t);var u=Object(i.clone)(l);u.brushType=Y(u.brushType,s),u.panelId=!0===s?null:s.panelId,a=t._creatingCover=x(t,u),t._covers.push(a)}if(a){var c=q[Y(t._brushType,s)];a.__brushOption.range=c.getCreatingRange(U(t,a,t._track)),r&&(w(t,a),c.updateCommon(t,a)),O(t,a),o={isEnd:r}}}else r&&"single"===l.brushMode&&l.removeOnClick&&T(t,e,n)&&A(t)&&(o={isEnd:r,removeOnClick:!0});return o}function Y(t,e){return"auto"===t?e.defaultBrushType:t}var $={mousedown:function(t){if(this._dragging)X(this,t);else if(!t.target||!t.target.draggable){G(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}(t,e.offsetX,e.offsetY)){var r=t._zr,i=t._covers,o=T(t,e,n);if(!t._dragging)for(var a=0;aa)return!0;if(o){var s=l.getAxisInfo(t).seriesDataCount,u=r.getExtent();return Math.abs(u[0]-u[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,r,i){},t.prototype.createPointerEl=function(t,e,n,r){var i=e.pointer;if(i){var a=d(t).pointerEl=new o[i.type](f(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,r){if(e.label){var i=d(t).labelEl=new a.default(f(e.label));t.add(i),m(i,r)}},t.prototype.updatePointerEl=function(t,e,n){var r=d(t).pointerEl;r&&e.pointer&&(r.setStyle(e.pointer.style),n(r,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,r){var i=d(t).labelEl;i&&(i.setStyle(e.label.style),n(i,{x:e.label.x,y:e.label.y}),m(i,r))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,s=n.getModel("handle"),l=n.get("status");if(!s.get("show")||!l||"hide"===l)return a&&i.remove(a),void(this._handle=null);this._handle||(e=!0,a=this._handle=o.createIcon(s.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){u.stop(t.event)},onmousedown:p(this._onHandleDragMove,this,0,0),drift:p(this._onHandleDragMove,this),ondragend:p(this._onHandleDragEnd,this)}),i.add(a)),b(a,n,!1),a.setStyle(s.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var h=s.get("size");r.isArray(h)||(h=[h,h]),a.scaleX=h[0]/2,a.scaleY=h[1]/2,c.createOrUpdate(this,"_doDispatchAxisPointer",s.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){v(this._axisPointerModel,!e&&this._moveAnimation,this._handle,y(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(y(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(y(r)),d(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,r=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),r&&e.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),c.clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function v(t,e,n,i){(function t(e,n){if(r.isObject(e)&&r.isObject(n)){var i=!0;return r.each(n,(function(n,r){i=i&&t(e[r],n)})),!!i}return e===n})(d(n).lastProp,i)||(d(n).lastProp=i,e?s.updateProps(n,i,t):(n.stopAnimation(),n.attr(i)))}function m(t,e){t[e.get(["label","show"])?"show":"hide"]()}function y(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function b(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=r&&(t.z=r),null!=i&&(t.zlevel=i),t.silent=n)}))}e.default=g},function(t,e,n){"use strict";n.r(e);var r=n(5),i=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.render=function(t,e,n,r){this.dataZoomModel=t,this.ecModel=e,this.api=n},e.type="dataZoom",e}(n(62).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(1438),i=n(1440),o=!1;function a(t){o||(o=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,r.default),Object(i.default)(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(62),o=n(0),a=n(192),s=n(10),l=n(13),u=Object(s.makeInner)(),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.markerGroupMap=Object(o.createHashMap)()},e.prototype.render=function(t,e,n){var r=this,i=this.markerGroupMap;i.each((function(t){u(t).keep=!1})),e.eachSeries((function(t){var i=a.default.getMarkerModelFromSeries(t,r.type);i&&r.renderSeries(t,i,e,n)})),i.each((function(t){!u(t).keep&&r.group.remove(t.group)}))},e.prototype.markKeep=function(t){u(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;Object(o.each)(t,(function(t){var r=a.default.getMarkerModelFromSeries(t,n.type);r&&r.getData().eachItemGraphicEl((function(t){t&&(e?Object(l.enterBlur)(t):Object(l.leaveBlur)(t))}))}))},e.type="marker",e}(i.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(0);function i(t,e){if(!t)return!1;for(var n=Object(r.isArray)(t)?t:[t],i=0;ithis.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],o=1;o1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(n(288).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function o(t,e,n){var o=i(t,n,"floor"),a=i(e,n,"ceil");o=Object(r.fixedBase)(o,n),a=Object(r.fixedBase)(a,n);for(var s=[],l=Math.max((a-o)/(Math.pow(2,12)-1),n),u=o;u<=a;u+=l){var c=Object(r.fixedBase)(u,l);s.push(c)}return{min:o,max:a,ticks:s}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1);function i(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,l=t.max,u=t.tickCount,c=void 0===u?5:u,h=Object(r.isNil)(o)?Object(r.isNil)(e)?s:e:o,d=Object(r.isNil)(a)?Object(r.isNil)(n)?l:n:a;if(h>d&&(d=(i=[h,d])[0],h=i[1]),c<=2)return[h,d];for(var f=(d-h)/(c-1),p=[],g=0;g1){a.sort();var m=function(t,e){var n=t.length,i=t;Object(r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var o=i[1]-i[0],a=2;as&&(o=s)}return o}(a,o);l=(o.max-o.min)/m,a.length>l&&(l=a.length)}var y=o.range,b=1/l,_=1;(n.isPolar?_=n.isTransposed&&l>1?g:v:(o.isLinear&&(b*=y[1]-y[0]),_=p),!Object(r.isNil)(c)&&c>=0)?b=(1-(l-1)*(c/u))/l:b*=_;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(r.flatten)(t);return Object(r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!Object(r.isNil)(h)&&h>=0)b=(b-h/u*(x-1))/x;else!Object(r.isNil)(c)&&c>=0?(b*=_,b/=x):b/=x;b=b>=0?b:0}if(!Object(r.isNil)(d)&&d>=0){var w=d/u;b>w&&(b=w)}if(!Object(r.isNil)(f)&&f>=0){var O=f/u;b=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2&&void 0!==arguments[2]?arguments[2]:{},r=u.get(this);r||(r={}),r[t]||(r[t]=[]),r[t].push(e),u.set(this,r),n.capture,n.once,n.passive}},{key:"removeEventListener",value:function(t,e){var n=u.get(this);if(n){var r=n[t];if(r&&r.length>0)for(var i=r.length;i--;i>0)if(r[i]===e){r.splice(i,1);break}}}},{key:"dispatchEvent",value:function(t){var e=u.get(this)[t.type];if(e){var n,r=s(e);try{for(r.s();!(n=r.n()).done;){(0,n.value)(t)}}catch(t){r.e(t)}finally{r.f()}}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(128),c=n(307),h=function(){function t(e){i()(this,t),l()(this,"enabled",void 0),l()(this,"active",void 0),l()(this,"lastPoint",void 0),l()(this,"eventButton",void 0),l()(this,"moved",void 0),l()(this,"clickTolerance",void 0),this.reset(),this.clickTolerance=e.clickTolerance||1}return a()(t,[{key:"reset",value:function(){this.active=!1,this.moved=!1,delete this.lastPoint,delete this.eventButton}},{key:"mousedown",value:function(t,e){if(!this.lastPoint){var n=u.default.mouseButton(t);this.correctButton(t,n)&&(this.lastPoint=e,this.eventButton=n)}}},{key:"mousemoveWindow",value:function(t,e){var n=this.lastPoint;if(n)if(t.preventDefault(),Object(c.buttonStillPressed)(t,this.eventButton))this.reset();else if(this.moved||!(e.dist(n)=0;)i++;return i-e}function i(t,e,n,r,i){for(r===e&&r++;r>>1])<0?l=o:s=o+1;var u=r-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function o(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function a(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=r-i;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function s(t,e){var n,r,i,s=7,l=0;n=t.length;var u=[];function c(n){var c=r[n],h=i[n],d=r[n+1],f=i[n+1];i[n]=h+f,n===l-3&&(r[n+1]=r[n+2],i[n+1]=i[n+2]),l--;var p=a(t[d],t,c,h,0,e);c+=p,0!==(h-=p)&&0!==(f=o(t[c+h-1],t,d,f,f-1,e))&&(h<=f?function(n,r,i,l){var c=0;for(c=0;c=7||g>=7);if(v)break;m<0&&(m=0),m+=2}if((s=m)<1&&(s=1),1===r){for(c=0;c=0;c--)t[g+c]=t[p+c];return void(t[f]=u[d])}var v=s;for(;;){var m=0,y=0,b=!1;do{if(e(u[d],t[h])<0){if(t[f--]=t[h--],m++,y=0,0==--r){b=!0;break}}else if(t[f--]=u[d--],y++,m=0,1==--l){b=!0;break}}while((m|y)=0;c--)t[g+c]=t[p+c];if(0===r){b=!0;break}}if(t[f--]=u[d--],1==--l){b=!0;break}if(0!==(y=l-o(t[h],u,0,l,l-1,e))){for(l-=y,g=(f-=y)+1,p=(d-=y)+1,c=0;c=7||y>=7);if(b)break;v<0&&(v=0),v+=2}(s=v)<1&&(s=1);if(1===l){for(g=(f-=r)+1,p=(h-=r)+1,c=r-1;c>=0;c--)t[g+c]=t[p+c];t[f]=u[d]}else{if(0===l)throw new Error;for(p=f-(l-1),c=0;c1;){var t=l-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;c(t)}},forceMergeRuns:function(){for(;l>1;){var t=l-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(a);do{if((l=r(t,n,o,e))c&&(h=c),i(t,n,n+h,n+l,e),l=h}u.pushRun(n,l),u.mergeRuns(),a-=l,n+=l}while(0!==a);u.forceMergeRuns()}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"SourceManager",(function(){return c})),n.d(e,"disableTransformOptionMerge",(function(){return h}));var r=n(0),i=n(140),o=n(29),a=n(139),s=n(659),l=n(394),u=n(171),c=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,a=this._getUpstreamSourceManagers(),s=!!a.length;if(d(n)){var l=n,u=void 0,c=void 0,h=void 0;if(s){var f=a[0];f.prepareSource(),u=(h=f.getSource()).data,c=h.sourceFormat,e=[f._getVersionSign()]}else u=l.get("data",!0),c=Object(r.isTypedArray)(u)?o.SOURCE_FORMAT_TYPED_ARRAY:o.SOURCE_FORMAT_ORIGINAL,e=[];var p=this._getSourceMetaRawOption()||{},g=h&&h.metaRawOption||{},v=Object(r.retrieve2)(p.seriesLayoutBy,g.seriesLayoutBy)||null,m=Object(r.retrieve2)(p.sourceHeader,g.sourceHeader),y=Object(r.retrieve2)(p.dimensions,g.dimensions);t=v!==g.seriesLayoutBy||!!m!=!!g.sourceHeader||y?[Object(i.createSource)(u,{seriesLayoutBy:v,sourceHeader:m,dimensions:y},c)]:[]}else{var b=n;if(s){var _=this._applyTransform(a);t=_.sourceList,e=_.upstreamSignList}else{var x=b.get("source",!0);t=[Object(i.createSource)(x,this._getSourceMetaRawOption(),null)],e=[]}}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,o=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(null!=a){1!==t.length&&f("")}var l=[],u=[];return Object(r.each)(t,(function(t){t.prepareSource();var e=t.getSource(a||0);null==a||e||f(""),l.push(e),u.push(t._getVersionSign())})),o?e=Object(s.applyDataTransform)(o,l,{datasetIndex:n.componentIndex}):null!=a&&(e=[Object(i.cloneSourceShallow)(l[0])]),{sourceList:e,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e0?n=r[0]:r[1]<0&&(n=r[1]);return n}(a,n),l=o.dim,u=a.dim,c=e.mapDimension(u),h=e.mapDimension(l),d="x"===u||"radius"===u?1:0,f=Object(i.map)(t.dimensions,(function(t){return e.mapDimension(t)})),p=!1,g=e.getCalculationInfo("stackResultDimension");return Object(r.isDimensionStacked)(e,f[0])&&(p=!0,f[0]=g),Object(r.isDimensionStacked)(e,f[1])&&(p=!0,f[1]=g),{dataDimsForPoint:f,valueStart:s,valueAxisDim:u,baseAxisDim:l,stacked:!!p,valueDim:c,baseDim:h,baseDataOffset:d,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function a(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(36),o=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=2*Math.PI,d=c?u-l=0;i--){if(n[i][r])break}if(i<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(o){var a=o.getPercentRange();n[0][r]={dataZoomId:r,start:a[0],end:a[1]}}}})),n.push(e)}function l(t){var e=h(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return o(n,(function(t,n){for(var i=e.length-1;i>=0;i--)if(t=e[i][n]){r[n]=t;break}})),r}function u(t){a(t).snapshots=null}function c(t){return h(t).length}function h(t){var e=a(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(684),a=n(127),s=n(276),l=n(10),u=n(6),c=n(40),h=a.default.mapVisual,d=a.default.eachVisual,f=i.isArray,p=i.each,g=u.asc,v=u.linearMap,m=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&s.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=i.bind(t,this),this.controllerVisuals=s.createVisualMappings(this.option.controller,e,t),this.targetVisuals=s.createVisualMappings(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,n){e.push(n)})):e=l.normalizeToArray(t),e},e.prototype.eachTargetSeries=function(t,e){i.each(this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&t.call(e,r)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var r,o=this.option,a=o.precision,s=this.dataBound,l=o.formatter;n=n||["<",">"],i.isArray(t)&&(t=t.slice(),r=!0);var u=e?t:r?[c(t[0]),c(t[1])]:c(t);return i.isString(l)?l.replace("{value}",r?u[0]:u).replace("{value2}",r?u[1]:u):i.isFunction(l)?r?l(t[0],t[1]):l(t):r?t[0]===s[0]?n[0]+" "+u[1]:t[1]===s[1]?n[1]+" "+u[0]:u[0]+" - "+u[1]:u;function c(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var n=t.dimensions,r=n.length-1;r>=0;r--){var i=n[r],o=t.getDimensionInfo(i);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},r=e.target||(e.target={}),s=e.controller||(e.controller={});i.merge(r,n),i.merge(s,n);var l=this.isCategory();function u(n){f(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}u.call(this,r),u.call(this,s),function(t,e,n){var r=t[e],i=t[n];r&&!i&&(i=t[n]={},p(r,(function(t,e){if(a.default.isValidType(e)){var n=o.default.get(e,"inactive",l);null!=n&&(i[e]=n,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,r,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),o=this.getItemSymbol()||"roundRect";p(this.stateList,(function(a){var s=this.itemSize,u=t[a];u||(u=t[a]={color:l?r:[r]}),null==u.symbol&&(u.symbol=e&&i.clone(e)||(l?o:[o])),null==u.symbolSize&&(u.symbolSize=n&&i.clone(n)||(l?s[0]:[s[0],s[0]])),u.symbol=h(u.symbol,(function(t){return"none"===t?o:t}));var c=u.symbolSize;if(null!=c){var f=-1/0;d(c,(function(t){t>f&&(f=t)})),u.symbolSize=h(c,(function(t){return v(t,[0,f],[0,s[0]],!0)}))}}),this)}.call(this,s)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(c.default);e.default=m},function(t,e,n){"use strict";n.r(e);var r=n(415),i=n(851),o=n(853),a=n(1487),s=n(545),l=n(1488),u=n(1486),c=n(486),h=n(487);e.default=function(t,e){var n,d=typeof e;return null==e||"boolean"===d?Object(c.default)(e):("number"===d?s.default:"string"===d?(n=Object(r.default)(e))?(e=n,i.default):u.default:e instanceof r.default?i.default:e instanceof Date?a.default:Object(h.isNumberArray)(e)?h.default:Array.isArray(e)?o.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?l.default:s.default)(t,e)}},function(t,e,n){"use strict";n.r(e),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";function r(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}n.r(e),n.d(e,"isNumberArray",(function(){return r})),e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e={top:0,right:0,bottom:0,left:0};if("number"==typeof t)return{top:t,right:t,bottom:t,left:t};if(Array.isArray(t)){if(4===t.length)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(2===t.length)return{top:t[0],right:t[1],bottom:t[0],left:t[1]}}return a(a({},e),t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"MAX_TAP_INTERVAL",(function(){return f})),n.d(e,"MAX_TOUCH_TIME",(function(){return p})),n.d(e,"MAX_DIST",(function(){return g})),n.d(e,"default",(function(){return v}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(3),l=n.n(s),u=n(65),c=n(563);function h(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),n.length===this.numTouches&&(this.centroid=function(t){var e,n=new u.default(0,0),r=h(t);try{for(r.s();!(e=r.n()).done;){var i=e.value;n._add(i)}}catch(t){r.e(t)}finally{r.f()}return n.div(t.length)}(e),this.touches=Object(c.indexTouches)(n,e)))}},{key:"touchmove",value:function(t,e,n){if(!this.aborted&&this.centroid){var r=Object(c.indexTouches)(n,e);for(var i in this.touches)if(this.touches[i]){var o=this.touches[i],a=r[i];(!a||a.dist(o)>g)&&(this.aborted=!0)}}}},{key:"touchend",value:function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>p)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}}}]),t}()},function(t,e,n){"use strict";n.r(e),n.d(e,"PerformanceMarkers",(function(){return s})),n.d(e,"PerformanceUtils",(function(){return l}));var r=n(17),i=null,o=[],a=r.$window.performance,s={create:"create",load:"load",fullLoad:"fullLoad"},l={mark:function(t){a.mark(t)},frame:function(t){var e=t;if(null!=i){var n=e-i;o.push(n)}i=e},clearMetrics:function(){for(var t in i=null,o=[],a.clearMeasures("loadTime"),a.clearMeasures("fullLoadTime"),s)a.clearMarks(s[t])},getPerformanceMetrics:function(){var t=a.measure("loadTime",s.create,s.load).duration,e=a.measure("fullLoadTime",s.create,s.fullLoad).duration,n=o.length,r=1/(o.reduce((function(t,e){return t+e}),0)/n/1e3),i=o.filter((function(t){return t>1e3/30})).reduce((function(t,e){return t+(e-1e3/30)/(1e3/30)}),0);return{loadTime:t,fullLoadTime:e,fps:r,percentDroppedFrames:i/(n+i)*100}}}},function(t,e,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}n.r(e),n.d(e,"newMessages",(function(){return r})),n.d(e,"messages",(function(){return i}));var i=r()},function(t,e,n){"use strict";n.r(e),n.d(e,"getChartSize",(function(){return a})),n.d(e,"removeDom",(function(){return s}));var r=n(7),i=n(84);function o(t){return"number"==typeof t&&!isNaN(t)}function a(t,e,n,i){var a=n,s=i;if(e){var l=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);a=l.width?l.width:a,s=l.height?l.height:s}return{width:Math.max(o(a)?a:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(o(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}}function s(t){var e=t.parentNode;e&&e.removeChild(t)}n.d(e,"createDom",(function(){return i.createDom})),n.d(e,"modifyCSS",(function(){return i.modifyCSS}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}n.r(e),n.d(e,"extend",(function(){return r})),e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";n.r(e),n.d(e,"parseFields",(function(){return i}));var r=n(1);function i(t){return Object(r.isArray)(t)?t:t.split("*")}},function(t,e,n){"use strict";n.r(e),n.d(e,"wordCloud",(function(){return o})),n.d(e,"transform",(function(){return a})),n.d(e,"functor",(function(){return _}));var r=n(1),i={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function o(t,e){return a(t,e=Object(r.assign)({},i,e))}function a(t,e){var n=function(){var t=[256,256],e=u,n=h,r=c,i=d,o=f,a=m,s=Math.random,w=[],O=1/0,S=l,C=c,E=b,T={};function M(e,n,r){for(var i,o,l,u,c,h=n.x,d=n.y,f=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),v=s()<.5?1:-1,m=-v;(i=p(m+=v))&&(o=~~i[0],l=~~i[1],!(Math.min(Math.abs(o),Math.abs(l))>=f));)if(n.x=h+o,n.y=d+l,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1]||r&&g(n,e,t[0])||r&&(c=r,!((u=n).x+u.x1>c[0].x&&u.x+u.x0c[0].y&&u.y+u.y0>5,_=t[0]>>5,x=n.x-(b<<4),w=127&x,O=32-w,S=n.y1-n.y0,C=void 0,E=(n.y+n.y0)*_+(x>>5),T=0;T>>w:0);E+=_}return delete n.sprite,!0}return!1}return T.start=function(){var a=t[0],l=t[1],u=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(E()),c=T.board?T.board:y((t[0]>>5)*t[1]),h=w.length,d=[],f=w.map((function(t,a,s){return t.text=S.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=C.call(this,t,a,s),t.weight=r.call(this,t,a,s),t.rotate=i.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),g=-1,m=T.board?[{x:0,y:0},{x:a,y:l}]:null;return function(){var e=Date.now();for(;Date.now()-e>1,n.y=l*(s()+.5)>>1,p(u,n,f,g),n.hasText&&M(c,n,m)&&(d.push(n),m?T.hasImage||v(m,n):m=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}T._tags=d,T._bounds=m}(),T},T.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=y((r>>5)*i);n.width=r,n.height=i;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var l=s.getImageData(0,0,r,i).data,u=0;u>5),d=u*r+c<<2,f=l[d]>=250&&l[d+1]>=250&&l[d+2]>=250?1<<31-c%32:0;a[h]|=f}T.board=a,T.hasImage=!0}},T.timeInterval=function(t){O=null==t?1/0:t},T.words=function(t){w=t},T.size=function(e){t=[+e[0],+e[1]]},T.font=function(t){e=_(t)},T.fontWeight=function(t){r=_(t)},T.rotate=function(t){i=_(t)},T.spiral=function(t){a=x[t]||t},T.fontSize=function(t){n=_(t)},T.padding=function(t){o=_(t)},T.random=function(t){s=_(t)},T}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(r.isNil)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start()._tags;i.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,a=o[0],s=o[1];return i.push({text:"",value:0,x:0,y:0,opacity:0}),i.push({text:"",value:0,x:a,y:s,opacity:0}),i}var s=Math.PI/180;function l(t){return t.text}function u(){return"serif"}function c(){return"normal"}function h(t){return t.value}function d(){return 90*~~(2*Math.random())}function f(){return 1}function p(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,l=0,u=0,c=n.length;for(--r;++r>5<<5,d=~~Math.max(Math.abs(v+m),Math.abs(v-m))}else h=h+31>>5<<5;if(d>u&&(u=d),a+h>=2048&&(a=0,l+=u,u=0),l+d>=2048)break;i.translate((a+(h>>1))/o,(l+(d>>1))/o),e.rotate&&i.rotate(e.rotate*s),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=h,e.height=d,e.xoff=a,e.yoff=l,e.x1=h>>1,e.y1=d>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=h}for(var b=i.getImageData(0,0,2048/o,2048/o).data,_=[];--r>=0;)if((e=n[r]).hasText){for(var x=(h=e.width)>>5,w=(d=e.y1-e.y0,0);w>5),T=b[2048*(l+C)+(a+w)<<2]?1<<31-w%32:0;_[E]|=T,O|=T}O?S=C:(e.y0++,d--,C--,l++)}e.y1=e.y0+S,e.sprite=_.slice(0,(e.y1-e.y0)*x)}}}function g(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,l=32-s,u=t.y1-t.y0,c=(t.y+t.y0)*n+(a>>5),h=0;h>>s:0))&e[c+d])return!0;c+=n}return!1}function v(t,e){var n=t[0],r=t[1];e.x+e.x0r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function m(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function y(t){for(var e=[],n=-1;++n1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}function i(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function o(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var a=r-n+1,s=e-n+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a);s-a/2<0&&(c*=-1),o(t,e,Math.max(n,Math.floor(e-s*u/a+c)),Math.min(r,Math.floor(e+(a-s)*u/a+c)))}var h=t[e],d=n,f=r;for(i(t,n,e),t[r]>h&&i(t,n,r);dh;)f--}t[n]===h?i(t,n,f):i(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-1)}}function a(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,r,n),t.apply(this,arguments)}}l="function"!=typeof Object.assign?function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n-1}function j(t){return t.trim().split(/\s+/g)}function k(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var r=0;rn[e]})):r.sort()),r}function D(t,e){for(var n,r,i=e[0].toUpperCase()+e.slice(1),o=0;o1&&!n.firstMultiple?n.firstMultiple=W(e):1===i&&(n.firstMultiple=!1);var o=n.firstInput,a=n.firstMultiple,s=a?a.center:o.center,l=e.center=Y(r);e.timeStamp=v(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=Z(s,l),e.distance=q(s,l),function(t,e){var n=e.center,r=t.offsetDelta||{},i=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(i=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},r=t.offsetDelta={x:n.x,y:n.y});e.deltaX=i.x+(n.x-r.x),e.deltaY=i.y+(n.y-r.y)}(n,e),e.offsetDirection=X(e.deltaX,e.deltaY);var u=$(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=u.x,e.overallVelocityY=u.y,e.overallVelocity=g(u.x)>g(u.y)?u.x:u.y,e.scale=a?(c=a.pointers,h=r,q(h[0],h[1],U)/q(c[0],c[1],U)):1,e.rotation=a?function(t,e){return Z(e[1],e[0],U)+Z(t[1],t[0],U)}(a.pointers,r):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,r,i,o,a=t.lastInterval||e,s=e.timeStamp-a.timeStamp;if(8!=e.eventType&&(s>25||void 0===a.velocity)){var l=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,c=$(s,l,u);r=c.x,i=c.y,n=g(c.x)>g(c.y)?c.x:c.y,o=X(l,u),t.lastInterval=e}else n=a.velocity,r=a.velocityX,i=a.velocityY,o=a.direction;e.velocity=n,e.velocityX=r,e.velocityY=i,e.direction=o}(n,e);var c,h;var d=t.element;A(e.srcEvent.target,d)&&(d=e.srcEvent.target);e.target=d}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function W(t){for(var e=[],n=0;n=g(e)?t<0?2:4:e<0?8:16}function q(t,e,n){n||(n=V);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(r*r+i*i)}function Z(t,e,n){n||(n=V);var r=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,r)/Math.PI}G.prototype={handler:function(){},init:function(){this.evEl&&T(this.element,this.evEl,this.domHandler),this.evTarget&&T(this.target,this.evTarget,this.domHandler),this.evWin&&T(N(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&M(this.element,this.evEl,this.domHandler),this.evTarget&&M(this.target,this.evTarget,this.domHandler),this.evWin&&M(N(this.element),this.evWin,this.domHandler)}};var K={mousedown:1,mousemove:2,mouseup:4};function J(){this.evEl="mousedown",this.evWin="mousemove mouseup",this.pressed=!1,G.apply(this,arguments)}O(J,G,{handler:function(t){var e=K[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Q={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},tt={2:"touch",3:"pen",4:"mouse",5:"kinect"},et="pointerdown",nt="pointermove pointerup pointercancel";function rt(){this.evEl=et,this.evWin=nt,G.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}h||!i.MSPointerEvent||i.PointerEvent||(et="MSPointerDown",nt="MSPointerMove MSPointerUp MSPointerCancel"),O(rt,G,{handler:function(t){var e=this.store,n=!1,r=t.type.toLowerCase().replace("ms",""),i=Q[r],o=tt[t.pointerType]||t.pointerType,a="touch"==o,s=k(e,t.pointerId,"pointerId");1&i&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):12&i&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(s,1))}});var it={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function ot(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,G.apply(this,arguments)}function at(t,e){var n=P(t.touches),r=P(t.changedTouches);return 12&e&&(n=L(n.concat(r),"identifier",!0)),[n,r]}O(ot,G,{handler:function(t){var e=it[t.type];if(1===e&&(this.started=!0),this.started){var n=at.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:"touch",srcEvent:t})}}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8};function lt(){this.evTarget="touchstart touchmove touchend touchcancel",this.targetIds={},G.apply(this,arguments)}function ut(t,e){var n=P(t.touches),r=this.targetIds;if(3&e&&1===n.length)return r[n[0].identifier]=!0,[n,n];var i,o,a=P(t.changedTouches),s=[],l=this.target;if(o=n.filter((function(t){return A(t.target,l)})),1===e)for(i=0;i-1&&r.splice(t,1)}),2500)}}function ft(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,r=0;r-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){var e=this,n=this.state;function r(n){e.manager.emit(n,t)}n<8&&r(e.options.event+bt(n)),r(e.options.event),t.additionalEvent&&r(t.additionalEvent),n>=8&&r(e.options.event+bt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=32},canEmit:function(){for(var t=0;te.threshold&&i&e.direction},attrTest:function(t){return wt.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=_t(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),O(St,wt,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),O(Ct,yt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distancee.time;if(this._input=t,!r||!n||12&t.eventType&&!i)this.reset();else if(1&t.eventType)this.reset(),this._timer=m((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=v(),this.manager.emit(this.options.event,this._input)))}}),O(Et,wt,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),O(Tt,wt,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Ot.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:24&n&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&g(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=_t(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),O(Mt,yt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return["manipulation"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,r=t.distance(r=1))return r;for(;no?n=i:r=i,i=.5*(r-n)+n}return i},r.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=o;function o(t,e){this.x=t,this.y=e}o.prototype={clone:function(){return new o(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&&this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,n=t.y-this.y;return e*e+n*n},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=n*this.x+e*this.y;return this.x=e*this.x-n*this.y,this.y=r,this},_rotateAround:function(t,e){var n=Math.cos(t),r=Math.sin(t),i=e.y+r*(this.x-e.x)+n*(this.y-e.y);return this.x=e.x+n*(this.x-e.x)-r*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},o.convert=function(t){return t instanceof o?t:Array.isArray(t)?new o(t[0],t[1]):t};var a="undefined"!=typeof self?self:{},s=Math.pow(2,53)-1;function l(t,e,r,i){var o=new n(t,e,r,i);return function(t){return o.solve(t)}}var u=l(.25,.1,.25,1);function c(t,e,n){return Math.min(n,Math.max(e,t))}function h(t,e,n){var r=n-e,i=((t-e)%r+r)%r+e;return i===e?n:i}function d(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r>e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function v(t){return!!t&&/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function m(t,e){t.forEach((function(t){e[t]&&(e[t]=e[t].bind(e))}))}function y(t,e){return-1!==t.indexOf(e,t.length-e.length)}function b(t,e,n){var r={};for(var i in t)r[i]=e.call(n||this,t[i],i,t);return r}function _(t,e,n){var r={};for(var i in t)e.call(n||this,t[i],i,t)&&(r[i]=t[i]);return r}function x(t){return Array.isArray(t)?t.map(x):"object"==typeof t&&t?b(t,x):t}var w={};function O(t){w[t]||("undefined"!=typeof console&&console.warn(t),w[t]=!0)}function S(t,e,n){return(n.y-t.y)*(e.x-t.x)>(e.y-t.y)*(n.x-t.x)}function C(t){for(var e=0,n=0,r=t.length,i=r-1,o=void 0,a=void 0;n@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(function(t,n,r,i){var o=r||i;return e[n]=!o||o.toLowerCase(),""})),e["max-age"]){var n=parseInt(e["max-age"],10);isNaN(n)?delete e["max-age"]:e["max-age"]=n}return e}var M=null;function A(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match("Safari")&&!e.match("Chrome")))}return M}function I(t){try{var e=a[t];return e.setItem("_mapbox_test_",1),e.removeItem("_mapbox_test_"),!0}catch(t){return!1}}var j,k,P,L,D=a.performance&&a.performance.now?a.performance.now.bind(a.performance):Date.now.bind(Date),R=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,N=a.cancelAnimationFrame||a.mozCancelAnimationFrame||a.webkitCancelAnimationFrame||a.msCancelAnimationFrame,F={now:D,frame:function(t){var e=R(t);return{cancel:function(){return N(e)}}},getImageData:function(t,e){void 0===e&&(e=0);var n=a.document.createElement("canvas"),r=n.getContext("2d");if(!r)throw new Error("failed to create canvas 2d context");return n.width=t.width,n.height=t.height,r.drawImage(t,0,0,t.width,t.height),r.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return j||(j=a.document.createElement("a")),j.href=t,j.href},hardwareConcurrency:a.navigator&&a.navigator.hardwareConcurrency||4,get devicePixelRatio(){return a.devicePixelRatio},get prefersReducedMotion(){return!!a.matchMedia&&(null==k&&(k=a.matchMedia("(prefers-reduced-motion: reduce)")),k.matches)}},B={API_URL:"https://api.mapbox.com",get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf("https://api.mapbox.cn")?"https://events.mapbox.cn/events/v2":0===this.API_URL.indexOf("https://api.mapbox.com")?"https://events.mapbox.com/events/v2":null:null},FEEDBACK_URL:"https://apps.mapbox.com/feedback",REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},z={supported:!1,testSupport:function(t){!V&&L&&(U?G(t):P=t)}},V=!1,U=!1;function G(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,L),t.isContextLost())return;z.supported=!0}catch(t){}t.deleteTexture(e),V=!0}a.document&&((L=a.document.createElement("img")).onload=function(){P&&G(P),P=null,U=!0},L.onerror=function(){V=!0,P=null},L.src="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=");var H="01",W=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function Y(t){return 0===t.indexOf("mapbox:")}W.prototype._createSkuToken=function(){var t=function(){for(var t="",e=0;e<10;e++)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[Math.floor(62*Math.random())];return{token:["1",H,t].join(""),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},W.prototype._isSkuTokenExpired=function(){return Date.now()>this._skuTokenExpiresAt},W.prototype.transformRequest=function(t,e){return this._transformRequestFn&&this._transformRequestFn(t,e)||{url:t}},W.prototype.normalizeStyleURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/styles/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeGlyphsURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/fonts/v1"+n.path,this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSourceURL=function(t,e){if(!Y(t))return t;var n=Z(t);return n.path="/v4/"+n.authority+".json",n.params.push("secure"),this._makeAPIURL(n,this._customAccessToken||e)},W.prototype.normalizeSpriteURL=function(t,e,n,r){var i=Z(t);return Y(t)?(i.path="/styles/v1"+i.path+"/sprite"+e+n,this._makeAPIURL(i,this._customAccessToken||r)):(i.path+=""+e+n,K(i))},W.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&&this._createSkuToken(),t&&!Y(t))return t;var n=Z(t);n.path=n.path.replace(/(\.(png|jpg)\d*)(?=$)/,(F.devicePixelRatio>=2||512===e?"@2x":"")+(z.supported?".webp":"$1")),n.path=n.path.replace(/^.+\/v4\//,"/"),n.path="/v4"+n.path;var r=this._customAccessToken||function(t){for(var e=0,n=t;e=0&&t.params.splice(i,1)}if("/"!==r.path&&(t.path=""+r.path+t.path),!B.REQUIRE_ACCESS_TOKEN)return K(t);if(!(e=e||B.ACCESS_TOKEN))throw new Error("An API access token is required to use Mapbox GL. "+n);if("s"===e[0])throw new Error("Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). "+n);return t.params=t.params.filter((function(t){return-1===t.indexOf("access_token")})),t.params.push("access_token="+e),K(t)};var $=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function X(t){return $.test(t)}var q=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function Z(t){var e=t.match(q);if(!e)throw new Error("Unable to parse URL object");return{protocol:e[1],authority:e[2],path:e[3]||"/",params:e[4]?e[4].split("&"):[]}}function K(t){var e=t.params.length?"?"+t.params.join("&"):"";return t.protocol+"://"+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(".");if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(a.atob(e[1]).split("").map((function(t){return"%"+("00"+t.charCodeAt(0).toString(16)).slice(-2)})).join("")))}catch(t){return null}}var Q=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};Q.prototype.getStorageKey=function(t){var e,n=J(B.ACCESS_TOKEN);return e=n&&n.u?a.btoa(encodeURIComponent(n.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number("0x"+e))}))):B.ACCESS_TOKEN||"",t?"mapbox.eventData."+t+":"+e:"mapbox.eventData:"+e},Q.prototype.fetchEventData=function(){var t=I("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{var r=a.localStorage.getItem(e);r&&(this.eventData=JSON.parse(r));var i=a.localStorage.getItem(n);i&&(this.anonId=i)}catch(t){O("Unable to read from LocalStorage")}},Q.prototype.saveEventData=function(){var t=I("localStorage"),e=this.getStorageKey(),n=this.getStorageKey("uuid");if(t)try{a.localStorage.setItem(n,this.anonId),Object.keys(this.eventData).length>=1&&a.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){O("Unable to write to LocalStorage")}},Q.prototype.processRequests=function(t){},Q.prototype.postEvent=function(t,e,n,r){var i=this;if(B.EVENTS_URL){var o=Z(B.EVENTS_URL);o.params.push("access_token="+(r||B.ACCESS_TOKEN||""));var a={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:"mapbox-gl-js",sdkVersion:"1.13.2",skuId:H,userId:this.anonId},s=e?d(a,e):a,l={url:K(o),headers:{"Content-Type":"text/plain"},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,n(t),i.saveEventData(),i.processRequests(r)}))}},Q.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var tt,et,nt=function(t){function e(){t.call(this,"map.load"),this.success={},this.skuToken=""}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,n,r){this.skuToken=n,(B.EVENTS_URL&&r||B.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||X(t)})))&&this.queueRequest({id:e,timestamp:Date.now()},r)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){var n=this.queue.shift(),r=n.id,i=n.timestamp;r&&this.success[r]||(this.anonId||this.fetchEventData(),v(this.anonId)||(this.anonId=g()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||r&&(e.success[r]=!0)}),t))}},e}(Q),rt=new(function(t){function e(e){t.call(this,"appUserTurnstile"),this._customAccessToken=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){B.EVENTS_URL&&B.ACCESS_TOKEN&&Array.isArray(t)&&t.some((function(t){return Y(t)||X(t)}))&&this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&&0!==this.queue.length){this.anonId&&this.eventData.lastSuccess&&this.eventData.tokenU||this.fetchEventData();var n=J(B.ACCESS_TOKEN),r=n?n.u:B.ACCESS_TOKEN,i=r!==this.eventData.tokenU;v(this.anonId)||(this.anonId=g(),i=!0);var o=this.queue.shift();if(this.eventData.lastSuccess){var a=new Date(this.eventData.lastSuccess),s=new Date(o),l=(o-this.eventData.lastSuccess)/864e5;i=i||l>=1||l<-1||a.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(o,{"enabled.telemetry":!1},(function(t){t||(e.eventData.lastSuccess=o,e.eventData.tokenU=r)}),t)}},e}(Q)),it=rt.postTurnstileEvent.bind(rt),ot=new nt,at=ot.postMapLoadEvent.bind(ot),st=500,lt=50;function ut(){a.caches&&!tt&&(tt=a.caches.open("mapbox-tiles"))}function ct(t){var e=t.indexOf("?");return e<0?t:t.slice(0,e)}var ht,dt=1/0;function ft(){return null==ht&&(ht=a.OffscreenCanvas&&new a.OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof a.createImageBitmap),ht}var pt={Unknown:"Unknown",Style:"Style",Source:"Source",Tile:"Tile",Glyphs:"Glyphs",SpriteImage:"SpriteImage",SpriteJSON:"SpriteJSON",Image:"Image"};"function"==typeof Object.freeze&&Object.freeze(pt);var gt,vt,mt=function(t){function e(e,n,r){401===n&&X(r)&&(e+=": you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes"),t.call(this,e),this.status=n,this.url=r,this.name=this.constructor.name,this.message=e}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+": "+this.message+" ("+this.status+"): "+this.url},e}(Error),yt=E()?function(){return self.worker&&self.worker.referrer}:function(){return("blob:"===a.location.protocol?a.parent:a).location.href},bt=function(t,e){if(!(/^file:/.test(n=t.url)||/^file:/.test(yt())&&!/^\w+:/.test(n))){if(a.fetch&&a.Request&&a.AbortController&&a.Request.prototype.hasOwnProperty("signal"))return function(t,e){var n,r=new a.AbortController,i=new a.Request(t.url,{method:t.method||"GET",body:t.body,credentials:t.credentials,headers:t.headers,referrer:yt(),signal:r.signal}),o=!1,s=!1,l=(n=i.url).indexOf("sku=")>0&&X(n);"json"===t.type&&i.headers.set("Accept","application/json");var u=function(n,r,o){if(!s){if(n&&"SecurityError"!==n.message&&O(n),r&&o)return c(r);var u=Date.now();a.fetch(i).then((function(n){if(n.ok){var r=l?n.clone():null;return c(n,r,u)}return e(new mt(n.statusText,n.status,t.url))})).catch((function(t){20!==t.code&&e(new Error(t.message))}))}},c=function(n,r,l){("arrayBuffer"===t.type?n.arrayBuffer():"json"===t.type?n.json():n.text()).then((function(t){s||(r&&l&&function(t,e,n){if(ut(),tt){var r={status:e.status,statusText:e.statusText,headers:new a.Headers};e.headers.forEach((function(t,e){return r.headers.set(e,t)}));var i=T(e.headers.get("Cache-Control")||"");i["no-store"]||(i["max-age"]&&r.headers.set("Expires",new Date(n+1e3*i["max-age"]).toUTCString()),new Date(r.headers.get("Expires")).getTime()-n<42e4||function(t,e){if(void 0===et)try{new Response(new ReadableStream),et=!0}catch(t){et=!1}et?e(t.body):t.blob().then(e)}(e,(function(e){var n=new a.Response(e,r);ut(),tt&&tt.then((function(e){return e.put(ct(t.url),n)})).catch((function(t){return O(t.message)}))})))}}(i,r,l),o=!0,e(null,t,n.headers.get("Cache-Control"),n.headers.get("Expires")))})).catch((function(t){s||e(new Error(t.message))}))};return l?function(t,e){if(ut(),!tt)return e(null);var n=ct(t.url);tt.then((function(t){t.match(n).then((function(r){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get("Expires")||0),n=T(t.headers.get("Cache-Control")||"");return e>Date.now()&&!n["no-cache"]}(r);t.delete(n),i&&t.put(n,r.clone()),e(null,r,i)})).catch(e)})).catch(e)}(i,u):u(null,null),{cancel:function(){s=!0,o||r.abort()}}}(t,e);if(E()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",t,e,void 0,!0)}var n;return function(t,e){var n=new a.XMLHttpRequest;for(var r in n.open(t.method||"GET",t.url,!0),"arrayBuffer"===t.type&&(n.responseType="arraybuffer"),t.headers)n.setRequestHeader(r,t.headers[r]);return"json"===t.type&&(n.responseType="text",n.setRequestHeader("Accept","application/json")),n.withCredentials="include"===t.credentials,n.onerror=function(){e(new Error(n.statusText))},n.onload=function(){if((n.status>=200&&n.status<300||0===n.status)&&null!==n.response){var r=n.response;if("json"===t.type)try{r=JSON.parse(n.response)}catch(t){return e(t)}e(null,r,n.getResponseHeader("Cache-Control"),n.getResponseHeader("Expires"))}else e(new mt(n.statusText,n.status,t.url))},n.send(t.body),{cancel:function(){return n.abort()}}}(t,e)},_t=function(t,e){return bt(d(t,{type:"arrayBuffer"}),e)},xt=function(t,e){return bt(d(t,{method:"POST"}),e)},wt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";gt=[],vt=0;var Ot=function(t,e){if(z.supported&&(t.headers||(t.headers={}),t.headers.accept="image/webp,*/*"),vt>=B.MAX_PARALLEL_IMAGE_REQUESTS){var n={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return gt.push(n),n}vt++;var r=!1,i=function(){if(!r)for(r=!0,vt--;gt.length&&vt0||this._oneTimeListeners&&this._oneTimeListeners[t]&&this._oneTimeListeners[t].length>0||this._eventedParent&&this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},sources:{required:!0,type:"sources"},sprite:{type:"string"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{}},default:"mapbox"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}},It=function(t,e,n,r){this.message=(t?t+": ":"")+n,r&&(this.identifier=r),null!=e&&e.__line__&&(this.line=e.__line__)};function jt(t){var e=t.value;return e?[new It(t.key,e,"constants have been deprecated as of v8")]:[]}function kt(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];for(var r=0,i=e;r":"value"===t.itemType.kind?"array":"array<"+e+">"}return t.kind}var qt=[Nt,Ft,Bt,zt,Vt,Wt,Ut,$t(Gt),Yt];function Zt(t,e){if("error"===e.kind)return null;if("array"===t.kind){if("array"===e.kind&&(0===e.N&&"value"===e.itemType.kind||!Zt(t.itemType,e.itemType))&&("number"!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if("value"===t.kind)for(var n=0,r=qt;n255?255:t}function i(t){return r("%"===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function o(t){return(e="%"===t[t.length-1]?parseFloat(t)/100:parseFloat(t))<0?0:e>1?1:e;var e}function a(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,"").toLowerCase();if(s in n)return n[s].slice();if("#"===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))>=0&&e<=4095?[(3840&e)>>4|(3840&e)>>8,240&e|(240&e)>>4,15&e|(15&e)<<4,1]:null:7===s.length&&(e=parseInt(s.substr(1),16))>=0&&e<=16777215?[(16711680&e)>>16,(65280&e)>>8,255&e,1]:null;var l=s.indexOf("("),u=s.indexOf(")");if(-1!==l&&u+1===s.length){var c=s.substr(0,l),h=s.substr(l+1,u-(l+1)).split(","),d=1;switch(c){case"rgba":if(4!==h.length)return null;d=o(h.pop());case"rgb":return 3!==h.length?null:[i(h[0]),i(h[1]),i(h[2]),d];case"hsla":if(4!==h.length)return null;d=o(h.pop());case"hsl":if(3!==h.length)return null;var f=(parseFloat(h[0])%360+360)%360/360,p=o(h[1]),g=o(h[2]),v=g<=.5?g*(p+1):g+p-g*p,m=2*g-v;return[r(255*a(m,v,f+1/3)),r(255*a(m,v,f)),r(255*a(m,v,f-1/3)),d];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,n,r){void 0===r&&(r=1),this.r=t,this.g=e,this.b=n,this.a=r};te.parse=function(t){if(t){if(t instanceof te)return t;if("string"==typeof t){var e=Qt(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[1],n=t[2],r=t[3];return"rgba("+Math.round(t[0])+","+Math.round(e)+","+Math.round(n)+","+r+")"},te.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,n){this.sensitivity=t?e?"variant":"case":e?"accent":"base",this.locale=n,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var ne=function(t,e,n,r,i){this.text=t,this.image=e,this.scale=n,this.fontStack=r,this.textColor=i},re=function(t){this.sections=t};re.fromString=function(t){return new re([new ne(t,null,null,null,null)])},re.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&&0!==t.image.name.length}))},re.factory=function(t){return t instanceof re?t:re.fromString(t)},re.prototype.toString=function(){return 0===this.sections.length?"":this.sections.map((function(t){return t.text})).join("")},re.prototype.serialize=function(){for(var t=["format"],e=0,n=this.sections;e=0&&t<=255&&"number"==typeof e&&e>=0&&e<=255&&"number"==typeof n&&n>=0&&n<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:"Invalid rgba value ["+[t,e,n,r].join(", ")+"]: 'a' must be between 0 and 1.":"Invalid rgba value ["+("number"==typeof r?[t,e,n,r]:[t,e,n]).join(", ")+"]: 'r', 'g', and 'b' must be between 0 and 255."}function ae(t){if(null===t)return!0;if("string"==typeof t)return!0;if("boolean"==typeof t)return!0;if("number"==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof re)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,n=t;e2){var s=t[1];if("string"!=typeof s||!(s in he)||"object"===s)return e.error('The item type argument of "array" must be one of string, number, boolean',1);o=he[s],r++}else o=Gt;if(t.length>3){if(null!==t[2]&&("number"!=typeof t[2]||t[2]<0||t[2]!==Math.floor(t[2])))return e.error('The length argument to "array" must be a positive integer literal',2);a=t[2],r++}n=$t(o,a)}else n=he[i];for(var l=[];r1)&&e.push(r)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var fe=function(t){this.type=Wt,this.sections=t};fe.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[1];if(!Array.isArray(n)&&"object"==typeof n)return e.error("First argument must be an image or text section.");for(var r=[],i=!1,o=1;o<=t.length-1;++o){var a=t[o];if(i&&"object"==typeof a&&!Array.isArray(a)){i=!1;var s=null;if(a["font-scale"]&&!(s=e.parse(a["font-scale"],1,Ft)))return null;var l=null;if(a["text-font"]&&!(l=e.parse(a["text-font"],1,$t(Bt))))return null;var u=null;if(a["text-color"]&&!(u=e.parse(a["text-color"],1,Vt)))return null;var c=r[r.length-1];c.scale=s,c.font=l,c.textColor=u}else{var h=e.parse(t[o],1,Gt);if(!h)return null;var d=h.type.kind;if("string"!==d&&"value"!==d&&"null"!==d&&"resolvedImage"!==d)return e.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");i=!0,r.push({content:h,scale:null,font:null,textColor:null})}}return new fe(r)},fe.prototype.evaluate=function(t){return new re(this.sections.map((function(e){var n=e.content.evaluate(t);return se(n)===Yt?new ne("",n,null,null,null):new ne(le(n),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(","):null,e.textColor?e.textColor.evaluate(t):null)})))},fe.prototype.eachChild=function(t){for(var e=0,n=this.sections;e-1),n},pe.prototype.eachChild=function(t){t(this.input)},pe.prototype.outputDefined=function(){return!1},pe.prototype.serialize=function(){return["image",this.input.serialize()]};var ge={"to-boolean":zt,"to-color":Vt,"to-number":Ft,"to-string":Bt},ve=function(t,e){this.type=t,this.args=e};ve.parse=function(t,e){if(t.length<2)return e.error("Expected at least one argument.");var n=t[0];if(("to-boolean"===n||"to-string"===n)&&2!==t.length)return e.error("Expected one argument.");for(var r=ge[n],i=[],o=1;o4?"Invalid rbga value "+JSON.stringify(e)+": expected an array containing either three or four numeric values.":oe(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ce(n||"Could not parse color from value '"+("string"==typeof e?e:String(JSON.stringify(e)))+"'")}if("number"===this.type.kind){for(var a=null,s=0,l=this.args;s=e[2]||t[1]<=e[1]||t[3]>=e[3])}function Oe(t,e){var n=(180+t[0])/360,r=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(n*i*8192),Math.round(r*i*8192)]}function Se(t,e,n){return e[1]>t[1]!=n[1]>t[1]&&t[0]<(n[0]-e[0])*(t[1]-e[1])/(n[1]-e[1])+e[0]}function Ce(t,e){for(var n,r,i,o,a,s,l,u=!1,c=0,h=e.length;c0&&s<0||a<0&&s>0}function Me(t,e,n){for(var r=0,i=n;rn[2]){var i=.5*r,o=t[0]-n[0]>i?-r:n[0]-t[0]>i?r:0;0===o&&(o=t[0]-n[2]>i?-r:n[2]-t[0]>i?r:0),t[0]+=o}xe(e,t)}function Le(t,e,n,r){for(var i=8192*Math.pow(2,r.z),o=[8192*r.x,8192*r.y],a=[],s=0,l=t;s=0)return!1;var n=!0;return t.eachChild((function(t){n&&!Be(t,e)&&(n=!1)})),n}Re.parse=function(t,e){if(2!==t.length)return e.error("'within' expression requires exactly one argument, but found "+(t.length-1)+" instead.");if(ae(t[1])){var n=t[1];if("FeatureCollection"===n.type)for(var r=0;re))throw new ce("Input is not a number.");o=a-1}return 0}Ve.prototype.parse=function(t,e,n,r,i){return void 0===i&&(i={}),e?this.concat(e,n,r)._parse(t,i):this._parse(t,i)},Ve.prototype._parse=function(t,e){function n(t,e,n){return"assert"===n?new de(e,[t]):"coerce"===n?new ve(e,[t]):t}if(null!==t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t||(t=["literal",t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');var r=t[0];if("string"!=typeof r)return this.error("Expression name must be a string, but found "+typeof r+' instead. If you wanted a literal array, use ["literal", [...]].',0),null;var i=this.registry[r];if(i){var o=i.parse(t,this);if(!o)return null;if(this.expectedType){var a=this.expectedType,s=o.type;if("string"!==a.kind&&"number"!==a.kind&&"boolean"!==a.kind&&"object"!==a.kind&&"array"!==a.kind||"value"!==s.kind)if("color"!==a.kind&&"formatted"!==a.kind&&"resolvedImage"!==a.kind||"value"!==s.kind&&"string"!==s.kind){if(this.checkSubtype(a,s))return null}else o=n(o,a,e.typeAnnotation||"coerce");else o=n(o,a,e.typeAnnotation||"assert")}if(!(o instanceof ue)&&"resolvedImage"!==o.type.kind&&function t(e){if(e instanceof ze)return t(e.boundExpression);if(e instanceof be&&"error"===e.name)return!1;if(e instanceof _e)return!1;if(e instanceof Re)return!1;var n=e instanceof ve||e instanceof de,r=!0;return e.eachChild((function(e){r=n?r&&t(e):r&&e instanceof ue})),!!r&&Ne(e)&&Be(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}(o)){var l=new ye;try{o=new ue(o.type,o.evaluate(l))}catch(t){return this.error(t.message),null}}return o}return this.error('Unknown expression "'+r+'". If you wanted a literal array, use ["literal", [...]].',0)}return this.error(void 0===t?"'undefined' value invalid. Use null instead.":"object"==typeof t?'Bare objects invalid. Use ["literal", {...}] instead.':"Expected an array, but found "+typeof t+" instead.")},Ve.prototype.concat=function(t,e,n){var r="number"==typeof t?this.path.concat(t):this.path,i=n?this.scope.concat(n):this.scope;return new Ve(this.registry,r,e||null,i,this.errors)},Ve.prototype.error=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=""+this.key+e.map((function(t){return"["+t+"]"})).join("");this.errors.push(new Dt(r,t))},Ve.prototype.checkSubtype=function(t,e){var n=Zt(t,e);return n&&this.error(n),n};var Ge=function(t,e,n){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var r=0,i=n;r=a)return e.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',l);var c=e.parse(s,u,i);if(!c)return null;i=i||c.type,r.push([a,c])}return new Ge(i,n,r)},Ge.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;return r>=e[i-1]?n[i-1].evaluate(t):n[Ue(e,r)].evaluate(t)},Ge.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e0&&t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var We=Object.freeze({__proto__:null,number:He,color:function(t,e,n){return new te(He(t.r,e.r,n),He(t.g,e.g,n),He(t.b,e.b,n),He(t.a,e.a,n))},array:function(t,e,n){return t.map((function(t,r){return He(t,e[r],n)}))}}),Ye=6/29*3*(6/29),$e=Math.PI/180,Xe=180/Math.PI;function qe(t){return t>.008856451679035631?Math.pow(t,1/3):t/Ye+4/29}function Ze(t){return t>6/29?t*t*t:Ye*(t-4/29)}function Ke(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Je(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Qe(t){var e=Je(t.r),n=Je(t.g),r=Je(t.b),i=qe((.4124564*e+.3575761*n+.1804375*r)/.95047),o=qe((.2126729*e+.7151522*n+.072175*r)/1);return{l:116*o-16,a:500*(i-o),b:200*(o-qe((.0193339*e+.119192*n+.9503041*r)/1.08883)),alpha:t.a}}function tn(t){var e=(t.l+16)/116,n=isNaN(t.a)?e:e+t.a/500,r=isNaN(t.b)?e:e-t.b/200;return e=1*Ze(e),n=.95047*Ze(n),r=1.08883*Ze(r),new te(Ke(3.2404542*n-1.5371385*e-.4985314*r),Ke(-.969266*n+1.8760108*e+.041556*r),Ke(.0556434*n-.2040259*e+1.0572252*r),t.alpha)}function en(t,e,n){var r=e-t;return t+n*(r>180||r<-180?r-360*Math.round(r/360):r)}var nn={forward:Qe,reverse:tn,interpolate:function(t,e,n){return{l:He(t.l,e.l,n),a:He(t.a,e.a,n),b:He(t.b,e.b,n),alpha:He(t.alpha,e.alpha,n)}}},rn={forward:function(t){var e=Qe(t),n=e.l,r=e.a,i=e.b,o=Math.atan2(i,r)*Xe;return{h:o<0?o+360:o,c:Math.sqrt(r*r+i*i),l:n,alpha:t.a}},reverse:function(t){var e=t.h*$e,n=t.c;return tn({l:t.l,a:Math.cos(e)*n,b:Math.sin(e)*n,alpha:t.alpha})},interpolate:function(t,e,n){return{h:en(t.h,e.h,n),c:He(t.c,e.c,n),l:He(t.l,e.l,n),alpha:He(t.alpha,e.alpha,n)}}},on=Object.freeze({__proto__:null,lab:nn,hcl:rn}),an=function(t,e,n,r,i){this.type=t,this.operator=e,this.interpolation=n,this.input=r,this.labels=[],this.outputs=[];for(var o=0,a=i;o1})))return e.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:s}}if(t.length-1<4)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if((t.length-1)%2!=0)return e.error("Expected an even number of arguments.");if(!(i=e.parse(i,2,Ft)))return null;var l=[],u=null;"interpolate-hcl"===n||"interpolate-lab"===n?u=Vt:e.expectedType&&"value"!==e.expectedType.kind&&(u=e.expectedType);for(var c=0;c=h)return e.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',f);var g=e.parse(d,p,u);if(!g)return null;u=u||g.type,l.push([h,g])}return"number"===u.kind||"color"===u.kind||"array"===u.kind&&"number"===u.itemType.kind&&"number"==typeof u.N?new an(u,n,r,i,l):e.error("Type "+Xt(u)+" is not interpolatable.")},an.prototype.evaluate=function(t){var e=this.labels,n=this.outputs;if(1===e.length)return n[0].evaluate(t);var r=this.input.evaluate(t);if(r<=e[0])return n[0].evaluate(t);var i=e.length;if(r>=e[i-1])return n[i-1].evaluate(t);var o=Ue(e,r),a=an.interpolationFactor(this.interpolation,r,e[o],e[o+1]),s=n[o].evaluate(t),l=n[o+1].evaluate(t);return"interpolate"===this.operator?We[this.type.kind.toLowerCase()](s,l,a):"interpolate-hcl"===this.operator?rn.reverse(rn.interpolate(rn.forward(s),rn.forward(l),a)):nn.reverse(nn.interpolate(nn.forward(s),nn.forward(l),a))},an.prototype.eachChild=function(t){t(this.input);for(var e=0,n=this.outputs;e=n.length)throw new ce("Array index out of bounds: "+e+" > "+(n.length-1)+".");if(e!==Math.floor(e))throw new ce("Array index must be an integer, but found "+e+" instead.");return n[e]},cn.prototype.eachChild=function(t){t(this.index),t(this.input)},cn.prototype.outputDefined=function(){return!1},cn.prototype.serialize=function(){return["at",this.index.serialize(),this.input.serialize()]};var hn=function(t,e){this.type=zt,this.needle=t,this.haystack=e};hn.parse=function(t,e){if(3!==t.length)return e.error("Expected 2 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Gt);return n&&r?Kt(n.type,[zt,Bt,Ft,Nt,Gt])?new hn(n,r):e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead"):null},hn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!n)return!1;if(!Jt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Jt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");return n.indexOf(e)>=0},hn.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},hn.prototype.outputDefined=function(){return!0},hn.prototype.serialize=function(){return["in",this.needle.serialize(),this.haystack.serialize()]};var dn=function(t,e,n){this.type=Ft,this.needle=t,this.haystack=e,this.fromIndex=n};dn.parse=function(t,e){if(t.length<=2||t.length>=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Gt);if(!n||!r)return null;if(!Kt(n.type,[zt,Bt,Ft,Nt,Gt]))return e.error("Expected first argument to be of type boolean, string, number or null, but found "+Xt(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ft);return i?new dn(n,r,i):null}return new dn(n,r)},dn.prototype.evaluate=function(t){var e=this.needle.evaluate(t),n=this.haystack.evaluate(t);if(!Jt(e,["boolean","string","number","null"]))throw new ce("Expected first argument to be of type boolean, string, number or null, but found "+Xt(se(e))+" instead.");if(!Jt(n,["string","array"]))throw new ce("Expected second argument to be of type array or string, but found "+Xt(se(n))+" instead.");if(this.fromIndex){var r=this.fromIndex.evaluate(t);return n.indexOf(e,r)}return n.indexOf(e)},dn.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&&t(this.fromIndex)},dn.prototype.outputDefined=function(){return!1},dn.prototype.serialize=function(){if(null!=this.fromIndex&&void 0!==this.fromIndex){var t=this.fromIndex.serialize();return["index-of",this.needle.serialize(),this.haystack.serialize(),t]}return["index-of",this.needle.serialize(),this.haystack.serialize()]};var fn=function(t,e,n,r,i,o){this.inputType=t,this.type=e,this.input=n,this.cases=r,this.outputs=i,this.otherwise=o};fn.parse=function(t,e){if(t.length<5)return e.error("Expected at least 4 arguments, but found only "+(t.length-1)+".");if(t.length%2!=1)return e.error("Expected an even number of arguments.");var n,r;e.expectedType&&"value"!==e.expectedType.kind&&(r=e.expectedType);for(var i={},o=[],a=2;aNumber.MAX_SAFE_INTEGER)return u.error("Branch labels must be integers no larger than "+Number.MAX_SAFE_INTEGER+".");if("number"==typeof d&&Math.floor(d)!==d)return u.error("Numeric branch labels must be integer values.");if(n){if(u.checkSubtype(n,se(d)))return null}else n=se(d);if(void 0!==i[String(d)])return u.error("Branch labels must be unique.");i[String(d)]=o.length}var f=e.parse(l,a,r);if(!f)return null;r=r||f.type,o.push(f)}var p=e.parse(t[1],1,Gt);if(!p)return null;var g=e.parse(t[t.length-1],t.length-1,r);return g?"value"!==p.type.kind&&e.concat(1).checkSubtype(n,p.type)?null:new fn(n,r,p,i,o,g):null},fn.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&&this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},fn.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},fn.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&&this.otherwise.outputDefined()},fn.prototype.serialize=function(){for(var t=this,e=["match",this.input.serialize()],n=[],r={},i=0,o=Object.keys(this.cases).sort();i=5)return e.error("Expected 3 or 4 arguments, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1,Gt),r=e.parse(t[2],2,Ft);if(!n||!r)return null;if(!Kt(n.type,[$t(Gt),Bt,Gt]))return e.error("Expected first argument to be of type array or string, but found "+Xt(n.type)+" instead");if(4===t.length){var i=e.parse(t[3],3,Ft);return i?new gn(n.type,n,r,i):null}return new gn(n.type,n,r)},gn.prototype.evaluate=function(t){var e=this.input.evaluate(t),n=this.beginIndex.evaluate(t);if(!Jt(e,["string","array"]))throw new ce("Expected first argument to be of type array or string, but found "+Xt(se(e))+" instead.");if(this.endIndex){var r=this.endIndex.evaluate(t);return e.slice(n,r)}return e.slice(n)},gn.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&&t(this.endIndex)},gn.prototype.outputDefined=function(){return!1},gn.prototype.serialize=function(){if(null!=this.endIndex&&void 0!==this.endIndex){var t=this.endIndex.serialize();return["slice",this.input.serialize(),this.beginIndex.serialize(),t]}return["slice",this.input.serialize(),this.beginIndex.serialize()]};var bn=yn("==",(function(t,e,n){return e===n}),mn),_n=yn("!=",(function(t,e,n){return e!==n}),(function(t,e,n,r){return!mn(0,e,n,r)})),xn=yn("<",(function(t,e,n){return e",(function(t,e,n){return e>n}),(function(t,e,n,r){return r.compare(e,n)>0})),On=yn("<=",(function(t,e,n){return e<=n}),(function(t,e,n,r){return r.compare(e,n)<=0})),Sn=yn(">=",(function(t,e,n){return e>=n}),(function(t,e,n,r){return r.compare(e,n)>=0})),Cn=function(t,e,n,r,i){this.type=Bt,this.number=t,this.locale=e,this.currency=n,this.minFractionDigits=r,this.maxFractionDigits=i};Cn.parse=function(t,e){if(3!==t.length)return e.error("Expected two arguments.");var n=e.parse(t[1],1,Ft);if(!n)return null;var r=t[2];if("object"!=typeof r||Array.isArray(r))return e.error("NumberFormat options argument must be an object.");var i=null;if(r.locale&&!(i=e.parse(r.locale,1,Bt)))return null;var o=null;if(r.currency&&!(o=e.parse(r.currency,1,Bt)))return null;var a=null;if(r["min-fraction-digits"]&&!(a=e.parse(r["min-fraction-digits"],1,Ft)))return null;var s=null;return r["max-fraction-digits"]&&!(s=e.parse(r["max-fraction-digits"],1,Ft))?null:new Cn(n,i,o,a,s)},Cn.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Cn.prototype.eachChild=function(t){t(this.number),this.locale&&t(this.locale),this.currency&&t(this.currency),this.minFractionDigits&&t(this.minFractionDigits),this.maxFractionDigits&&t(this.maxFractionDigits)},Cn.prototype.outputDefined=function(){return!1},Cn.prototype.serialize=function(){var t={};return this.locale&&(t.locale=this.locale.serialize()),this.currency&&(t.currency=this.currency.serialize()),this.minFractionDigits&&(t["min-fraction-digits"]=this.minFractionDigits.serialize()),this.maxFractionDigits&&(t["max-fraction-digits"]=this.maxFractionDigits.serialize()),["number-format",this.number.serialize(),t]};var En=function(t){this.type=Ft,this.input=t};En.parse=function(t,e){if(2!==t.length)return e.error("Expected 1 argument, but found "+(t.length-1)+" instead.");var n=e.parse(t[1],1);return n?"array"!==n.type.kind&&"string"!==n.type.kind&&"value"!==n.type.kind?e.error("Expected argument of type string or array, but found "+Xt(n.type)+" instead."):new En(n):null},En.prototype.evaluate=function(t){var e=this.input.evaluate(t);if("string"==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ce("Expected value to be of type string or array, but found "+Xt(se(e))+" instead.")},En.prototype.eachChild=function(t){t(this.input)},En.prototype.outputDefined=function(){return!1},En.prototype.serialize=function(){var t=["length"];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tn={"==":bn,"!=":_n,">":wn,"<":xn,">=":Sn,"<=":On,array:de,at:cn,boolean:de,case:pn,coalesce:ln,collator:_e,format:fe,image:pe,in:hn,"index-of":dn,interpolate:an,"interpolate-hcl":an,"interpolate-lab":an,length:En,let:un,literal:ue,match:fn,number:de,"number-format":Cn,object:de,slice:gn,step:Ge,string:de,"to-boolean":ve,"to-color":ve,"to-number":ve,"to-string":ve,var:ze,within:Re};function Mn(t,e){var n=e[0],r=e[1],i=e[2],o=e[3];n=n.evaluate(t),r=r.evaluate(t),i=i.evaluate(t);var a=o?o.evaluate(t):1,s=oe(n,r,i,a);if(s)throw new ce(s);return new te(n/255*a,r/255*a,i/255*a,a)}function An(t,e){return t in e}function In(t,e){var n=e[t];return void 0===n?null:n}function jn(t){return{type:t}}function kn(t){return{result:"success",value:t}}function Pn(t){return{result:"error",value:t}}function Ln(t){return"data-driven"===t["property-type"]||"cross-faded-data-driven"===t["property-type"]}function Dn(t){return!!t.expression&&t.expression.parameters.indexOf("zoom")>-1}function Rn(t){return!!t.expression&&t.expression.interpolated}function Nn(t){return t instanceof Number?"number":t instanceof String?"string":t instanceof Boolean?"boolean":Array.isArray(t)?"array":null===t?"null":typeof t}function Fn(t){return"object"==typeof t&&null!==t&&!Array.isArray(t)}function Bn(t){return t}function zn(t,e,n){return void 0!==t?t:void 0!==e?e:void 0!==n?n:void 0}function Vn(t,e,n,r,i){return zn(typeof n===i?r[n]:void 0,t.default,e.default)}function Un(t,e,n){if("number"!==Nn(n))return zn(t.default,e.default);var r=t.stops.length;if(1===r)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[r-1][0])return t.stops[r-1][1];var i=Ue(t.stops.map((function(t){return t[0]})),n);return t.stops[i][1]}function Gn(t,e,n){var r=void 0!==t.base?t.base:1;if("number"!==Nn(n))return zn(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(n<=t.stops[0][0])return t.stops[0][1];if(n>=t.stops[i-1][0])return t.stops[i-1][1];var o=Ue(t.stops.map((function(t){return t[0]})),n),a=function(t,e,n,r){var i=r-n,o=t-n;return 0===i?0:1===e?o/i:(Math.pow(e,o)-1)/(Math.pow(e,i)-1)}(n,r,t.stops[o][0],t.stops[o+1][0]),s=t.stops[o][1],l=t.stops[o+1][1],u=We[e.type]||Bn;if(t.colorSpace&&"rgb"!==t.colorSpace){var c=on[t.colorSpace];u=function(t,e){return c.reverse(c.interpolate(c.forward(t),c.forward(e),a))}}return"function"==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=s.evaluate.apply(void 0,t),r=l.evaluate.apply(void 0,t);if(void 0!==n&&void 0!==r)return u(n,r,a)}}:u(s,l,a)}function Hn(t,e,n){return"color"===e.type?n=te.parse(n):"formatted"===e.type?n=re.fromString(n.toString()):"resolvedImage"===e.type?n=ie.fromString(n.toString()):Nn(n)===e.type||"enum"===e.type&&e.values[n]||(n=void 0),zn(n,t.default,e.default)}be.register(Tn,{error:[{kind:"error"},[Bt],function(t,e){throw new ce(e[0].evaluate(t))}],typeof:[Bt,[Gt],function(t,e){return Xt(se(e[0].evaluate(t)))}],"to-rgba":[$t(Ft,4),[Vt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Vt,[Ft,Ft,Ft],Mn],rgba:[Vt,[Ft,Ft,Ft,Ft],Mn],has:{type:zt,overloads:[[[Bt],function(t,e){return An(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var n=e[1];return An(e[0].evaluate(t),n.evaluate(t))}]]},get:{type:Gt,overloads:[[[Bt],function(t,e){return In(e[0].evaluate(t),t.properties())}],[[Bt,Ut],function(t,e){var n=e[1];return In(e[0].evaluate(t),n.evaluate(t))}]]},"feature-state":[Gt,[Bt],function(t,e){return In(e[0].evaluate(t),t.featureState||{})}],properties:[Ut,[],function(t){return t.properties()}],"geometry-type":[Bt,[],function(t){return t.geometryType()}],id:[Gt,[],function(t){return t.id()}],zoom:[Ft,[],function(t){return t.globals.zoom}],"heatmap-density":[Ft,[],function(t){return t.globals.heatmapDensity||0}],"line-progress":[Ft,[],function(t){return t.globals.lineProgress||0}],accumulated:[Gt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],"+":[Ft,jn(Ft),function(t,e){for(var n=0,r=0,i=e;r":[zt,[Bt,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>o}],"filter-id->":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>i}],"filter-<=":[zt,[Bt,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i<=o}],"filter-id-<=":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r<=i}],"filter->=":[zt,[Bt,Gt],function(t,e){var n=e[0],r=e[1],i=t.properties()[n.value],o=r.value;return typeof i==typeof o&&i>=o}],"filter-id->=":[zt,[Gt],function(t,e){var n=e[0],r=t.id(),i=n.value;return typeof r==typeof i&&r>=i}],"filter-has":[zt,[Gt],function(t,e){return e[0].value in t.properties()}],"filter-has-id":[zt,[],function(t){return null!==t.id()&&void 0!==t.id()}],"filter-type-in":[zt,[$t(Bt)],function(t,e){return e[0].value.indexOf(t.geometryType())>=0}],"filter-id-in":[zt,[$t(Gt)],function(t,e){return e[0].value.indexOf(t.id())>=0}],"filter-in-small":[zt,[Bt,$t(Gt)],function(t,e){var n=e[0];return e[1].value.indexOf(t.properties()[n.value])>=0}],"filter-in-large":[zt,[Bt,$t(Gt)],function(t,e){var n=e[0],r=e[1];return function(t,e,n,r){for(;n<=r;){var i=n+r>>1;if(e[i]===t)return!0;e[i]>t?r=i-1:n=i+1}return!1}(t.properties()[n.value],r.value,0,r.value.length-1)}],all:{type:zt,overloads:[[[zt,zt],function(t,e){var n=e[1];return e[0].evaluate(t)&&n.evaluate(t)}],[jn(zt),function(t,e){for(var n=0,r=e;n0&&"string"==typeof t[0]&&t[0]in Tn}function $n(t,e){var n=new Ve(Tn,[],e?function(t){var e={color:Vt,string:Bt,number:Ft,enum:Bt,boolean:zt,formatted:Wt,resolvedImage:Yt};return"array"===t.type?$t(e[t.value]||Gt,t.length):e[t.type]}(e):void 0),r=n.parse(t,void 0,void 0,void 0,e&&"string"===e.type?{typeAnnotation:"coerce"}:void 0);return r?kn(new Wn(r,e)):Pn(n.errors)}Wn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=n,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o,this.expression.evaluate(this._evaluator)},Wn.prototype.evaluate=function(t,e,n,r,i,o){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=n||null,this._evaluator.canonical=r,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=o||null;try{var a=this.expression.evaluate(this._evaluator);if(null==a||"number"==typeof a&&a!=a)return this._defaultValue;if(this._enumValues&&!(a in this._enumValues))throw new ce("Expected value to be one of "+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(", ")+", but found "+JSON.stringify(a)+" instead.");return a}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,"undefined"!=typeof console&&console.warn(t.message)),this._defaultValue}};var Xn=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent="constant"!==t&&!Fe(e.expression)};Xn.prototype.evaluateWithoutErrorHandling=function(t,e,n,r,i,o){return this._styleExpression.evaluateWithoutErrorHandling(t,e,n,r,i,o)},Xn.prototype.evaluate=function(t,e,n,r,i,o){return this._styleExpression.evaluate(t,e,n,r,i,o)};var qn=function(t,e,n,r){this.kind=t,this.zoomStops=n,this._styleExpression=e,this.isStateDependent="camera"!==t&&!Fe(e.expression),this.interpolationType=r};function Zn(t,e){if("error"===(t=$n(t,e)).result)return t;var n=t.value.expression,r=Ne(n);if(!r&&!Ln(e))return Pn([new Dt("","data expressions not supported")]);var i=Be(n,["zoom"]);if(!i&&!Dn(e))return Pn([new Dt("","zoom expressions not supported")]);var o=function t(e){var n=null;if(e instanceof un)n=t(e.result);else if(e instanceof ln)for(var r=0,i=e.args;rr.maximum?[new It(e,n,n+" is greater than the maximum value "+r.maximum)]:[]}function er(t){var e,n,r,i=t.valueSpec,o=Pt(t.value.type),a={},s="categorical"!==o&&void 0===t.value.property,l=!s,u="array"===Nn(t.value.stops)&&"array"===Nn(t.value.stops[0])&&"object"===Nn(t.value.stops[0][0]),c=Jn({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if("identity"===o)return[new It(t.key,t.value,'identity function may not have a "stops" property')];var e=[],n=t.value;return e=e.concat(Qn({key:t.key,value:n,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:h})),"array"===Nn(n)&&0===n.length&&e.push(new It(t.key,n,"array must have at least one stop")),e},default:function(t){return Or({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return"identity"===o&&s&&c.push(new It(t.key,t.value,'missing required property "property"')),"identity"===o||t.value.stops||c.push(new It(t.key,t.value,'missing required property "stops"')),"exponential"===o&&t.valueSpec.expression&&!Rn(t.valueSpec)&&c.push(new It(t.key,t.value,"exponential functions not supported")),t.styleSpec.$version>=8&&(l&&!Ln(t.valueSpec)?c.push(new It(t.key,t.value,"property functions not supported")):s&&!Dn(t.valueSpec)&&c.push(new It(t.key,t.value,"zoom functions not supported"))),"categorical"!==o&&!u||void 0!==t.value.property||c.push(new It(t.key,t.value,'"property" property is required')),c;function h(t){var e=[],o=t.value,s=t.key;if("array"!==Nn(o))return[new It(s,o,"array expected, "+Nn(o)+" found")];if(2!==o.length)return[new It(s,o,"array length 2 expected, length "+o.length+" found")];if(u){if("object"!==Nn(o[0]))return[new It(s,o,"object expected, "+Nn(o[0])+" found")];if(void 0===o[0].zoom)return[new It(s,o,"object stop key must have zoom")];if(void 0===o[0].value)return[new It(s,o,"object stop key must have value")];if(r&&r>Pt(o[0].zoom))return[new It(s,o[0].zoom,"stop zoom values must appear in ascending order")];Pt(o[0].zoom)!==r&&(r=Pt(o[0].zoom),n=void 0,a={}),e=e.concat(Jn({key:s+"[0]",value:o[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tr,value:d}}))}else e=e.concat(d({key:s+"[0]",value:o[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},o));return Yn(Lt(o[1]))?e.concat([new It(s+"[1]",o[1],"expressions are not allowed in function stops.")]):e.concat(Or({key:s+"[1]",value:o[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function d(t,r){var s=Nn(t.value),l=Pt(t.value),u=null!==t.value?t.value:r;if(e){if(s!==e)return[new It(t.key,u,s+" stop domain type must match previous stop domain type "+e)]}else e=s;if("number"!==s&&"string"!==s&&"boolean"!==s)return[new It(t.key,u,"stop domain value must be a number, string, or boolean")];if("number"!==s&&"categorical"!==o){var c="number expected, "+s+" found";return Ln(i)&&void 0===o&&(c+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new It(t.key,u,c)]}return"categorical"!==o||"number"!==s||isFinite(l)&&Math.floor(l)===l?"categorical"!==o&&"number"===s&&void 0!==n&&l=2&&"$id"!==t[1]&&"$type"!==t[1];case"in":return t.length>=3&&("string"!=typeof t[1]||Array.isArray(t[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case"any":case"all":for(var e=0,n=t.slice(1);ee?1:0}function lr(t){if(!t)return!0;var e,n=t[0];return t.length<=1?"any"!==n:"=="===n?ur(t[1],t[2],"=="):"!="===n?dr(ur(t[1],t[2],"==")):"<"===n||">"===n||"<="===n||">="===n?ur(t[1],t[2],n):"any"===n?(e=t.slice(1),["any"].concat(e.map(lr))):"all"===n?["all"].concat(t.slice(1).map(lr)):"none"===n?["all"].concat(t.slice(1).map(lr).map(dr)):"in"===n?cr(t[1],t.slice(2)):"!in"===n?dr(cr(t[1],t.slice(2))):"has"===n?hr(t[1]):"!has"===n?dr(hr(t[1])):"within"!==n||t}function ur(t,e,n){switch(t){case"$type":return["filter-type-"+n,e];case"$id":return["filter-id-"+n,e];default:return["filter-"+n,t,e]}}function cr(t,e){if(0===e.length)return!1;switch(t){case"$type":return["filter-type-in",["literal",e]];case"$id":return["filter-id-in",["literal",e]];default:return e.length>200&&!e.some((function(t){return typeof t!=typeof e[0]}))?["filter-in-large",t,["literal",e.sort(sr)]]:["filter-in-small",t,["literal",e]]}}function hr(t){switch(t){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",t]}}function dr(t){return["!",t]}function fr(t){return ir(Lt(t.value))?nr(kt({},t,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function t(e){var n=e.value,r=e.key;if("array"!==Nn(n))return[new It(r,n,"array expected, "+Nn(n)+" found")];var i,o=e.styleSpec,a=[];if(n.length<1)return[new It(r,n,"filter array must have at least 1 element")];switch(a=a.concat(rr({key:r+"[0]",value:n[0],valueSpec:o.filter_operator,style:e.style,styleSpec:e.styleSpec})),Pt(n[0])){case"<":case"<=":case">":case">=":n.length>=2&&"$type"===Pt(n[1])&&a.push(new It(r,n,'"$type" cannot be use with operator "'+n[0]+'"'));case"==":case"!=":3!==n.length&&a.push(new It(r,n,'filter array for operator "'+n[0]+'" must have 3 elements'));case"in":case"!in":n.length>=2&&"string"!==(i=Nn(n[1]))&&a.push(new It(r+"[1]",n[1],"string expected, "+i+" found"));for(var s=2;s=c[f+0]&&r>=c[f+1])?(a[d]=!0,o.push(u[d])):a[d]=!1}}},Lr.prototype._forEachCell=function(t,e,n,r,i,o,a,s){for(var l=this._convertToCellCoord(t),u=this._convertToCellCoord(e),c=this._convertToCellCoord(n),h=this._convertToCellCoord(r),d=l;d<=c;d++)for(var f=u;f<=h;f++){var p=this.d*f+d;if((!s||s(this._convertFromCellCoord(d),this._convertFromCellCoord(f),this._convertFromCellCoord(d+1),this._convertFromCellCoord(f+1)))&&i.call(this,t,e,n,r,p,o,a,s))return}},Lr.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Lr.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Lr.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,n=0,r=0;r=0)){var c=t[u];l[u]=Nr[s].shallow.indexOf(u)>=0?c:Ur(c,e)}t instanceof Error&&(l.message=t.message)}if(l.$name)throw new Error("$name property is reserved for worker serialization logic.");return"Object"!==s&&(l.$name=s),l}throw new Error("can't serialize object of type "+typeof t)}function Gr(t){if(null==t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||zr(t)||Vr(t)||ArrayBuffer.isView(t)||t instanceof Dr)return t;if(Array.isArray(t))return t.map(Gr);if("object"==typeof t){var e=t.$name||"Object",n=Nr[e].klass;if(!n)throw new Error("can't deserialize unregistered class "+e);if(n.deserialize)return n.deserialize(t);for(var r=Object.create(n.prototype),i=0,o=Object.keys(t);i=0?s:Gr(s)}}return r}throw new Error("can't deserialize object of type "+typeof t)}var Hr=function(){this.first=!0};Hr.prototype.update=function(t,e){var n=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=n,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=n,!0):(this.lastFloorZoom>n?(this.lastIntegerZoom=n+1,this.lastIntegerZoomTime=e):this.lastFloorZoom=128&&t<=255},Arabic:function(t){return t>=1536&&t<=1791},"Arabic Supplement":function(t){return t>=1872&&t<=1919},"Arabic Extended-A":function(t){return t>=2208&&t<=2303},"Hangul Jamo":function(t){return t>=4352&&t<=4607},"Unified Canadian Aboriginal Syllabics":function(t){return t>=5120&&t<=5759},Khmer:function(t){return t>=6016&&t<=6143},"Unified Canadian Aboriginal Syllabics Extended":function(t){return t>=6320&&t<=6399},"General Punctuation":function(t){return t>=8192&&t<=8303},"Letterlike Symbols":function(t){return t>=8448&&t<=8527},"Number Forms":function(t){return t>=8528&&t<=8591},"Miscellaneous Technical":function(t){return t>=8960&&t<=9215},"Control Pictures":function(t){return t>=9216&&t<=9279},"Optical Character Recognition":function(t){return t>=9280&&t<=9311},"Enclosed Alphanumerics":function(t){return t>=9312&&t<=9471},"Geometric Shapes":function(t){return t>=9632&&t<=9727},"Miscellaneous Symbols":function(t){return t>=9728&&t<=9983},"Miscellaneous Symbols and Arrows":function(t){return t>=11008&&t<=11263},"CJK Radicals Supplement":function(t){return t>=11904&&t<=12031},"Kangxi Radicals":function(t){return t>=12032&&t<=12255},"Ideographic Description Characters":function(t){return t>=12272&&t<=12287},"CJK Symbols and Punctuation":function(t){return t>=12288&&t<=12351},Hiragana:function(t){return t>=12352&&t<=12447},Katakana:function(t){return t>=12448&&t<=12543},Bopomofo:function(t){return t>=12544&&t<=12591},"Hangul Compatibility Jamo":function(t){return t>=12592&&t<=12687},Kanbun:function(t){return t>=12688&&t<=12703},"Bopomofo Extended":function(t){return t>=12704&&t<=12735},"CJK Strokes":function(t){return t>=12736&&t<=12783},"Katakana Phonetic Extensions":function(t){return t>=12784&&t<=12799},"Enclosed CJK Letters and Months":function(t){return t>=12800&&t<=13055},"CJK Compatibility":function(t){return t>=13056&&t<=13311},"CJK Unified Ideographs Extension A":function(t){return t>=13312&&t<=19903},"Yijing Hexagram Symbols":function(t){return t>=19904&&t<=19967},"CJK Unified Ideographs":function(t){return t>=19968&&t<=40959},"Yi Syllables":function(t){return t>=40960&&t<=42127},"Yi Radicals":function(t){return t>=42128&&t<=42191},"Hangul Jamo Extended-A":function(t){return t>=43360&&t<=43391},"Hangul Syllables":function(t){return t>=44032&&t<=55215},"Hangul Jamo Extended-B":function(t){return t>=55216&&t<=55295},"Private Use Area":function(t){return t>=57344&&t<=63743},"CJK Compatibility Ideographs":function(t){return t>=63744&&t<=64255},"Arabic Presentation Forms-A":function(t){return t>=64336&&t<=65023},"Vertical Forms":function(t){return t>=65040&&t<=65055},"CJK Compatibility Forms":function(t){return t>=65072&&t<=65103},"Small Form Variants":function(t){return t>=65104&&t<=65135},"Arabic Presentation Forms-B":function(t){return t>=65136&&t<=65279},"Halfwidth and Fullwidth Forms":function(t){return t>=65280&&t<=65519}};function Yr(t){for(var e=0,n=t;e=65097&&t<=65103)||Wr["CJK Compatibility Ideographs"](t)||Wr["CJK Compatibility"](t)||Wr["CJK Radicals Supplement"](t)||Wr["CJK Strokes"](t)||!(!Wr["CJK Symbols and Punctuation"](t)||t>=12296&&t<=12305||t>=12308&&t<=12319||12336===t)||Wr["CJK Unified Ideographs Extension A"](t)||Wr["CJK Unified Ideographs"](t)||Wr["Enclosed CJK Letters and Months"](t)||Wr["Hangul Compatibility Jamo"](t)||Wr["Hangul Jamo Extended-A"](t)||Wr["Hangul Jamo Extended-B"](t)||Wr["Hangul Jamo"](t)||Wr["Hangul Syllables"](t)||Wr.Hiragana(t)||Wr["Ideographic Description Characters"](t)||Wr.Kanbun(t)||Wr["Kangxi Radicals"](t)||Wr["Katakana Phonetic Extensions"](t)||Wr.Katakana(t)&&12540!==t||!(!Wr["Halfwidth and Fullwidth Forms"](t)||65288===t||65289===t||65293===t||t>=65306&&t<=65310||65339===t||65341===t||65343===t||t>=65371&&t<=65503||65507===t||t>=65512&&t<=65519)||!(!Wr["Small Form Variants"](t)||t>=65112&&t<=65118||t>=65123&&t<=65126)||Wr["Unified Canadian Aboriginal Syllabics"](t)||Wr["Unified Canadian Aboriginal Syllabics Extended"](t)||Wr["Vertical Forms"](t)||Wr["Yijing Hexagram Symbols"](t)||Wr["Yi Syllables"](t)||Wr["Yi Radicals"](t))))}function Xr(t){return!($r(t)||function(t){return!!(Wr["Latin-1 Supplement"](t)&&(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Wr["General Punctuation"](t)&&(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Wr["Letterlike Symbols"](t)||Wr["Number Forms"](t)||Wr["Miscellaneous Technical"](t)&&(t>=8960&&t<=8967||t>=8972&&t<=8991||t>=8996&&t<=9e3||9003===t||t>=9085&&t<=9114||t>=9150&&t<=9165||9167===t||t>=9169&&t<=9179||t>=9186&&t<=9215)||Wr["Control Pictures"](t)&&9251!==t||Wr["Optical Character Recognition"](t)||Wr["Enclosed Alphanumerics"](t)||Wr["Geometric Shapes"](t)||Wr["Miscellaneous Symbols"](t)&&!(t>=9754&&t<=9759)||Wr["Miscellaneous Symbols and Arrows"](t)&&(t>=11026&&t<=11055||t>=11088&&t<=11097||t>=11192&&t<=11243)||Wr["CJK Symbols and Punctuation"](t)||Wr.Katakana(t)||Wr["Private Use Area"](t)||Wr["CJK Compatibility Forms"](t)||Wr["Small Form Variants"](t)||Wr["Halfwidth and Fullwidth Forms"](t)||8734===t||8756===t||8757===t||t>=9984&&t<=10087||t>=10102&&t<=10131||65532===t||65533===t)}(t))}function qr(t){return t>=1424&&t<=2303||Wr["Arabic Presentation Forms-A"](t)||Wr["Arabic Presentation Forms-B"](t)}function Zr(t,e){return!(!e&&qr(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||Wr.Khmer(t))}function Kr(t){for(var e=0,n=t;e-1&&(Qr="error"),Jr&&Jr(t)};function ni(){ri.fire(new Et("pluginStateChange",{pluginStatus:Qr,pluginURL:ti}))}var ri=new Mt,ii=function(){return Qr},oi=function(){if("deferred"!==Qr||!ti)throw new Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");Qr="loading",ni(),ti&&_t({url:ti},(function(t){t?ei(t):(Qr="loaded",ni())}))},ai={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return"loaded"===Qr||null!=ai.applyArabicShaping},isLoading:function(){return"loading"===Qr},setState:function(t){Qr=t.pluginStatus,ti=t.pluginURL},isParsed:function(){return null!=ai.applyArabicShaping&&null!=ai.processBidirectionalText&&null!=ai.processStyledBidirectionalText},getPluginURL:function(){return ti}},si=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Hr,this.transition={})};si.prototype.isSupportedScript=function(t){return function(t,e){for(var n=0,r=t;nthis.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*n}:{fromScale:.5,toScale:1,t:1-(1-n)*e}};var li=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Fn(t))return new Kn(t,e);if(Yn(t)){var n=Zn(t,e);if("error"===n.result)throw new Error(n.value.map((function(t){return t.key+": "+t.message})).join(", "));return n.value}var r=t;return"string"==typeof t&&"color"===e.type&&(r=te.parse(t)),{kind:"constant",evaluate:function(){return r}}}(void 0===e?t.specification.default:e,t.specification)};li.prototype.isDataDriven=function(){return"source"===this.expression.kind||"composite"===this.expression.kind},li.prototype.possiblyEvaluate=function(t,e,n){return this.property.possiblyEvaluate(this,t,e,n)};var ui=function(t){this.property=t,this.value=new li(t,void 0)};ui.prototype.transitioned=function(t,e){return new hi(this.property,this.value,e,d({},t.transition,this.transition),t.now)},ui.prototype.untransitioned=function(){return new hi(this.property,this.value,null,{},0)};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};ci.prototype.getValue=function(t){return x(this._values[t].value.value)},ci.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new ui(this._values[t].property)),this._values[t].value=new li(this._values[t].property,null===e?void 0:x(e))},ci.prototype.getTransition=function(t){return x(this._values[t].transition)},ci.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new ui(this._values[t].property)),this._values[t].transition=x(e)||void 0},ci.prototype.serialize=function(){for(var t={},e=0,n=Object.keys(this._values);ethis.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(r=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}(a))}return i};var di=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};di.prototype.possiblyEvaluate=function(t,e,n){for(var r=new gi(this._properties),i=0,o=Object.keys(this._values);ir.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},e.prototype.interpolate=function(t){return t},e}(mi),bi=function(t){this.specification=t};bi.prototype.possiblyEvaluate=function(t,e,n,r){if(void 0!==t.value){if("constant"===t.expression.kind){var i=t.expression.evaluate(e,null,{},n,r);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new si(Math.floor(e.zoom-1),e)),t.expression.evaluate(new si(Math.floor(e.zoom),e)),t.expression.evaluate(new si(Math.floor(e.zoom+1),e)),e)}},bi.prototype._calculate=function(t,e,n,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:n,to:e}},bi.prototype.interpolate=function(t){return t};var _i=function(t){this.specification=t};_i.prototype.possiblyEvaluate=function(t,e,n,r){return!!t.expression.evaluate(e,null,{},n,r)},_i.prototype.interpolate=function(){return!1};var xi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var n=t[e];n.specification.overridable&&this.overridableProperties.push(e);var r=this.defaultPropertyValues[e]=new li(n,void 0),i=this.defaultTransitionablePropertyValues[e]=new ui(n);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=r.possiblyEvaluate({})}};Fr("DataDrivenProperty",mi),Fr("DataConstantProperty",vi),Fr("CrossFadedDataDrivenProperty",yi),Fr("CrossFadedProperty",bi),Fr("ColorRampProperty",_i);var wi=function(t){function e(e,n){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},"custom"!==e.type&&(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),n.layout&&(this._unevaluatedLayout=new fi(n.layout)),n.paint)){for(var r in this._transitionablePaint=new ci(n.paint),e.paint)this.setPaintProperty(r,e.paint[r],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new gi(n.paint)}}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return"visibility"===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,n){void 0===n&&(n={}),null!=e&&this._validate(jr,"layers."+this.id+".layout."+t,t,e,n)||("visibility"!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return y(t,"-transition")?this._transitionablePaint.getTransition(t.slice(0,-"-transition".length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,n){if(void 0===n&&(n={}),null!=e&&this._validate(Ir,"layers."+this.id+".paint."+t,t,e,n))return!1;if(y(t,"-transition"))return this._transitionablePaint.setTransition(t.slice(0,-"-transition".length),e||void 0),!1;var r=this._transitionablePaint._values[t],i="cross-faded-data-driven"===r.property.specification["property-type"],o=r.value.isDataDriven(),a=r.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||o||i||this._handleOverridablePaintPropertyUpdate(t,a,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,n){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&&t=this.maxzoom)||"none"===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&&(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(t.layout=t.layout||{},t.layout.visibility=this.visibility),_(t,(function(t,e){return!(void 0===t||"layout"===e&&!Object.keys(t).length||"paint"===e&&!Object.keys(t).length)}))},e.prototype._validate=function(t,e,n,r,i){return void 0===i&&(i={}),(!i||!1!==i.validate)&&kr(this,t.call(Mr,{key:e,layerType:this.type,objectKey:n,value:r,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof pi&&Ln(e.property.specification)&&("source"===e.value.kind||"composite"===e.value.kind)&&e.value.isStateDependent)return!0}return!1},e}(Mt),Oi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Si=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Ci=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ei(t,e){void 0===e&&(e=1);var n=0,r=0;return{members:t.map((function(t){var i=Oi[t.type].BYTES_PER_ELEMENT,o=n=Ti(n,Math.max(e,i)),a=t.components||1;return r=Math.max(r,i),n+=i*a,{name:t.name,type:t.type,components:a,offset:o}})),size:Ti(n,Math.max(r,e)),alignment:e}}function Ti(t,e){return Math.ceil(t/e)*e}Ci.serialize=function(t,e){return t._trim(),e&&(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Ci.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Ci.prototype._trim=function(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Ci.prototype.clear=function(){this.length=0},Ci.prototype.resize=function(t){this.reserve(t),this.length=t},Ci.prototype.reserve=function(t){if(t>this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&&this.uint8.set(e)}},Ci.prototype._refreshViews=function(){throw new Error("_refreshViews() must be implemented by each concrete StructArray layout")};var Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.int16[r+0]=e,this.int16[r+1]=n,t},e}(Ci);Mi.prototype.bytesPerElement=4,Fr("StructArrayLayout2i4",Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=4*t;return this.int16[o+0]=e,this.int16[o+1]=n,this.int16[o+2]=r,this.int16[o+3]=i,t},e}(Ci);Ai.prototype.bytesPerElement=8,Fr("StructArrayLayout4i8",Ai);var Ii=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Ci);Ii.prototype.bytesPerElement=12,Fr("StructArrayLayout2i4i12",Ii);var ji=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.uint8[l+4]=r,this.uint8[l+5]=i,this.uint8[l+6]=o,this.uint8[l+7]=a,t},e}(Ci);ji.prototype.bytesPerElement=8,Fr("StructArrayLayout2i4ub8",ji);var ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.float32[r+0]=e,this.float32[r+1]=n,t},e}(Ci);ki.prototype.bytesPerElement=8,Fr("StructArrayLayout2f8",ki);var Pi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,l,u){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,n,r,i,o,a,s,l,u)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,c){var h=10*t;return this.uint16[h+0]=e,this.uint16[h+1]=n,this.uint16[h+2]=r,this.uint16[h+3]=i,this.uint16[h+4]=o,this.uint16[h+5]=a,this.uint16[h+6]=s,this.uint16[h+7]=l,this.uint16[h+8]=u,this.uint16[h+9]=c,t},e}(Ci);Pi.prototype.bytesPerElement=20,Fr("StructArrayLayout10ui20",Pi);var Li=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,l,u,c,h){var d=this.length;return this.resize(d+1),this.emplace(d,t,e,n,r,i,o,a,s,l,u,c,h)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,c,h,d){var f=12*t;return this.int16[f+0]=e,this.int16[f+1]=n,this.int16[f+2]=r,this.int16[f+3]=i,this.uint16[f+4]=o,this.uint16[f+5]=a,this.uint16[f+6]=s,this.uint16[f+7]=l,this.int16[f+8]=u,this.int16[f+9]=c,this.int16[f+10]=h,this.int16[f+11]=d,t},e}(Ci);Li.prototype.bytesPerElement=24,Fr("StructArrayLayout4i4ui4i24",Li);var Di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=n,this.float32[i+2]=r,t},e}(Ci);Di.prototype.bytesPerElement=12,Fr("StructArrayLayout3f12",Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(Ci);Ri.prototype.bytesPerElement=4,Fr("StructArrayLayout1ul4",Ri);var Ni=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,l){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,n,r,i,o,a,s,l)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u){var c=10*t,h=5*t;return this.int16[c+0]=e,this.int16[c+1]=n,this.int16[c+2]=r,this.int16[c+3]=i,this.int16[c+4]=o,this.int16[c+5]=a,this.uint32[h+3]=s,this.uint16[c+8]=l,this.uint16[c+9]=u,t},e}(Ci);Ni.prototype.bytesPerElement=20,Fr("StructArrayLayout6i1ul2ui20",Ni);var Fi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,n,r,i,o)},e.prototype.emplace=function(t,e,n,r,i,o,a){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=n,this.int16[s+2]=r,this.int16[s+3]=i,this.int16[s+4]=o,this.int16[s+5]=a,t},e}(Ci);Fi.prototype.bytesPerElement=12,Fr("StructArrayLayout2i2i2i12",Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,n,r,i)},e.prototype.emplace=function(t,e,n,r,i,o){var a=4*t,s=8*t;return this.float32[a+0]=e,this.float32[a+1]=n,this.float32[a+2]=r,this.int16[s+6]=i,this.int16[s+7]=o,t},e}(Ci);Bi.prototype.bytesPerElement=16,Fr("StructArrayLayout2f1f2i16",Bi);var zi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=12*t,a=3*t;return this.uint8[o+0]=e,this.uint8[o+1]=n,this.float32[a+1]=r,this.float32[a+2]=i,t},e}(Ci);zi.prototype.bytesPerElement=12,Fr("StructArrayLayout2ub2f12",zi);var Vi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=n,this.uint16[i+2]=r,t},e}(Ci);Vi.prototype.bytesPerElement=6,Fr("StructArrayLayout3ui6",Vi);var Ui=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v){var m=this.length;return this.resize(m+1),this.emplace(m,t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m){var y=24*t,b=12*t,_=48*t;return this.int16[y+0]=e,this.int16[y+1]=n,this.uint16[y+2]=r,this.uint16[y+3]=i,this.uint32[b+2]=o,this.uint32[b+3]=a,this.uint32[b+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=u,this.uint16[y+12]=c,this.float32[b+7]=h,this.float32[b+8]=d,this.uint8[_+36]=f,this.uint8[_+37]=p,this.uint8[_+38]=g,this.uint32[b+10]=v,this.int16[y+22]=m,t},e}(Ci);Ui.prototype.bytesPerElement=48,Fr("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",Ui);var Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T){var M=this.length;return this.resize(M+1),this.emplace(M,t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T)},e.prototype.emplace=function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,O,S,C,E,T,M){var A=34*t,I=17*t;return this.int16[A+0]=e,this.int16[A+1]=n,this.int16[A+2]=r,this.int16[A+3]=i,this.int16[A+4]=o,this.int16[A+5]=a,this.int16[A+6]=s,this.int16[A+7]=l,this.uint16[A+8]=u,this.uint16[A+9]=c,this.uint16[A+10]=h,this.uint16[A+11]=d,this.uint16[A+12]=f,this.uint16[A+13]=p,this.uint16[A+14]=g,this.uint16[A+15]=v,this.uint16[A+16]=m,this.uint16[A+17]=y,this.uint16[A+18]=b,this.uint16[A+19]=_,this.uint16[A+20]=x,this.uint16[A+21]=w,this.uint16[A+22]=O,this.uint32[I+12]=S,this.float32[I+13]=C,this.float32[I+14]=E,this.float32[I+15]=T,this.float32[I+16]=M,t},e}(Ci);Gi.prototype.bytesPerElement=68,Fr("StructArrayLayout8i15ui1ul4f68",Gi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(Ci);Hi.prototype.bytesPerElement=4,Fr("StructArrayLayout1f4",Hi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=n,this.int16[i+2]=r,t},e}(Ci);Wi.prototype.bytesPerElement=6,Fr("StructArrayLayout3i6",Wi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n){var r=this.length;return this.resize(r+1),this.emplace(r,t,e,n)},e.prototype.emplace=function(t,e,n,r){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=n,this.uint16[i+3]=r,t},e}(Ci);Yi.prototype.bytesPerElement=8,Fr("StructArrayLayout1ul2ui8",Yi);var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var n=this.length;return this.resize(n+1),this.emplace(n,t,e)},e.prototype.emplace=function(t,e,n){var r=2*t;return this.uint16[r+0]=e,this.uint16[r+1]=n,t},e}(Ci);$i.prototype.bytesPerElement=4,Fr("StructArrayLayout2ui4",$i);var Xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(Ci);Xi.prototype.bytesPerElement=2,Fr("StructArrayLayout1ui2",Xi);var qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,n,r){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,n,r)},e.prototype.emplace=function(t,e,n,r,i){var o=4*t;return this.float32[o+0]=e,this.float32[o+1]=n,this.float32[o+2]=r,this.float32[o+3]=i,t},e}(Ci);qi.prototype.bytesPerElement=16,Fr("StructArrayLayout4f16",qi);var Zi=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return n.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},n.x1.get=function(){return this._structArray.int16[this._pos2+2]},n.y1.get=function(){return this._structArray.int16[this._pos2+3]},n.x2.get=function(){return this._structArray.int16[this._pos2+4]},n.y2.get=function(){return this._structArray.int16[this._pos2+5]},n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,n),e}(Si);Zi.prototype.size=20;var Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Ni);Fr("CollisionBoxArray",Ki);var Ji=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},n.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},n.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},n.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},n.segment.get=function(){return this._structArray.uint16[this._pos2+10]},n.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},n.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},n.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},n.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},n.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},n.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},n.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},n.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},n.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},n.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,n),e}(Si);Ji.prototype.size=48;var Qi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new Ji(this,t)},e}(Ui);Fr("PlacedSymbolArray",Qi);var to=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return n.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},n.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},n.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},n.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},n.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},n.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},n.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},n.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},n.key.get=function(){return this._structArray.uint16[this._pos2+8]},n.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},n.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},n.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},n.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},n.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},n.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},n.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},n.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},n.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},n.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},n.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},n.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},n.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},n.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},n.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},n.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},n.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},n.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},n.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},n.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,n),e}(Si);to.prototype.size=68;var eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new to(this,t)},e}(Gi);Fr("SymbolInstanceArray",eo);var no=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Hi);Fr("GlyphOffsetArray",no);var ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Wi);Fr("SymbolLineVertexArray",ro);var io=function(t){function e(){t.apply(this,arguments)}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var n={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return n.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},n.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},n.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,n),e}(Si);io.prototype.size=8;var oo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.get=function(t){return new io(this,t)},e}(Yi);Fr("FeatureIndexArray",oo);var ao=Ei([{name:"a_pos",components:2,type:"Int16"}],4).members,so=function(t){void 0===t&&(t=[]),this.segments=t};function lo(t,e){return 256*(t=c(Math.floor(t),0,255))+c(Math.floor(e),0,255)}so.prototype.prepareSegment=function(t,e,n,r){var i=this.segments[this.segments.length-1];return t>so.MAX_VERTEX_ARRAY_LENGTH&&O("Max vertices per segment is "+so.MAX_VERTEX_ARRAY_LENGTH+": bucket requested "+t),(!i||i.vertexLength+t>so.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==r)&&(i={vertexOffset:e.length,primitiveOffset:n.length,vertexLength:0,primitiveLength:0},void 0!==r&&(i.sortKey=r),this.segments.push(i)),i},so.prototype.get=function(){return this.segments},so.prototype.destroy=function(){for(var t=0,e=this.segments;t>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(l=0,n){case 3:l^=(255&t.charCodeAt(u+2))<<16;case 2:l^=(255&t.charCodeAt(u+1))<<8;case 1:i^=l=(65535&(l=(l=(65535&(l^=255&t.charCodeAt(u)))*a+(((l>>>16)*a&65535)<<16)&4294967295)<<15|l>>>17))*s+(((l>>>16)*s&65535)<<16)&4294967295}return i^=t.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}})),ho=e((function(t){t.exports=function(t,e){for(var n,r=t.length,i=e^r,o=0;r>=4;)n=1540483477*(65535&(n=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+((1540483477*(n>>>16)&65535)<<16),i=1540483477*(65535&i)+((1540483477*(i>>>16)&65535)<<16)^(n=1540483477*(65535&(n^=n>>>24))+((1540483477*(n>>>16)&65535)<<16)),r-=4,++o;switch(r){case 3:i^=(255&t.charCodeAt(o+2))<<16;case 2:i^=(255&t.charCodeAt(o+1))<<8;case 1:i=1540483477*(65535&(i^=255&t.charCodeAt(o)))+((1540483477*(i>>>16)&65535)<<16)}return i=1540483477*(65535&(i^=i>>>13))+((1540483477*(i>>>16)&65535)<<16),(i^=i>>>15)>>>0}})),fo=co,po=ho;fo.murmur3=co,fo.murmur2=po;var go=function(){this.ids=[],this.positions=[],this.indexed=!1};go.prototype.add=function(t,e,n,r){this.ids.push(mo(t)),this.positions.push(e,n,r)},go.prototype.getPositions=function(t){for(var e=mo(t),n=0,r=this.ids.length-1;n>1;this.ids[i]>=e?r=i:n=i+1}for(var o=[];this.ids[n]===e;)o.push({index:this.positions[3*n],start:this.positions[3*n+1],end:this.positions[3*n+2]}),n++;return o},go.serialize=function(t,e){var n=new Float64Array(t.ids),r=new Uint32Array(t.positions);return function t(e,n,r,i){for(;r>1],a=r-1,s=i+1;;){do{a++}while(e[a]o);if(a>=s)break;yo(e,a,s),yo(n,3*a,3*s),yo(n,3*a+1,3*s+1),yo(n,3*a+2,3*s+2)}s-ra.x+1||la.y+1)&&O("Geometry exceeds allowed extent, reduce your vector tile buffer size")}return n}function Vo(t,e){return{type:t.type,id:t.id,properties:t.properties,geometry:e?zo(t):[]}}function Uo(t,e,n,r,i){t.emplaceBack(2*e+(r+1)/2,2*n+(i+1)/2)}var Go=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Vi,this.segments=new so,this.programConfigurations=new Do(t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ho(t,e){for(var n=0;n1){if(Xo(t,e))return!0;for(var r=0;r1?n:n.sub(e)._mult(i)._add(e))}function Jo(t,e){for(var n,r,i,o=!1,a=0;ae.y!=(i=n[l]).y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(o=!o);return o}function Qo(t,e){for(var n=!1,r=0,i=t.length-1;re.y!=a.y>e.y&&e.x<(a.x-o.x)*(e.y-o.y)/(a.y-o.y)+o.x&&(n=!n)}return n}function ta(t,e,n){var r=n[0],i=n[2];if(t.xi.x&&e.x>i.x||t.yi.y&&e.y>i.y)return!1;var o=S(t,e,n[0]);return o!==S(t,e,n[1])||o!==S(t,e,n[2])||o!==S(t,e,n[3])}function ea(t,e,n){var r=e.paint.get(t).value;return"constant"===r.kind?r.value:n.programConfigurations.get(e.id).getMaxValue(t)}function na(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function ra(t,e,n,r,o){if(!e[0]&&!e[1])return t;var a=i.convert(e)._mult(o);"viewport"===n&&a._rotate(-r);for(var s=[],l=0;l=8192||c<0||c>=8192)){var h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),d=h.vertexLength;Uo(this.layoutVertexArray,u,c,-1,-1),Uo(this.layoutVertexArray,u,c,1,-1),Uo(this.layoutVertexArray,u,c,1,1),Uo(this.layoutVertexArray,u,c,-1,1),this.indexArray.emplaceBack(d,d+1,d+2),this.indexArray.emplaceBack(d,d+3,d+2),h.vertexLength+=4,h.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,n,{},r)},Fr("CircleBucket",Go,{omit:["layers"]});var ia=new xi({"circle-sort-key":new mi(At.layout_circle["circle-sort-key"])}),oa={paint:new xi({"circle-radius":new mi(At.paint_circle["circle-radius"]),"circle-color":new mi(At.paint_circle["circle-color"]),"circle-blur":new mi(At.paint_circle["circle-blur"]),"circle-opacity":new mi(At.paint_circle["circle-opacity"]),"circle-translate":new vi(At.paint_circle["circle-translate"]),"circle-translate-anchor":new vi(At.paint_circle["circle-translate-anchor"]),"circle-pitch-scale":new vi(At.paint_circle["circle-pitch-scale"]),"circle-pitch-alignment":new vi(At.paint_circle["circle-pitch-alignment"]),"circle-stroke-width":new mi(At.paint_circle["circle-stroke-width"]),"circle-stroke-color":new mi(At.paint_circle["circle-stroke-color"]),"circle-stroke-opacity":new mi(At.paint_circle["circle-stroke-opacity"])}),layout:ia},aa="undefined"!=typeof Float32Array?Float32Array:Array;function sa(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function la(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],g=e[12],v=e[13],m=e[14],y=e[15],b=n[0],_=n[1],x=n[2],w=n[3];return t[0]=b*r+_*s+x*h+w*g,t[1]=b*i+_*l+x*d+w*v,t[2]=b*o+_*u+x*f+w*m,t[3]=b*a+_*c+x*p+w*y,t[4]=(b=n[4])*r+(_=n[5])*s+(x=n[6])*h+(w=n[7])*g,t[5]=b*i+_*l+x*d+w*v,t[6]=b*o+_*u+x*f+w*m,t[7]=b*a+_*c+x*p+w*y,t[8]=(b=n[8])*r+(_=n[9])*s+(x=n[10])*h+(w=n[11])*g,t[9]=b*i+_*l+x*d+w*v,t[10]=b*o+_*u+x*f+w*m,t[11]=b*a+_*c+x*p+w*y,t[12]=(b=n[12])*r+(_=n[13])*s+(x=n[14])*h+(w=n[15])*g,t[13]=b*i+_*l+x*d+w*v,t[14]=b*o+_*u+x*f+w*m,t[15]=b*a+_*c+x*p+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,n=arguments.length;n--;)e+=t[n]*t[n];return Math.sqrt(e)});var ua,ca=la;function ha(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*a,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*a,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*a,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*a,t}ua=new aa(3),aa!=Float32Array&&(ua[0]=0,ua[1]=0,ua[2]=0),function(){var t=new aa(4);aa!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var da=(function(){var t=new aa(2);aa!=Float32Array&&(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,oa)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Go(t)},e.prototype.queryRadius=function(t){var e=t;return ea("circle-radius",this,e)+ea("circle-stroke-width",this,e)+na(this.paint.get("circle-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,i,o,a,s){for(var l=ra(t,this.paint.get("circle-translate"),this.paint.get("circle-translate-anchor"),o.angle,a),u=this.paint.get("circle-radius").evaluate(e,n)+this.paint.get("circle-stroke-width").evaluate(e,n),c="map"===this.paint.get("circle-pitch-alignment"),h=c?l:function(t,e){return t.map((function(t){return fa(t,e)}))}(l,s),d=c?u*a:u,f=0,p=r;ft.width||i.height>t.height||n.x>t.width-i.width||n.y>t.height-i.height)throw new RangeError("out of range source coordinates for image copy");if(i.width>e.width||i.height>e.height||r.x>e.width-i.width||r.y>e.height-i.height)throw new RangeError("out of range destination coordinates for image copy");for(var a=t.data,s=e.data,l=0;l80*n){r=o=t[0],i=a=t[1];for(var p=n;po&&(o=s),l>a&&(a=l);u=0!==(u=Math.max(o-r,a-i))?1/u:0}return ja(d,f,n,r,i,u),f}function Aa(t,e,n,r,i){var o,a;if(i===Qa(t,e,n,r)>0)for(o=e;o=e;o-=r)a=Za(o,t[o],t[o+1],a);return a&&Ha(a,a.next)&&(Ka(a),a=a.next),a}function Ia(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Ha(r,r.next)&&0!==Ga(r.prev,r,r.next))r=r.next;else{if(Ka(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}function ja(t,e,n,r,i,o,a){if(t){!a&&o&&function(t,e,n,r){var i=t;do{null===i.z&&(i.z=Ba(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,a,s,l,u=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,r=n,s=0,e=0;e0||l>0&&r;)0!==s&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,s--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(a>1)}(i)}(t,r,i,o);for(var s,l,u=t;t.prev!==t.next;)if(s=t.prev,l=t.next,o?Pa(t,r,i,o):ka(t))e.push(s.i/n),e.push(t.i/n),e.push(l.i/n),Ka(t),t=l.next,u=l.next;else if((t=l)===u){a?1===a?ja(t=La(Ia(t),e,n),e,n,r,i,o,2):2===a&&Da(t,e,n,r,i,o):ja(Ia(t),e,n,r,i,o,1);break}}}function ka(t){var e=t.prev,n=t,r=t.next;if(Ga(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Va(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ga(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function Pa(t,e,n,r){var i=t.prev,o=t,a=t.next;if(Ga(i,o,a)>=0)return!1;for(var s=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,u=Ba(i.x=u&&d&&d.z<=c;){if(h!==t.prev&&h!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Ga(h.prev,h,h.next)>=0)return!1;if(h=h.prevZ,d!==t.prev&&d!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Ga(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;h&&h.z>=u;){if(h!==t.prev&&h!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,h.x,h.y)&&Ga(h.prev,h,h.next)>=0)return!1;h=h.prevZ}for(;d&&d.z<=c;){if(d!==t.prev&&d!==t.next&&Va(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&Ga(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function La(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!Ha(i,o)&&Wa(i,r,r.next,o)&&Xa(i,o)&&Xa(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),Ka(r),Ka(r.next),r=t=o),r=r.next}while(r!==t);return Ia(r)}function Da(t,e,n,r,i,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&Ua(a,s)){var l=qa(a,s);return a=Ia(a,a.next),l=Ia(l,l.next),ja(a,e,n,r,i,o),void ja(l,e,n,r,i,o)}s=s.next}a=a.next}while(a!==t)}function Ra(t,e){return t.x-e.x}function Na(t,e){if(e=function(t,e){var n,r=e,i=t.x,o=t.y,a=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var s=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(s<=i&&s>a){if(a=s,s===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x=r.x&&r.x>=c&&i!==r.x&&Va(on.x||r.x===n.x&&Fa(n,r)))&&(n=r,d=l)),r=r.next}while(r!==u);return n}(t,e)){var n=qa(e,t);Ia(e,e.next),Ia(n,n.next)}}function Fa(t,e){return Ga(t.prev,t,e.prev)<0&&Ga(e.next,t,t.next)<0}function Ba(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function za(t){var e=t,n=t;do{(e.x=0&&(t-a)*(r-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(i-a)*(r-s)>=0}function Ua(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Wa(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Xa(t,e)&&Xa(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(Ga(t.prev,t,e.prev)||Ga(t,e.prev,e))||Ha(t,e)&&Ga(t.prev,t,t.next)>0&&Ga(e.prev,e,e.next)>0)}function Ga(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Ha(t,e){return t.x===e.x&&t.y===e.y}function Wa(t,e,n,r){var i=$a(Ga(t,e,n)),o=$a(Ga(t,e,r)),a=$a(Ga(n,r,t)),s=$a(Ga(n,r,e));return i!==o&&a!==s||!(0!==i||!Ya(t,n,e))||!(0!==o||!Ya(t,r,e))||!(0!==a||!Ya(n,t,r))||!(0!==s||!Ya(n,e,r))}function Ya(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function $a(t){return t>0?1:t<0?-1:0}function Xa(t,e){return Ga(t.prev,t,t.next)<0?Ga(t,e,t.next)>=0&&Ga(t,t.prev,e)>=0:Ga(t,e,t.prev)<0||Ga(t,t.next,e)<0}function qa(t,e){var n=new Ja(t.i,t.x,t.y),r=new Ja(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Za(t,e,n,r){var i=new Ja(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Ka(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Ja(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Qa(t,e,n,r){for(var i=0,o=e,a=n-r;or;){if(i-r>600){var a=i-r+1,s=n-r+1,l=Math.log(a),u=.5*Math.exp(2*l/3),c=.5*Math.sqrt(l*u*(a-u)/a)*(s-a/2<0?-1:1);t(e,n,Math.max(r,Math.floor(n-s*u/a+c)),Math.min(i,Math.floor(n+(a-s)*u/a+c)),o)}var h=e[n],d=r,f=i;for(es(e,r,n),o(e[i],h)>0&&es(e,r,i);d0;)f--}0===o(e[r],h)?es(e,r,f):es(e,++f,i),f<=n&&(r=f+1),n<=f&&(i=f-1)}}(t,e,n||0,r||t.length-1,i||ns)}function es(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function ns(t,e){return te?1:0}function rs(t,e){var n=t.length;if(n<=1)return[t];for(var r,i,o=[],a=0;a1)for(var l=0;l0&&n.holes.push(r+=t[i-1].length)}return n},Ea.default=Ta;var ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Vi,this.indexArray2=new $i,this.programConfigurations=new Do(t.layers,t.zoom),this.segments=new so,this.segments2=new so,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};ss.prototype.populate=function(t,e,n){this.hasPattern=os("fill",this.layers,e);for(var r=this.layers[0].layout.get("fill-sort-key"),i=[],o=0,a=t;o>3}if(o--,1===r||2===r)a+=t.readSVarint(),s+=t.readSVarint(),1===r&&(e&&l.push(e),e=[]),e.push(new i(a,s));else{if(7!==r)throw new Error("unknown command "+r);e&&e.push(e[0].clone())}}return e&&l.push(e),l},fs.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,n=1,r=0,i=0,o=0,a=1/0,s=-1/0,l=1/0,u=-1/0;t.pos>3}if(r--,1===n||2===n)(i+=t.readSVarint())s&&(s=i),(o+=t.readSVarint())u&&(u=o);else if(7!==n)throw new Error("unknown command "+n)}return[a,l,s,u]},fs.prototype.toGeoJSON=function(t,e,n){var r,i,o=this.extent*Math.pow(2,n),a=this.extent*t,s=this.extent*e,l=this.loadGeometry(),u=fs.types[this.type];function c(t){for(var e=0;e>3;e=1===r?t.readString():2===r?t.readFloat():3===r?t.readDouble():4===r?t.readVarint64():5===r?t.readVarint():6===r?t.readSVarint():7===r?t.readBoolean():null}return e}(n))}function bs(t,e,n){if(3===t){var r=new vs(n,n.readVarint()+n.pos);r.length&&(e[r.name]=r)}}ms.prototype.feature=function(t){if(t<0||t>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ds(this._pbf,e,this.extent,this._keys,this._values)};var _s={VectorTile:function(t,e){this.layers=t.readFields(bs,{},e)},VectorTileFeature:ds,VectorTileLayer:vs},xs=_s.VectorTileFeature.types,ws=Math.pow(2,13);function Os(t,e,n,r,i,o,a,s){t.emplaceBack(e,n,2*Math.floor(r*ws)+a,i*ws*2,o*ws*2,Math.round(s))}var Ss=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ii,this.indexArray=new Vi,this.programConfigurations=new Do(t.layers,t.zoom),this.segments=new so,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Cs(t,e){return t.x===e.x&&(t.x<0||t.x>8192)||t.y===e.y&&(t.y<0||t.y>8192)}Ss.prototype.populate=function(t,e,n){this.features=[],this.hasPattern=os("fill-extrusion",this.layers,e);for(var r=0,i=t;r8192}))||k.every((function(t){return t.y<0}))||k.every((function(t){return t.y>8192}))))for(var g=0,v=0;v=1){var y=p[v-1];if(!Cs(m,y)){h.vertexLength+4>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var b=m.sub(y)._perp()._unit(),_=y.dist(m);g+_>32768&&(g=0),Os(this.layoutVertexArray,m.x,m.y,b.x,b.y,0,0,g),Os(this.layoutVertexArray,m.x,m.y,b.x,b.y,0,1,g),Os(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,0,g+=_),Os(this.layoutVertexArray,y.x,y.y,b.x,b.y,0,1,g);var x=h.vertexLength;this.indexArray.emplaceBack(x,x+2,x+1),this.indexArray.emplaceBack(x+1,x+2,x+3),h.vertexLength+=4,h.primitiveLength+=2}}}}if(h.vertexLength+l>so.MAX_VERTEX_ARRAY_LENGTH&&(h=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),"Polygon"===xs[t.type]){for(var w=[],O=[],S=h.vertexLength,C=0,E=s;C=2&&t[l-1].equals(t[l-2]);)l--;for(var u=0;u0;if(O&&m>u){var C=c.dist(f);if(C>2*h){var E=c.sub(c.sub(f)._mult(h/C)._round());this.updateDistance(f,E),this.addCurrentVertex(E,g,0,0,d),f=E}}var T=f&&p,M=T?n:s?"butt":r;if(T&&"round"===M&&(xi&&(M="bevel"),"bevel"===M&&(x>2&&(M="flipbevel"),x100)y=v.mult(-1);else{var A=x*g.add(v).mag()/g.sub(v).mag();y._perp()._mult(A*(S?-1:1))}this.addCurrentVertex(c,y,0,0,d),this.addCurrentVertex(c,y.mult(-1),0,0,d)}else if("bevel"===M||"fakeround"===M){var I=-Math.sqrt(x*x-1),j=S?I:0,k=S?0:I;if(f&&this.addCurrentVertex(c,g,j,k,d),"fakeround"===M)for(var P=Math.round(180*w/Math.PI/20),L=1;L2*h){var z=c.add(p.sub(c)._mult(h/B)._round());this.updateDistance(c,z),this.addCurrentVertex(z,v,0,0,d),c=z}}}}},Ds.prototype.addCurrentVertex=function(t,e,n,r,i,o){void 0===o&&(o=!1);var a=e.y*r-e.x,s=-e.y-e.x*r;this.addHalfVertex(t,e.x+e.y*n,e.y-e.x*n,o,!1,n,i),this.addHalfVertex(t,a,s,o,!0,-r,i),this.distance>Ls/2&&0===this.totalDistance&&(this.distance=0,this.addCurrentVertex(t,e,n,r,i,o))},Ds.prototype.addHalfVertex=function(t,e,n,r,i,o,a){var s=.5*(this.lineClips?this.scaledDistance*(Ls-1):this.scaledDistance);this.layoutVertexArray.emplaceBack((t.x<<1)+(r?1:0),(t.y<<1)+(i?1:0),Math.round(63*e)+128,Math.round(63*n)+128,1+(0===o?0:o<0?-1:1)|(63&s)<<2,s>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);var l=a.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,l),a.primitiveLength++),i?this.e2=l:this.e1=l},Ds.prototype.updateScaledDistance=function(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance},Ds.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Fr("LineBucket",Ds,{omit:["layers","patternFeatures"]});var Rs=new xi({"line-cap":new vi(At.layout_line["line-cap"]),"line-join":new mi(At.layout_line["line-join"]),"line-miter-limit":new vi(At.layout_line["line-miter-limit"]),"line-round-limit":new vi(At.layout_line["line-round-limit"]),"line-sort-key":new mi(At.layout_line["line-sort-key"])}),Ns={paint:new xi({"line-opacity":new mi(At.paint_line["line-opacity"]),"line-color":new mi(At.paint_line["line-color"]),"line-translate":new vi(At.paint_line["line-translate"]),"line-translate-anchor":new vi(At.paint_line["line-translate-anchor"]),"line-width":new mi(At.paint_line["line-width"]),"line-gap-width":new mi(At.paint_line["line-gap-width"]),"line-offset":new mi(At.paint_line["line-offset"]),"line-blur":new mi(At.paint_line["line-blur"]),"line-dasharray":new bi(At.paint_line["line-dasharray"]),"line-pattern":new yi(At.paint_line["line-pattern"]),"line-gradient":new _i(At.paint_line["line-gradient"])}),layout:Rs},Fs=new(function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,n){return n=new si(Math.floor(n.zoom),{now:n.now,fadeDuration:n.fadeDuration,zoomHistory:n.zoomHistory,transition:n.transition}),t.prototype.possiblyEvaluate.call(this,e,n)},e.prototype.evaluate=function(e,n,r,i){return n=d({},n,{zoom:Math.floor(n.zoom)}),t.prototype.evaluate.call(this,e,n,r,i)},e}(mi))(Ns.paint.properties["line-width"].specification);Fs.useIntegerZoom=!0;var Bs=function(t){function e(e){t.call(this,e,Ns),this.gradientVersion=0}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){"line-gradient"===t&&(this.stepInterpolant=this._transitionablePaint._values["line-gradient"].value.expression._styleExpression.expression instanceof Ge,this.gradientVersion=(this.gradientVersion+1)%s)},e.prototype.gradientExpression=function(){return this._transitionablePaint._values["line-gradient"].value.expression},e.prototype.recalculate=function(e,n){t.prototype.recalculate.call(this,e,n),this.paint._values["line-floorwidth"]=Fs.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)},e.prototype.createBucket=function(t){return new Ds(t)},e.prototype.queryRadius=function(t){var e=t,n=zs(ea("line-width",this,e),ea("line-gap-width",this,e)),r=ea("line-offset",this,e);return n/2+Math.abs(r)+na(this.paint.get("line-translate"))},e.prototype.queryIntersectsFeature=function(t,e,n,r,o,a,s){var l=ra(t,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),a.angle,s),u=s/2*zs(this.paint.get("line-width").evaluate(e,n),this.paint.get("line-gap-width").evaluate(e,n)),c=this.paint.get("line-offset").evaluate(e,n);return c&&(r=function(t,e){for(var n=[],r=new i(0,0),o=0;o=3)for(var o=0;o0?e+2*t:t}var Vs=Ei([{name:"a_pos_offset",components:4,type:"Int16"},{name:"a_data",components:4,type:"Uint16"},{name:"a_pixeloffset",components:4,type:"Int16"}],4),Us=Ei([{name:"a_projected_pos",components:3,type:"Float32"}],4),Gs=(Ei([{name:"a_fade_opacity",components:1,type:"Uint32"}],4),Ei([{name:"a_placed",components:2,type:"Uint8"},{name:"a_shift",components:2,type:"Float32"}])),Hs=(Ei([{type:"Int16",name:"anchorPointX"},{type:"Int16",name:"anchorPointY"},{type:"Int16",name:"x1"},{type:"Int16",name:"y1"},{type:"Int16",name:"x2"},{type:"Int16",name:"y2"},{type:"Uint32",name:"featureIndex"},{type:"Uint16",name:"sourceLayerIndex"},{type:"Uint16",name:"bucketIndex"}]),Ei([{name:"a_pos",components:2,type:"Int16"},{name:"a_anchor_pos",components:2,type:"Int16"},{name:"a_extrude",components:2,type:"Int16"}],4)),Ws=Ei([{name:"a_pos",components:2,type:"Float32"},{name:"a_radius",components:1,type:"Float32"},{name:"a_flags",components:2,type:"Int16"}],4);function Ys(t,e,n){return t.sections.forEach((function(t){t.text=function(t,e,n){var r=e.layout.get("text-transform").evaluate(n,{});return"uppercase"===r?t=t.toLocaleUpperCase():"lowercase"===r&&(t=t.toLocaleLowerCase()),ai.applyArabicShaping&&(t=ai.applyArabicShaping(t)),t}(t.text,e,n)})),t}Ei([{name:"triangle",components:3,type:"Uint16"}]),Ei([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Uint16",name:"glyphStartIndex"},{type:"Uint16",name:"numGlyphs"},{type:"Uint32",name:"vertexStartIndex"},{type:"Uint32",name:"lineStartIndex"},{type:"Uint32",name:"lineLength"},{type:"Uint16",name:"segment"},{type:"Uint16",name:"lowerSize"},{type:"Uint16",name:"upperSize"},{type:"Float32",name:"lineOffsetX"},{type:"Float32",name:"lineOffsetY"},{type:"Uint8",name:"writingMode"},{type:"Uint8",name:"placedOrientation"},{type:"Uint8",name:"hidden"},{type:"Uint32",name:"crossTileID"},{type:"Int16",name:"associatedIconIndex"}]),Ei([{type:"Int16",name:"anchorX"},{type:"Int16",name:"anchorY"},{type:"Int16",name:"rightJustifiedTextSymbolIndex"},{type:"Int16",name:"centerJustifiedTextSymbolIndex"},{type:"Int16",name:"leftJustifiedTextSymbolIndex"},{type:"Int16",name:"verticalPlacedTextSymbolIndex"},{type:"Int16",name:"placedIconSymbolIndex"},{type:"Int16",name:"verticalPlacedIconSymbolIndex"},{type:"Uint16",name:"key"},{type:"Uint16",name:"textBoxStartIndex"},{type:"Uint16",name:"textBoxEndIndex"},{type:"Uint16",name:"verticalTextBoxStartIndex"},{type:"Uint16",name:"verticalTextBoxEndIndex"},{type:"Uint16",name:"iconBoxStartIndex"},{type:"Uint16",name:"iconBoxEndIndex"},{type:"Uint16",name:"verticalIconBoxStartIndex"},{type:"Uint16",name:"verticalIconBoxEndIndex"},{type:"Uint16",name:"featureIndex"},{type:"Uint16",name:"numHorizontalGlyphVertices"},{type:"Uint16",name:"numVerticalGlyphVertices"},{type:"Uint16",name:"numIconVertices"},{type:"Uint16",name:"numVerticalIconVertices"},{type:"Uint16",name:"useRuntimeCollisionCircles"},{type:"Uint32",name:"crossTileID"},{type:"Float32",name:"textBoxScale"},{type:"Float32",components:2,name:"textOffset"},{type:"Float32",name:"collisionCircleDiameter"}]),Ei([{type:"Float32",name:"offsetX"}]),Ei([{type:"Int16",name:"x"},{type:"Int16",name:"y"},{type:"Int16",name:"tileUnitDistanceFromAnchor"}]);var $s={"!":"︕","#":"#",$:"$","%":"%","&":"&","(":"︵",")":"︶","*":"*","+":"+",",":"︐","-":"︲",".":"・","/":"/",":":"︓",";":"︔","<":"︿","=":"=",">":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","¢":"¢","£":"£","¥":"¥","¦":"¦","¬":"¬","¯":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"},Xs=function(t,e,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,c=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=u}return(f?-1:1)*a*Math.pow(2,o-r)},qs=function(t,e,n,r,i,o){var a,s,l,u=8*o-i-1,c=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(a++,l/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*l-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*g},Zs=Ks;function Ks(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Ks.Varint=0,Ks.Fixed64=1,Ks.Bytes=2,Ks.Fixed32=5;var Js="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function Qs(t){return t.type===Ks.Bytes?t.readVarint()+t.pos:t.pos+1}function tl(t,e,n){return n?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function el(t,e,n){var r=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));n.realloc(r);for(var i=n.pos-1;i>=t;i--)n.buf[i+r]=n.buf[i]}function nl(t,e){for(var n=0;n>>8,t[n+2]=e>>>16,t[n+3]=e>>>24}function fl(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}function pl(t,e,n){1===t&&n.readMessage(gl,e)}function gl(t,e,n){if(3===t){var r=n.readMessage(vl,{}),i=r.width,o=r.height,a=r.left,s=r.top,l=r.advance;e.push({id:r.id,bitmap:new ya({width:i+6,height:o+6},r.bitmap),metrics:{width:i,height:o,left:a,top:s,advance:l}})}}function vl(t,e,n){1===t?e.id=n.readVarint():2===t?e.bitmap=n.readBytes():3===t?e.width=n.readVarint():4===t?e.height=n.readVarint():5===t?e.left=n.readSVarint():6===t?e.top=n.readSVarint():7===t&&(e.advance=n.readVarint())}function ml(t){for(var e=0,n=0,r=0,i=t;r=0;d--){var f=a[d];if(!(h.w>f.w||h.h>f.h)){if(h.x=f.x,h.y=f.y,l=Math.max(l,h.y+h.h),s=Math.max(s,h.x+h.w),h.w===f.w&&h.h===f.h){var p=a.pop();d>3,o=this.pos;this.type=7&r,t(i,e,this),this.pos===o&&this.skip(r)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=hl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=fl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=hl(this.buf,this.pos)+4294967296*hl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=hl(this.buf,this.pos)+4294967296*fl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Xs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Xs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,n,r=this.buf;return e=127&(n=r[this.pos++]),n<128?e:(e|=(127&(n=r[this.pos++]))<<7,n<128?e:(e|=(127&(n=r[this.pos++]))<<14,n<128?e:(e|=(127&(n=r[this.pos++]))<<21,n<128?e:function(t,e,n){var r,i,o=n.buf;if(r=(112&(i=o[n.pos++]))>>4,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<3,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<10,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<17,i<128)return tl(t,r,e);if(r|=(127&(i=o[n.pos++]))<<24,i<128)return tl(t,r,e);if(r|=(1&(i=o[n.pos++]))<<31,i<128)return tl(t,r,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(n=r[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e>=12&&Js?function(t,e,n){return Js.decode(t.subarray(e,n))}(this.buf,e,t):function(t,e,n){for(var r="",i=e;i239?4:l>223?3:l>191?2:1;if(i+c>n)break;1===c?l<128&&(u=l):2===c?128==(192&(o=t[i+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(a=t[i+2],128==(192&(o=t[i+1]))&&128==(192&a)&&((u=(15&l)<<12|(63&o)<<6|63&a)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=t[i+2],s=t[i+3],128==(192&(o=t[i+1]))&&128==(192&a)&&128==(192&s)&&((u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,r+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),r+=String.fromCharCode(u),i+=c}return r}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Ks.Bytes)return t.push(this.readVarint(e));var n=Qs(this);for(t=t||[];this.pos127;);else if(e===Ks.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Ks.Fixed32)this.pos+=4;else{if(e!==Ks.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e268435455||t<0?function(t,e){var n,r;if(t>=0?(n=t%4294967296|0,r=t/4294967296|0):(r=~(-t/4294967296),4294967295^(n=~(-t%4294967296))?n=n+1|0:(n=0,r=r+1|0)),t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,n){n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,t>>>=7,n.buf[n.pos++]=127&t|128,n.buf[n.pos]=127&(t>>>=7)}(n,0,e),function(t,e){var n=(7&t)<<4;e.buf[e.pos++]|=n|((t>>>=3)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),t&&(e.buf[e.pos++]=127&t)))))}(r,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,n){for(var r,i,o=0;o55295&&r<57344){if(!i){r>56319||o+1===e.length?(t[n++]=239,t[n++]=191,t[n++]=189):i=r;continue}if(r<56320){t[n++]=239,t[n++]=191,t[n++]=189,i=r;continue}r=i-55296<<10|r-56320|65536,i=null}else i&&(t[n++]=239,t[n++]=191,t[n++]=189,i=null);r<128?t[n++]=r:(r<2048?t[n++]=r>>6|192:(r<65536?t[n++]=r>>12|224:(t[n++]=r>>18|240,t[n++]=r>>12&63|128),t[n++]=r>>6&63|128),t[n++]=63&r|128)}return n}(this.buf,t,this.pos);var n=this.pos-e;n>=128&&el(e,n,this),this.pos=e-1,this.writeVarint(n),this.pos+=n},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var n=0;n=128&&el(n,r,this),this.pos=n-1,this.writeVarint(r),this.pos+=r},writeMessage:function(t,e,n){this.writeTag(t,Ks.Bytes),this.writeRawMessage(e,n)},writePackedVarint:function(t,e){e.length&&this.writeMessage(t,nl,e)},writePackedSVarint:function(t,e){e.length&&this.writeMessage(t,rl,e)},writePackedBoolean:function(t,e){e.length&&this.writeMessage(t,al,e)},writePackedFloat:function(t,e){e.length&&this.writeMessage(t,il,e)},writePackedDouble:function(t,e){e.length&&this.writeMessage(t,ol,e)},writePackedFixed32:function(t,e){e.length&&this.writeMessage(t,sl,e)},writePackedSFixed32:function(t,e){e.length&&this.writeMessage(t,ll,e)},writePackedFixed64:function(t,e){e.length&&this.writeMessage(t,ul,e)},writePackedSFixed64:function(t,e){e.length&&this.writeMessage(t,cl,e)},writeBytesField:function(t,e){this.writeTag(t,Ks.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Ks.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Ks.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Ks.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Ks.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Ks.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var yl=function(t,e){var n=e.pixelRatio,r=e.version,i=e.stretchX,o=e.stretchY,a=e.content;this.paddedRect=t,this.pixelRatio=n,this.stretchX=i,this.stretchY=o,this.content=a,this.version=r},bl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};bl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},bl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},bl.tlbr.get=function(){return this.tl.concat(this.br)},bl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(yl.prototype,bl);var _l=function(t,e){var n={},r={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,n,i),this.addImages(e,r,i);var o=ml(i),a=new ba({width:o.w||1,height:o.h||1});for(var s in t){var l=t[s],u=n[s].paddedRect;ba.copy(l.data,a,{x:0,y:0},{x:u.x+1,y:u.y+1},l.data)}for(var c in e){var h=e[c],d=r[c].paddedRect,f=d.x+1,p=d.y+1,g=h.data.width,v=h.data.height;ba.copy(h.data,a,{x:0,y:0},{x:f,y:p},h.data),ba.copy(h.data,a,{x:0,y:v-1},{x:f,y:p-1},{width:g,height:1}),ba.copy(h.data,a,{x:0,y:0},{x:f,y:p+v},{width:g,height:1}),ba.copy(h.data,a,{x:g-1,y:0},{x:f-1,y:p},{width:1,height:v}),ba.copy(h.data,a,{x:0,y:0},{x:f+g,y:p},{width:1,height:v})}this.image=a,this.iconPositions=n,this.patternPositions=r};_l.prototype.addImages=function(t,e,n){for(var r in t){var i=t[r],o={x:0,y:0,w:i.data.width+2,h:i.data.height+2};n.push(o),e[r]=new yl(o,i),i.hasRenderCallback&&this.haveRenderCallbacks.push(r)}},_l.prototype.patchUpdatedImages=function(t,e){for(var n in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[n],t.getImage(n),e),this.patchUpdatedImage(this.patternPositions[n],t.getImage(n),e)},_l.prototype.patchUpdatedImage=function(t,e,n){if(t&&e&&t.version!==e.version){t.version=e.version;var r=t.tl;n.update(e.data,void 0,{x:r[0],y:r[1]})}},Fr("ImagePosition",yl),Fr("ImageAtlas",_l);var xl={horizontal:1,vertical:2,horizontalOnly:3},wl=function(){this.scale=1,this.fontStack="",this.imageName=null};wl.forText=function(t,e){var n=new wl;return n.scale=t||1,n.fontStack=e,n},wl.forImage=function(t){var e=new wl;return e.imageName=t,e};var Ol=function(){this.text="",this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Sl(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g){var v,m=Ol.fromFeature(t,i);h===xl.vertical&&m.verticalizePunctuation();var y=ai.processBidirectionalText,b=ai.processStyledBidirectionalText;if(y&&1===m.sections.length){v=[];for(var _=0,x=y(m.toString(),jl(m,u,o,e,r,f,p));_0&&F>C&&(C=F)}else{var B=n[T.fontStack],z=B&&B[A];if(z&&z.rect)k=z.rect,j=z.metrics;else{var V=e[T.fontStack],U=V&&V[A];if(!U)continue;j=U.metrics}I=24*(x-T.scale)}D?(t.verticalizable=!0,S.push({glyph:A,imageName:P,x:d,y:f+I,vertical:D,scale:T.scale,fontStack:T.fontStack,sectionIndex:M,metrics:j,rect:k}),d+=L*T.scale+u):(S.push({glyph:A,imageName:P,x:d,y:f+I,vertical:D,scale:T.scale,fontStack:T.fontStack,sectionIndex:M,metrics:j,rect:k}),d+=j.advance*T.scale+u)}0!==S.length&&(p=Math.max(d-u,p),Pl(S,0,S.length-1,v,C)),d=0;var G=o*x+C;O.lineOffset=Math.max(C,w),f+=G,g=Math.max(G,g),++m}else f+=o,++m}var H,W=f- -17,Y=kl(a),$=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,n,r,i,o,a,s,l){var u,c=(e-n)*i;u=o!==a?-s*r- -17:(-r*l+.5)*a;for(var h=0,d=t;h=0&&r>=t&&Cl[this.text.charCodeAt(r)];r--)n--;this.text=this.text.substring(t,n),this.sectionIndex=this.sectionIndex.slice(t,n)},Ol.prototype.substring=function(t,e){var n=new Ol;return n.text=this.text.substring(t,e),n.sectionIndex=this.sectionIndex.slice(t,e),n.sections=this.sections,n},Ol.prototype.toString=function(){return this.text},Ol.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,n){return Math.max(e,t.sections[n].scale)}),0)},Ol.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(wl.forText(t.scale,t.fontStack||e));for(var n=this.sections.length-1,r=0;r=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var Cl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},El={};function Tl(t,e,n,r,i,o){if(e.imageName){var a=r[e.imageName];return a?a.displaySize[0]*e.scale*24/o+i:0}var s=n[e.fontStack],l=s&&s[t];return l?l.metrics.advance*e.scale+i:0}function Ml(t,e,n,r){var i=Math.pow(t-e,2);return r?t=0,h=0,d=0;d-n/2;){if(--a<0)return!1;s-=t[a].dist(o),o=t[a]}s+=t[a].dist(t[a+1]),a++;for(var l=[],u=0;sr;)u-=l.shift().angleDelta;if(u>i)return!1;a++,s+=c.dist(h)}return!0}function Vl(t){for(var e=0,n=0;nu){var p=(u-l)/f,g=He(h.x,d.x,p),v=He(h.y,d.y,p),m=new Dl(g,v,d.angleTo(h),c);return m._round(),!a||zl(t,m,s,a,e)?m:void 0}l+=f}}function Wl(t,e,n,r,i,o,a,s,l){var u=Ul(r,o,a),c=Gl(r,i),h=c*a,d=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-h=0&&x=0&&w=0&&f+c<=h){var O=new Dl(x,w,b,g);O._round(),i&&!zl(e,O,a,i,o)||p.push(O)}}d+=y}return l||p.length||s||(p=t(e,d/2,r,i,o,a,s,!0,u)),p}(t,d?e/2*s%e:(c/2+2*o)*a*s%e,e,u,n,h,d,!1,l)}function Yl(t,e,n,r,o){for(var a=[],s=0;s=r&&d.x>=r||(h.x>=r?h=new i(r,h.y+(r-h.x)/(d.x-h.x)*(d.y-h.y))._round():d.x>=r&&(d=new i(r,h.y+(r-h.x)/(d.x-h.x)*(d.y-h.y))._round()),h.y>=o&&d.y>=o||(h.y>=o?h=new i(h.x+(o-h.y)/(d.y-h.y)*(d.x-h.x),o)._round():d.y>=o&&(d=new i(h.x+(o-h.y)/(d.y-h.y)*(d.x-h.x),o)._round()),u&&h.equals(u[u.length-1])||a.push(u=[h]),u.push(d)))))}return a}function $l(t,e,n,r){var o=[],a=t.image,s=a.pixelRatio,l=a.paddedRect.w-2,u=a.paddedRect.h-2,c=t.right-t.left,h=t.bottom-t.top,d=a.stretchX||[[0,l]],f=a.stretchY||[[0,u]],p=function(t,e){return t+e[1]-e[0]},g=d.reduce(p,0),v=f.reduce(p,0),m=l-g,y=u-v,b=0,_=g,x=0,w=v,O=0,S=m,C=0,E=y;if(a.content&&r){var T=a.content;b=Xl(d,0,T[0]),x=Xl(f,0,T[1]),_=Xl(d,T[0],T[2]),w=Xl(f,T[1],T[3]),O=T[0]-b,C=T[1]-x,S=T[2]-T[0]-_,E=T[3]-T[1]-w}var M=function(r,o,l,u){var d=Zl(r.stretch-b,_,c,t.left),f=Kl(r.fixed-O,S,r.stretch,g),p=Zl(o.stretch-x,w,h,t.top),m=Kl(o.fixed-C,E,o.stretch,v),y=Zl(l.stretch-b,_,c,t.left),T=Kl(l.fixed-O,S,l.stretch,g),M=Zl(u.stretch-x,w,h,t.top),A=Kl(u.fixed-C,E,u.stretch,v),I=new i(d,p),j=new i(y,p),k=new i(y,M),P=new i(d,M),L=new i(f/s,m/s),D=new i(T/s,A/s),R=e*Math.PI/180;if(R){var N=Math.sin(R),F=Math.cos(R),B=[F,-N,N,F];I._matMult(B),j._matMult(B),P._matMult(B),k._matMult(B)}var z=r.stretch+r.fixed,V=o.stretch+o.fixed;return{tl:I,tr:j,bl:P,br:k,tex:{x:a.paddedRect.x+1+z,y:a.paddedRect.y+1+V,w:l.stretch+l.fixed-z,h:u.stretch+u.fixed-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:L,pixelOffsetBR:D,minFontScaleX:S/s/c,minFontScaleY:E/s/h,isSDF:n}};if(r&&(a.stretchX||a.stretchY))for(var A=ql(d,m,g),I=ql(f,y,v),j=0;j0&&(p=Math.max(10,p),this.circleDiameter=p)}else{var g=a.top*s-l,v=a.bottom*s+l,m=a.left*s-l,y=a.right*s+l,b=a.collisionPadding;if(b&&(m-=b[0]*s,g-=b[1]*s,y+=b[2]*s,v+=b[3]*s),c){var _=new i(m,g),x=new i(y,g),w=new i(m,v),O=new i(y,v),S=c*Math.PI/180;_._rotate(S),x._rotate(S),w._rotate(S),O._rotate(S),m=Math.min(_.x,x.x,w.x,O.x),y=Math.max(_.x,x.x,w.x,O.x),g=Math.min(_.y,x.y,w.y,O.y),v=Math.max(_.y,x.y,w.y,O.y)}t.emplaceBack(e.x,e.y,m,g,y,v,n,r,o)}this.boxEndIndex=t.length},Ql=function(t,e){if(void 0===t&&(t=[]),void 0===e&&(e=tu),this.data=t,this.length=this.data.length,this.compare=e,this.length>0)for(var n=(this.length>>1)-1;n>=0;n--)this._down(n)};function tu(t,e){return te?1:0}function eu(t,e,n){void 0===e&&(e=1),void 0===n&&(n=!1);for(var r=1/0,o=1/0,a=-1/0,s=-1/0,l=t[0],u=0;ua)&&(a=c.x),(!u||c.y>s)&&(s=c.y)}var h=Math.min(a-r,s-o),d=h/2,f=new Ql([],nu);if(0===h)return new i(r,o);for(var p=r;pv.d||!v.d)&&(v=y,n&&console.log("found best %d after %d probes",Math.round(1e4*y.d)/1e4,m)),y.max-v.d<=e||(f.push(new ru(y.p.x-(d=y.h/2),y.p.y-d,d,t)),f.push(new ru(y.p.x+d,y.p.y-d,d,t)),f.push(new ru(y.p.x-d,y.p.y+d,d,t)),f.push(new ru(y.p.x+d,y.p.y+d,d,t)),m+=4)}return n&&(console.log("num probes: "+m),console.log("best distance: "+v.d)),v.p}function nu(t,e){return e.max-t.max}function ru(t,e,n,r){this.p=new i(t,e),this.h=n,this.d=function(t,e){for(var n=!1,r=1/0,i=0;it.y!=c.y>t.y&&t.x<(c.x-u.x)*(t.y-u.y)/(c.y-u.y)+u.x&&(n=!n),r=Math.min(r,Ko(t,u,c))}return(n?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}Ql.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Ql.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length>0&&(this.data[0]=e,this._down(0)),t}},Ql.prototype.peek=function(){return this.data[0]},Ql.prototype._up=function(t){for(var e=this.data,n=this.compare,r=e[t];t>0;){var i=t-1>>1,o=e[i];if(n(r,o)>=0)break;e[t]=o,t=i}e[t]=r},Ql.prototype._down=function(t){for(var e=this.data,n=this.compare,r=this.length>>1,i=e[t];t=0)break;e[t]=a,t=o}e[t]=i};var iu=Number.POSITIVE_INFINITY;function ou(t,e){return e[1]!==iu?function(t,e,n){var r=0,i=0;switch(e=Math.abs(e),n=Math.abs(n),t){case"top-right":case"top-left":case"top":i=n-7;break;case"bottom-right":case"bottom-left":case"bottom":i=7-n}switch(t){case"top-right":case"bottom-right":case"right":r=-e;break;case"top-left":case"bottom-left":case"left":r=e}return[r,i]}(t,e[0],e[1]):function(t,e){var n=0,r=0;e<0&&(e=0);var i=e/Math.sqrt(2);switch(t){case"top-right":case"top-left":r=i-7;break;case"bottom-right":case"bottom-left":r=7-i;break;case"bottom":r=7-e;break;case"top":r=e-7}switch(t){case"top-right":case"bottom-right":n=-i;break;case"top-left":case"bottom-left":n=i;break;case"left":n=e;break;case"right":n=-e}return[n,r]}(t,e[0])}function au(t){switch(t){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function su(t,e,n,r,o,a,s,l,u,c,h,d,f,p,g){var v=function(t,e,n,r,o,a,s,l){for(var u=r.layout.get("text-rotate").evaluate(a,{})*Math.PI/180,c=[],h=0,d=e.positionedLines;h32640&&O(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'):"composite"===m.kind&&((y=[128*p.compositeTextSizes[0].evaluate(s,{},g),128*p.compositeTextSizes[1].evaluate(s,{},g)])[0]>32640||y[1]>32640)&&O(t.layerIds[0]+': Value for "text-size" is >= 255. Reduce your "text-size".'),t.addSymbols(t.text,v,y,l,a,s,c,e,u.lineStartIndex,u.lineLength,f,g);for(var b=0,_=h;b<_.length;b+=1)d[_[b]]=t.text.placedSymbolArray.length-1;return 4*v.length}function lu(t){for(var e in t)return t[e];return null}function uu(t,e,n,r){var i=t.compareText;if(e in i){for(var o=i[e],a=o.length-1;a>=0;a--)if(r.dist(o[a])0)&&("constant"!==o.value.kind||o.value.value.length>0),u="constant"!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length>0,c=i.get("symbol-sort-key");if(this.features=[],l||u){for(var h=e.iconDependencies,d=e.glyphDependencies,f=e.availableImages,p=new si(this.zoom),g=0,v=t;g=0;for(var k=0,P=S.sections;k=0;s--)o[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s>0&&(i+=e[s-1].dist(e[s]));for(var l=0;l0},mu.prototype.hasIconData=function(){return this.icon.segments.get().length>0},mu.prototype.hasDebugData=function(){return this.textCollisionBox&&this.iconCollisionBox},mu.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0},mu.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0},mu.prototype.addIndicesForPlacedSymbol=function(t,e){for(var n=t.placedSymbolArray.get(e),r=n.vertexStartIndex+4*n.numGlyphs,i=n.vertexStartIndex;i1||this.icon.segments.get().length>1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var n=0,r=this.symbolInstanceIndexes;n=0&&r.indexOf(t)===n&&e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}},Fr("SymbolBucket",mu,{omit:["layers","collisionBoxArray","features","compareText"]}),mu.MAX_GLYPHS=65535,mu.addDynamicAttributes=fu;var yu=new xi({"symbol-placement":new vi(At.layout_symbol["symbol-placement"]),"symbol-spacing":new vi(At.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new vi(At.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new mi(At.layout_symbol["symbol-sort-key"]),"symbol-z-order":new vi(At.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new vi(At.layout_symbol["icon-allow-overlap"]),"icon-ignore-placement":new vi(At.layout_symbol["icon-ignore-placement"]),"icon-optional":new vi(At.layout_symbol["icon-optional"]),"icon-rotation-alignment":new vi(At.layout_symbol["icon-rotation-alignment"]),"icon-size":new mi(At.layout_symbol["icon-size"]),"icon-text-fit":new vi(At.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new vi(At.layout_symbol["icon-text-fit-padding"]),"icon-image":new mi(At.layout_symbol["icon-image"]),"icon-rotate":new mi(At.layout_symbol["icon-rotate"]),"icon-padding":new vi(At.layout_symbol["icon-padding"]),"icon-keep-upright":new vi(At.layout_symbol["icon-keep-upright"]),"icon-offset":new mi(At.layout_symbol["icon-offset"]),"icon-anchor":new mi(At.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new vi(At.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new vi(At.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new vi(At.layout_symbol["text-rotation-alignment"]),"text-field":new mi(At.layout_symbol["text-field"]),"text-font":new mi(At.layout_symbol["text-font"]),"text-size":new mi(At.layout_symbol["text-size"]),"text-max-width":new mi(At.layout_symbol["text-max-width"]),"text-line-height":new vi(At.layout_symbol["text-line-height"]),"text-letter-spacing":new mi(At.layout_symbol["text-letter-spacing"]),"text-justify":new mi(At.layout_symbol["text-justify"]),"text-radial-offset":new mi(At.layout_symbol["text-radial-offset"]),"text-variable-anchor":new vi(At.layout_symbol["text-variable-anchor"]),"text-anchor":new mi(At.layout_symbol["text-anchor"]),"text-max-angle":new vi(At.layout_symbol["text-max-angle"]),"text-writing-mode":new vi(At.layout_symbol["text-writing-mode"]),"text-rotate":new mi(At.layout_symbol["text-rotate"]),"text-padding":new vi(At.layout_symbol["text-padding"]),"text-keep-upright":new vi(At.layout_symbol["text-keep-upright"]),"text-transform":new mi(At.layout_symbol["text-transform"]),"text-offset":new mi(At.layout_symbol["text-offset"]),"text-allow-overlap":new vi(At.layout_symbol["text-allow-overlap"]),"text-ignore-placement":new vi(At.layout_symbol["text-ignore-placement"]),"text-optional":new vi(At.layout_symbol["text-optional"])}),bu={paint:new xi({"icon-opacity":new mi(At.paint_symbol["icon-opacity"]),"icon-color":new mi(At.paint_symbol["icon-color"]),"icon-halo-color":new mi(At.paint_symbol["icon-halo-color"]),"icon-halo-width":new mi(At.paint_symbol["icon-halo-width"]),"icon-halo-blur":new mi(At.paint_symbol["icon-halo-blur"]),"icon-translate":new vi(At.paint_symbol["icon-translate"]),"icon-translate-anchor":new vi(At.paint_symbol["icon-translate-anchor"]),"text-opacity":new mi(At.paint_symbol["text-opacity"]),"text-color":new mi(At.paint_symbol["text-color"],{runtimeType:Vt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),"text-halo-color":new mi(At.paint_symbol["text-halo-color"]),"text-halo-width":new mi(At.paint_symbol["text-halo-width"]),"text-halo-blur":new mi(At.paint_symbol["text-halo-blur"]),"text-translate":new vi(At.paint_symbol["text-translate"]),"text-translate-anchor":new vi(At.paint_symbol["text-translate-anchor"])}),layout:yu},_u=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Nt,this.defaultValue=t};_u.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&&e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&&t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},_u.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},_u.prototype.outputDefined=function(){return!1},_u.prototype.serialize=function(){return null},Fr("FormatSectionOverride",_u,{omit:["defaultValue"]});var xu=function(t){function e(e){t.call(this,e,bu)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.recalculate=function(e,n){if(t.prototype.recalculate.call(this,e,n),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]=this.layout.get("text-rotation-alignment")),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){var r=this.layout.get("text-writing-mode");if(r){for(var i=[],o=0,a=r;o",targetMapId:r,sourceMapId:o.mapId})}}},Du.prototype.receive=function(t){var e=t.data,n=e.id;if(n&&(!e.targetMapId||this.mapId===e.targetMapId))if(""===e.type){delete this.tasks[n];var r=this.cancelCallbacks[n];delete this.cancelCallbacks[n],r&&r()}else E()||e.mustQueue?(this.tasks[n]=e,this.taskQueue.push(n),this.invoker.trigger()):this.processTask(n,e)},Du.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&&this.invoker.trigger(),e&&this.processTask(t,e)}},Du.prototype.processTask=function(t,e){var n=this;if(""===e.type){var r=this.callbacks[t];delete this.callbacks[t],r&&(e.error?r(Gr(e.error)):r(null,Gr(e.data)))}else{var i=!1,o=A(this.globalScope)?void 0:[],a=e.hasCallback?function(e,r){i=!0,delete n.cancelCallbacks[t],n.target.postMessage({id:t,type:"",sourceMapId:n.mapId,error:e?Ur(e):null,data:Ur(r,o)},o)}:function(t){i=!0},s=null,l=Gr(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,a);else if(this.parent.getWorkerSource){var u=e.type.split(".");s=this.parent.getWorkerSource(e.sourceMapId,u[0],l.source)[u[1]](l,a)}else a(new Error("Could not find function "+e.type));!i&&s&&s.cancel&&(this.cancelCallbacks[t]=s.cancel)}},Du.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)};var Nu=function(t,e){t&&(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Nu.prototype.setNorthEast=function(t){return this._ne=t instanceof Fu?new Fu(t.lng,t.lat):Fu.convert(t),this},Nu.prototype.setSouthWest=function(t){return this._sw=t instanceof Fu?new Fu(t.lng,t.lat):Fu.convert(t),this},Nu.prototype.extend=function(t){var e,n,r=this._sw,i=this._ne;if(t instanceof Fu)e=t,n=t;else{if(!(t instanceof Nu))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Nu.convert(t)):this.extend(Fu.convert(t)):this;if(n=t._ne,!(e=t._sw)||!n)return this}return r||i?(r.lng=Math.min(e.lng,r.lng),r.lat=Math.min(e.lat,r.lat),i.lng=Math.max(n.lng,i.lng),i.lat=Math.max(n.lat,i.lat)):(this._sw=new Fu(e.lng,e.lat),this._ne=new Fu(n.lng,n.lat)),this},Nu.prototype.getCenter=function(){return new Fu((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Nu.prototype.getSouthWest=function(){return this._sw},Nu.prototype.getNorthEast=function(){return this._ne},Nu.prototype.getNorthWest=function(){return new Fu(this.getWest(),this.getNorth())},Nu.prototype.getSouthEast=function(){return new Fu(this.getEast(),this.getSouth())},Nu.prototype.getWest=function(){return this._sw.lng},Nu.prototype.getSouth=function(){return this._sw.lat},Nu.prototype.getEast=function(){return this._ne.lng},Nu.prototype.getNorth=function(){return this._ne.lat},Nu.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Nu.prototype.toString=function(){return"LngLatBounds("+this._sw.toString()+", "+this._ne.toString()+")"},Nu.prototype.isEmpty=function(){return!(this._sw&&this._ne)},Nu.prototype.contains=function(t){var e=Fu.convert(t),n=e.lng,r=e.lat,i=this._sw.lng<=n&&n<=this._ne.lng;return this._sw.lng>this._ne.lng&&(i=this._sw.lng>=n&&n>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&i},Nu.convert=function(t){return!t||t instanceof Nu?t:new Nu(t)};var Fu=function(t,e){if(isNaN(t)||isNaN(e))throw new Error("Invalid LngLat object: ("+t+", "+e+")");if(this.lng=+t,this.lat=+e,this.lat>90||this.lat<-90)throw new Error("Invalid LngLat latitude value: must be between -90 and 90")};Fu.prototype.wrap=function(){return new Fu(h(this.lng,-180,180),this.lat)},Fu.prototype.toArray=function(){return[this.lng,this.lat]},Fu.prototype.toString=function(){return"LngLat("+this.lng+", "+this.lat+")"},Fu.prototype.distanceTo=function(t){var e=Math.PI/180,n=this.lat*e,r=t.lat*e,i=Math.sin(n)*Math.sin(r)+Math.cos(n)*Math.cos(r)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Fu.prototype.toBounds=function(t){void 0===t&&(t=0);var e=360*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return new Nu(new Fu(this.lng-n,this.lat-e),new Fu(this.lng+n,this.lat+e))},Fu.convert=function(t){if(t instanceof Fu)return t;if(Array.isArray(t)&&(2===t.length||3===t.length))return new Fu(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&&"object"==typeof t&&null!==t)return new Fu(Number("lng"in t?t.lng:t.lon),Number(t.lat));throw new Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")};var Bu=2*Math.PI*6371008.8;function zu(t){return Bu*Math.cos(t*Math.PI/180)}function Vu(t){return(180+t)/360}function Uu(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Gu(t,e){return t/zu(e)}function Hu(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Wu=function(t,e,n){void 0===n&&(n=0),this.x=+t,this.y=+e,this.z=+n};Wu.fromLngLat=function(t,e){void 0===e&&(e=0);var n=Fu.convert(t);return new Wu(Vu(n.lng),Uu(n.lat),Gu(e,n.lat))},Wu.prototype.toLngLat=function(){return new Fu(360*this.x-180,Hu(this.y))},Wu.prototype.toAltitude=function(){return this.z*zu(Hu(this.y))},Wu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Bu*(t=Hu(this.y),1/Math.cos(t*Math.PI/180));var t};var Yu=function(t,e,n){this.z=t,this.x=e,this.y=n,this.key=qu(0,t,t,e,n)};Yu.prototype.equals=function(t){return this.z===t.z&&this.x===t.x&&this.y===t.y},Yu.prototype.url=function(t,e){var n,r,i,o,a,s=(r=this.y,i=this.z,o=Ru(256*(n=this.x),256*(r=Math.pow(2,i)-r-1),i),a=Ru(256*(n+1),256*(r+1),i),o[0]+","+o[1]+","+a[0]+","+a[1]),l=function(t,e,n){for(var r,i="",o=t;o>0;o--)i+=(e&(r=1<this.canonical.z?new Xu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Xu(t,this.wrap,t,this.canonical.x>>e,this.canonical.y>>e)},Xu.prototype.calculateScaledKey=function(t,e){var n=this.canonical.z-t;return t>this.canonical.z?qu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qu(this.wrap*+e,t,t,this.canonical.x>>n,this.canonical.y>>n)},Xu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ>e&&t.canonical.y===this.canonical.y>>e},Xu.prototype.children=function(t){if(this.overscaledZ>=t)return[new Xu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,n=2*this.canonical.x,r=2*this.canonical.y;return[new Xu(e,this.wrap,e,n,r),new Xu(e,this.wrap,e,n+1,r),new Xu(e,this.wrap,e,n,r+1),new Xu(e,this.wrap,e,n+1,r+1)]},Xu.prototype.isLessThan=function(t){return this.wrapt.wrap)&&(this.overscaledZt.overscaledZ)&&(this.canonical.xt.canonical.x)&&this.canonical.y=this.dim+1||e<-1||e>=this.dim+1)throw new RangeError("out of range source coordinates for DEM data");return(e+1)*this.stride+(t+1)},Zu.prototype._unpackMapbox=function(t,e,n){return(256*t*256+256*e+n)/10-1e4},Zu.prototype._unpackTerrarium=function(t,e,n){return 256*t+e+n/256-32768},Zu.prototype.getPixels=function(){return new ba({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Zu.prototype.backfillBorder=function(t,e,n){if(this.dim!==t.dim)throw new Error("dem dimension mismatch");var r=e*this.dim,i=e*this.dim+this.dim,o=n*this.dim,a=n*this.dim+this.dim;switch(e){case-1:r=i-1;break;case 1:i=r+1}switch(n){case-1:o=a-1;break;case 1:a=o+1}for(var s=-e*this.dim,l=-n*this.dim,u=o;u=0&&c[3]>=0&&s.insert(a,c[0],c[1],c[2],c[3])}},ec.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new _s.VectorTile(new Zs(this.rawTileData)).layers,this.sourceLayerCoder=new Ku(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers},ec.prototype.query=function(t,e,n,r){var o=this;this.loadVTLayers();for(var a=t.params||{},s=8192/t.tileSize/t.scale,l=ar(a.filter),u=t.queryGeometry,c=t.queryPadding*s,h=rc(u),d=this.grid.query(h.minX-c,h.minY-c,h.maxX+c,h.maxY+c),f=rc(t.cameraQueryGeometry),p=0,g=this.grid3D.query(f.minX-c,f.minY-c,f.maxX+c,f.maxY+c,(function(e,n,r,o){return function(t,e,n,r,o){for(var a=0,s=t;a=l.x&&o>=l.y)return!0}var u=[new i(e,n),new i(e,o),new i(r,o),new i(r,n)];if(t.length>2)for(var c=0,h=u;c=0)return!0;return!1}(o,h)){var f=this.sourceLayerCoder.decode(n),p=this.vtLayers[f].feature(r);if(i.needGeometry){var g=Vo(p,!0);if(!i.filter(new si(this.tileID.overscaledZ),g,this.tileID.canonical))return}else if(!i.filter(new si(this.tileID.overscaledZ),p))return;for(var v=this.getId(p,f),m=0;mr)i=!1;else if(e)if(this.expirationTimelt&&(t.getActor().send("enforceCacheSizeLimit",st),dt=0)},t.clamp=c,t.clearTileCache=function(t){var e=a.caches.delete("mapbox-tiles");t&&e.catch(t).then((function(){return t()}))},t.clipLine=Yl,t.clone=function(t){var e=new aa(16);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[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new aa(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ws,t.config=B,t.create=function(){var t=new aa(16);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new aa(9);return aa!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new aa(4);return aa!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=$n,t.createLayout=Ei,t.createStyleLayer=function(t){return"custom"===t.type?new Eu(t):new Tu[t.type](t)},t.cross=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],s=n[1],l=n[2];return t[0]=i*l-o*s,t[1]=o*a-r*l,t[2]=r*s-i*a,t},t.deepEqual=function t(e,n){if(Array.isArray(e)){if(!Array.isArray(n)||e.length!==n.length)return!1;for(var r=0;r0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t},t.number=He,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t},t.parseGlyphPBF=function(t){return new Zs(t).readFields(pl,[])},t.pbf=Zs,t.performSymbolLayout=function(t,e,n,r,i,o,a){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,u={};if("composite"===t.textSizeData.kind){var c=t.textSizeData,h=c.maxZoom;u.compositeTextSizes=[l["text-size"].possiblyEvaluate(new si(c.minZoom),a),l["text-size"].possiblyEvaluate(new si(h),a)]}if("composite"===t.iconSizeData.kind){var d=t.iconSizeData,f=d.maxZoom;u.compositeIconSizes=[l["icon-size"].possiblyEvaluate(new si(d.minZoom),a),l["icon-size"].possiblyEvaluate(new si(f),a)]}u.layoutTextSize=l["text-size"].possiblyEvaluate(new si(t.zoom+1),a),u.layoutIconSize=l["icon-size"].possiblyEvaluate(new si(t.zoom+1),a),u.textMaxSize=l["text-size"].possiblyEvaluate(new si(18));for(var p=24*s.get("text-line-height"),g="map"===s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement"),v=s.get("text-keep-upright"),m=s.get("text-size"),y=function(){var o=_[b],l=s.get("text-font").evaluate(o,{},a).join(","),c=m.evaluate(o,{},a),h=u.layoutTextSize.evaluate(o,{},a),d=u.layoutIconSize.evaluate(o,{},a),f={horizontal:{},vertical:void 0},y=o.text,x=[0,0];if(y){var w=y.toString(),S=24*s.get("text-letter-spacing").evaluate(o,{},a),C=function(t){for(var e=0,n=t;e=8192||h.y<0||h.y>=8192||function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g,v,m,y,b,_,x,w,S,C){var E,T,M,A,I,j=t.addToLineVertexArray(e,n),k=0,P=0,L=0,D=0,R=-1,N=-1,F={},B=fo(""),z=0,V=0;if(void 0===s._unevaluatedLayout.getValue("text-radial-offset")?(z=(E=s.layout.get("text-offset").evaluate(_,{},S).map((function(t){return 24*t})))[0],V=E[1]):(z=24*s.layout.get("text-radial-offset").evaluate(_,{},S),V=iu),t.allowVerticalPlacement&&r.vertical){var U=s.layout.get("text-rotate").evaluate(_,{},S)+90;A=new Jl(l,e,u,c,h,r.vertical,d,f,p,U),a&&(I=new Jl(l,e,u,c,h,a,v,m,p,U))}if(i){var G=s.layout.get("icon-rotate").evaluate(_,{}),H="none"!==s.layout.get("icon-text-fit"),W=$l(i,G,w,H),Y=a?$l(a,G,w,H):void 0;M=new Jl(l,e,u,c,h,i,v,m,!1,G),k=4*W.length;var $=t.iconSizeData,X=null;"source"===$.kind?(X=[128*s.layout.get("icon-size").evaluate(_,{})])[0]>32640&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'):"composite"===$.kind&&((X=[128*x.compositeIconSizes[0].evaluate(_,{},S),128*x.compositeIconSizes[1].evaluate(_,{},S)])[0]>32640||X[1]>32640)&&O(t.layerIds[0]+': Value for "icon-size" is >= 255. Reduce your "icon-size".'),t.addSymbols(t.icon,W,X,b,y,_,!1,e,j.lineStartIndex,j.lineLength,-1,S),R=t.icon.placedSymbolArray.length-1,Y&&(P=4*Y.length,t.addSymbols(t.icon,Y,X,b,y,_,xl.vertical,e,j.lineStartIndex,j.lineLength,-1,S),N=t.icon.placedSymbolArray.length-1)}for(var q in r.horizontal){var Z=r.horizontal[q];if(!T){B=fo(Z.text);var K=s.layout.get("text-rotate").evaluate(_,{},S);T=new Jl(l,e,u,c,h,Z,d,f,p,K)}var J=1===Z.positionedLines.length;if(L+=su(t,e,Z,o,s,p,_,g,j,r.vertical?xl.horizontal:xl.horizontalOnly,J?Object.keys(r.horizontal):[q],F,R,x,S),J)break}r.vertical&&(D+=su(t,e,r.vertical,o,s,p,_,g,j,xl.vertical,["vertical"],F,N,x,S));var Q=T?T.boxStartIndex:t.collisionBoxArray.length,tt=T?T.boxEndIndex:t.collisionBoxArray.length,et=A?A.boxStartIndex:t.collisionBoxArray.length,nt=A?A.boxEndIndex:t.collisionBoxArray.length,rt=M?M.boxStartIndex:t.collisionBoxArray.length,it=M?M.boxEndIndex:t.collisionBoxArray.length,ot=I?I.boxStartIndex:t.collisionBoxArray.length,at=I?I.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&&t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(T,st),st=lt(A,st),st=lt(M,st);var ut=(st=lt(I,st))>-1?1:0;ut&&(st*=C/24),t.glyphOffsetArray.length>=mu.MAX_GLYPHS&&O("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==_.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,_.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,F.right>=0?F.right:-1,F.center>=0?F.center:-1,F.left>=0?F.left:-1,F.vertical||-1,R,N,B,Q,tt,et,nt,rt,it,ot,at,u,L,D,k,P,ut,0,d,z,V,st)}(t,h,s,n,r,i,d,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,m,x,C,l,b,w,E,p,e,o,u,c,a)};if("line"===T)for(var j=0,k=Yl(e.geometry,0,0,8192,8192);j1){var z=Hl(B,S,n.vertical||g,r,24,y);z&&I(B,z)}}else if("Polygon"===e.type)for(var V=0,U=rs(e.geometry,0);V=M.maxzoom||"none"!==M.visibility&&(a(T,this.zoom,r),(g[M.id]=M.createBucket({index:c.bucketLayerIDs.length,layers:T,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:_,sourceID:this.source})).populate(x,v,this.tileID.canonical),c.bucketLayerIDs.push(T.map((function(t){return t.id}))))}}}var A=t.mapObject(v.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(A).length?o.send("getGlyphs",{uid:this.uid,stacks:A},(function(t,e){h||(h=t,d=e,k.call(l))})):d={};var I=Object.keys(v.iconDependencies);I.length?o.send("getImages",{icons:I,source:this.source,tileID:this.tileID,type:"icons"},(function(t,e){h||(h=t,f=e,k.call(l))})):f={};var j=Object.keys(v.patternDependencies);function k(){if(h)return s(h);if(d&&f&&p){var e=new i(d),n=new t.ImageAtlas(f,p);for(var o in g){var l=g[o];l instanceof t.SymbolBucket?(a(l.layers,this.zoom,r),t.performSymbolLayout(l,d,e.positions,f,n.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&&(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&&(a(l.layers,this.zoom,r),l.addFeatures(v,this.tileID.canonical,n.patternPositions))}this.status="done",s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:c,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:n,glyphMap:this.returnDependencies?d:null,iconMap:this.returnDependencies?f:null,glyphPositions:this.returnDependencies?e.positions:null})}}j.length?o.send("getImages",{icons:j,source:this.source,tileID:this.tileID,type:"patterns"},(function(t,e){h||(h=t,p=e,k.call(l))})):p={},k.call(this)};var l=function(t,e,n,r){this.actor=t,this.layerIndex=e,this.availableImages=n,this.loadVectorData=r||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,n){var r=this,i=e.uid;this.loading||(this.loading={});var a=!!(e&&e.request&&e.request.collectResourceTiming)&&new t.RequestPerformance(e.request),s=this.loading[i]=new o(e);s.abort=this.loadVectorData(e,(function(e,o){if(delete r.loading[i],e||!o)return s.status="done",r.loaded[i]=s,n(e);var l=o.rawData,u={};o.expires&&(u.expires=o.expires),o.cacheControl&&(u.cacheControl=o.cacheControl);var c={};if(a){var h=a.finish();h&&(c.resourceTiming=JSON.parse(JSON.stringify(h)))}s.vectorTile=o.vectorTile,s.parse(o.vectorTile,r.layerIndex,r.availableImages,r.actor,(function(e,r){if(e||!r)return n(e);n(null,t.extend({rawTileData:l.slice(0)},r,u,c))})),r.loaded=r.loaded||{},r.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var n=this,r=this.loaded,i=t.uid,o=this;if(r&&r[i]){var a=r[i];a.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,r){var i=a.reloadCallback;i&&(delete a.reloadCallback,a.parse(a.vectorTile,o.layerIndex,n.availableImages,o.actor,i)),e(t,r)};"parsing"===a.status?a.reloadCallback=s:"done"===a.status&&(a.vectorTile?a.parse(a.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var n=this.loading,r=t.uid;n&&n[r]&&n[r].abort&&(n[r].abort(),delete n[r]),e()},l.prototype.removeTile=function(t,e){var n=this.loaded,r=t.uid;n&&n[r]&&delete n[r],e()};var u=t.window.ImageBitmap,c=function(){this.loaded={}};function h(t,e){if(0!==t.length){d(t[0],e);for(var n=1;n=0!=!!e&&t.reverse()}c.prototype.loadTile=function(e,n){var r=e.uid,i=e.encoding,o=e.rawImageData,a=u&&o instanceof u?this.getImageData(o):o,s=new t.DEMData(r,a,i);this.loaded=this.loaded||{},this.loaded[r]=s,n(null,s)},c.prototype.getImageData=function(e){this.offscreenCanvas&&this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext("2d")),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var n=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:n.width,height:n.height},n.data)},c.prototype.removeTile=function(t){var e=this.loaded,n=t.uid;e&&e[n]&&delete e[n]};var f=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,p=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,"id"in e&&!isNaN(e.id)&&(this.id=parseInt(e.id,10))};p.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],n=0,r=this._feature.geometry;n>31}function M(t,e){for(var n=t.loadGeometry(),r=t.type,i=0,o=0,a=n.length,s=0;s>1;!function t(e,n,r,i,o,a){for(;o>i;){if(o-i>600){var s=o-i+1,l=r-i+1,u=Math.log(s),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(s-c)/s)*(l-s/2<0?-1:1);t(e,n,r,Math.max(i,Math.floor(r-l*c/s+h)),Math.min(o,Math.floor(r+(s-l)*c/s+h)),a)}var d=n[2*r+a],f=i,p=o;for(I(e,n,i,r),n[2*o+a]>d&&I(e,n,i,o);fd;)p--}n[2*i+a]===d?I(e,n,i,p):I(e,n,++p,o),p<=r&&(i=p+1),r<=p&&(o=p-1)}}(e,n,s,i,o,a%2),t(e,n,r,i,s-1,a+1),t(e,n,r,s+1,o,a+1)}}(a,s,r,0,a.length-1,0)};D.prototype.range=function(t,e,n,r){return function(t,e,n,r,i,o,a){for(var s,l,u=[0,t.length-1,0],c=[];u.length;){var h=u.pop(),d=u.pop(),f=u.pop();if(d-f<=a)for(var p=f;p<=d;p++)l=e[2*p+1],(s=e[2*p])>=n&&s<=i&&l>=r&&l<=o&&c.push(t[p]);else{var g=Math.floor((f+d)/2);l=e[2*g+1],(s=e[2*g])>=n&&s<=i&&l>=r&&l<=o&&c.push(t[g]);var v=(h+1)%2;(0===h?n<=s:r<=l)&&(u.push(f),u.push(g-1),u.push(v)),(0===h?i>=s:o>=l)&&(u.push(g+1),u.push(d),u.push(v))}}return c}(this.ids,this.coords,t,e,n,r,this.nodeSize)},D.prototype.within=function(t,e,n){return function(t,e,n,r,i,o){for(var a=[0,t.length-1,0],s=[],l=i*i;a.length;){var u=a.pop(),c=a.pop(),h=a.pop();if(c-h<=o)for(var d=h;d<=c;d++)k(e[2*d],e[2*d+1],n,r)<=l&&s.push(t[d]);else{var f=Math.floor((h+c)/2),p=e[2*f],g=e[2*f+1];k(p,g,n,r)<=l&&s.push(t[f]);var v=(u+1)%2;(0===u?n-i<=p:r-i<=g)&&(a.push(h),a.push(f-1),a.push(v)),(0===u?n+i>=p:r+i>=g)&&(a.push(f+1),a.push(c),a.push(v))}}return s}(this.ids,this.coords,t,e,n,this.nodeSize)};var R={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},N=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function F(t,e,n,r,i){return{x:t,y:e,zoom:1/0,id:n,parentId:-1,numPoints:r,properties:i}}function B(t,e){var n=t.geometry.coordinates,r=n[1];return{x:U(n[0]),y:G(r),zoom:1/0,index:e,parentId:-1}}function z(t){return{type:"Feature",id:t.id,properties:V(t),geometry:{type:"Point",coordinates:[(r=t.x,360*(r-.5)),(e=t.y,n=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(n))/Math.PI-90)]}};var e,n,r}function V(t){var e=t.numPoints,n=e>=1e4?Math.round(e/1e3)+"k":e>=1e3?Math.round(e/100)/10+"k":e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:n})}function U(t){return t/360+.5}function G(t){var e=Math.sin(t*Math.PI/180),n=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return n<0?0:n>1?1:n}function H(t,e){for(var n in e)t[n]=e[n];return t}function W(t){return t.x}function Y(t){return t.y}function $(t,e,n,r,i,o){var a=i-n,s=o-r;if(0!==a||0!==s){var l=((t-n)*a+(e-r)*s)/(a*a+s*s);l>1?(n=i,r=o):l>0&&(n+=a*l,r+=s*l)}return(a=t-n)*a+(s=e-r)*s}function X(t,e,n,r){var i={id:void 0===t?null:t,type:e,geometry:n,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,n=t.type;if("Point"===n||"MultiPoint"===n||"LineString"===n)q(t,e);else if("Polygon"===n||"MultiLineString"===n)for(var r=0;r0&&(a+=r?(i*u-l*o)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(u-o,2))),i=l,o=u}var c=e.length-3;e[2]=1,function t(e,n,r,i){for(var o,a=i,s=r-n>>1,l=r-n,u=e[n],c=e[n+1],h=e[r],d=e[r+1],f=n+3;fa)o=f,a=p;else if(p===a){var g=Math.abs(f-s);gi&&(o-n>3&&t(e,n,o,i),e[o+2]=a,r-o>3&&t(e,o,r,i))}(e,0,c,n),e[c+2]=1,e.size=Math.abs(a),e.start=0,e.end=e.size}function Q(t,e,n,r){for(var i=0;i1?1:n}function nt(t,e,n,r,i,o,a,s){if(r/=e,o>=(n/=e)&&a=r)return null;for(var l=[],u=0;u=n&&p=r)){var g=[];if("Point"===d||"MultiPoint"===d)rt(h,g,n,r,i);else if("LineString"===d)it(h,g,n,r,i,!1,s.lineMetrics);else if("MultiLineString"===d)at(h,g,n,r,i,!1);else if("Polygon"===d)at(h,g,n,r,i,!0);else if("MultiPolygon"===d)for(var v=0;v=n&&a<=r&&(e.push(t[o]),e.push(t[o+1]),e.push(t[o+2]))}}function it(t,e,n,r,i,o,a){for(var s,l,u=ot(t),c=0===i?lt:ut,h=t.start,d=0;dn&&(l=c(u,f,p,v,m,n),a&&(u.start=h+s*l)):y>r?b=n&&(l=c(u,f,p,v,m,n),_=!0),b>r&&y<=r&&(l=c(u,f,p,v,m,r),_=!0),!o&&_&&(a&&(u.end=h+s*l),e.push(u),u=ot(t)),a&&(h+=s)}var x=t.length-3;f=t[x],p=t[x+1],g=t[x+2],(y=0===i?f:p)>=n&&y<=r&&st(u,f,p,g),x=u.length-3,o&&x>=3&&(u[x]!==u[0]||u[x+1]!==u[1])&&st(u,u[0],u[1],u[2]),u.length&&e.push(u)}function ot(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function at(t,e,n,r,i,o){for(var a=0;aa.maxX&&(a.maxX=c),h>a.maxY&&(a.maxY=h)}return a}function gt(t,e,n,r){var i=e.geometry,o=e.type,a=[];if("Point"===o||"MultiPoint"===o)for(var s=0;s0&&e.size<(i?a:r))n.numPoints+=e.length/3;else{for(var s=[],l=0;la)&&(n.numSimplified++,s.push(e[l]),s.push(e[l+1])),n.numPoints++;i&&function(t,e){for(var n=0,r=0,i=t.length,o=i-2;r0===e)for(r=0,i=t.length;r24)throw new Error("maxZoom should be in the 0-24 range");if(e.promoteId&&e.generateId)throw new Error("promoteId and generateId cannot be used together.");var r=function(t,e){var n=[];if("FeatureCollection"===t.type)for(var r=0;r=r;u--){var c=+Date.now();s=this._cluster(s,u),this.trees[u]=new D(s,W,Y,o,Float32Array),n&&console.log("z%d: %d clusters in %dms",u,s.length,+Date.now()-c)}return n&&console.timeEnd("total time"),this},N.prototype.getClusters=function(t,e){var n=((t[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,o=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]>=360)n=-180,i=180;else if(n>i){var a=this.getClusters([n,r,180,o],e),s=this.getClusters([-180,r,i,o],e);return a.concat(s)}for(var l=this.trees[this._limitZoom(e)],u=[],c=0,h=l.range(U(n),G(o),U(i),G(r));ce&&(d+=g.numPoints||1)}if(d>=o){for(var v=l.x*h,m=l.y*h,y=i&&h>1?this._map(l,!0):null,b=(s<<5)+(e+1)+this.points.length,_=0,x=c;_1)for(var S=0,C=c;S>5},N.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},N.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var n=this.points[t.index].properties,r=this.options.map(n);return e&&r===n?H({},r):r},mt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},mt.prototype.splitTile=function(t,e,n,r,i,o,a){for(var s=[t,e,n,r],l=this.options,u=l.debug;s.length;){r=s.pop(),n=s.pop(),e=s.pop(),t=s.pop();var c=1<1&&console.time("creation"),d=this.tiles[h]=pt(t,e,n,r,l),this.tileCoords.push({z:e,x:n,y:r}),u)){u>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",e,n,r,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var f="z"+e;this.stats[f]=(this.stats[f]||0)+1,this.total++}if(d.source=t,i){if(e===l.maxZoom||e===i)continue;var p=1<1&&console.time("clipping");var g,v,m,y,b,_,x=.5*l.buffer/l.extent,w=.5-x,O=.5+x,S=1+x;g=v=m=y=null,b=nt(t,c,n-x,n+O,0,d.minX,d.maxX,l),_=nt(t,c,n+w,n+S,0,d.minX,d.maxX,l),t=null,b&&(g=nt(b,c,r-x,r+O,1,d.minY,d.maxY,l),v=nt(b,c,r+w,r+S,1,d.minY,d.maxY,l),b=null),_&&(m=nt(_,c,r-x,r+O,1,d.minY,d.maxY,l),y=nt(_,c,r+w,r+S,1,d.minY,d.maxY,l),_=null),u>1&&console.timeEnd("clipping"),s.push(g||[],e+1,2*n,2*r),s.push(v||[],e+1,2*n,2*r+1),s.push(m||[],e+1,2*n+1,2*r),s.push(y||[],e+1,2*n+1,2*r+1)}}},mt.prototype.getTile=function(t,e,n){var r=this.options,i=r.extent,o=r.debug;if(t<0||t>24)return null;var a=1<1&&console.log("drilling down to z%d-%d-%d",t,e,n);for(var l,u=t,c=e,h=n;!l&&u>0;)u--,c=Math.floor(c/2),h=Math.floor(h/2),l=this.tiles[yt(u,c,h)];return l&&l.source?(o>1&&console.log("found parent tile z%d-%d-%d",u,c,h),o>1&&console.time("drilling down"),this.splitTile(l.source,u,c,h,t,e,n),o>1&&console.timeEnd("drilling down"),this.tiles[s]?dt(this.tiles[s],i):null):null};var _t=function(e){function n(t,n,r,i){e.call(this,t,n,r,bt),i&&(this.loadGeoJSON=i)}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.loadData=function(t,e){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&&"Idle"!==this._state?this._state="NeedsLoadData":(this._state="Coalescing",this._loadData())},n.prototype._loadData=function(){var e=this;if(this._pendingCallback&&this._pendingLoadDataParams){var n=this._pendingCallback,r=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(r&&r.request&&r.request.collectResourceTiming)&&new t.RequestPerformance(r.request);this.loadGeoJSON(r,(function(o,a){if(o||!a)return n(o);if("object"!=typeof a)return n(new Error("Input data given to '"+r.source+"' is not a valid GeoJSON object."));!function t(e,n){var r,i=e&&e.type;if("FeatureCollection"===i)for(r=0;r=0?0:e.button},n.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)};var d=function(e){function n(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.isLoaded=function(){return this.loaded},n.prototype.setLoaded=function(t){if(this.loaded!==t&&(this.loaded=t,t)){for(var e=0,n=this.requestors;e=0?1.2:1))}function m(t,e,n,r,i,o,a){for(var s=0;s65535)e(new Error("glyphs > 65535 not supported"));else if(o.ranges[s])e(null,{stack:n,id:i,glyph:a});else{var l=o.requests[s];l||(l=o.requests[s]=[],b.loadGlyphRange(n,s,r.url,r.requestManager,(function(t,e){if(e){for(var n in e)r._doesCharSupportLocalGlyph(+n)||(o.glyphs[+n]=e[+n]);o.ranges[s]=!0}for(var i=0,a=l;i1&&(s=t[++a]);var u=Math.abs(l-s.left),c=Math.abs(l-s.right),h=Math.min(u,c),d=void 0,f=i/n*(r+1);if(s.isDash){var p=r-Math.abs(f);d=Math.sqrt(h*h+p*p)}else d=r-Math.sqrt(h*h+f*f);this.data[o+l]=Math.max(0,Math.min(255,d+128))}},O.prototype.addRegularDash=function(t){for(var e=t.length-1;e>=0;--e){var n=t[e],r=t[e+1];n.zeroLength?t.splice(e,1):r&&r.isDash===n.isDash&&(r.left=n.left,t.splice(e,1))}var i=t[0],o=t[t.length-1];i.isDash===o.isDash&&(i.left=o.left-this.width,o.right=i.right+this.width);for(var a=this.width*this.nextRow,s=0,l=t[s],u=0;u1&&(l=t[++s]);var c=Math.abs(u-l.left),h=Math.abs(u-l.right),d=Math.min(c,h);this.data[a+u]=Math.max(0,Math.min(255,(l.isDash?d:-d)+128))}},O.prototype.addDash=function(e,n){var r=n?7:0,i=2*r+1;if(this.nextRow+i>this.height)return t.warnOnce("LineAtlas out of space"),null;for(var o=0,a=0;a=r&&e.x=i&&e.y0&&(l[new t.OverscaledTileID(e.overscaledZ,o,n.z,i,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,n.z,n.x,n.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,n.z,a,n.y-1).key]={backfilled:!1}),n.y+10&&(r.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event("data",r))}}))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setData=function(e){var n=this;return this._data=e,this.fire(new t.Event("dataloading",{dataType:"source"})),this._updateWorkerData((function(e){if(e)n.fire(new t.ErrorEvent(e));else{var r={dataType:"source",sourceDataType:"content"};n._collectResourceTiming&&n._resourceTiming&&n._resourceTiming.length>0&&(r.resourceTiming=n._resourceTiming,n._resourceTiming=[]),n.fire(new t.Event("data",r))}})),this},n.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:t,source:this.id},e),this},n.prototype.getClusterChildren=function(t,e){return this.actor.send("geojson.getClusterChildren",{clusterId:t,source:this.id},e),this},n.prototype.getClusterLeaves=function(t,e,n,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:t,limit:e,offset:n},r),this},n.prototype._updateWorkerData=function(e){var n=this;this._loaded=!1;var r=t.extend({},this.workerOptions),i=this._data;"string"==typeof i?(r.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),r.request.collectResourceTiming=this._collectResourceTiming):r.data=JSON.stringify(i),this.actor.send(this.type+".loadData",r,(function(t,i){n._removed||i&&i.abandoned||(n._loaded=!0,i&&i.resourceTiming&&i.resourceTiming[n.id]&&(n._resourceTiming=i.resourceTiming[n.id].slice(0)),n.actor.send(n.type+".coalesce",{source:r.source},null),e(t))}))},n.prototype.loaded=function(){return this._loaded},n.prototype.loadTile=function(e,n){var r=this,i=e.actor?"reloadTile":"loadTile";e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,o){return delete e.request,e.unloadVectorData(),e.aborted?n(null):t?n(t):(e.loadVectorData(o,r.map.painter,"reloadTile"===i),n(null))}))},n.prototype.abortTile=function(t){t.request&&(t.request.cancel(),delete t.request),t.aborted=!0},n.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send("removeTile",{uid:t.uid,type:this.type,source:this.id})},n.prototype.onRemove=function(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})},n.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},n.prototype.hasTransition=function(){return!1},n}(t.Evented),j=t.createLayout([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]),k=function(e){function n(t,n,r,i){e.call(this),this.id=t,this.dispatcher=r,this.coordinates=n.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=n}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(e,n){var r=this;this._loaded=!1,this.fire(new t.Event("dataloading",{dataType:"source"})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,o){r._loaded=!0,i?r.fire(new t.ErrorEvent(i)):o&&(r.image=o,e&&(r.coordinates=e),n&&n(),r._finishLoading())}))},n.prototype.loaded=function(){return this._loaded},n.prototype.updateImage=function(t){var e=this;return this.image&&t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},n.prototype._finishLoading=function(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new t.Event("data",{dataType:"source",sourceDataType:"metadata"})))},n.prototype.onAdd=function(t){this.map=t,this.load()},n.prototype.setCoordinates=function(e){var n=this;this.coordinates=e;var r=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var n=1/0,r=1/0,i=-1/0,o=-1/0,a=0,s=e;an.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError("sources."+this.id,null,"Playback for this video can be set only between the "+n.start(0)+" and "+n.end(0)+"-second mark."))):this.video.currentTime=e}},n.prototype.getVideo=function(){return this.video},n.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))},n.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState<2)){var e=this.map.painter.context,n=e.gl;for(var r in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE),n.texSubImage2D(n.TEXTURE_2D,0,0,0,n.RGBA,n.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,n.RGBA),this.texture.bind(n.LINEAR,n.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[r];"loaded"!==i.state&&(i.state="loaded",i.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"video",urls:this.urls,coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this.video&&!this.video.paused},n}(k),L=function(e){function n(n,r,i,o){e.call(this,n,r,i,o),r.coordinates?Array.isArray(r.coordinates)&&4===r.coordinates.length&&!r.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return"number"!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "coordinates"'))),r.animate&&"boolean"!=typeof r.animate&&this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'optional "animate" property must be a boolean value'))),r.canvas?"string"==typeof r.canvas||r.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError("sources."+n,null,'missing required property "canvas"'))),this.options=r,this.animate=void 0===r.animate||r.animate}return e&&(n.__proto__=e),(n.prototype=Object.create(e&&e.prototype)).constructor=n,n.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},n.prototype.getCanvas=function(){return this.canvas},n.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&&this.animate&&this.play()},n.prototype.onRemove=function(){this.pause()},n.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&&0!==Object.keys(this.tiles).length){var n=this.map.painter.context,r=n.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=n.createVertexBuffer(this._boundsArray,j.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(n,this.canvas,r.RGBA,{premultiply:!0}),this.tiles){var o=this.tiles[i];"loaded"!==o.state&&(o.state="loaded",o.texture=this.texture)}}},n.prototype.serialize=function(){return{type:"canvas",coordinates:this.coordinates}},n.prototype.hasTransition=function(){return this._playing},n.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];tthis.max){var a=this._getAndRemoveByKey(this.order[0]);a&&this.onRemove(a)}return this},B.prototype.has=function(t){return t.wrapped().key in this.data},B.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},B.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&&clearTimeout(e.timeout),0===this.data[t].length&&delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},B.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},B.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},B.prototype.remove=function(t,e){if(!this.has(t))return this;var n=t.wrapped().key,r=void 0===e?0:this.data[n].indexOf(e),i=this.data[n][r];return this.data[n].splice(r,1),i.timeout&&clearTimeout(i.timeout),0===this.data[n].length&&delete this.data[n],this.onRemove(i.value),this.order.splice(this.order.indexOf(n),1),this},B.prototype.setMaxSize=function(t){for(this.max=t;this.order.length>this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this},B.prototype.filter=function(t){var e=[];for(var n in this.data)for(var r=0,i=this.data[n];r1||(Math.abs(n)>1&&(1===Math.abs(n+i)?n+=i:1===Math.abs(n-i)&&(n-=i)),e.dem&&t.dem&&(t.dem.backfillBorder(e.dem,n,r),t.neighboringTiles&&t.neighboringTiles[o]&&(t.neighboringTiles[o].backfilled=!0)))}},n.prototype.getTile=function(t){return this.getTileByID(t.key)},n.prototype.getTileByID=function(t){return this._tiles[t]},n.prototype._retainLoadedChildren=function(t,e,n,r){for(var i in this._tiles){var o=this._tiles[i];if(!(r[i]||!o.hasData()||o.tileID.overscaledZ<=e||o.tileID.overscaledZ>n)){for(var a=o.tileID;o&&o.tileID.overscaledZ>e+1;){var s=o.tileID.scaledTo(o.tileID.overscaledZ-1);(o=this._tiles[s.key])&&o.hasData()&&(a=s)}for(var l=a;l.overscaledZ>e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){r[a.key]=a;break}}}},n.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var n=this._loadedParentTiles[t.key];return n&&n.tileID.overscaledZ>=e?n:null}for(var r=t.overscaledZ-1;r>=e;r--){var i=t.scaledTo(r),o=this._getLoadedTile(i);if(o)return o}},n.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&&e.hasData()?e:this._cache.getByKey(t.wrapped().key)},n.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,n=Math.ceil(t.height/this._source.tileSize)+1,r=Math.floor(e*n*5),i="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(i)},n.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var n={};for(var r in this._tiles){var i=this._tiles[r];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),n[i.tileID.key]=i}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var a in this._tiles)this._setTileReloadTimer(a,this._tiles[a])}},n.prototype.update=function(e){var r=this;if(this.transform=e,this._sourceLoaded&&!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&&(i=i.filter((function(t){return r._source.hasTile(t)})))):i=[];var o=e.coveringZoomLevel(this._source),a=Math.max(o-n.maxOverzooming,this._source.minzoom),s=Math.max(o+n.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,o);if(kt(this._source.type)){for(var u={},c={},h=0,d=Object.keys(l);hthis._source.maxzoom){var v=p.children(this._source.maxzoom)[0],m=this.getTile(v);if(m&&m.hasData()){r[v.key]=v;continue}}else{var y=p.children(this._source.maxzoom);if(r[y[0].key]&&r[y[1].key]&&r[y[2].key]&&r[y[3].key])continue}for(var b=g.wasRequested(),_=p.overscaledZ-1;_>=o;--_){var x=p.scaledTo(_);if(i[x.key])break;if(i[x.key]=!0,!(g=this.getTile(x))&&b&&(g=this._addTile(x)),g&&(r[x.key]=x,b=g.wasRequested(),g.hasData()))break}}}return r},n.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],n=void 0,r=this._tiles[t].tileID;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){n=this._loadedParentTiles[r.key];break}e.push(r.key);var i=r.scaledTo(r.overscaledZ-1);if(n=this._getLoadedTile(i))break;r=i}for(var o=0,a=e;o0||(e.hasData()&&"reloading"!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},n.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},n.prototype.tilesIn=function(e,n,r){var i=this,o=[],a=this.transform;if(!a)return o;for(var s=r?a.getCameraQueryGeometry(e):e,l=e.map((function(t){return a.pointCoordinate(t)})),u=s.map((function(t){return a.pointCoordinate(t)})),c=this.getIds(),h=1/0,d=1/0,f=-1/0,p=-1/0,g=0,v=u;g=0&&m[1].y+v>=0){var y=l.map((function(t){return s.getTilePoint(t)})),b=u.map((function(t){return s.getTilePoint(t)}));o.push({tile:r,tileID:s,queryGeometry:y,cameraQueryGeometry:b,scale:g})}}},b=0;b=t.browser.now())return!0}return!1},n.prototype.setFeatureState=function(t,e,n){this._state.updateState(t=t||"_geojsonTileLayer",e,n)},n.prototype.removeFeatureState=function(t,e,n){this._state.removeFeatureState(t=t||"_geojsonTileLayer",e,n)},n.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||"_geojsonTileLayer",e)},n.prototype.setDependencies=function(t,e,n){var r=this._tiles[t];r&&r.setDependencies(e,n)},n.prototype.reloadTilesForDependencies=function(t,e){for(var n in this._tiles)this._tiles[n].hasDependency(t,e)&&this._reloadTile(n,"reloading");this._cache.filter((function(n){return!n.hasDependency(t,e)}))},n}(t.Evented);function jt(t,e){var n=Math.abs(2*t.wrap)-+(t.wrap<0),r=Math.abs(2*e.wrap)-+(e.wrap<0);return t.overscaledZ-e.overscaledZ||r-n||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function kt(t){return"raster"===t||"image"===t||"video"===t}function Pt(){return new t.window.Worker(qi.workerUrl)}It.maxOverzooming=10,It.maxUnderzooming=3;var Lt="mapboxgl_preloaded_worker_pool",Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length0?(i-a)/s:0;return this.points[o].mult(1-l).add(this.points[n].mult(l))};var Zt=function(t,e,n){var r=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/n),this.yCellCount=Math.ceil(e/n);for(var o=0;o=-e[0]&&n<=e[0]&&r>=-e[1]&&r<=e[1]}function ne(e,n,r,i,o,a,s,l){var u=i?e.textSizeData:e.iconSizeData,c=t.evaluateSizeForZoom(u,r.transform.zoom),h=[256/r.width*2+1,256/r.height*2+1],d=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;d.clear();for(var f=e.lineVertexArray,p=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=r.transform.width/r.transform.height,v=!1,m=0;mMath.abs(r.x-n.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?n.yr.x)?{needsFlipping:!0}:null}function oe(e,n,r,i,o,a,s,l,u,c,h,d,f,p){var g,v=n/24,m=e.lineOffsetX*v,y=e.lineOffsetY*v;if(e.numGlyphs>1){var b=e.glyphStartIndex+e.numGlyphs,_=e.lineStartIndex,x=e.lineStartIndex+e.lineLength,w=re(v,l,m,y,r,h,d,e,u,a,f);if(!w)return{notEnoughRoom:!0};var O=Qt(w.first.point,s).point,S=Qt(w.last.point,s).point;if(i&&!r){var C=ie(e.writingMode,O,S,p);if(C)return C}g=[w.first];for(var E=e.glyphStartIndex+1;E0?I.point:ae(d,A,T,1,o),k=ie(e.writingMode,T,j,p);if(k)return k}var P=se(v*l.getoffsetX(e.glyphStartIndex),m,y,r,h,d,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,u,a,f);if(!P)return{notEnoughRoom:!0};g=[P]}for(var L=0,D=g;L0?1:-1,g=0;i&&(p*=-1,g=Math.PI),p<0&&(g+=Math.PI);for(var v=p>0?l+s:l+s+1,m=o,y=o,b=0,_=0,x=Math.abs(f),w=[];b+_<=x;){if((v+=p)=u)return null;if(y=m,w.push(m),void 0===(m=d[v])){var O=new t.Point(c.getx(v),c.gety(v)),S=Qt(O,h);if(S.signedDistanceFromCamera>0)m=d[v]=S.point;else{var C=v-p;m=ae(0===b?a:new t.Point(c.getx(C),c.gety(C)),O,y,x-b+1,h)}}b+=_,_=y.dist(m)}var E=(x-b)/_,T=m.sub(y),M=T.mult(E)._add(y);M._add(T._unit()._perp()._mult(r*p));var A=g+Math.atan2(m.y-y.y,m.x-y.x);return w.push(M),{point:M,angle:A,path:w}}Zt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Zt.prototype.insert=function(t,e,n,r,i){this._forEachCell(e,n,r,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(n),this.bboxes.push(r),this.bboxes.push(i)},Zt.prototype.insertCircle=function(t,e,n,r){this._forEachCell(e-r,n-r,e+r,n+r,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(n),this.circles.push(r)},Zt.prototype._insertBoxCell=function(t,e,n,r,i,o){this.boxCells[i].push(o)},Zt.prototype._insertCircleCell=function(t,e,n,r,i,o){this.circleCells[i].push(o)},Zt.prototype._query=function(t,e,n,r,i,o){if(n<0||t>this.width||r<0||e>this.height)return!i&&[];var a=[];if(t<=0&&e<=0&&this.width<=n&&this.height<=r){if(i)return!0;for(var s=0;s0:a},Zt.prototype._queryCircle=function(t,e,n,r,i){var o=t-n,a=t+n,s=e-n,l=e+n;if(a<0||o>this.width||l<0||s>this.height)return!r&&[];var u=[];return this._forEachCell(o,s,a,l,this._queryCellCircle,u,{hitTest:r,circle:{x:t,y:e,radius:n},seenUids:{box:{},circle:{}}},i),r?u.length>0:u},Zt.prototype.query=function(t,e,n,r,i){return this._query(t,e,n,r,!1,i)},Zt.prototype.hitTest=function(t,e,n,r,i){return this._query(t,e,n,r,!0,i)},Zt.prototype.hitTestCircle=function(t,e,n,r){return this._queryCircle(t,e,n,!0,r)},Zt.prototype._queryCell=function(t,e,n,r,i,o,a,s){var l=a.seenUids,u=this.boxCells[i];if(null!==u)for(var c=this.bboxes,h=0,d=u;h=c[p+0]&&r>=c[p+1]&&(!s||s(this.boxKeys[f]))){if(a.hitTest)return o.push(!0),!0;o.push({key:this.boxKeys[f],x1:c[p],y1:c[p+1],x2:c[p+2],y2:c[p+3]})}}}var g=this.circleCells[i];if(null!==g)for(var v=this.circles,m=0,y=g;ma*a+s*s},Zt.prototype._circleAndRectCollide=function(t,e,n,r,i,o,a){var s=(o-r)/2,l=Math.abs(t-(r+s));if(l>s+n)return!1;var u=(a-i)/2,c=Math.abs(e-(i+u));if(c>u+n)return!1;if(l<=s||c<=u)return!0;var h=l-s,d=c-u;return h*h+d*d<=n*n};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var n=0;n=1;j--)I.push(M.path[j]);for(var k=1;k0){for(var R=I[0].clone(),N=I[0].clone(),F=1;F=C.x&&N.x<=E.x&&R.y>=C.y&&N.y<=E.y?[I]:N.xE.x||N.yE.y?[]:t.clipLine([I],C.x,C.y,E.x,E.y)}for(var B=0,z=D;B=this.screenRightBoundary||r<100||e>this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,n,r){return n>=0&&t=0&&e0?(this.prevPlacement&&this.prevPlacement.variableOffsets[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID]&&this.prevPlacement.placements[h.crossTileID].text&&(g=this.prevPlacement.variableOffsets[h.crossTileID].anchor),this.variableOffsets[h.crossTileID]={textOffset:v,width:n,height:r,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(d,t,h,f),d.allowVerticalPlacement&&(this.markUsedOrientation(d,f,h),this.placedOrientations[h.crossTileID]=f),{shift:m,placedGlyphBoxes:y}):void 0},xe.prototype.placeLayerBucketPart=function(e,n,r){var i=this,o=e.parameters,a=o.bucket,s=o.layout,l=o.posMatrix,u=o.textLabelPlaneMatrix,c=o.labelToScreenMatrix,h=o.textPixelRatio,d=o.holdingForFade,f=o.collisionBoxArray,p=o.partiallyEvaluatedTextSize,g=o.collisionGroup,v=s.get("text-optional"),m=s.get("icon-optional"),y=s.get("text-allow-overlap"),b=s.get("icon-allow-overlap"),_="map"===s.get("text-rotation-alignment"),x="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),O="viewport-y"===s.get("symbol-z-order"),S=y&&(b||!a.hasIconData()||m),C=b&&(y||!a.hasTextData()||v);!a.collisionArrays&&f&&a.deserializeCollisionBoxes(f);var E=function(e,o){if(!n[e.crossTileID])if(d)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var f,O=!1,E=!1,T=!0,M=null,A={box:null,offscreen:null},I={box:null,offscreen:null},j=null,k=null,P=0,L=0,D=0;o.textFeatureIndex?P=o.textFeatureIndex:e.useRuntimeCollisionCircles&&(P=e.featureIndex),o.verticalTextFeatureIndex&&(L=o.verticalTextFeatureIndex);var R=o.textBox;if(R){var N=function(n){var r=t.WritingMode.horizontal;if(a.allowVerticalPlacement&&!n&&i.prevPlacement){var o=i.prevPlacement.placedOrientations[e.crossTileID];o&&(i.placedOrientations[e.crossTileID]=o,i.markUsedOrientation(a,r=o,e))}return r},F=function(n,r){if(a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&o.verticalTextBox)for(var i=0,s=a.writingModes;i0&&(B=B.filter((function(t){return t!==z.anchor}))).unshift(z.anchor)}var V=function(t,n,r){for(var o=t.x2-t.x1,s=t.y2-t.y1,u=e.textBoxScale,c=w&&!b?n:null,d={box:[],offscreen:!1},f=y?2*B.length:B.length,p=0;p=B.length,e,a,r,c);if(v&&(d=v.placedGlyphBoxes)&&d.box&&d.box.length){O=!0,M=v.shift;break}}return d};F((function(){return V(R,o.iconBox,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&!(A&&A.box&&A.box.length)&&e.numVerticalGlyphVertices>0&&n?V(n,o.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),A&&(O=A.box,T=A.offscreen);var U=N(A&&A.box);if(!O&&i.prevPlacement){var G=i.prevPlacement.variableOffsets[e.crossTileID];G&&(i.variableOffsets[e.crossTileID]=G,i.markUsedJustification(a,G.anchor,e,U))}}else{var H=function(t,n){var r=i.collisionIndex.placeCollisionBox(t,y,h,l,g.predicate);return r&&r.box&&r.box.length&&(i.markUsedOrientation(a,n,e),i.placedOrientations[e.crossTileID]=n),r};F((function(){return H(R,t.WritingMode.horizontal)}),(function(){var n=o.verticalTextBox;return a.allowVerticalPlacement&&e.numVerticalGlyphVertices>0&&n?H(n,t.WritingMode.vertical):{box:null,offscreen:null}})),N(A&&A.box&&A.box.length)}}if(O=(f=A)&&f.box&&f.box.length>0,T=f&&f.offscreen,e.useRuntimeCollisionCircles){var W=a.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(a.textSizeData,p,W),$=s.get("text-padding");j=i.collisionIndex.placeCollisionCircles(y,W,a.lineVertexArray,a.glyphOffsetArray,Y,l,u,c,r,x,g.predicate,e.collisionCircleDiameter,$),O=y||j.circles.length>0&&!j.collisionDetected,T=T&&j.offscreen}if(o.iconFeatureIndex&&(D=o.iconFeatureIndex),o.iconBox){var X=function(t){var e=w&&M?_e(t,M.x,M.y,_,x,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,b,h,l,g.predicate)};E=I&&I.box&&I.box.length&&o.verticalIconBox?(k=X(o.verticalIconBox)).box.length>0:(k=X(o.iconBox)).box.length>0,T=T&&k.offscreen}var q=v||0===e.numHorizontalGlyphVertices&&0===e.numVerticalGlyphVertices,Z=m||0===e.numIconVertices;if(q||Z?Z?q||(E=E&&O):O=E&&O:E=O=E&&O,O&&f&&f.box&&i.collisionIndex.insertCollisionBox(f.box,s.get("text-ignore-placement"),a.bucketInstanceId,I&&I.box&&L?L:P,g.ID),E&&k&&i.collisionIndex.insertCollisionBox(k.box,s.get("icon-ignore-placement"),a.bucketInstanceId,D,g.ID),j&&(O&&i.collisionIndex.insertCollisionCircles(j.circles,s.get("text-ignore-placement"),a.bucketInstanceId,P,g.ID),r)){var K=a.bucketInstanceId,J=i.collisionCircleArrays[K];void 0===J&&(J=i.collisionCircleArrays[K]=new ve);for(var Q=0;Q=0;--M){var A=T[M];E(a.symbolInstances.get(A),a.collisionArrays[A])}else for(var I=e.symbolInstanceStart;I=0&&(e.text.placedSymbolArray.get(l).crossTileID=o>=0&&l!==o?0:r.crossTileID)}},xe.prototype.markUsedOrientation=function(e,n,r){for(var i=n===t.WritingMode.horizontal||n===t.WritingMode.horizontalOnly?n:0,o=n===t.WritingMode.vertical?n:0,a=0,s=[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex];a0,y=i.placedOrientations[o.crossTileID],b=y===t.WritingMode.vertical,_=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s>0||l>0){var x=Ie(v.text);p(e.text,s,b?je:x),p(e.text,l,_?je:x);var w=v.text.isHidden();[o.rightJustifiedTextSymbolIndex,o.centerJustifiedTextSymbolIndex,o.leftJustifiedTextSymbolIndex].forEach((function(t){t>=0&&(e.text.placedSymbolArray.get(t).hidden=w||b?1:0)})),o.verticalPlacedTextSymbolIndex>=0&&(e.text.placedSymbolArray.get(o.verticalPlacedTextSymbolIndex).hidden=w||_?1:0);var O=i.variableOffsets[o.crossTileID];O&&i.markUsedJustification(e,O.anchor,o,y);var S=i.placedOrientations[o.crossTileID];S&&(i.markUsedJustification(e,"left",o,S),i.markUsedOrientation(e,S,o))}if(m){var C=Ie(v.icon),E=!(d&&o.verticalPlacedIconSymbolIndex&&b);o.placedIconSymbolIndex>=0&&(p(e.icon,o.numIconVertices,E?C:je),e.icon.placedSymbolArray.get(o.placedIconSymbolIndex).hidden=v.icon.isHidden()),o.verticalPlacedIconSymbolIndex>=0&&(p(e.icon,o.numVerticalIconVertices,E?je:C),e.icon.placedSymbolArray.get(o.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var T=e.collisionArrays[r];if(T){var M=new t.Point(0,0);if(T.textBox||T.verticalTextBox){var A=!0;if(u){var I=i.variableOffsets[g];I?(M=be(I.anchor,I.width,I.height,I.textOffset,I.textBoxScale),c&&M._rotate(h?i.transform.angle:-i.transform.angle)):A=!1}T.textBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!A||b,M.x,M.y),T.verticalTextBox&&we(e.textCollisionBox.collisionVertexArray,v.text.placed,!A||_,M.x,M.y)}var j=Boolean(!_&&T.verticalIconBox);T.iconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,j,d?M.x:0,d?M.y:0),T.verticalIconBox&&we(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!j,d?M.x:0,d?M.y:0)}}},v=0;vt},xe.prototype.setStale=function(){this.stale=!0};var Oe=Math.pow(2,25),Se=Math.pow(2,24),Ce=Math.pow(2,17),Ee=Math.pow(2,16),Te=Math.pow(2,9),Me=Math.pow(2,8),Ae=Math.pow(2,1);function Ie(t){if(0===t.opacity&&!t.placed)return 0;if(1===t.opacity&&t.placed)return 4294967295;var e=t.placed?1:0,n=Math.floor(127*t.opacity);return n*Oe+e*Se+n*Ce+e*Ee+n*Te+e*Me+n*Ae+e}var je=0,ke=function(t){this._sortAcrossTiles="viewport-y"!==t.layout.get("symbol-z-order")&&void 0!==t.layout.get("symbol-sort-key").constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};ke.prototype.continuePlacement=function(t,e,n,r,i){for(var o=this._bucketParts;this._currentTileIndex2};this._currentPlacementIndex>=0;){var s=n[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if("symbol"===s.type&&(!s.minzoom||s.minzoom<=l)&&(!s.maxzoom||s.maxzoom>l)){if(this._inProgressLayer||(this._inProgressLayer=new ke(s)),this._inProgressLayer.continuePlacement(r[s.source],this.placement,this._showCollisionBoxes,s,a))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},Pe.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Le=512/t.EXTENT/2,De=function(t,e,n){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=n;for(var r=0;rt.overscaledZ)for(var s in a){var l=a[s];l.tileID.isChildOf(t)&&l.findMatches(e.symbolInstances,t,i)}else{var u=a[t.scaledTo(Number(o)).key];u&&u.findMatches(e.symbolInstances,t,i)}}for(var c=0;c1?"@2x":"",l=t.getJSON(n.transformRequest(n.normalizeSpriteURL(e,s,".json"),t.ResourceType.SpriteJSON),(function(t,e){l=null,a||(a=t,i=e,c())})),u=t.getImage(n.transformRequest(n.normalizeSpriteURL(e,s,".png"),t.ResourceType.SpriteImage),(function(t,e){u=null,a||(a=t,o=e,c())}));function c(){if(a)r(a);else if(i&&o){var e=t.browser.getImageData(o),n={};for(var s in i){var l=i[s],u=l.width,c=l.height,h=l.x,d=l.y,f=l.sdf,p=l.pixelRatio,g=l.stretchX,v=l.stretchY,m=l.content,y=new t.RGBAImage({width:u,height:c});t.RGBAImage.copy(e,y,{x:h,y:d},{x:0,y:0},{width:u,height:c}),n[s]={data:y,pixelRatio:p,sdf:f,stretchX:g,stretchY:v,content:m}}r(null,n)}}return{cancel:function(){l&&(l.cancel(),l=null),u&&(u.cancel(),u=null)}}}(e,this.map._requestManager,(function(e,r){if(n._spriteRequest=null,e)n.fire(new t.ErrorEvent(e));else if(r)for(var i in r)n.imageManager.addImage(i,r[i]);n.imageManager.setLoaded(!0),n._availableImages=n.imageManager.listImages(),n.dispatcher.broadcast("setImages",n._availableImages),n.fire(new t.Event("data",{dataType:"style"}))}))},n.prototype._validateLayer=function(e){var n=this.sourceCaches[e.source];if(n){var r=e.sourceLayer;if(r){var i=n.getSource();("geojson"===i.type||i.vectorLayerIds&&-1===i.vectorLayerIds.indexOf(r))&&this.fire(new t.ErrorEvent(new Error('Source layer "'+r+'" does not exist on source "'+i.id+'" as specified by style layer "'+e.id+'"')))}}},n.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},n.prototype._serializeLayers=function(t){for(var e=[],n=0,r=t;n0)throw new Error("Unimplemented: "+i.map((function(t){return t.command})).join(", ")+".");return r.forEach((function(t){"setTransition"!==t.command&&n[t.command].apply(n,t.args)})),this.stylesheet=e,!0},n.prototype.addImage=function(e,n){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error("An image with this name already exists.")));this.imageManager.addImage(e,n),this._afterImageUpdated(e)},n.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},n.prototype.getImage=function(t){return this.imageManager.getImage(t)},n.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error("No image with this name exists.")));this.imageManager.removeImage(e),this._afterImageUpdated(e)},n.prototype._afterImageUpdated=function(e){this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new t.Event("data",{dataType:"style"}))},n.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},n.prototype.addSource=function(e,n,r){var i=this;if(void 0===r&&(r={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error("There is already a source with this ID");if(!n.type)throw new Error("The type property must be defined, but only the following properties were given: "+Object.keys(n).join(", ")+".");if(!(["vector","raster","geojson","video","image"].indexOf(n.type)>=0&&this._validate(t.validateStyle.source,"sources."+e,n,null,r))){this.map&&this.map._collectResourceTiming&&(n.collectResourceTiming=!0);var o=this.sourceCaches[e]=new It(e,n,this.dispatcher);o.style=this,o.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:o.serialize(),sourceId:e}})),o.onAdd(this.map),this._changed=!0}},n.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error("There is no source with this ID");for(var n in this._layers)if(this._layers[n].source===e)return this.fire(new t.ErrorEvent(new Error('Source "'+e+'" cannot be removed while layer "'+n+'" is using it.')));var r=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],r.fire(new t.Event("data",{sourceDataType:"metadata",dataType:"source",sourceId:e})),r.setEventedParent(null),r.clearTiles(),r.onRemove&&r.onRemove(this.map),this._changed=!0},n.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},n.prototype.getSource=function(t){return this.sourceCaches[t]&&this.sourceCaches[t].getSource()},n.prototype.addLayer=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id "'+i+'" already exists on this map')));else{var o;if("custom"===e.type){if(Be(this,t.validateCustomStyleLayer(e)))return;o=t.createStyleLayer(e)}else{if("object"==typeof e.source&&(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,"layers."+i,e,{arrayIndex:-1},r))return;o=t.createStyleLayer(e),this._validateLayer(o),o.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[o.id]=o.serialize()}var a=n?this._order.indexOf(n):this._order.length;if(n&&-1===a)this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.')));else{if(this._order.splice(a,0,i),this._layerOrderChanged=!0,this._layers[i]=o,this._removedLayers[i]&&o.source&&"custom"!==o.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==o.type?this._updatedSources[o.source]="clear":(this._updatedSources[o.source]="reload",this.sourceCaches[o.source].pause())}this._updateLayer(o),o.onAdd&&o.onAdd(this.map)}}},n.prototype.moveLayer=function(e,n){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==n){var r=this._order.indexOf(e);this._order.splice(r,1);var i=n?this._order.indexOf(n):this._order.length;n&&-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id "'+n+'" does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be moved.")))},n.prototype.removeLayer=function(e){this._checkLoaded();var n=this._layers[e];if(n){n.setEventedParent(null);var r=this._order.indexOf(e);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=n,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],n.onRemove&&n.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be removed.")))},n.prototype.getLayer=function(t){return this._layers[t]},n.prototype.hasLayer=function(t){return t in this._layers},n.prototype.setLayerZoomRange=function(e,n,r){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===n&&i.maxzoom===r||(null!=n&&(i.minzoom=n),null!=r&&(i.maxzoom=r),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot have zoom extent.")))},n.prototype.setFilter=function(e,n,r){void 0===r&&(r={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,n))return null==n?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,"layers."+i.id+".filter",n,null,r)||(i.filter=t.clone$1(n),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be filtered.")))},n.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},n.prototype.setLayoutProperty=function(e,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getLayoutProperty(n),r)||(o.setLayoutProperty(n,r,i),this._updateLayer(o)):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getLayoutProperty=function(e,n){var r=this.getLayer(e);if(r)return r.getLayoutProperty(n);this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style.")))},n.prototype.setPaintProperty=function(e,n,r,i){void 0===i&&(i={}),this._checkLoaded();var o=this.getLayer(e);o?t.deepEqual(o.getPaintProperty(n),r)||(o.setPaintProperty(n,r,i)&&this._updateLayer(o),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error("The layer '"+e+"' does not exist in the map's style and cannot be styled.")))},n.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},n.prototype.setFeatureState=function(e,n){this._checkLoaded();var r=e.source,i=e.sourceLayer,o=this.sourceCaches[r];if(void 0!==o){var a=o.getSource().type;"geojson"===a&&i?this.fire(new t.ErrorEvent(new Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==a||i?(void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),o.setFeatureState(i,e.id,n)):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.removeFeatureState=function(e,n){this._checkLoaded();var r=e.source,i=this.sourceCaches[r];if(void 0!==i){var o=i.getSource().type,a="vector"===o?e.sourceLayer:void 0;"vector"!==o||a?n&&"string"!=typeof e.id&&"number"!=typeof e.id?this.fire(new t.ErrorEvent(new Error("A feature id is required to remove its specific state property."))):i.removeFeatureState(a,e.id,n):this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+r+"' does not exist in the map's style.")))},n.prototype.getFeatureState=function(e){this._checkLoaded();var n=e.source,r=e.sourceLayer,i=this.sourceCaches[n];if(void 0!==i){if("vector"!==i.getSource().type||r)return void 0===e.id&&this.fire(new t.ErrorEvent(new Error("The feature id parameter must be provided."))),i.getFeatureState(r,e.id);this.fire(new t.ErrorEvent(new Error("The sourceLayer parameter must be provided for vector source types.")))}else this.fire(new t.ErrorEvent(new Error("The source '"+n+"' does not exist in the map's style.")))},n.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)},n.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},n.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&&!this._updatedSources[t.source]&&"raster"!==this.sourceCaches[t.source].getSource().type&&(this._updatedSources[t.source]="reload",this.sourceCaches[t.source].pause()),this._changed=!0},n.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,n=function(t){return"fill-extrusion"===e._layers[t].type},r={},i=[],o=this._order.length-1;o>=0;o--){var a=this._order[o];if(n(a)){r[a]=o;for(var s=0,l=t;s=0;f--){var p=this._order[f];if(n(p))for(var g=i.length-1;g>=0;g--){var v=i[g].feature;if(r[v.layer.id] 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),Qe=yn("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),tn=yn("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}"),en=yn("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),nn=yn("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),rn=yn("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),on=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),an=yn("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),sn=yn("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),ln=yn("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),un=yn("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),cn=yn("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),hn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}"),dn=yn("uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),fn=yn("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),pn=yn("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),gn=yn("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}"),vn=yn("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),mn=yn("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}");function yn(t,e){var n=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=e.match(/attribute ([\w]+) ([\w]+)/g),i=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),o=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),a=o?o.concat(i):i,s={};return{fragmentSource:t=t.replace(n,(function(t,e,n,r,i){return s[i]=!0,"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"\n#ifdef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),vertexSource:e=e.replace(n,(function(t,e,n,r,i){var o="float"===r?"vec2":"vec4",a=i.match(/color/)?"color":o;return s[i]?"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\nvarying "+n+" "+r+" "+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"define"===e?"\n#ifndef HAS_UNIFORM_u_"+i+"\nuniform lowp float u_"+i+"_t;\nattribute "+n+" "+o+" a_"+i+";\n#else\nuniform "+n+" "+r+" u_"+i+";\n#endif\n":"vec4"===a?"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = a_"+i+";\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n":"\n#ifndef HAS_UNIFORM_u_"+i+"\n "+n+" "+r+" "+i+" = unpack_mix_"+a+"(a_"+i+", u_"+i+"_t);\n#else\n "+n+" "+r+" "+i+" = u_"+i+";\n#endif\n"})),staticAttributes:r,staticUniforms:a}}var bn=Object.freeze({__proto__:null,prelude:We,background:Ye,backgroundPattern:$e,circle:Xe,clippingMask:qe,heatmap:Ze,heatmapTexture:Ke,collisionBox:Je,collisionCircle:Qe,debug:tn,fill:en,fillOutline:nn,fillOutlinePattern:rn,fillPattern:on,fillExtrusion:an,fillExtrusionPattern:sn,hillshadePrepare:ln,hillshade:un,line:cn,lineGradient:hn,linePattern:dn,lineSDF:fn,raster:pn,symbolIcon:gn,symbolSDF:vn,symbolTextAndIcon:mn}),_n=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};function xn(t){for(var e=[],n=0;n>16,s>>16],u_pixel_coord_lower:[65535&a,65535&s]}}wn.prototype.draw=function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,g){var v,m=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(n),t.setStencilMode(r),t.setColorMode(i),t.setCullFace(o),this.fixedUniforms)this.fixedUniforms[y].set(a[y]);f&&f.setUniforms(t,this.binderUniforms,h,{zoom:d});for(var b=(v={},v[m.LINES]=2,v[m.TRIANGLES]=3,v[m.LINE_STRIP]=1,v)[e],_=0,x=c.get();_0?1-1/(1.001-a):-a),u_contrast_factor:(o=i.paint.get("raster-contrast"),o>0?1/(1-o):1+o),u_spin_weights:Gn(i.paint.get("raster-hue-rotate"))};var o,a};function Gn(t){t*=Math.PI/180;var e=Math.sin(t),n=Math.cos(t);return[(2*n+1)/3,(-Math.sqrt(3)*e-n+1)/3,(Math.sqrt(3)*e-n+1)/3]}var Hn,Wn=function(t,e,n,r,i,o,a,s,l,u){var c=i.transform;return{u_is_size_zoom_constant:+("constant"===t||"source"===t),u_is_size_feature_constant:+("constant"===t||"camera"===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:c.cameraToCenterDistance,u_pitch:c.pitch/360*2*Math.PI,u_rotate_symbol:+n,u_aspect_ratio:c.width/c.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:o,u_label_plane_matrix:a,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+r,u_texsize:u,u_texture:0}},Yn=function(e,n,r,i,o,a,s,l,u,c,h){var d=o.transform;return t.extend(Wn(e,n,r,i,o,a,s,l,u,c),{u_gamma_scale:i?Math.cos(d._pitch)*d.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+h})},$n=function(e,n,r,i,o,a,s,l,u,c){return t.extend(Yn(e,n,r,i,o,a,s,l,!0,u,!0),{u_texsize_icon:c,u_texture_icon:1})},Xn=function(t,e,n){return{u_matrix:t,u_opacity:e,u_color:n}},qn=function(e,n,r,i,o,a){return t.extend(function(t,e,n,r){var i=n.imageManager.getPattern(t.from.toString()),o=n.imageManager.getPattern(t.to.toString()),a=n.imageManager.getPixelSize(),s=a.width,l=a.height,u=Math.pow(2,r.tileID.overscaledZ),c=r.tileSize*Math.pow(2,n.transform.tileZoom)/u,h=c*(r.tileID.canonical.x+r.tileID.wrap*u),d=c*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:o.tl,u_pattern_br_b:o.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:o.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/de(r,1,n.transform.tileZoom),u_pixel_coord_upper:[h>>16,d>>16],u_pixel_coord_lower:[65535&h,65535&d]}}(i,a,r,o),{u_matrix:e,u_opacity:n})},Zn={fillExtrusion:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fillExtrusionPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_lightpos:new t.Uniform3f(e,n.u_lightpos),u_lightintensity:new t.Uniform1f(e,n.u_lightintensity),u_lightcolor:new t.Uniform3f(e,n.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,n.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,n.u_height_factor),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade),u_opacity:new t.Uniform1f(e,n.u_opacity)}},fill:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},fillPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},fillOutline:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world)}},fillOutlinePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_texsize:new t.Uniform2f(e,n.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},circle:function(e,n){return{u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,n.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},collisionBox:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,n.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,n.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,n.u_overscale_factor)}},collisionCircle:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,n.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,n.u_viewport_size)}},debug:function(e,n){return{u_color:new t.UniformColor(e,n.u_color),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_overlay:new t.Uniform1i(e,n.u_overlay),u_overlay_scale:new t.Uniform1f(e,n.u_overlay_scale)}},clippingMask:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmap:function(e,n){return{u_extrude_scale:new t.Uniform1f(e,n.u_extrude_scale),u_intensity:new t.Uniform1f(e,n.u_intensity),u_matrix:new t.UniformMatrix4f(e,n.u_matrix)}},heatmapTexture:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_world:new t.Uniform2f(e,n.u_world),u_image:new t.Uniform1i(e,n.u_image),u_color_ramp:new t.Uniform1i(e,n.u_color_ramp),u_opacity:new t.Uniform1f(e,n.u_opacity)}},hillshade:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_latrange:new t.Uniform2f(e,n.u_latrange),u_light:new t.Uniform2f(e,n.u_light),u_shadow:new t.UniformColor(e,n.u_shadow),u_highlight:new t.UniformColor(e,n.u_highlight),u_accent:new t.UniformColor(e,n.u_accent)}},hillshadePrepare:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_image:new t.Uniform1i(e,n.u_image),u_dimension:new t.Uniform2f(e,n.u_dimension),u_zoom:new t.Uniform1f(e,n.u_zoom),u_unpack:new t.Uniform4f(e,n.u_unpack)}},line:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels)}},lineGradient:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_image:new t.Uniform1i(e,n.u_image),u_image_height:new t.Uniform1f(e,n.u_image_height)}},linePattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_texsize:new t.Uniform2f(e,n.u_texsize),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_image:new t.Uniform1i(e,n.u_image),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_scale:new t.Uniform3f(e,n.u_scale),u_fade:new t.Uniform1f(e,n.u_fade)}},lineSDF:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_ratio:new t.Uniform1f(e,n.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,n.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,n.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,n.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,n.u_sdfgamma),u_image:new t.Uniform1i(e,n.u_image),u_tex_y_a:new t.Uniform1f(e,n.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,n.u_tex_y_b),u_mix:new t.Uniform1f(e,n.u_mix)}},raster:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_tl_parent:new t.Uniform2f(e,n.u_tl_parent),u_scale_parent:new t.Uniform1f(e,n.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,n.u_buffer_scale),u_fade_t:new t.Uniform1f(e,n.u_fade_t),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image0:new t.Uniform1i(e,n.u_image0),u_image1:new t.Uniform1i(e,n.u_image1),u_brightness_low:new t.Uniform1f(e,n.u_brightness_low),u_brightness_high:new t.Uniform1f(e,n.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,n.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,n.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,n.u_spin_weights)}},symbolIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture)}},symbolSDF:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texture:new t.Uniform1i(e,n.u_texture),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},symbolTextAndIcon:function(e,n){return{u_is_size_zoom_constant:new t.Uniform1i(e,n.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,n.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,n.u_size_t),u_size:new t.Uniform1f(e,n.u_size),u_camera_to_center_distance:new t.Uniform1f(e,n.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,n.u_pitch),u_rotate_symbol:new t.Uniform1i(e,n.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,n.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,n.u_fade_change),u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,n.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,n.u_coord_matrix),u_is_text:new t.Uniform1i(e,n.u_is_text),u_pitch_with_map:new t.Uniform1i(e,n.u_pitch_with_map),u_texsize:new t.Uniform2f(e,n.u_texsize),u_texsize_icon:new t.Uniform2f(e,n.u_texsize_icon),u_texture:new t.Uniform1i(e,n.u_texture),u_texture_icon:new t.Uniform1i(e,n.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,n.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,n.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,n.u_is_halo)}},background:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_color:new t.UniformColor(e,n.u_color)}},backgroundPattern:function(e,n){return{u_matrix:new t.UniformMatrix4f(e,n.u_matrix),u_opacity:new t.Uniform1f(e,n.u_opacity),u_image:new t.Uniform1i(e,n.u_image),u_pattern_tl_a:new t.Uniform2f(e,n.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,n.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,n.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,n.u_pattern_br_b),u_texsize:new t.Uniform2f(e,n.u_texsize),u_mix:new t.Uniform1f(e,n.u_mix),u_pattern_size_a:new t.Uniform2f(e,n.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,n.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,n.u_scale_a),u_scale_b:new t.Uniform1f(e,n.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,n.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,n.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,n.u_tile_units_to_pixels)}}};function Kn(e,n,r,i,o,a,s){for(var l=e.context,u=l.gl,c=e.useProgram("collisionBox"),h=[],d=0,f=0,p=0;p0){var x=t.create(),w=y;t.mul(x,m.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(x,x,m.placementViewportMatrix),h.push({circleArray:_,circleOffset:f,transform:w,invTransform:x}),f=d+=_.length/4}b&&c.draw(l,u.LINES,Ct.disabled,Et.disabled,e.colorModeForRenderPass(),Mt.disabled,jn(y,e.transform,v),r.id,b.layoutVertexBuffer,b.indexBuffer,b.segments,null,e.transform.zoom,null,null,b.collisionVertexBuffer)}}if(s&&h.length){var O=e.useProgram("collisionCircle"),S=new t.StructArrayLayout2f1f2i16;S.resize(4*d),S._trim();for(var C=0,E=0,T=h;E=0&&(g[m.associatedIconIndex]={shiftedAnchor:S,angle:C})}else ue(m.numGlyphs,f)}if(h){p.clear();for(var T=e.icon.placedSymbolArray,M=0;M0){var s=t.browser.now(),l=(s-e.timeAdded)/a,u=n?(s-n.timeAdded)/a:-1,c=r.getSource(),h=o.coveringZoomLevel({tileSize:c.tileSize,roundZoom:c.roundZoom}),d=!n||Math.abs(n.tileID.overscaledZ-h)>Math.abs(e.tileID.overscaledZ-h),f=d&&e.refreshedUponExpiration?1:t.clamp(d?l:1-u,0,1);return e.refreshedUponExpiration&&l>=1&&(e.refreshedUponExpiration=!1),n?{opacity:1,mix:1-f}:{opacity:f,mix:0}}return{opacity:1,mix:0}}var ur=new t.Color(1,0,0,1),cr=new t.Color(0,1,0,1),hr=new t.Color(0,0,1,1),dr=new t.Color(1,0,1,1),fr=new t.Color(0,1,1,1);function pr(t,e,n,r){vr(t,0,e+n/2,t.transform.width,n,r)}function gr(t,e,n,r){vr(t,e-n/2,0,n,t.transform.height,r)}function vr(e,n,r,i,o,a){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(n*t.browser.devicePixelRatio,r*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,o*t.browser.devicePixelRatio),s.clear({color:a}),l.disable(l.SCISSOR_TEST)}function mr(e,n,r){var i=e.context,o=i.gl,a=r.posMatrix,s=e.useProgram("debug"),l=Ct.disabled,u=Et.disabled,c=e.colorModeForRenderPass();i.activeTexture.set(o.TEXTURE0),e.emptyTexture.bind(o.LINEAR,o.CLAMP_TO_EDGE),s.draw(i,o.LINE_STRIP,l,u,c,Mt.disabled,Pn(a,t.Color.red),"$debug",e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var h=n.getTileByID(r.key).latestRawTileData,d=Math.floor((h&&h.byteLength||0)/1024),f=n.getTile(r).tileSize,p=512/Math.min(f,512)*(r.overscaledZ/e.transform.zoom)*.5,g=r.canonical.toString();r.overscaledZ!==r.canonical.z&&(g+=" => "+r.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var n=t.debugOverlayCanvas,r=t.context.gl,i=t.debugOverlayCanvas.getContext("2d");i.clearRect(0,0,n.width,n.height),i.shadowColor="white",i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle="white",i.textBaseline="top",i.font="bold 36px Open Sans, sans-serif",i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(n),t.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(e,g+" "+d+"kb"),s.draw(i,o.TRIANGLES,l,u,Tt.alphaBlended,Mt.disabled,Pn(a,t.Color.transparent,p),"$debug",e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var yr={symbol:function(e,n,r,i,o){if("translucent"===e.renderPass){var a=Et.disabled,s=e.colorModeForRenderPass();r.layout.get("text-variable-anchor")&&function(e,n,r,i,o,a,s){for(var l=n.transform,u="map"===o,c="map"===a,h=0,d=e;h256&&this.clearStencil(),n.setColorMode(Tt.disabled),n.setDepthMode(Ct.disabled);var i=this.useProgram("clippingMask");this._tileClippingMaskIDs={};for(var o=0,a=e;o256&&this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Et({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},br.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Et({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},br.prototype.stencilConfigForOverlap=function(t){var e,n=this.context.gl,r=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=r[r.length-1].overscaledZ,o=r[0].overscaledZ-i+1;if(o>1){this.currentStencilSource=void 0,this.nextStencilID+o>256&&this.clearStencil();for(var a={},s=0;s=0;this.currentLayer--){var _=this.style._layers[i[this.currentLayer]],x=o[_.source],w=c[_.source];this._renderTileClippingMasks(_,w),this.renderLayer(this,x,_,w)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayer0?e.pop():null},br.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),n=this.imageManager.getPattern(t.to.toString());return!e||!n},br.prototype.useProgram=function(t,e){this.cache=this.cache||{};var n=""+t+(e?e.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"");return this.cache[n]||(this.cache[n]=new wn(this.context,t,bn[t],e,Zn[t],this._showOverdrawInspector)),this.cache[n]},br.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},br.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},br.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=t.window.document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},br.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&&this.debugOverlayTexture.destroy()};var _r=function(t,e){this.points=t,this.planes=e};_r.fromInvProjectionMatrix=function(e,n,r){var i=Math.pow(2,r),o=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(n){return t.transformMat4([],n,e)})).map((function(e){return t.scale$1([],e,1/e[3]/n*i)})),a=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var n=t.sub([],o[e[0]],o[e[1]]),r=t.sub([],o[e[2]],o[e[1]]),i=t.normalize([],t.cross([],n,r)),a=-t.dot(i,o[e[1]]);return i.concat(a)}));return new _r(o,a)};var xr=function(e,n){this.min=e,this.max=n,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};xr.prototype.quadrant=function(e){for(var n=[e%2==0,e<2],r=t.clone$2(this.min),i=t.clone$2(this.max),o=0;o=0;if(0===a)return 0;a!==n.length&&(r=!1)}if(r)return 2;for(var l=0;l<3;l++){for(var u=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;hthis.max[l]-this.min[l])return 0}return 1};var wr=function(t,e,n,r){if(void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),isNaN(t)||t<0||isNaN(e)||e<0||isNaN(n)||n<0||isNaN(r)||r<0)throw new Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=t,this.bottom=e,this.left=n,this.right=r};wr.prototype.interpolate=function(e,n,r){return null!=n.top&&null!=e.top&&(this.top=t.number(e.top,n.top,r)),null!=n.bottom&&null!=e.bottom&&(this.bottom=t.number(e.bottom,n.bottom,r)),null!=n.left&&null!=e.left&&(this.left=t.number(e.left,n.left,r)),null!=n.right&&null!=e.right&&(this.right=t.number(e.right,n.right,r)),this},wr.prototype.getCenter=function(e,n){var r=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+n-this.bottom)/2,0,n);return new t.Point(r,i)},wr.prototype.equals=function(t){return this.top===t.top&&this.bottom===t.bottom&&this.left===t.left&&this.right===t.right},wr.prototype.clone=function(){return new wr(this.top,this.bottom,this.left,this.right)},wr.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var Or=function(e,n,r,i,o){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===o||o,this._minZoom=e||0,this._maxZoom=n||22,this._minPitch=null==r?0:r,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new wr,this._posMatrixCache={},this._alignedPosMatrixCache={}},Sr={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};Or.prototype.clone=function(){var t=new Or(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Sr.minZoom.get=function(){return this._minZoom},Sr.minZoom.set=function(t){this._minZoom!==t&&(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Sr.maxZoom.get=function(){return this._maxZoom},Sr.maxZoom.set=function(t){this._maxZoom!==t&&(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Sr.minPitch.get=function(){return this._minPitch},Sr.minPitch.set=function(t){this._minPitch!==t&&(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Sr.maxPitch.get=function(){return this._maxPitch},Sr.maxPitch.set=function(t){this._maxPitch!==t&&(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Sr.renderWorldCopies.get=function(){return this._renderWorldCopies},Sr.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&&(t=!1),this._renderWorldCopies=t},Sr.worldSize.get=function(){return this.tileSize*this.scale},Sr.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Sr.size.get=function(){return new t.Point(this.width,this.height)},Sr.bearing.get=function(){return-this.angle/Math.PI*180},Sr.bearing.set=function(e){var n=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==n&&(this._unmodified=!1,this.angle=n,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Sr.pitch.get=function(){return this._pitch/Math.PI*180},Sr.pitch.set=function(e){var n=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==n&&(this._unmodified=!1,this._pitch=n,this._calcMatrices())},Sr.fov.get=function(){return this._fov/Math.PI*180},Sr.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&&(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Sr.zoom.get=function(){return this._zoom},Sr.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&&(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Sr.center.get=function(){return this._center},Sr.center.set=function(t){t.lat===this._center.lat&&t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Sr.padding.get=function(){return this._edgeInsets.toJSON()},Sr.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Sr.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},Or.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},Or.prototype.interpolatePadding=function(t,e,n){this._unmodified=!1,this._edgeInsets.interpolate(t,e,n),this._constrain(),this._calcMatrices()},Or.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},Or.prototype.getVisibleUnwrappedCoordinates=function(e){var n=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var r=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),o=this.pointCoordinate(new t.Point(this.width,this.height)),a=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(r.x,i.x,o.x,a.x)),l=Math.floor(Math.max(r.x,i.x,o.x,a.x)),u=s-1;u<=l+1;u++)0!==u&&n.push(new t.UnwrappedTileID(u,e));return n},Or.prototype.coveringTiles=function(e){var n=this.coveringZoomLevel(e),r=n;if(void 0!==e.minzoom&&ne.maxzoom&&(n=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),o=Math.pow(2,n),a=[o*i.x,o*i.y,0],s=_r.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,n),l=e.minzoom||0;this.pitch<=60&&this._edgeInsets.top<.1&&(l=n);var u=function(t){return{aabb:new xr([t*o,0,0],[(t+1)*o,o,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},c=[],h=[],d=n,f=e.reparseOverscaled?r:n;if(this._renderWorldCopies)for(var p=1;p<=3;p++)c.push(u(-p)),c.push(u(p));for(c.push(u(0));c.length>0;){var g=c.pop(),v=g.x,m=g.y,y=g.fullyVisible;if(!y){var b=g.aabb.intersects(s);if(0===b)continue;y=2===b}var _=g.aabb.distanceX(a),x=g.aabb.distanceY(a),w=Math.max(Math.abs(_),Math.abs(x));if(g.zoom===d||w>3+(1<=l)h.push({tileID:new t.OverscaledTileID(g.zoom===d?f:g.zoom,g.wrap,g.zoom,v,m),distanceSq:t.sqrLen([a[0]-.5-v,a[1]-.5-m])});else for(var O=0;O<4;O++){var S=(v<<1)+O%2,C=(m<<1)+(O>>1);c.push({aabb:g.aabb.quadrant(O),zoom:g.zoom+1,x:S,y:C,wrap:g.wrap,fullyVisible:y})}}return h.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},Or.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Sr.unmodified.get=function(){return this._unmodified},Or.prototype.zoomScale=function(t){return Math.pow(2,t)},Or.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},Or.prototype.project=function(e){var n=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(n)*this.worldSize)},Or.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Sr.point.get=function(){return this.project(this.center)},Or.prototype.setLocationAtPoint=function(e,n){var r=this.pointCoordinate(n),i=this.pointCoordinate(this.centerPoint),o=this.locationCoordinate(e),a=new t.MercatorCoordinate(o.x-(r.x-i.x),o.y-(r.y-i.y));this.center=this.coordinateLocation(a),this._renderWorldCopies&&(this.center=this.center.wrap())},Or.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},Or.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},Or.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},Or.prototype.coordinateLocation=function(t){return t.toLngLat()},Or.prototype.pointCoordinate=function(e){var n=[e.x,e.y,0,1],r=[e.x,e.y,1,1];t.transformMat4(n,n,this.pixelMatrixInverse),t.transformMat4(r,r,this.pixelMatrixInverse);var i=n[3],o=r[3],a=n[1]/i,s=r[1]/o,l=n[2]/i,u=r[2]/o,c=l===u?0:(0-l)/(u-l);return new t.MercatorCoordinate(t.number(n[0]/i,r[0]/o,c)/this.worldSize,t.number(a,s,c)/this.worldSize)},Or.prototype.coordinatePoint=function(e){var n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix),new t.Point(n[0]/n[3],n[1]/n[3])},Or.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},Or.prototype.getMaxBounds=function(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},Or.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},Or.prototype.calculatePosMatrix=function(e,n){void 0===n&&(n=!1);var r=e.key,i=n?this._alignedPosMatrixCache:this._posMatrixCache;if(i[r])return i[r];var o=e.canonical,a=this.worldSize/this.zoomScale(o.z),s=o.x+Math.pow(2,o.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*a,o.y*a,0]),t.scale(l,l,[a/t.EXTENT,a/t.EXTENT,1]),t.multiply(l,n?this.alignedProjMatrix:this.projMatrix,l),i[r]=new Float32Array(l),i[r]},Or.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},Or.prototype._constrain=function(){if(this.center&&this.width&&this.height&&!this._constraining){this._constraining=!0;var e,n,r,i,o=-90,a=90,s=-180,l=180,u=this.size,c=this._unmodified;if(this.latRange){var h=this.latRange;o=t.mercatorYfromLat(h[1])*this.worldSize,e=(a=t.mercatorYfromLat(h[0])*this.worldSize)-oa&&(i=a-v)}if(this.lngRange){var m=f.x,y=u.x/2;m-yl&&(r=l-y)}void 0===r&&void 0===i||(this.center=this.unproject(new t.Point(void 0!==r?r:f.x,void 0!==i?i:f.y))),this._unmodified=c,this._constraining=!1}},Or.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var n=Math.PI/2+this._pitch,r=this._fov*(.5+e.y/this.height),i=Math.sin(r)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-r,.01,Math.PI-.01)),o=this.point,a=o.x,s=o.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),u=this.height/50,c=new Float64Array(16);t.perspective(c,this._fov,this.width/this.height,u,l),c[8]=2*-e.x/this.width,c[9]=2*e.y/this.height,t.scale(c,c,[1,-1,1]),t.translate(c,c,[0,0,-this.cameraToCenterDistance]),t.rotateX(c,c,this._pitch),t.rotateZ(c,c,this.angle),t.translate(c,c,[-a,-s,0]),this.mercatorMatrix=t.scale([],c,[this.worldSize,this.worldSize,this.worldSize]),t.scale(c,c,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=c,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,d=this.height%2/2,f=Math.cos(this.angle),p=Math.sin(this.angle),g=a-Math.round(a)+f*h+p*d,v=s-Math.round(s)+f*d+p*h,m=new Float64Array(c);if(t.translate(m,m,[g>.5?g-1:g,v>.5?v-1:v,0]),this.alignedProjMatrix=m,c=t.create(),t.scale(c,c,[this.width/2,-this.height/2,1]),t.translate(c,c,[1,-1,0]),this.labelPlaneMatrix=c,c=t.create(),t.scale(c,c,[1,-1,1]),t.translate(c,c,[-1,-1,0]),t.scale(c,c,[2/this.width,2/this.height,1]),this.glCoordMatrix=c,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(c=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error("failed to invert matrix");this.pixelMatrixInverse=c,this._posMatrixCache={},this._alignedPosMatrixCache={}}},Or.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),n=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(n,n,this.pixelMatrix)[3]/this.cameraToCenterDistance},Or.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},Or.prototype.getCameraQueryGeometry=function(e){var n=this.getCameraPoint();if(1===e.length)return[e[0],n];for(var r=n.x,i=n.y,o=n.x,a=n.y,s=0,l=e;s=3&&!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Cr.prototype._updateHashUnthrottled=function(){var e=t.window.location.href.replace(/(#.+)?$/,this.getHashString());try{t.window.history.replaceState(t.window.history.state,null,e)}catch(t){}};var Er={linearity:.3,easing:t.bezier(0,0,.3,1)},Tr=t.extend({deceleration:2500,maxSpeed:1400},Er),Mr=t.extend({deceleration:20,maxSpeed:1400},Er),Ar=t.extend({deceleration:1e3,maxSpeed:360},Er),Ir=t.extend({deceleration:1e3,maxSpeed:90},Er),jr=function(t){this._map=t,this.clear()};function kr(t,e){(!t.duration||t.duration0&&n-e[0].time>160;)e.shift()},jr.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length<2)){for(var n={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},r=0,i=this._inertiaBuffer;r=this._clickTolerance||this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.dblclick=function(t){return this._firePreventable(new Lr(t.type,this._map,t))},Nr.prototype.mouseover=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.mouseout=function(t){this._map.fire(new Lr(t.type,this._map,t))},Nr.prototype.touchstart=function(t){return this._firePreventable(new Dr(t.type,this._map,t))},Nr.prototype.touchmove=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype.touchend=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype.touchcancel=function(t){this._map.fire(new Dr(t.type,this._map,t))},Nr.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nr.prototype.isEnabled=function(){return!0},Nr.prototype.isActive=function(){return!1},Nr.prototype.enable=function(){},Nr.prototype.disable=function(){};var Fr=function(t){this._map=t};Fr.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fr.prototype.mousemove=function(t){this._map.fire(new Lr(t.type,this._map,t))},Fr.prototype.mousedown=function(){this._delayContextMenu=!0},Fr.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new Lr("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fr.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Lr(t.type,this._map,t)),this._map.listens("contextmenu")&&t.preventDefault()},Fr.prototype.isEnabled=function(){return!0},Fr.prototype.isActive=function(){return!1},Fr.prototype.enable=function(){},Fr.prototype.disable=function(){};var Br=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function zr(t,e){for(var n={},r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=e.timeStamp),r.length===this.numTouches&&(this.centroid=function(e){for(var n=new t.Point(0,0),r=0,i=e;r30)&&(this.aborted=!0)}}},Vr.prototype.touchend=function(t,e,n){if((!this.centroid||t.timeStamp-this.startTime>500)&&(this.aborted=!0),0===n.length){var r=!this.aborted&&this.centroid;if(this.reset(),r)return r}};var Ur=function(t){this.singleTap=new Vr(t),this.numTaps=t.numTaps,this.reset()};Ur.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Ur.prototype.touchstart=function(t,e,n){this.singleTap.touchstart(t,e,n)},Ur.prototype.touchmove=function(t,e,n){this.singleTap.touchmove(t,e,n)},Ur.prototype.touchend=function(t,e,n){var r=this.singleTap.touchend(t,e,n);if(r){var i=t.timeStamp-this.lastTime<500,o=!this.lastTap||this.lastTap.dist(r)<30;if(i&&o||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}};var Gr=function(){this._zoomIn=new Ur({numTouches:1,numTaps:2}),this._zoomOut=new Ur({numTouches:2,numTaps:1}),this.reset()};Gr.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gr.prototype.touchstart=function(t,e,n){this._zoomIn.touchstart(t,e,n),this._zoomOut.touchstart(t,e,n)},Gr.prototype.touchmove=function(t,e,n){this._zoomIn.touchmove(t,e,n),this._zoomOut.touchmove(t,e,n)},Gr.prototype.touchend=function(t,e,n){var r=this,i=this._zoomIn.touchend(t,e,n),o=this._zoomOut.touchend(t,e,n);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):o?(this._active=!0,t.preventDefault(),setTimeout((function(){return r.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(o)},{originalEvent:t})}}):void 0},Gr.prototype.touchcancel=function(){this.reset()},Gr.prototype.enable=function(){this._enabled=!0},Gr.prototype.disable=function(){this._enabled=!1,this.reset()},Gr.prototype.isEnabled=function(){return this._enabled},Gr.prototype.isActive=function(){return this._active};var Hr={0:1,2:2},Wr=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Wr.prototype.blur=function(){this.reset()},Wr.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Wr.prototype._correctButton=function(t,e){return!1},Wr.prototype._move=function(t,e){return{}},Wr.prototype.mousedown=function(t,e){if(!this._lastPoint){var r=n.mouseButton(t);this._correctButton(t,r)&&(this._lastPoint=e,this._eventButton=r)}},Wr.prototype.mousemoveWindow=function(t,e){var n=this._lastPoint;if(n)if(t.preventDefault(),function(t,e){var n=Hr[e];return void 0===t.buttons||(t.buttons&n)!==n}(t,this._eventButton))this.reset();else if(this._moved||!(e.dist(n)0&&(this._active=!0);var i=zr(r,n),o=new t.Point(0,0),a=new t.Point(0,0),s=0;for(var l in i){var u=i[l],c=this._touches[l];c&&(o._add(u),a._add(u.sub(c)),s++,i[l]=u)}if(this._touches=i,!(sMath.abs(t.x)}var ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&&(this._valid=!1)},e.prototype._move=function(t,e,n){var r=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(r,i,n.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(r.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,n){if(void 0!==this._valid)return this._valid;var r=t.mag()>=2,i=e.mag()>=2;if(r||i){if(!r||!i)return void 0===this._firstMove&&(this._firstMove=n),n-this._firstMove<100&&void 0;var o=t.y>0==e.y>0;return ni(t)&&ni(e)&&o}},e}(Zr),ii={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ii;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep,this._rotationDisabled=!1};function ai(t){return t*(2-t)}oi.prototype.blur=function(){this.reset()},oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var n=0,r=0,i=0,o=0,a=0;switch(t.keyCode){case 61:case 107:case 171:case 187:n=1;break;case 189:case 109:case 173:n=-1;break;case 37:t.shiftKey?r=-1:(t.preventDefault(),o=-1);break;case 39:t.shiftKey?r=1:(t.preventDefault(),o=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),a=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),a=1);break;default:return}return this._rotationDisabled&&(r=0,i=0),{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:"keyboardHandler",easing:ai,zoom:n?Math.round(l)+n*(t.shiftKey?2:1):l,bearing:s.getBearing()+r*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-o*e._panStep,-a*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active},oi.prototype.disableRotation=function(){this._rotationDisabled=!0},oi.prototype.enableRotation=function(){this._rotationDisabled=!1};var si=function(e,n){this._map=e,this._el=e.getCanvasContainer(),this._handler=n,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll(["_onTimeout"],this)};si.prototype.setZoomRate=function(t){this._defaultZoomRate=t},si.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},si.prototype.isEnabled=function(){return!!this._enabled},si.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},si.prototype.isZooming=function(){return!!this._zooming},si.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&&"center"===t.around)},si.prototype.disable=function(){this.isEnabled()&&(this._enabled=!1)},si.prototype.wheel=function(e){if(this.isEnabled()){var n=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,r=t.browser.now(),i=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==n&&n%4.000244140625==0?this._type="wheel":0!==n&&Math.abs(n)<4?this._type="trackpad":i>400?(this._type=null,this._lastValue=n,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*n)<200?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,n+=this._lastValue)),e.shiftKey&&n&&(n/=4),this._type&&(this._lastWheelEvent=e,this._delta-=n,this._active||this._start(e)),e.preventDefault()}},si.prototype._onTimeout=function(t){this._type="wheel",this._delta-=this._lastValue,this._active||this._start(t)},si.prototype._start=function(e){if(this._delta){this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);var r=n.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(r)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},si.prototype.renderFrame=function(){var e=this;if(this._frameId&&(this._frameId=null,this.isActive())){var n=this._map.transform;if(0!==this._delta){var r="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*r)));this._delta<0&&0!==i&&(i=1/i);var o="number"==typeof this._targetZoom?n.zoomScale(this._targetZoom):n.scale;this._targetZoom=Math.min(n.maxZoom,Math.max(n.minZoom,n.scaleZoom(o*i))),"wheel"===this._type&&(this._startZoom=n.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var a,s="number"==typeof this._targetZoom?this._targetZoom:n.zoom,l=this._startZoom,u=this._easing,c=!1;if("wheel"===this._type&&l&&u){var h=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),d=u(h);a=t.number(l,s,d),h<1?this._frameId||(this._frameId=!0):c=!0}else a=s,c=!0;return this._active=!0,c&&(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!c,zoomDelta:a-n.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},si.prototype._smoothOutEasing=function(e){var n=t.ease;if(this._prevEase){var r=this._prevEase,i=(t.browser.now()-r.start)/r.duration,o=r.easing(i+.01)-r.easing(i),a=.27/Math.sqrt(o*o+1e-4)*.01,s=Math.sqrt(.0729-a*a);n=t.bezier(a,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:n},n},si.prototype.blur=function(){this.reset()},si.prototype.reset=function(){this._active=!1};var li=function(t,e){this._clickZoom=t,this._tapZoom=e};li.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},li.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},li.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()},li.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ui=function(){this.reset()};ui.prototype.reset=function(){this._active=!1},ui.prototype.blur=function(){this.reset()},ui.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(n){n.easeTo({duration:300,zoom:n.getZoom()+(t.shiftKey?-1:1),around:n.unproject(e)},{originalEvent:t})}}},ui.prototype.enable=function(){this._enabled=!0},ui.prototype.disable=function(){this._enabled=!1,this.reset()},ui.prototype.isEnabled=function(){return this._enabled},ui.prototype.isActive=function(){return this._active};var ci=function(){this._tap=new Ur({numTouches:1,numTaps:1}),this.reset()};ci.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},ci.prototype.touchstart=function(t,e,n){this._swipePoint||(this._tapTime&&t.timeStamp-this._tapTime>500&&this.reset(),this._tapTime?n.length>0&&(this._swipePoint=e[0],this._swipeTouch=n[0].identifier):this._tap.touchstart(t,e,n))},ci.prototype.touchmove=function(t,e,n){if(this._tapTime){if(this._swipePoint){if(n[0].identifier!==this._swipeTouch)return;var r=e[0],i=r.y-this._swipePoint.y;return this._swipePoint=r,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,n)},ci.prototype.touchend=function(t,e,n){this._tapTime?this._swipePoint&&0===n.length&&this.reset():this._tap.touchend(t,e,n)&&(this._tapTime=t.timeStamp)},ci.prototype.touchcancel=function(){this.reset()},ci.prototype.enable=function(){this._enabled=!0},ci.prototype.disable=function(){this._enabled=!1,this.reset()},ci.prototype.isEnabled=function(){return this._enabled},ci.prototype.isActive=function(){return this._active};var hi=function(t,e,n){this._el=t,this._mousePan=e,this._touchPan=n};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("mapboxgl-touch-drag-pan")},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("mapboxgl-touch-drag-pan")},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var di=function(t,e,n){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=n};di.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()},di.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},di.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())},di.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,n,r){this._el=t,this._touchZoom=e,this._touchRotate=n,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add("mapboxgl-touch-zoom-rotate")},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("mapboxgl-touch-zoom-rotate")},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()};var pi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e,e}(t.Event);function vi(t){return t.panDelta&&t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var mi=function(e,r){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new jr(e),this._bearingSnap=r.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(r),t.bindAll(["handleEvent","handleWindowEvent"],this);var i=this._el;this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[t.window.document,"mousemove",{capture:!0}],[t.window.document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[t.window,"blur",void 0]];for(var o=0,a=this._listeners;oo?Math.min(2,x):Math.max(.5,x),w=Math.pow(v,1-e),O=i.unproject(b.add(_.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?O.wrap():O,p)}r._fireMoveEvents(n)}),(function(t){r._afterEase(n,t)}),e),this},n.prototype._prepareEase=function(e,n,r){void 0===r&&(r={}),this._moving=!0,n||r.moving||this.fire(new t.Event("movestart",e)),this._zooming&&!r.zooming&&this.fire(new t.Event("zoomstart",e)),this._rotating&&!r.rotating&&this.fire(new t.Event("rotatestart",e)),this._pitching&&!r.pitching&&this.fire(new t.Event("pitchstart",e))},n.prototype._fireMoveEvents=function(e){this.fire(new t.Event("move",e)),this._zooming&&this.fire(new t.Event("zoom",e)),this._rotating&&this.fire(new t.Event("rotate",e)),this._pitching&&this.fire(new t.Event("pitch",e))},n.prototype._afterEase=function(e,n){if(!this._easeId||!n||this._easeId!==n){delete this._easeId;var r=this._zooming,i=this._rotating,o=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new t.Event("zoomend",e)),i&&this.fire(new t.Event("rotateend",e)),o&&this.fire(new t.Event("pitchend",e)),this.fire(new t.Event("moveend",e))}},n.prototype.flyTo=function(e,n){var r=this;if(!e.essential&&t.browser.prefersReducedMotion){var i=t.pick(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(i,n)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var o=this.transform,a=this.getZoom(),s=this.getBearing(),l=this.getPitch(),u=this.getPadding(),c="zoom"in e?t.clamp(+e.zoom,o.minZoom,o.maxZoom):a,h="bearing"in e?this._normalizeBearing(e.bearing,s):s,d="pitch"in e?+e.pitch:l,f="padding"in e?e.padding:o.padding,p=o.zoomScale(c-a),g=t.Point.convert(e.offset),v=o.centerPoint.add(g),m=o.pointLocation(v),y=t.LngLat.convert(e.center||m);this._normalizeCenter(y);var b=o.project(m),_=o.project(y).sub(b),x=e.curve,w=Math.max(o.width,o.height),O=w/p,S=_.mag();if("minZoom"in e){var C=t.clamp(Math.min(e.minZoom,a,c),o.minZoom,o.maxZoom),E=w/o.zoomScale(C-a);x=Math.sqrt(E/S*2)}var T=x*x;function M(t){var e=(O*O-w*w+(t?-1:1)*T*T*S*S)/(2*(t?O:w)*T*S);return Math.log(Math.sqrt(e*e+1)-e)}function A(t){return(Math.exp(t)-Math.exp(-t))/2}function I(t){return(Math.exp(t)+Math.exp(-t))/2}var j=M(0),k=function(t){return I(j)/I(j+x*t)},P=function(t){return w*((I(j)*(A(e=j+x*t)/I(e))-A(j))/T)/S;var e},L=(M(1)-j)/x;if(Math.abs(S)<1e-6||!isFinite(L)){if(Math.abs(w-O)<1e-6)return this.easeTo(e,n);var D=Oe.maxDuration&&(e.duration=0),this._zooming=!0,this._rotating=s!==h,this._pitching=d!==l,this._padding=!o.isPaddingEqual(f),this._prepareEase(n,!1),this._ease((function(e){var i=e*L,p=1/k(i);o.zoom=1===e?c:a+o.scaleZoom(p),r._rotating&&(o.bearing=t.number(s,h,e)),r._pitching&&(o.pitch=t.number(l,d,e)),r._padding&&(o.interpolatePadding(u,f,e),v=o.centerPoint.add(g));var m=1===e?y:o.unproject(b.add(_.mult(P(i))).mult(p));o.setLocationAtPoint(o.renderWorldCopies?m.wrap():m,v),r._fireMoveEvents(n)}),(function(){return r._afterEase(n)}),e),this},n.prototype.isEasing=function(){return!!this._easeFrameId},n.prototype.stop=function(){return this._stop()},n.prototype._stop=function(t,e){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var n=this._onEaseEnd;delete this._onEaseEnd,n.call(this,e)}if(!t){var r=this.handlers;r&&r.stop(!1)}return this},n.prototype._ease=function(e,n,r){!1===r.animate||0===r.duration?(e(1),n()):(this._easeStart=t.browser.now(),this._easeOptions=r,this._onEaseFrame=e,this._onEaseEnd=n,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},n.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e<1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},n.prototype._normalizeBearing=function(e,n){e=t.wrap(e,-180,180);var r=Math.abs(e-n);return Math.abs(e-360-n)180?-360:n<-180?360:0}},n}(t.Evented),bi=function(e){void 0===e&&(e={}),this.options=e,t.bindAll(["_toggleAttribution","_updateEditLink","_updateData","_updateCompact"],this)};bi.prototype.getDefaultPosition=function(){return"bottom-right"},bi.prototype.onAdd=function(t){var e=this.options&&this.options.compact;return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-attrib"),this._compactButton=n.create("button","mapboxgl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=n.create("div","mapboxgl-ctrl-attrib-inner",this._container),this._innerContainer.setAttribute("role","list"),e&&this._container.classList.add("mapboxgl-compact"),this._updateAttributions(),this._updateEditLink(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("moveend",this._updateEditLink),void 0===e&&(this._map.on("resize",this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){n.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("moveend",this._updateEditLink),this._map.off("resize",this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._setElementTitle=function(t,e){var n=this._map._getUIString("AttributionControl."+e);t.title=n,t.setAttribute("aria-label",n)},bi.prototype._toggleAttribution=function(){this._container.classList.contains("mapboxgl-compact-show")?(this._container.classList.remove("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","false")):(this._container.classList.add("mapboxgl-compact-show"),this._compactButton.setAttribute("aria-pressed","true"))},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(".mapbox-improve-map"));var n=[{key:"owner",value:this.styleOwner},{key:"id",value:this.styleId},{key:"access_token",value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var r=n.reduce((function(t,e,r){return e.value&&(t+=e.key+"="+e.value+(r=0)return!1;return!0}))).join(" | ");a!==this._attribHTML&&(this._attribHTML=a,t.length?(this._innerContainer.innerHTML=a,this._container.classList.remove("mapboxgl-attrib-empty")):this._container.classList.add("mapboxgl-attrib-empty"),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth<=640?this._container.classList.add("mapboxgl-compact"):this._container.classList.remove("mapboxgl-compact","mapboxgl-compact-show")};var _i=function(){t.bindAll(["_updateLogo"],this),t.bindAll(["_updateCompact"],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=n.create("div","mapboxgl-ctrl");var e=n.create("a","mapboxgl-ctrl-logo");return e.target="_blank",e.rel="noopener nofollow",e.href="https://www.mapbox.com/",e.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),e.setAttribute("rel","noopener nofollow"),this._container.appendChild(e),this._container.style.display="none",this._map.on("sourcedata",this._updateLogo),this._updateLogo(),this._map.on("resize",this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){n.remove(this._container),this._map.off("sourcedata",this._updateLogo),this._map.off("resize",this._updateCompact)},_i.prototype.getDefaultPosition=function(){return"bottom-left"},_i.prototype._updateLogo=function(t){t&&"metadata"!==t.sourceDataType||(this._container.style.display=this._logoRequired()?"block":"none")},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth<250?e.classList.add("mapboxgl-compact"):e.classList.remove("mapboxgl-compact")}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,n=0,r=e?this._queue.concat(e):this._queue;ne.maxZoom)throw new Error("maxZoom must be greater than or equal to minZoom");if(null!=e.minPitch&&null!=e.maxPitch&&e.minPitch>e.maxPitch)throw new Error("maxPitch must be greater than or equal to minPitch");if(null!=e.minPitch&&e.minPitch<0)throw new Error("minPitch must be greater than or equal to 0");if(null!=e.maxPitch&&e.maxPitch>60)throw new Error("maxPitch must be less than or equal to 60");var i=new Or(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(r.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},wi,e.locale),this._clickTolerance=e.clickTolerance,this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),"string"==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error("Container '"+e.container+"' not found.")}else{if(!(e.container instanceof Si))throw new Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=e.container}if(e.maxBounds&&this.setMaxBounds(e.maxBounds),t.bindAll(["_onWindowOnline","_onWindowResize","_onMapScroll","_contextLost","_contextRestored"],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error("Failed to initialize WebGL.");this.on("move",(function(){return n._update(!1)})),this.on("moveend",(function(){return n._update(!1)})),this.on("zoom",(function(){return n._update(!0)})),void 0!==t.window&&(t.window.addEventListener("online",this._onWindowOnline,!1),t.window.addEventListener("resize",this._onWindowResize,!1),t.window.addEventListener("orientationchange",this._onWindowResize,!1)),this.handlers=new mi(this,e),this._hash=e.hash&&new Cr("string"==typeof e.hash&&e.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&&(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&&this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&&this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on("style.load",(function(){n.transform.unmodified&&n.jumpTo(n.style.stylesheet)})),this.on("data",(function(e){n._update("style"===e.dataType),n.fire(new t.Event(e.dataType+"data",e))})),this.on("dataloading",(function(e){n.fire(new t.Event(e.dataType+"dataloading",e))}))}r&&(i.__proto__=r),(i.prototype=Object.create(r&&r.prototype)).constructor=i;var o={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,n){if(void 0===n&&(n=e.getDefaultPosition?e.getDefaultPosition():"top-right"),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));var r=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[n];return-1!==n.indexOf("bottom")?i.insertBefore(r,i.firstChild):i.appendChild(r),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));var n=this._controls.indexOf(e);return n>-1&&this._controls.splice(n,1),e.onRemove(this),this},i.prototype.hasControl=function(t){return this._controls.indexOf(t)>-1},i.prototype.resize=function(e){var n=this._containerDimensions(),r=n[0],i=n[1];if(r===this.transform.width&&i===this.transform.height)return this;this._resizeCanvas(r,i),this.transform.resize(r,i),this.painter.resize(r,i);var o=!this._moving;return o&&this.fire(new t.Event("movestart",e)).fire(new t.Event("move",e)),this.fire(new t.Event("resize",e)),o&&this.fire(new t.Event("moveend",e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)>=-2&&t<=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()>t&&this.setZoom(t),this;throw new Error("maxZoom must be greater than the current minZoom")},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)<0)throw new Error("minPitch must be greater than or equal to 0");if(t>=0&&t<=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()60)throw new Error("maxPitch must be less than or equal to 60");if(t>=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()>t&&this.setPitch(t),this;throw new Error("maxPitch must be greater than the current minPitch")},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,n){var r,i=this;if("mouseenter"===t||"mouseover"===t){var o=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){var a=i.getLayer(e)?i.queryRenderedFeatures(r.point,{layers:[e]}):[];a.length?o||(o=!0,n.call(i,new Lr(t,i,r.originalEvent,{features:a}))):o=!1},mouseout:function(){o=!1}}}}if("mouseleave"===t||"mouseout"===t){var a=!1;return{layer:e,listener:n,delegates:{mousemove:function(r){(i.getLayer(e)?i.queryRenderedFeatures(r.point,{layers:[e]}):[]).length?a=!0:a&&(a=!1,n.call(i,new Lr(t,i,r.originalEvent)))},mouseout:function(e){a&&(a=!1,n.call(i,new Lr(t,i,e.originalEvent)))}}}}return{layer:e,listener:n,delegates:(r={},r[t]=function(t){var r=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];r.length&&(t.features=r,n.call(i,t),delete t.features)},r)}},i.prototype.on=function(t,e,n){if(void 0===n)return r.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var o in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(o,i.delegates[o]);return this},i.prototype.once=function(t,e,n){if(void 0===n)return r.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,n);for(var o in i.delegates)this.once(o,i.delegates[o]);return this},i.prototype.off=function(t,e,n){var i=this;return void 0===n?r.prototype.off.call(this,t,e):(this._delegatedListeners&&this._delegatedListeners[t]&&function(r){for(var o=r[t],a=0;a180;){var s=r.locationPoint(e);if(s.x>=0&&s.y>=0&&s.x<=r.width&&s.y<=r.height)break;e.lng>r.center.lng?e.lng-=360:e.lng+=360}return e}ji.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&&this.mousePitch.mousedown(t,e),n.disableDrag()},ji.prototype.move=function(t,e){var n=this.map,r=this.mouseRotate.mousemoveWindow(t,e);if(r&&r.bearingDelta&&n.setBearing(n.getBearing()+r.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&&i.pitchDelta&&n.setPitch(n.getPitch()+i.pitchDelta)}},ji.prototype.off=function(){var t=this.element;n.removeEventListener(t,"mousedown",this.mousedown),n.removeEventListener(t,"touchstart",this.touchstart,{passive:!1}),n.removeEventListener(t,"touchmove",this.touchmove),n.removeEventListener(t,"touchend",this.touchend),n.removeEventListener(t,"touchcancel",this.reset),this.offTemp()},ji.prototype.offTemp=function(){n.enableDrag(),n.removeEventListener(t.window,"mousemove",this.mousemove),n.removeEventListener(t.window,"mouseup",this.mouseup)},ji.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),n.mousePos(this.element,e)),n.addEventListener(t.window,"mousemove",this.mousemove),n.addEventListener(t.window,"mouseup",this.mouseup)},ji.prototype.mousemove=function(t){this.move(t,n.mousePos(this.element,t))},ji.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&&this.mousePitch.mouseupWindow(t),this.offTemp()},ji.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.down({type:"mousedown",button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},ji.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=n.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},ji.prototype.touchend=function(t){0===t.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos)=n}this._isDragging&&(this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new t.Event("dragstart"))),this.fire(new t.Event("drag")))},r.prototype._onUp=function(){this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new t.Event("dragend")),this._state="inactive"},r.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&&(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._pointerdownPos=t.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},r.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&&(t?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this},r.prototype.isDraggable=function(){return this._draggable},r.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},r.prototype.getRotation=function(){return this._rotation},r.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||"auto",this._update(),this},r.prototype.getRotationAlignment=function(){return this._rotationAlignment},r.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&&"auto"!==t?t:this._rotationAlignment,this._update(),this},r.prototype.getPitchAlignment=function(){return this._pitchAlignment},r}(t.Evented),Ni={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Fi=0,Bi=!1,zi=function(e){function r(n){e.call(this),this.options=t.extend({},Ni,n),t.bindAll(["_onSuccess","_onError","_onZoom","_finish","_setupUI","_updateCamera","_updateMarker"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.onAdd=function(e){var r;return this._map=e,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),r=this._setupUI,void 0!==Di?r(Di):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:"geolocation"}).then((function(t){r(Di="denied"!==t.state)})):r(Di=!!t.window.navigator.geolocation),this._container},r.prototype.onRemove=function(){void 0!==this._geolocationWatchID&&(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),n.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,Fi=0,Bi=!1},r.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),n=t.coords;return e&&(n.longitudee.getEast()||n.latitudee.getNorth())},r.prototype._setErrorState=function(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting")}},r.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event("outofmaxbounds",e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background")}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(e),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(e),this.options.showUserLocation&&this._dotElement.classList.remove("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("geolocate",e)),this._finish()}},r.prototype._updateCamera=function(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude),r=e.coords.accuracy,i=this._map.getBearing(),o=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(n.toBounds(r),o,{geolocateSource:!0})},r.prototype._updateMarker=function(e){if(e){var n=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(n).addTo(this._map),this._userLocationDotMarker.setLngLat(n).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},r.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),n=this._map.unproject([1,t]),r=e.distanceTo(n),i=Math.ceil(2*this._accuracy/r);this._circleElement.style.width=i+"px",this._circleElement.style.height=i+"px"},r.prototype._onZoom=function(){this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},r.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;var n=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=n,this._geolocateButton.setAttribute("aria-label",n),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===e.code&&Bi)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("mapboxgl-user-location-dot-stale"),this.fire(new t.Event("error",e)),this._finish()}},r.prototype._finish=function(){this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},r.prototype._setupUI=function(e){var r=this;if(this._container.addEventListener("contextmenu",(function(t){return t.preventDefault()})),this._geolocateButton=n.create("button","mapboxgl-ctrl-geolocate",this._container),n.create("span","mapboxgl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden",!0),this._geolocateButton.type="button",!1===e){t.warnOnce("Geolocation support is not available so the GeolocateControl will be disabled.");var i=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute("aria-label",i)}else{var o=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=o,this._geolocateButton.setAttribute("aria-label",o)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=n.create("div","mapboxgl-user-location-dot"),this._userLocationDotMarker=new Ri(this._dotElement),this._circleElement=n.create("div","mapboxgl-user-location-accuracy-circle"),this._accuracyCircleMarker=new Ri({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",(function(e){e.geolocateSource||"ACTIVE_LOCK"!==r._watchState||e.originalEvent&&"resize"===e.originalEvent.type||(r._watchState="BACKGROUND",r._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background"),r._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),r.fire(new t.Event("trackuserlocationend")))}))},r.prototype.trigger=function(){if(!this._setup)return t.warnOnce("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new t.Event("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":Fi--,Bi=!1,this._watchState="OFF",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background-error"),this.fire(new t.Event("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new t.Event("trackuserlocationstart"))}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active");break;case"ACTIVE_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-active-error");break;case"BACKGROUND":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background");break;case"BACKGROUND_ERROR":this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-background-error")}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++Fi>1?(e={maximumAge:6e5,timeout:0},Bi=!0):(e=this.options.positionOptions,Bi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},r.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("mapboxgl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)},r}(t.Evented),Vi={maxWidth:100,unit:"metric"},Ui=function(e){this.options=t.extend({},Vi,e),t.bindAll(["_onMove","setUnit"],this)};function Gi(t,e,n){var r=n&&n.maxWidth||100,i=t._container.clientHeight/2,o=t.unproject([0,i]),a=t.unproject([r,i]),s=o.distanceTo(a);if(n&&"imperial"===n.unit){var l=3.2808*s;l>5280?Hi(e,r,l/5280,t._getUIString("ScaleControl.Miles")):Hi(e,r,l,t._getUIString("ScaleControl.Feet"))}else n&&"nautical"===n.unit?Hi(e,r,s/1852,t._getUIString("ScaleControl.NauticalMiles")):s>=1e3?Hi(e,r,s/1e3,t._getUIString("ScaleControl.Kilometers")):Hi(e,r,s,t._getUIString("ScaleControl.Meters"))}function Hi(t,e,n,r){var i,o,a,s=(i=n,(o=Math.pow(10,(""+Math.floor(i)).length-1))*(a=(a=i/o)>=10?10:a>=5?5:a>=3?3:a>=2?2:a>=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(a)));t.style.width=e*(s/n)+"px",t.innerHTML=s+" "+r}Ui.prototype.getDefaultPosition=function(){return"bottom-left"},Ui.prototype._onMove=function(){Gi(this._map,this._container,this.options)},Ui.prototype.onAdd=function(t){return this._map=t,this._container=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-scale",t.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container},Ui.prototype.onRemove=function(){n.remove(this._container),this._map.off("move",this._onMove),this._map=void 0},Ui.prototype.setUnit=function(t){this.options.unit=t,Gi(this._map,this._container,this.options)};var Wi=function(e){this._fullscreen=!1,e&&e.container&&(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce("Full screen control 'container' must be a DOM element.")),t.bindAll(["_onClickFullscreen","_changeIcon"],this),"onfullscreenchange"in t.window.document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in t.window.document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in t.window.document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in t.window.document&&(this._fullscreenchange="MSFullscreenChange")};Wi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=n.create("div","mapboxgl-ctrl mapboxgl-ctrl-group"),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display="none",t.warnOnce("This device does not support fullscreen mode.")),this._controlContainer},Wi.prototype.onRemove=function(){n.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Wi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Wi.prototype._setupUI=function(){var e=this._fullscreenButton=n.create("button","mapboxgl-ctrl-fullscreen",this._controlContainer);n.create("span","mapboxgl-ctrl-icon",e).setAttribute("aria-hidden",!0),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Wi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute("aria-label",t),this._fullscreenButton.title=t},Wi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")},Wi.prototype._isFullscreen=function(){return this._fullscreen},Wi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&&(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("mapboxgl-ctrl-shrink"),this._fullscreenButton.classList.toggle("mapboxgl-ctrl-fullscreen"),this._updateTitle())},Wi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&&t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&&this._container.webkitRequestFullscreen()};var Yi={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"},$i=["a[href]","[tabindex]:not([tabindex='-1'])","[contenteditable]:not([contenteditable='false'])","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(", "),Xi=function(e){function r(n){e.call(this),this.options=t.extend(Object.create(Yi),n),t.bindAll(["_update","_onClose","remove","_onMouseMove","_onMouseUp","_onDrag"],this)}return e&&(r.__proto__=e),(r.prototype=Object.create(e&&e.prototype)).constructor=r,r.prototype.addTo=function(e){return this._map&&this.remove(),this._map=e,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")):this._map.on("move",this._update),this.fire(new t.Event("open")),this},r.prototype.isOpen=function(){return!!this._map},r.prototype.remove=function(){return this._content&&n.remove(this._content),this._container&&(n.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new t.Event("close")),this},r.prototype.getLngLat=function(){return this._lngLat},r.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.remove("mapboxgl-track-pointer")),this},r.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("mapboxgl-popup-track-pointer"),this._map._canvasContainer.classList.add("mapboxgl-track-pointer")),this},r.prototype.getElement=function(){return this._container},r.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},r.prototype.setHTML=function(e){var n,r=t.window.document.createDocumentFragment(),i=t.window.document.createElement("body");for(i.innerHTML=e;n=i.firstChild;)r.appendChild(n);return this.setDOMContent(r)},r.prototype.getMaxWidth=function(){return this._container&&this._container.style.maxWidth},r.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},r.prototype.setDOMContent=function(t){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=n.create("div","mapboxgl-popup-content",this._container);return this._content.appendChild(t),this._createCloseButton(),this._update(),this._focusFirstElement(),this},r.prototype.addClassName=function(t){this._container&&this._container.classList.add(t)},r.prototype.removeClassName=function(t){this._container&&this._container.classList.remove(t)},r.prototype.setOffset=function(t){return this.options.offset=t,this._update(),this},r.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},r.prototype._createCloseButton=function(){this.options.closeButton&&(this._closeButton=n.create("button","mapboxgl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))},r.prototype._onMouseUp=function(t){this._update(t.point)},r.prototype._onMouseMove=function(t){this._update(t.point)},r.prototype._onDrag=function(t){this._update(t.point)},r.prototype._update=function(e){var r=this;if(this._map&&(this._lngLat||this._trackPointer)&&this._content&&(this._container||(this._container=n.create("div","mapboxgl-popup",this._map.getContainer()),this._tip=n.create("div","mapboxgl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className&&this.options.className.split(" ").forEach((function(t){return r._container.classList.add(t)})),this._trackPointer&&this._container.classList.add("mapboxgl-popup-track-pointer")),this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=ki(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&&e?e:this._map.project(this._lngLat),o=this.options.anchor,a=function e(n){if(n){if("number"==typeof n){var r=Math.round(Math.sqrt(.5*Math.pow(n,2)));return{center:new t.Point(0,0),top:new t.Point(0,n),"top-left":new t.Point(r,r),"top-right":new t.Point(-r,r),bottom:new t.Point(0,-n),"bottom-left":new t.Point(r,-r),"bottom-right":new t.Point(-r,-r),left:new t.Point(n,0),right:new t.Point(-n,0)}}if(n instanceof t.Point||Array.isArray(n)){var i=t.Point.convert(n);return{center:i,top:i,"top-left":i,"top-right":i,bottom:i,"bottom-left":i,"bottom-right":i,left:i,right:i}}return{center:t.Point.convert(n.center||[0,0]),top:t.Point.convert(n.top||[0,0]),"top-left":t.Point.convert(n["top-left"]||[0,0]),"top-right":t.Point.convert(n["top-right"]||[0,0]),bottom:t.Point.convert(n.bottom||[0,0]),"bottom-left":t.Point.convert(n["bottom-left"]||[0,0]),"bottom-right":t.Point.convert(n["bottom-right"]||[0,0]),left:t.Point.convert(n.left||[0,0]),right:t.Point.convert(n.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var s,l=this._container.offsetWidth,u=this._container.offsetHeight;s=i.y+a.bottom.ythis._map.transform.height-u?["bottom"]:[],i.xthis._map.transform.width-l/2&&s.push("right"),o=0===s.length?"bottom":s.join("-")}var c=i.add(a[o]).round();n.setTransform(this._container,Pi[o]+" translate("+c.x+"px,"+c.y+"px)"),Li(this._container,o,"popup")}},r.prototype._focusFirstElement=function(){if(this.options.focusAfterOpen&&this._container){var t=this._container.querySelector($i);t&&t.focus()}},r.prototype._onClose=function(){this.remove()},r}(t.Evented),qi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ti,NavigationControl:Ii,GeolocateControl:zi,AttributionControl:bi,ScaleControl:Ui,FullscreenControl:Wi,Popup:Xi,Marker:Ri,Style:Ge,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Ft().acquire(Lt)},clearPrewarmedResources:function(){var t=Rt;t&&(t.isPreloaded()&&1===t.numActive()?(t.release(Lt),Rt=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:""};return qi})),n}()},function(t,e){var n=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){"use strict";function r(t){return t*t}function i(t){return t*(2-t)}function o(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}n.r(e),n.d(e,"quadIn",(function(){return r})),n.d(e,"quadOut",(function(){return i})),n.d(e,"quadInOut",(function(){return o}))},function(t,e,n){"use strict";function r(t){return t*t*t}function i(t){return--t*t*t+1}function o(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e),n.d(e,"cubicIn",(function(){return r})),n.d(e,"cubicOut",(function(){return i})),n.d(e,"cubicInOut",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"polyIn",(function(){return r})),n.d(e,"polyOut",(function(){return i})),n.d(e,"polyInOut",(function(){return o}));var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";n.r(e),n.d(e,"sinIn",(function(){return o})),n.d(e,"sinOut",(function(){return a})),n.d(e,"sinInOut",(function(){return s}));var r=Math.PI,i=r/2;function o(t){return 1==+t?1:1-Math.cos(t*i)}function a(t){return Math.sin(t*i)}function s(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"expIn",(function(){return i})),n.d(e,"expOut",(function(){return o})),n.d(e,"expInOut",(function(){return a}));var r=n(316);function i(t){return Object(r.tpmt)(1-+t)}function o(t){return 1-Object(r.tpmt)(t)}function a(t){return((t*=2)<=1?Object(r.tpmt)(1-t):2-Object(r.tpmt)(t-1))/2}},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function i(t){return Math.sqrt(1- --t*t)}function o(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}n.r(e),n.d(e,"circleIn",(function(){return r})),n.d(e,"circleOut",(function(){return i})),n.d(e,"circleInOut",(function(){return o}))},function(t,e,n){"use strict";n.r(e),n.d(e,"bounceIn",(function(){return i})),n.d(e,"bounceOut",(function(){return o})),n.d(e,"bounceInOut",(function(){return a}));var r=7.5625;function i(t){return 1-o(1-t)}function o(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}function a(t){return((t*=2)<=1?1-o(1-t):o(t-1)+1)/2}},function(t,e,n){"use strict";n.r(e),n.d(e,"backIn",(function(){return r})),n.d(e,"backOut",(function(){return i})),n.d(e,"backInOut",(function(){return o}));var r=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),i=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),o=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";n.r(e),n.d(e,"elasticIn",(function(){return o})),n.d(e,"elasticOut",(function(){return a})),n.d(e,"elasticInOut",(function(){return s}));var r=n(316),i=2*Math.PI,o=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return e*Object(r.tpmt)(- --t)*Math.sin((o-t)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3),a=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return 1-e*Object(r.tpmt)(t=+t)*Math.sin((t+o)/n)}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3),s=function t(e,n){var o=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function a(t){return((t=2*t-1)<0?e*Object(r.tpmt)(-t)*Math.sin((o-t)/n):2-e*Object(r.tpmt)(t)*Math.sin((o+t)/n))/2}return a.amplitude=function(e){return t(e,n*i)},a.period=function(n){return t(e,n)},a}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circularDependencyToException=e.listMetadataForTarget=e.listRegisteredBindingsForServiceIdentifier=e.getServiceIdentifierAsString=e.getFunctionName=void 0;var r=n(223);function i(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function o(t){if(t.name)return t.name;var e=t.toString(),n=e.match(/^function\s*([^\s(]+)/);return n?n[1]:"Anonymous function: "+e}e.getServiceIdentifierAsString=i,e.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var r="",i=n(t,e);return 0!==i.length&&(r="\nRegistered bindings:",i.forEach((function(t){var e="Object";null!==t.implementationType&&(e=o(t.implementationType)),r=r+"\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)}))),r},e.circularDependencyToException=function t(e){e.childRequests.forEach((function(e){if(function t(e,n){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===n||t(e.parentRequest,n))}(e,e.serviceIdentifier)){var n=function(t){return function t(e,n){void 0===n&&(n=[]);var r=i(e.serviceIdentifier);return n.push(r),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\x3e ")}(e);throw new Error(r.CIRCULAR_DEPENDENCY+" "+n)}t(e)}))},e.listMetadataForTarget=function(t,e){if(e.isTagged()||e.isNamed()){var n="",r=e.getNamedTag(),i=e.getCustomTags();return null!==r&&(n+=r.toString()+"\n"),null!==i&&i.forEach((function(t){n+=t.toString()+"\n"}))," "+t+"\n "+t+" - "+n}return" "+t},e.getFunctionName=o},function(t,e,n){var r=n(803),i=n(1977),o=n(1978),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?i(t):o(t)}},function(t,e,n){"use strict";n.r(e);var r=n(59),i=function(t){function e(e,n,r,i,o){var a=t.call(this,i)||this;return a.x=null==e?.5:e,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r.__extends)(e,t),e}(n(658).default);e.default=i},function(t,e,n){"use strict";n.r(e),n.d(e,"getEngine",(function(){return i})),n.d(e,"registerEngine",(function(){return o}));var r={};function i(t){var e=r[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function o(t,e){r[t]=e}},function(t,e,n){"use strict";n.r(e),n.d(e,"View",(function(){return C})),n.d(e,"registerGeometry",(function(){return E}));var r=n(2),i=n(1),o=n(7),a=n(455),s=n(383),l=n(286),u=n(392),c=n(116),h=n(82),d=n(78),f=n(359),p=n(398),g=n(155),v=n(488),m=n(527),y=n(1526),b=n(256),_=n(1527),x=n(1528),w=n(489),O=n(1529),S=n(1530),C=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object(m.getComponentControllerNames)(),n.scalePool=new x.ScalePool,n.layoutFunc=_.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var o=e.id,a=void 0===o?Object(i.uniqueId)("view"):o,s=e.parent,l=e.canvas,c=e.backgroundGroup,h=e.middleGroup,d=e.foregroundGroup,f=e.region,p=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,g=e.padding,y=e.appendPadding,b=e.theme,w=e.options,O=e.limitInPlot,S=e.syncViewPadding;return n.parent=s,n.canvas=l,n.backgroundGroup=c,n.middleGroup=h,n.foregroundGroup=d,n.region=p,n.padding=g,n.appendPadding=y,n.options=Object(r.__assign)(Object(r.__assign)({},n.options),w),n.limitInPlot=O,n.id=a,n.syncViewPadding=S,n.themeObject=Object(i.isObject)(b)?Object(i.deepMix)({},Object(u.getTheme)("default"),Object(v.createTheme)(b)):Object(u.getTheme)(b),n.init(),n}return Object(r.__extends)(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(o.VIEW_LIFE_CIRCLE.AFTER_RENDER,b.default.fromData(this,o.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(o.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n"},key:(0===l?"top":"bottom")+"-statistic"},Object(o.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},u=function(t,e,n){var l=e.statistic;[l.title,l.content].forEach((function(e){if(e){var l=Object(i.isFunction)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.__assign)({position:["50%","100%"],html:function(t,o){var u=o.getCoordinate(),c=o.views[0].getCoordinate(),h=c.getCenter(),d=c.getRadius(),f=Math.max(Math.sin(c.startAngle),Math.sin(c.endAngle))*d,p=h.y+f-u.y.start-parseFloat(Object(i.get)(l,"fontSize",0)),g=u.getRadius()*u.innerRadius*2;s(t,Object(r.__assign)({width:g+"px",transform:"translate(-50%, "+p+"px)"},a(l)));var v=o.getData();if(e.customHtml)return e.customHtml(t,o,n,v);var m=e.content;return e.formatter&&(m=e.formatter(n,v)),m?Object(i.isString)(m)?m:""+m:"
"}},Object(o.pick)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"Funnel",(function(){return u}));var r=n(2),i=n(1),o=n(26),a=n(4),s=n(721),l=n(73);n.d(e,"FUNNEL_CONVERSATION_FIELD",(function(){return l.FUNNEL_CONVERSATION}));var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(r.__extends)(e,t),e.getDefaultOptions=function(){return l.DEFAULT_OPTIONS},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s.adaptor},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(a.getAllElementsRecursively)(this.chart);Object(i.each)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(a.getAllElementsRecursively)(this.chart),e=[];return Object(i.each)(t,(function(t){var n=t.getData(),r=t.getStates();Object(i.each)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=l.FUNNEL_CONVERSATION,e.PERCENT_FIELD=l.FUNNEL_PERCENT,e.TOTAL_PERCENT_FIELD=l.FUNNEL_TOTAL_PERCENT,e}(o.Plot)},function(t,e,n){"use strict";n.r(e),n.d(e,"ArcShape",(function(){return o}));var r=n(59),i=n(36),o=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},a=function(t){function e(e){return t.call(this,e)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new o},e.prototype.buildPath=function(t,e){var n=e.cx,r=e.cy,i=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*i+n,u*i+r),t.arc(n,r,i,o,a,!s)},e}(i.default);a.prototype.type="arc",e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"parseXML",(function(){return i}));var r=n(0);function i(t){Object(r.isString)(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));var r=n(618),i=n(1495);function o(t,e){void 0===e&&(e=!1);for(var n,o,s=Object(r.default)(t),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",h=s.length,d=[],f=0;f7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return o}));function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function o(t,e,n){var o=!1,a=t.length;if(a<=2)return!1;for(var s=0;s0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(n(357).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.last)(e);if(o<0)return Object(i.head)(e);var a=e[o],s=o/(n-1);return a+(r-s)/((o+1)/(n-1)-s)*(e[o+1]-a)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(i.last)(e)!==this.max&&e.push(this.max),Object(i.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(i.last)(e))return 1;var n=0;return Object(i.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(n(357).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"registerComponentController",(function(){return i})),n.d(e,"unregisterComponentController",(function(){return o})),n.d(e,"getComponentControllerNames",(function(){return a})),n.d(e,"getComponentController",(function(){return s}));var r={};function i(t,e){r[t]=e}function o(t){delete r[t]}function a(){return Object.keys(r)}function s(t){return r[t]}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return s}));var r=n(56);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function o(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function a(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(g*g)+i*i*(p*p),y=m?Math.sqrt((n*n*(i*i)-m)/m):1;l===u&&(y*=-1),isNaN(y)&&(y=0);var b=i?y*n*g/i:0,_=n?y*-i*p/n:0,x=(c+d)/2+Math.cos(s)*b-Math.sin(s)*_,w=(h+f)/2+Math.sin(s)*b+Math.cos(s)*_,O=[(p-b)/n,(g-_)/i],S=[(-1*p-b)/n,(-1*g-_)/i],C=a([1,0],O),E=a(O,S);return o(O,S)<=-1&&(E=Math.PI),o(O,S)>=1&&(E=0),0===u&&E>0&&(E-=2*Math.PI),1===u&&E<0&&(E+=2*Math.PI),{cx:x,cy:w,rx:Object(r.isSamePoint)(t,[d,f])?0:n,ry:Object(r.isSamePoint)(t,[d,f])?0:i,startAngle:C,endAngle:C+E,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";n.r(e);var r=n(1137);n.d(e,"cluster",(function(){return r.default}));var i=n(306);n.d(e,"hierarchy",(function(){return i.default}));var o=n(822);n.d(e,"pack",(function(){return o.default}));var a=n(644);n.d(e,"packSiblings",(function(){return a.default}));var s=n(645);n.d(e,"packEnclose",(function(){return s.default}));var l=n(821);n.d(e,"partition",(function(){return l.default}));var u=n(1138);n.d(e,"stratify",(function(){return u.default}));var c=n(1139);n.d(e,"tree",(function(){return c.default}));var h=n(823);n.d(e,"treemap",(function(){return h.default}));var d=n(1140);n.d(e,"treemapBinary",(function(){return d.default}));var f=n(290);n.d(e,"treemapDice",(function(){return f.default}));var p=n(355);n.d(e,"treemapSlice",(function(){return p.default}));var g=n(1141);n.d(e,"treemapSliceDice",(function(){return g.default}));var v=n(393);n.d(e,"treemapSquarify",(function(){return v.default}));var m=n(1142);n.d(e,"treemapResquarify",(function(){return m.default}))},function(t,e,n){"use strict";n.r(e),n.d(e,"transformLocalCoord",(function(){return a})),n.d(e,"transformCoordWithViewport",(function(){return s})),n.d(e,"isCanvasEl",(function(){return l}));var r=n(49),i=n(825),o=[];function a(t,e,n,r,i){return s(o,e,r,i,!0)&&s(t,n,o[0],o[1])}function s(t,e,n,o,a){if(e.getBoundingClientRect&&r.default.domSupported&&!l(e)){var s=e.___zrEVENTSAVED||(e.___zrEVENTSAVED={}),u=function(t,e,n){for(var r=n?"invTrans":"trans",o=e[r],a=e.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var h=t[c].getBoundingClientRect(),d=2*c,f=h.left,p=h.top;s.push(f,p),u=u&&a&&f===a[d]&&p===a[d+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&o?o:(e.srcCoords=s,e[r]=n?Object(i.buildTransformer)(l,s):Object(i.buildTransformer)(s,l))}(function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,s),s,a);if(u)return u(t,n,o),!0}return!1}function l(t){return"CANVAS"===t.nodeName.toUpperCase()}},function(t,e,n){"use strict";var r;n.r(e),r=n(49).default.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(52),i=[0,0],o=[0,0],a=new r.default,s=new r.default,l=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r.default;for(n=0;n<2;n++)this._axes[n]=new r.default;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),e)for(var u=0;u<4;u++)n[u].transform(e);r.default.sub(i[0],n[1],n[0]),r.default.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},t.prototype.intersect=function(t,e){var n=!0,i=!e;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,t,a,s,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,a,s,i,-1)&&(n=!1,i)||i||r.default.copy(e,n?a:s),n},t.prototype._intersectCheckOneSide=function(t,e,n,a,s,l){for(var u=!0,c=0;c<2;c++){var h=this._axes[c];if(this._getProjMinMaxOnAxis(c,t._corners,i),this._getProjMinMaxOnAxis(c,e._corners,o),i[1]o[1]){if(u=!1,s)return u;var d=Math.abs(o[0]-i[1]),f=Math.abs(i[0]-o[1]);Math.min(d,f)>a.len()&&(d0?"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:Object(r.isNumber)(t)?[t]:Object(r.isArray)(t)?t:null:null}function o(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&i(e.lineDash,e.lineWidth),o=e.lineDashOffset;if(n){var a=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(n=Object(r.map)(n,(function(t){return t/a})),o/=a)}return[n,o]}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(211),o=n(536),a=n(113),s=n(0),l=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new o.default({})),Object(s.isArray)(r)&&(r=new o.default({categories:Object(s.map)(r,(function(t){return Object(s.isObject)(t)?t.value:t}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return Object(r.__extends)(e,t),e.prototype.parse=function(t){return null==t?NaN:Object(s.isString)(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return t=this.parse(t),a.contain(t,this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return t=this._getTickNumber(this.parse(t)),a.normalize(t,this._extent)},e.prototype.scale=function(t){return t=Math.round(a.scale(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(i.default);i.default.registerClass(l),e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(0),i=0,o=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++i}return t.createByAxisModel=function(e){var n=e.option,i=n.data,o=i&&Object(r.map)(i,a);return new t({categories:o,needCollect:!o,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!Object(r.isString)(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(r.createHashMap)(this.categories))},t}();function a(t){return Object(r.isObject)(t)&&null!=t.value?t.value:t+""}e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ECPolyline",(function(){return d})),n.d(e,"ECPolygon",(function(){return p}));var r=n(5),i=n(36),o=n(138),a=n(47),s=Math.min,l=Math.max;function u(t,e){return isNaN(t)||isNaN(e)}function c(t,e,n,r,i,o,a,c,h){for(var d,f,p,g,v,m,y=n,b=0;b=i||y<0)break;if(u(_,x)){if(h){y+=o;continue}break}if(y===n)t[o>0?"moveTo":"lineTo"](_,x),p=_,g=x;else{var w=_-d,O=x-f;if(w*w+O*O<.5){y+=o;continue}if(a>0){for(var S=y+o,C=e[2*S],E=e[2*S+1];C===_&&E===x&&b=r||u(C,E))v=_,m=x;else{A=C-d,I=E-f;var P=_-d,L=C-_,D=x-f,R=E-x,N=void 0,F=void 0;if("x"===c){var B=A>0?1:-1;v=_-B*(N=Math.abs(P))*a,m=x,j=_+B*(F=Math.abs(L))*a,k=x}else if("y"===c){var z=I>0?1:-1;v=_,m=x-z*(N=Math.abs(D))*a,j=_,k=x+z*(F=Math.abs(R))*a}else N=Math.sqrt(P*P+D*D),v=_-A*a*(1-(M=(F=Math.sqrt(L*L+R*R))/(F+N))),m=x-I*a*(1-M),k=x+I*a*M,j=s(j=_+A*a*M,l(C,_)),k=s(k,l(E,x)),j=l(j,s(C,_)),m=x-(I=(k=l(k,s(E,x)))-x)*N/F,v=s(v=_-(A=j-_)*N/F,l(d,_)),m=s(m,l(f,x)),j=_+(A=_-(v=l(v,s(d,_))))*F/N,k=x+(I=x-(m=l(m,s(f,x))))*F/N}t.bezierCurveTo(p,g,v,m,_,x),p=j,g=k}else t.lineTo(_,x)}d=_,f=x,y+=o}return b}var h=function(){this.smooth=0,this.smoothConstraint=!0},d=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return Object(r.__extends)(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new h},e.prototype.buildPath=function(t,e){var n=e.points,r=0,i=n.length/2;if(e.connectNulls){for(;i>0&&u(n[2*i-2],n[2*i-1]);i--);for(;r=0){var y=l?(d-r)*m+r:(h-n)*m+n;return l?[t,y]:[y,t]}n=h,r=d;break;case s.C:h=i[c++],d=i[c++],f=i[c++],p=i[c++],g=i[c++],v=i[c++];var b=l?Object(a.cubicRootAt)(n,h,f,g,t,u):Object(a.cubicRootAt)(r,d,p,v,t,u);if(b>0)for(var _=0;_=0){y=l?Object(a.cubicAt)(r,d,p,v,x):Object(a.cubicAt)(n,h,f,g,x);return l?[t,y]:[y,t]}}n=g,r=v}}},e}(i.default),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e}(h),p=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return Object(r.__extends)(e,t),e.prototype.getDefaultShape=function(){return new f},e.prototype.buildPath=function(t,e){var n=e.points,r=e.stackedOnPoints,i=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&u(n[2*o-2],n[2*o-1]);o--);for(;i=0)&&t(o,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var r=p[t.brushType](0,n,e);t.__rangeOffset={offset:v[t.brushType](r.values,t.range,[1,1]),xyMinMax:r.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){Object(r.each)(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&Object(r.each)(i.coordSyses,(function(r){var i=p[t.brushType](1,r,t.range,!0);n(t,i.values,r,e)}))}),this)},t.prototype.setInputRanges=function(t,e){Object(r.each)(t,(function(t){var n,r,i,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=p[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?v[t.brushType](l.values,u.offset,(n=l.xyMinMax,r=u.xyMinMax,i=y(n),o=y(r),a=[i[0]/o[0],i[1]/o[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return Object(r.map)(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:o.makeRectPanelClipPath(r),isTargetByCursor:o.makeRectIsTargetByCursor(r,t,n.coordSysModel),getLinearBrushOtherExtent:o.makeLinearBrushOtherExtent(r)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&Object(r.indexOf)(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,r=c(e,t),i=0;it[1]&&t.reverse(),t}function c(t,e){return Object(a.parseFinder)(t,e,{includeMainTypes:s})}var h={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,o=t.gridModels,a=Object(r.createHashMap)(),s={},l={};(n||i||o)&&(Object(r.each)(n,(function(t){var e=t.axis.grid.model;a.set(e.id,e),s[e.id]=!0})),Object(r.each)(i,(function(t){var e=t.axis.grid.model;a.set(e.id,e),l[e.id]=!0})),Object(r.each)(o,(function(t){a.set(t.id,t),s[t.id]=!0,l[t.id]=!0})),a.each((function(t){var o=t.coordinateSystem,a=[];Object(r.each)(o.getCartesians(),(function(t,e){(Object(r.indexOf)(n,t.getAxis("x").model)>=0||Object(r.indexOf)(i,t.getAxis("y").model)>=0)&&a.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:a[0],coordSyses:a,getPanelRect:f.grid,xAxisDeclared:s[t.id],yAxisDeclared:l[t.id]})})))},geo:function(t,e){Object(r.each)(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:f.geo})}))}},d=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],f={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(i.getTransform(t)),e}},p={lineX:Object(r.curry)(g,0),lineY:Object(r.curry)(g,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[u([i[0],o[0]]),u([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var o=[[1/0,-1/0],[1/0,-1/0]];return{values:Object(r.map)(n,(function(n){var r=t?e.pointToData(n,i):e.dataToPoint(n,i);return o[0][0]=Math.min(o[0][0],r[0]),o[1][0]=Math.min(o[1][0],r[1]),o[0][1]=Math.max(o[0][1],r[0]),o[1][1]=Math.max(o[1][1],r[1]),r})),xyMinMax:o}}};function g(t,e,n,i){var o=n.getAxis(["x","y"][t]),a=u(Object(r.map)([0,1],(function(t){return e?o.coordToData(o.toLocalCoord(i[t]),!0):o.toGlobalCoord(o.dataToCoord(i[t]))}))),s=[];return s[t]=a,s[1-t]=[NaN,NaN],{values:a,xyMinMax:s}}var v={lineX:Object(r.curry)(m,0),lineY:Object(r.curry)(m,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return Object(r.map)(t,(function(t,r){return[t[0]-n[0]*e[r][0],t[1]-n[1]*e[r][1]]}))}};function m(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function y(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(57),a=n(10),s=n(40),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{},this._updateSelector(t)},e.prototype.mergeOption=function(e,n){t.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},e.prototype._updateSelector=function(t){var e=t.selector,n=this.ecModel;!0===e&&(e=t.selector=["all","inverse"]),i.isArray(e)&&i.each(e,(function(t,r){i.isString(t)&&(t={type:t}),e[r]=i.merge(t,function(t,e){return"all"===e?{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])}:"inverse"===e?{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}:void 0}(n,t.type))}))},e.prototype.optionUpdated=function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(s.default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"setViewInfoToCoordSysRecord",(function(){return u})),n.d(e,"disposeCoordSysRecordIfNeeded",(function(){return c})),n.d(e,"installDataZoomRoamProcessor",(function(){return p}));var r=n(296),i=n(130),o=n(10),a=n(0),s=n(156),l=Object(o.makeInner)();function u(t,e,n){l(t).coordSysRecordMap.each((function(t){var r=t.dataZoomInfoMap.get(e.uid);r&&(r.getRange=n)}))}function c(t,e){for(var n=l(t).coordSysRecordMap,r=n.keys(),i=0;in["type_"+e]&&(e=o),r=r&&i.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(s.controlType,s.opt),n.setPointerChecker(t.containsPoint),i.createOrUpdate(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else h(o,t)}))}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"pathToBezierCurves",(function(){return a})),n.d(e,"pathToPolygons",(function(){return l}));var r=n(47),i=n(138).default.CMD;function o(t,e){return Math.abs(t-e)<1e-5}function a(t){var e,n,r,a,s,l=t.data,u=t.len(),c=[],h=0,d=0,f=0,p=0;function g(t,n){e&&e.length>2&&c.push(e),e=[t,n]}function v(t,n,r,i){o(t,r)&&o(n,i)||e.push(t,n,r,i,r,i)}function m(t,n,r,i,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nE:A2&&c.push(e),c}function s(t,e,n,i,a,l,u,c,h,d){if(o(t,n)&&o(e,i)&&o(a,u)&&o(l,c))h.push(u,c);else{var f=2/d,p=f*f,g=u-t,v=c-e,m=Math.sqrt(g*g+v*v);g/=m,v/=m;var y=n-t,b=i-e,_=a-u,x=l-c,w=y*y+b*b,O=_*_+x*x;if(w=0&&O-C*C=0)h.push(u,c);else{var E=[],T=[];Object(r.cubicSubdivide)(t,n,a,u,.5,E),Object(r.cubicSubdivide)(e,i,l,c,.5,T),s(E[0],T[0],E[1],T[1],E[2],T[2],E[3],T[3],h,d),s(E[4],T[4],E[5],T[5],E[6],T[6],E[7],T[7],h,d)}}}}function l(t,e){var n=a(t),r=[];e=e||1;for(var i=0;i200&&(c=a/10);for(var h=1/c,d=h/10,f=0;f<=c;f++){var p=f*h,g=[o.apply(null,t.concat([p])),o.apply(null,e.concat([p]))];(b=Object(r.distance)(u[0],u[1],g[0],g[1]))=0&&b1){var o=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,Object(r.__spreadArray)([e],Object(r.__read)(o),!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return f}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(226),u=n(305);function c(t){var e=t.chart,n=t.options,o=n.data,u=n.areaStyle,c=n.color,h=n.point,d=n.line,f=n.isPercent,p=n.xField,g=n.yField,v=n.tooltip,m=n.seriesField,y=n.startOnZero,b=null==h?void 0:h.state,_=Object(l.getDataWhetherPercentage)(o,g,p,g,f);e.data(_);var x=f?Object(r.__assign)({formatter:function(t){return{name:t[m]||t[p],value:(100*Number(t[g])).toFixed(2)+"%"}}},v):v,w=Object(a.deepAssign)({},t,{options:{area:{color:c,style:u},point:h&&Object(r.__assign)({color:c},h),tooltip:x,label:void 0,args:{startOnZero:y}}}),O={chart:e,options:Object(a.deepAssign)({line:{size:2}},Object(i.omit)(n,["state"]),{line:d&&Object(r.__assign)({color:c},d),sizeField:m,state:null==d?void 0:d.state,tooltip:!1,label:void 0,args:{startOnZero:y}})},S=Object(a.deepAssign)({},w,{options:{tooltip:!1,state:b}});return Object(s.area)(w),Object(s.line)(O),Object(s.point)(S),t}function h(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,s=Object(a.findGeometry)(e,"area");if(i){var l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(r.__assign)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.transformLabel)(u))})}else s.label(!1);return t}function d(t){var e=t.chart,n=t.options,r=n.isStack,o=n.isPercent,a=n.seriesField;return(o||r)&&a&&Object(i.each)(e.geometries,(function(t){t.adjust("stack")})),t}function f(t){return Object(a.flow)(o.theme,Object(o.pattern)("areaStyle"),Object(o.transformations)("rect"),c,u.meta,d,u.axis,u.legend,o.tooltip,h,o.slider,Object(o.annotation)(),o.interaction,o.animation,o.limitInPlot)(t)}n.d(e,"meta",(function(){return u.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"geometry",(function(){return h})),n.d(e,"adaptor",(function(){return d}));var r=n(2),i=n(9),o=n(4),a=n(271);function s(t){var e=t.options,n=e.xField,i=e.yField,o=e.xAxis,a=e.yAxis,s={left:"bottom",right:"top",top:"left",bottom:"right"},l=!1!==a&&Object(r.__assign)({position:s[(null==a?void 0:a.position)||"left"]},a),u=!1!==o&&Object(r.__assign)({position:s[(null==o?void 0:o.position)||"bottom"]},o);return Object(r.__assign)(Object(r.__assign)({},t),{options:Object(r.__assign)(Object(r.__assign)({},e),{xField:i,yField:n,xAxis:l,yAxis:u})})}function l(t){var e=t.options.label;return e&&!e.position&&(e.position="left",e.layout||(e.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Object(o.deepAssign)({},t,{options:{label:e}})}function u(t){var e=t.options,n=e.seriesField,i=e.isStack,a=e.legend;return n?!1!==a&&(a=Object(r.__assign)({position:i?"top-left":"right-top"},a||{})):a=!1,Object(o.deepAssign)({},t,{options:{legend:a}})}function c(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return Object(o.deepAssign)({},t,{options:{coordinate:n}})}function h(t){var e=t.chart,n=t.options,i=n.barStyle,o=n.barWidthRatio,s=n.minBarWidth,l=n.maxBarWidth,u=n.barBackground;return Object(a.adaptor)({chart:e,options:Object(r.__assign)(Object(r.__assign)({},n),{columnStyle:i,columnWidthRatio:o,minColumnWidth:s,maxColumnWidth:l,columnBackground:u})},!0)}function d(t){return Object(o.flow)(s,l,u,i.tooltip,c,h)(t)}n.d(e,"meta",(function(){return a.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"transformStatisticOptions",(function(){return y})),n.d(e,"pieAnnotation",(function(){return b})),n.d(e,"interaction",(function(){return x})),n.d(e,"adaptor",(function(){return w}));var r=n(2),i=n(1),o=n(9),a=n(102),s=n(34),l=n(243),u=n(275),c=n(4),h=n(713),d=n(375),f=n(820);function p(t){var e=t.chart,n=t.options,i=n.data,o=n.angleField,a=n.colorField,l=n.color,u=n.pieStyle,h=Object(c.processIllegalData)(i,o);if(Object(d.isAllZero)(h,o)){h=h.map((function(t){var e;return Object(r.__assign)(Object(r.__assign)({},t),((e={}).$$percentage$$=1/h.length,e))})),e.data(h);var f=Object(c.deepAssign)({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:a,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(s.interval)(f)}else{e.data(h);f=Object(c.deepAssign)({},t,{options:{xField:"1",yField:o,seriesField:a,isStack:!0,interval:{color:l,style:u},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(s.interval)(f)}return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=Object(c.deepAssign)({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function m(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,s=n.angleField,l=e.geometries[0];if(o){var u=o.callback,h=Object(r.__rest)(o,["callback"]),f=Object(c.transformLabel)(h);if(f.content){var p=f.content;f.content=function(t,n,o){var l=t[a],u=t[s],h=e.getScaleByField(s),d=null==h?void 0:h.scale(u);return Object(i.isFunction)(p)?p(Object(r.__assign)(Object(r.__assign)({},t),{percent:d}),n,o):Object(i.isString)(p)?Object(c.template)(p,{value:u,name:l,percentage:Object(i.isNumber)(d)&&!Object(i.isNil)(u)?(100*d).toFixed(2)+"%":null}):p}}var g=f.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[f.type]:"pie-outer",v=f.layout?Object(i.isArray)(f.layout)?f.layout:[f.layout]:[];f.layout=(g?[{type:g}]:[]).concat(v),l.label({fields:a?[s,a]:[s],callback:u,cfg:Object(r.__assign)(Object(r.__assign)({},f),{offset:Object(d.adaptOffset)(f.type,f.offset),type:"pie"})})}else l.label(!1);return t}function y(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,o=t.colorField,a=t.meta,s=t.locale,l=Object(u.getLocale)(s);if(e&&n){var f=Object(c.deepAssign)({},h.DEFAULT_OPTIONS.statistic,n),p=f.title,g=f.content;return!1!==p&&(p=Object(c.deepAssign)({},{formatter:function(t){var e=t?t[o]:Object(i.isNil)(p.content)?l.get(["statistic","total"]):p.content;return(Object(i.get)(a,[o,"formatter"])||function(t){return t})(e)}},p)),!1!==g&&(g=Object(c.deepAssign)({},{formatter:function(t,e){var n=t?t[r]:Object(d.getTotalValue)(e,r),o=Object(i.get)(a,[r,"formatter"])||function(t){return t};return t||Object(i.isNil)(g.content)?o(n):g.content}},g)),Object(c.deepAssign)({},{statistic:{title:p,content:g}},t)}return t}function b(t){var e=t.chart,n=y(t.options),r=n.innerRadius,i=n.statistic;return e.getController("annotation").clear(!0),Object(c.flow)(Object(o.annotation)())(t),r&&i&&Object(c.renderStatistic)(e,{statistic:i,plotType:"pie"}),t}function _(t){var e=t.chart,n=t.options,r=n.tooltip,o=n.colorField,s=n.angleField,l=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Object(c.deepAssign)({},r,{shared:!1})),Object(d.isAllZero)(l,s)){var u=Object(i.get)(r,"fields"),h=Object(i.get)(r,"formatter");Object(i.isEmpty)(Object(i.get)(r,"fields"))&&(u=[o,s],h=h||function(t){return{name:t[o],value:Object(i.toString)(t[s])}}),e.geometries[0].tooltip(u.join("*"),Object(a.getMappingFunction)(u,h))}return t}function x(t){var e=t.chart,n=y(t.options),o=n.interactions,a=n.statistic,s=n.annotations;return Object(i.each)(o,(function(t){var n,o;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var l=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(l=[{trigger:"element:mouseenter",action:f.PIE_STATISTIC+":change",arg:{statistic:a,annotations:s}}]),Object(i.each)(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){l.push(Object(r.__assign)(Object(r.__assign)({},t),{arg:{statistic:a,annotations:s}}))})),e.interaction(t.type,Object(c.deepAssign)({},t.cfg,{start:l}))}else e.interaction(t.type,t.cfg||{})})),t}function w(t){return Object(c.flow)(Object(l.pattern)("pieStyle"),p,g,o.theme,v,o.legend,_,m,o.state,b,x,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return a}));var r=n(2),i=n(15),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(r.__spreadArrays)(e):Object(r.__spreadArrays)(o);return i.Util.transform(n,t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transform",(function(){return l})),n.d(e,"getSize",(function(){return u})),n.d(e,"processImageMask",(function(){return c})),n.d(e,"getFontSizeMapping",(function(){return h})),n.d(e,"getSingleKeyValues",(function(){return d}));var r=n(2),i=n(1),o=n(207),a=n(4),s=n(498);function l(t){var e=t.options,n=t.chart,o=n,a=o.width,l=o.height,c=o.padding,g=o.appendPadding,v=o.ele,m=e.data,y=e.imageMask,b=e.wordField,_=e.weightField,x=e.colorField,w=e.wordStyle,O=e.timeInterval,S=e.random,C=e.spiral,E=e.autoFit,T=void 0===E||E,M=e.placementStrategy;if(!m||!m.length)return[];var A,I=w.fontFamily,j=w.fontWeight,k=w.padding,P=w.fontSize,L=d(m,_),D=[(A=L,Math.min.apply(Math,A)),p(L)],R=m.map((function(t){return{text:t[b],value:t[_],color:t[x],datum:t}})),N={imageMask:y,font:I,fontSize:h(P,D),fontWeight:j,size:u({width:a,height:l,padding:c,appendPadding:g,autoFit:T,container:v}),padding:k,timeInterval:O,random:S,spiral:C,rotate:f(e)};if(Object(i.isFunction)(M)){var F=R.map((function(t,e,i){return Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},t),{hasText:!!t.text,font:Object(s.functor)(N.font)(t,e,i),weight:Object(s.functor)(N.fontWeight)(t,e,i),rotate:Object(s.functor)(N.rotate)(t,e,i),size:Object(s.functor)(N.fontSize)(t,e,i),style:"normal"}),M.call(n,t,e,i))}));return F.push({text:"",value:0,x:0,y:0,opacity:0}),F.push({text:"",value:0,x:N.size[0],y:N.size[1],opacity:0}),F}return Object(s.wordCloud)(R,N)}function u(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,s=t.padding,l=t.appendPadding;if(i){var u=Object(a.getContainerSize)(r);e=u.width,n=u.height}e=e||400,n=n||400;var c=function(t){var e=Object(o.normalPadding)(t.padding),n=Object(o.normalPadding)(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],a=e[2]+n[2],s=e[3]+n[3];return[r,i,a,s]}({padding:s,appendPadding:l}),h=c[0],d=c[1],f=c[2];return[e-(c[3]+d),n-(h+f)]}function c(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(i.isString)(t)){var r=new Image;return r.crossOrigin="anonymous",r.src=t,r.onload=function(){e(r)},void(r.onerror=function(){Object(a.log)(a.LEVEL.ERROR,!1,"image %s load failed !!!",t),n()})}Object(a.log)(a.LEVEL.WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function h(t,e){if(Object(i.isFunction)(t))return t;if(Object(i.isArray)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var o=e[0],a=e[1];return a===o?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(a-o)*(e-o)+n}}return function(){return t}}function d(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"==typeof t&&!isNaN(t)}))}function f(t){var e=function(t){var e=t.wordStyle.rotationSteps;e<1&&(Object(a.log)(a.LEVEL.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1);return{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!Object(i.isArray)(n))return n;var o=n[0],s=n[1],l=1===r?0:(s-o)/(r-1);return function(){return s===o?s:Math.floor(Math.random()*r)*l}}function p(t){return Math.max.apply(Math,t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"WORD_CLOUD_COLOR_FIELD",(function(){return o})),n.d(e,"DEFAULT_OPTIONS",(function(){return a}));var r=n(26),i=n(4),o="color",a=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",o],formatter:function(t){return{name:t.text,value:t.value}}},wordStyle:{fontFamily:"Verdana",fontWeight:"normal",padding:1,fontSize:[12,60],rotation:[0,90],rotationSteps:2,rotateRatio:.5}})},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return c}));var r=n(4),i=n(9),o=n(34),a=n(272);n.d(e,"meta",(function(){return a.meta}));var s=n(227),l=n(166);function u(t){var e=t.chart,n=t.options,i=n.data,a=n.color,u=n.lineStyle,c=n.point,h=null==c?void 0:c.state,d=Object(s.getTinyData)(i);e.data(d);var f=Object(r.deepAssign)({},t,{options:{xField:l.X_FIELD,yField:l.Y_FIELD,line:{color:a,style:u},point:c}}),p=Object(r.deepAssign)({},f,{options:{tooltip:!1,state:h}});return Object(o.line)(f),Object(o.point)(p),e.axis(!1),e.legend(!1),t}function c(t){return Object(r.flow)(u,a.meta,i.theme,i.tooltip,i.animation,Object(i.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return c}));var r=n(9),i=n(4),o=n(34),a=n(166),s=n(227),l=n(272);function u(t){var e=t.chart,n=t.options,r=n.data,l=n.color,u=n.columnStyle,c=n.columnWidthRatio,h=Object(s.getTinyData)(r);e.data(h);var d=Object(i.deepAssign)({},t,{options:{xField:a.X_FIELD,yField:a.Y_FIELD,widthRatio:c,interval:{style:u,color:l}}});return Object(o.interval)(d),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function c(t){return Object(i.flow)(r.theme,Object(r.pattern)("columnStyle"),u,l.meta,r.tooltip,r.animation,Object(r.annotation)())(t)}n.d(e,"meta",(function(){return l.meta}))},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return u})),n.d(e,"adaptor",(function(){return c}));var r=n(2),i=n(1),o=n(4),a=n(9),s=n(470);function l(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function u(t,e){var n=t.chart,a=t.options,s=a.innerRadius,l=a.statistic,u=a.percent,c=a.meta;if(n.getController("annotation").clear(!0),s&&l){var h=Object(i.get)(c,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},d=l.content;d&&(d=Object(o.deepAssign)({},d,{content:Object(i.isNil)(d.content)?h(u):d.content})),Object(o.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},l),{content:d}),plotType:"ring-progress"},{percent:u})}return e&&n.render(!0),t}function c(t){return Object(o.flow)(s.geometry,Object(a.scale)({}),l,u,a.animation,a.theme,Object(a.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return f})),n.d(e,"adaptor",(function(){return v}));var r=n(2),i=n(1),o=n(9),a=n(34),s=n(134),l=n(4),u=n(137),c=n(490);function h(t){var e=t.chart,n=t.options,r=n.percent,o=n.range,h=n.radius,d=n.innerRadius,f=n.startAngle,p=n.endAngle,g=n.axis,v=n.indicator,m=n.gaugeStyle,y=n.type,b=n.meter,_=o.color,x=o.width;if(v){var w=Object(c.getIndicatorData)(r),O=e.createView({id:u.INDICATEOR_VIEW_ID});O.data(w),O.point().position(u.PERCENT+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),O.coordinate("polar",{startAngle:f,endAngle:p,radius:d*h}),O.axis(u.PERCENT,g),O.scale(u.PERCENT,Object(l.pick)(g,s.AXIS_META_CONFIG_KEYS))}var S=Object(c.getRangeData)(r,n.range),C=e.createView({id:u.RANGE_VIEW_ID});C.data(S);var E=Object(i.isString)(_)?[_,u.DEFAULT_COLOR]:_;return Object(a.interval)({chart:C,options:{xField:"1",yField:u.RANGE_VALUE,seriesField:u.RANGE_TYPE,rawFields:[u.PERCENT],isStack:!0,interval:{color:E,style:m,shape:"meter"===y?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:x,maxColumnWidth:x}}).ext.geometry.customInfo({meter:b}),C.coordinate("polar",{innerRadius:d,radius:h,startAngle:f,endAngle:p}).transpose(),t}function d(t){var e;return Object(l.flow)(Object(o.scale)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[u.PERCENT]={},e)))(t)}function f(t,e){var n=t.chart,i=t.options,o=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,u=void 0;s&&(u=Object(l.deepAssign)({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(l.renderGaugeStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},o),{content:u})},{percent:a})}return e&&n.render(!0),t}function p(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(Object(l.deepAssign)({showTitle:!1,showMarkers:!1,containerTpl:'
',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){return(100*Object(i.get)(e,[0,"data",u.PERCENT],0)).toFixed(2)+"%"}},n)):e.tooltip(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){return Object(l.flow)(o.theme,o.animation,h,d,p,f,o.interaction,Object(o.annotation)(),g)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"execPlotAdaptor",(function(){return F}));var r=n(1),i=n(4),o=n(305),a=n(550),s=n(271),l=n(549),u=n(548),c=n(557),h=n(554),d=n(555),f=n(272),p=n(556),g=n(470),v=n(376),m=n(715),y=n(721),b=n(719),_=n(628),x=n(635),w=n(634),O=n(633),S=n(632),C=n(646),E=n(637),T=n(639),M=n(638),A=n(642),I=n(641),j=n(636),k=n(640),P=n(520),L=n(643),D={line:o.adaptor,pie:a.adaptor,column:s.adaptor,bar:l.adaptor,area:u.adaptor,gauge:c.adaptor,"tiny-line":h.adaptor,"tiny-column":d.adaptor,"tiny-area":f.adaptor,"ring-progress":p.adaptor,progress:g.adaptor,scatter:v.adaptor,histogram:m.adaptor,funnel:y.adaptor,stock:b.adaptor},R={line:_.Line,pie:x.Pie,column:O.Column,bar:w.Bar,area:S.Area,gauge:C.Gauge,"tiny-line":E.TinyLine,"tiny-column":M.TinyColumn,"tiny-area":T.TinyArea,"ring-progress":A.RingProgress,progress:I.Progress,scatter:j.Scatter,histogram:k.Histogram,funnel:P.Funnel,stock:L.Stock},N={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function F(t,e,n){var o=R[t];o?(0,D[t])({chart:e,options:Object(i.deepAssign)({},o.getDefaultOptions(),Object(r.get)(N,t,{}),n)}):console.error("could not find "+t+" plot")}},function(t,e,n){"use strict";n.r(e),n.d(e,"atob",(function(){return o})),n.d(e,"btoa",(function(){return a}));var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function i(t){this.message=t}function o(t){var e=String(t).replace(/=+$/,"");if(e.length%4==1)throw new i("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,a="",s=0,l=0;o=e.charAt(l++);~o&&(n=s%4?64*n+o:o,s++%4)?a+=String.fromCharCode(255&n>>(-2*s&6)):0)o=r.indexOf(o);return a}function a(t){for(var e,n,i,o,a="",s=0,l=(t=String(t)).length%3;s255||(i=t.charCodeAt(s++))>255||(o=t.charCodeAt(s++))>255)throw new TypeError("Failed to execute 'btoa' on 'Window': The string to be encoded contains characters outside of the Latin1 range.");a+=r.charAt((e=n<<16|i<<8|o)>>18&63)+r.charAt(e>>12&63)+r.charAt(e>>6&63)+r.charAt(63&e)}return l?a.slice(0,l-3)+"===".substring(l):a}i.prototype=new Error,i.prototype.name="InvalidCharacterError"},function(t,e,n){"use strict";n.r(e),n.d(e,"isMiniAli",(function(){return i}));var r=n(216),i="undefined"!=typeof my&&!!my&&"function"==typeof my.showToast&&!0!==my.isFRM;e.default=i?my.getSystemInfoSync().pixelRatio:r.globalWindow.devicePixelRatio},function(t,e,n){"use strict";n.r(e),n.d(e,"osmLonLat2TileXY",(function(){return a})),n.d(e,"osmTileXY2LonLat",(function(){return s})),n.d(e,"tileToBounds",(function(){return l})),n.d(e,"getTileIndices",(function(){return u})),n.d(e,"getTileWarpXY",(function(){return c}));var r=n(72),i=n.n(r),o=n(411);function a(t,e,n){return[Math.floor((t+180)/360*Math.pow(2,n)),Math.floor((1-Math.log(Math.tan(e*Math.PI/180)+1/Math.cos(e*Math.PI/180))/Math.PI)/2*Math.pow(2,n))]}function s(t,e,n){var r=t/Math.pow(2,n)*360-180,i=Math.PI-2*Math.PI*e/Math.pow(2,n);return[r,180/Math.PI*Math.atan(.5*(Math.exp(i)-Math.exp(-i)))]}var l=function(t,e,n){var r=s(t,e,n),o=i()(r,2),a=o[0],l=o[1],u=s(t+1,e+1,n),c=i()(u,2),h=c[0];return[a,c[1],h,l]};function u(t){var e=t.zoom,n=t.latLonBounds,r=t.maxZoom,s=void 0===r?1/0:r,l=t.minZoom,u=void 0===l?0:l,c=t.zoomOffset,h=void 0===c?0:c,d=t.extent,f=void 0===d?o.DEFAULT_EXTENT:d,p=Math.ceil(e)+h;ps&&(p=s);for(var g=i()(n,4),v=g[0],m=g[1],y=g[2],b=g[3],_=[Math.max(v,f[0]),Math.max(m,f[1]),Math.min(y,f[2]),Math.min(b,f[3])],x=[],w=a(_[0],_[1],p),O=i()(w,2),S=O[0],C=O[1],E=a(_[2],_[3],p),T=i()(E,2),M=T[0],A=T[1],I=S;I<=M;I++)for(var j=A;j<=C;j++)x.push({x:I,y:j,z:p});return x}var c=function(t,e,n){var r=Math.pow(2,n),i=t;return i<0?i+=r:i>r-1&&(i%=r),{warpX:i,warpY:e}}},function(t,e,n){"use strict";n.r(e);var r=n(1226);n.d(e,"Map",(function(){return r.Map}));var i=n(1237);n.d(e,"EarthMap",(function(){return i.EarthMap}))},function(t,e,n){"use strict";function r(t,e){for(var n={},r=0;r=0}function b(t,e,n){var r="__mOriginal_"+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):i.apply(this,e),a&&a.apply(this,e),t}}function _(t,e){var n="__mOriginal_"+e;t[n]&&(t[e]=t[n],t[n]=null)}function x(t,e){for(var n=0;n0)for(var S=r/n,C=-r/2;C<=r/2;C+=S){var E=Math.sin(C),T=Math.cos(C),M=0;for(w=0;w0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function C(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(o.map)(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}));return Object(o.map)(a,(function(o,a){return{cp:o,z:S(o[0],o[1],e,n,r,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function E(t){return Object(u.split)(t.path,t.count)}function T(t,e,n){var r=[];!function t(e){for(var n=0;n0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,d=e/2,f=0;fO?w:O,A=h(null,[["t",-_,-x],["r",-E],["s",1/(w>O?1:w/O),1/(w>O?O/w:1)]]);s.transformMat3(T,T,A),a=Object(c.default)(0,0,M,S,C,e,T[0],T[1])}if(a)break}}return a}},i.PathUtil)},function(t,e,n){"use strict";n.r(e),n.d(e,"getNormalizedValue",(function(){return i}));var r=n(760);function i(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?Object(r.getMedian)(e.values.map((function(t,e){return e}))):Object(r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:Object(r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return l})),n.d(e,"resolvePaddingForCircle",(function(){return u}));var r=n(2),i=n(1691),o=n(4),a=n(360),s=n(207);function l(t){var e=t.data,n=t.hierarchyConfig,s=t.rawFields,l=void 0===s?[]:s,u=t.enableDrillDown,c=Object(i.pack)(e,Object(r.__assign)(Object(r.__assign)({},n),{field:"value",as:["x","y","r"]})),h=[];return c.forEach((function(t){for(var e,i=t.data.name,s=Object(r.__assign)({},t);s.depth>1;)i=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+i,s=s.parent;if(u&&t.depth>2)return null;var c=Object(o.deepAssign)({},t.data,Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(o.pick)(t.data,l)),{path:i}),t));c.ext=n,c[a.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:n,rawFields:l,enableDrillDown:u},h.push(c)})),h}function u(t,e,n){var r=Object(s.resolveAllPadding)([t,e]),i=r[0],o=r[1],a=r[2],l=r[3],u=n.width-(l+o),c=n.height-(i+a),h=Math.min(u,c),d=(u-h)/2,f=(c-h)/2;return{finalPadding:[i+f,o+d,a+f,l+d],finalSize:h<0?0:h}}},function(t,e,n){"use strict";n.r(e);var r=n(1233);n.d(e,"TouchPanHandler",(function(){return r.default}));var i=n(1234);n.d(e,"TouchPitchHandler",(function(){return i.default}));var o=n(1235);n.d(e,"TouchRotateHandler",(function(){return o.default}));var a=n(1236);n.d(e,"TouchZoomHandler",(function(){return a.default}))},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(200),o=(r=i)&&r.__esModule?r:{default:r},a=n(904);var s=o.default.prototype.$isServer?function(){}:n(1813),l=function(t){return t.stopPropagation()};e.default={props:{transformOrigin:{type:[Boolean,String],default:!0},placement:{type:String,default:"bottom"},boundariesPadding:{type:Number,default:5},reference:{},popper:{},offset:{default:0},value:Boolean,visibleArrow:Boolean,arrowOffset:{type:Number,default:35},appendToBody:{type:Boolean,default:!0},popperOptions:{type:Object,default:function(){return{gpuAcceleration:!1}}}},data:function(){return{showPopper:!1,currentPlacement:""}},watch:{value:{immediate:!0,handler:function(t){this.showPopper=t,this.$emit("input",t)}},showPopper:function(t){this.disabled||(t?this.updatePopper():this.destroyPopper(),this.$emit("input",t))}},methods:{createPopper:function(){var t=this;if(!this.$isServer&&(this.currentPlacement=this.currentPlacement||this.placement,/^(top|bottom|left|right)(-start|-end)?$/g.test(this.currentPlacement))){var e=this.popperOptions,n=this.popperElm=this.popperElm||this.popper||this.$refs.popper,r=this.referenceElm=this.referenceElm||this.reference||this.$refs.reference;!r&&this.$slots.reference&&this.$slots.reference[0]&&(r=this.referenceElm=this.$slots.reference[0].elm),n&&r&&(this.visibleArrow&&this.appendArrow(n),this.appendToBody&&document.body.appendChild(this.popperElm),this.popperJS&&this.popperJS.destroy&&this.popperJS.destroy(),e.placement=this.currentPlacement,e.offset=this.offset,e.arrowOffset=this.arrowOffset,this.popperJS=new s(r,n,e),this.popperJS.onCreate((function(e){t.$emit("created",t),t.resetTransformOrigin(),t.$nextTick(t.updatePopper)})),"function"==typeof e.onUpdate&&this.popperJS.onUpdate(e.onUpdate),this.popperJS._popper.style.zIndex=a.PopupManager.nextZIndex(),this.popperElm.addEventListener("click",l))}},updatePopper:function(){var t=this.popperJS;t?(t.update(),t._popper&&(t._popper.style.zIndex=a.PopupManager.nextZIndex())):this.createPopper()},doDestroy:function(t){!this.popperJS||this.showPopper&&!t||(this.popperJS.destroy(),this.popperJS=null)},destroyPopper:function(){this.popperJS&&this.resetTransformOrigin()},resetTransformOrigin:function(){if(this.transformOrigin){var t=this.popperJS._popper.getAttribute("x-placement").split("-")[0],e={top:"bottom",bottom:"top",left:"right",right:"left"}[t];this.popperJS._popper.style.transformOrigin="string"==typeof this.transformOrigin?this.transformOrigin:["top","bottom"].indexOf(t)>-1?"center "+e:e+" center"}},appendArrow:function(t){var e=void 0;if(!this.appended){for(var n in this.appended=!0,t.attributes)if(/^_v-/.test(t.attributes[n].name)){e=t.attributes[n].name;break}var r=document.createElement("div");e&&r.setAttribute(e,""),r.setAttribute("x-arrow",""),r.className="popper__arrow",t.appendChild(r)}}},beforeDestroy:function(){this.doDestroy(!0),this.popperElm&&this.popperElm.parentNode===document.body&&(this.popperElm.removeEventListener("click",l),document.body.removeChild(this.popperElm))},deactivated:function(){this.$options.beforeDestroy[0].call(this)}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){for(var e=1,n=arguments.length;e1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";function r(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return a}));var r=n(619),i=/[a-z]/;function o(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function a(t){var e=Object(r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,a=0;a=0){n=!0;break}}if(!n)return e;var l=[],u=0,c=0,h=0,d=0,f=0,p=e[0];"M"!==p[0]&&"m"!==p[0]||(h=u=+p[1],d=c=+p[2],f++,l[0]=["M",u,c]);a=f;for(var g=e.length;a2&&(n.push([r].concat(o.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===o.length&&n.push([r,o[0]]),"r"===s)n.push([r].concat(o));else for(;o.length>=e[s]&&(n.push([r].concat(o.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=function(t,e,n){return t>=e&&t<=n};function i(t,e,n,i){var o=n.x-t.x,a=n.y-t.y,s=e.x-t.x,l=e.y-t.y,u=i.x-n.x,c=i.y-n.y,h=s*c-l*u,d=null;if(h*h>.001*(s*s+l*l)*(u*u+c*c)){var f=(o*c-a*u)/h,p=(o*l-a*s)/h;r(f,0,1)&&r(p,0,1)&&(d={x:t.x+f*s,y:t.y+f*l})}return d}},function(t,e,n){"use strict";n.r(e),n.d(e,"propagationDelegate",(function(){return i}));var r=n(79);function i(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},function(t,e,n){"use strict";n.r(e);var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(89),a=n(82),s=n(69),l=n(359),u=n(116),c=n(203),h=n(256);var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(r.__extends)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var o=this.getTitle(n),a={x:n[0].x,y:n[0].y};e.emit("tooltip:show",h.default.fromData(e,"tooltip:show",Object(r.__assign)({items:n,title:o},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,d=s.showContent,f=s.marker,p=this.items,g=this.title;if(Object(i.isEqual)(g,o)&&Object(i.isEqual)(p,n)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",h.default.fromData(e,"tooltip:change",Object(r.__assign)({items:n,title:o},t))),(Object(i.isFunction)(d)?d(n):d)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(i.mix)({},s,{items:this.getItemsAfterProcess(n),title:o},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=o,c){var v=Object(i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(v?t:a,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",h.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,o,a,s,l,u=this.findItemsFromView(this.view,t);if(u.length){u=Object(i.flatten)(u);try{for(var c=Object(r.__values)(u),h=c.next();!h.done;h=c.next()){var d=h.value;try{for(var f=(o=void 0,Object(r.__values)(d)),p=f.next();!p.done;p=f.next()){var g=p.value,v=g.mappingData,m=v.x,y=v.y;g.x=Object(i.isArray)(m)?m[m.length-1]:m,g.y=Object(i.isArray)(y)?y[y.length-1]:y}}catch(t){o={error:t}}finally{try{p&&!p.done&&(a=f.return)&&a.call(f)}finally{if(o)throw o.error}}}}catch(t){e={error:t}}finally{try{h&&!h.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&u.length>1){var b=u[0],_=Math.abs(t.y-b[0].y);try{for(var x=Object(r.__values)(u),w=x.next();!w.done;w=x.next()){var O=w.value,S=Math.abs(t.y-O[0].y);S<=_&&(b=O,_=S)}}catch(t){s={error:t}}finally{try{w&&!w.done&&(l=x.return)&&l.call(x)}finally{if(s)throw s.error}}u=[b]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r'+r+"":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new o.HtmlTooltip(Object(r.__assign)(Object(r.__assign)({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,o=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=Object(r.__values)(t),c=u.next();!c.done;c=u.next()){var h=c.value,d=h.x,f=h.y;if(l||(null==o?void 0:o.getClip())){var p=Object(a.getCoordinateClipCfg)(s.getCoordinate()),g=p.type,v=p.attrs;null==o||o.setClip({type:g,attrs:v})}else null==o||o.setClip(void 0);var m=Object(r.__assign)(Object(r.__assign)({fill:h.color,symbol:"circle",shadowColor:h.color},e),{x:d,y:f});o.addShape("marker",{attrs:m})}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(Object(a.isPointInCoordinate)(n,t)){var r,l;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y});else{var u=Object(a.getAngleByPoint)(n,t),c=n.getCenter(),h=n.getRadius();l=Object(s.polarToCartesian)(c.x,c.y,h,u),r=c}var d=Object(i.deepMix)({start:r,end:l,container:this.getTooltipCrosshairsGroup()},Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete d.type;var f=this.xCrosshair;f?f.update(d):(f=new o.Crosshair.Line(d)).init(),f.render(),f.show(),this.xCrosshair=f}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(Object(a.isPointInCoordinate)(n,t)){var r,s;if(n.isRect){var l=void 0,u=void 0;n.isTransposed?(l={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y}):(l={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}),r={start:l,end:u},s="Line"}else r={center:n.getCenter(),radius:Object(a.getDistanceToCenter)(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=Object(i.deepMix)({container:this.getTooltipCrosshairsGroup()},r,Object(i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new o.Crosshair[s](r)).init():c.update(r):(c=new o.Crosshair[s](r)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(i.get)(n,["crosshairs","text"]),o=Object(i.get)(n,["crosshairs","follow"]),a=this.items;if(r){var s=this.getViewWithGeometry(this.view),l=a[0],u=s.getXScale(),c=s.getYScales()[0],h=void 0,d=void 0;if(o){var f=this.view.getCoordinate().invert(e);h=u.invert(f.x),d=c.invert(f.y)}else h=l.data[u.field],d=l.data[c.field];var p="x"===t?h:d;return Object(i.isFunction)(r)?r=r(t,p,a,e):r.content=p,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var o=this.getTooltipCfg(),a=Object(l.findItemsFromView)(t,e,o);try{for(var s=Object(r.__values)(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;a=a.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=d},function(t,e,n){"use strict";n.r(e),n.d(e,"getPath",(function(){return h}));var r=n(1),i=n(38),o=n(194),a=n(68),s=n(172),l=n(462),u=n(698);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=Object(s.getSplinePath)(t,!1,r)):(o=Object(s.getLinePath)(t,!1),e&&o.push(["Z"])),o);var o}function h(t,e,n,i,o,a){if(t.length){var s=t[0];return Object(r.isArray)(s.y)?function(t,e,n,i,o,a){var s=[],u=[];Object(r.each)(t,(function(t){var e=Object(l.splitPoints)(t);s.push(e[1]),u.push(e[0])}));var h=c(s,e,i,o,a),d=c(u,e,i,o,a);return n?h:h.concat(d)}(t,e,n,i,o,a):c(t,e,i,o,a)}return[]}var d=Object(i.registerShapeFactory)("line",{defaultShapeType:"line"});Object(r.each)(["line","dot","dash","smooth"],(function(t){Object(i.registerShape)("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,l=s.start,u=s.end;r=[[l.x,u.y],[u.x,l.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,l=t.showSinglePoint,u=Object(a.getStyle)(t,!0,!1,"lineWidth"),c=Object(o.getPathPoints)(t.points,i,l),d=[],f=0,p=c.length;f(a*=a)?(r=(u+a-i)/(2*u),o=Math.sqrt(Math.max(0,a/u-r*r)),n.x=t.x-r*s-o*l,n.y=t.y-r*l+o*s):(r=(u+i-a)/(2*u),o=Math.sqrt(Math.max(0,i/u-r*r)),n.x=e.x+r*s-o*l,n.y=e.y+r*l+o*s)):(n.x=e.x+n.r,n.y=e.y)}function a(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function s(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function l(t){this._=t,this.next=null,this.previous=null}function u(t){if(!(c=(t=Object(r.default)(t)).length))return 0;var e,n,u,c,h,d,f,p,g,v,m;if((e=t[0]).x=0,e.y=0,!(c>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(c>2))return e.r+n.r;o(n,e,u=t[2]),e=new l(e),n=new l(n),u=new l(u),e.next=u.previous=n,n.next=e.previous=u,u.next=n.previous=e;t:for(f=3;f0&&n*n>r*r+i*i}function s(t,e){for(var n=0;n=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),_=void 0,x=void 0,w=void 0;y&&this.canBeInsideText()?(_=n.insideFill,x=n.insideStroke,null!=_&&"auto"!==_||(_=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(_),w=!0)):(_=n.outsideFill,x=n.outsideStroke,null!=_&&"auto"!==_||(_=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(_),w=!0)),(_=_||"#000")===b.fill&&x===b.stroke&&w===b.autoStroke&&o===b.align&&a===b.verticalAlign||(l=!0,b.fill=_,b.stroke=x,b.autoStroke=w,b.align=o,b.verticalAlign=a,e.setDefaultTextStyle(b)),e.__dirty|=h.REDRAW_BIT,l&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?u.LIGHT_LABEL_COLOR:u.DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Object(c.parse)(e);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(c.stringify)(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(l.extend)(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Object(l.isObject)(t))for(var n=t,r=Object(l.keys)(n),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(d,!1,t)},t.prototype.useState=function(t,e,n,r){var i=t===d;if(this.hasState()||!i){var o=this.currentStates,a=this.stateTransition;if(!(Object(l.indexOf)(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var u=!!(s&&s.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var c=this._textContent,f=this._textGuide;return c&&c.useState(t,e,n,u),f&&f.useState(t,e,n,u),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT),s}Object(l.logError)("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var r=[],i=this.currentStates,o=t.length,a=o===i.length;if(a)for(var s=0;s0,p);var g=this._textContent,v=this._textGuide;g&&g.useStates(t,e,d),v&&v.useStates(t,e,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h.REDRAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var r=this.currentStates.slice(),i=Object(l.indexOf)(r,t),o=Object(l.indexOf)(r,e)>=0;i>=0?o?r.splice(i,1):r[i]=e:n&&!o&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},r=0;r=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,r=n.length,i=[],o=0;o0||a.force&&!u.length){var E,T=void 0,M=void 0,A=void 0;if(c){M={},g&&(T={});for(S=0;S0&&n.during&&a[0].during((function(t,e){n.during(e)}));for(var p=0;pe+c&&u>i+c&&u>a+c||ut+c&&l>n+c&&l>o+c||l=0;a--)r[a]&&!l.isComponentIdInternal(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,t[n]=r}})),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var r=n[e||0];if(r)return r;if(null==e)for(var i=0;i=2){if(i){var a=Object(r.default)(o,i,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var u=a[2*l],c=a[2*l+1],h=o[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],h[0],h[1])}}else{t.moveTo(o[0][0],o[0][1]);l=1;for(var d=o.length;l1||v&&!p){var y=function(t,e,n,a,s){var l=e.getData(),u=Object(r.reduce)(t,(function(t,e,n){var r=l.getDimensionInfo(n);return t||r&&!1!==r.tooltip&&null!=r.displayName}),!1),c=[],h=[],d=[];function f(t,e){var n=l.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(u?d.push(Object(i.createTooltipMarkup)("nameValue",{markerType:"subItem",markerColor:s,name:n.displayName,value:t,valueType:n.type})):(c.push(t),h.push(n.type)))}return a.length?Object(r.each)(a,(function(t){f(Object(o.retrieveRawValue)(l,n,t),t)})):Object(r.each)(t,f),{inlineValues:c,inlineValueTypes:h,blocks:d}}(g,u,c,f,m);e=y.inlineValues,n=y.inlineValueTypes,s=y.blocks,l=y.inlineValues[0]}else if(p){var b=d.getDimensionInfo(f[0]);l=e=Object(o.retrieveRawValue)(d,c,f[0]),n=b.type}else l=e=v?g[0]:g;var _=Object(a.isNameSpecified)(u),x=_&&u.name||"",w=d.getName(c),O=h?x:w;return Object(i.createTooltipMarkup)("section",{header:x,noHeader:h||!_,sortParam:l,blocks:[Object(i.createTooltipMarkup)("nameValue",{markerType:"item",markerColor:m,name:O,noName:!Object(r.trim)(O),value:e,valueType:n})].concat(s||[])})}},function(t,e,n){"use strict";n.r(e),n.d(e,"ScaleRawExtentInfo",(function(){return o})),n.d(e,"ensureScaleRawExtentInfo",(function(){return l})),n.d(e,"parseAxisModelMinMax",(function(){return u}));var r=n(0),i=n(55),o=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,f=this._determinedMax;return null!=d&&(s=d,u=!0),null!=f&&(l=f,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[s[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[a[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),a={min:"_determinedMin",max:"_determinedMax"},s={min:"_dataMin",max:"_dataMax"};function l(t,e,n){var r=t.rawExtentInfo;return r||(r=new o(t,e,n),t.rawExtentInfo=r,r)}function u(t,e){return null==e?null:Object(r.eqNaN)(e)?NaN:t.parse(e)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(6),o=n(43),a=n(113),s=n(209),l=n(211),u=n(0),c=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return Object(r.__extends)(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Object(o.format)(t.value,o.fullLeveledFormatter[Object(o.getDefaultFormatPrecisionOfInterval)(Object(o.getPrimaryTimeUnit)(this._minLevelUnit))]||o.fullLeveledFormatter.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var r=this.getSetting("useUTC"),i=this.getSetting("locale");return Object(o.leveledFormat)(t,e,n,i,r)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var r=this.getSetting("useUTC"),a=function(t,e,n,r){var a=o.timeUnits,s=0;function l(t,e,n,i,o,a,s){for(var l=new Date(e),u=e,c=l[i]();u1&&0===h&&s.unshift({value:s[0].value-_})}}for(h=0;h=r[0]&&E<=r[1]&&b++)}var T=(r[1]-r[0])/e;if(b>1.5*T&&_>T/1.5)break;if(h.push(S),b>T||t===a[x])break}y=[]}}}0;var M=Object(u.filter)(Object(u.map)(h,(function(t){return Object(u.filter)(t,(function(t){return t.value>=r[0]&&t.value<=r[1]&&!t.notAdd}))})),(function(t){return t.length>0})),A=[],I=M.length-1;for(x=0;xn&&(this._approxInterval=n);var o=h.length,a=Math.min(function(t,e,n,r){for(;n>>1;t[i][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function f(t){return(t/=30*o.ONE_DAY)>6?6:t>3?3:t>2?2:1}function p(t){return(t/=o.ONE_HOUR)>12?12:t>6?6:t>3.5?4:t>2?2:1}function g(t,e){return(t/=e?o.ONE_MINUTE:o.ONE_SECOND)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function v(t){return i.nice(t,!0)}function m(t,e,n){var r=new Date(t);switch(Object(o.getPrimaryTimeUnit)(e)){case"year":case"month":r[Object(o.monthSetterName)(n)](0);case"day":r[Object(o.dateSetterName)(n)](1);case"hour":r[Object(o.hoursSetterName)(n)](0);case"minute":r[Object(o.minutesSetterName)(n)](0);case"second":r[Object(o.secondsSetterName)(n)](0),r[Object(o.millisecondsSetterName)(n)](0)}return r.getTime()}l.default.registerClass(c),e.default=c},function(t,e,n){"use strict";n.r(e);var r=n(76),i=Math.sin,o=Math.cos,a=Math.PI,s=2*Math.PI,l=180/a,u=function(){function t(){}return t.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,r,i,o){this._add("C",t,e,n,r,i,o)},t.prototype.quadraticCurveTo=function(t,e,n,r){this._add("Q",t,e,n,r)},t.prototype.arc=function(t,e,n,r,i,o){this.ellipse(t,e,n,n,0,r,i,o)},t.prototype.ellipse=function(t,e,n,u,c,h,d,f){var p=d-h,g=!f,v=Math.abs(p),m=Object(r.isAroundZero)(v-s)||(g?p>=s:-p>=s),y=p>0?p%s:p%s+s,b=!1;b=!!m||!Object(r.isAroundZero)(v)&&y>=a==!!g;var _=t+n*o(h),x=e+u*i(h);this._start&&this._add("M",_,x);var w=Math.round(c*l);if(m){var O=1/this._p,S=(g?1:-1)*(s-O);this._add("A",n,u,w,1,+g,t+n*o(h+S),e+u*i(h+S)),O>.01&&this._add("A",n,u,w,0,+g,_,x)}else{var C=t+n*o(d),E=e+u*i(d);this._add("A",n,u,w,+b,+g,C,E)}},t.prototype.rect=function(t,e,n,r){this._add("M",t,e),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,r,i,o,a,s,l){for(var u=[],c=this._p,h=1;he&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===l.type&&s){var c=l.getBaseAxis(),h=l.getOtherAxis(c),d=c.getExtent(),f=n.getDevicePixelRatio(),p=Math.abs(d[1]-d[0])*(f||1),g=Math.round(u/p);if(isFinite(g)&&g>1){"lttb"===s&&t.setData(a.lttbDownSample(a.mapDimension(h.dim),1/g));var v=void 0;Object(r.isString)(s)?v=i[s]:Object(r.isFunction)(s)&&(v=s),v&&t.setData(a.downSample(a.mapDimension(h.dim),1/g,v,o))}}}}}},function(t,e,n){"use strict";n.r(e),n.d(e,"getBasicPieLayout",(function(){return u})),n.d(e,"default",(function(){return c}));var r=n(6),i=n(33),o=n(0),a=2*Math.PI,s=Math.PI/180;function l(t,e){return i.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function u(t,e){var n=l(t,e),i=t.get("center"),a=t.get("radius");o.isArray(a)||(a=[0,a]),o.isArray(i)||(i=[i,i]);var s=Object(r.parsePercent)(n.width,e.getWidth()),u=Object(r.parsePercent)(n.height,e.getHeight()),c=Math.min(s,u);return{cx:Object(r.parsePercent)(i[0],s)+n.x,cy:Object(r.parsePercent)(i[1],u)+n.y,r0:Object(r.parsePercent)(a[0],c/2),r:Object(r.parsePercent)(a[1],c/2)}}function c(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),o=l(t,n),c=u(t,n),h=c.cx,d=c.cy,f=c.r,p=c.r0,g=-t.get("startAngle")*s,v=t.get("minAngle")*s,m=0;e.each(i,(function(t){!isNaN(t)&&m++}));var y=e.getSum(i),b=Math.PI/(y||m)*2,_=t.get("clockwise"),x=t.get("roseType"),w=t.get("stillShowZeroSum"),O=e.getDataExtent(i);O[0]=0;var S=a,C=0,E=g,T=_?1:-1;if(e.setLayout({viewRect:o,r:f}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:h,cy:d,r0:p,r:x?NaN:f});else{(i="area"!==x?0===y&&w?b:t*b:a/m)p[0]&&isFinite(_)&&isFinite(p[0]);)b=Object(a.increaseInterval)(b),_=p[1]-b*h;else{t.getTicks().length-1>h&&(b=Object(a.increaseInterval)(b));var w=b*h;x=Math.ceil(p[1]/b)*b,(_=Object(r.round)(x-w))<0&&p[0]>=0?(_=0,x=Object(r.round)(w)):x>0&&p[1]<=0&&(x=0,_=-Object(r.round)(w))}var O=(u[0].value-c[0].value)/d,S=(u[h].value-c[h].value)/d;l.setExtent.call(t,_+b*O,x+b*S),l.setInterval.call(t,b),(O||S)&&l.setNiceExtent.call(t,_+b,x-b)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},o=r.merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},i),a=r.merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},i),s=r.merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},a),l=r.defaults({logBase:10},a);e.default={category:o,value:a,time:s,log:l}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(753),o=n(33),a=n(6),s=n(195),l=n(20);function u(t,e){var n=t.get("boundingCoords");if(null!=n){var r=n[0],i=n[1];if(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])){var s=this.projection;if(s){var u=r[0],c=r[1],h=i[0],d=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var f=function(t,e,n,o){for(var a=n-t,u=o-e,c=0;c<=100;c++){var h=c/100,d=s.project([t+a*h,e+u*h]);l.min(r,r,d),l.max(i,i,d)}};f(u,c,h,c),f(h,c,h,d),f(h,d,u,d),f(u,d,h,c)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}else 0}var p,g,v,m=this.getBoundingRect(),y=t.get("layoutCenter"),b=t.get("layoutSize"),_=e.getWidth(),x=e.getHeight(),w=m.width/m.height*this.aspectScale,O=!1;if(y&&b&&(p=[a.parsePercent(y[0],_),a.parsePercent(y[1],x)],g=a.parsePercent(b,Math.min(_,x)),isNaN(p[0])||isNaN(p[1])||isNaN(g)||(O=!0)),O)v={},w>1?(v.width=g,v.height=g/w):(v.height=g,v.width=g*w),v.y=p[1]-v.height/2,v.x=p[0]-v.width/2;else{var S=t.getBoxLayoutParams();S.aspect=w,v=o.getLayoutRect(S,{width:_,height:x})}this.setViewRect(v.x,v.y,v.width,v.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var c=new(function(){function t(){this.dimensions=i.geo2DDimensions}return t.prototype.create=function(t,e){var n=[];function o(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,a){var s=t.get("map"),l=new i.default(s+a,s,r.extend({nameMap:t.get("nameMap")},o(t)));l.zoomLimit=t.get("scaleLimit"),n.push(l),t.coordinateSystem=l,l.model=t,l.resize=u,l.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var a={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}})),r.each(a,(function(t,a){var s=r.map(t,(function(t){return t.get("nameMap")})),l=new i.default(a,a,r.extend({nameMap:r.mergeAll(s)},o(t[0])));l.zoomLimit=r.retrieve.apply(null,r.map(t,(function(t){return t.get("scaleLimit")}))),n.push(l),l.resize=u,l.resize(t[0],e),r.each(t,(function(t){t.coordinateSystem=l,function(t,e){r.each(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(l,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var o=(t||[]).slice(),a=r.createHashMap(),l=0;l0,g={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(g):"geoSVG"===s.resourceType&&this._buildSVG(g),this._updateController(t,e,n),this._updateMapSelectHandler(t,u,n,r)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=r.createHashMap(),n=r.createHashMap(),i=this._regionsGroup,o=t.transformInfoRaw,a=t.mapOrGeoModel,l=t.data,d=t.geo.projection,f=d&&d.stream;function p(t,e){return e&&(t=e(t)),t&&[t[0]*o.scaleX+o.x,t[1]*o.scaleY+o.y]}function g(t){for(var e=[],n=!f&&d&&d.project,r=0;r=0)&&(d=i);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Object(v.setLabelStyle)(e,Object(v.getLabelStatesModels)(r),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=e.getTextContent();if(p&&(C(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function j(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Object(m.getECData)(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function k(t,e,n,r,i){t.data||d.setTooltipConfig({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function P(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Object(f.toggleHoverEmphasis)(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&Object(f.enableComponentHighDownFeatures)(e,i,n),a}function L(t,e,n){var i,o=[];function a(){i=[]}function s(){i.length&&(o.push(i),i=[])}var l=e({polygonStart:a,polygonEnd:s,lineStart:a,lineEnd:s,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&l.polygonStart(),r.each(t,(function(t){l.lineStart();for(var e=0;e1;)i=i.parentNode;var o=Object(r.getDecalFromPalette)(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",o)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return h}));var r=n(0),i=n(109),o=n(1340),a=n(671),s=n(240),l=n(273),u=n(148),c=n(10);function h(t,e,n,h,d){for(var f=new o.default(h),p=0;p "+_)),m++)}var x,w=n.get("coordinateSystem");if("cartesian2d"===w||"polar"===w)x=Object(u.default)(t,n);else{var O=l.default.get(w),S=O&&O.dimensions||[];r.indexOf(S,"value")<0&&S.concat(["value"]);var C=Object(s.default)(t,{coordDimensions:S,encodeDefine:n.getEncode()}).dimensions;(x=new i.default(C,n)).initData(t)}var E=new i.default(["value"],n);return E.initData(v,g),d&&d(x,E),Object(a.default)({mainData:x,struct:f,structAttr:"graph",datas:{node:x,edge:E},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}},function(t,e,n){"use strict";n.r(e),n.d(e,"circularLayout",(function(){return u}));var r=n(20),i=n(235),o=n(0),a=n(335),s=Math.PI,l=[];function u(t,e){var n=t.coordinateSystem;if(!n||"view"===n.type){var i=n.getBoundingRect(),s=t.getData(),l=s.graph,u=i.width/2+i.x,h=i.height/2+i.y,d=Math.min(i.width,i.height)/2,f=s.count();s.setLayout({cx:u,cy:h}),f&&(c[e](t,l,s,d,u,h,f),l.eachEdge((function(e,n){var i,s=o.retrieve3(e.getModel().get(["lineStyle","curveness"]),Object(a.getCurvenessForEdge)(e,t,n),0),l=r.clone(e.node1.getLayout()),c=r.clone(e.node2.getLayout()),d=(l[0]+c[0])/2,f=(l[1]+c[1])/2;+s&&(i=[u*(s*=3)+d*(1-s),h*s+f*(1-s)]),e.setLayout([l,c,i])})))}}var c={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=2*Math.PI/(l||a);e.eachNode((function(t){var e=t.getValue("value"),n=u*(l?e:1)/2;s+=n,t.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=n}))},symbolSize:function(t,e,n,r,o,a,u){var c=0;l.length=u;var h=Object(i.getNodeGlobalScale)(t);e.eachNode((function(t){var e=Object(i.getSymbolSize)(t);isNaN(e)&&(e=2),e<0&&(e=0),e*=h;var n=Math.asin(e/2/r);isNaN(n)&&(n=s/2),l[t.dataIndex]=n,c+=2*n}));var d=(2*s-c)/u/2,f=0;e.eachNode((function(t){var e=d+l[t.dataIndex];f+=e,t.setLayout([r*Math.cos(f)+o,r*Math.sin(f)+a]),f+=e}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"WhiskerBoxCommonMixin",(function(){return s}));var r=n(246),i=n(0),o=n(331),a=n(139),s=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,s,l=e.getComponent("xAxis",this.get("xAxisIndex")),u=e.getComponent("yAxis",this.get("yAxisIndex")),c=l.get("type"),h=u.get("type");"category"===c?(t.layout="horizontal",n=l.getOrdinalMeta(),s=!0):"category"===h?(t.layout="vertical",n=u.getOrdinalMeta(),s=!0):t.layout=t.layout||"horizontal";var d=["x","y"],f="horizontal"===t.layout?0:1,p=this._baseAxisDim=d[f],g=d[1-f],v=[l,u],m=v[f].get("type"),y=v[1-f].get("type"),b=t.data;if(b&&s){var _=[];i.each(b,(function(t,e){var n;i.isArray(t)?(n=t.slice(),t.unshift(e)):i.isArray(t.value)?((n=i.extend({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,_.push(n)})),t.data=_}var x=this.defaultValueDimensions,w=[{name:p,type:Object(o.getDimensionTypeByAxis)(m),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:Object(o.getDimensionTypeByAxis)(y),dimsDef:x.slice()}];return Object(r.default)(this,{coordDimensions:w,dimensionsCount:x.length+1,encodeDefaulter:i.curry(a.makeSeriesEncodeForAxisCoordSys,w,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}()},function(t,e,n){"use strict";n.r(e);var r=n(244),i={seriesType:"lines",plan:Object(r.default)(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||s!==this._loop){r.stopAnimation();var c=void 0;c=a.isFunction(u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,s)}this._period=o,this._loop=s}},e.prototype._animateSymbol=function(t,e,n,r){if(e>0){t.__t=0;var i=this,o=t.animate("",r).when(e,{__t:1}).delay(n).during((function(){i._updateSymbolPosition(t)}));r||o.done((function(){i.remove(t)})),o.start()}},e.prototype._getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,r=t.__cp1,i=t.__t,o=[t.x,t.y],a=o.slice(),s=u.quadraticAt,c=u.quadraticDerivativeAt;o[0]=s(e[0],r[0],n[0],i),o[1]=s(e[1],r[1],n[1],i);var h=c(e[0],r[0],n[0],i),d=c(e[1],r[1],n[1],i);t.rotation=-Math.atan2(d,h)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastTe[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&g(e)}};function g(t){return new i.default(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(542),i=n(683),o=n(1462),a=n(1463);function s(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,o.default),t.registerSubTypeDefaulter("legend",(function(){return"plain"})),Object(a.installLegendAction)(t)}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(0),o=n(71),a=n(39),s=n(66),l=n(70),u=n(14),c=n(13),h=n(27),d=n(540),f=n(33),p=n(62),g=n(60),v=i.curry,m=i.each,y=a.default,b=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return Object(r.__extends)(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new y),this.group.add(this._selectorGroup=new y),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var o=t.get("align"),a=t.get("orient");o&&"auto"!==o||(o="right"===t.get("left")&&"vertical"===a?"right":"left");var s=t.get("selector",!0),l=t.get("selectorPosition",!0);!s||l&&"auto"!==l||(l="horizontal"===a?"end":"start"),this.renderInner(o,t,e,n,s,a,l);var u=t.getBoxLayoutParams(),c={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),p=f.getLayoutRect(u,c,h),g=this.layoutInner(t,o,p,r,s,l),v=f.getLayoutRect(i.defaults({width:g.width,height:g.height},u),c,h);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Object(d.makeBackground)(g,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,n,r,a,s,l){var u=this.getContentGroup(),c=i.createHashMap(),h=e.get("selectedMode"),d=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&d.push(t.id)})),m(e.getData(),(function(a,s){var l=a.get("name");if(!this.newlineDisabled&&(""===l||"\n"===l)){var f=new y;return f.newline=!0,void u.add(f)}var p=n.getSeriesByName(l)[0];if(!c.get(l)){if(p){var g=p.getData(),m=g.getVisual("legendLineStyle")||{},b=g.getVisual("legendIcon"),x=g.getVisual("style");this._createItem(p,l,s,a,e,t,m,x,b,h).on("click",v(_,l,null,r,d)).on("mouseover",v(w,p.name,null,r,d)).on("mouseout",v(O,p.name,null,r,d)),c.set(l,!0)}else n.eachRawSeries((function(n){if(!c.get(l)&&n.legendVisualProvider){var u=n.legendVisualProvider;if(!u.containName(l))return;var f=u.indexOfName(l),p=u.getItemVisual(f,"style"),g=u.getItemVisual(f,"legendIcon"),m=Object(o.parse)(p.fill);m&&0===m[3]&&(m[3]=.2,p=i.extend(i.extend({},p),{fill:Object(o.stringify)(m,"rgba")})),this._createItem(n,l,s,a,e,t,{},p,g,h).on("click",v(_,null,l,r,d)).on("mouseover",v(w,null,l,r,d)).on("mouseout",v(O,null,l,r,d)),c.set(l,!0)}}),this);0}}),this),a&&this._createSelector(a,e,r,s,l)},e.prototype._createSelector=function(t,e,n,r,i){var o=this.getSelectorGroup();m(t,(function(t){var r=t.type,i=new s.default({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect"})}});o.add(i);var a=e.getModel("selectorLabel"),l=e.getModel(["emphasis","selectorLabel"]);Object(h.setLabelStyle)(i,{normal:a,emphasis:l},{defaultText:t.title}),Object(c.enableHoverEmphasis)(i)}))},e.prototype._createItem=function(t,e,n,r,o,a,d,f,p,v){var b=t.visualDrawType,_=o.get("itemWidth"),x=o.get("itemHeight"),w=o.isSelected(e),O=r.get("symbolRotate"),S=r.get("symbolKeepAspect"),C=r.get("icon"),E=function(t,e,n,r,i,o){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),m(t,(function(n,r){"inherit"===t[r]&&(t[r]=e[r])}))}var s=e.getModel("itemStyle").getItemStyle(),l=0===t.lastIndexOf("empty",0)?"fill":"stroke";s.decal=r.decal,"inherit"===s.fill&&(s.fill=r[i]);"inherit"===s.stroke&&(s.stroke=r[l]);"inherit"===s.opacity&&(s.opacity=("fill"===i?r:n).opacity);a(s,r);var u=e.getModel("lineStyle"),c=u.getLineStyle();if(a(c,n),"auto"===s.fill&&(s.fill=r.fill),"auto"===s.stroke&&(s.stroke=r.fill),"auto"===c.stroke&&(c.stroke=r.fill),!o){var h=e.get("inactiveBorderWidth"),d=s[l];s.lineWidth="auto"===h?r.lineWidth>0&&d?2:0:s.lineWidth,s.fill=e.get("inactiveColor"),s.stroke=e.get("inactiveBorderColor"),c.stroke=u.get("inactiveColor"),c.lineWidth=u.get("inactiveWidth")}return{itemStyle:s,lineStyle:c}}(p=C||p||"roundRect",r,d,f,b,w),T=new y,M=r.getModel("textStyle");if(!i.isFunction(t.getLegendIcon)||C&&"inherit"!==C){var A="inherit"===C&&t.getData().getVisual("symbol")?"inherit"===O?t.getData().getVisual("symbolRotate"):O:0;T.add(function(t){var e=t.icon||"roundRect",n=Object(g.createSymbol)(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2);return n}({itemWidth:_,itemHeight:x,icon:p,iconRotate:A,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:S}))}else T.add(t.getLegendIcon({itemWidth:_,itemHeight:x,icon:p,iconRotate:O,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:S}));var I="left"===a?_+5:-5,j=a,k=o.get("formatter"),P=e;i.isString(k)&&k?P=k.replace("{name}",null!=e?e:""):i.isFunction(k)&&(P=k(e));var L=r.get("inactiveColor");T.add(new s.default({style:Object(h.createTextStyle)(M,{text:P,x:I,y:x/2,fill:w?M.getTextColor():L,align:j,verticalAlign:"middle"})}));var D=new l.default({shape:T.getBoundingRect(),invisible:!0}),R=r.getModel("tooltip");return R.get("show")&&u.setTooltipConfig({el:D,componentModel:o,itemName:e,itemTooltipOption:R.option}),T.add(D),T.eachChild((function(t){t.silent=!0})),D.silent=!v,this.getContentGroup().add(T),Object(c.enableHoverEmphasis)(T),T.__legendDataIndex=n,T},e.prototype.layoutInner=function(t,e,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();f.box(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){f.box("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=0===p?"width":"height",v=0===p?"height":"width",m=0===p?"y":"x";"end"===o?h[p]+=l[g]+d:u[p]+=c[g]+d,h[1-p]+=l[v]/2-c[v]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[g]=l[g]+d+c[g],y[v]=Math.max(l[v],c[v]),y[m]=Math.min(0,c[m]+h[1-p]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(p.default);function _(t,e,n,r){O(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),w(t,e,n,r)}function x(t){for(var e,n=t.getZr().storage.getDisplayList(),r=0,i=n.length;r0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(r.visualMapActionInfo,r.visualMapActionHander),Object(o.each)(i.visualMapEncodingHandlers,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(a.default))}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(688),a=n(92),s={};var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?(Object(a.each)(l,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(o),e=Object(i.max)(o),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,o=[],s=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?(Object(a.each)(l,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(i.min)(o),e=Object(i.max)(o),n=Object(i.min)(s),r=Object(i.max)(s)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var s=t[o];if(Object(a.isAllowCapture)(s)&&(s.isGroup()?i=s.getShape(e,n,r):s.isHit(e,n)&&(i=s)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(a.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();Object(a.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(a.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(25),a=n(92),s=n(212),l=n(611),u=o.ext.transform,c=["zIndex","capture","visible","type"],h=["repeat"];function d(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function f(t,e){var n={},r=e.attr();return Object(i.each)(t,(function(t,e){-1!==h.indexOf(e)||Object(i.isEqual)(r[e],t)||(n[e]=t)})),n}function p(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,o=e.duration,a=Object.prototype.hasOwnProperty;return Object(i.each)(t,(function(t){n+rt.delay&&Object(i.each)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var g=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(i.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?r=p(r,w):n.addAnimator(this),r.push(w),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(i.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(i.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return Object(i.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],u=s.get("name");if(u){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a.isParent)(s,n))return"break";Object(i.isArray)(u)?Object(i.each)(u,(function(t){r.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,u,e)}},l=this,u=0;u=1?(n=1,e-1):Math.floor(n*e),o=t[i],a=t[i+1],s=i>0?t[i-1]:2*o-a,l=i-1?r:null}};function l(t){for(var e=[],n=1;n3?0:(t-t%10!=10?1:0)*t%10]}},f=l({},d),p=function(t){return f=l(f,t)},g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},v=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length0?"-":"+")+v(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+v(Math.floor(Math.abs(e)/60),2)+":"+v(Math.abs(e)%60,2)}},y=function(t){return+t-1},b=[null,"\\d\\d?"],_=[null,i],x=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],w=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],O={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",y],MM:["month","\\d\\d",y],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:b,dd:b,ddd:_,dddd:_,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:x,A:x,ZZ:w,Z:w},S={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},C=function(t){return l(S,t)},E=function(t,e,n){if(void 0===e&&(e=S.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=S[e]||e).replace(o,(function(t,e){return i.push(e),"@@@"}));var a=l(l({},f),n);return(e=e.replace(r,(function(e){return m[e](t,a)}))).replace(/@@@/g,(function(){return i.shift()}))};function T(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=S[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},a=[],s=[],u=e.replace(o,(function(t,e){return s.push(g(e)),"@@@"})),c={},h={};u=g(u).replace(r,(function(t){var e=O[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(h[i]=!0),a.push(e),"("+r+")"})),Object.keys(h).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var d=t.match(new RegExp(u,"i"));if(!d)return null;for(var p,v=l(l({},f),n),m=1;m11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return p}var M={format:E,parse:T,defaultI18n:d,setGlobalDateI18n:p,setGlobalDateMasks:C};e.default=M},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(1);function i(t){var e=t.values,n=t.tickInterval,i=t.tickCount,o=t.showLast;if(Object(r.isNumber)(n)){var a=Object(r.filter)(e,(function(t,e){return e%n==0})),s=Object(r.last)(e);return o&&Object(r.last)(a)!==s&&a.push(s),a}var l=e.length,u=t.min,c=t.max;if(Object(r.isNil)(u)&&(u=0),Object(r.isNil)(c)&&(c=e.length-1),!Object(r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var h=1===i?l:Math.floor(l/(i-1)),d=[],f=u,p=0;p=c);p++)f=Math.min(u+p*h,c),p===i-1&&o?d.push(e[c]):d.push(e[f]);return d}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(344);function i(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var o=(e-t)/i,a=Math.pow(10,Math.floor(Math.log10(o))),s=a;2*a-o<1.5*(o-s)&&5*a-o<2.75*(o-(s=2*a))&&10*a-o<1.5*(o-(s=5*a))&&(s=10*a);for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),h=Math.min(u*s,t),d=Math.floor((c-h)/s)+1,f=new Array(d),p=0;p=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},o={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(o=!o)}return o}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return i}));var r=n(257);function i(t,e,n,i,o){var a=t.length;if(a<2)return!1;for(var s=0;s0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),o=this.geometry.getYScale();return Object(i.map)(n,(function(t){if(t&&o){var e=o.scale(Object(i.get)(t.data,o.field));return Object(r.__assign)(Object(r.__assign)({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,o=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var a=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,a,r,l);return 0===u.r?u.content="":(u.content=o,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,a,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(i.isArray)(t.x)||Object(i.isArray)(t.y)?{x:Object(i.isArray)(t.x)?t.x[e]:t.x,y:Object(i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Object(o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var a=this.getCoordinate(),s=a.getCenter(),l=Object(o.getDistanceToCenter)(a,n);if(0===l)return Object(r.__assign)(Object(r.__assign)({},s),{r:l});var u=t;a.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+s;return n&&(r-=s),r&&(r>s?r-=Math.PI:r<-s&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(a.default);e.default=l},function(t,e,n){"use strict";function r(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,s=n.maxY,l=Math.abs(a-s),u=0,c=Number.MIN_VALUE,h=r.map((function(t){return t.y>u&&(u=t.y),t.yl&&(l=u-a);o;)for(h.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=h.length;i--;)if(i>0){var d=h[i-1],f=h[i];d.pos+d.size>f.pos&&(d.size+=f.size,d.targets=d.targets.concat(f.targets),d.pos+d.size>l&&(d.pos=l-d.size),h.splice(i,1),o=!0)}i=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}n.r(e),n.d(e,"antiCollision",(function(){return r}))},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(r.__extends)(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,o=+new Date;if(o-r>Object(i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var a=this.location,s={x:e.x,y:e.y};a&&Object(i.isEqual)(a,s)||this.showTooltip(n,s),this.timeStamp=o,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(n(87).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",(function(){return r}));var r,i=n(2),o=n(161),a=n(368),s=n(467);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={}));var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(i.__extends)(e,t),e.prototype.clearViewState=function(t){Object(a.clearHighlight)(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,o.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,o.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,o.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,o.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Object(a.setHighlightBy)(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(i.head)(t),end:Object(i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(n(469).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(n(469).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(289),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(r.__extends)(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"conversionTagFormatter",(function(){return i}));var r=n(1);function i(t,e){return Object(r.isNumber)(t)&&Object(r.isNumber)(e)?t===e?"100%":0===t?"∞":0===e?"-∞":(100*e/t).toFixed(2)+"%":"-"}},function(t,e,n){"use strict";n.r(e),n.d(e,"brushInteraction",(function(){return s}));var r=n(1),i=n(819),o=n(4),a=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function s(t){var e=t.options,n=e.brush,s=Object(r.filter)(e.interactions||[],(function(t){return-1===a.indexOf(t.type)}));return(null==n?void 0:n.enabled)&&(a.forEach((function(t){var e,r=!1;switch(n.type){case"x-rect":r=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":r=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:r=t===("highlight"===n.action?"brush-highlight":"brush")}var o={type:t,enable:r};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(o.cfg=Object(i.getInteractionCfg)(t,n.type,n.mask)),s.push(o)})),"highlight"!==(null==n?void 0:n.action)&&s.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(o.deepAssign)({},t,{options:{interactions:s}})}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_OPTIONS",(function(){return o}));var r=n(26),i=n(4),o=Object(i.deepAssign)({},r.Plot.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},function(t,e,n){"use strict";n.r(e),n.d(e,"binHistogram",(function(){return o}));var r=n(1);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function o(t,e,n,o,a){var s=Object(r.clone)(t);Object(r.sortBy)(s,e);var l=Object(r.valuesOfKey)(s,e),u=Object(r.getRange)(l),c=u.max-u.min,h=n;if(!n&&o&&(h=o>1?c/(o-1):u.max),!n&&!o){var d=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(l);h=c/d}var f={},p=Object(r.groupBy)(s,a);Object(r.isEmpty)(p)?Object(r.each)(s,(function(t){var n=i(t[e],h,o),a=n[0]+"-"+n[1];Object(r.hasKey)(f,a)||(f[a]={range:n,count:0}),f[a].count+=1})):Object.keys(p).forEach((function(t){Object(r.each)(p[t],(function(n){var s=i(n[e],h,o),l=s[0]+"-"+s[1]+"-"+t;Object(r.hasKey)(f,l)||(f[l]={range:s,count:0},f[l][a]=t),f[l].count+=1}))}));var g=[];return Object(r.each)(f,(function(t){g.push(t)})),g}},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(9),o=n(243),a=n(4),s=n(34),l=n(714),u=n(262);function c(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,c=n.binWidth,h=n.color,d=n.stackField,f=n.legend,p=n.columnStyle,g=Object(l.binHistogram)(r,i,c,o,d);e.data(g);var v=Object(a.deepAssign)({},t,{options:{xField:u.HISTOGRAM_X_FIELD,yField:u.HISTOGRAM_Y_FIELD,seriesField:d,isStack:!0,interval:{color:h,style:p}}});return Object(s.interval)(v),f&&d&&e.legend(d,f),t}function h(t){var e,n=t.options,r=n.xAxis,o=n.yAxis;return Object(a.flow)(Object(i.scale)(((e={})[u.HISTOGRAM_X_FIELD]=r,e[u.HISTOGRAM_Y_FIELD]=o,e)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(u.HISTOGRAM_X_FIELD,!1):e.axis(u.HISTOGRAM_X_FIELD,r),!1===i?e.axis(u.HISTOGRAM_Y_FIELD,!1):e.axis(u.HISTOGRAM_Y_FIELD,i),t}function f(t){var e=t.chart,n=t.options.label,i=Object(a.findGeometry)(e,"interval");if(n){var o=n.callback,s=Object(r.__rest)(n,["callback"]);i.label({fields:[u.HISTOGRAM_Y_FIELD],callback:o,cfg:Object(a.transformLabel)(s)})}else i.label(!1);return t}function p(t){return Object(a.flow)(i.theme,Object(o.pattern)("columnStyle"),c,h,d,i.state,f,i.tooltip,i.interaction,i.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_COLOR",(function(){return r})),n.d(e,"DEFAULT_OPTIONS",(function(){return i}));var r=["#FAAD14","#E8EDF3"],i={percent:.2,color:r,animation:{}}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return o}));var r=n(1),i=n(261),o=function(t,e){var n=t;if(Array.isArray(e)){var o=e[0],a=e[1],s=e[2],l=e[3],u=e[4];n=Object(r.map)(t,(function(t){return t[i.BOX_RANGE]=[t[o],t[a],t[s],t[l],t[u]],t}))}return n}},function(t,e,n){"use strict";n.r(e),n.d(e,"toBoxValue",(function(){return l})),n.d(e,"toViolinValue",(function(){return u})),n.d(e,"transformViolinData",(function(){return c}));var r=n(2),i=n(1),o=n(1654),a=n.n(o),s=n(499),l=function(t){return{low:Object(i.min)(t),high:Object(i.max)(t),q1:Object(s.quantile)(t,.25),q3:Object(s.quantile)(t,.75),median:Object(s.quantile)(t,[.5]),minMax:[Object(i.min)(t),Object(i.max)(t)],quantile:[Object(s.quantile)(t,.25),Object(s.quantile)(t,.75)]}},u=function(t,e){var n=a.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},c=function(t){var e=t.xField,n=t.yField,o=t.seriesField,a=t.data,s=t.kde,c={min:s.min,max:s.max,size:s.sampleSize,width:s.width};if(!o){var h=Object(i.groupBy)(a,e);return Object.keys(h).map((function(t){var e=h[t].map((function(t){return t[n]}));return Object(r.__assign)(Object(r.__assign)({x:t},u(e,c)),l(e))}))}var d=[],f=Object(i.groupBy)(a,o);return Object.keys(f).forEach((function(t){var a=Object(i.groupBy)(f[t],e);return Object.keys(a).forEach((function(e){var i,s=a[e].map((function(t){return t[n]}));d.push(Object(r.__assign)(Object(r.__assign)(((i={x:e})[o]=t,i),u(s,c)),l(s)))}))})),d}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return h})),n.d(e,"tooltip",(function(){return d})),n.d(e,"legend",(function(){return f})),n.d(e,"adaptor",(function(){return p}));var r=n(9),i=n(34),o=n(4),a=n(134),s=n(179),l=n(720);function u(t){var e=t.chart,n=t.options,r=n.yField,a=n.data,u=n.risingFill,c=n.fallingFill,h=n.tooltip,d=n.stockStyle;e.data(Object(l.getStockData)(a,r));var f=h;return!1!==f&&(f=Object(o.deepAssign)({},{fields:r},f)),Object(i.schema)(Object(o.deepAssign)({},t,{options:{schema:{shape:"candle",color:[u,c],style:d},yField:s.Y_FIELD,seriesField:s.TREND_FIELD,rawFields:r,tooltip:f}})),t}function c(t){var e,n,r=t.chart,i=t.options,l=i.meta,u=i.xAxis,c=i.yAxis,h=i.xField,d=((e={})[h]={type:"timeCat",tickCount:6},e[s.TREND_FIELD]={values:[s.TREND_UP,s.TREND_DOWN]},e),f=Object(o.deepAssign)(d,l,((n={})[h]=Object(o.pick)(u,a.AXIS_META_CONFIG_KEYS),n[s.Y_FIELD]=Object(o.pick)(c,a.AXIS_META_CONFIG_KEYS),n));return r.scale(f),t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(s.Y_FIELD,!1):e.axis(s.Y_FIELD,i),t}function d(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function f(t){var e=t.chart,n=t.options.legend;return n?e.legend(s.TREND_FIELD,n):!1===n&&e.legend(!1),t}function p(t){Object(o.flow)(r.theme,u,c,h,d,f,r.interaction,r.animation,Object(r.annotation)(),r.slider)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getStockData",(function(){return o}));var r=n(1),i=n(179);function o(t,e){return Object(r.map)(t,(function(t){if(Object(r.isArray)(e)){var n=e[0],o=e[1],a=e[2],s=e[3];t[i.TREND_FIELD]=t[n]<=t[o]?i.TREND_UP:i.TREND_DOWN,t[i.Y_FIELD]=[t[n],t[o],t[a],t[s]]}return t}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return g})),n.d(e,"adaptor",(function(){return y}));var r=n(1),i=n(9),o=n(275),a=n(4),s=n(711),l=n(722),u=n(1659),c=n(1660),h=n(1661),d=n(73);function f(t){var e,n=t.options,i=n.compareField,l=n.xField,u=n.yField,c=n.locale,h=n.funnelStyle,f=n.data,p=Object(o.getLocale)(c),g={label:i?{fields:[l,u,i,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],formatter:function(t){return""+t[u]}}:{fields:[l,u,d.FUNNEL_PERCENT,d.FUNNEL_CONVERSATION],offset:0,position:"middle",formatter:function(t){return t[l]+" "+t[u]}},tooltip:{title:l,formatter:function(t){return{name:t[l],value:t[u]}}},conversionTag:{formatter:function(t){return p.get(["conversionTag","label"])+": "+s.conversionTagFormatter.apply(void 0,t[d.FUNNEL_CONVERSATION])}}};return(i||h)&&(e=function(t){return Object(a.deepAssign)({},i&&{lineWidth:1,stroke:"#fff"},Object(r.isFunction)(h)?h(t):h)}),Object(a.deepAssign)({options:g},t,{options:{funnelStyle:e,data:Object(r.clone)(f)}})}function p(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?Object(c.facetFunnel)(t):n?Object(u.compareFunnel)(t):r?Object(h.dynamicHeightFunnel)(t):Object(l.basicFunnel)(t)}function g(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,l=n.yField;return Object(a.flow)(Object(i.scale)(((e={})[s]=r,e[l]=o,e)))(t)}function v(t){return t.chart.axis(!1),t}function m(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function y(t){return Object(a.flow)(f,p,g,v,i.tooltip,i.interaction,m,i.animation,i.theme,Object(i.annotation)())(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"basicFunnel",(function(){return p}));var r=n(2),i=n(1),o=n(4),a=n(125),s=n(102),l=n(73),u=n(369);function c(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=n.yField,a=n.maxSize,s=n.minSize,l=Object(u.transformData)(i,i,{yField:o,maxSize:a,minSize:s});return e.data(l),t}function h(t){var e=t.chart,n=t.options,r=n.xField,u=n.yField,c=n.color,h=n.tooltip,d=n.label,f=n.shape,p=void 0===f?"funnel":f,g=n.funnelStyle,v=n.state,m=Object(a.getTooltipMapping)(h,[r,u]),y=m.fields,b=m.formatter;return Object(s.geometry)({chart:e,options:{type:"interval",xField:r,yField:l.FUNNEL_MAPPING_VALUE,colorField:r,tooltipFields:Object(i.isArray)(y)&&y.concat([l.FUNNEL_PERCENT,l.FUNNEL_CONVERSATION]),mapping:{shape:p,tooltip:b,color:c,style:g},label:d,state:v}}),Object(o.findGeometry)(t.chart,"interval").adjust("symmetric"),t}function d(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function f(t){var e=t.options.maxSize;return Object(u.conversionTagComponent)((function(t,n,i,o){var a=e-(e-t[l.FUNNEL_MAPPING_VALUE])/2;return Object(r.__assign)(Object(r.__assign)({},o),{start:[n-.5,a],end:[n-.5,a+.05]})}))(t),t}function p(t){return Object(o.flow)(c,h,d,f)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getLiquidData",(function(){return r}));function r(t){return[{percent:t,type:"liquid"}]}},function(t,e,n){"use strict";function r(t,e,n){return t.length>1?e+"_"+n:""+e}function i(t){var e=t.data,n=t.xField,i=t.measureField,o=t.rangeField,a=t.targetField,s=t.layout,l=[],u=[];e.forEach((function(t,e){var s=[t[o]].flat();s.sort((function(t,e){return t-e})),s.forEach((function(r,i){var a,u=0===i?r:s[i]-s[i-1];l.push(((a={rKey:o+"_"+i})[n]=n?t[n]:String(e),a[o]=u,a))}));var c=[t[i]].flat();c.forEach((function(o,a){var s;l.push(((s={mKey:r(c,i,a)})[n]=n?t[n]:String(e),s[i]=o,s))}));var h=[t[a]].flat();h.forEach((function(i,o){var s;l.push(((s={tKey:r(h,a,o)})[n]=n?t[n]:String(e),s[a]=i,s))})),u.push(t[o],t[i],t[a])}));var c=Math.min.apply(Math,u.flat(1/0)),h=Math.max.apply(Math,u.flat(1/0));return c=c>0?0:c,"vertical"===s&&l.reverse(),{min:c,max:h,ds:l}}n.r(e),n.d(e,"transformData",(function(){return i}))},function(t,e,n){"use strict";n.r(e),e.default=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTileMethod",(function(){return u})),n.d(e,"treemap",(function(){return c}));var r=n(529),i=n(823),o=n(306),a=n(1),s=n(197),l={field:"value",tile:"treemapSquarify",size:[1,1],round:!1,ignoreParentValue:!0,padding:0,paddingInner:0,paddingOuter:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0,as:["x","y"],sort:function(t,e){return e.value-t.value},ratio:.5*(1+Math.sqrt(5))};function u(t,e){return"treemapSquarify"===t?r[t].ratio(e):r[t]}function c(t,e){var n,r=(e=Object(a.assign)({},l,e)).as;if(!Object(a.isArray)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(s.getField)(e)}catch(t){console.warn(t)}var c=u(e.tile,e.ratio),h=function(t){return i.default().tile(c).size(e.size).round(e.round).padding(e.padding).paddingInner(e.paddingInner).paddingOuter(e.paddingOuter).paddingTop(e.paddingTop).paddingRight(e.paddingRight).paddingBottom(e.paddingBottom).paddingLeft(e.paddingLeft)(o.default(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),d=r[0],f=r[1];return h.each((function(t){t[d]=[t.x0,t.x1,t.x1,t.x0],t[f]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),Object(s.getAllNodes)(h)}},function(t,e,n){"use strict";function r(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}n.r(e),n.d(e,"shuffle",(function(){return r})),e.default=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"processData",(function(){return s})),n.d(e,"transformData",(function(){return l}));var r=n(2),i=n(1),o=n(4),a=n(122);function s(t,e,n,a,s){var l,u=[];if(Object(i.reduce)(t,(function(t,e){var s;Object(o.log)(o.LEVEL.WARN,Object(i.isNumber)(e[n]),e[n]+" is not a valid number");var l=Object(i.isUndefined)(e[n])?null:e[n];return u.push(Object(r.__assign)(Object(r.__assign)({},e),((s={})[a]=[t,t+l],s))),t+l}),0),u.length&&s){var c=Object(i.get)(u,[[t.length-1],a,[1]]);u.push(((l={})[e]=s.label,l[n]=c,l[a]=[0,c],l))}return u}function l(t,e,n,o){return s(t,e,n,a.Y_FIELD,o).map((function(e,n){var o;return Object(i.isObject)(e)?Object(r.__assign)(Object(r.__assign)({},e),((o={})[a.ABSOLUTE_FIELD]=e[a.Y_FIELD][1],o[a.DIFF_FIELD]=e[a.Y_FIELD][1]-e[a.Y_FIELD][0],o[a.IS_TOTAL]=n===t.length,o)):e}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getNodeWidthRatio",(function(){return l})),n.d(e,"getNodePaddingRatio",(function(){return u})),n.d(e,"transformToViewsData",(function(){return c}));var r=n(2),i=n(4),o=n(354),a=n(1685),s=n(1686);function l(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function u(t,e,n){return Object(i.isRealNumber)(t)?t/n:e}function c(t,e,n){var c,h=t.dataType,d=t.data,f=t.sourceField,p=t.targetField,g=t.weightField,v=t.nodeAlign,m=t.nodeSort,y=t.nodePadding,b=t.nodePaddingRatio,_=t.nodeWidth,x=t.nodeWidthRatio,w=t.nodeDepth,O=t.rawFields,S=void 0===O?[]:O;c=function(t){return"node-link"===t}(h)?d:Object(o.transformDataToNodeLinkData)(Object(s.cutoffCircle)(d,f,p),f,p,g,S);var C=Object(a.sankeyLayout)({nodeAlign:v,nodePadding:u(y,b,n),nodeWidth:l(_,x,e),nodeSort:m,nodeDepth:w},c),E=C.nodes,T=C.links;return{nodes:E.map((function(t){return Object(r.__assign)(Object(r.__assign)({},Object(i.pick)(t,Object(r.__spreadArrays)(["x","y","name"],S))),{isNode:!0})})),edges:T.map((function(t){return Object(r.__assign)(Object(r.__assign)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(i.pick)(t,Object(r.__spreadArrays)(["x","y","value"],S))),{isNode:!1})}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"RAW_FIELDS",(function(){return r})),n.d(e,"DEFAULT_OPTIONS",(function(){return i}));var r=["x","y","r","name","value","path","depth"],i={colorField:"name",autoFit:!0,pointStyle:{lineWidth:0,stroke:"#fff"},legend:!1,hierarchyConfig:{size:[1,1],padding:0},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1}}},function(t,e,n){"use strict";t.exports=function(){function t(t){var r=[];return t.AMapUI&&r.push(e(t.AMapUI)),t.Loca&&r.push(n(t.Loca)),Promise.all(r)}function e(t){return new Promise((function(e,n){var i=[];if(t.plugins)for(var l=0;l-1?this.childNodes.splice(e,1):null}}]),n}(n(472).default)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLVideoElement",(function(){return p}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h);function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var p=function(t){l()(n,t);var e=f(n);function n(){return a()(this,n),e.call(this,"video")}return i()(n)}(n(735).HTMLMediaElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"HTMLMediaElement",(function(){return p}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(30),l=n.n(s),u=n(31),c=n.n(u),h=n(18),d=n.n(h);function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=d()(t);if(e){var i=d()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c()(this,n)}}var p=function(t){l()(n,t);var e=f(n);function n(t){return i()(this,n),e.call(this,t)}return a()(n,[{key:"addTextTrack",value:function(){}},{key:"captureStream",value:function(){}},{key:"fastSeek",value:function(){}},{key:"load",value:function(){}},{key:"pause",value:function(){}},{key:"play",value:function(){}}]),n}(n(342).HTMLElement)},function(t,e,n){"use strict";n.r(e),n.d(e,"Image",(function(){return u}));var r=n(12),i=n.n(r),o=n(11),a=n.n(o),s=n(234),l=n(145),u=i()((function t(){a()(this,t);var e=Object(s.getCanvas)(),n=e.createImage&&e.createImage()||{};return"tagName"in n||(n.tagName="IMG",n.__proto__=t.prototype),l.parentNode(n),l.classList(n),Object.assign(n,{addEventListener:function(t,e){n["on".concat(t)]=e.bind(n)},removeEventListener:function(t){n["on".concat(t)]=null}}),n}))},function(t,e,n){"use strict";n.r(e),n.d(e,"$location",(function(){return r}));var r={href:"",protocol:"",host:""}},function(t,e,n){"use strict";n.r(e),n.d(e,"buildMapping",(function(){return u})),n.d(e,"buildIconMaping",(function(){return c})),n.d(e,"nextPowOfTwo",(function(){return d}));var r=n(3),i=n.n(r);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);no&&(p=0,f++),s[t]={x:p,y:h+30*f,width:30,height:30,advance:r},p+=30}}));var g=r+2*i;return{mapping:s,xOffset:p,yOffset:h+f*g,canvasHeight:d(h+(f+1)*g)}}function c(t,e,n){var r,i=0,o=0,a=0,l=[],u={},c=s(t);try{for(c.s();!(r=c.n()).done;){var f=r.value;if(!u[f.id]){var p=f.size;i+p+e>n&&(h(u,l,o),i=0,o=a+o+e,a=0,l=[]),l.push({icon:f,xOffset:i}),i=i+p+e,a=Math.max(a,p)}}}catch(t){c.e(t)}finally{c.f()}return l.length>0&&h(u,l,o),{mapping:u,canvasHeight:d(a+o+e)}}function h(t,e,n){var r,i=s(e);try{for(i.s();!(r=i.n()).done;){var o=r.value,l=o.icon,u=o.xOffset;t[l.id]=a(a({},l),{},{x:u,y:n,image:l.image,width:l.width,height:l.height})}}catch(t){i.e(t)}finally{i.f()}}function d(t){return Math.pow(2,Math.ceil(Math.log2(t)))}},function(t,e,n){"use strict";n.r(e),n.d(e,"createRendererContainer",(function(){return o})),n.d(e,"isEventCrash",(function(){return a}));var r=n(17),i=0;function o(t){if(r.isMini)return null;var e=t;if("string"==typeof t&&(e=document.getElementById(t)),e){var n=document.createElement("div");return n.style.cssText+="\n position: absolute;\n z-index:2;\n height: 100%;\n width: 100%;\n pointer-events: none;\n ",n.id="l7-scene-".concat(i++),n.classList.add("l7-scene"),e.appendChild(n),n}return null}function a(t){var e,n,r=!0;return null==t||null===(e=t.target)||void 0===e||null===(n=e.path)||void 0===n||n.map((function(t){var e;null!=t&&t.classList&&(null==t||null===(e=t.classList)||void 0===e||e.forEach((function(t){"l7-marker"!==t&&"l7-popup"!==t||(r=!1)})))})),r}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.r(e),n.d(e,"default",(function(){return r}))},function(t,e,n){"use strict";function r(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;this.stop();var n=this.transform,r=!1,i=!1,o=!1;return t.zoom&&n.zoom!==+t.zoom&&(r=!0,n.zoom=+t.zoom),void 0!==t.center&&(n.center=_.default.convert(t.center)),t.bearing&&n.bearing!==+t.bearing&&(i=!0,n.bearing=+t.bearing),t.pitch&&n.pitch!==+t.pitch&&(o=!0,n.pitch=+t.pitch),null==t.padding||n.isPaddingEqual(t.padding)||(n.padding=t.padding),this.emit("movestart",new S.Event("movestart",e)),this.emit("move",new S.Event("move",e)),r&&(this.emit("zoomstart",new S.Event("zoomstart",e)),this.emit("zoom",new S.Event("zoom",e)),this.emit("zoomend",new S.Event("zoomend",e))),i&&(this.emit("rotatestart",new S.Event("rotatestart",e)),this.emit("rotate",new S.Event("rotate",e)),this.emit("rotateend",new S.Event("rotateend",e))),o&&(this.emit("pitchstart",new S.Event("pitchstart",e)),this.emit("pitch",new S.Event("pitch",e)),this.emit("pitchend",new S.Event("pitchend",e))),this.emit("moveend",new S.Event("moveend",e))}},{key:"easeTo",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;(!1===(e=y()({offset:[0,0],duration:500,easing:C.ease},e)).animate||!e.essential&&Object(C.prefersReducedMotion)())&&(e.duration=0);var r=this.transform,i=this.getZoom(),o=this.getBearing(),a=this.getPitch(),s=this.getPadding(),l=e.zoom?+e.zoom:i,u=e.bearing?this.normalizeBearing(e.bearing,o):o,c=e.pitch?+e.pitch:a,h=e.padding?e.padding:r.padding,d=w.default.convert(e.offset),f=r.centerPoint.add(d),p=r.pointLocation(f),g=_.default.convert(e.center||p);this.normalizeCenter(g);var v,m,b=r.project(p),x=r.project(g).sub(b),O=r.zoomScale(l-i);e.around&&(v=_.default.convert(e.around),m=r.locationPoint(v));var S={moving:this.moving,zooming:this.zooming,rotating:this.rotating,pitching:this.pitching};return this.zooming=this.zooming||l!==i,this.rotating=this.rotating||o!==u,this.pitching=this.pitching||c!==a,this.padding=!r.isPaddingEqual(h),this.easeId=e.easeId,this.prepareEase(n,e.noMoveStart,S),clearTimeout(this.easeEndTimeoutID),this.ease((function(e){if(t.zooming&&(r.zoom=Object(C.interpolate)(i,l,e)),t.rotating&&t.rotateEnabled&&(r.bearing=Object(C.interpolate)(o,u,e)),t.pitching&&t.pitchEnabled&&(r.pitch=Object(C.interpolate)(a,c,e)),t.padding&&(r.interpolatePadding(s,h,e),f=r.centerPoint.add(d)),v)r.setLocationAtPoint(v,m);else{var p=r.zoomScale(r.zoom-i),g=l>i?Math.min(2,O):Math.max(.5,O),y=Math.pow(g,1-e),_=r.unproject(b.add(x.mult(e*y)).mult(p));r.setLocationAtPoint(r.renderWorldCopies?_.wrap():_,f)}t.fireMoveEvents(n)}),(function(e){t.afterEase(n,e)}),e),this}},{key:"flyTo",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(!e.essential&&Object(C.prefersReducedMotion)()){var r=Object(C.pick)(e,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,n)}this.stop(),e=y()({offset:[0,0],speed:1.2,curve:1.42,easing:C.ease},e);var i=this.transform,o=this.getZoom(),a=this.getBearing(),s=this.getPitch(),l=this.getPadding(),u=e.zoom?Object(C.clamp)(+e.zoom,i.minZoom,i.maxZoom):o,c=e.bearing?this.normalizeBearing(e.bearing,a):a,h=e.pitch?+e.pitch:s,d="padding"in e?e.padding:i.padding,f=i.zoomScale(u-o),p=w.default.convert(e.offset),g=i.centerPoint.add(p),v=i.pointLocation(g),m=_.default.convert(e.center||v);this.normalizeCenter(m);var b=i.project(v),x=i.project(m).sub(b),O=e.curve,S=Math.max(i.width,i.height),E=S/f,T=x.mag();if("minZoom"in e){var M=Object(C.clamp)(Math.min(e.minZoom,o,u),i.minZoom,i.maxZoom),A=S/i.zoomScale(M-o);O=Math.sqrt(A/T*2)}var I=O*O;function j(t){var e=(E*E-S*S+(t?-1:1)*I*I*T*T)/(2*(t?E:S)*I*T);return Math.log(Math.sqrt(e*e+1)-e)}function k(t){return(Math.exp(t)-Math.exp(-t))/2}function P(t){return(Math.exp(t)+Math.exp(-t))/2}function L(t){return k(t)/P(t)}var D=j(0),R=function(t){return P(D)/P(D+O*t)},N=function(t){return S*((P(D)*L(D+O*t)-k(D))/I)/T},F=(j(1)-D)/O;if(Math.abs(T)<1e-6||!isFinite(F)){if(Math.abs(S-E)<1e-6)return this.easeTo(e,n);var B=Ee.maxDuration&&(e.duration=0),this.zooming=!0,this.rotating=a!==c,this.pitching=h!==s,this.padding=!i.isPaddingEqual(d),this.prepareEase(n,!1),this.ease((function(e){var r=e*F,f=1/R(r);i.zoom=1===e?u:o+i.scaleZoom(f),t.rotating&&(i.bearing=Object(C.interpolate)(a,c,e)),t.pitching&&(i.pitch=Object(C.interpolate)(s,h,e)),t.padding&&(i.interpolatePadding(l,d,e),g=i.centerPoint.add(p));var v=1===e?m:i.unproject(b.add(x.mult(N(r))).mult(f));i.setLocationAtPoint(i.renderWorldCopies?v.wrap():v,g),t.fireMoveEvents(n)}),(function(){return t.afterEase(n)}),e),this}},{key:"fitScreenCoordinates",value:function(t,e,n,r,i){return this.fitInternal(this.cameraForBoxAndBearing(this.transform.pointLocation(w.default.convert(t)),this.transform.pointLocation(w.default.convert(e)),n,r),r,i)}},{key:"stop",value:function(t,e){if(this.easeFrameId&&(this.cancelRenderFrame(this.easeFrameId),delete this.easeFrameId,delete this.onEaseFrame),this.onEaseEnd){var n=this.onEaseEnd;delete this.onEaseEnd,n.call(this,e)}return this}},{key:"normalizeBearing",value:function(t,e){t=Object(C.wrap)(t,-180,180);var n=Math.abs(t-e);return Math.abs(t-360-e)180?-360:n<-180?360:0}}},{key:"fireMoveEvents",value:function(t){this.emit("move",new S.Event("move",t)),this.zooming&&this.emit("zoom",new S.Event("zoom",t)),this.rotating&&this.emit("rotate",new S.Event("rotate",t)),this.pitching&&this.emit("rotate",new S.Event("pitch",t))}},{key:"prepareEase",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.moving=!0,e||n.moving||this.emit("movestart",new S.Event("movestart",t)),this.zooming&&!n.zooming&&this.emit("zoomstart",new S.Event("zoomstart",t)),this.rotating&&!n.rotating&&this.emit("rotatestart",new S.Event("rotatestart",t)),this.pitching&&!n.pitching&&this.emit("pitchstart",new S.Event("pitchstart",t))}},{key:"afterEase",value:function(t,e){if(!this.easeId||!e||this.easeId!==e){delete this.easeId;var n=this.zooming,r=this.rotating,i=this.pitching;this.moving=!1,this.zooming=!1,this.rotating=!1,this.pitching=!1,this.padding=!1,n&&this.emit("zoomend",new S.Event("zoomend",t)),r&&this.emit("rotateend",new S.Event("rotateend",t)),i&&this.emit("pitchend",new S.Event("pitchend",t)),this.emit("moveend",new S.Event("moveend",t))}}},{key:"ease",value:function(t,e,n){!1===n.animate||0===n.duration?(t(1),e()):(this.easeStart=Object(C.now)(),this.easeOptions=n,this.onEaseFrame=t,this.onEaseEnd=e,this.easeFrameId=this.requestRenderFrame(this.renderFrameCallback))}},{key:"cameraForBoxAndBearing",value:function(t,e,n,r){var i={top:0,bottom:0,right:0,left:0};if("number"==typeof(r=y()({padding:i,offset:[0,0],maxZoom:this.transform.maxZoom},r)).padding){var o=r.padding;r.padding={top:o,bottom:o,right:o,left:o}}r.padding=y()(i,r.padding);var a=this.transform,s=a.padding,l=a.project(_.default.convert(t)),u=a.project(_.default.convert(e)),c=l.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),d=new w.default(Math.max(c.x,h.x),Math.max(c.y,h.y)),f=new w.default(Math.min(c.x,h.x),Math.min(c.y,h.y)),p=d.sub(f),g=(a.width-(s.left+s.right+r.padding.left+r.padding.right))/p.x,v=(a.height-(s.top+s.bottom+r.padding.top+r.padding.bottom))/p.y;if(!(v<0||g<0)){var m=Math.min(a.scaleZoom(a.scale*Math.min(g,v)),r.maxZoom),b=w.default.convert(r.offset),x=(r.padding.left-r.padding.right)/2,O=(r.padding.top-r.padding.bottom)/2,S=new w.default(b.x+x,b.y+O).mult(a.scale/a.zoomScale(m));return{center:a.unproject(l.add(u).div(2).sub(S)),zoom:m,bearing:n}}}},{key:"fitInternal",value:function(t,e,n){return t?(delete(e=y()(t,e)).padding,e.linear?this.easeTo(e,n):this.flyTo(e,n)):this}}]),n}(b.EventEmitter)},function(t,e,n){"use strict";n.r(e);var r=n(72),i=n.n(r),o=n(11),a=n.n(o),s=n(12),l=n.n(s),u=n(3),c=n.n(u),h=n(96),d=n.n(h),f=n(17),p=n(65),g=n(128),v=n(1765),m=n(1766),y=n(1767),b=n(81),_=n(1768),x=n(1769),w=n(1770),O=n(1771),S=n(766),C=n(1772),E=n(1773),T=n(1774),M=n(1775),A=n(1776),I=n(1777),j=n(1778),k=n(571);function P(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:0,e=this.currentlyRunning=this.queue;this.queue=[];var n,r=u(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!i.cancelled&&(i.callback(t),this.cleared))break}}catch(t){r.e(t)}finally{r.f()}this.cleared=!1,this.currentlyRunning=!1}},{key:"clear",value:function(){this.currentlyRunning&&(this.cleared=!0),this.queue=[]}}]),t}();e.default=h},function(t,e,n){"use strict";n.r(e);var r=n(64),i=n(50);e.default=function(t,e,n,o,a){var s=t.type,l=[];if(t.required||!t.required&&o.hasOwnProperty(t.field)){if(Object(i.isEmptyValue)(e,s)&&!t.required)return n();r.default.required(t,e,o,l,a,s),Object(i.isEmptyValue)(e,s)||r.default.type(t,e,o,l,a)}n(l)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTime",(function(){return s}));var r=n(59),i=n(129),o=n(531),a=n(362);function s(){return(new Date).getTime()}var l=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return Object(r.__extends)(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=s()-this._pausedTime,n=e-this._time,r=this._head;r;){var i=r.next;r.step(e,n)?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Object(o.default)((function e(){t._running&&(Object(o.default)(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=s(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=s(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=s()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new a.default(t,e.loop);return this.addAnimator(n),n},e}(i.default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"seriesStyleTask",(function(){return p})),n.d(e,"dataStyleTask",(function(){return v})),n.d(e,"dataColorPaletteTask",(function(){return m}));var r=n(0),i=n(224),o=n(652),a=n(651),s=n(57),l=n(10),u=Object(l.makeInner)(),c={itemStyle:Object(i.default)(o.ITEM_STYLE_KEY_MAP,!0),lineStyle:Object(i.default)(a.LINE_STYLE_KEY_MAP,!0)},h={lineStyle:"stroke",itemStyle:"fill"};function d(t,e){var n=t.visualStyleMapper||c[e];return n||(console.warn("Unkown style type '"+e+"'."),c.itemStyle)}function f(t,e){var n=t.visualDrawType||h[e];return n||(console.warn("Unkown style type '"+e+"'."),"fill")}var p={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=t.getModel(i),a=d(t,i)(o),s=o.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=f(t,i),u=a[l],c=Object(r.isFunction)(u)?u:null,h="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||h){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=p,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(r.isFunction)(a.fill)?p:a.fill,a.stroke="auto"===a.stroke||Object(r.isFunction)(a.stroke)?p:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),o=Object(r.extend)({},a);o[l]=c(i),e.setItemVisual(n,"style",o)}}}},g=new s.default,v={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",o=d(t,i),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){g.option=n[i];var s=o(g),l=t.ensureUniqueItemVisual(e,"style");Object(r.extend)(l,s),g.option.decal&&(t.setItemVisual(e,"decal",g.option.decal),g.option.decal.dirty=!0),a in s&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},m={performRawSeries:!0,overallReset:function(t){var e=Object(r.createHashMap)();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var r=t.type+"-"+n,i=e.get(r);i||(i={},e.set(r,i)),u(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),r={},i=e.getData(),o=u(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=f(e,a);i.each((function(t){var e=i.getRawIndex(t);r[e]=t})),n.each((function(t){var a=r[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",c=n.count();l[s]=e.getColorFromPalette(u,o,c)}}))}}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"createAxisLabels",(function(){return l})),n.d(e,"createAxisTicks",(function(){return u})),n.d(e,"calculateCategoryInterval",(function(){return p}));var r=n(0),i=n(55),o=n(10),a=n(77),s=Object(o.makeInner)();function l(t){return"category"===t.type?function(t){var e=t.getLabelModel(),n=c(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Object(a.makeLabelFormatter)(t);return{labels:r.map(e,(function(e,r){return{level:e.level,formattedLabel:n(e,r),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)}function u(t,e){return"category"===t.type?function(t,e){var n,i,o=h(t,"ticks"),s=Object(a.getOptionCategoryInterval)(e),l=d(o,s);if(l)return l;e.get("show")&&!t.scale.isBlank()||(n=[]);if(r.isFunction(s))n=v(t,s,!0);else if("auto"===s){var u=c(t,t.getLabelModel());i=u.labelCategoryInterval,n=r.map(u.labels,(function(t){return t.tickValue}))}else n=g(t,i=s,!0);return f(o,s,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:r.map(t.scale.getTicks(),(function(t){return t.value}))}}function c(t,e){var n,i,o=h(t,"labels"),l=Object(a.getOptionCategoryInterval)(e),u=d(o,l);return u||(r.isFunction(l)?n=v(t,l):(i="auto"===l?function(t){var e=s(t).autoInterval;return null!=e?e:s(t).autoInterval=t.calculateCategoryInterval()}(t):l,n=g(t,i)),f(o,l,{labels:n,labelCategoryInterval:i}))}function h(t,e){return s(t)[e]||(s(t)[e]=[])}function d(t,e){for(var n=0;n40&&(c=Math.max(1,Math.floor(u/40)));for(var h=l[0],d=t.dataToCoord(h+1)-t.dataToCoord(h),f=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),g=0,v=0;h<=l[1];h+=c){var m,y,b=i.getBoundingRect(n({value:h}),e.font,"center","top");m=1.3*b.width,y=1.3*b.height,g=Math.max(g,m,7),v=Math.max(v,y,7)}var _=g/f,x=v/p;isNaN(_)&&(_=1/0),isNaN(x)&&(x=1/0);var w=Math.max(0,Math.floor(Math.min(_,x))),O=s(t.model),S=t.getExtent(),C=O.lastAutoInterval,E=O.lastTickCount;return null!=C&&null!=E&&Math.abs(C-w)<=1&&Math.abs(E-u)<=1&&C>w&&O.axisExtent0===S[0]&&O.axisExtent1===S[1]?w=C:(O.lastTickCount=u,O.lastAutoInterval=w,O.axisExtent0=S[0],O.axisExtent1=S[1]),w}function g(t,e,n){var r=Object(a.makeLabelFormatter)(t),i=t.scale,o=i.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((e||0)+1,1),c=o[0],h=i.count();0!==c&&u>1&&h/u>2&&(c=Math.round(Math.ceil(c/u)*u));var d=Object(a.shouldShowAllLabels)(t),f=s.get("showMinLabel")||d,p=s.get("showMaxLabel")||d;f&&c!==o[0]&&v(o[0]);for(var g=c;g<=o[1];g+=u)v(g);function v(t){var e={value:t};l.push(n?t:{formattedLabel:r(e),rawLabel:i.getLabel(e),tickValue:t})}return p&&g-u!==o[1]&&v(o[1]),l}function v(t,e,n){var i=t.scale,o=Object(a.makeLabelFormatter)(t),s=[];return r.each(i.getTicks(),(function(t){var r=i.getLabel(t),a=t.value;e(t.value,r)&&s.push(n?a:{formattedLabel:o(t),rawLabel:r,tickValue:a})})),s}},function(t,e,n){"use strict";n.r(e);var r=n(59),i=n(0),o=n(151),a=n(129),s=n(214),l=n(249),u=n(35),c=n(100),h=n(98);function d(t,e,n){var r=h.platformApi.createCanvas(),i=e.getWidth(),o=e.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=o*n,r}var f=function(t){function e(e,n,r){var a,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,r=r||o.devicePixelRatio,"string"==typeof e?a=d(e,n,r):i.isObject(e)&&(e=(a=e).id),s.id=e,s.dom=a;var l=a.style;return l&&(i.disableUserSelect(a),a.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),s.painter=n,s.dpr=r,s}return Object(r.__extends)(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=d("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new u.default(0,0,0,0);function h(t){if(t.isFinite()&&!t.isZero())if(0===o.length){(e=new u.default(0,0,0,0)).copy(t),o.push(e)}else{for(var e,n=!1,r=1/0,i=0,c=0;c=a)}}for(var d=this.__startIndex;d=0&&(r=v)}}})),r){e.d=!1;var u=g(s,n);return r.replace(o,u)}}(t,e,n))y.push(M);else if(!h)return}else if(!h)return;for(var b={},_=0;_0})).length)return g(b,n)+" "+i[0]+" both"}for(var T in b){var M;(M=E(b[T]))&&y.push(M)}if(y.length){var A=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+A]={animation:y.join(",")},e.class=A}}},function(t,e,n){"use strict";n.r(e),n.d(e,"cartesian2DDimensions",(function(){return l}));var r=n(5),i=n(35),o=n(1299),a=n(41),s=n(20),l=["x","y"];function u(t){return"interval"===t.type||"time"===t.type}var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=l,e}return Object(r.__extends)(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(u(t)&&u(e)){var n=t.getExtent(),r=e.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),s=n[1]-n[0],l=r[1]-r[0];if(s&&l){var c=(o[0]-i[0])/s,h=(o[1]-i[1])/l,d=i[0]-n[0]*c,f=i[1]-r[0]*h,p=this._transform=[c,0,0,h,d,f];this._invTransform=Object(a.invert)([],p)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.dataToPoint=function(t,e,n){n=n||[];var r=t[0],i=t[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return Object(s.applyTransform)(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,e)),n[1]=a.toGlobalCoord(a.dataToCoord(i,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(t[0]),s=r.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return Object(s.applyTransform)(n,t,this._invTransform);var r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(t[0]),e),n[1]=i.coordToData(i.toLocalCoord(t[1]),e),n},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),n=Math.min(t[0],t[1]),r=Math.min(e[0],e[1]),o=Math.max(t[0],t[1])-n,a=Math.max(e[0],e[1])-r;return new i.default(n,r,o,a)},e}(o.default);e.default=c},function(t,e,n){"use strict";n.r(e),n.d(e,"geo2DDimensions",(function(){return c}));var r=n(5),i=n(0),o=n(35),a=n(334),s=n(195),l=n(10),u={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},c=["lng","lat"],h=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.dimensions=c,o.type="geo",o._nameCoordMap=i.createHashMap(),o.map=n;var a,l=r.projection,h=s.default.load(n,r.nameMap,r.nameProperty),d=s.default.getGeoResource(n),f=(o.resourceType=d?d.type:null,o.regions=h.regions),p=u[d.type];if(o._regionsMap=h.regionsMap,o.regions=h.regions,o.projection=l,l)for(var g=0;g=0?r+=g:r-=g:_>=0?r-=g:r+=g}return r}function f(t,e){var n=[],a=r.quadraticSubdivide,s=[[],[],[]],l=[[],[]],u=[];e/=2,t.eachEdge((function(t,r){var c=t.getLayout(),h=t.getVisual("fromSymbol"),f=t.getVisual("toSymbol");c.__original||(c.__original=[i.clone(c[0]),i.clone(c[1])],c[2]&&c.__original.push(i.clone(c[2])));var p=c.__original;if(null!=c[2]){if(i.copy(s[0],p[0]),i.copy(s[1],p[2]),i.copy(s[2],p[1]),h&&"none"!==h){var g=Object(o.getSymbolSize)(t.node1),v=d(s,p[0],g*e);a(s[0][0],s[1][0],s[2][0],v,n),s[0][0]=n[3],s[1][0]=n[4],a(s[0][1],s[1][1],s[2][1],v,n),s[0][1]=n[3],s[1][1]=n[4]}if(f&&"none"!==f){g=Object(o.getSymbolSize)(t.node2),v=d(s,p[1],g*e);a(s[0][0],s[1][0],s[2][0],v,n),s[1][0]=n[1],s[2][0]=n[2],a(s[0][1],s[1][1],s[2][1],v,n),s[1][1]=n[1],s[2][1]=n[2]}i.copy(c[0],s[0]),i.copy(c[1],s[2]),i.copy(c[2],s[1])}else{if(i.copy(l[0],p[0]),i.copy(l[1],p[1]),i.sub(u,l[1],l[0]),i.normalize(u,u),h&&"none"!==h){g=Object(o.getSymbolSize)(t.node1);i.scaleAndAdd(l[0],l[0],u,g*e)}if(f&&"none"!==f){g=Object(o.getSymbolSize)(t.node2);i.scaleAndAdd(l[1],l[1],u,-g*e)}i.copy(c[0],l[0]),i.copy(c[1],l[1])}}))}},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(40),o=n(245),a=n(0),s=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(i.default);Object(a.mixin)(s,o.AxisModelCommonMixin.prototype),e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"BACKGROUND_STYLE",(function(){return r})),n.d(e,"LINE_STYLE",(function(){return i})),n.d(e,"AREA_STYLE",(function(){return o}));var r={opacity:0},i={stroke:"#C5C5C5",strokeOpacity:.85},o={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";n.r(e),n.d(e,"DEFAULT_HANDLER_STYLE",(function(){return o})),n.d(e,"Handler",(function(){return a}));var r=n(2),i=n(88),o={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.__assign)(Object(r.__assign)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:o})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:s,opacity:l,cursor:u}});var c=1/3*n,h=2/3*n,d=1/4*r,f=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:d,x2:c,y2:f,stroke:a,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:d,x2:h,y2:f,stroke:a,cursor:u}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(i.default);e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"growInX",(function(){return i})),n.d(e,"growInY",(function(){return o})),n.d(e,"growInXY",(function(){return a}));var r=n(759);function i(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"x")}function o(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"y")}function a(t,e,n){var i=n.coordinate,o=n.minYPoint;Object(r.doScaleAnimate)(t,e,i,o,"xy")}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformShape",(function(){return o})),n.d(e,"doScaleAnimate",(function(){return a}));var r=n(2),i=n(25);function o(t,e,n){var o,a=Object(r.__read)(e,2),s=a[0],l=a[1];return t.applyToMatrix([s,l,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),o=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),o}function a(t,e,n,r,i){var a,s,l=n.start,u=n.end,c=n.getWidth(),h=n.getHeight();"y"===i?(a=l.x+c/2,s=r.yl.x?r.x:l.x,s=l.y+h/2):"xy"===i&&(n.isPolar?(a=n.getCenter().x,s=n.getCenter().y):(a=(l.x+u.x)/2,s=(l.y+u.y)/2));var d=o(t,[a,s],i);t.animate({matrix:d},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getMedian",(function(){return o})),n.d(e,"getMean",(function(){return a}));var r=n(2),i=n(1);function o(t){var e=Object(r.__spreadArray)([],Object(r.__read)(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function a(t){var e=Object(i.reduce)(t,(function(t,e){return t+(isNaN(e)||!Object(i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(1603),a=n(206),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return Object(r.__extends)(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)Object(i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var o=t.getItemsByState("active"),a=!0;Object(i.each)(o,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Object(o.clearList)(t.list);else{var e=this.getAllowComponents();Object(i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(a.default);e.default=s},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(400),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.filterView=function(t,e,n){var r=Object(a.getSilbings)(t);Object(i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Object(a.getSilbings)(t);Object(i.each)(e,(function(t){t.render(!0)}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getQuadrantDefaultConfig",(function(){return l})),n.d(e,"getPath",(function(){return u})),n.d(e,"getMeta",(function(){return c}));var r=n(2),i=n(378),o=n(1),a=n(4),s={exp:i.regressionExp,linear:i.regressionLinear,loess:i.regressionLoess,log:i.regressionLog,poly:i.regressionPoly,pow:i.regressionPow,quad:i.regressionQuad};function l(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}var u=function(t){var e,n=t.options,r=n.xField,i=n.yField,l=n.data,u=n.regressionLine,c=u.type,h=void 0===c?"linear":c,d=u.algorithm;d?e=Object(o.isArray)(d)?d:d(l):e=s[h]().x((function(t){return t[r]})).y((function(t){return t[i]}))(l);return function(t,e){var n=e.view,r=e.options,i=r.xField,o=r.yField,s=n.getScaleByField(i),l=n.getScaleByField(o),u=t.map((function(t){return n.getCoordinate().convert({x:s.scale(t[0]),y:l.scale(t[1])})}));return Object(a.getSplinePath)(u,!1)}(e,t)},c=function(t){var e,n=t.meta,i=void 0===n?{}:n,a=t.xField,s=t.yField,l=t.data,u=l[0][a],c=l[0][s],h=u>0,d=c>0;function f(t,e){var n=Object(o.get)(i,[t]);function r(t){return Object(o.get)(n,t)}var a={};return"x"===e?(Object(o.isNumber)(u)&&(Object(o.isNumber)(r("min"))||(a.min=h?0:2*u),Object(o.isNumber)(r("max"))||(a.max=h?2*u:0)),a):(Object(o.isNumber)(c)&&(Object(o.isNumber)(r("min"))||(a.min=d?0:2*c),Object(o.isNumber)(r("max"))||(a.max=d?2*c:0)),a)}return Object(r.__assign)(Object(r.__assign)({},i),((e={})[a]=Object(r.__assign)(Object(r.__assign)({},i[a]),f(a,"x")),e[s]=Object(r.__assign)(Object(r.__assign)({},i[s]),f(s,"y")),e))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getColorMap",(function(){return c})),n.d(e,"layoutVennData",(function(){return h})),n.d(e,"islegalSets",(function(){return d}));var r=n(2),i=n(1),o=n(1656),a=n(4),s=n(869),l=n(870),u=n(177),c=Object(i.memoize)((function(t,e,n,r){var i=new Map,a=t.length;return e.forEach((function(e,s){if(1===e[r].length)i.set(e[u.ID_FIELD],t[(s+a)%a]);else{var l=e[r].map((function(t){return i.get(t)}));i.set(e[u.ID_FIELD],l.slice(1).reduce((function(t,e){return Object(o.blend)(t,e,n)}),l[0]))}})),i}),(function(){for(var t=[],e=0;e0&&void 0!==arguments[0]?arguments[0]:{},i=n.width,s=n.height,u=n.latitude,h=void 0===u?0:u,d=n.longitude,f=void 0===d?0:d,p=n.zoom,g=void 0===p?0:p,v=n.pitch,m=void 0===v?0:v,y=n.bearing,b=void 0===y?0:y,_=n.altitude,x=void 0===_?1.5:_,w=n.nearZMultiplier,O=n.farZMultiplier;Object(r.default)(this,e),i=i||1,s=s||1;var S=Object(c.zoomToScale)(g);x=Math.max(.75,x);var C=Object(c.lngLatToWorld)([f,h],S);C[2]=0;var E=Object(c.getProjectionMatrix)({width:i,height:s,pitch:m,bearing:b,altitude:x,nearZMultiplier:w||1/s,farZMultiplier:O||1.01}),T=Object(c.getViewMatrix)({height:s,center:C,pitch:m,bearing:b,altitude:x,flipY:!0});return(t=Object(o.default)(this,Object(a.default)(e).call(this,{width:i,height:s,viewMatrix:T,projectionMatrix:E}))).latitude=h,t.longitude=f,t.zoom=g,t.pitch=m,t.bearing=b,t.altitude=x,t.scale=S,t.center=C,t.pixelsPerMeter=Object(c.getDistanceScales)(Object(l.default)(Object(l.default)(t))).pixelsPerMeter[2],Object.freeze(Object(l.default)(Object(l.default)(t))),t}return Object(s.default)(e,t),Object(i.default)(e,[{key:"projectFlat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.lngLatToWorld)(t,e)}},{key:"unprojectFlat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.scale;return Object(c.worldToLngLat)(t,e)}},{key:"getMapCenterByLngLatPosition",value:function(t){var e=t.lngLat,n=t.pos,r=Object(c.pixelsToWorld)(n,this.pixelUnprojectionMatrix),i=Object(c.lngLatToWorld)(e,this.scale),o=d.add([],i,d.negate([],r)),a=d.add([],this.center,o);return Object(c.worldToLngLat)(a,this.scale)}},{key:"getLocationAtPoint",value:function(t){var e=t.lngLat,n=t.pos;return this.getMapCenterByLngLatPosition({lngLat:e,pos:n})}},{key:"fitBounds",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.width,i=this.height,o=Object(h.default)(Object.assign({width:r,height:i,bounds:t},n)),a=o.longitude,s=o.latitude,l=o.zoom;return new e({width:r,height:i,longitude:a,latitude:s,zoom:l})}}]),e}(u.default)},function(t,e,n){"use strict";n.r(e);var r=n(1230);n.d(e,"MousePanHandler",(function(){return r.default}));var i=n(1231);n.d(e,"MouseRotateHandler",(function(){return i.default}));var o=n(1232);n.d(e,"MousePitchHandler",(function(){return o.default}))},function(t,e,n){"use strict";(function(e){var r=n(222),i=n(1794),o=n(896),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var l,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==e&&"[object process]"===Object.prototype.toString.call(e))&&(l=n(897)),l),transformRequest:[function(t,e){return i(e,"Accept"),i(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)||e&&"application/json"===e["Content-Type"]?(s(e,"application/json"),function(t,e,n){if(r.isString(t))try{return(e||JSON.parse)(t),r.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(n||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional,n=e&&e.silentJSONParsing,i=e&&e.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(a){if("SyntaxError"===t.name)throw o(t,this,"E_JSON_PARSE");throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(t){u.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){u.headers[t]=r.merge(a)})),t.exports=u}).call(this,n(416))},function(t,e,n){"use strict";e.__esModule=!0,e.i18n=e.use=e.t=void 0;var r=a(n(1809)),i=a(n(200)),o=a(n(1810));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(1811)).default)(i.default),l=r.default,u=!1,c=function(){var t=Object.getPrototypeOf(this||i.default).$t;if("function"==typeof t&&i.default.locale)return u||(u=!0,i.default.locale(i.default.config.lang,(0,o.default)(l,i.default.locale(i.default.config.lang)||{},{clone:!0}))),t.apply(this,arguments)},h=e.t=function(t,e){var n=c.apply(this,arguments);if(null!=n)return n;for(var r=t.split("."),i=l,o=0,a=r.length;o1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;l||(l=document.createElement("textarea"),document.body.appendChild(l));var r=h(t),i=r.paddingSize,o=r.borderSize,a=r.boxSizing,s=r.contextStyle;l.setAttribute("style",s+";"+u),l.value=t.value||t.placeholder||"";var c=l.scrollHeight,d={};"border-box"===a?c+=o:"content-box"===a&&(c-=i),l.value="";var f=l.scrollHeight-i;if(null!==e){var p=f*e;"border-box"===a&&(p=p+i+o),c=Math.max(p,c),d.minHeight=p+"px"}if(null!==n){var g=f*n;"border-box"===a&&(g=g+i+o),c=Math.min(g,c)}return d.height=c+"px",l.parentNode&&l.parentNode.removeChild(l),l=null,d}var f=n(9),p=n.n(f),g=n(21),v={name:"ElInput",componentName:"ElInput",mixins:[o.a,s.a],inheritAttrs:!1,inject:{elForm:{default:""},elFormItem:{default:""}},data:function(){return{textareaCalcStyle:{},hovering:!1,focused:!1,isComposing:!1,passwordVisible:!1}},props:{value:[String,Number],size:String,resize:String,form:String,disabled:Boolean,readonly:Boolean,type:{type:String,default:"text"},autosize:{type:[Boolean,Object],default:!1},autocomplete:{type:String,default:"off"},autoComplete:{type:String,validator:function(t){return!0}},validateEvent:{type:Boolean,default:!0},suffixIcon:String,prefixIcon:String,label:String,clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},tabindex:String},computed:{_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},validateState:function(){return this.elFormItem?this.elFormItem.validateState:""},needStatusIcon:function(){return!!this.elForm&&this.elForm.statusIcon},validateIcon:function(){return{validating:"el-icon-loading",success:"el-icon-circle-check",error:"el-icon-circle-close"}[this.validateState]},textareaStyle:function(){return p()({},this.textareaCalcStyle,{resize:this.resize})},inputSize:function(){return this.size||this._elFormItemSize||(this.$ELEMENT||{}).size},inputDisabled:function(){return this.disabled||(this.elForm||{}).disabled},nativeInputValue:function(){return null===this.value||void 0===this.value?"":String(this.value)},showClear:function(){return this.clearable&&!this.inputDisabled&&!this.readonly&&this.nativeInputValue&&(this.focused||this.hovering)},showPwdVisible:function(){return this.showPassword&&!this.inputDisabled&&!this.readonly&&(!!this.nativeInputValue||this.focused)},isWordLimitVisible:function(){return this.showWordLimit&&this.$attrs.maxlength&&("text"===this.type||"textarea"===this.type)&&!this.inputDisabled&&!this.readonly&&!this.showPassword},upperLimit:function(){return this.$attrs.maxlength},textLength:function(){return"number"==typeof this.value?String(this.value).length:(this.value||"").length},inputExceed:function(){return this.isWordLimitVisible&&this.textLength>this.upperLimit}},watch:{value:function(t){this.$nextTick(this.resizeTextarea),this.validateEvent&&this.dispatch("ElFormItem","el.form.change",[t])},nativeInputValue:function(){this.setNativeInputValue()},type:function(){var t=this;this.$nextTick((function(){t.setNativeInputValue(),t.resizeTextarea(),t.updateIconOffset()}))}},methods:{focus:function(){this.getInput().focus()},blur:function(){this.getInput().blur()},getMigratingConfig:function(){return{props:{icon:"icon is removed, use suffix-icon / prefix-icon instead.","on-icon-click":"on-icon-click is removed."},events:{click:"click is removed."}}},handleBlur:function(t){this.focused=!1,this.$emit("blur",t),this.validateEvent&&this.dispatch("ElFormItem","el.form.blur",[this.value])},select:function(){this.getInput().select()},resizeTextarea:function(){if(!this.$isServer){var t=this.autosize;if("textarea"===this.type)if(t){var e=t.minRows,n=t.maxRows;this.textareaCalcStyle=d(this.$refs.textarea,e,n)}else this.textareaCalcStyle={minHeight:d(this.$refs.textarea).minHeight}}},setNativeInputValue:function(){var t=this.getInput();t&&t.value!==this.nativeInputValue&&(t.value=this.nativeInputValue)},handleFocus:function(t){this.focused=!0,this.$emit("focus",t)},handleCompositionStart:function(t){this.$emit("compositionstart",t),this.isComposing=!0},handleCompositionUpdate:function(t){this.$emit("compositionupdate",t);var e=t.target.value,n=e[e.length-1]||"";this.isComposing=!Object(g.isKorean)(n)},handleCompositionEnd:function(t){this.$emit("compositionend",t),this.isComposing&&(this.isComposing=!1,this.handleInput(t))},handleInput:function(t){this.isComposing||t.target.value!==this.nativeInputValue&&(this.$emit("input",t.target.value),this.$nextTick(this.setNativeInputValue))},handleChange:function(t){this.$emit("change",t.target.value)},calcIconOffset:function(t){var e=[].slice.call(this.$el.querySelectorAll(".el-input__"+t)||[]);if(e.length){for(var n=null,r=0;r=e.length)break;i=e[r++]}else{if((r=e.next()).done)break;i=r.value}var o=i.target.__resizeListeners__||[];o.length&&o.forEach((function(t){t()}))}};e.addResizeListener=function(t,e){s||(t.__resizeListeners__||(t.__resizeListeners__=[],t.__ro__=new o.default((0,a.debounce)(16,l)),t.__ro__.observe(t)),t.__resizeListeners__.push(e))},e.removeResizeListener=function(t,e){t&&t.__resizeListeners__&&(t.__resizeListeners__.splice(t.__resizeListeners__.indexOf(e),1),t.__resizeListeners__.length||t.__ro__.disconnect())}},function(t,e){t.exports=function(t,e,n,r){var i,o=0;return"boolean"!=typeof e&&(r=n,n=e,e=void 0),function(){var a=this,s=Number(new Date)-o,l=arguments;function u(){o=Number(new Date),n.apply(a,l)}function c(){i=void 0}r&&!i&&u(),i&&clearTimeout(i),void 0===r&&s>t?u():!0!==e&&(i=setTimeout(r?c:u,void 0===r?t-s:t))}}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=132)}({132:function(t,e,n){"use strict";n.r(e);var r=n(16),i=n(38),o=n.n(i),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(t){var e=t.move,n=t.size,r=t.bar,i={},o="translate"+r.axis+"("+e+"%)";return i[r.size]=n,i.transform=o,i.msTransform=o,i.webkitTransform=o,i}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(t){var e=this.size,n=this.move,r=this.bar;return t("div",{class:["el-scrollbar__bar","is-"+r.key],on:{mousedown:this.clickTrackHandler}},[t("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:e,move:n,bar:r})})])},methods:{clickThumbHandler:function(t){t.ctrlKey||2===t.button||(this.startDrag(t),this[this.bar.axis]=t.currentTarget[this.bar.offset]-(t[this.bar.client]-t.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(t){var e=100*(Math.abs(t.target.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-this.$refs.thumb[this.bar.offset]/2)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=e*this.wrap[this.bar.scrollSize]/100},startDrag:function(t){t.stopImmediatePropagation(),this.cursorDown=!0,Object(s.on)(document,"mousemove",this.mouseMoveDocumentHandler),Object(s.on)(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(t){if(!1!==this.cursorDown){var e=this[this.bar.axis];if(e){var n=100*(-1*(this.$el.getBoundingClientRect()[this.bar.direction]-t[this.bar.client])-(this.$refs.thumb[this.bar.offset]-e))/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=n*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(t){this.cursorDown=!1,this[this.bar.axis]=0,Object(s.off)(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s.off)(document,"mouseup",this.mouseUpDocumentHandler)}},h={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(t){var e=o()(),n=this.wrapStyle;if(e){var r="-"+e+"px",i="margin-bottom: "+r+"; margin-right: "+r+";";Array.isArray(this.wrapStyle)?(n=Object(a.toObject)(this.wrapStyle)).marginRight=n.marginBottom=r:"string"==typeof this.wrapStyle?n+=i:n=i}var s=t(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=t("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",e?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[t("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,t(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),t(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],t("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var t=this.wrap;this.moveY=100*t.scrollTop/t.clientHeight,this.moveX=100*t.scrollLeft/t.clientWidth},update:function(){var t,e,n=this.wrap;n&&(t=100*n.clientHeight/n.scrollHeight,e=100*n.clientWidth/n.scrollWidth,this.sizeHeight=t<100?t+"%":"",this.sizeWidth=e<100?e+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(r.addResizeListener)(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(r.removeResizeListener)(this.$refs.resize,this.update)},install:function(t){t.component(h.name,h)}};e.default=h},16:function(t,e){t.exports=n(772)},2:function(t,e){t.exports=n(323)},3:function(t,e){t.exports=n(284)},38:function(t,e){t.exports=n(770)}})},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){return{methods:{focus:function(){this.$refs[t].focus()}}}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(o.default.prototype.$isServer)return;if(!e)return void(t.scrollTop=0);var n=[],r=e.offsetParent;for(;r&&t!==r&&t.contains(r);)n.push(r),r=r.offsetParent;var i=e.offsetTop+n.reduce((function(t,e){return t+e.offsetTop}),0),a=i+e.offsetHeight,s=t.scrollTop,l=s+t.clientHeight;il&&(t.scrollTop=a-t.clientHeight)};var r,i=n(200),o=(r=i)&&r.__esModule?r:{default:r}},function(t,e,n){"use strict";e.__esModule=!0;var r=r||{};r.Utils=r.Utils||{},r.Utils.focusFirstDescendant=function(t){for(var e=0;e=0;e--){var n=t.childNodes[e];if(r.Utils.attemptFocus(n)||r.Utils.focusLastDescendant(n))return!0}return!1},r.Utils.attemptFocus=function(t){if(!r.Utils.isFocusable(t))return!1;r.Utils.IgnoreUtilFocusChanges=!0;try{t.focus()}catch(t){}return r.Utils.IgnoreUtilFocusChanges=!1,document.activeElement===t},r.Utils.isFocusable=function(t){if(t.tabIndex>0||0===t.tabIndex&&null!==t.getAttribute("tabIndex"))return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&"ignore"!==t.rel;case"INPUT":return"hidden"!==t.type&&"file"!==t.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},r.Utils.triggerEvent=function(t,e){var n=void 0;n=/^mouse|click/.test(e)?"MouseEvents":/^key/.test(e)?"KeyboardEvent":"HTMLEvents";for(var r=document.createEvent(n),i=arguments.length,o=Array(i>2?i-2:0),a=2;a0?r:n)(t)}},function(t,e,n){var r=n(783)("keys"),i=n(580);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(502),i=n(346),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(579)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(780);t.exports=function(t){return Object(r(t))}},function(t,e){t.exports={}},function(t,e,n){var r=n(418).f,i=n(381),o=n(420)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(420)},function(t,e,n){var r=n(346),i=n(502),o=n(579),a=n(789),s=n(418).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){"use strict";n.r(e),n.d(e,"getTextRect",(function(){return i}));var r=n(66);function i(t,e,n,i,o,a,s,l){return new r.default({style:{text:t,font:e,align:n,verticalAlign:i,padding:o,rich:a,overflow:s?"truncate":null,lineHeight:l}}).getBoundingRect()}},function(t,e,n){"use strict";n.r(e);var r=n(59),i=n(97),o=n(35),a=[],s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=!0,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return Object(r.__extends)(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(t,e){e?this._temporaryDisplayables.push(t):this._displayables.push(t),this.markRedraw()},e.prototype.addDisplayables=function(t,e){e=e||!1;for(var n=0;n0;)c-=2*Math.PI;var h=o-t+(c=c/Math.PI/2*n)-2*t;u.push(["M",h,e]);for(var d=0,f=0;f0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,s=a.x,l=a.y,u=e.getRadius()*n;return Math.sqrt(Math.pow(s-i,2)+Math.pow(l-o,2))n&&(e=Math.floor(e/137)),e=131*e+t.charCodeAt(r);return e}function i(t){for(var e=5381,n=(t=t.toString()).length;n;)e=33*e^t.charCodeAt(--n);return e>>>0}n.r(e),n.d(e,"BKDRHash",(function(){return r})),n.d(e,"djb2hash",(function(){return i}))},function(t,e,n){var r=n(515),i=n(285);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(348).Symbol;t.exports=r},function(t,e,n){var r=n(1184);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(802),i=n(1188);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"clone",(function(){return _})),n.d(e,"split",(function(){return x}));var r=n(232),i=n(35),o=n(52),a=n(0),s=n(165),l=n(70),u=n(174),c=n(544),h=n(248);function d(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),h=d([l,u],c?0:1,e),f=(c?s:u)/h.length,p=0;p1?null:new o.default(g*u+t,g*c+e)}function v(t,e,n){var r=new o.default;o.default.sub(r,n,e),r.normalize();var i=new o.default;return o.default.sub(i,t,e),i.dot(r)}function m(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function y(t){var e=t.points,n=[],a=[];Object(r.fromPoints)(e,n,a);var s=new i.default(n[0],n[1],a[0]-n[0],a[1]-n[1]),l=s.width,u=s.height,c=s.x,h=s.y,d=new o.default,f=new o.default;return l>u?(d.x=f.x=c+l/2,d.y=h,f.y=h+u):(d.y=f.y=h+u/2,d.x=c,f.x=c+l),function(t,e,n){for(var r=t.length,i=[],o=0;oi,a=d([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",h=t[s]/a.length,f=0;f-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):Object(o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(i.each)(e,(function(t,n){e[n]=Object(o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(n(458).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(121),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(r.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=Object(i.log)(n,this.max),o=this.rangeMin(),a=this.rangeMax()-o,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(r-(e=Object(i.log)(n,s/n)))*a;if(t=0?1:-1;return Math.pow(a,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(Object(i.calBase)(r,t)-Object(i.calBase)(r,n))/(Object(i.calBase)(r,e)-Object(i.calBase)(r,n))},e}(n(357).default);e.default=o},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(101),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(r.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):Object(o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.isString)(n)||Object(i.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return Object(o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if(Object(i.isNil)(e)&&Object(i.isNumber)(e)||(this.min=this.translate(this.min)),Object(i.isNil)(n)&&Object(i.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],a=1/0,s=a,l=0;Object(i.each)(t,(function(t){var e=Object(o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(s=a,a=e):s>e&&(s=e),l1&&(this.minTickInterval=s-a),Object(i.isNil)(e)&&(this.min=a),Object(i.isNil)(n)&&(this.max=l)}},e}(n(525).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(r.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(n(526).default);e.default=i},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(r.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(n(288).default);e.default=o},function(t,e,n){"use strict";n.r(e),n.d(e,"getInteractionCfg",(function(){return a}));var r=n(15),i=n(1633);function o(t){return t.isInPlot()}function a(t,e,n){var r=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o,action:["brush:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush:filter","brush:end",r+"-mask:end",r+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o,action:["brush-x:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-x:filter","brush-x:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o,action:["brush-y:start",r+"-mask:start",r+"-mask:show"],arg:[null,{maskStyle:null==n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:o,action:[r+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:o,action:["brush-y:filter","brush-y:end",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[r+"-mask:start",r+"-mask:show"],arg:[{maskStyle:null==n?void 0:n.style}]},{trigger:"mask:dragstart",action:[r+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[r+"-mask:resize"]},{trigger:"mask:drag",action:[r+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[r+"-mask:end"]},{trigger:"mask:dragend",action:[r+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",r+"-mask:end",r+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",r+"-mask:hide"]}]};default:return{}}}Object(r.registerAction)("brush-reset-button",i.ButtonAction,{name:"brush-reset-button"}),Object(r.registerInteraction)("filter-action",{}),Object(r.registerInteraction)("brush",a("brush")),Object(r.registerInteraction)("brush-highlight",a("brush-highlight")),Object(r.registerInteraction)("brush-x",a("brush-x","x-rect")),Object(r.registerInteraction)("brush-y",a("brush-y","y-rect")),Object(r.registerInteraction)("brush-x-highlight",a("brush-x-highlight","x-rect")),Object(r.registerInteraction)("brush-y-highlight",a("brush-y-highlight","y-rect"))},function(t,e,n){"use strict";n.r(e),n.d(e,"PIE_STATISTIC",(function(){return a}));var r=n(15),i=n(1636),o=n(1637),a="pie-statistic";Object(r.registerAction)(a,o.StatisticAction),Object(r.registerInteraction)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(r.registerAction)("pie-legend",i.PieLegendAction),Object(r.registerInteraction)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},function(t,e,n){"use strict";n.r(e);var r=n(725),i=n(290);e.default=function(){var t=1,e=1,n=0,o=!1;function a(a){var s=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/s,a.eachBefore(function(t,e){return function(r){r.children&&Object(i.default)(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var o=r.x0,a=r.y0,s=r.x1-n,l=r.y1-n;se&&c>r&&c>o&&c>s||c1&&(h=void 0,h=f[0],f[0]=f[1],f[1]=h),m=l.cubicAt(e,r,o,s,f[0]),v>1&&(y=l.cubicAt(e,r,o,s,f[1]))),2===v?_e&&s>r&&s>o||s=0&&c<=1){for(var h=0,f=l.quadraticAt(e,r,o,c),p=0;pn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);d[0]=-l,d[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=h-1e-4){r=0,i=h;var c=o?1:-1;return a>=d[0]+t&&a<=d[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=h,i+=h);for(var p=0,g=0;g<2;g++){var v=d[g];if(v+t>a){var m=Math.atan2(s,v);c=o?1:-1;m<0&&(m=h+m),(m>=r&&m<=i||m+h>=r&&m+h<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),p+=c)}}return p}function m(t,e,n,r,l){for(var h,d,f,m,y=t.data,b=t.len(),_=0,x=0,w=0,O=0,S=0,C=0;C1&&(n||(_+=Object(u.default)(x,w,O,S,r,l))),T&&(O=x=y[C],S=w=y[C+1]),E){case c.M:x=O=y[C++],w=S=y[C++];break;case c.L:if(n){if(i.containStroke(x,w,y[C],y[C+1],e,r,l))return!0}else _+=Object(u.default)(x,w,y[C],y[C+1],r,l)||0;x=y[C++],w=y[C++];break;case c.C:if(n){if(o.containStroke(x,w,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],e,r,l))return!0}else _+=p(x,w,y[C++],y[C++],y[C++],y[C++],y[C],y[C+1],r,l)||0;x=y[C++],w=y[C++];break;case c.Q:if(n){if(a.containStroke(x,w,y[C++],y[C++],y[C],y[C+1],e,r,l))return!0}else _+=g(x,w,y[C++],y[C++],y[C],y[C+1],r,l)||0;x=y[C++],w=y[C++];break;case c.A:var M=y[C++],A=y[C++],I=y[C++],j=y[C++],k=y[C++],P=y[C++];C+=1;var L=!!(1-y[C++]);h=Math.cos(k)*I+M,d=Math.sin(k)*j+A,T?(O=h,S=d):_+=Object(u.default)(x,w,h,d,r,l);var D=(r-M)*j/I+M;if(n){if(s.containStroke(M,A,j,k,k+P,L,e,D,l))return!0}else _+=v(M,A,j,k,k+P,L,D,l);x=Math.cos(k+P)*I+M,w=Math.sin(k+P)*j+A;break;case c.R:if(O=x=y[C++],S=w=y[C++],h=O+y[C++],d=S+y[C++],n){if(i.containStroke(O,S,h,S,e,r,l)||i.containStroke(h,S,h,d,e,r,l)||i.containStroke(h,d,O,d,e,r,l)||i.containStroke(O,d,O,S,e,r,l))return!0}else _+=Object(u.default)(h,S,h,d,r,l),_+=Object(u.default)(O,d,O,S,r,l);break;case c.Z:if(n){if(i.containStroke(x,w,O,S,e,r,l))return!0}else _+=Object(u.default)(x,w,O,S,r,l);x=O,w=S}}return n||(f=w,m=S,Math.abs(f-m)<1e-4)||(_+=Object(u.default)(x,w,O,S,r,l)||0),0!==_}function y(t,e,n){return m(t,0,!1,e,n)}function b(t,e,n,r){return m(t,e,!0,n,r)}},function(t,e,n){"use strict";n.r(e);var r=n(0),i=n(364),o=n(103),a=n(654),s=n(656),l=n(10),u=function(){function t(t,e,n,i){this._stageTaskMap=Object(r.createHashMap)(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),r=n.context,i=!e&&n.progressiveEnabled&&(!r||r.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=r&&r.modDataCount;return{step:i,modBy:null!=o?Math.ceil(o/i):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),r=t.getData().count(),i=n.progressiveEnabled&&e.incrementalPrepareRender&&r>=n.threshold,o=t.get("large")&&r>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?r:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Object(r.createHashMap)();t.eachSeries((function(t){var r=t.getProgressive(),i=t.uid;n.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:r&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;Object(r.each)(this._allHandlers,(function(i){var o=t.get(i.uid)||t.set(i.uid,{});Object(r.assert)(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,o,e,n),i.overallReset&&this._createOverallStageTask(i,o,e,n)}),this)},t.prototype.prepareView=function(t,e,n,r){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=n,o.api=r,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var o=!1,a=this;function s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}Object(r.each)(t,(function(t,r){if(!i.visualType||i.visualType===t.visualType){var l=a._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each((function(t){s(i,t)&&(t.dirty(),h=!0)})),h&&c.dirty(),a.updatePayload(c,n);var f=a.getPerformArgs(c,i.block);d.each((function(t){t.perform(f)})),c.perform(f)&&(o=!0)}else u&&u.each((function(r,l){s(i,r)&&r.dirty();var u=a.getPerformArgs(r,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(r.context.model),a.updatePayload(r,n),r.perform(u)&&(o=!0)}))}})),this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,o){var a=this,s=e.seriesTaskMap,l=e.seriesTaskMap=Object(r.createHashMap)(),u=t.seriesType,c=t.getTargetSeries;function h(e){var r=e.uid,u=l.set(r,s&&s.get(r)||Object(i.createTask)({plan:p,reset:g,count:y}));u.context={model:e,ecModel:n,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(e,u)}t.createOnAllSeries?n.eachRawSeries(h):u?n.eachRawSeriesByType(u,h):c&&c(n,o).each(h)},t.prototype._createOverallStageTask=function(t,e,n,o){var a=this,s=e.overallTask=e.overallTask||Object(i.createTask)({reset:c});s.context={ecModel:n,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,u=s.agentStubMap=Object(r.createHashMap)(),d=t.seriesType,p=t.getTargetSeries,g=!0,v=!1;function m(t){var e=t.uid,n=u.set(e,l&&l.get(e)||(v=!0,Object(i.createTask)({reset:h,onDirty:f})));n.context={model:t,overallProgress:g},n.agent=s,n.__block=g,a._pipe(t,n)}Object(r.assert)(!t.createOnAllSeries,""),d?n.eachRawSeriesByType(d,m):p?p(n,o).each(m):(g=!1,Object(r.each)(n.getSeries(),m)),v&&s.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=e),r.tail&&r.tail.pipe(e),r.tail=e,e.__idxInPipeline=r.count++,e.__pipeline=r},t.wrapStageHandler=function(t,e){return Object(r.isFunction)(t)&&(t={overallReset:t,seriesType:b(t)}),t.uid=Object(o.getUID)("stageHandler"),e&&(t.visualType=e),t},t}();function c(t){t.overallReset(t.ecModel,t.api,t.payload)}function h(t){return t.overallProgress&&d}function d(){this.agent.dirty(),this.getDownstream().dirty()}function f(){this.agent&&this.agent.dirty()}function p(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function g(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Object(l.normalizeToArray)(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?Object(r.map)(e,(function(t,e){return m(e)})):v}var v=m(0);function m(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;ov?d(t,null==n[b+1]?null:n[b+1].elm,n,p,b):f(t,e,l,v))}(n,r,i):l(i)?(l(t.text)&&o.setTextContent(n,""),d(n,null,i,0,i.length-1)):l(r)?f(n,r,0,r.length-1):l(t.text)&&o.setTextContent(n,""):t.text!==e.text&&(l(r)&&f(n,r,0,r.length-1),o.setTextContent(n,e.text)))}function v(t,e){if(c(t,e))g(t,e);else{var n=t.elm,r=o.parentNode(n);h(e),null!==r&&(o.insertBefore(r,e.elm,o.nextSibling(n)),f(r,[t],0,0))}return e}},function(t,e,n){"use strict";n.r(e),n.d(e,"createSectorCalculateTextPosition",(function(){return o})),n.d(e,"setSectorTextRotation",(function(){return a}));var r=n(55),i=n(0);function o(t,e){var n=(e=e||{}).isRoundCap;return function(e,i,o){var a=i.position;if(!a||a instanceof Array)return Object(r.calculateTextPosition)(e,i,o);var u=t(a),c=null!=i.distance?i.distance:5,h=this.shape,d=h.cx,f=h.cy,p=h.r,g=h.r0,v=(p+g)/2,m=h.startAngle,y=h.endAngle,b=(m+y)/2,_=n?Math.abs(p-g)/2:0,x=Math.cos,w=Math.sin,O=d+p*x(m),S=f+p*w(m),C="left",E="top";switch(u){case"startArc":O=d+(g-c)*x(b),S=f+(g-c)*w(b),C="center",E="top";break;case"insideStartArc":O=d+(g+c)*x(b),S=f+(g+c)*w(b),C="center",E="bottom";break;case"startAngle":O=d+v*x(m)+s(m,c+_,!1),S=f+v*w(m)+l(m,c+_,!1),C="right",E="middle";break;case"insideStartAngle":O=d+v*x(m)+s(m,-c+_,!1),S=f+v*w(m)+l(m,-c+_,!1),C="left",E="middle";break;case"middle":O=d+v*x(b),S=f+v*w(b),C="center",E="middle";break;case"endArc":O=d+(p+c)*x(b),S=f+(p+c)*w(b),C="center",E="bottom";break;case"insideEndArc":O=d+(p-c)*x(b),S=f+(p-c)*w(b),C="center",E="top";break;case"endAngle":O=d+v*x(y)+s(y,c+_,!0),S=f+v*w(y)+l(y,c+_,!0),C="left",E="middle";break;case"insideEndAngle":O=d+v*x(y)+s(y,-c+_,!0),S=f+v*w(y)+l(y,-c+_,!0),C="right",E="middle";break;default:return Object(r.calculateTextPosition)(e,i,o)}return(e=e||{}).x=O,e.y=S,e.align=C,e.verticalAlign=E,e}}function a(t,e,n,r){if(Object(i.isNumber)(r))t.setTextConfig({rotation:r});else if(Object(i.isArray)(e))t.setTextConfig({rotation:0});else{var o,a=t.shape,s=a.clockwise?a.startAngle:a.endAngle,l=a.clockwise?a.endAngle:a.startAngle,u=(s+l)/2,c=n(e);switch(c){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":o=u;break;case"startAngle":case"insideStartAngle":o=s;break;case"endAngle":case"insideEndAngle":o=l;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-o;"middle"===c&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}function s(t,e,n){return e*Math.sin(t)*(n?-1:1)}function l(t,e,n){return e*Math.cos(t)*(n?1:-1)}},function(t,e,n){"use strict";n.r(e),n.d(e,"CartesianAxisModel",(function(){return l}));var r=n(5),i=n(0),o=n(40),a=n(245),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",s.SINGLE_REFERRING).models[0]},e.type="cartesian2dAxis",e}(o.default);i.mixin(l,a.AxisModelCommonMixin),e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"CartesianXAxisView",(function(){return m})),n.d(e,"CartesianYAxisView",(function(){return y}));var r=n(5),i=n(0),o=n(39),a=n(14),s=n(144),l=n(170),u=n(205),c=n(311),h=n(481),d=n(113),f=["axisLine","axisTickLabel","axisName"],p=["splitArea","splitLine","minorSplitLine"],g=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return Object(r.__extends)(e,t),e.prototype.render=function(e,n,r,s){this.group.removeAll();var u=this._axisGroup;if(this._axisGroup=new o.default,this.group.add(this._axisGroup),e.get("show")){var h=e.getCoordSysModel(),g=c.layout(h,e),m=new l.default(e,i.extend({handleAutoShown:function(t){for(var n=h.coordinateSystem.getCartesians(),r=0;r=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&null!=l&&null!=u&&(h=F(c,{x:0,y:0,width:l,height:u}),!e.ignoreViewBox)){var p=r;(r=new i.default).add(p),p.scaleX=p.scaleY=h.scale,p.x=h.x,p.y=h.y}return e.ignoreRootClip||null==l||null==u||r.setClipPath(new s.default({shape:{x:0,y:0,width:l,height:u}})),{root:r,width:l,height:u,viewBoxRect:c,viewBoxTransform:h,named:o}},t.prototype._parseNode=function(t,e,n,i,o,a){var s,l=t.nodeName.toLowerCase(),u=i;if("defs"===l&&(o=!0),"text"===l&&(a=!0),"defs"===l||"switch"===l)s=e;else{if(!o){var c=r[l];if(c&&Object(p.hasOwn)(r,l)){s=c.call(this,t,e);var h=t.getAttribute("name");if(h){var d={name:h,namedFrom:null,svgNodeTagLower:l,el:s};n.push(d),"g"===l&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:l,el:s});e.add(s)}}var f=S[l];if(f&&Object(p.hasOwn)(S,l)){var g=f.call(this,t),v=t.getAttribute("id");v&&(this._defs[v]=g)}}if(s&&s.isGroup)for(var m=t.firstChild;m;)1===m.nodeType?this._parseNode(m,s,n,u,o,a):3===m.nodeType&&a&&this._parseText(m,s),m=m.nextSibling},t.prototype._parseText=function(t,e){var n=new m.default({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});T(e,n),A(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;r&&"auto"!==r?"baseline"===r?i="alphabetic":"before-edge"===r||"text-before-edge"===r?i="top":"after-edge"===r||"text-after-edge"===r?i="bottom":"central"!==r&&"mathematical"!==r||(i="middle"):i="alphabetic",t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(r={g:function(t,e){var n=new i.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new s.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new a.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new u.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new l.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,r=t.getAttribute("points");r&&(n=M(r));var i=new c.default({shape:{points:n||[]},silent:!0});return T(e,i),A(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var n,r=t.getAttribute("points");r&&(n=M(r));var i=new h.default({shape:{points:n||[]},silent:!0});return T(e,i),A(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var n=new o.default;return T(e,n),A(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",r=t.getAttribute("y")||"0",o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(o),this._textY=parseFloat(r)+parseFloat(a);var s=new i.default;return T(e,s),A(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,e){var n=t.getAttribute("x"),r=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var o=t.getAttribute("dx")||"0",a=t.getAttribute("dy")||"0",s=new i.default;return T(e,s),A(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(t,e){var n=t.getAttribute("d")||"",r=Object(f.createFromString)(n);return T(e,r),A(t,r,this._defsUsePending,!1,!1),r.silent=!0,r}}),t}(),S={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new g.default(e,n,r,i);return C(t,o),E(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new v.default(e,n,r);return C(t,i),E(t,i),i}};function C(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function E(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};N(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function T(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Object(p.defaults)(e.__inheritedStyle,t.__inheritedStyle))}function M(t){for(var e=P(t),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=P(a);switch(i=i||d.create(),s){case"translate":d.translate(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":d.scale(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":d.rotate(i,i,-parseFloat(l[0])*D);break;case"skewX":var u=Math.tan(parseFloat(l[0])*D);d.mul(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*D);d.mul(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),N(t,a,s),r||function(t,e,n){for(var r=0;r<_.length;r++){var i=_[r];null!=(o=t.getAttribute(i))&&(e[b[i]]=o)}for(r=0;r=0;n--)s.asc(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var r=0,i=e.length;rMath.PI/2?"right":"left"):C&&"center"!==C?"left"===C?(_=o.r0+S,s>Math.PI/2&&(C="right")):"right"===C&&(_=o.r-S,s>Math.PI/2&&(C="left")):(_=a===2*Math.PI&&0===o.r0?0:(o.r+o.r0)/2,C="center"),v.style.align=C,v.style.verticalAlign=m(l,"verticalAlign")||"middle",v.x=_*c+o.cx,v.y=_*h+o.cy;var E=m(l,"rotate"),T=0;"radial"===E?(T=-s)<-Math.PI/2&&(T+=Math.PI):"tangential"===E?(T=Math.PI/2-s)>Math.PI/2?T-=Math.PI:T<-Math.PI/2&&(T+=Math.PI):i.isNumber(E)&&(T=E*Math.PI/180),v.rotation=T})),f.dirtyStyle()},e}(s.default);e.default=f},function(t,e,n){"use strict";n.r(e),n.d(e,"polarDimensions",(function(){return o}));var r=n(1413),i=n(1414),o=["radius","angle"],a=function(){function t(t){this.dimensions=o,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new r.default,this._angleAxis=new i.default,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,r=this._radiusAxis;return n.scale.type===t&&e.push(n),r.scale.type===t&&e.push(r),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*r,endAngle:-n[1]*r,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,r=e-this.cy,i=n*n+r*r-1e-4,o=this.r,a=this.r0;return i<=o*o&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return s(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return s(e)===this?this.pointToData(n):null},t}();function s(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=a},function(t,e,n){"use strict";n.r(e),n.d(e,"PolarAxisModel",(function(){return l})),n.d(e,"AngleAxisModel",(function(){return u})),n.d(e,"RadiusAxisModel",(function(){return c}));var r=n(5),i=n(0),o=n(40),a=n(245),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",s.SINGLE_REFERRING).models[0]},e.type="polarAxis",e}(o.default);i.mixin(l,a.AxisModelCommonMixin);var u=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="angleAxis",e}(l),c=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return Object(r.__extends)(e,t),e.type="radiusAxis",e}(l)},function(t,e,n){"use strict";n.r(e),n.d(e,"singleDimensions",(function(){return s}));var r=n(1422),i=n(77),o=n(33),a=n(0),s=["single"],l=function(){function t(t,e,n){this.type="single",this.dimension="single",this.dimensions=s,this.axisPointerEnabled=!0,this.model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var o=this.dimension,a=new r.default(o,i.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},t.prototype.update=function(t,e){t.eachSeries((function(t){if(t.coordinateSystem===this){var e=t.getData();Object(a.each)(e.mapDimensionsAll(this.dimension),(function(t){this._axis.scale.unionExtentFromData(e,t)}),this),i.niceScaleExtent(this._axis.scale,this._axis.model)}}),this)},t.prototype.resize=function(t,e){this._rect=Object(o.getLayoutRect)({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),r=n?[0,t.width]:[0,t.height],i=e.reverse?1:0;e.setExtent(r[i],r[1-i]),this._updateAxisTransform(e,n?t.x:t.y)},t.prototype._updateAxisTransform=function(t,e){var n=t.getExtent(),r=n[0]+n[1],i=t.isHorizontal();t.toGlobalCoord=i?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord=i?function(t){return t-e}:function(t){return r-t+e}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),r=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),r[i]=e.toGlobalCoord(e.dataToCoord(+t)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},t.prototype.convertToPixel=function(t,e,n){return u(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return u(e)===this?this.pointToData(n):null},t}();function u(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}e.default=l},function(t,e,n){"use strict";n.r(e);var r=n(5),i=n(40),o=n(109),a=n(0),s=n(10),l=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return Object(r.__extends)(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],r=e.axisType,i=this._names=[];"category"===r?(t=[],Object(a.each)(n,(function(e,n){var r,o=Object(s.convertOptionIdName)(Object(s.getDataItemValue)(e),"");Object(a.isObject)(e)?(r=Object(a.clone)(e)).value=n:r=n,t.push(r),i.push(o)}))):t=n;var l={category:"ordinal",time:"time",value:"number"}[r]||"number";(this._data=new o.default([{name:"value",type:l}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(i.default);e.default=l},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return s}));var r=n(1468),i=n(1469),o=n(543),a=n(452);function s(t){Object(a.default)(t),t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.installDataZoomRoamProcessor)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1470),i=n(1471),o=n(452);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1472),i=n(1473),o=n(686);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"visualMapActionInfo",(function(){return r})),n.d(e,"visualMapActionHander",(function(){return i}));var r={type:"selectDataRange",event:"dataRangeSelected",update:"update"},i=function(t,e){e.eachComponent({mainType:"visualMap",query:t},(function(e){e.setSelected(t.selected)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"install",(function(){return a}));var r=n(1476),i=n(1477),o=n(686);function a(t){t.registerComponentModel(r.default),t.registerComponentView(i.default),Object(o.default)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"isColorProp",(function(){return r})),n.d(e,"isGradientColor",(function(){return i}));var r=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},i=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"rgbBasis",(function(){return l})),n.d(e,"rgbBasisClosed",(function(){return u}));var r=n(415),i=n(689),o=n(1485),a=n(852);function s(t){return function(e){var n,i,o=e.length,a=new Array(o),s=new Array(o),l=new Array(o);for(n=0;n180||n<-180?n-360*Math.round(n/360):n):Object(r.default)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Object(r.default)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?i(t,n):Object(r.default)(isNaN(t)?e:t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"genericArray",(function(){return o}));var r=n(485),i=n(487);function o(t,e){var n,i=e?e.length:0,o=t?Math.min(i,t.length):0,a=new Array(o),s=new Array(i);for(n=0;n0&&t.charCodeAt(e)<128?1:2}function o(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,s=0;a0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var l=r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function o(t,e,n){var i=t.getBBox(),o=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,s=o.points,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-a,-l],["s",1,.01],["t",a,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-a,-l],["s",1,100],["t",a,l]])},e)}},function(t,e,n){"use strict";n.r(e),n.d(e,"zoomIn",(function(){return s})),n.d(e,"zoomOut",(function(){return l}));var r=n(2),i=n(25),o=n(1);function a(t,e,n){if(t.isGroup())Object(o.each)(t.getChildren(),(function(t){a(t,e,n)}));else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},Object(r.__assign)(Object(r.__assign)({},e),{callback:function(){t.remove(!0)}}))}}function s(t,e,n){a(t,e,"zoomIn")}function l(t,e,n){a(t,e,"zoomOut")}},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1);function o(t){t.x=Object(i.clamp)(t.x,0,1),t.y=Object(i.clamp)(t.y,0,1)}var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(r.__extends)(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,a=this.context.view.getCoordinate(),s=a.invert(Object(i.head)(n)),l=a.invert(Object(i.last)(n));return this.inPlot&&(o(s),o(l)),"x"===r?(t=a.convert({x:s.x,y:0}),e=a.convert({x:l.x,y:1})):(t=a.convert({x:0,y:s.y}),e=a.convert({x:1,y:l.y})),{start:t,end:e}},e}(n(708).default);e.default=a},function(t,e,n){"use strict";n.r(e);var r=n(2),i=n(1),o=n(87),a=n(24),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(r.__extends)(e,t),e.prototype.filter=function(){Object(a.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Object(a.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,o=e.map((function(t){return t.getModel().data})),s=Object(a.getSilbings)(t);Object(i.each)(s,(function(t){var e=Object(a.getElements)(t);Object(i.each)(e,(function(t){var e=t.getModel().data;Object(a.isInRecords)(o,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Object(a.getSilbings)(e);Object(i.each)(n,(function(e){var n=Object(a.getSiblingMaskElements)(t.context,e,10),r=Object(a.getElements)(e);n&&Object(i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Object(a.getSilbings)(this.context.view);Object(i.each)(t,(function(t){var e=Object(a.getElements)(t);Object(i.each)(e,(function(t){t.show()}))}))},e}(o.default);e.default=s},function(t,e,n){"use strict";n.r(e),n.d(e,"getViewLegendItems",(function(){return s}));var r=n(1),i=n(15),o=n(4),a=n(218);function s(t){var e=t.view,n=t.geometryOption,s=t.yField,l=t.legend,u=Object(r.get)(l,"marker"),c=Object(o.findGeometry)(e,Object(a.isLine)(n)?"line":"interval");if(!n.seriesField){var h=Object(r.get)(e,"options.scales."+s+".alias")||s,d=c.getAttribute("color"),f=e.getTheme().defaultColor;return d&&(f=i.Util.getMappingValue(d,h,Object(r.get)(d,["values",0],f))),[{value:s,name:h,marker:(Object(r.isFunction)(u)?u:!Object(r.isEmpty)(u)&&Object(o.deepAssign)({},{style:{stroke:f,fill:f}},u))||(Object(a.isLine)(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:f}}:{symbol:"square",style:{fill:f}}),isGeometry:!0,viewId:e.id}]}var p=c.getGroupAttributes();return Object(r.reduce)(p,(function(t,n){var r=i.Util.getLegendItems(e,c,n,e.getTheme(),u);return t.concat(r)}),[])}},function(t,e,n){"use strict";n.r(e),n.d(e,"doSliderFilter",(function(){return o}));var r=n(1),i=n(4),o=function(t,e){var n=e[0],o=e[1],a=t.getOptions().data,s=t.getXScale(),l=Object(r.size)(a);if(s&&l){var u=Object(r.valuesOfKey)(a,s.field),c=u,h=Object(r.size)(c),d=Math.floor(n*(h-1)),f=Math.floor(o*(h-1));t.filter(s.field,(function(t){var e=c.indexOf(t);return!(e>-1)||Object(i.isBetween)(e,d,f)})),t.getRootView().render(!0)}}},function(t,e,n){"use strict";n.r(e),n.d(e,"venn",(function(){return o})),n.d(e,"distanceFromIntersectArea",(function(){return a})),n.d(e,"getDistanceMatrices",(function(){return s})),n.d(e,"bestInitialLayout",(function(){return l})),n.d(e,"constrainedMDSLayout",(function(){return u})),n.d(e,"greedyLayout",(function(){return c})),n.d(e,"lossFunction",(function(){return h})),n.d(e,"disjointCluster",(function(){return f})),n.d(e,"normalizeSolution",(function(){return g})),n.d(e,"scaleSolution",(function(){return v}));var r=n(263),i=n(168);function o(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,i=e.initialLayout||l,o=e.lossFunction||h,a=i(t=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;ee?1:-1})),e=0;e=Math.min(e[r].size,e[s].size)?u=1:t.size<=1e-10&&(u=-1),o[r][s]=o[s][r]=u})),{distances:i,constraints:o}}function l(t,e){var n=c(t,e),r=e.lossFunction||h;if(t.length>=8){var i=u(t,e);r(i,t)+1e-80&&p<=h||d<0&&p>=h||(o+=2*g*g,e[2*i]+=4*g*(a-u),e[2*i+1]+=4*g*(s-c),e[2*l]+=4*g*(u-a),e[2*l+1]+=4*g*(c-s))}return o}(t,e,c,h)};for(n=0;n=Math.min(o[f].size,o[p].size)&&(d=0),s[f].push({set:p,size:c.size,weight:d}),s[p].push({set:f,size:c.size,weight:d})}var g=[];for(n in s)if(s.hasOwnProperty(n)){var v=0;for(l=0;l0){var o=t[0].x,a=t[0].y;for(r=0;r1){var s=Math.atan2(t[1].x,t[1].y)-e,l=void 0,u=void 0,c=Math.cos(s),h=Math.sin(s);for(r=0;r2){for(var d=Math.atan2(t[2].x,t[2].y)-e;d<0;)d+=2*Math.PI;for(;d>2*Math.PI;)d-=2*Math.PI;if(d>Math.PI){var f=t[1].y/(1e-10+t[1].x);for(r=0;r=c&&(u=s[n],c=h)}var d=Object(r.nelderMead)((function(n){return-1*o({x:n[0],y:n[1]},t,e)}),[u.x,u.y],{maxIterations:500,minErrorDelta:1e-10}).x,f={x:d[0],y:d[1]},p=!0;for(n=0;nt[n].radius){p=!1;break}for(n=0;n0&&console.log("WARNING: area "+s+" not represented on screen")}return n}function l(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}function u(t){var e=t.split(" ");return{x:parseFloat(e[1]),y:parseFloat(e[2]),radius:-parseFloat(e[4])}}function c(t){var e={};Object(i.intersectionArea)(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return l(r.x,r.y,r.radius)}for(var o=["\nM",n[0].p2.x,n[0].p2.y],a=0;au;o.push("\nA",u,u,0,c?1:0,1,s.p1.x,s.p1.y)}return o.join(" ")}},function(t,e,n){"use strict";n.r(e),n.d(e,"VennElementSelected",(function(){return l})),n.d(e,"VennElementSingleSelected",(function(){return u}));var r=n(2),i=n(15),o=n(401),a=Object(i.getActionClass)("element-selected"),s=Object(i.getActionClass)("element-single-selected"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(a),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.__extends)(e,t),e.prototype.syncElementsPos=function(){Object(o.placeElementsOrdered)(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(s)},function(t,e,n){"use strict";n.r(e),n.d(e,"statistic",(function(){return c})),n.d(e,"adaptor",(function(){return h}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(723);function u(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,u=n.outline,c=n.wave,h=n.shape,d=n.animation;e.scale({percent:{min:0,max:1}}),e.data(Object(l.getLiquidData)(r));var f=n.color||e.getTheme().defaultColor,p=Object(a.deepAssign)({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:f,style:i,shape:"liquid-fill-gauge"}}}),g=Object(s.interval)(p).ext.geometry,v={radius:o,outline:u,wave:c,shape:h,background:e.getTheme().background,animation:d};return g.customInfo(v),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function c(t,e){var n=t.chart,o=t.options,s=o.statistic,l=o.percent,u=o.meta;n.getController("annotation").clear(!0);var c=Object(i.get)(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=s.content;return h&&(h=Object(a.deepAssign)({},h,{content:Object(i.isNil)(h.content)?c(l):h.content})),Object(a.renderStatistic)(n,{statistic:Object(r.__assign)(Object(r.__assign)({},s),{content:h}),plotType:"liquid"},{percent:l}),e&&n.render(!0),t}function h(t){return Object(a.flow)(o.theme,Object(o.pattern)("liquidStyle"),u,c,Object(o.scale)({}),o.animation,o.interaction)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(1),o=n(9),a=n(4),s=n(34),l=n(724);function u(t){var e=t.chart,n=t.options,o=n.bulletStyle,u=n.targetField,c=n.rangeField,h=n.measureField,d=n.xField,f=n.color,p=n.layout,g=n.size,v=n.label,m=Object(l.transformData)(n),y=m.min,b=m.max,_=m.ds;e.data(_);var x=Object(a.deepAssign)({},t,{options:{xField:d,yField:c,seriesField:"rKey",isStack:!0,label:Object(i.get)(v,"range"),interval:{color:Object(i.get)(f,"range"),style:Object(i.get)(o,"range"),size:Object(i.get)(g,"range")}}});Object(s.interval)(x),e.geometries[0].tooltip(!1);var w=Object(a.deepAssign)({},t,{options:{xField:d,yField:h,seriesField:"mKey",isStack:!0,label:Object(i.get)(v,"measure"),interval:{color:Object(i.get)(f,"measure"),style:Object(i.get)(o,"measure"),size:Object(i.get)(g,"measure")}}});Object(s.interval)(w);var O=Object(a.deepAssign)({},t,{options:{xField:d,yField:u,seriesField:"tKey",label:Object(i.get)(v,"target"),point:{color:Object(i.get)(f,"target"),style:Object(i.get)(o,"target"),size:Object(i.isFunction)(Object(i.get)(g,"target"))?function(t){return Object(i.get)(g,"target")(t)/2}:Object(i.get)(g,"target")/2,shape:"horizontal"===p?"line":"hyphen"}}});return Object(s.point)(O),"horizontal"===p&&e.coordinate().transpose(),Object(r.__assign)(Object(r.__assign)({},t),{ext:{data:{min:y,max:b}}})}function c(t){var e,n,r=t.options,i=t.ext,s=r.xAxis,l=r.yAxis,u=r.targetField,c=r.rangeField,h=r.measureField,d=r.xField,f=i.data;return Object(a.flow)(Object(o.scale)(((e={})[d]=s,e[h]=l,e),((n={})[h]={min:null==f?void 0:f.min,max:null==f?void 0:f.max,sync:!0},n[u]={sync:""+h},n[c]={sync:""+h},n)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,l=n.targetField;return e.axis(""+s,!1),e.axis(""+l,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function d(t){var e=t.chart,n=t.options.legend;return e.removeInteraction("legend-filter"),e.legend(n),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function f(t){var e=t.chart,n=t.options,o=n.label,s=n.measureField,l=n.targetField,u=n.rangeField,c=e.geometries,h=c[0],d=c[1],f=c[2];return Object(i.get)(o,"range")?h.label(""+u,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.range))):h.label(!1),Object(i.get)(o,"measure")?d.label(""+s,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.measure))):d.label(!1),Object(i.get)(o,"target")?f.label(""+l,Object(r.__assign)({layout:[{type:"limit-in-plot"}]},Object(a.transformLabel)(o.target))):f.label(!1),t}function p(t){Object(a.flow)(u,c,h,d,o.theme,f,o.tooltip,o.interaction,o.animation)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"transformData",(function(){return c}));var r=n(2),i=n(1),o=n(360),a=n(4),s=n(1665),l=n(726),u=n(219);function c(t){var e=t.data,n=t.colorField,c=t.rawFields,h=t.hierarchyConfig,d=void 0===h?{}:h,f=d.activeDepth,p={partition:s.partition,treemap:l.treemap},g=t.seriesField,v=t.type||"partition",m=p[v](e,Object(r.__assign)(Object(r.__assign)({field:g||"value"},Object(i.omit)(d,["activeDepth"])),{type:"hierarchy."+v,as:["x","y"]})),y=[];return m.forEach((function(t){var e,i,s,l,h,p;if(0===t.depth)return null;if(f>0&&t.depth>f)return null;for(var v=t.data.name,m=Object(r.__assign)({},t);m.depth>1;)v=(null===(i=m.parent.data)||void 0===i?void 0:i.name)+" / "+v,m=m.parent;var b=Object(r.__assign)(Object(r.__assign)(Object(r.__assign)({},Object(a.pick)(t.data,Object(r.__spreadArrays)(c||[],[d.field]))),((e={})[u.SUNBURST_PATH_FIELD]=v,e[u.SUNBURST_ANCESTOR_FIELD]=m.data.name,e)),t);g&&(b[g]=t.data[g]||(null===(l=null===(s=t.parent)||void 0===s?void 0:s.data)||void 0===l?void 0:l[g])),n&&(b[n]=t.data[n]||(null===(p=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===p?void 0:p[n])),b.ext=d,b[o.HIERARCHY_DATA_TRANSFORM_PARAMS]={hierarchyConfig:d,colorField:n,rawFields:c},y.push(b)})),y}},function(t,e,n){"use strict";n.r(e),n.d(e,"meta",(function(){return c})),n.d(e,"axis",(function(){return d})),n.d(e,"adaptor",(function(){return p}));var r=n(2),i=n(9),o=n(4),a=n(34),s=n(243),l=n(876);function u(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,s=n.tooltip,l=n.colorField,u=n.type,c=n.xField,h=n.yField,d=n.data,f=Object(o.processIllegalData)(d,h);e.data(f);var p=Object(o.deepAssign)({},t,{options:{tooltip:s,seriesField:l,interval:{style:r,color:i,shape:"line"===u?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(a.interval)(p),"line"===u&&Object(a.point)({chart:e,options:{xField:c,yField:h,seriesField:l,point:{shape:"circle",color:i}}}),t}function c(t){var e,n=t.options,r=n.yField,a=n.xField,s=n.data,u=n.isStack,c=n.isGroup,h=n.colorField,d=n.maxAngle,f=u&&!c&&h?Object(l.getStackedData)(s,a,r):s,p=Object(o.processIllegalData)(f,r);return Object(o.flow)(Object(i.scale)(((e={})[r]={min:0,max:Object(l.getScaleMax)(d,r,p)},e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function f(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,s=Object(o.findGeometry)(e,"interval");if(i){var l=i.callback,u=Object(r.__rest)(i,["callback"]);s.label({fields:[a],callback:l,cfg:Object(r.__assign)(Object(r.__assign)({},Object(o.transformLabel)(u)),{type:"polar"})})}else s.label(!1);return t}function p(t){return Object(o.flow)(Object(s.pattern)("barStyle"),u,c,d,h,i.interaction,i.animation,i.theme,i.tooltip,i.legend,Object(i.annotation)(),f)(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"getScaleMax",(function(){return i})),n.d(e,"getStackedData",(function(){return o}));var r=n(2);function i(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function o(t,e,n){var i=[];return t.forEach((function(t){var o=i.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:i.push(Object(r.__assign)({},t))})),i}},function(t,e,n){"use strict";n.r(e),n.d(e,"getElementValue",(function(){return o})),n.d(e,"clearHighlight",(function(){return a}));var r=n(1),i=n(4);function o(t,e){var n=t.getModel().data;return Object(r.isArray)(n)?n[0][e]:n[e]}function a(t){var e=Object(i.getAllElements)(t);Object(r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"requestAnimationFrame",(function(){return o})),n.d(e,"cancelAnimationFrame",(function(){return a}));var r=n(234),i=0;function o(t){var e=Object(r.getCanvas)();return e.requestAnimationFrame?e.requestAnimationFrame(t):function(t){var e=Date.now(),n=Math.max(i+23,e);return setTimeout((function(){t(i=n)}),n-e)}(t)}function a(t){var e=Object(r.getCanvas)();return e.cancelAnimationFrame?e.cancelAnimationFrame(t):clearTimeout(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"$XMLHttpRequest",(function(){return w}));var r=n(11),i=n.n(r),o=n(12),a=n.n(o),s=n(8),l=n.n(s),u=n(30),c=n.n(u),h=n(31),d=n.n(h),f=n(18),p=n.n(f),g=n(3),v=n.n(g),m=n(472);function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p()(t);if(e){var i=p()(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return d()(this,n)}}var b=new Map,_=new Map,x=new Map;var w=function(t){c()(n,t);var e=y(n);function n(){var t;return i()(this,n),t=e.call(this),v()(l()(t),"onabort",void 0),v()(l()(t),"onerror",void 0),v()(l()(t),"onload",void 0),v()(l()(t),"onloadstart",void 0),v()(l()(t),"onprogress",void 0),v()(l()(t),"ontimeout",void 0),v()(l()(t),"onloadend",void 0),v()(l()(t),"onreadystatechange",void 0),v()(l()(t),"readyState",void 0),v()(l()(t),"response",void 0),v()(l()(t),"responseText",void 0),v()(l()(t),"_responseType",void 0),v()(l()(t),"responseXML",void 0),v()(l()(t),"status",void 0),v()(l()(t),"statusText",void 0),v()(l()(t),"upload",void 0),v()(l()(t),"withCredentials",void 0),v()(l()(t),"timeout",void 0),v()(l()(t),"_url",void 0),v()(l()(t),"_method",void 0),t.onabort=null,t.onerror=null,t.onload=null,t.onloadstart=null,t.onprogress=null,t.ontimeout=null,t.onloadend=null,t.onreadystatechange=null,t.readyState=0,t.response=null,t.responseText=null,t._responseType="text",t.responseXML=null,t.status=0,t.statusText="",t.upload={},t.withCredentials=!1,b.set("requestHeader",{"content-type":"application/x-www-form-urlencoded"}),t}return a()(n,[{key:"responseType",set:function(t){this._responseType=t}},{key:"abort",value:function(){var t=x.get("requestTask");t&&t.abort()}},{key:"getAllResponseHeaders",value:function(){var t=_.get("responseHeader");return Object.keys(t).map((function(e){return"".concat(e,": ").concat(t[e])})).join("\n")}},{key:"getResponseHeader",value:function(t){return _.get("responseHeader")[t]}},{key:"open",value:function(t,e,n){this._method=t,this._url=e}},{key:"overrideMimeType",value:function(){}},{key:"send",value:function(){}},{key:"setRequestHeader",value:function(t,e){var n=b.get("requestHeader");n[t]=e,b.set("requestHeader",n)}},{key:"addEventListener",value:function(t,e){var n=this;"function"==typeof e&&(this["on"+t]=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.target=t.target||n,e.call(n,t)})}},{key:"removeEventListener",value:function(t,e){this["on"+t]===e&&(this["on"+t]=null)}}]),n}(m.default);v()(w,"UNSEND",void 0),v()(w,"OPENED",void 0),v()(w,"HEADERS_RECEIVED",void 0),v()(w,"LOADING",void 0),v()(w,"DONE",void 0),w.UNSEND=0,w.OPENED=1,w.HEADERS_RECEIVED=2,w.LOADING=3,w.DONE=4},function(t,e,n){"use strict";n.r(e),n.d(e,"updateTileStateOverlap",(function(){return r})),n.d(e,"updateTileStateReplace",(function(){return i}));function r(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&!o(t)&&a(t)})),t.forEach((function(t){t.isVisible=Boolean(2&t.properties.state)}))}function i(t){t.forEach((function(t){t.properties.state=0})),t.forEach((function(t){t.isCurrent&&o(t)})),t.slice().sort((function(t,e){return t.z-e.z})).forEach((function(t){t.isVisible=Boolean(2&t.properties.state),t.children.length&&(t.isVisible||1&t.properties.state)?t.children.forEach((function(t){t.properties.state=1})):t.isCurrent&&a(t)}))}function o(t){for(;t;){if(t.isLoaded)return t.properties.state|=2,!0;t=t.parent}return!1}function a(t){t.children.forEach((function(t){t.isLoaded?t.properties.state|=2:a(t)}))}},function(t,e,n){"use strict";n.r(e),n.d(e,"getDistanceScales",(function(){return i}));var r=Math.PI/180;function i(t){var e=t.latitude,n=void 0===e?0:e,i=t.zoom,o=void 0===i?0:i,a=t.scale,s=t.highPrecision,l=void 0!==s&&s,u=t.flipY,c=void 0!==u&&u,h={},d=512*(a=void 0!==a?a:Math.pow(2,o)),f=Math.cos(n*r),p=d/360,g=p/f,v=d/4003e4/f;if(h.pixelsPerMeter=[v,-v,v],h.metersPerPixel=[1/v,-1/v,1/v],h.pixelsPerDegree=[p,-g,v],h.degreesPerPixel=[1/p,-1/g,1/v],l){var m=r*Math.tan(n*r)/f,y=p*m/2,b=d/4003e4*m,_=b/g*v;h.pixelsPerDegree2=[0,-y,b],h.pixelsPerMeter2=[_,0,_],c&&(h.pixelsPerDegree2[1]=-h.pixelsPerDegree2[1],h.pixelsPerMeter2[1]=-h.pixelsPerMeter2[1])}return c&&(h.pixelsPerMeter[1]=-h.pixelsPerMeter[1],h.metersPerPixel[1]=-h.metersPerPixel[1],h.pixelsPerDegree[1]=-h.pixelsPerDegree[1],h.degreesPerPixel[1]=-h.degreesPerPixel[1]),h}},function(t,e){function n(t){var e=t.target||t.srcElement;e.__resizeRAF__&&cancelAnimationFrame(e.__resizeRAF__),e.__resizeRAF__=requestAnimationFrame((function(){var n=e.__resizeTrigger__,r=n&&n.__resizeListeners__;r&&r.forEach((function(e){e.call(n,t)}))}))}var r=function(t,e){var r,i=this.document,o=i.attachEvent;if("undefined"!=typeof navigator&&(r=navigator.userAgent.match(/Trident/)||navigator.userAgent.match(/Edge/)),!t.__resizeListeners__)if(t.__resizeListeners__=[],o)t.__resizeTrigger__=t,t.attachEvent("onresize",n);else{"static"===getComputedStyle(t).position&&(t.style.position="relative");var a=t.__resizeTrigger__=i.createElement("object");a.setAttribute("style","position: absolute; top: 0; left: 0; height: 100%; width: 100%; pointer-events: none; z-index: -1; opacity: 0;"),a.setAttribute("class","resize-sensor"),a.setAttribute("tabindex","-1"),a.setAttribute("title",""),a.__resizeElement__=t,a.onload=function(){this.contentDocument.defaultView.__resizeTrigger__=this.__resizeElement__,this.contentDocument.defaultView.addEventListener("resize",n)},a.type="text/html",r&&t.appendChild(a),a.data="about:blank",r||t.appendChild(a)}t.__resizeListeners__.push(e)};t.exports="undefined"==typeof window?r:r.bind(window),t.exports.unbind=function(t,e){var r=document.attachEvent,i=t.__resizeListeners__||[];if(e){var o=i.indexOf(e);-1!==o&&i.splice(o,1)}else i=t.__resizeListeners__=[];if(!i.length){if(r)t.detachEvent("onresize",n);else if(t.__resizeTrigger__){var a=t.__resizeTrigger__.contentDocument,s=a&&a.defaultView;s&&(s.removeEventListener("resize",n),delete s.__resizeTrigger__),t.__resizeTrigger__=!t.removeChild(t.__resizeTrigger__)}delete t.__resizeListeners__}}},function(t,e,n){"use strict";function r(t){var e=0;switch(t){case"vec2":case"ivec2":e=2;break;case"vec3":case"ivec3":e=3;break;case"vec4":case"ivec4":case"mat2":e=4;break;case"mat3":e=9;break;case"mat4":e=16}return e}n.r(e),n.d(e,"getUniformLengthByType",(function(){return r})),n.d(e,"extractUniforms",(function(){return o}));var i=/uniform\s+(bool|float|int|vec2|vec3|vec4|ivec2|ivec3|ivec4|mat2|mat3|mat4|sampler2D|samplerCube)\s+([\s\S]*?);/g;function o(t){var e={};return{content:t=t.replace(i,(function(t,n,i){var o=i.split(":"),a=o[0].trim(),s="";switch(o.length>1&&(s=o[1].trim()),n){case"bool":s="true"===s;break;case"float":case"int":s=Number(s);break;case"vec2":case"vec3":case"vec4":case"ivec2":case"ivec3":case"ivec4":case"mat2":case"mat3":case"mat4":s=s?s.replace("[","").replace("]","").split(",").reduce((function(t,e){return t.push(Number(e.trim())),t}),[]):new Array(r(n)).fill(0)}return e[a]=s,"uniform ".concat(n," ").concat(a,";\n")})),uniforms:e}}},function(t,e,n){var r=n(2062),i=n(1199);t.exports=function(t,e,n){return void 0===n&&(n=e,e=void 0),void 0!==n&&(n=(n=i(n))==n?n:0),void 0!==e&&(e=(e=i(e))==e?e:0),r(i(t),e,n)}},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",normal:"amap://styles/normal",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true"}},function(t,e,n){"use strict";n.r(e),n.d(e,"MapTheme",(function(){return r}));var r={dark:"amap://styles/c9f1d10cae34f8ab05e425462c5a58d7?isPublic=true",light:"amap://styles/c422f5c0cfced5be9fe3a83f05f28a68?isPublic=true",normal:"amap://styles/normal",blank:"amap://styles/07c17002b38775b32a7a76c66cf90e99?isPublic=true"}},function(t,e,n){"use strict";function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(1785),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(322))},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r3?0:(t-t%10!=10)*t%10]}};var m={D:function(t){return t.getDay()},DD:function(t){return d(t.getDay())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDate()},dd:function(t){return d(t.getDate())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return d(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},yy:function(t){return d(String(t.getFullYear()),4).substr(2)},yyyy:function(t){return d(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return d(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return d(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return d(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return d(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return d(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return d(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+d(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},y={d:["\\d\\d?",function(t,e){t.day=e}],Do:["\\d\\d?"+s,function(t,e){t.day=parseInt(e,10)}],M:["\\d\\d?",function(t,e){t.month=e-1}],yy:["\\d\\d?",function(t,e){var n=+(""+(new Date).getFullYear()).substr(0,2);t.year=""+(e>68?n-1:n)+e}],h:["\\d\\d?",function(t,e){t.hour=e}],m:["\\d\\d?",function(t,e){t.minute=e}],s:["\\d\\d?",function(t,e){t.second=e}],yyyy:["\\d{4}",function(t,e){t.year=e}],S:["\\d",function(t,e){t.millisecond=100*e}],SS:["\\d{2}",function(t,e){t.millisecond=10*e}],SSS:["\\d{3}",function(t,e){t.millisecond=e}],D:["\\d\\d?",u],ddd:[s,u],MMM:[s,h("monthNamesShort")],MMMM:[s,h("monthNames")],a:[s,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:["[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z",function(t,e){var n,r=(e+"").match(/([+-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};y.dd=y.d,y.dddd=y.ddd,y.DD=y.D,y.mm=y.m,y.hh=y.H=y.HH=y.h,y.MM=y.M,y.ss=y.s,y.A=y.a,o.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},o.format=function(t,e,n){var r=n||o.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=o.masks[e]||e||o.masks.default;var i=[];return(e=(e=e.replace(l,(function(t,e){return i.push(e),"@@@"}))).replace(a,(function(e){return e in m?m[e](t,r):e.slice(1,e.length-1)}))).replace(/@@@/g,(function(){return i.shift()}))},o.parse=function(t,e,n){var r=n||o.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=o.masks[e]||e,t.length>1e3)return null;var i={},s=[],u=[];e=e.replace(l,(function(t,e){return u.push(e),"@@@"}));var c,h=(c=e,c.replace(/[|\\{()[^$+*?.-]/g,"\\$&")).replace(a,(function(t){if(y[t]){var e=y[t];return s.push(e[1]),"("+e[0]+")"}return t}));h=h.replace(/@@@/g,(function(){return u.shift()}));var d=t.match(new RegExp(h,"i"));if(!d)return null;for(var f=1;f0?this._openTimer=setTimeout((function(){e._openTimer=null,e.doOpen(n)}),r):this.doOpen(n)},doOpen:function(t){if(!this.$isServer&&(!this.willOpen||this.willOpen())&&!this.opened){this._opening=!0;var e=this.$el,n=t.modal,r=t.zIndex;if(r&&(o.default.zIndex=r),n&&(this._closing&&(o.default.closeModal(this._popupId),this._closing=!1),o.default.openModal(this._popupId,o.default.nextZIndex(),this.modalAppendToBody?void 0:e,t.modalClass,t.modalFade),t.lockScroll)){this.withoutHiddenClass=!(0,s.hasClass)(document.body,"el-popup-parent--hidden"),this.withoutHiddenClass&&(this.bodyPaddingRight=document.body.style.paddingRight,this.computedBodyPaddingRight=parseInt((0,s.getStyle)(document.body,"paddingRight"),10)),c=(0,a.default)();var i=document.documentElement.clientHeight0&&(i||"scroll"===l)&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.computedBodyPaddingRight+c+"px"),(0,s.addClass)(document.body,"el-popup-parent--hidden")}"static"===getComputedStyle(e).position&&(e.style.position="absolute"),e.style.zIndex=o.default.nextZIndex(),this.opened=!0,this.onOpen&&this.onOpen(),this.doAfterOpen()}},doAfterOpen:function(){this._opening=!1},close:function(){var t=this;if(!this.willClose||this.willClose()){null!==this._openTimer&&(clearTimeout(this._openTimer),this._openTimer=null),clearTimeout(this._closeTimer);var e=Number(this.closeDelay);e>0?this._closeTimer=setTimeout((function(){t._closeTimer=null,t.doClose()}),e):this.doClose()}},doClose:function(){this._closing=!0,this.onClose&&this.onClose(),this.lockScroll&&setTimeout(this.restoreBodyStyle,200),this.opened=!1,this.doAfterClose()},doAfterClose:function(){o.default.closeModal(this._popupId),this._closing=!1},restoreBodyStyle:function(){this.modal&&this.withoutHiddenClass&&(document.body.style.paddingRight=this.bodyPaddingRight,(0,s.removeClass)(document.body,"el-popup-parent--hidden")),this.withoutHiddenClass=!0}}},e.PopupManager=o.default},function(t,e,n){"use strict";e.__esModule=!0;n(284);e.default={mounted:function(){},methods:{getMigratingConfig:function(){return{props:{},events:{}}}}}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(200),o=(r=i)&&r.__esModule?r:{default:r},a=n(323);var s=[],l="@@clickoutsideContext",u=void 0,c=0;function h(t,e,n){return function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!(n&&n.context&&r.target&&i.target)||t.contains(r.target)||t.contains(i.target)||t===r.target||n.context.popperElm&&(n.context.popperElm.contains(r.target)||n.context.popperElm.contains(i.target))||(e.expression&&t[l].methodName&&n.context[t[l].methodName]?n.context[t[l].methodName]():t[l].bindingFn&&t[l].bindingFn())}}!o.default.prototype.$isServer&&(0,a.on)(document,"mousedown",(function(t){return u=t})),!o.default.prototype.$isServer&&(0,a.on)(document,"mouseup",(function(t){s.forEach((function(e){return e[l].documentHandler(t,u)}))})),e.default={bind:function(t,e,n){s.push(t);var r=c++;t[l]={id:r,documentHandler:h(t,e,n),methodName:e.expression,bindingFn:e.value}},update:function(t,e,n){t[l].documentHandler=h(t,e,n),t[l].methodName=e.expression,t[l].bindingFn=e.value},unbind:function(t){for(var e=s.length,n=0;n-1:t._q(t.model,t.trueLabel)},on:{change:[function(e){var n=t.model,r=e.target,i=r.checked?t.trueLabel:t.falseLabel;if(Array.isArray(n)){var o=t._i(n,null);r.checked?o<0&&(t.model=n.concat([null])):o>-1&&(t.model=n.slice(0,o).concat(n.slice(o+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:t.model,expression:"model"}],staticClass:"el-checkbox__original",attrs:{type:"checkbox","aria-hidden":t.indeterminate?"true":"false",disabled:t.isDisabled,name:t.name},domProps:{value:t.label,checked:Array.isArray(t.model)?t._i(t.model,t.label)>-1:t.model},on:{change:[function(e){var n=t.model,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.label,a=t._i(n,o);r.checked?a<0&&(t.model=n.concat([o])):a>-1&&(t.model=n.slice(0,a).concat(n.slice(a+1)))}else t.model=i},t.handleChange],focus:function(e){t.focus=!0},blur:function(e){t.focus=!1}}})]),t.$slots.default||t.label?n("span",{staticClass:"el-checkbox__label"},[t._t("default"),t.$slots.default?t._e():[t._v(t._s(t.label))]],2):t._e()])};r._withStripped=!0;var i=n(4),o={name:"ElCheckbox",mixins:[n.n(i).a],inject:{elForm:{default:""},elFormItem:{default:""}},componentName:"ElCheckbox",data:function(){return{selfModel:!1,focus:!1,isLimitExceeded:!1}},computed:{model:{get:function(){return this.isGroup?this.store:void 0!==this.value?this.value:this.selfModel},set:function(t){this.isGroup?(this.isLimitExceeded=!1,void 0!==this._checkboxGroup.min&&t.lengththis._checkboxGroup.max&&(this.isLimitExceeded=!0),!1===this.isLimitExceeded&&this.dispatch("ElCheckboxGroup","input",[t])):(this.$emit("input",t),this.selfModel=t)}},isChecked:function(){return"[object Boolean]"==={}.toString.call(this.model)?this.model:Array.isArray(this.model)?this.model.indexOf(this.label)>-1:null!==this.model&&void 0!==this.model?this.model===this.trueLabel:void 0},isGroup:function(){for(var t=this.$parent;t;){if("ElCheckboxGroup"===t.$options.componentName)return this._checkboxGroup=t,!0;t=t.$parent}return!1},store:function(){return this._checkboxGroup?this._checkboxGroup.value:this.value},isLimitDisabled:function(){var t=this._checkboxGroup,e=t.max,n=t.min;return!(!e&&!n)&&this.model.length>=e&&!this.isChecked||this.model.length<=n&&this.isChecked},isDisabled:function(){return this.isGroup?this._checkboxGroup.disabled||this.disabled||(this.elForm||{}).disabled||this.isLimitDisabled:this.disabled||(this.elForm||{}).disabled},_elFormItemSize:function(){return(this.elFormItem||{}).elFormItemSize},checkboxSize:function(){var t=this.size||this._elFormItemSize||(this.$ELEMENT||{}).size;return this.isGroup&&this._checkboxGroup.checkboxGroupSize||t}},props:{value:{},label:{},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:String,trueLabel:[String,Number],falseLabel:[String,Number],id:String,controls:String,border:Boolean,size:String},methods:{addToStore:function(){Array.isArray(this.model)&&-1===this.model.indexOf(this.label)?this.model.push(this.label):this.model=this.trueLabel||!0},handleChange:function(t){var e=this;if(!this.isLimitExceeded){var n=void 0;n=t.target.checked?void 0===this.trueLabel||this.trueLabel:void 0!==this.falseLabel&&this.falseLabel,this.$emit("change",n,t),this.$nextTick((function(){e.isGroup&&e.dispatch("ElCheckboxGroup","change",[e._checkboxGroup.value])}))}}},created:function(){this.checked&&this.addToStore()},mounted:function(){this.indeterminate&&this.$el.setAttribute("aria-controls",this.controls)},watch:{value:function(t){this.dispatch("ElFormItem","el.form.change",t)}}},a=n(0),s=Object(a.a)(o,r,[],!1,null,null,null);s.options.__file="packages/checkbox/src/checkbox.vue";var l=s.exports;l.install=function(t){t.component(l.name,l)};e.default=l},4:function(t,e){t.exports=n(379)}})},function(t,e){var n=/^(attrs|props|on|nativeOn|class|style|hook)$/;function r(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}}t.exports=function(t){return t.reduce((function(t,e){var i,o,a,s,l;for(a in e)if(i=t[a],o=e[a],i&&n.test(a))if("class"===a&&("string"==typeof i&&(l=i,t[a]=i={},i[l]=!0),"string"==typeof o&&(l=o,e[a]=o={},o[l]=!0)),"on"===a||"nativeOn"===a||"hook"===a)for(s in o)i[s]=r(i[s],o[s]);else if(Array.isArray(i))t[a]=i.concat(o);else if(Array.isArray(o))t[a]=[i].concat(o);else for(s in o)i[s]=o[s];else t[a]=e[a];return t}),{})}},function(t,e,n){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/dist/",n(n.s=130)}({0:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}n.d(e,"a",(function(){return r}))},130:function(t,e,n){"use strict";n.r(e);var r={name:"ElTag",props:{text:String,closable:Boolean,type:String,hit:Boolean,disableTransitions:Boolean,color:String,size:String,effect:{type:String,default:"light",validator:function(t){return-1!==["dark","light","plain"].indexOf(t)}}},methods:{handleClose:function(t){t.stopPropagation(),this.$emit("close",t)},handleClick:function(t){this.$emit("click",t)}},computed:{tagSize:function(){return this.size||(this.$ELEMENT||{}).size}},render:function(t){var e=this.type,n=this.tagSize,r=this.hit,i=this.effect,o=t("span",{class:["el-tag",e?"el-tag--"+e:"",n?"el-tag--"+n:"",i?"el-tag--"+i:"",r&&"is-hit"],style:{backgroundColor:this.color},on:{click:this.handleClick}},[this.$slots.default,this.closable&&t("i",{class:"el-tag__close el-icon-close",on:{click:this.handleClose}})]);return this.disableTransitions?o:t("transition",{attrs:{name:"el-zoom-in-center"}},[o])}},i=n(0),o=Object(i.a)(r,void 0,void 0,!1,null,null,null);o.options.__file="packages/tag/src/tag.vue";var a=o.exports;a.install=function(t){t.component(a.name,a)};e.default=a}})},function(t,e,n){t.exports=!n(380)&&!n(504)((function(){return 7!=Object.defineProperty(n(912)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var r=n(503),i=n(346).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){var r=n(381),i=n(419),o=n(1838)(!1),a=n(782)("IE_PROTO");t.exports=function(t,e){var n,s=i(t),l=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);for(;e.length>l;)r(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){var r=n(915);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(579),i=n(778),o=n(917),a=n(417),s=n(787),l=n(1845),u=n(788),c=n(1848),h=n(420)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,g,v,m){l(n,e,p);var y,b,_,x=function(t){if(!d&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==g,S=!1,C=t.prototype,E=C[h]||C["@@iterator"]||g&&C[g],T=E||x(g),M=g?O?x("entries"):T:void 0,A="Array"==e&&C.entries||E;if(A&&(_=c(A.call(new t)))!==Object.prototype&&_.next&&(u(_,w,!0),r||"function"==typeof _[h]||a(_,h,f)),O&&E&&"values"!==E.name&&(S=!0,T=function(){return E.call(this)}),r&&!m||!d&&!S&&C[h]||a(C,h,T),s[e]=T,s[w]=f,g)if(y={values:O?T:x("values"),keys:v?T:x("keys"),entries:M},m)for(b in y)b in C||o(C,b,y[b]);else i(i.P+i.F*(d||S),e,y);return y}},function(t,e,n){t.exports=n(417)},function(t,e,n){var r=n(576),i=n(1846),o=n(784),a=n(782)("IE_PROTO"),s=function(){},l=function(){var t,e=n(912)("iframe"),r=o.length;for(e.style.display="none",n(1847).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("