@openremote/or-attribute-history 1.30.0 → 1.30.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,h="object"==typeof self&&self&&self.Object===Object&&self,u=l||h||Function("return this")(),d=Object.prototype.toString,c=Math.max,p=Math.min,f=function(){return u.Date.now()};function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==d.call(e))return 0/0;if(g(t)){var e,i="function"==typeof t.valueOf?t.valueOf():t;t=g(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var l=o.test(t);return l||a.test(t)?s(t.slice(2),l?2:8):r.test(t)?0/0:+t}t.exports=function(t,e,i){var n,r,o,a,s,l,h=0,u=!1,d=!1,_=!0;if("function"!=typeof t)throw TypeError("Expected a function");function v(e){var i=n,o=r;return n=r=void 0,h=e,a=t.apply(o,i)}function y(t){var i=t-l,n=t-h;return void 0===l||i>=e||i<0||d&&n>=o}function b(){var t,i,n,r=f();if(y(r))return x(r);s=setTimeout(b,(t=r-l,i=r-h,n=e-t,d?p(n,o-i):n))}function x(t){return(s=void 0,_&&n)?v(t):(n=r=void 0,a)}function w(){var t,i=f(),o=y(i);if(n=arguments,r=this,l=i,o){if(void 0===s)return h=t=l,s=setTimeout(b,e),u?v(t):a;if(d)return s=setTimeout(b,e),v(l)}return void 0===s&&(s=setTimeout(b,e)),a}return e=m(e)||0,g(i)&&(u=!!i.leading,o=(d="maxWait"in i)?c(m(i.maxWait)||0,e):o,_="trailing"in i?!!i.trailing:_),w.cancel=function(){void 0!==s&&clearTimeout(s),h=0,n=l=r=s=void 0},w.flush=function(){return void 0===s?a:x(f())},w}},867(t,e,i){t=i.nmd(t),t.exports=function(){"use strict";function e(){return H.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){var e;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(e in t)if(o(t,e))return!1;return!0}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function d(t,e){for(var i in e)o(e,i)&&(t[i]=e[i]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return eo(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function f(t){var e=null,i=!1,n=t._d&&!isNaN(t._d.getTime());return(n&&(e=p(t),i=Y.call(e.parsedDateParts,function(t){return null!=t}),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t))?n:(t._isValid=n,t._isValid)}function g(t){var e=c(0/0);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}Y=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var m,_,v=e.momentProperties=[],y=!1;function b(t,e){var i,n,r,o=v.length;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=p(e)),s(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)s(r=e[n=v[i]])||(t[n]=r);return t}function x(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===y&&(y=!0,e.updateOffset(this),y=!1)}function w(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function S(t){!1===e.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,i){var n=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){var r,a,s,l=[],h=arguments.length;for(a=0;a<h;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return i.apply(this,arguments)},i)}var C={};function T(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),C[t]||(S(i),C[t]=!0)}function M(t){return"u">typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function D(t,e){var i,n=d({},t);for(i in e)o(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)o(t,i)&&!o(e,i)&&r(t[i])&&(n[i]=d({},n[i]));return n}function I(t){null!=t&&this.set(t)}function A(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},L={};function R(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(L[t]=r),e&&(L[e[0]]=function(){return A(r.apply(this,arguments),e[1],e[2])}),i&&(L[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function N(t,e){return t.isValid()?(P[e=z(e,t.localeData())]=P[e]||function(t){var e,i,n,r=t.match(E);for(i=0,n=r.length;i<n;i++)L[r[i]]?r[i]=L[r[i]]:r[i]=(e=r[i]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=M(r[i])?r[i].call(e,t):r[i];return o}}(e),P[e](t)):t.localeData().invalidDate()}function z(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(O.lastIndex=0;i>=0&&O.test(t);)t=t.replace(O,n),O.lastIndex=0,i-=1;return t}var B={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function V(t){return"string"==typeof t?B[t]||B[t.toLowerCase()]:void 0}function F(t){var e,i,n={};for(i in t)o(t,i)&&(e=V(i))&&(n[e]=t[i]);return n}var H,Y,$,U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},W=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)o(t,e)&&i.push(e);return i},j=/\d/,G=/\d\d/,Z=/\d{3}/,q=/\d{4}/,X=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,te=/\d{1,4}/,ti=/[+-]?\d{1,6}/,tn=/\d+/,tr=/[+-]?\d+/,to=/Z|[+-]\d\d:?\d\d/gi,ta=/Z|[+-]\d\d(?::?\d\d)?/gi,ts=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,tl=/^[1-9]\d?/,th=/^([1-9]\d|\d)/;function tu(t,e,i){$[t]=M(e)?e:function(t,n){return t&&i?i:e}}function td(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tc(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function tp(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=tc(e)),i}$={};var tf={};function tg(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,i){i[e]=tp(t)}),n=t.length,i=0;i<n;i++)tf[t[i]]=r}function tm(t,e){tg(t,function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)})}function t_(t){return t%4==0&&t%100!=0||t%400==0}function tv(t){return t_(t)?366:365}R("Y",0,0,function(){var t=this.year();return t<=9999?A(t,4):"+"+t}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),tu("Y",tr),tu("YY",K,G),tu("YYYY",te,q),tu("YYYYY",ti,X),tu("YYYYYY",ti,X),tg(["YYYYY","YYYYYY"],0),tg("YYYY",function(t,i){i[0]=2===t.length?e.parseTwoDigitYear(t):tp(t)}),tg("YY",function(t,i){i[0]=e.parseTwoDigitYear(t)}),tg("Y",function(t,e){e[0]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return tp(t)+(tp(t)>68?1900:2e3)};var ty=tb("FullYear",!0);function tb(t,i){return function(n){return null!=n?(tw(this,t,n),e.updateOffset(this,i),this):tx(this,t)}}function tx(t,e){if(!t.isValid())return 0/0;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return 0/0}}function tw(t,e,i){var n,r,o,a;if(!(!t.isValid()||isNaN(i))){switch(n=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=t.month(),a=29!==(a=t.date())||1!==o||t_(i)?a:28,r?n.setUTCFullYear(i,o,a):n.setFullYear(i,o,a)}}function tS(t,e){if(isNaN(t)||isNaN(e))return 0/0;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?t_(t)?29:28:31-i%7%2}t$=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return -1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),R("MMMM",0,0,function(t){return this.localeData().months(this,t)}),tu("M",K,tl),tu("MM",K,G),tu("MMM",function(t,e){return e.monthsShortRegex(t)}),tu("MMMM",function(t,e){return e.monthsRegex(t)}),tg(["M","MM"],function(t,e){e[1]=tp(t)-1}),tg(["MMM","MMMM"],function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:p(i).invalidMonth=t});var tk="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tC=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function tT(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();if(i)if("MMM"===e)return -1!==(r=t$.call(this._shortMonthsParse,a))?r:null;else return -1!==(r=t$.call(this._longMonthsParse,a))?r:null;return"MMM"===e?-1!==(r=t$.call(this._shortMonthsParse,a))||-1!==(r=t$.call(this._longMonthsParse,a))?r:null:-1!==(r=t$.call(this._longMonthsParse,a))||-1!==(r=t$.call(this._shortMonthsParse,a))?r:null}function tM(t,e){if(!t.isValid())return t;if("string"==typeof e){if(/^\d+$/.test(e))e=tp(e);else if(!l(e=t.localeData().monthsParse(e)))return t}var i=e,n=t.date();return n=n<29?n:Math.min(n,tS(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function tD(t){return null!=t?(tM(this,t),e.updateOffset(this,!0),this):tx(this,"Month")}function tI(){function t(t,e){return e.length-t.length}var e,i,n,r,o=[],a=[],s=[];for(e=0;e<12;e++)i=c([2e3,e]),n=td(this.monthsShort(i,"")),r=td(this.months(i,"")),o.push(n),a.push(r),s.push(r),s.push(n);o.sort(t),a.sort(t),s.sort(t),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function tA(t,e,i,n,r,o,a){var s;return t<100&&t>=0?isFinite((s=new Date(t+400,e,i,n,r,o,a)).getFullYear())&&s.setFullYear(t):s=new Date(t,e,i,n,r,o,a),s}function tE(t){var e,i;return t<100&&t>=0?(i=Array.prototype.slice.call(arguments),i[0]=t+400,isFinite((e=new Date(Date.UTC.apply(null,i))).getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function tO(t,e,i){var n=7+e-i;return-((7+tE(t,0,n).getUTCDay()-e)%7)+n-1}function tP(t,e,i,n,r){var o,a,s=1+7*(e-1)+(7+i-n)%7+tO(t,n,r);return s<=0?a=tv(o=t-1)+s:s>tv(t)?(o=t+1,a=s-tv(t)):(o=t,a=s),{year:o,dayOfYear:a}}function tL(t,e,i){var n,r,o=tO(t.year(),e,i),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+tR(r=t.year()-1,e,i):a>tR(t.year(),e,i)?(n=a-tR(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function tR(t,e,i){var n=tO(t,e,i),r=tO(t+1,e,i);return(tv(t)-n+r)/7}function tN(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),tu("w",K,tl),tu("ww",K,G),tu("W",K,tl),tu("WW",K,G),tm(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=tp(t)}),R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),tu("d",K),tu("e",K),tu("E",K),tu("dd",function(t,e){return e.weekdaysMinRegex(t)}),tu("ddd",function(t,e){return e.weekdaysShortRegex(t)}),tu("dddd",function(t,e){return e.weekdaysRegex(t)}),tm(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t}),tm(["d","e","E"],function(t,e,i,n){e[n]=tp(t)});var tz="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function tB(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();if(i)if("dddd"===e)return -1!==(r=t$.call(this._weekdaysParse,a))?r:null;else if("ddd"===e)return -1!==(r=t$.call(this._shortWeekdaysParse,a))?r:null;else return -1!==(r=t$.call(this._minWeekdaysParse,a))?r:null;return"dddd"===e?-1!==(r=t$.call(this._weekdaysParse,a))||-1!==(r=t$.call(this._shortWeekdaysParse,a))||-1!==(r=t$.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=t$.call(this._shortWeekdaysParse,a))||-1!==(r=t$.call(this._weekdaysParse,a))||-1!==(r=t$.call(this._minWeekdaysParse,a))?r:null:-1!==(r=t$.call(this._minWeekdaysParse,a))||-1!==(r=t$.call(this._weekdaysParse,a))||-1!==(r=t$.call(this._shortWeekdaysParse,a))?r:null}function tV(){function t(t,e){return e.length-t.length}var e,i,n,r,o,a=[],s=[],l=[],h=[];for(e=0;e<7;e++)i=c([2e3,1]).day(e),n=td(this.weekdaysMin(i,"")),r=td(this.weekdaysShort(i,"")),o=td(this.weekdays(i,"")),a.push(n),s.push(r),l.push(o),h.push(n),h.push(r),h.push(o);a.sort(t),s.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function tF(){return this.hours()%12||12}function tH(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function tY(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,tF),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+tF.apply(this)+A(this.minutes(),2)}),R("hmmss",0,0,function(){return""+tF.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),tH("a",!0),tH("A",!1),tu("a",tY),tu("A",tY),tu("H",K,th),tu("h",K,tl),tu("k",K,tl),tu("HH",K,G),tu("hh",K,G),tu("kk",K,G),tu("hmm",Q),tu("hmmss",J),tu("Hmm",Q),tu("Hmmss",J),tg(["H","HH"],3),tg(["k","kk"],function(t,e,i){var n=tp(t);e[3]=24===n?0:n}),tg(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),tg(["h","hh"],function(t,e,i){e[3]=tp(t),p(i).bigHour=!0}),tg("hmm",function(t,e,i){var n=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n)),p(i).bigHour=!0}),tg("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n,2)),e[5]=tp(t.substr(r)),p(i).bigHour=!0}),tg("Hmm",function(t,e,i){var n=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n))}),tg("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n,2)),e[5]=tp(t.substr(r))});var t$,tU,tW=tb("Hours",!0),tj={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:tk,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:tz,meridiemParse:/[ap]\.?m?\.?/i},tG={},tZ={};function tq(t){return t?t.toLowerCase().replace("_","-"):t}function tX(e){var n=null;if(void 0===tG[e]&&t&&t.exports&&e&&e.match("^[^/\\\\]*$"))try{n=tU._abbr,i(118)("./locale/"+e),tK(n)}catch(t){tG[e]=null}return tG[e]}function tK(t,e){var i;return t&&((i=s(e)?tJ(t):tQ(t,e))?tU=i:"u">typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),tU._abbr}function tQ(t,e){if(null===e)return delete tG[t],null;var i,n=tj;if(e.abbr=t,null!=tG[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=tG[t]._config;else if(null!=e.parentLocale)if(null!=tG[e.parentLocale])n=tG[e.parentLocale]._config;else{if(null==(i=tX(e.parentLocale)))return tZ[e.parentLocale]||(tZ[e.parentLocale]=[]),tZ[e.parentLocale].push({name:t,config:e}),null;n=i._config}return tG[t]=new I(D(n,e)),tZ[t]&&tZ[t].forEach(function(t){tQ(t.name,t.config)}),tK(t),tG[t]}function tJ(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return tU;if(!n(t)){if(e=tX(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=tq(t[o]).split("-")).length,i=(i=tq(t[o+1]))?i.split("-"):null;e>0;){if(n=tX(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&function(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}(r,i)>=e-1)break;e--}o++}return tU}(t)}function t0(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>tS(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,p(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}var t1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t2=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t5=/Z|[+-]\d\d(?::?\d\d)?/,t3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],t4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],t6=/^\/?Date\((-?\d+)/i,t7=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,t8={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function t9(t){var e,i,n,r,o,a,s=t._i,l=t1.exec(s)||t2.exec(s),h=t3.length,u=t4.length;if(l){for(p(t).iso=!0,e=0,i=h;e<i;e++)if(t3[e][1].exec(l[1])){r=t3[e][0],n=!1!==t3[e][2];break}if(null==r){t._isValid=!1;return}if(l[3]){for(e=0,i=u;e<i;e++)if(t4[e][1].exec(l[3])){o=(l[2]||" ")+t4[e][0];break}if(null==o){t._isValid=!1;return}}if(!n&&null!=o){t._isValid=!1;return}if(l[4])if(t5.exec(l[4]))a="Z";else{t._isValid=!1;return}t._f=r+(o||"")+(a||""),en(t)}else t._isValid=!1}function et(t){var e,i,n,r,o,a,s,l,h,u,d,c=t7.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(o=c[4],a=c[3],s=c[2],l=c[5],h=c[6],u=c[7],d=[(e=parseInt(o,10))<=49?2e3+e:e<=999?1900+e:e,tk.indexOf(a),parseInt(s,10),parseInt(l,10),parseInt(h,10)],u&&d.push(parseInt(u,10)),i=c[1],n=d,r=t,i&&tz.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(p(r).weekdayMismatch=!0,r._isValid=!1,1))return;t._a=d,t._tzm=function(t,e,i){if(t)return t8[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(c[8],c[9],c[10]),t._d=tE.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ee(t,e,i){return null!=t?t:null!=e?e:i}function ei(t){var i,n,r,o,a,s,l,h,u,d,c,f,g,m,_,v,y=[];if(!t._d){for(c=new Date(e.now()),m=t._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&(null!=(n=(i=t)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,r=ee(n.GG,i._a[0],tL(ea(),1,4).year),o=ee(n.W,1),((a=ee(n.E,1))<1||a>7)&&(u=!0)):(s=i._locale._week.dow,l=i._locale._week.doy,d=tL(ea(),s,l),r=ee(n.gg,i._a[0],d.year),o=ee(n.w,d.week),null!=n.d?((a=n.d)<0||a>6)&&(u=!0):null!=n.e?(a=n.e+s,(n.e<0||n.e>6)&&(u=!0)):a=s),o<1||o>tR(r,s,l)?p(i)._overflowWeeks=!0:null!=u?p(i)._overflowWeekday=!0:(h=tP(r,o,a,s,l),i._a[0]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(v=ee(t._a[0],m[0]),(t._dayOfYear>tv(v)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),g=tE(v,0,t._dayOfYear),t._a[1]=g.getUTCMonth(),t._a[2]=g.getUTCDate()),f=0;f<3&&null==t._a[f];++f)t._a[f]=y[f]=m[f];for(;f<7;f++)t._a[f]=y[f]=null==t._a[f]?+(2===f):t._a[f];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?tE:tA).apply(null,y),_=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==_&&(p(t).weekdayMismatch=!0)}}function en(t){if(t._f===e.ISO_8601)return void t9(t);if(t._f===e.RFC_2822)return void et(t);t._a=[],p(t).empty=!0;var i,n,r,a,s,l,h,u,d,c,f,g=""+t._i,m=g.length,_=0;for(f=(h=z(t._f,t._locale).match(E)||[]).length,s=0;s<f;s++)if(u=h[s],(l=(g.match(!o($,u)?new RegExp(td(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r}))):$[u](t._strict,t._locale))||[])[0])&&((d=g.substr(0,g.indexOf(l))).length>0&&p(t).unusedInput.push(d),g=g.slice(g.indexOf(l)+l.length),_+=l.length),L[u])l?p(t).empty=!1:p(t).unusedTokens.push(u),null!=l&&o(tf,u)&&tf[u](l,t._a,t,u);else t._strict&&!l&&p(t).unusedTokens.push(u);p(t).charsLeftOver=m-_,g.length>0&&p(t).unusedInput.push(g),t._a[3]<=12&&!0===p(t).bigHour&&t._a[3]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=(i=t._locale,n=t._a[3],null==(r=t._meridiem)?n:null!=i.meridiemHour?i.meridiemHour(n,r):(null!=i.isPM&&((a=i.isPM(r))&&n<12&&(n+=12),a||12!==n||(n=0)),n)),null!==(c=p(t).era)&&(t._a[0]=t._locale.erasConvertYear(c,t._a[0])),ei(t),t0(t)}function er(t){var i=t._i,o=t._f;return(t._locale=t._locale||tJ(t._l),null===i||void 0===o&&""===i)?g({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),w(i))?new x(t0(i)):(h(i)?t._d=i:n(o)?!function(t){var e,i,n,r,o,a,s=!1,l=t._f.length;if(0===l){p(t).invalidFormat=!0,t._d=new Date(0/0);return}for(r=0;r<l;r++)o=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],en(e),f(e)&&(a=!0),o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,s?o<n&&(n=o,i=e):(null==n||o<n||a)&&(n=o,i=e,a&&(s=!0));d(t,i||e)}(t):o?en(t):function(t){var i=t._i;if(s(i))t._d=new Date(e.now());else if(h(i))t._d=new Date(i.valueOf());else if("string"==typeof i)!function(t){var i=t6.exec(t._i);if(null!==i){t._d=new Date(+i[1]);return}t9(t),!1!==t._isValid||(delete t._isValid,et(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:e.createFromInputFallback(t)))}(t);else if(n(i))t._a=u(i.slice(0),function(t){return parseInt(t,10)}),ei(t);else if(r(i)){if(!t._d){var o=F(t._i),a=void 0===o.day?o.date:o.day;t._a=u([o.year,o.month,a,o.hour,o.minute,o.second,o.millisecond],function(t){return t&&parseInt(t,10)}),ei(t)}}else l(i)?t._d=new Date(i):e.createFromInputFallback(t)}(t),f(t)||(t._d=null),t)}function eo(t,e,i,o,s){var l,h={};return(!0===e||!1===e)&&(o=e,e=void 0),(!0===i||!1===i)&&(o=i,i=void 0),(r(t)&&a(t)||n(t)&&0===t.length)&&(t=void 0),h._isAMomentObject=!0,h._useUTC=h._isUTC=s,h._l=i,h._i=t,h._f=e,h._strict=o,(l=new x(t0(er(h))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ea(t,e,i,n){return eo(t,e,i,n,!1)}e.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var es=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ea.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),el=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ea.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()});function eh(t,e){var i,r;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return ea();for(i=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](i))&&(i=e[r]);return i}var eu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ed(t){var e=F(t),i=e.year||0,n=e.quarter||0,r=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,h=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=eu.length;for(e in t)if(o(t,e)&&!(-1!==t$.call(eu,e)&&(null==t[e]||!isNaN(t[e]))))return!1;for(i=0;i<r;++i)if(t[eu[i]]){if(n)return!1;parseFloat(t[eu[i]])!==tp(t[eu[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*h+1e3*l*3600,this._days=+s+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=tJ(),this._bubble()}function ec(t){return t instanceof ed}function ep(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ef(t,e){R(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+A(~~(t/60),2)+e+A(~~t%60,2)})}ef("Z",":"),ef("ZZ",""),tu("Z",ta),tu("ZZ",ta),tg(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=em(ta,t)});var eg=/([\+\-]|\d\d)/gi;function em(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=+(60*(i=((r[r.length-1]||[])+"").match(eg)||["-",0,0])[1])+tp(i[2]))?0:"+"===i[0]?n:-n}function e_(t,i){var n,r;return i._isUTC?(n=i.clone(),r=(w(t)||h(t)?t.valueOf():ea(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),e.updateOffset(n,!1),n):ea(t).local()}function ev(t){return-Math.round(t._d.getTimezoneOffset())}function ey(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var eb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ew(t,e){var i,n,r,a,s,h,u=t,d=null;return ec(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=eb.exec(t))?(a="-"===d[1]?-1:1,u={y:0,d:tp(d[2])*a,h:tp(d[3])*a,m:tp(d[4])*a,s:tp(d[5])*a,ms:tp(ep(1e3*d[6]))*a}):(d=ex.exec(t))?(a="-"===d[1]?-1:1,u={y:eS(d[2],a),M:eS(d[3],a),w:eS(d[4],a),d:eS(d[5],a),h:eS(d[6],a),m:eS(d[7],a),s:eS(d[8],a)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=ea(u.from),n=ea(u.to),h=i.isValid()&&n.isValid()?(n=e_(n,i),i.isBefore(n)?r=ek(i,n):((r=ek(n,i)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(u={}).ms=h.milliseconds,u.M=h.months),s=new ed(u),ec(t)&&o(t,"_locale")&&(s._locale=t._locale),ec(t)&&o(t,"_isValid")&&(s._isValid=t._isValid),s}function eS(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ek(t,e){var i={};return i.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=e-t.clone().add(i.months,"M"),i}function eC(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),eT(this,ew(i,n),t),this}}function eT(t,i,n,r){var o=i._milliseconds,a=ep(i._days),s=ep(i._months);t.isValid()&&(r=null==r||r,s&&tM(t,tx(t,"Month")+s*n),a&&tw(t,"Date",tx(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&e.updateOffset(t,a||s))}ew.fn=ed.prototype,ew.invalid=function(){return ew(0/0)};var eM=eC(1,"add"),eD=eC(-1,"subtract");function eI(t){return"string"==typeof t||t instanceof String}function eA(t,e){if(t.date()<e.date())return-eA(e,t);var i,n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months");return i=e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r),-(n+i)||0}function eE(t){var e;return void 0===t?this._locale._abbr:(null!=(e=tJ(t))&&(this._locale=e),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var eO=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eP(){return this._locale}function eL(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function eR(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function eN(t,e){return e.erasAbbrRegex(t)}function ez(){var t,e,i,n,r,o=[],a=[],s=[],l=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=td(h[t].name),n=td(h[t].abbr),r=td(h[t].narrow),a.push(i),o.push(n),s.push(r),l.push(i),l.push(n),l.push(r);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function eB(t,e){R(0,[t,t.length],0,e)}function eV(t,e,i,n,r){var o;return null==t?tL(this,n,r).year:(e>(o=tR(t,n,r))&&(e=o),eF.call(this,t,e,i,n,r))}function eF(t,e,i,n,r){var o=tP(t,e,i,n,r),a=tE(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),tu("N",eN),tu("NN",eN),tu("NNN",eN),tu("NNNN",function(t,e){return e.erasNameRegex(t)}),tu("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),tg(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?p(i).era=r:p(i).invalidEra=t}),tu("y",tn),tu("yy",tn),tu("yyy",tn),tu("yyyy",tn),tu("yo",function(t,e){return e._eraYearOrdinalRegex||tn}),tg(["y","yy","yyy","yyyy"],0),tg(["yo"],function(t,e,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[0]=i._locale.eraYearOrdinalParse(t,r):e[0]=parseInt(t,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),eB("gggg","weekYear"),eB("ggggg","weekYear"),eB("GGGG","isoWeekYear"),eB("GGGGG","isoWeekYear"),tu("G",tr),tu("g",tr),tu("GG",K,G),tu("gg",K,G),tu("GGGG",te,q),tu("gggg",te,q),tu("GGGGG",ti,X),tu("ggggg",ti,X),tm(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=tp(t)}),tm(["gg","GG"],function(t,i,n,r){i[r]=e.parseTwoDigitYear(t)}),R("Q",0,"Qo","quarter"),tu("Q",j),tg("Q",function(t,e){e[1]=(tp(t)-1)*3}),R("D",["DD",2],"Do","date"),tu("D",K,tl),tu("DD",K,G),tu("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),tg(["D","DD"],2),tg("Do",function(t,e){e[2]=tp(t.match(K)[0])});var eH=tb("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),tu("DDD",tt),tu("DDDD",Z),tg(["DDD","DDDD"],function(t,e,i){i._dayOfYear=tp(t)}),R("m",["mm",2],0,"minute"),tu("m",K,th),tu("mm",K,G),tg(["m","mm"],4);var eY=tb("Minutes",!1);R("s",["ss",2],0,"second"),tu("s",K,th),tu("ss",K,G),tg(["s","ss"],5);var e$=tb("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),tu("S",tt,j),tu("SS",tt,G),tu("SSS",tt,Z),m="SSSS";m.length<=9;m+="S")tu(m,tn);function eU(t,e){e[6]=tp(("0."+t)*1e3)}for(m="S";m.length<=9;m+="S")tg(m,eU);_=tb("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var eW=x.prototype;function ej(t){return t}eW.add=eM,eW.calendar=function(t,i){if(1==arguments.length)if(arguments[0]){var s,u,d,c;if(s=arguments[0],w(s)||h(s)||eI(s)||l(s)||(d=n(u=s),c=!1,d&&(c=0===u.filter(function(t){return!l(t)&&eI(u)}).length),d&&c)||function(t){var e,i,n=r(t)&&!a(t),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=l.length;for(e=0;e<h;e+=1)i=l[e],s=s||o(t,i);return n&&s}(s)||null==s)t=arguments[0],i=void 0;else(function(t){var e,i,n=r(t)&&!a(t),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<l.length;e+=1)i=l[e],s=s||o(t,i);return n&&s})(arguments[0])&&(i=arguments[0],t=void 0)}else t=void 0,i=void 0;var p=t||ea(),f=e_(p,this).startOf("day"),g=e.calendarFormat(this,f)||"sameElse",m=i&&(M(i[g])?i[g].call(this,p):i[g]);return this.format(m||this.localeData().calendar(g,this,ea(p)))},eW.clone=function(){return new x(this)},eW.diff=function(t,e,i){var n,r,o;if(!this.isValid()||!(n=e_(t,this)).isValid())return 0/0;switch(r=(n.utcOffset()-this.utcOffset())*6e4,e=V(e)){case"year":o=eA(this,n)/12;break;case"month":o=eA(this,n);break;case"quarter":o=eA(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:tc(o)},eW.endOf=function(t){var i,n;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?eR:eL,t){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=36e5-((i+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":i=this._d.valueOf(),i+=6e4-(i%6e4+6e4)%6e4-1;break;case"second":i=this._d.valueOf(),i+=1e3-(i%1e3+1e3)%1e3-1}return this._d.setTime(i),e.updateOffset(this,!0),this},eW.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=N(this,t);return this.localeData().postformat(i)},eW.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||ea(t).isValid())?ew({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},eW.fromNow=function(t){return this.from(ea(),t)},eW.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||ea(t).isValid())?ew({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},eW.toNow=function(t){return this.to(ea(),t)},eW.get=function(t){return M(this[t=V(t)])?this[t]():this},eW.invalidAt=function(){return p(this).overflow},eW.isAfter=function(t,e){var i=w(t)?t:ea(t);return!!(this.isValid()&&i.isValid())&&("millisecond"===(e=V(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},eW.isBefore=function(t,e){var i=w(t)?t:ea(t);return!!(this.isValid()&&i.isValid())&&("millisecond"===(e=V(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},eW.isBetween=function(t,e,i,n){var r=w(t)?t:ea(t),o=w(e)?e:ea(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},eW.isSame=function(t,e){var i,n=w(t)?t:ea(t);return!!(this.isValid()&&n.isValid())&&("millisecond"===(e=V(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},eW.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},eW.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},eW.isValid=function(){return f(this)},eW.lang=eO,eW.locale=eE,eW.localeData=eP,eW.max=el,eW.min=es,eW.parsingFlags=function(){return d({},p(this))},eW.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)o(t,e)&&i.push({unit:e,priority:U[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}(t=F(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(M(this[t=V(t)]))return this[t](e);return this},eW.startOf=function(t){var i,n;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?eR:eL,t){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=((i+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":i=this._d.valueOf(),i-=(i%6e4+6e4)%6e4;break;case"second":i=this._d.valueOf(),i-=(i%1e3+1e3)%1e3}return this._d.setTime(i),e.updateOffset(this,!0),this},eW.subtract=eD,eW.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},eW.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},eW.toDate=function(){return new Date(this.valueOf())},eW.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;if(0>i.year()||i.year()>9999)return N(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(M(Date.prototype.toISOString))if(e)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(i,"Z"));return N(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},eW.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+n+'("]',e=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i)},"u">typeof Symbol&&null!=Symbol.for&&(eW[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),eW.toJSON=function(){return this.isValid()?this.toISOString():null},eW.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},eW.unix=function(){return Math.floor(this.valueOf()/1e3)},eW.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},eW.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},eW.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return n[t].name;return""},eW.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return n[t].narrow;return""},eW.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return n[t].abbr;return""},eW.eraYear=function(){var t,i,n,r,o=this.localeData().eras();for(t=0,i=o.length;t<i;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-e(o[t].since).year())*n+o[t].offset;return this.year()},eW.year=ty,eW.isLeapYear=function(){return t_(this.year())},eW.weekYear=function(t){return eV.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},eW.isoWeekYear=function(t){return eV.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},eW.quarter=eW.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)},eW.month=tD,eW.daysInMonth=function(){return tS(this.year(),this.month())},eW.week=eW.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add((t-e)*7,"d")},eW.isoWeek=eW.isoWeeks=function(t){var e=tL(this,1,4).week;return null==t?e:this.add((t-e)*7,"d")},eW.weeksInYear=function(){var t=this.localeData()._week;return tR(this.year(),t.dow,t.doy)},eW.weeksInWeekYear=function(){var t=this.localeData()._week;return tR(this.weekYear(),t.dow,t.doy)},eW.isoWeeksInYear=function(){return tR(this.year(),1,4)},eW.isoWeeksInISOWeekYear=function(){return tR(this.isoWeekYear(),1,4)},eW.date=eH,eW.day=eW.days=function(t){if(!this.isValid())return null!=t?this:0/0;var e,i,n=tx(this,"Day");return null==t?n:(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d"))},eW.weekday=function(t){if(!this.isValid())return null!=t?this:0/0;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},eW.isoWeekday=function(t){if(!this.isValid())return null!=t?this:0/0;if(null==t)return this.day()||7;var e,i=(e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?i:i-7)},eW.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},eW.hour=eW.hours=tW,eW.minute=eW.minutes=eY,eW.second=eW.seconds=e$,eW.millisecond=eW.milliseconds=_,eW.utcOffset=function(t,i,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:0/0;if(null==t)return this._isUTC?o:ev(this);if("string"==typeof t){if(null===(t=em(ta,t)))return this}else 16>Math.abs(t)&&!n&&(t*=60);return!this._isUTC&&i&&(r=ev(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!i||this._changeInProgress?eT(this,ew(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this},eW.utc=function(t){return this.utcOffset(0,t)},eW.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ev(this),"m")),this},eW.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=em(to,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},eW.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ea(t).utcOffset():0,(this.utcOffset()-t)%60==0)},eW.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},eW.isLocal=function(){return!!this.isValid()&&!this._isUTC},eW.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},eW.isUtc=ey,eW.isUTC=ey,eW.zoneAbbr=function(){return this._isUTC?"UTC":""},eW.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},eW.dates=k("dates accessor is deprecated. Use date instead.",eH),eW.months=k("months accessor is deprecated. Use month instead",tD),eW.years=k("years accessor is deprecated. Use year instead",ty),eW.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),eW.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=er(e))._a?(t=e._isUTC?c(e._a):ea(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<n;i++)tp(t[i])!==tp(e[i])&&o++;return o+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var eG=I.prototype;function eZ(t,e,i,n){var r=tJ(),o=c().set(n,e);return r[i](o,t)}function eq(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return eZ(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=eZ(t,n,i,"month");return r}function eX(t,e,i,n){"boolean"==typeof t||(i=e=t,t=!1),l(e)&&(i=e,e=void 0),e=e||"";var r,o=tJ(),a=t?o._week.dow:0,s=[];if(null!=i)return eZ(e,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=eZ(e,(r+a)%7,n,"day");return s}eG.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return M(n)?n.call(e,i):n},eG.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(E).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},eG.invalidDate=function(){return this._invalidDate},eG.ordinal=function(t){return this._ordinal.replace("%d",t)},eG.preparse=ej,eG.postformat=ej,eG.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return M(r)?r(t,e,i,n):r.replace(/%d/i,t)},eG.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return M(i)?i(e):i.replace(/%s/i,e)},eG.set=function(t){var e,i;for(i in t)o(t,i)&&(M(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},eG.eras=function(t,i){var n,r,o,a=this._eras||tJ("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=e(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=e(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},eG.erasParse=function(t,e,i){var n,r,o,a,s,l=this.eras();for(t=t.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(s===t)return l[n]}else if([o,a,s].indexOf(t)>=0)return l[n]},eG.erasConvertYear=function(t,i){var n=t.since<=t.until?1:-1;return void 0===i?e(t.since).year():e(t.since).year()+(i-t.offset)*n},eG.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||ez.call(this),t?this._erasAbbrRegex:this._erasRegex},eG.erasNameRegex=function(t){return o(this,"_erasNameRegex")||ez.call(this),t?this._erasNameRegex:this._erasRegex},eG.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||ez.call(this),t?this._erasNarrowRegex:this._erasRegex},eG.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||tC).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},eG.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[tC.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},eG.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return tT.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},eG.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tI.call(this),t)?this._monthsStrictRegex:this._monthsRegex:(o(this,"_monthsRegex")||(this._monthsRegex=ts),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},eG.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tI.call(this),t)?this._monthsShortStrictRegex:this._monthsShortRegex:(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ts),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},eG.week=function(t){return tL(t,this._week.dow,this._week.doy).week},eG.firstDayOfYear=function(){return this._week.doy},eG.firstDayOfWeek=function(){return this._week.dow},eG.weekdays=function(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?tN(i,this._week.dow):t?i[t.day()]:i},eG.weekdaysMin=function(t){return!0===t?tN(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},eG.weekdaysShort=function(t){return!0===t?tN(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},eG.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return tB.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;else if(!i&&this._weekdaysParse[n].test(t))return n}},eG.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t)?this._weekdaysStrictRegex:this._weekdaysRegex:(o(this,"_weekdaysRegex")||(this._weekdaysRegex=ts),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},eG.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ts),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},eG.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ts),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},eG.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},eG.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},tK("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===tp(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",tK),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",tJ);var eK=Math.abs;function eQ(t,e,i,n){var r=ew(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function eJ(t){return t<0?Math.floor(t):Math.ceil(t)}function e0(t){return 4800*t/146097}function e1(t){return 146097*t/4800}function e2(t){return function(){return this.as(t)}}var e5=e2("ms"),e3=e2("s"),e4=e2("m"),e6=e2("h"),e7=e2("d"),e8=e2("w"),e9=e2("M"),it=e2("Q"),ie=e2("y");function ii(t){return function(){return this.isValid()?this._data[t]:0/0}}var ir=ii("milliseconds"),io=ii("seconds"),ia=ii("minutes"),is=ii("hours"),il=ii("days"),ih=ii("months"),iu=ii("years"),id=Math.round,ic={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ip(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var ig=Math.abs;function im(t){return(t>0)-(t<0)||+t}function i_(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,o,a,s,l=ig(this._milliseconds)/1e3,h=ig(this._days),u=ig(this._months),d=this.asSeconds();return d?(t=tc(l/60),e=tc(t/60),l%=60,t%=60,i=tc(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=im(this._months)!==im(d)?"-":"",a=im(this._days)!==im(d)?"-":"",s=im(this._milliseconds)!==im(d)?"-":"",r+"P"+(i?o+i+"Y":"")+(u?o+u+"M":"")+(h?a+h+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+n+"S":"")):"P0D"}var iv=ed.prototype;return iv.isValid=function(){return this._isValid},iv.abs=function(){var t=this._data;return this._milliseconds=eK(this._milliseconds),this._days=eK(this._days),this._months=eK(this._months),t.milliseconds=eK(t.milliseconds),t.seconds=eK(t.seconds),t.minutes=eK(t.minutes),t.hours=eK(t.hours),t.months=eK(t.months),t.years=eK(t.years),this},iv.add=function(t,e){return eQ(this,t,e,1)},iv.subtract=function(t,e){return eQ(this,t,e,-1)},iv.as=function(t){if(!this.isValid())return 0/0;var e,i,n=this._milliseconds;if("month"===(t=V(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+e0(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(e1(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw Error("Unknown unit "+t)}},iv.asMilliseconds=e5,iv.asSeconds=e3,iv.asMinutes=e4,iv.asHours=e6,iv.asDays=e7,iv.asWeeks=e8,iv.asMonths=e9,iv.asQuarters=it,iv.asYears=ie,iv.valueOf=e5,iv._bubble=function(){var t,e,i,n,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*eJ(e1(s)+a),a=0,s=0),l.milliseconds=o%1e3,l.seconds=(t=tc(o/1e3))%60,l.minutes=(e=tc(t/60))%60,l.hours=(i=tc(e/60))%24,a+=tc(i/24),s+=r=tc(e0(a)),a-=eJ(e1(r)),n=tc(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},iv.clone=function(){return ew(this)},iv.get=function(t){return t=V(t),this.isValid()?this[t+"s"]():0/0},iv.milliseconds=ir,iv.seconds=io,iv.minutes=ia,iv.hours=is,iv.days=il,iv.weeks=function(){return tc(this.days()/7)},iv.months=ih,iv.years=iu,iv.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r,o,a,s,l,h,u,d,c,p,f,g=!1,m=ic;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(g=t),"object"==typeof e&&(m=Object.assign({},ic,e),null!=e.s&&null==e.ss&&(m.ss=e.s-1)),p=this.localeData(),i=!g,n=m,r=ew(this).abs(),o=id(r.as("s")),a=id(r.as("m")),s=id(r.as("h")),l=id(r.as("d")),h=id(r.as("M")),u=id(r.as("w")),d=id(r.as("y")),c=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(c=c||u<=1&&["w"]||u<n.w&&["ww",u]),(c=c||h<=1&&["M"]||h<n.M&&["MM",h]||d<=1&&["y"]||["yy",d])[2]=i,c[3]=+this>0,c[4]=p,f=ip.apply(null,c),g&&(f=p.pastFuture(+this,f)),p.postformat(f)},iv.toISOString=i_,iv.toString=i_,iv.toJSON=i_,iv.locale=eE,iv.localeData=eP,iv.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",i_),iv.lang=eO,R("X",0,0,"unix"),R("x",0,0,"valueOf"),tu("x",tr),tu("X",/[+-]?\d+(\.\d{1,3})?/),tg("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t))}),tg("x",function(t,e,i){i._d=new Date(tp(t))}),e.version="2.30.1",H=ea,e.fn=eW,e.min=function(){var t=[].slice.call(arguments,0);return eh("isBefore",t)},e.max=function(){var t=[].slice.call(arguments,0);return eh("isAfter",t)},e.now=function(){return Date.now?Date.now():+new Date},e.utc=c,e.unix=function(t){return ea(1e3*t)},e.months=function(t,e){return eq(t,e,"months")},e.isDate=h,e.locale=tK,e.invalid=g,e.duration=ew,e.isMoment=w,e.weekdays=function(t,e,i){return eX(t,e,i,"weekdays")},e.parseZone=function(){return ea.apply(null,arguments).parseZone()},e.localeData=tJ,e.isDuration=ec,e.monthsShort=function(t,e){return eq(t,e,"monthsShort")},e.weekdaysMin=function(t,e,i){return eX(t,e,i,"weekdaysMin")},e.defineLocale=tQ,e.updateLocale=function(t,e){if(null!=e){var i,n,r=tj;null!=tG[t]&&null!=tG[t].parentLocale?tG[t].set(D(tG[t]._config,e)):(null!=(n=tX(t))&&(r=n._config),e=D(r,e),null==n&&(e.abbr=t),(i=new I(e)).parentLocale=tG[t],tG[t]=i),tK(t)}else null!=tG[t]&&(null!=tG[t].parentLocale?(tG[t]=tG[t].parentLocale,t===tK()&&tK(t)):null!=tG[t]&&delete tG[t]);return tG[t]},e.locales=function(){return W(tG)},e.weekdaysShort=function(t,e,i){return eX(t,e,i,"weekdaysShort")},e.normalizeUnits=V,e.relativeTimeRounding=function(t){return void 0===t?id:"function"==typeof t&&(id=t,!0)},e.relativeTimeThreshold=function(t,e){return void 0!==ic[t]&&(void 0===e?ic[t]:(ic[t]=e,"s"===t&&(ic.ss=e-1),!0))},e.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},e.prototype=eW,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},118(t){function e(t){var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=118,t.exports=e},288(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-data-table__content {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n}\n\n.mdc-data-table {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n border-radius: 4px;\n /* @alternate */\n border-radius: var(--mdc-shape-medium, 4px);\n border-width: 1px;\n border-style: solid;\n border-color: rgba(0, 0, 0, 0.12);\n -webkit-overflow-scrolling: touch;\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n position: relative;\n}\n.mdc-data-table .mdc-data-table__header-cell:first-child {\n border-top-left-radius: 4px;\n /* @alternate */\n border-top-left-radius: var(--mdc-shape-medium, 4px);\n}\n[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child, .mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl] {\n border-top-right-radius: 4px;\n /* @alternate */\n border-top-right-radius: var(--mdc-shape-medium, 4px);\n border-top-left-radius: 0;\n}\n.mdc-data-table .mdc-data-table__header-cell:last-child {\n border-top-right-radius: 4px;\n /* @alternate */\n border-top-right-radius: var(--mdc-shape-medium, 4px);\n}\n[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child, .mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl] {\n border-top-left-radius: 4px;\n /* @alternate */\n border-top-left-radius: var(--mdc-shape-medium, 4px);\n border-top-right-radius: 0;\n}\n\n.mdc-data-table__row {\n background-color: inherit;\n}\n\n.mdc-data-table__header-cell {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n}\n\n.mdc-data-table__row--selected {\n background-color: rgba(98, 0, 238, 0.04);\n}\n\n.mdc-data-table__header-cell:after {\n border-bottom-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-data-table__pagination-rows-per-page-select:not(.mdc-select--disabled) .mdc-notched-outline__leading,\n.mdc-data-table__pagination-rows-per-page-select:not(.mdc-select--disabled) .mdc-notched-outline__notch,\n.mdc-data-table__pagination-rows-per-page-select:not(.mdc-select--disabled) .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.12);\n}\n.mdc-data-table__row,\n.mdc-data-table__pagination {\n border-top-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-data-table__header-cell:after {\n border-bottom-style: solid;\n border-bottom-width: 1px;\n}\n\n.mdc-data-table__row,\n.mdc-data-table__pagination {\n border-top-width: 1px;\n border-top-style: solid;\n}\n\n.mdc-data-table__row:not(.mdc-data-table__row--selected):hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.mdc-data-table__header-cell {\n color: rgba(0, 0, 0, 0.87);\n}\n\n.mdc-data-table__pagination-total,\n.mdc-data-table__pagination-rows-per-page-label,\n.mdc-data-table__cell {\n color: rgba(0, 0, 0, 0.87);\n}\n\n.mdc-data-table__cell {\n height: 52px;\n}\n\n.mdc-data-table__pagination {\n min-height: 52px;\n}\n\n.mdc-data-table__header-cell {\n height: 56px;\n}\n\n.mdc-data-table__cell,\n.mdc-data-table__header-cell {\n padding-right: 16px;\n padding-left: 16px;\n}\n\n.mdc-data-table__header-cell--checkbox,\n.mdc-data-table__cell--checkbox {\n /* @noflip */\n padding-left: 4px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-data-table__header-cell--checkbox, .mdc-data-table__header-cell--checkbox[dir=rtl],\n[dir=rtl] .mdc-data-table__cell--checkbox,\n.mdc-data-table__cell--checkbox[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 4px;\n}\n\n.mdc-data-table__sort-icon-button {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-data-table__sort-icon-button::before, .mdc-data-table__sort-icon-button::after {\n background-color: rgba(0, 0, 0, 0.6);\n /* @alternate */\n background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.6));\n}\n.mdc-data-table__sort-icon-button:hover::before, .mdc-data-table__sort-icon-button.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-data-table__sort-icon-button.mdc-ripple-upgraded--background-focused::before, .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__sort-icon-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button {\n color: rgba(0, 0, 0, 0.87);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button::before, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button::after {\n background-color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.87));\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:hover::before, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button.mdc-ripple-upgraded--background-focused::before, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n.mdc-data-table__table-container {\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n width: 100%;\n}\n\n.mdc-data-table__table {\n min-width: 100%;\n border: 0;\n white-space: nowrap;\n border-collapse: collapse;\n /**\n * With table-layout:fixed, table and column widths are defined by the width\n * of the first row of cells. Cells in subsequent rows do not affect column\n * widths. This results in a predictable table layout and may also speed up\n * rendering.\n */\n table-layout: fixed;\n}\n\n.mdc-data-table__cell {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n box-sizing: border-box;\n overflow: hidden;\n text-align: left;\n text-overflow: ellipsis;\n}\n[dir=rtl] .mdc-data-table__cell, .mdc-data-table__cell[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-data-table__cell--numeric {\n text-align: right;\n}\n[dir=rtl] .mdc-data-table__cell--numeric, .mdc-data-table__cell--numeric[dir=rtl] {\n /* @noflip */\n text-align: left;\n}\n\n.mdc-data-table__cell--checkbox {\n width: 1px;\n}\n\n.mdc-data-table__header-cell {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle2-font-size, 0.875rem);\n line-height: 1.375rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle2-line-height, 1.375rem);\n font-weight: 500;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle2-font-weight, 500);\n letter-spacing: 0.0071428571em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle2-text-transform, inherit);\n box-sizing: border-box;\n text-overflow: ellipsis;\n overflow: hidden;\n outline: none;\n /* @noflip */\n text-align: left;\n}\n[dir=rtl] .mdc-data-table__header-cell, .mdc-data-table__header-cell[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-data-table__header-cell--checkbox {\n width: 1px;\n}\n\n.mdc-data-table__header-cell--numeric {\n text-align: right;\n}\n[dir=rtl] .mdc-data-table__header-cell--numeric, .mdc-data-table__header-cell--numeric[dir=rtl] {\n /* @noflip */\n text-align: left;\n}\n\n.mdc-data-table__sort-icon-button {\n width: 28px;\n height: 28px;\n padding: 2px;\n -webkit-transform: rotate(0.0001deg);\n transform: rotate(0.0001deg);\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n transition: -webkit-transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n}\n[dir=rtl] .mdc-data-table__sort-icon-button, .mdc-data-table__sort-icon-button[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button, .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl] {\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button {\n -webkit-transform: rotate(-180deg);\n transform: rotate(-180deg);\n}\n.mdc-data-table__sort-icon-button:focus, .mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button {\n opacity: 1;\n}\n\n.mdc-data-table__header-cell-wrapper {\n align-items: center;\n display: inline-flex;\n vertical-align: middle;\n}\n\n.mdc-data-table__header-cell--with-sort {\n cursor: pointer;\n}\n\n.mdc-data-table__sort-status-label {\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n /* added line */\n width: 1px;\n}\n\n.mdc-data-table__progress-indicator {\n display: none;\n position: absolute;\n width: 100%;\n}\n.mdc-data-table--in-progress .mdc-data-table__progress-indicator {\n display: block;\n}\n\n.mdc-data-table__scrim {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n height: 100%;\n opacity: 0.32;\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n.mdc-data-table--sticky-header .mdc-data-table__header-cell {\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.mdc-data-table--sticky-header .mdc-data-table__header-cell:after {\n bottom: 0;\n content: "";\n left: 0;\n position: absolute;\n width: 100%;\n}\n.mdc-data-table--sticky-header .mdc-data-table__row:first-child {\n border-top: 0;\n}\n\n.mdc-data-table__pagination {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n box-sizing: border-box;\n display: flex;\n justify-content: flex-end;\n}\n\n.mdc-data-table__pagination-trailing {\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n}\n[dir=rtl] .mdc-data-table__pagination-trailing, .mdc-data-table__pagination-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n\n.mdc-data-table__pagination-navigation {\n align-items: center;\n display: flex;\n}\n\n.mdc-data-table__pagination-button {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon, .mdc-data-table__pagination-button .mdc-button__icon[dir=rtl] {\n /* @noflip */\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n[dir=rtl] .mdc-data-table__pagination-button, .mdc-data-table__pagination-button[dir=rtl] {\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-data-table__pagination-total {\n /* @noflip */\n margin-left: 14px;\n /* @noflip */\n margin-right: 36px;\n white-space: nowrap;\n}\n[dir=rtl] .mdc-data-table__pagination-total, .mdc-data-table__pagination-total[dir=rtl] {\n /* @noflip */\n margin-left: 36px;\n /* @noflip */\n margin-right: 14px;\n}\n\n.mdc-data-table__pagination-rows-per-page {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 22px;\n align-items: center;\n display: inline-flex;\n}\n[dir=rtl] .mdc-data-table__pagination-rows-per-page, .mdc-data-table__pagination-rows-per-page[dir=rtl] {\n /* @noflip */\n margin-left: 22px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-data-table__pagination-rows-per-page-label {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 12px;\n white-space: nowrap;\n}\n[dir=rtl] .mdc-data-table__pagination-rows-per-page-label, .mdc-data-table__pagination-rows-per-page-label[dir=rtl] {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-data-table__pagination-rows-per-page-select {\n min-width: 80px;\n margin: 8px 0;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor {\n width: 100%;\n min-width: 80px;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor {\n height: 36px;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above {\n -webkit-transform: translateY(-27.25px) scale(1);\n transform: translateY(-27.25px) scale(1);\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-24.75px) scale(0.75);\n transform: translateY(-24.75px) scale(0.75);\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-select-outlined-36px 250ms 1;\n animation: mdc-floating-label-shake-float-above-select-outlined-36px 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-select-outlined-36px {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-select-outlined-36px {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon {\n width: 20px;\n height: 20px;\n}\n.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch {\n max-width: calc(100% - 56px);\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-list-item {\n height: 36px;\n}\n\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before, .mdc-data-table__header-row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before, .mdc-data-table__header-row-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before, .mdc-data-table__header-row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__header-row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-data-table__header-row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n}\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled ~ .mdc-checkbox__background {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n}\n@-webkit-keyframes mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE {\n 0% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n 50% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n}\n@keyframes mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE {\n 0% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n 50% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n}\n@-webkit-keyframes mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE {\n 0%, 80% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n 100% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n}\n@keyframes mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE {\n 0%, 80% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n 100% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background, .mdc-data-table__header-row-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {\n -webkit-animation-name: mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE;\n animation-name: mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE;\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background, .mdc-data-table__header-row-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {\n -webkit-animation-name: mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE;\n animation-name: mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE;\n}\n\n/*# sourceMappingURL=mdc.data-table.css.map*/'},879(t){"use strict";t.exports=__rspack_external__879},954(t){"use strict";t.exports=__rspack_external__954},487(t){"use strict";t.exports=__rspack_external__487},650(t){"use strict";t.exports=__rspack_external__650},207(t){"use strict";t.exports=__rspack_external__207},673(t){"use strict";t.exports=__rspack_external__673}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e,n)=>{var r=(e,n)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,[n]:e[r]})};r(e,"get"),r(n,"value")},i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};(()=>{"use strict";let t,e,r;i.r(n),i.d(n,{OrAttributeHistory:()=>CM,OrAttributeHistoryEvent:()=>Ck});var o,a,s,l,h,u,d,c,p,f,g,m,_,v,y,b,x,w,S,k,C,T,M,D,I,A,E,O,P,L,R,N,z,B,V,F,H,Y,$,U,W,j,G,Z,q,X,K,Q,J,tt={};i.r(tt),i.d(tt,{Arc:()=>dQ,BezierCurve:()=>dq,BoundingRect:()=>ie,Circle:()=>dp,CompoundPath:()=>dJ,Ellipse:()=>dm,Group:()=>rn,HOVER_LAYER_FOR_INCREMENTAL:()=>cv,HOVER_LAYER_FROM_THRESHOLD:()=>c_,HOVER_LAYER_NO:()=>cm,Image:()=>aO,IncrementalDisplayable:()=>cn,Line:()=>dU,LinearGradient:()=>d1,OrientedBoundingRect:()=>ce,Path:()=>aT,Point:()=>eY,Polygon:()=>dz,Polyline:()=>dF,RadialGradient:()=>d2,Rect:()=>aF,Ring:()=>dP,Sector:()=>dA,Text:()=>a1,WH:()=>cg,XY:()=>cf,applyTransform:()=>cP,calcZ2Range:()=>cQ,clipPointsByRect:()=>cN,clipRectByRect:()=>cz,createIcon:()=>cB,decomposeTransform:()=>c1,ensureCopyRect:()=>cq,ensureCopyTransform:()=>cX,expandOrShrinkRect:()=>cH,extendPath:()=>cx,extendShape:()=>cy,getCurrentCanvasPainter:()=>c5,getShapeClass:()=>cS,getTransform:()=>cO,groupTransition:()=>cR,initProps:()=>cl,isBoundingRectAxisAligned:()=>cG,isElementRemoved:()=>ch,lineLineIntersect:()=>cF,linePolygonIntersect:()=>cV,makeImage:()=>cC,makePath:()=>ck,mergePath:()=>cM,payloadDisableAnimation:()=>c0,registerShape:()=>cw,removeElement:()=>cu,removeElementWithFadeOut:()=>cc,resizePath:()=>cD,retrieveZInfo:()=>cK,setTooltipConfig:()=>cU,subPixelOptimize:()=>cE,subPixelOptimizeLine:()=>cI,subPixelOptimizeRect:()=>cA,transformDirection:()=>cL,traverseElements:()=>cj,traverseUpdateZ:()=>cJ,updateProps:()=>cs});var te=function(t,e){return(te=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function ti(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}te(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var tn=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},tr=new function(){this.browser=new tn,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(tr.wxa=!0,tr.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?tr.worker=!0:!tr.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(tr.node=!0,tr.svgSupported=!0):function(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}}(navigator.userAgent,tr);var to="12px sans-serif",ta=function(t){var e={};if("u"<typeof JSON)return e;for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),r=(t.charCodeAt(i)-20)/100;e[n]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),ts={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!o){var i=ts.createCanvas();o=i&&i.getContext("2d")}if(o)return a!==e&&(a=o.font=e||to),o.measureText(t);t=t||"",e=e||to;var n=/((?:\d+)?\.?\d*)px/.exec(e),r=n&&+n[1]||12,s=0;if(e.indexOf("mono")>=0)s=r*t.length;else for(var l=0;l<t.length;l++){var h=ta[t[l]];s+=null==h?r:h*r}return{width:s}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}},tl=tE(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),th=tE(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),tu=Object.prototype.toString,td=Array.prototype,tc=td.forEach,tp=td.filter,tf=td.slice,tg=td.map,tm=(function(){}).constructor,t_=tm?tm.prototype:null,tv="__proto__",ty=2311;function tb(){return ty>=0x1fffffffffffff&&(ty=0),ty++}function tx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function tw(t){if(null==t||"object"!=typeof t)return t;var e=t,i=tu.call(t);if("[object Array]"===i){if(!t[tJ]){e=[];for(var n=0,r=t.length;n<r;n++)e[n]=tw(t[n])}}else if(th[i]){if(!t[tJ]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}}}else if(!tl[i]&&!t[tJ]&&!tU(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tv&&(e[a]=tw(t[a]));return e}function tS(t,e,i){if(!tH(e)||!tH(t))return i?tw(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==tv){var r=t[n],o=e[n];!(tH(o)&&tH(r))||tN(o)||tN(r)||tU(o)||tU(r)||tY(o)||tY(r)||o[tJ]||r[tJ]?!i&&n in t||(t[n]=tw(e[n])):tS(r,o,i)}return t}function tk(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==tv&&(t[i]=e[i]);return t}function tC(t,e,i){for(var n=tP(e),r=0,o=n.length;r<o;r++){var a=n[r];(i?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function tT(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return -1}function tM(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else tC(t,e,i)}function tD(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function tI(t,e,i){if(t&&e)if(t.forEach&&t.forEach===tc)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function tA(t,e,i){if(!t)return[];if(!e)return tq(t);if(t.map&&t.map===tg)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}function tE(t,e,i,n){if(t&&e){for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,t);return i}}function tO(t,e,i){if(!t)return[];if(!e)return tq(t);if(t.filter&&t.filter===tp)return t.filter(e,i);for(var n=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function tP(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}ts.createCanvas;var tL=t_&&tz(t_.bind)?t_.call.bind(t_.bind):function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(tf.call(arguments)))}};function tR(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(tf.call(arguments)))}}function tN(t){return Array.isArray?Array.isArray(t):"[object Array]"===tu.call(t)}function tz(t){return"function"==typeof t}function tB(t){return"string"==typeof t}function tV(t){return"[object String]"===tu.call(t)}function tF(t){return"number"==typeof t}function tH(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function tY(t){return!!tl[tu.call(t)]}function t$(t){return!!th[tu.call(t)]}function tU(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function tW(t){return null!=t.colorStops}function tj(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function tG(t,e){return null!=t?t:e}function tZ(t,e,i){return null!=t?t:null!=e?e:i}function tq(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return tf.apply(t,e)}function tX(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tK(t,e){if(!t)throw Error(e)}function tQ(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tJ="__ec_primitive__",t0=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return tP(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},t}(),t1="function"==typeof Map,t2=function(){function t(e){var i=tN(e);this.data=t1?new Map:new t0;var n=this;function r(t,e){i?n.set(t,e):n.set(e,t)}e instanceof t?e.each(r):e&&tI(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},t.prototype.keys=function(){var t=this.data.keys();return t1?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function t5(t){return new t2(t)}function t3(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&tk(i,e),i}function t4(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function t6(t,e){return t.hasOwnProperty(e)}function t7(){}var t8=180/Math.PI,t9=function(t,e){return(t9=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function et(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}t9(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function ee(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ei(t,e,i){return t[0]=e,t[1]=i,t}function en(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function er(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function eo(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ea=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function es(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function el(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function eh(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var eu=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ed=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new eu(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new eu(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new eu(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new eu(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new eu(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new eu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ec=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,h=r[t][l];return h&&h.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!r||!r.filter||null==h.query||r.filter(t,h.query))switch(o){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ep=Math.log(2);function ef(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ep);return t[i][l]}for(var h=n|1<<i,u=i+1;n&1<<u;)u++;for(var d=0,c=0,p=0;c<s;c++){var f=1<<c;!(f&r)&&(d+=(p%2?-1:1)*t[i][c]*ef(t,e-1,u,h,r|f,o),p++)}return o[a]=d,d}function eg(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=ef(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ef(i,7,+(0===a),1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}var em="___zrEVENTSAVED",e_=[];function ev(t,e,i,n,r){if(e.getBoundingClientRect&&tr.domSupported&&!ey(e)){var o=e[em]||(e[em]={}),a=function(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),d=2*h,c=u.left,p=u.top;a.push(c,p),l=l&&o&&c===o[d]&&p===o[d+1],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?eg(s,a):eg(a,s))}(function(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,h=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[h]+":0",n[1-l]+":auto",r[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return e.clearMarkers=function(){tI(i,function(t){t.parentNode&&t.parentNode.removeChild(t)})},i}(e,o),o,r);if(a)return a(t,i,n),!0}return!1}function ey(t){return"CANVAS"===t.nodeName.toUpperCase()}var eb=/([&<>"'])/g,ex={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ew(t){return null==t?"":(t+"").replace(eb,function(t,e){return ex[e]})}var eS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ek=[],eC=tr.browser.firefox&&39>+tr.browser.version.split(".")[0];function eT(t,e,i,n){return i=i||{},n?eM(t,e,i):eC&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):eM(t,e,i),i}function eM(t,e,i){if(tr.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(ey(t)){var o=t.getBoundingClientRect();i.zrX=n-o.left,i.zrY=r-o.top;return}if(ev(ek,t,n,r)){i.zrX=ek[0],i.zrY=ek[1];return}}i.zrX=i.zrY=0}function eD(t){return t||window.event}function eI(t,e,i){if(null!=(e=eD(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&eT(t,r,e,i)}else{eT(t,e,e,i);var o=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;return null==i||null==n?e:3*(0!==n?Math.abs(n):Math.abs(i))*(n>0?-1:n<0?1:i>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&eS.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var eA=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function eE(t){return 2===t.which||3===t.which}var eO=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=eT(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in eL)if(eL.hasOwnProperty(e)){var i=eL[e](this._track,t);if(i)return i}},t}();function eP(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}var eL={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=eP(n)/eP(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function eR(){return[1,0,0,1,0,0]}function eN(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ez(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 eB(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function eV(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function eF(t,e,i,n){void 0===n&&(n=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],h=e[5],u=Math.sin(i),d=Math.cos(i);return t[0]=r*d+s*u,t[1]=-r*u+s*d,t[2]=o*d+l*u,t[3]=-o*u+d*l,t[4]=d*(a-n[0])+u*(h-n[1])+n[0],t[5]=d*(h-n[1])-u*(a-n[0])+n[1],t}function eH(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}let eY=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}();var e$=Math.min,eU=Math.max,eW=Math.abs,ej=["x","y"],eG=["width","height"],eZ=new eY,eq=new eY,eX=new eY,eK=new eY,eQ=it(),eJ=eQ.minTv,e0=eQ.maxTv,e1=[0,0],e2=function(){function t(t,e,i,n){e5(this,t,e,i,n)}return t.set=function(t,e,i,n,r){return n<0&&(e+=n,n=-n),r<0&&(i+=r,r=-r),t.x=e,t.y=i,t.width=n,t.height=r,t},t.prototype.union=function(t){var e=e$(t.x,this.x),i=e$(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=eU(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=eU(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return e4(eR(),this,t)},t.prototype.intersect=function(e,i,n){return t.intersect(this,e,i,n)},t.intersect=function(e,i,n,r){n&&eY.set(n,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=0/0),!e||!i)return!1;e instanceof t||(e=e5(e6,e.x,e.y,e.width,e.height)),i instanceof t||(i=e5(e7,i.x,i.y,i.width,i.height));var s=!!n;eQ.reset(r,s);var l=eQ.touchThreshold,h=e.x+l,u=e.x+e.width-l,d=e.y+l,c=e.y+e.height-l,p=i.x+l,f=i.x+i.width-l,g=i.y+l,m=i.y+i.height-l;if(h>u||d>c||p>f||g>m)return!1;var _=!(u<p||f<h||c<g||m<d);return(s||o)&&(e1[0]=1/0,e1[1]=0,e9(h,u,p,f,0,s,o,a),e9(d,c,g,m,1,s,o,a),s&&eY.copy(n,_?eQ.useDir?eQ.dirMinTv:eJ:e0)),_},t.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},t.prototype.contain=function(e,i){return t.contain(this,e,i)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){e3(this,t)},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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,i){if(!i){t!==e&&e3(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],r=i[3],o=i[4],a=i[5];t.x=e.x*n+o,t.y=e.y*r+a,t.width=e.width*n,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}eZ.x=eX.x=e.x,eZ.y=eK.y=e.y,eq.x=eK.x=e.x+e.width,eq.y=eX.y=e.y+e.height,eZ.transform(i),eK.transform(i),eq.transform(i),eX.transform(i),t.x=e$(eZ.x,eq.x,eX.x,eK.x),t.y=e$(eZ.y,eq.y,eX.y,eK.y);var s=eU(eZ.x,eq.x,eX.x,eK.x),l=eU(eZ.y,eq.y,eX.y,eK.y);t.width=s-t.x,t.height=l-t.y},t.calculateTransform=function(t,e,i){var n,r,o,a,s,l=i.width/e.width,h=i.height/e.height;return eV(t=eN(t||[]),t,ei(e8,-e.x,-e.y)),n=t,r=t,a=(o=ei(e8,l,h))[0],s=o[1],n[0]=r[0]*a,n[1]=r[1]*s,n[2]=r[2]*a,n[3]=r[3]*s,n[4]=r[4]*a,n[5]=r[5]*s,eV(t,t,ei(e8,i.x,i.y)),t},t}();e2.create;var e5=e2.set,e3=e2.copy,e4=e2.calculateTransform;e2.applyTransform,e2.contain;var e6=new e2(0,0,0,0),e7=new e2(0,0,0,0),e8=[];function e9(t,e,i,n,r,o,a,s){var l=eW(e-i),h=eW(n-t),u=e$(l,h),d=ej[r],c=ej[1-r],p=eG[r];e<i||n<t?l<h?(o&&(e0[d]=-l),s&&(a[d]=e,a[p]=0)):(o&&(e0[d]=h),s&&(a[d]=t,a[p]=0)):(a&&(a[d]=eU(t,i),a[p]=e$(e,n)-a[d]),o&&(u<e1[0]||eQ.useDir)&&(e1[0]=e$(u,e1[0]),(l<h||!eQ.bidirectional)&&(eJ[d]=l,eJ[c]=0,eQ.useDir&&eQ.calcDirMTV()),(l>=h||!eQ.bidirectional)&&(eJ[d]=-h,eJ[c]=0,eQ.useDir&&eQ.calcDirMTV())))}function it(){var t=0,e=new eY,i=new eY,n={minTv:new eY,maxTv:new eY,useDir:!1,dirMinTv:new eY,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){n.touchThreshold=0,r&&null!=r.touchThreshold&&(n.touchThreshold=eU(0,r.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,r&&null!=r.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),i.copy(n.minTv),t=r.direction,n.bidirectional=null==r.bidirectional||!!r.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=n.minTv,a=n.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),h=Math.cos(t),u=l*o.y+h*o.x;if(r(u)){r(o.x)&&r(o.y)&&a.set(0,0);return}(i.x=s*h/u,i.y=s*l/u,r(i.x)&&r(i.y))?a.set(0,0):(n.bidirectional||e.dot(i)>0)&&i.len()<a.len()&&a.copy(i)}};function r(t){return 1e-10>eW(t)}return n}let ie=e2;var ii="silent";function ir(){eA(this.event)}var io=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return et(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ec),ia=function(t,e){this.x=t,this.y=e},is=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],il=new ie(0,0,0,0),ih=function(t){function e(e,i,n,r,o){var a=t.call(this)||this;return a._hovered=new ia(0,0),a.storage=e,a.painter=i,a.painterRoot=r,a._pointerSize=o,n=n||new io,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new ed(a),a}return et(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tI(is,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=id(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=n?new ia(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ia(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var r,o="on"+e,a={type:e,event:i,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:ir};n&&(n[o]&&(a.cancelBubble=!!n[o].call(n,a)),n.trigger(e,a),n=n.__hostTarget?n.__hostTarget:n.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new ia(t,e);if(iu(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ie(t-s,e-s,a,a),h=n.length-1;h>=0;h--){var u=n[h];u===i||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(il.copy(u.getBoundingRect()),u.transform&&il.applyTransform(u.transform),il.intersect(l)&&o.push(u))}if(o.length){for(var d=Math.PI/12,c=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<c;f+=d)if(iu(o,r,t+p*Math.cos(f),e+p*Math.sin(f),i),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eO);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new ia;o.target=n.target,this.dispatchToElement(o,r,n.event)}},e}(ec);function iu(t,e,i,n,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(r=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!r||ii}return!1}(a,i,n))&&(e.topTarget||(e.topTarget=a),s!==ii)){e.target=a;break}}}function id(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}function ic(t,e,i,n){var r=e+1;if(r===i)return 1;if(0>n(t[r++],t[e])){for(;r<i&&0>n(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<i&&n(t[r],t[r-1])>=0;)r++;return r-e}function ip(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var o,a=t[n],s=e,l=n;s<l;)0>r(a,t[o=s+l>>>1])?l=o:s=o+1;var h=n-s;switch(h){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(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=a}}function ig(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;l<s&&o(t,e[i+r+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&0>=o(t,e[i+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}for(a++;a<l;){var u=a+(l-a>>>1);o(t,e[i+u])>0?a=u+1:l=u}return l}function im(t,e,i,n,r,o){var a=0,s=0,l=1;if(0>o(t,e[i+r])){for(s=r+1;l<s&&0>o(t,e[i+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}else{for(s=n-r;l<s&&o(t,e[i+r+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var u=a+(l-a>>>1);0>o(t,e[i+u])?l=u:a=u+1}return l}function i_(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(r<2)){var o=0;if(r<32){o=ic(t,i,n,e),ip(t,i,n,i+o,e);return}var a=function(t,e){var i,n,r=7,o=0,a=[];function s(s){var l=i[s],h=n[s],u=i[s+1],d=n[s+1];n[s]=h+d,s===o-3&&(i[s+1]=i[s+2],n[s+1]=n[s+2]),o--;var c=im(t[u],t,l,h,0,e);l+=c,0==(h-=c)||0!==(d=ig(t[l+h-1],t,u,d,d-1,e))&&(h<=d?function(i,n,o,s){var l,h,u,d=0;for(d=0;d<n;d++)a[d]=t[i+d];var c=0,p=o,f=i;if(t[f++]=t[p++],0==--s){for(d=0;d<n;d++)t[f+d]=a[c+d];return}if(1===n){for(d=0;d<s;d++)t[f+d]=t[p+d];t[f+s]=a[c];return}for(var g=r;;){l=0,h=0,u=!1;do if(0>e(t[p],a[c])){if(t[f++]=t[p++],h++,l=0,0==--s){u=!0;break}}else if(t[f++]=a[c++],l++,h=0,1==--n){u=!0;break}while((l|h)<g);if(u)break;do{if(0!==(l=im(t[p],a,c,n,0,e))){for(d=0;d<l;d++)t[f+d]=a[c+d];if(f+=l,c+=l,(n-=l)<=1){u=!0;break}}if(t[f++]=t[p++],0==--s){u=!0;break}if(0!==(h=ig(a[c],t,p,s,0,e))){for(d=0;d<h;d++)t[f+d]=t[p+d];if(f+=h,p+=h,0==(s-=h)){u=!0;break}}if(t[f++]=a[c++],1==--n){u=!0;break}g--}while(l>=7||h>=7);if(u)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===n){for(d=0;d<s;d++)t[f+d]=t[p+d];t[f+s]=a[c]}else if(0===n)throw Error();else for(d=0;d<n;d++)t[f+d]=a[c+d]}(l,h,u,d):function(i,n,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var h=i+n-1,u=s-1,d=o+s-1,c=0,p=0;if(t[d--]=t[h--],0==--n){for(c=d-(s-1),l=0;l<s;l++)t[c+l]=a[l];return}if(1===s){for(d-=n,h-=n,p=d+1,c=h+1,l=n-1;l>=0;l--)t[p+l]=t[c+l];t[d]=a[u];return}for(var f=r;;){var g=0,m=0,_=!1;do if(0>e(a[u],t[h])){if(t[d--]=t[h--],g++,m=0,0==--n){_=!0;break}}else if(t[d--]=a[u--],m++,g=0,1==--s){_=!0;break}while((g|m)<f);if(_)break;do{if(0!=(g=n-im(a[u],t,i,n,n-1,e))){for(d-=g,h-=g,n-=g,p=d+1,c=h+1,l=g-1;l>=0;l--)t[p+l]=t[c+l];if(0===n){_=!0;break}}if(t[d--]=a[u--],1==--s){_=!0;break}if(0!=(m=s-ig(t[h],a,0,s,s-1,e))){for(d-=m,u-=m,s-=m,p=d+1,c=u+1,l=0;l<m;l++)t[p+l]=a[c+l];if(s<=1){_=!0;break}}if(t[d--]=t[h--],0==--n){_=!0;break}f--}while(g>=7||m>=7);if(_)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d-=n,h-=n,p=d+1,c=h+1,l=n-1;l>=0;l--)t[p+l]=t[c+l];t[d]=a[u]}else if(0===s)throw Error();else for(c=d-(s-1),l=0;l<s;l++)t[c+l]=a[l]}(l,h,u,d))}return i=[],n=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]<n[t+1]&&t--;else if(n[t]>n[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&n[t-1]<n[t+1]&&t--,s(t)}},pushRun:function(t,e){i[o]=t,n[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ic(t,i,n,e))<s){var l=r;l>s&&(l=s),ip(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}tI(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){ih.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=id(this,r,o);if("mouseup"===t&&a||(n=(i=this.findHover(r,o)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||eo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var iv=!1;function iy(){iv||(iv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ib(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ix=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ib}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,i_(i,ib)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||n)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=n,h=t;l;)l.parent=h,l.updateTransform(),a[o++]=l,h=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var u=t.childrenRef(),d=0;d<u.length;d++){var c=u[d];t.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,a,i)}t.__dirty=0}else isNaN(t.z)&&(iy(),t.z=0),isNaN(t.z2)&&(iy(),t.z2=0),isNaN(t.zlevel)&&(iy(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,i);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,a,i);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,a,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=tT(this._roots,t);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();p=tr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var iw={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1)?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):i*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-iw.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*iw.bounceIn(2*t):.5*iw.bounceOut(2*t-1)+.5}},iS=Math.pow,ik=Math.sqrt,iC=ik(3),iT=1/3,iM=ee(),iD=ee(),iI=ee();function iA(t){return t>-1e-8&&t<1e-8}function iE(t){return t>1e-8||t<-1e-8}function iO(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function iP(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function iL(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),h=t-r,u=s*s-3*a*l,d=s*l-9*a*h,c=l*l-3*s*h,p=0;if(iA(u)&&iA(d))if(iA(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=d*d-4*u*c;if(iA(g)){var m=d/u,f=-s/a+m,_=-m/2;f>=0&&f<=1&&(o[p++]=f),_>=0&&_<=1&&(o[p++]=_)}else if(g>0){var v=ik(g),y=u*s+1.5*a*(-d+v),b=u*s+1.5*a*(-d-v),f=(-s-((y=y<0?-iS(-y,iT):iS(y,iT))+(b=b<0?-iS(-b,iT):iS(b,iT))))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=Math.acos((2*u*s-3*a*d)/(2*ik(u*u*u)))/3,w=ik(u),S=Math.cos(x),f=(-s-2*w*S)/(3*a),_=(-s+w*(S+iC*Math.sin(x)))/(3*a),k=(-s+w*(S-iC*Math.sin(x)))/(3*a);f>=0&&f<=1&&(o[p++]=f),_>=0&&_<=1&&(o[p++]=_),k>=0&&k<=1&&(o[p++]=k)}}return p}function iR(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(iA(a)){if(iE(o)){var h=-s/o;h>=0&&h<=1&&(r[l++]=h)}}else{var u=o*o-4*a*s;if(iA(u))r[0]=-o/(2*a);else if(u>0){var d=ik(u),h=(-o+d)/(2*a),c=(-o-d)/(2*a);h>=0&&h<=1&&(r[l++]=h),c>=0&&c<=1&&(r[l++]=c)}}return l}function iN(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,h=(s-a)*r+a,u=(l-s)*r+s,d=(u-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=n}function iz(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function iB(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function iV(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function iF(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}var iH=/cubic-bezier\(([0-9,\.e ]+)\)/;function iY(t){var e=t&&iH.exec(t);if(e){var i=e[1].split(","),n=+tQ(i[0]),r=+tQ(i[1]),o=+tQ(i[2]),a=+tQ(i[3]);if(isNaN(n+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:iL(0,n,o,1,t,s)&&iO(0,r,a,1,s[0])}}}var i$=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||t7,this.ondestroy=t.ondestroy||t7,this.onrestart=t.onrestart||t7,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-n%i,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tz(t)?t:iw[t]||iY(t)},t}(),iU=function(t){this.value=t},iW=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new iU(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ij=function(){function t(t){this._list=new iW,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new iU(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),iG={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function iZ(t){return(t=Math.round(t))<0?0:t>255?255:t}function iq(t){return t<0?0:t>1?1:t}function iX(t){return t.length&&"%"===t.charAt(t.length-1)?iZ(parseFloat(t)/100*255):iZ(parseInt(t,10))}function iK(t){return t.length&&"%"===t.charAt(t.length-1)?iq(parseFloat(t)/100):iq(parseFloat(t))}function iQ(t,e,i){return(i<0?i+=1:i>1&&(i-=1),6*i<1)?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function iJ(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function i0(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var i1=new ij(20),i2=null;function i5(t,e){i2&&i0(i2,e),i2=i1.put(t,i2||e.slice())}function i3(t,e){if(t){e=e||[];var i=i1.get(t);if(i)return i0(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in iG)return i0(e,iG[n]),i5(t,e),e;var r=n.length;if("#"===n.charAt(0)){if(4===r||5===r){var o=parseInt(n.slice(1,4),16);return o>=0&&o<=4095?(iJ(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(n.slice(4),16)/15:1),i5(t,e),e):void iJ(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(n.slice(1,7),16);return o>=0&&o<=0xffffff?(iJ(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(n.slice(7),16)/255:1),i5(t,e),e):void iJ(e,0,0,0,1)}return}var a=n.indexOf("("),s=n.indexOf(")");if(-1!==a&&s+1===r){var l=n.substr(0,a),h=n.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?iJ(e,+h[0],+h[1],+h[2],1):iJ(e,0,0,0,1);u=iK(h.pop());case"rgb":if(h.length>=3)return iJ(e,iX(h[0]),iX(h[1]),iX(h[2]),3===h.length?u:iK(h[3])),i5(t,e),e;return void iJ(e,0,0,0,1);case"hsla":if(4!==h.length)return void iJ(e,0,0,0,1);return h[3]=iK(h[3]),i4(h,e),i5(t,e),e;case"hsl":if(3!==h.length)return void iJ(e,0,0,0,1);return i4(h,e),i5(t,e),e;default:return}}iJ(e,0,0,0,1)}}function i4(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=iK(t[1]),r=iK(t[2]),o=r<=.5?r*(n+1):r+n-r*n,a=2*r-o;return iJ(e=e||[],iZ(255*iQ(a,o,i+1/3)),iZ(255*iQ(a,o,i)),iZ(255*iQ(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function i6(t,e){var i=i3(t);if(i){for(var n=0;n<3;n++)e<0?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return i8(i,4===i.length?"rgba":"rgb")}}function i7(t,e,i,n){var r,o=i3(t);if(t)return o=function(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,i=0;else{i=h<.5?l/(s+a):l/(2-s-a);var u=((s-n)/6+l/2)/l,d=((s-r)/6+l/2)/l,c=((s-o)/6+l/2)/l;n===s?e=c-d:r===s?e=1/3+u-c:o===s&&(e=2/3+d-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,h];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=Math.round(r=tz(e)?e(o[0]):e))<0?0:r>360?360:r),null!=i&&(o[1]=iK(tz(i)?i(o[1]):i)),null!=n&&(o[2]=iK(tz(n)?n(o[2]):n)),i8(i4(o),"rgba")}function i8(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function i9(t,e){var i=i3(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}var nt=new ij(100);function ne(t){if(tB(t)){var e=nt.get(t);return e||(e=i6(t,-.1),nt.put(t,e)),e}if(tW(t)){var i=tk({},t);return i.colorStops=tA(t.colorStops,function(t){return{offset:t.offset,color:i6(t.color,-.1)}}),i}return t}"u">typeof Buffer&&Buffer.from;var ni=Array.prototype.slice;function nn(t,e,i,n){for(var r,o=e.length,a=0;a<o;a++)t[a]=(r=e[a],(i[a]-r)*n+r);return t}function nr(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+i[o]*n;return t}function no(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function na(t){if(tD(t)){var e=t.length;if(tD(t[0])){for(var i=[],n=0;n<e;n++)i.push(ni.call(t[n]));return i}return ni.call(t)}return t}function ns(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function nl(t){return 4===t||5===t}function nh(t){return 1===t||2===t}var nu=[0,0,0,0],nd=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=6,s=e;if(tD(e)){var l=tD(e&&e[0])?2:1;a=l,(1!==l||tF(e[0]))&&(2!==l||tF(e[0][0]))||(o=!0)}else if(tF(e)&&e==e)a=0;else if(tB(e))if(isNaN(+e)){var h=i3(e);h&&(s=h,a=3)}else a=0;else if(tW(e)){var u=tk({},s);(u.colorStops=tA(e.colorStops,function(t){return{offset:t.offset,color:i3(t.color)}}),"linear"===e.type)?a=4:"radial"===e.type&&(a=5),s=u}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:s,rawValue:e,percent:0};return i&&(d.easing=i,d.easingFunc=tz(i)?i:iw[i]||iY(i)),n.push(d),d},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(t,e){return t.time-e.time});for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=nh(n),l=nl(n),h=0;h<r;h++){var u=i[h],d=u.value,c=o.value;u.percent=u.time/t,!a&&(s&&h!==r-1?function(t,e,i){if(t.push&&e.push){var n=t.length,r=e.length;if(n!==r)if(n>r)t.length=r;else for(var o=n;o<r;o++)t.push(1===i?e[o]:ni.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(d,c,n):l&&function(t,e){for(var i=t.length,n=e.length,r=i>n?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(i,n);s++)r.push({offset:a.offset,color:a.color.slice()})}(d.colorStops,c.colorStops))}if(!a&&5!==n&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var p=i[0].value,h=0;h<r;h++)0===n?i[h].additiveValue=i[h].value-p:3===n?i[h].additiveValue=nr([],i[h].value,p,-1):nh(n)&&(i[h].additiveValue=1===n?nr([],i[h].value,p,-1):no([],i[h].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,h=l.length,u=this.propName,d=3===s,c=this._lastFr,p=Math.min;if(1===h)n=r=l[0];else{if(e<0)i=0;else if(e<this._lastFrP){for(i=p(c+1,h-1);i>=0&&!(l[i].percent<=e);i--);i=p(i,h-2)}else{for(i=c;i<h&&!(l[i].percent>e);i++);i=p(i-1,h-2)}r=l[i+1],n=l[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var f=r.percent-n.percent,g=0===f?1:p((e-n.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var m=o?this._additiveValue:d?nu:t[u];if((nh(s)||d)&&!m&&(m=this._additiveValue=[]),this.discrete)t[u]=g<1?n.rawValue:r.rawValue;else if(nh(s))1===s?nn(m,n[a],r[a],g):function(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(i[a][l]-s)*n+s)}}(m,n[a],r[a],g);else if(nl(s)){var _,v,y,b,x,w=n[a],S=r[a],k=4===s;(t[u]={type:k?"linear":"radial",x:(_=w.x,(S.x-_)*g+_),y:(v=w.y,(S.y-v)*g+v),colorStops:tA(w.colorStops,function(t,e){var i,n=S.colorStops[e];return{offset:(i=t.offset,(n.offset-i)*g+i),color:ns(nn([],t.color,n.color,g))}}),global:S.global},k)?(t[u].x2=(y=w.x2,(S.x2-y)*g+y),t[u].y2=(b=w.y2,(S.y2-b)*g+b)):t[u].r=(x=w.r,(S.r-x)*g+x)}else if(d)nn(m,n[a],r[a],g),o||(t[u]=ns(m));else{var C,T=(C=n[a],(r[a]-C)*g+C);o?this._additiveValue=T:t[u]=T}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(i3(t[i],nu),nr(nu,nu,n,1),t[i]=ns(nu)):1===e?nr(t[i],t[i],n,1):2===e&&no(t[i],t[i],n,1)},t}(),nc=function(){function t(t,e,i,n){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n)?tx("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,tP(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o<i.length;o++){var a=i[o],s=r[a];if(!s){s=r[a]=new nd(a);var l=void 0,h=this._getAdditiveTrack(a);if(h){var u=h.keyframes,d=u[u.length-1];l=d&&d.value,3===h.valType&&l&&(l=ns(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,na(l),n),this._trackKeys.push(a)}s.addKeyframe(t,na(e[a]),n)}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,i=0;i<e;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,h=l.length;if(a.prepare(n,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[h-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else i.push(a)}if(i.length||this._force){var d=new i$({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var n=e._additiveAnimators;if(n){for(var r=!1,o=0;o<n.length;o++)if(n[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<i.length;o++)i[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return tA(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],o=this._tracks[r];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[i?0:a.length-1];s&&(t[r]=na(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tP(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function np(){return new Date().getTime()}var nf=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,i.stage=(e=e||{}).stage||{},i}return et(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,i=t.next;e?e.next=i:this._head=i,i?i.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=np()-this._pausedTime,i=e-this._time,n=this._head;n;){var r=n.next;n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),n=r}this._time=e,!t&&(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,p(function e(){t._running&&(p(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=np(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=np(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=np()-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 i=new nc(t,e.loop);return this.addAnimator(i),i},e}(ec),ng=tr.domSupported,nm=(l={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},h=tA(s=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return l.hasOwnProperty(e)?e:t}),{mouse:s,touch:["touchstart","touchend","touchmove"],pointer:h}),n_=["mousemove","mouseup"],nv=["pointermove","pointerup"],ny=!1;function nb(t){var e=t.pointerType;return"pen"===e||"touch"===e}function nx(t){t&&(t.zrByTouch=!0)}function nw(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}var nS=function(t,e){this.stopPropagation=t7,this.stopImmediatePropagation=t7,this.preventDefault=t7,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nk={mousedown:function(t){t=eI(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=eI(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=eI(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){nw(this,(t=eI(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ny=!0,t=eI(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ny||(t=eI(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){nx(t=eI(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nk.mousemove.call(this,t),nk.mousedown.call(this,t)},touchmove:function(t){nx(t=eI(this.dom,t)),this.handler.processGesture(t,"change"),nk.mousemove.call(this,t)},touchend:function(t){nx(t=eI(this.dom,t)),this.handler.processGesture(t,"end"),nk.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&nk.click.call(this,t)},pointerdown:function(t){nk.mousedown.call(this,t)},pointermove:function(t){nb(t)||nk.mousemove.call(this,t)},pointerup:function(t){nk.mouseup.call(this,t)},pointerout:function(t){nb(t)||nk.mouseout.call(this,t)}};tI(["click","dblclick","contextmenu"],function(t){nk[t]=function(e){e=eI(this.dom,e),this.trigger(t,e)}});var nC={pointermove:function(t){nb(t)||nC.mousemove.call(this,t)},pointerup:function(t){nC.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function nT(t,e,i,n){var r;t.mounted[e]=i,t.listenerOpts[e]=n,r=t.domTarget,r.addEventListener(e,i,n)}function nM(t){var e,i,n,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,i=r[o],n=t.listenerOpts[o],e.removeEventListener(o,i,n));t.mounted={}}var nD=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},nI=function(t){function e(e,i){var n,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=i,o._localHandlerScope=new nD(e,nk),ng&&(o._globalHandlerScope=new nD(document,nC)),r=(n=o._localHandlerScope).domHandlers,tr.pointerEventsSupported?tI(nm.pointer,function(t){nT(n,t,function(e){r[t].call(o,e)})}):(tr.touchEventsSupported&&tI(nm.touch,function(t){nT(n,t,function(e){r[t].call(o,e),n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)})}),tI(nm.mouse,function(t){nT(n,t,function(e){e=eD(e),n.touching||r[t].call(o,e)})})),o}return et(e,t),e.prototype.dispose=function(){nM(this._localHandlerScope),ng&&nM(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ng&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){tr.pointerEventsSupported?tI(nv,i):tr.touchEventsSupported||tI(n_,i);function i(i){nT(e,i,function(n){if(!nw(t,(n=eD(n)).target)){var r;r=n,n=eI(t.dom,new nS(t,r),!0),e.domHandlers[i].call(t,n)}},{capture:!0})}}(this,e):nM(e)}},e}(ec),nA=1;tr.hasGlobalWindow&&(nA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var nE=nA,nO="#333",nP="#ccc";function nL(t){return t>5e-5||t<-5e-5}var nR=[],nN=[],nz=eR(),nB=Math.abs,nV=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return nF(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return nL(this.rotation)||nL(this.x)||nL(this.y)||nL(this.scaleX-1)||nL(this.scaleY-1)||nL(this.skewX)||nL(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(eN(i),this.invTransform=null);return}i=i||eR(),e?this.getLocalTransform(i):eN(i),t&&(e?eB(i,t,i):ez(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||eR(),eH(this.invTransform,i)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(nR);var i=nR[0]<0?-1:1,n=nR[1]<0?-1:1,r=((nR[0]-i)*e+i)/nR[0]||0,o=((nR[1]-n)*e+n)/nR[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||eR(),eB(nN,t.invTransform,e),e=nN);var i=this.originX,n=this.originY;(i||n)&&(nz[4]=i,nz[5]=n,eB(nN,e,nz),nN[4]-=i,nN[5]-=n,e=nN),this.setLocalTransform(e)}},e.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[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&es(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&es(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&nB(t[0]-1)>1e-10&&nB(t[3]-1)>1e-10?Math.sqrt(nB(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){nY(this,t)},e.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,d=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var p=i+a,f=n+s;e[4]=-p*r-d*f*o,e[5]=-f*o-c*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=c*r,e[2]=d*o,l&&eF(e,e,l),e[4]+=i+h,e[5]+=n+u,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),nF=nV.getLocalTransform,nH=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nY(t,e){var i=t;i=i||{};for(var n=0;n<nH.length;n++){var r=nH[n];i[r]=e[r]}return i}function n$(t){f||(f=new ij(100)),t=t||to;var e=f.get(t);return e||(e={font:t,strWidthCache:new ij(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ts.measureText("国",t).width,asciiCharWidth:ts.measureText("a",t).width},f.put(t,e)),e}var nU=0;function nW(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(nU>=5)){t=t||to;for(var e=[],i=+new Date,n=0;n<=127;n++)e[n]=ts.measureText(String.fromCharCode(n),t).width;var r=new Date-i;return r>16?nU=5:r>2&&nU++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function nj(t,e){var i=t.strWidthCache,n=i.get(e);return null==n&&(n=ts.measureText(e,t.font).width,i.put(e,n)),n}function nG(t,e,i,n){var r=nj(n$(e),t),o=nK(e);return new ie(nq(0,r,i),nX(0,o,n),r,o)}function nZ(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return nG(r[0],e,i,n);for(var o=new ie(0,0,0,0),a=0;a<r.length;a++){var s=nG(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function nq(t,e,i,n){return"right"===i?n?t+=e:t-=e:"center"===i&&(n?t+=e/2:t-=e/2),t}function nX(t,e,i,n){return"middle"===i?n?t+=e/2:t-=e/2:"bottom"===i&&(n?t+=e:t-=e),t}function nK(t){return n$(t).stWideCharWidth}function nQ(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function nJ(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,h=i.y,u="left",d="top";if(n instanceof Array)l+=nQ(n[0],i.width),h+=nQ(n[1],i.height),u=null,d=null;else switch(n){case"left":l-=r,h+=s,u="right",d="middle";break;case"right":l+=r+a,h+=s,d="middle";break;case"top":l+=a/2,h-=r,u="center",d="bottom";break;case"bottom":l+=a/2,h+=o+r,u="center";break;case"inside":l+=a/2,h+=s,u="center",d="middle";break;case"insideLeft":l+=r,h+=s,d="middle";break;case"insideRight":l+=a-r,h+=s,u="right",d="middle";break;case"insideTop":l+=a/2,h+=r,u="center";break;case"insideBottom":l+=a/2,h+=o-r,u="center",d="bottom";break;case"insideTopLeft":l+=r,h+=r;break;case"insideTopRight":l+=a-r,h+=r,u="right";break;case"insideBottomLeft":l+=r,h+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,h+=o-r,u="right",d="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=d,t}var n0="__zr_normal__",n1=nH.concat(["ignore"]),n2=tE(nH,function(t,e){return t[e]=!0,t},{ignore:!1}),n5={},n3=new ie(0,0,0,0),n4=[],n6=function(){function t(t){this.id=tb(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;r.copyTransform(e);var h=null!=i.position,u=i.autoOverflowArea,d=void 0;if((u||h)&&(d=n3,i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),n||d.applyTransform(this.transform)),h){this.calculateTextPosition?this.calculateTextPosition(n5,i,d):nJ(n5,i,d),r.x=n5.x,r.y=n5.y,o=n5.align,a=n5.verticalAlign;var c=i.origin;if(c&&null!=i.rotation){var p=void 0,f=void 0;"center"===c?(p=.5*d.width,f=.5*d.height):(p=nQ(c[0],d.width),f=nQ(c[1],d.height)),l=!0,r.originX=-r.x+p+(n?0:d.x),r.originY=-r.y+f+(n?0:d.y)}}null!=i.rotation&&(r.rotation=i.rotation);var g=i.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(u){var _=m.overflowRect=m.overflowRect||new ie(0,0,0,0);r.getLocalTransform(n4),eH(n4,n4),ie.copy(_,d),_.applyTransform(n4)}else m.overflowRect=null;var v=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=i.insideFill,b=i.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==b||"auto"===b)&&(b=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,b=i.outsideStroke,(null==y||"auto"===y)&&(y=this.getOutsideFill()),(null==b||"auto"===b)&&(b=this.getOutsideStroke(y),x=!0)),((y=y||"#000")!==m.fill||b!==m.stroke||x!==m.autoStroke||o!==m.align||a!==m.verticalAlign)&&(s=!0,m.fill=y,m.stroke=b,m.autoStroke=x,m.align=o,m.verticalAlign=a,e.setDefaultTextStyle(m)),e.__dirty|=1,s&&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()?nP:nO},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&i3(e);i||(i=[255,255,255,1]);for(var n=i[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+255*!r*(1-n);return i[3]=1,i8(i,"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||{},tk(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(tH(t))for(var i=tP(t),n=0;n<i.length;n++){var r=i[n];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!n.getLoop()&&(!r||r===n0)){var o=n.targetName,a=o?e[o]:e;n.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,n1)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},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(n0,!1,t)},t.prototype.useState=function(t,e,i,n){var r,o=t===n0;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tT(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tx("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=this._textContent,h=n9(this,l,r,n);h&&!this.__inHover&&(this.__inHover=h),this._applyStateObj(t,r,this._normalState,e,re(this,i,s),s);var u=this._textGuide;return l&&l.useState(t,e,i,!!h),u&&u.useState(t,e,i,!!h),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],h=void 0;this.stateProxy&&(h=this.stateProxy(l,t)),h||(h=this.states[l]),h&&n.push(h)}var u=n[o-1],d=this._textContent,c=n9(this,d,u,i);c&&!this.__inHover&&(this.__inHover=c);var p=this._mergeStates(n),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,re(this,e,f),f);var g=this._textGuide;d&&d.useStates(t,e,!!c),g&&g.useStates(t,e,!!c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=tT(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=tT(n,t),o=tT(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];tk(i,r),r.textConfig&&tk(e=e||{},r.textConfig)}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){if(1!==this.__inHover){var a=!(e&&n);e&&e.textConfig?(this.textConfig=tk({},n?this.textConfig:i.textConfig),tk(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,h=0;h<n1.length;h++){var u=n1[h],d=r&&n2[u];e&&null!=e[u]?d?(l=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=i[u]&&(d?(l=!0,s[u]=i[u]):this[u]=i[u])}if(!r)for(var h=0;h<this.animators.length;h++){var c=this.animators[h],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(e||i)[p]:e||i)}l&&this._transitionState(t,s,o)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new nV,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),tk(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,i){var n=new nc(t?this[t]:this,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=tT(e,t);i>=0&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;o<n;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){n7(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){n7(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=n7(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function i(t,i,n,r){Object.defineProperty(e,t,{get:function(){return this[i]||o(this,this[i]=[]),this[i]},set:function(t){this[n]=t[0],this[r]=t[1],this[i]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1,Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function n7(t,e,i,n,r){var o=[];!function t(e,i,n,r,o,a,s,l){for(var h=tP(r),u=o.duration,d=o.delay,c=o.additive,p=o.setToFinal,f=!tH(a),g=e.animators,m=[],_=0;_<h.length;_++){var v=h[_],y=r[v];if(null!=y&&null!=n[v]&&(f||a[v]))if(!tH(y)||tD(y)||tW(y))m.push(v);else{if(i){l||(n[v]=y,e.updateDuringAnimation(i));continue}t(e,v,n[v],y,o,a&&a[v],s,l)}else l||(n[v]=y,e.updateDuringAnimation(i),m.push(v))}var b=m.length;if(!c&&b)for(var x=0;x<g.length;x++){var w=g[x];if(w.targetName===i&&w.stopTracks(m)){var S=tT(g,w);g.splice(S,1)}}if(o.force||(b=(m=tO(m,function(t){var e,i;return!((e=r[t])===(i=n[t])||tD(e)&&tD(i)&&function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}(e,i))})).length),b>0||o.force&&!s.length){var k=void 0,C=void 0,T=void 0;if(l){C={},p&&(k={});for(var x=0;x<b;x++){var v=m[x];C[v]=n[v],p?k[v]=r[v]:n[v]=r[v]}}else if(p){T={};for(var x=0;x<b;x++){var v=m[x];T[v]=na(n[v]),function(t,e,i){if(tD(e[i]))if(tD(t[i])||(t[i]=[]),t$(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),n8(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(tD(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?n8(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else n8(o,r,a);o.length=r.length}else t[i]=e[i]}(n,r,v)}}var w=new nc(n,!1,!1,c?tO(g,function(t){return t.targetName===i}):null);w.targetName=i,o.scope&&(w.scope=o.scope),p&&k&&w.whenWithKeys(0,k,m),T&&w.whenWithKeys(0,T,m),w.whenWithKeys(null==u?500:u,l?C:r,m).delay(d||0),e.addAnimator(w,i),s.push(w)}}(t,"",t,e,i=i||{},n,o,r);var a=o.length,s=!1,l=i.done,h=i.aborted,u=function(){s=!0,--a<=0&&(s?l&&l():h&&h())},d=function(){--a<=0&&(s?l&&l():h&&h())};!a&&l&&l(),o.length>0&&i.during&&o[0].during(function(t,e){i.during(e)});for(var c=0;c<o.length;c++){var p=o[c];u&&p.done(u),d&&p.aborted(d),i.force&&p.duration(i.duration),p.start(i.easing)}return o}function n8(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function n9(t,e,i,n){return!(i&&i.hoverLayer||n)||rt(t)||e&&rt(e)?0:1}function rt(t){return"text"===t.type||"tspan"===t.type}function re(t,e,i){return!e&&!t.__inHover&&i&&i.duration>0}tM(n6,ec),tM(n6,nV);var ri=function(t){function e(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var i=tT(this._children,t);return i>=0&&this.replaceAt(e,i),this},e.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),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,i=this._children,n=tT(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},e.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new ie(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(ie.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(n6);ri.prototype.type="group";let rn=ri;var rr={},ro={},ra=function(){function t(t,e,i){var n,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new ix,a=i.renderer||"canvas";rr[a]||(a=tP(rr)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var s=new rr[a](e,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var h=tr.node||tr.worker||l?null:new nI(s.getViewportRoot(),s.root),u=i.useCoarsePointer;(null==u||"auto"===u?tr.touchEventsSupported:!!u)&&(n=tG(i.pointerSize,44)),this.handler=new ih(o,s,h,s.root,n),this.animation=new nf({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>i9(t,1);if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=i9(e[r].color,1);return(i/=n)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,i=np(),n=this._needsRefresh,r=this._needsRefreshHover;(n||r)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:r}));var o=np();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete ro[t]}},t}();function rs(t,e){var i=new ra(tb(),t,e);return ro[i.id]=i,i}var rl=Math.min,rh=Math.max,ru=Math.abs,rd=Math.round,rc=Math.floor,rp=Math.ceil,rf=Math.pow,rg=Math.log,rm=Math.LN10,r_=Math.PI,rv=Math.random;function ry(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,h=s-a;if(0===l)return 0===h?a:(a+s)/2;if(n){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*h+a}var rb=function(t,e,i){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return rx(t,e,i)};function rx(t,e,i){if(tB(t))return t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(i||0):parseFloat(t);return null==t?0/0:+t}function rw(t,e,i){return isNaN(e)?i?""+t:+t:(e=rl(rh(0,e),20),t=(+t).toFixed(e),i?t:+t)}function rS(t){return t.sort(function(t,e){return t-e}),t}function rk(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,i,n,r,o,a=1,s=0;s<15;s++,a*=10)if(rd(t*a)/a===t)return s}return n=(i=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(i+1):0,r=i>0?i:e.length,rh(0,((o=e.indexOf("."))<0?0:r-1-o)-n)}function rC(t,e,i){var n=ru(t[1]-t[0]);if(!isFinite(n)||0===n)return 0/0;var r=rh(0,rp(-(rg(2*ru(i||1)*ru(n))/rm)+rg(ru(e))/rm));return isFinite(r)||(r=0/0),r}function rT(t,e){var i=rh(rk(t),rk(e)),n=t+e;return i>20?n:rw(n,i)}var rM=rf(2,53)-1;function rD(t){var e=2*r_;return(t%e+e)%e}function rI(t){return t>-1e-4&&t<1e-4}var rA=/^(?:(\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 rE(t){if(t instanceof Date)return t;if(tB(t)){var e=rA.exec(t);if(!e)return new Date(0/0);if(!e[8])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);var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return null==t?new Date(0/0):new Date(rd(t))}function rO(t){return rf(10,rP(t))}function rP(t){if(0===t)return 0;var e=rc(rg(t)/rm);return t/rf(10,e)>=10&&e++,e}function rL(t,e){var i=rP(t),n=rf(10,i),r=t/n;return rw(t=(2===e?1:e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*n,-i)}function rR(t){var e=parseFloat(t);return e==t&&(0!==e||!tB(t)||0>=t.indexOf("x"))?e:0/0}function rN(){return rd(9*rv())}function rz(t,e){return null==t?e:null==e?t:t*e/function t(e,i){return 0===i?e:t(i,e%i)}(t,e)}function rB(t){return null!=t&&isFinite(t)}var rV="series\0";function rF(t){return t instanceof Array?t:null==t?[]:[t]}function rH(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var rY=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function r$(t){return!tH(t)||tN(t)||t instanceof Date?t:t.value}function rU(t,e,i){var n=rj(e[t],null),r=rj(i[t],null);return null!=n&&null!=r&&n===r}function rW(t){return rj(t,"")}function rj(t,e){return null==t?e:tB(t)?t:tF(t)||tV(t)?t+"":e}function rG(t){var e=t.name;return!!(e&&e.indexOf(rV))}function rZ(t){return t&&null!=t.id&&0===rW(t.id).indexOf("\0_ec_\0")}function rq(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?tN(e.dataIndex)?tA(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?tN(e.name)?tA(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function rX(){var t="__ec_inner_"+rK++;return function(e){return e[t]||(e[t]={})}}var rK=rN();function rQ(t,e,i){var n=rJ(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=i?i.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,n){var r=r2(t,n,e,{useDefault:s===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});a[n+"Models"]=r.models,a[n+"Model"]=r.models[0]}),a}function rJ(t,e){if(tB(t)){var i,n={};n[t+"Index"]=0,i=n}else i=t;var r=t5(),o={},a=!1;return tI(i,function(t,i){if("dataIndex"===i||"dataIndexInside"===i){o[i]=t;return}var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>tT(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var r0={useDefault:!0,enableAll:!1,enableNone:!1},r1={useDefault:!1,enableAll:!0,enableNone:!0};function r2(t,e,i,n){n=n||r0;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r)if(n.enableNone)return s.models=[],s;else r=-1;return"all"===r&&(r=n.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function r5(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function r3(){}function r4(){return[1/0,-1/0]}function r6(t,e){r9(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function r7(t,e){r9(e)&&e<t[0]&&(t[0]=e)}function r8(t,e){r9(e)&&e>t[1]&&(t[1]=e)}function r9(t){return null!=t&&isFinite(t)}function ot(t,e){return r9(t)&&r9(e)&&t<=e}function oe(t){ot(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function oi(){var t="__ec_once_"+on++;return function(e,i){t6(e,t)||(e[t]=1,i())}}r3.prototype.reset=function(t,e,i,n){return this._list=t,this._step=n=n||1,this._idx=e,this._end=null!=i?i:n>0?t.length:0,this.item=null,this.key=0/0,this},r3.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)};var on=rN();function or(t,e,i){var n=t5(),r=0;tI(t,function(o){var a=e(o),s=n.get(a)||0;i&&i(o,s),s||i||(t[r++]=o),n.set(a,s+1)}),i||(t.length=r)}function oo(t){return t.value+""}function oa(t){return t+""}function os(t){return{overallReset:t}}var ol="___EC__COMPONENT__CONTAINER___",oh="___EC__EXTENDED_CLASS___";function ou(t){var e={main:"",sub:""};if(t){var i=t.split(".");e.main=i[0]||"",e.sub=i[1]||""}return e}function od(t,e){t.$constructor=t,t.extend=function(t){var e,i,n=this;if(tz(e=n)&&/^class\s/.test(Function.prototype.toString.call(e)))i=function(t){function e(){return t.apply(this,arguments)||this}return ti(e,t),e}(n);else{var r=i=function(){(t.$constructor||n).apply(this,arguments)},o=r.prototype;function a(){}for(var s in a.prototype=this.prototype,r.prototype=new a,o)o.hasOwnProperty(s)&&(r.prototype[s]=o[s]);r.prototype.constructor=r,r.superClass=this}return tk(i.prototype,t),i[oh]=!0,i.extend=this.extend,i.superCall=of,i.superApply=og,i.superClass=n,i}}function oc(t,e){t.extend=e.extend}var op=Math.round(10*Math.random());function of(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function og(t,e,i){return this.superClass.prototype[e].apply(t,i)}function om(t){var e={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){tK(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i),'componentType "'+i+'" illegal'),t.prototype.type=i;var n,r,o=ou(i);o.sub?o.sub!==ol&&(((r=e[(n=o).main])&&r[ol]||((r=e[n.main]={})[ol]=!0),r)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,i,n){var r=e[t];if(r&&r[ol]&&(r=i?r[i]:null),n&&!r)throw Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var i=ou(t),n=[],r=e[i.main];return r&&r[ol]?tI(r,function(t,e){e!==ol&&n.push(t)}):n.push(r),n},t.hasClass=function(t){return!!e[ou(t).main]},t.getAllClassMainTypes=function(){var t=[];return tI(e,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){var i=e[ou(t).main];return i&&i[ol]}}function o_(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&tT(n,s)>=0||r&&0>tT(r,s))){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var ov=o_([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oy=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ov(this,t,e)},t}(),ob=new ij(50);function ox(t,e,i,n,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!i)return e;var o=ob.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?oS(e=o.image)||o.pending.push(a):((e=ts.loadImage(t,ow,ow)).__zrImageSrc=t,ob.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function ow(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function oS(t){return t&&t.width&&t.height}var ok=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oC(t,e,i,n){var r=tk({},n=n||{});i=tG(i,"..."),r.maxIterations=tG(n.maxIterations,2);var o=r.minChar=tG(n.minChar,0),a=r.fontMeasureInfo=n$(e),s=a.asciiCharWidth;r.placeholder=tG(n.placeholder,"");for(var l=t=Math.max(0,t-1),h=0;h<o&&l>=s;h++)l-=s;var u=nj(a,i);return u>l&&(i="",u=0),l=t-u,r.ellipsis=i,r.ellipsisWidth=u,r.contentWidth=l,r.containerWidth=t,r}function oT(t,e,i){var n=i.containerWidth,r=i.contentWidth,o=i.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var a=nj(o,e);if(a<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=i.maxIterations){e+=i.ellipsis;break}var l=0===s?function(t,e,i){for(var n=0,r=0,o=t.length;r<o&&n<e;r++)n+=nW(i,t.charCodeAt(r));return r}(e,r,o):a>0?Math.floor(e.length*r/a):0;a=nj(o,e=e.substr(0,l))}""===e&&(e=i.placeholder),t.textLine=e,t.isTruncated=!0}var oM=function(){},oD=function(t){this.tokens=[],t&&(this.tokens=t)},oI=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function oA(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},h=t.lines,u=l.font||i.font,d=!1;if(n){var c=l.padding,p=c?c[1]+c[3]:0;if(null!=l.width&&"auto"!==l.width){var f=nQ(l.width,n.width)+p;h.length>0&&f+n.accumWidth>n.width&&(o=e.split("\n"),d=!0),n.accumWidth=f}else{var g=oO(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var m=n$(u),_=0;_<o.length;_++){var v=o[_],y=new oM;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[_]:nj(m,v),_||d)h.push(new oD([y]));else{var b=(h[h.length-1]||(h[0]=new oD)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=y:(v||!x||s)&&b.push(y)}}}var oE=tE(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function oO(t,e,i,n,r){for(var o=[],a=[],s="",l="",h=0,u=0,d=n$(e),c=0;c<t.length;c++){var p=t.charAt(c);if("\n"===p){l&&(s+=l,u+=h),o.push(s),a.push(u),s="",l="",h=0,u=0;continue}var f=nW(d,p.charCodeAt(0)),g=!n&&!function(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!oE[t]}(p);if(o.length?u+f>i:r+u+f>i){u?(s||l)&&(g?(s||(s=l,l="",u=h=0),o.push(s),a.push(u-h),l+=p,h+=f,s="",u=h):(l&&(s+=l,l="",h=0),o.push(s),a.push(u),s=p,u=f)):g?(o.push(l),a.push(h),l=p,h=f):(o.push(p),a.push(f));continue}u+=f,g?(l+=p,h+=f):(l&&(s+=l,l="",h=0),s+=p)}return l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}function oP(t,e,i,n,r,o){if(t.baseX=i,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;ie.set(oL,nq(i,a,r),nX(n,s,o),a,s),ie.intersect(e,oL,null,oR);var l=oR.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=nq(l.x,l.width,r,!0),t.baseY=nX(l.y,l.height,o,!0)}}var oL=new ie(0,0,0,0),oR={outIntersectRect:{},clamp:!0};function oN(t){return null!=t?t+="":t=""}function oz(t,e,i,n){var r=new ie(nq(t.x||0,e,t.textAlign),nX(t.y||0,i,t.textBaseline),e,i),o=null!=n?n:oB(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function oB(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var oV="__zr_style_"+Math.round(10*Math.random()),oF={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oH={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oF[oV]=!0;var oY=["z","z2","invisible"],o$=["invisible"],oU=function(t){var e;function i(e){return t.call(this,e)||this}return et(i,t),i.prototype._init=function(e){for(var i=tP(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(t){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,i,n){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,oW.copy(r.getBoundingRect()),r.transform&&oW.applyTransform(r.transform),oj.width=o,oj.height=a,!oW.intersect(oj))||s&&!s[0]&&!s[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(n&&this.parent)for(var h=this.parent;h;){if(h.ignore)return!1;h=h.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},i.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ie(0,0,0,0)),e?ie.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ie(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:tk(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return t3(oF,t)},i.prototype.useStyle=function(t){t[oV]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},i.prototype._useHoverStyle=function(t){this.__hoverStyle=t},i.prototype.isStyleObject=function(t){return t[oV]},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,oY)},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r),h=1===this.__inHover;if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=tP(u),c=0;c<d.length;c++){var p=d[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=tP(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else h?this._useHoverStyle(s):this.useStyle(s);if(!h)for(var g=this.__inHover?o$:oY,c=0;c<g.length;c++){var p=g[c];i&&null!=i[p]?this[p]=i[p]:l&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},i.prototype._mergeStyle=function(t,e){return tk(t,e),t},i.prototype.getAnimationStyleProps=function(){return oH},i.initDefaultProps=void((e=i.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),i}(n6),oW=new ie(0,0,0,0),oj=new ie(0,0,0,0),oG=Math.min,oZ=Math.max,oq=Math.sin,oX=Math.cos,oK=2*Math.PI,oQ=ee(),oJ=ee(),o0=ee();function o1(t,e,i){if(0!==t.length){for(var n=t[0],r=n[0],o=n[0],a=n[1],s=n[1],l=1;l<t.length;l++)r=oG(r,(n=t[l])[0]),o=oZ(o,n[0]),a=oG(a,n[1]),s=oZ(s,n[1]);e[0]=r,e[1]=a,i[0]=o,i[1]=s}}function o2(t,e,i,n,r,o){r[0]=oG(t,i),r[1]=oG(e,n),o[0]=oZ(t,i),o[1]=oZ(e,n)}var o5=[],o3=[],o4={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o6=[],o7=[],o8=[],o9=[],at=[],ae=[],ai=Math.min,an=Math.max,ar=Math.cos,ao=Math.sin,aa=Math.abs,as=Math.PI,al=2*as,ah="u">typeof Float32Array,au=[];function ad(t){return Math.round(t/as*1e8)/1e8%2*as}var ac=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=aa(i/nE/t)||0,this._uy=aa(i/nE/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(o4.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var i=aa(t-this._xi),n=aa(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(o4.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(o4.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(o4.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),au[0]=n,au[1]=r,(a=ad(au[0]))<0&&(a+=al),s=a-au[0],l=au[1]+s,!o&&l-a>=al?l=a+al:o&&a-l>=al?l=a-al:!o&&a>l?l=a+(al-ad(a-l)):o&&a<l&&(l=a-(al-ad(l-a))),au[0]=a,au[1]=l,n=au[0];var a,s,l,h=(r=au[1])-n;return this.addData(o4.A,t,e,i,i,n,h,0,+!o),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=ar(r)*i+t,this._yi=ao(r)*i+e,this},e.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},e.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(o4.R,t,e,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(o4.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&ah&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();var o=this.data;if(ah&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var a=0;a<n;a++)this.data[a]=o[a];for(var r=0;r<e;r++)for(var s=t[r].data,a=0;a<s.length;a++)this.data[n++]=s[a];this._len=n}},e.prototype.addData=function(t,e,i,n,r,o,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ah&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){o8[0]=o8[1]=at[0]=at[1]=Number.MAX_VALUE,o9[0]=o9[1]=ae[0]=ae[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case o4.M:i=r=e[t++],n=o=e[t++],at[0]=r,at[1]=o,ae[0]=r,ae[1]=o;break;case o4.L:o2(i,n,e[t],e[t+1],at,ae),i=e[t++],n=e[t++];break;case o4.C:!function(t,e,i,n,r,o,a,s,l,h){var u=iR(t,i,r,a,o5);l[0]=1/0,l[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var d=0;d<u;d++){var c=iO(t,i,r,a,o5[d]);l[0]=oG(c,l[0]),h[0]=oZ(c,h[0])}u=iR(e,n,o,s,o3);for(var d=0;d<u;d++){var p=iO(e,n,o,s,o3[d]);l[1]=oG(p,l[1]),h[1]=oZ(p,h[1])}l[0]=oG(t,l[0]),h[0]=oZ(t,h[0]),l[0]=oG(a,l[0]),h[0]=oZ(a,h[0]),l[1]=oG(e,l[1]),h[1]=oZ(e,h[1]),l[1]=oG(s,l[1]),h[1]=oZ(s,h[1])}(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],at,ae),i=e[t++],n=e[t++];break;case o4.Q:!function(t,e,i,n,r,o,a,s){var l=oZ(oG(iV(t,i,r),1),0),h=oZ(oG(iV(e,n,o),1),0),u=iz(t,i,r,l),d=iz(e,n,o,h);a[0]=oG(t,r,u),a[1]=oG(e,o,d),s[0]=oZ(t,r,u),s[1]=oZ(e,o,d)}(i,n,e[t++],e[t++],e[t],e[t+1],at,ae),i=e[t++],n=e[t++];break;case o4.A:var l=e[t++],h=e[t++],u=e[t++],d=e[t++],c=e[t++],p=e[t++]+c;t+=1;var f=!e[t++];s&&(r=ar(c)*u+l,o=ao(c)*d+h),function(t,e,i,n,r,o,a,s,l){var h=Math.abs(r-o);if(h%oK<1e-4&&h>1e-4){s[0]=t-i,s[1]=e-n,l[0]=t+i,l[1]=e+n;return}if(oQ[0]=oX(r)*i+t,oQ[1]=oq(r)*n+e,oJ[0]=oX(o)*i+t,oJ[1]=oq(o)*n+e,el(s,oQ,oJ),eh(l,oQ,oJ),(r%=oK)<0&&(r+=oK),(o%=oK)<0&&(o+=oK),r>o&&!a?o+=oK:r<o&&a&&(r+=oK),a){var u=o;o=r,r=u}for(var d=0;d<o;d+=Math.PI/2)d>r&&(o0[0]=oX(d)*i+t,o0[1]=oq(d)*n+e,el(s,o0,s),eh(l,o0,l))}(l,h,u,d,c,p,f,at,ae),i=ar(p)*u+l,n=ao(p)*d+h;break;case o4.R:o2(r=i=e[t++],o=n=e[t++],r+e[t++],o+e[t++],at,ae);break;case o4.Z:i=r,n=o}el(o8,o8,at),eh(o9,o9,ae)}return 0===t&&(o8[0]=o8[1]=o9[0]=o9[1]=0),new ie(o8[0],o8[1],o9[0]-o8[0],o9[1]-o8[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,h=0,u=0,d=0;d<e;){var c=t[d++],p=1===d;p&&(r=t[d],o=t[d+1],a=r,s=o);var f=-1;switch(c){case o4.M:r=a=t[d++],o=s=t[d++];break;case o4.L:var g=t[d++],m=t[d++],_=g-r,v=m-o;(aa(_)>i||aa(v)>n||d===e-1)&&(f=Math.sqrt(_*_+v*v),r=g,o=m);break;case o4.C:var y=t[d++],b=t[d++],g=t[d++],m=t[d++],x=t[d++],w=t[d++];f=function(t,e,i,n,r,o,a,s){for(var l=t,h=e,u=0,d=1;d<=10;d++){var c=.1*d,p=iO(t,i,r,a,c),f=iO(e,n,o,s,c),g=p-l,m=f-h;u+=Math.sqrt(g*g+m*m),l=p,h=f}return u}(r,o,y,b,g,m,x,w),r=x,o=w;break;case o4.Q:var y=t[d++],b=t[d++],g=t[d++],m=t[d++];f=function(t,e,i,n,r,o){for(var a=t,s=e,l=0,h=1;h<=10;h++){var u=.1*h,d=iz(t,i,r,u),c=iz(e,n,o,u),p=d-a,f=c-s;l+=Math.sqrt(p*p+f*f),a=d,s=c}return l}(r,o,y,b,g,m),r=g,o=m;break;case o4.A:var S=t[d++],k=t[d++],C=t[d++],T=t[d++],M=t[d++],D=t[d++],I=D+M;d+=1,p&&(a=ar(M)*C+S,s=ao(M)*T+k),f=an(C,T)*ai(al,Math.abs(D)),r=ar(I)*C+S,o=ao(I)*T+k;break;case o4.R:a=r=t[d++],s=o=t[d++],f=2*t[d++]+2*t[d++];break;case o4.Z:var _=a-r,v=s-o;f=Math.sqrt(_*_+v*v),r=a,o=s}f>=0&&(l[u++]=f,h+=f)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,h,u,d,c=this.data,p=this._ux,f=this._uy,g=this._len,m=e<1,_=0,v=0,y=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,h=e*this._pathLen))t:for(var b=0;b<g;){var x=c[b++],w=1===b;switch(w&&(r=c[b],o=c[b+1],i=r,n=o),x!==o4.L&&y>0&&(t.lineTo(u,d),y=0),x){case o4.M:i=r=c[b++],n=o=c[b++],t.moveTo(r,o);break;case o4.L:a=c[b++],s=c[b++];var S=aa(a-r),k=aa(s-o);if(S>p||k>f){if(m){var C=l[v++];if(_+C>h){var T=(h-_)/C;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}_+=C}t.lineTo(a,s),r=a,o=s,y=0}else{var M=S*S+k*k;M>y&&(u=a,d=s,y=M)}break;case o4.C:var D=c[b++],I=c[b++],A=c[b++],E=c[b++],O=c[b++],P=c[b++];if(m){var C=l[v++];if(_+C>h){var T=(h-_)/C;iN(r,D,A,O,T,o6),iN(o,I,E,P,T,o7),t.bezierCurveTo(o6[1],o7[1],o6[2],o7[2],o6[3],o7[3]);break t}_+=C}t.bezierCurveTo(D,I,A,E,O,P),r=O,o=P;break;case o4.Q:var D=c[b++],I=c[b++],A=c[b++],E=c[b++];if(m){var C=l[v++];if(_+C>h){var T=(h-_)/C;iF(r,D,A,T,o6),iF(o,I,E,T,o7),t.quadraticCurveTo(o6[1],o7[1],o6[2],o7[2]);break t}_+=C}t.quadraticCurveTo(D,I,A,E),r=A,o=E;break;case o4.A:var L=c[b++],R=c[b++],N=c[b++],z=c[b++],B=c[b++],V=c[b++],F=c[b++],H=!c[b++],Y=N>z?N:z,$=aa(N-z)>.001,U=B+V,W=!1;if(m){var C=l[v++];_+C>h&&(U=B+V*(h-_)/C,W=!0),_+=C}if($&&t.ellipse?t.ellipse(L,R,N,z,F,B,U,H):t.arc(L,R,Y,B,U,H),W)break t;w&&(i=ar(B)*N+L,n=ao(B)*z+R),r=ar(U)*N+L,o=ao(U)*z+R;break;case o4.R:i=r=c[b],n=o=c[b+1],a=c[b++],s=c[b++];var j=c[b++],G=c[b++];if(m){var C=l[v++];if(_+C>h){var Z=h-_;t.moveTo(a,s),t.lineTo(a+ai(Z,j),s),(Z-=j)>0&&t.lineTo(a+j,s+ai(Z,G)),(Z-=G)>0&&t.lineTo(a+an(j-Z,0),s+G),(Z-=j)>0&&t.lineTo(a,s+an(G-Z,0));break t}_+=C}t.rect(a,s,j,G);break;case o4.Z:if(m){var C=l[v++];if(_+C>h){var T=(h-_)/C;t.lineTo(r*(1-T)+i*T,o*(1-T)+n*T);break t}_+=C}t.closePath(),r=i,o=n}}},e.prototype.clone=function(){var t=new e,i=this.data;return t.data=i.slice?i.slice():Array.prototype.slice.call(i),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=o4,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function ap(t,e,i,n,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>n+r||a<e-r&&a<n-r||o>t+r&&o>i+r||o<t-r&&o<i-r)return!1;if(t===i)return Math.abs(o-t)<=r/2;s=(e-n)/(t-i);var h=s*o-a+(l=(t*n-i*e)/(t-i));return h*h/(s*s+1)<=r/2*r/2}var af=2*Math.PI;function ag(t){return(t%=af)<0&&(t+=af),t}var am=2*Math.PI;function a_(t,e,i,n,r,o){if(o>e&&o>n||o<e&&o<n||n===e)return 0;var a=(o-e)/(n-e),s=n<e?1:-1;(1===a||0===a)&&(s=n<e?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}var av=ac.CMD,ay=2*Math.PI,ab=[-1,-1,-1],ax=[-1,-1];function aw(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),h=0,u=0,d=0,c=0,p=0,f=0;f<l;){var g,m,_,v,y,b,x,w,S,k,C,T,M,D,I=s[f++],A=1===f;switch(I===av.M&&f>1&&!i&&(h+=a_(u,d,c,p,n,r)),A&&(u=s[f],d=s[f+1],c=u,p=d),I){case av.M:c=s[f++],p=s[f++],u=c,d=p;break;case av.L:if(i){if(ap(u,d,s[f],s[f+1],e,n,r))return!0}else h+=a_(u,d,s[f],s[f+1],n,r)||0;u=s[f++],d=s[f++];break;case av.C:if(i){if(g=u,m=d,_=s[f++],v=s[f++],y=s[f++],b=s[f++],x=s[f],w=s[f+1],0!==e&&(!(r>m+e)||!(r>v+e)||!(r>b+e)||!(r>w+e))&&(!(r<m-e)||!(r<v-e)||!(r<b-e)||!(r<w-e))&&(!(n>g+e)||!(n>_+e)||!(n>y+e)||!(n>x+e))&&(!(n<g-e)||!(n<_-e)||!(n<y-e)||!(n<x-e))&&function(t,e,i,n,r,o,a,s,l,h){var u,d,c,p,f,g=.005,m=1/0;iM[0]=l,iM[1]=h;for(var _=0;_<1;_+=.05)iD[0]=iO(t,i,r,a,_),iD[1]=iO(e,n,o,s,_),(p=ea(iM,iD))<m&&(u=_,m=p);m=1/0;for(var v=0;v<32&&!(g<1e-4);v++)d=u-g,c=u+g,iD[0]=iO(t,i,r,a,d),iD[1]=iO(e,n,o,s,d),p=ea(iD,iM),d>=0&&p<m?(u=d,m=p):(iI[0]=iO(t,i,r,a,c),iI[1]=iO(e,n,o,s,c),f=ea(iI,iM),c<=1&&f<m?(u=c,m=f):g*=.5);return ik(m)}(g,m,_,v,y,b,x,w,n,r)<=e/2)return!0}else h+=function(t,e,i,n,r,o,a,s,l,h){if(h>e&&h>n&&h>o&&h>s||h<e&&h<n&&h<o&&h<s)return 0;var u=iL(e,n,o,s,h,ab);if(0===u)return 0;for(var d=0,c=-1,p=void 0,f=void 0,g=0;g<u;g++){var m=ab[g],_=0===m||1===m?.5:1;iO(t,i,r,a,m)<l||(c<0&&(c=iR(e,n,o,s,ax),ax[1]<ax[0]&&c>1&&function(){var t=ax[0];ax[0]=ax[1],ax[1]=t}(),p=iO(e,n,o,s,ax[0]),c>1&&(f=iO(e,n,o,s,ax[1]))),2===c?m<ax[0]?d+=p<e?_:-_:m<ax[1]?d+=f<p?_:-_:d+=s<f?_:-_:m<ax[0]?d+=p<e?_:-_:d+=s<p?_:-_)}return d}(u,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],n,r)||0;u=s[f++],d=s[f++];break;case av.Q:if(i){if(S=u,k=d,C=s[f++],T=s[f++],M=s[f],D=s[f+1],0!==e&&(!(r>k+e)||!(r>T+e)||!(r>D+e))&&(!(r<k-e)||!(r<T-e)||!(r<D-e))&&(!(n>S+e)||!(n>C+e)||!(n>M+e))&&(!(n<S-e)||!(n<C-e)||!(n<M-e))&&function(t,e,i,n,r,o,a,s){var l,h=.005,u=1/0;iM[0]=a,iM[1]=s;for(var d=0;d<1;d+=.05){iD[0]=iz(t,i,r,d),iD[1]=iz(e,n,o,d);var c=ea(iM,iD);c<u&&(l=d,u=c)}u=1/0;for(var p=0;p<32&&!(h<1e-4);p++){var f=l-h,g=l+h;iD[0]=iz(t,i,r,f),iD[1]=iz(e,n,o,f);var c=ea(iD,iM);if(f>=0&&c<u)l=f,u=c;else{iI[0]=iz(t,i,r,g),iI[1]=iz(e,n,o,g);var m=ea(iI,iM);g<=1&&m<u?(l=g,u=m):h*=.5}}return ik(u)}(S,k,C,T,M,D,n,r)<=e/2)return!0}else h+=function(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||s<e&&s<n&&s<o)return 0;var l=function(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(iA(o)){if(iE(a)){var h=-s/a;h>=0&&h<=1&&(r[l++]=h)}}else{var u=a*a-4*o*s;if(iA(u)){var h=-a/(2*o);h>=0&&h<=1&&(r[l++]=h)}else if(u>0){var d=ik(u),h=(-a+d)/(2*o),c=(-a-d)/(2*o);h>=0&&h<=1&&(r[l++]=h),c>=0&&c<=1&&(r[l++]=c)}}return l}(e,n,o,s,ab);if(0===l)return 0;var h=iV(e,n,o);if(h>=0&&h<=1){for(var u=0,d=iz(e,n,o,h),c=0;c<l;c++){var p=0===ab[c]||1===ab[c]?.5:1,f=iz(t,i,r,ab[c]);f<a||(ab[c]<h?u+=d<e?p:-p:u+=o<d?p:-p)}return u}var p=0===ab[0]||1===ab[0]?.5:1,f=iz(t,i,r,ab[0]);return f<a?0:o<e?p:-p}(u,d,s[f++],s[f++],s[f],s[f+1],n,r)||0;u=s[f++],d=s[f++];break;case av.A:var E=s[f++],O=s[f++],P=s[f++],L=s[f++],R=s[f++],N=s[f++];f+=1;var z=!!(1-s[f++]);o=Math.cos(R)*P+E,a=Math.sin(R)*L+O,A?(c=o,p=a):h+=a_(u,d,o,a,n,r);var B=(n-E)*L/P+E;if(i){if(function(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var h=Math.sqrt((s-=t)*s+(l-=e)*l);if(h-a>i||h+a<i)return!1;if(Math.abs(n-r)%am<1e-4)return!0;if(o){var u=n;n=ag(r),r=ag(u)}else n=ag(n),r=ag(r);n>r&&(r+=am);var d=Math.atan2(l,s);return d<0&&(d+=am),d>=n&&d<=r||d+am>=n&&d+am<=r}(E,O,L,R,R+N,z,e,B,r))return!0}else h+=function(t,e,i,n,r,o,a,s){if((s-=e)>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);ab[0]=-l,ab[1]=l;var h=Math.abs(n-r);if(h<1e-4)return 0;if(h>=ay-1e-4){n=0,r=ay;var u=o?1:-1;return a>=ab[0]+t&&a<=ab[1]+t?u:0}if(n>r){var d=n;n=r,r=d}n<0&&(n+=ay,r+=ay);for(var c=0,p=0;p<2;p++){var f=ab[p];if(f+t>a){var g=Math.atan2(s,f),u=o?1:-1;g<0&&(g=ay+g),(g>=n&&g<=r||g+ay>=n&&g+ay<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),c+=u)}}return c}(E,O,L,R,R+N,z,B,r);u=Math.cos(R+N)*P+E,d=Math.sin(R+N)*L+O;break;case av.R:c=u=s[f++],p=d=s[f++];var V=s[f++],F=s[f++];if(o=c+V,a=p+F,i){if(ap(c,p,o,p,e,n,r)||ap(o,p,o,a,e,n,r)||ap(o,a,c,a,e,n,r)||ap(c,a,c,p,e,n,r))return!0}else h+=a_(o,p,o,a,n,r),h+=a_(c,a,c,p,n,r);break;case av.Z:if(i){if(ap(u,d,c,p,e,n,r))return!0}else h+=a_(u,d,c,p,n,r);u=c,d=p}}return i||1e-4>Math.abs(d-p)||(h+=a_(u,d,c,p,n,r)||0),0!==h}var aS=tC({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oF),ak={style:tC({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oH.style)},aC=nH.concat(["invisible","culling","z","z2","zlevel","parent"]);let aT=function(t){var e;function i(e){return t.call(this,e)||this}return et(i,t),i.prototype.update=function(){var e=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new i;r.buildPath===i.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<aC.length;++s)r[aC[s]]=this[aC[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},i.prototype.getDecalElement=function(){return this._decalEl},i.prototype._init=function(e){var i=tP(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?tk(this.style,a):this.useStyle(a):"shape"===o?tk(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},i.prototype.getDefaultStyle=function(){return null},i.prototype.getDefaultShape=function(){return{}},i.prototype.canBeInsideText=function(){return this.hasFill()},i.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(tB(t)){var e=i9(t,0);return e>.5?nO:e>.2?"#eee":nP}else if(t)return nP}return nO},i.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tB(e)){var i=this.__zr;if(!!(i&&i.isDarkMode())==.4>i9(t,0))return e}},i.prototype.buildPath=function(t,e,i){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},i.prototype.createPathProxy=function(){this.path=new ac(!1)},i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},i.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},i.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){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},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),aw(o,a/s,!0,t,e)))return!0}if(this.hasFill())return aw(o,0,!1,t,e)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(t){return this.animate("shape",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},i.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:tk(i,t),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(t){return t3(aS,t)},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=tk({},this.shape))},i.prototype._applyStateObj=function(e,i,n,r,o,a){if(t.prototype._applyStateObj.call(this,e,i,n,r,o,a),1!==this.__inHover){var s,l=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=tk({},n.shape),tk(s,i.shape)):(s=tk({},r?this.shape:n.shape),tk(s,i.shape)):l&&(s=n.shape),s)if(o){this.shape=tk({},this.shape);for(var h={},u=tP(s),d=0;d<u.length;d++){var c=u[d];"object"==typeof s[c]?this.shape[c]=s[c]:h[c]=s[c]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},i.prototype.getAnimationStyleProps=function(){return ak},i.prototype.isZeroArea=function(){return!1},i.extend=function(t){var e=function(e){function i(i){var n=e.call(this,i)||this;return t.init&&t.init.call(n,i),n}return et(i,e),i.prototype.getDefaultStyle=function(){return tw(t.style)},i.prototype.getDefaultShape=function(){return tw(t.shape)},i}(i);for(var n in t)"function"==typeof t[n]&&(e.prototype[n]=t[n]);return e},i.initDefaultProps=void((e=i.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),i}(oU);var aM=tC({strokeFirst:!0,font:to,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},aS),aD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.hasStroke=function(){return oB(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return t3(aM,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,i;return this._rect||(this._rect=(e=oN((t=this.style).text),i=t.font,oz(t,nj(n$(i),e),nK(i),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(oU);aD.prototype.type="tspan";var aI=tC({x:0,y:0},oF),aA={style:tC({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oH.style)},aE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.createStyle=function(t){return t3(aI,t)},e.prototype._getSize=function(t){var e,i=this.style,n=i[t];if(null!=n)return n;var r=(e=i.image)&&"string"!=typeof e&&e.width&&e.height?i.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=i[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return aA},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ie(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(oU);aE.prototype.type="image";let aO=aE;var aP=Math.round;function aL(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s&&(aP(2*n)===aP(2*r)&&(t.x1=t.x2=aN(n,s,!0)),aP(2*o)===aP(2*a)&&(t.y1=t.y2=aN(o,s,!0))),t}}function aR(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s&&(t.x=aN(n,s,!0),t.y=aN(r,s,!0),t.width=Math.max(aN(n+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(aN(r+a,s,!1)-t.y,+(0!==a))),t}}function aN(t,e,i){if(!e)return t;var n=aP(2*t);return(n+aP(e))%2==0?n/2:(n+(i?1:-1))/2}var az=function(){this.x=0,this.y=0,this.width=0,this.height=0},aB={},aV=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new az},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var i,n,r,o,a,s,l,h,u,d,c,p,f,g,m,_=aR(aB,e,this.style);p=_.x,f=_.y,g=_.width,m=_.height,_.r=e.r,e=_}else p=e.x,f=e.y,g=e.width,m=e.height;e.r?(l=(i=e).x,h=i.y,u=i.width,d=i.height,c=i.r,u<0&&(l+=u,u=-u),d<0&&(h+=d,d=-d),"number"==typeof c?n=r=o=a=c:c instanceof Array?1===c.length?n=r=o=a=c[0]:2===c.length?(n=o=c[0],r=a=c[1]):3===c.length?(n=c[0],r=a=c[1],o=c[2]):(n=c[0],r=c[1],o=c[2],a=c[3]):n=r=o=a=0,n+r>u&&(s=n+r,n*=u/s,r*=u/s),o+a>u&&(s=o+a,o*=u/s,a*=u/s),r+o>d&&(s=r+o,r*=d/s,o*=d/s),n+a>d&&(s=n+a,n*=d/s,a*=d/s),t.moveTo(l+n,h),t.lineTo(l+u-r,h),0!==r&&t.arc(l+u-r,h+r,r,-Math.PI/2,0),t.lineTo(l+u,h+d-o),0!==o&&t.arc(l+u-o,h+d-o,o,0,Math.PI/2),t.lineTo(l+a,h+d),0!==a&&t.arc(l+a,h+d-a,a,Math.PI/2,Math.PI),t.lineTo(l,h+n),0!==n&&t.arc(l+n,h+n,n,Math.PI,1.5*Math.PI),t.closePath()):t.rect(p,f,g,m)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(aT);aV.prototype.type="rect";let aF=aV;var aH={fill:"#000"},aY={},a$={style:tC({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},oH.style)},aU=function(t){function e(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=aH,i.attr(e),i}return et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,aq(t=this.style),tI(t.rich,aq),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ie(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||aH},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return tk(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var i=tP(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},tk(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return a$},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||to,i=t.padding,n=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||n.align||"left",s=t.verticalAlign||n.verticalAlign||"top";oP(aY,n.overflowRect,r,o,a,s),r=aY.baseX,o=aY.baseY;var l=function(t,e,i,n){var r,o=oN(t),a=e.overflow,s=e.padding,l=s?s[1]+s[3]:0,h=s?s[0]+s[2]:0,u=e.font,d=nK(u),c=tG(e.lineHeight,d),p="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=i&&(g=i-l);var m=e.height;null==m&&null!=n&&(m=n-h);var _=(r=null!=g&&("break"===a||"breakAll"===a)?o?oO(o,e.font,g,"breakAll"===a,0).lines:[]:o?o.split("\n"):[]).length*c;if(null==m&&(m=_),_>m&&p){var v=Math.floor(m/c);f=f||r.length>v,_=(r=r.slice(0,v)).length*c}if(o&&"truncate"===a&&null!=g)for(var y=oC(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},x=0;x<r.length;x++)oT(b,r[x],y),r[x]=b.textLine,f=f||b.isTruncated;for(var w=m,S=0,k=n$(u),x=0;x<r.length;x++)S=Math.max(nj(k,r[x]),S);null==g&&(g=S);var C=g;return w+=h,{lines:r,height:m,outerWidth:C+=l,outerHeight:w,lineHeight:c,calculatedLineHeight:d,contentWidth:S,contentHeight:_,width:g,isTruncated:f}}(aJ(t),t,aY.outerWidth,aY.outerHeight),h=a0(t),u=!!t.backgroundColor,d=l.outerHeight,c=l.outerWidth,p=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,m=nX(o,l.contentHeight,s);if(h||i){var _=nq(r,c,a),v=nX(o,d,s);h&&this._renderBackground(t,t,_,v,c,d)}m+=f/2,i&&(g=aQ(r,a,i),"top"===s?m+=i[0]:"bottom"===s&&(m-=i[2]));for(var y=0,b=!1,x=!1,w=aK("fill"in t?t.fill:(x=!0,n.fill)),S=aX("stroke"in t?t.stroke:u||n.autoStroke&&!x?null:(y=2,b=!0,n.stroke)),k=t.textShadowBlur>0,C=0;C<p.length;C++){var T=this._getOrCreateChild(aD),M=T.createStyle();T.useStyle(M),M.text=p[C],M.x=g,M.y=m,a&&(M.textAlign=a),M.textBaseline="middle",M.opacity=t.opacity,M.strokeFirst=!0,k&&(M.shadowBlur=t.textShadowBlur||0,M.shadowColor=t.textShadowColor||"transparent",M.shadowOffsetX=t.textShadowOffsetX||0,M.shadowOffsetY=t.textShadowOffsetY||0),M.stroke=S,M.fill=w,S&&(M.lineWidth=t.lineWidth||y,M.lineDash=t.lineDash,M.lineDashOffset=t.lineDashOffset||0),M.font=e,aZ(M,t),m+=f,T.setBoundingRect(oz(M,l.contentWidth,l.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,i=t.align||e.align,n=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;oP(aY,e.overflowRect,r,o,i,n),r=aY.baseX,o=aY.baseY;var a=function(t,e,i,n,r){var o,a=new oI,s=oN(t);if(!s)return a;var l=e.padding,h=l?l[1]+l[3]:0,u=l?l[0]+l[2]:0,d=e.width;null==d&&null!=i&&(d=i-h);var c=e.height;null==c&&null!=n&&(c=n-u);for(var p=e.overflow,f=("break"===p||"breakAll"===p)&&null!=d?{width:d,accumWidth:0,breakAll:"breakAll"===p}:null,g=ok.lastIndex=0;null!=(o=ok.exec(s));){var m=o.index;m>g&&oA(a,s.substring(g,m),e,f),oA(a,o[2],e,f,o[1]),g=ok.lastIndex}g<s.length&&oA(a,s.substring(g,s.length),e,f);var _=[],v=0,y=0,b="truncate"===p,x="truncate"===e.lineOverflow,w={};function S(t,e,i){t.width=e,t.lineHeight=i,v+=i,y=Math.max(y,e)}e:for(var k=0;k<a.lines.length;k++){for(var C=a.lines[k],T=0,M=0,D=0;D<C.tokens.length;D++){var I=C.tokens[D],A=I.styleName&&e.rich[I.styleName]||{},E=I.textPadding=A.padding,O=E?E[1]+E[3]:0,P=I.font=A.font||e.font;I.contentHeight=nK(P);var L=tG(A.height,I.contentHeight);if(I.innerHeight=L,E&&(L+=E[0]+E[2]),I.height=L,I.lineHeight=tZ(A.lineHeight,e.lineHeight,L),I.align=A&&A.align||r,I.verticalAlign=A&&A.verticalAlign||"middle",x&&null!=c&&v+I.lineHeight>c){var R=a.lines.length;D>0?(C.tokens=C.tokens.slice(0,D),S(C,M,T),a.lines=a.lines.slice(0,k+1)):a.lines=a.lines.slice(0,k),a.isTruncated=a.isTruncated||a.lines.length<R;break e}var N=A.width,z=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))I.percentWidth=N,_.push(I),I.contentWidth=nj(n$(P),I.text);else{if(z){var B=A.backgroundColor,V=B&&B.image;V&&oS(V=function(t){if("string"!=typeof t)return t;var e=ob.get(t);return e&&e.image}(V))&&(I.width=Math.max(I.width,V.width*L/V.height))}var F=b&&null!=d?d-M:null;null!=F&&F<I.width?!z||F<O?(I.text="",I.width=I.contentWidth=0):(!function(t,e,i,n,r,o){if(!i){t.text="",t.isTruncated=!1;return}var a=(e+"").split("\n");o=oC(i,n,r,o);for(var s=!1,l={},h=0,u=a.length;h<u;h++)oT(l,a[h],o),a[h]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}(w,I.text,F-O,P,e.ellipsis,{minChar:e.truncateMinChar}),I.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,I.width=I.contentWidth=nj(n$(P),I.text)):I.contentWidth=nj(n$(P),I.text)}I.width+=O,M+=I.width,A&&(T=Math.max(T,I.lineHeight))}S(C,M,T)}a.outerWidth=a.width=tG(d,y),a.outerHeight=a.height=tG(c,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=h,a.outerHeight+=u;for(var k=0;k<_.length;k++){var I=_[k],H=I.percentWidth;I.width=parseInt(H,10)/100*a.width}return a}(aJ(t),t,aY.outerWidth,aY.outerHeight,i),s=a.width,l=a.outerWidth,h=a.outerHeight,u=t.padding;this.isTruncated=!!a.isTruncated;var d=nq(r,l,i),c=nX(o,h,n),p=d,f=c;u&&(p+=u[3],f+=u[0]);var g=p+s;a0(t)&&this._renderBackground(t,t,d,c,l,h);for(var m=!!t.backgroundColor,_=0;_<a.lines.length;_++){for(var v=a.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,w=v.width,S=0,k=p,C=g,T=b-1,M=void 0;S<b&&(!(M=y[S]).align||"left"===M.align);)this._placeToken(M,t,x,f,k,"left",m),w-=M.width,k+=M.width,S++;for(;T>=0&&"right"===(M=y[T]).align;)this._placeToken(M,t,x,f,C,"right",m),w-=M.width,C-=M.width,T--;for(k+=(s-(k-p)-(g-C)-w)/2;S<=T;)M=y[S],this._placeToken(M,t,x,f,k+M.width/2,"center",m),k+=M.width,S++;f+=x}},e.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,h=n+i/2;"top"===l?h=n+t.height/2:"bottom"===l&&(h=n+i-t.height/2),!t.isLineHolder&&a0(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,h-t.height/2,t.width,t.height);var u=!!s.backgroundColor,d=t.textPadding;d&&(r=aQ(r,o,d),h-=t.height/2-d[0]-t.innerHeight/2);var c=this._getOrCreateChild(aD),p=c.createStyle();c.useStyle(p);var f=this._defaultStyle,g=!1,m=0,_=!1,v=aK("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=aX("stroke"in s?s.stroke:"stroke"in e?e.stroke:u||a||f.autoStroke&&!g?null:(m=2,_=!0,f.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=h,b&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||to,p.opacity=tZ(s.opacity,e.opacity,1),aZ(p,s),y&&(p.lineWidth=tZ(s.lineWidth,e.lineWidth,m),p.lineDash=tG(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),c.setBoundingRect(oz(p,t.contentWidth,t.contentHeight,_?0:null))},e.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,h=t.borderWidth,u=t.borderColor,d=l&&l.image,c=l&&!d,p=t.borderRadius,f=this;if(c||t.lineHeight||h&&u){(a=this._getOrCreateChild(aF)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(c){var m=a.style;m.fill=l||null,m.fillOpacity=tG(t.fillOpacity,1)}else if(d){(s=this._getOrCreateChild(aO)).onload=function(){f.dirtyStyle()};var _=s.style;_.image=l.image,_.x=i,_.y=n,_.width=r,_.height=o}if(h&&u){var m=a.style;m.lineWidth=h,m.stroke=u,m.strokeOpacity=tG(t.strokeOpacity,1),m.lineDash=t.borderDash,m.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(m.strokeFirst=!0,m.lineWidth*=2)}var v=(a||s).style;v.shadowBlur=t.shadowBlur||0,v.shadowColor=t.shadowColor||"transparent",v.shadowOffsetX=t.shadowOffsetX||0,v.shadowOffsetY=t.shadowOffsetY||0,v.opacity=tZ(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,i,n="";return(null!=(e=t).fontSize||e.fontFamily||e.fontWeight)&&(n=[t.fontStyle,t.fontWeight,"string"==typeof(i=t.fontSize)&&(-1!==i.indexOf("px")||-1!==i.indexOf("rem")||-1!==i.indexOf("em"))?i:isNaN(+i)?"12px":i+"px",t.fontFamily||"sans-serif"].join(" ")),n&&tQ(n)||t.textFont||t.font},e}(oU),aW={left:!0,right:1,center:1},aj={top:1,bottom:1,middle:1},aG=["fontStyle","fontWeight","fontSize","fontFamily"];function aZ(t,e){for(var i=0;i<aG.length;i++){var n=aG[i],r=e[n];null!=r&&(t[n]=r)}}function aq(t){if(t){t.font=aU.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||aW[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||aj[i]?i:"top",t.padding&&(t.padding=tX(t.padding))}}function aX(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function aK(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function aQ(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function aJ(t){var e=t.text;return null!=e&&(e+=""),e}function a0(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}let a1=aU;var a2=rX(),a5=function(t,e,i,n){if(n){var r=a2(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===n.type&&n.traverse(function(n){var r=a2(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e,r.ssrType="chart"})}},a3="undefined",a4="series",a6=t5(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),a7="original",a8="arrayRows",a9="objectRows",st="keyedColumns",se="typedArray",si="unknown",sn="column",sr=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let so=function(t){tI(sr,function(e){this[e]=tL(t[e],t)},this)};var sa=1,ss={},sl=rX(),sh=rX(),su=["emphasis","blur","select"],sd=["normal","emphasis","blur","select"],sc="highlight",sp="downplay",sf="select",sg="unselect",sm="toggleSelect",s_="selectchanged";function sv(t){return null!=t&&"none"!==t}function sy(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function sb(t){sy(t,"emphasis",2)}function sx(t){2===t.hoverState&&sy(t,"normal",0)}function sw(t){sy(t,"blur",1)}function sS(t){1===t.hoverState&&sy(t,"normal",0)}function sk(t){t.selected=!0}function sC(t){t.selected=!1}function sT(t,e,i){e(t,i),t.isGroup&&t.traverse(function(t){e(t,i)})}function sM(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function sD(t,e){var i,n,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,i){var n=e&&tT(e,"select")>=0,r=!1;if(t instanceof aT){var o=sl(t),a=n&&o.selectFill||o.normalFill,s=n&&o.selectStroke||o.normalStroke;if(sv(a)||sv(s)){var l=(i=i||{}).style||{};"inherit"===l.fill?(r=!0,i=tk({},i),(l=tk({},l)).fill=a):!sv(l.fill)&&sv(a)?(r=!0,i=tk({},i),(l=tk({},l)).fill=ne(a)):!sv(l.stroke)&&sv(s)&&(r||(i=tk({},i),l=tk({},l)),l.stroke=ne(s)),i.style=l}}if(i&&null==i.z2){r||(i=tk({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,e,s);else if("blur"===t)return i=s,n=tT(this.currentStates,t)>=0,r=this.style.opacity,o=n?null:function(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(var a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&0>h.__fromStateTransition.indexOf(i)&&"style"===h.targetName&&h.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(i=i||{}).style||{}).opacity&&(i=tk({},i),a=tk({opacity:n?r:.1*o.opacity},a),i.style=a),i;else if("select"===t){var l=s;if(l&&null==l.z2){l=tk({},l);var h=this.z2SelectLift;l.z2=this.z2+(null!=h?h:9)}return l}}return s}function sI(t){t.stateProxy=sD;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=sD),i&&(i.stateProxy=sD)}function sA(t,e){sL(t,e)||t.__highByOuter||sT(t,sb)}function sE(t,e){sL(t,e)||t.__highByOuter||sT(t,sx)}function sO(t,e){t.__highByOuter|=1<<(e||0),sT(t,sb)}function sP(t,e){(t.__highByOuter&=~(1<<(e||0)))||sT(t,sx)}function sL(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function sR(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,r){var o=sh(r),a=r.mainType===a4?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r),s="series"===e;s||n.push(a),o.isBlured&&(a.group.traverse(function(t){sS(t)}),s&&i.push(r)),o.isBlured=!1}),tI(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function sN(t,e,i,n){var r=n.getModel();function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&sT(n,sS)}}if((i=i||"coordinateSystem",null!=t)&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,h=t.coordinateSystem;h&&h.master&&(h=h.master);var u=h&&s?h===s:r;if(!("series"===i&&!r||"coordinateSystem"===i&&!u||"series"===e&&r)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||sw(t)}),tD(e))o(t.getData(),e);else if(tH(e))for(var d=tP(e),c=0;c<d.length;c++)o(t.getData(d[c]),e[d[c]]);l.push(t),sh(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.toggleBlurSeries&&i.toggleBlurSeries(l,!0,r)}})}}function sz(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){sh(n).isBlured=!0;var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse(function(t){sw(t)})}}}function sB(t,e,i,n){var r,o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;var a=n.getModel().getComponent(t,e);if(!a)return o;var s=n.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l=s.findHighDownDispatchers(i),h=0;h<l.length;h++)if("self"===a2(l[h]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function sV(t){tI(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){t.isSelected(i,n)?sT(e,sk):sT(e,sC)})})}function sF(t,e,i){var n,r,o,a;sW(t,!0),sT(t,sI),n=t,r=e,o=i,a=a2(n),null!=r?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}function sH(t,e,i,n){n?sW(t,!1):sF(t,e,i)}var sY=["emphasis","blur","select"],s$={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function sU(t,e,i,n){i=i||"itemStyle";for(var r=0;r<sY.length;r++){var o=sY[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[s$[i]]()}}function sW(t,e){var i=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i)}function sj(t){return!!(t&&t.__highDownDispatcher)}function sG(t){var e=t.type;return e===sf||e===sg||e===sm}function sZ(t){var e=t.type;return e===sc||e===sp}var sq={};function sX(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=tz(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},h=0;h<su.length;h++){var u=su[h],d=e[u];l[u]=tG(r?r.getFormattedLabel(o,u,null,a,d&&d.get("formatter")):null,n)}return l}function sK(t,e,i,n){i=i||sq;for(var r=t instanceof a1,o=!1,a=0;a<sd.length;a++){var s=e[sd[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){!r&&(l||(l=new a1,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var h=sX(i,e),u=e.normal,d=!!u.getShallow("show"),c=sJ(u,n&&n.normal,i,!1,!r);c.text=h.normal,r||t.setTextConfig(s0(u,i,!1));for(var a=0;a<su.length;a++){var p=su[a],s=e[p];if(s){var f=l.ensureState(p),g=!!tG(s.getShallow("show"),d);g!==d&&(f.ignore=!g),f.style=sJ(s,n&&n[p],i,!0,!r),f.style.text=h[p],r||(t.ensureState(p).textConfig=s0(s,i,!0))}}l.silent=!!u.getShallow("silent"),null!=l.style.x&&(c.x=l.style.x),null!=l.style.y&&(c.y=l.style.y),l.ignore=!d,l.useStyle(c),l.dirty(),i.enableTextSetter&&(s4(l).setLabelText=function(t){var n=sX(i,e,t);!function(t,e){for(var i=0;i<su.length;i++){var n=su[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(l,n)})}else l&&(l.ignore=!0);t.dirty()}function sQ(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<su.length;n++){var r=su[n];i[r]=t.getModel([r,e])}return i}function sJ(t,e,i,n,r){var o={};return function(t,e,i,n,r){i=i||sq;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||sq).rich;if(i){e=e||{};for(var n=tP(i),r=0;r<n.length;r++)e[n[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var h="richInheritPlainLabel",u=tG(e.get(h),a?a.get(h):void 0);for(var d in l)if(l.hasOwnProperty(d)){var c=e.getModel(["rich",d]);s3(o[d]={},c,s,e,u,i,n,r,!1,!0)}}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=e.get("minMargin");if(null!=g)t.margin=[g=tF(g)?g/2:0,g,g,g],t.__marginType=s6.minMargin;else{var m=e.get("textMargin");null!=m&&(t.margin=tX(m),t.__marginType=s6.textMargin)}s3(t,e,s,null,null,i,n,r,!0,!1)}(o,t,i,n,r),e&&tk(o,e),o}function s0(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=tG(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return"outside"===(n=t.getShallow("position")||(i?null:"inside"))&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=s&&(r.offset=s),null!=o&&(r.rotation=o*=Math.PI/180),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var s1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],s2=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],s5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function s3(t,e,i,n,r,o,a,s,l,h){i=!a&&i||sq;var u=o&&o.inheritColor,d=e.getShallow("color"),c=e.getShallow("textBorderColor"),p=tG(e.getShallow("opacity"),i.opacity);("inherit"===d||"auto"===d)&&(d=u||null),("inherit"===c||"auto"===c)&&(c=u||null),s||(d=d||i.color,c=c||i.textBorderColor),null!=d&&(t.fill=d),null!=c&&(t.stroke=c);var f=tG(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=f&&(t.lineWidth=f);var g=tG(e.getShallow("textBorderType"),i.textBorderType);null!=g&&(t.lineDash=g);var m=tG(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=m&&(t.lineDashOffset=m),a||null!=p||h||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null!=t.fill||!o.inheritColor||(t.fill=o.inheritColor);for(var _=0;_<s1.length;_++){var v=s1[_],y=!1!==r&&n?tZ(e.getShallow(v),n.getShallow(v),i[v]):tG(e.getShallow(v),i[v]);null!=y&&(t[v]=y)}for(var _=0;_<s2.length;_++){var v=s2[_],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var b=e.getShallow("baseline");null!=b&&(t.verticalAlign=b)}if(!l||!o.disableBox){for(var _=0;_<s5.length;_++){var v=s5[_],y=e.getShallow(v);null!=y&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&u&&(t.backgroundColor=u),("auto"===t.borderColor||"inherit"===t.borderColor)&&u&&(t.borderColor=u)}}var s4=rX(),s6={minMargin:1,textMargin:2},s7=["textStyle","color"],s8=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],s9=new a1,lt=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(s7):null)},t.prototype.getFont=function(){var t,e,i;return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},i=(e=this.ecModel)&&e.getModel("textStyle"),tQ([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<s8.length;i++)e[s8[i]]=this.getShallow(s8[i]);return s9.useStyle(e),s9.update(),s9.getBoundingRect()},t}(),le=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],li=o_(le),ln=function(){function t(){}return t.prototype.getLineStyle=function(t){return li(this,t)},t}(),lr=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lo=o_(lr),la=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return lo(this,t,e)},t}(),ls=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return t.prototype.init=function(t,e,i){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){tS(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null;return new t(n?this._doGet(r):this.option,i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(tw(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!tr.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();od(ls),u=["__\0is_clz",op++].join("_"),ls.prototype[u]=!0,ls.isInstance=function(t){return!!(t&&t[u])},tM(ls,ln),tM(ls,la),tM(ls,oy),tM(ls,lt);var ll=Math.round(10*Math.random());function lh(t){return[t||"",ll++].join("_")}function lu(t,e){return tS(tS({},t,!0),e,!0)}var ld={},lc={},lp=tr.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function lf(t,e){lc[t=t.toUpperCase()]=new ls(e),ld[t]=e}function lg(){return null}function lm(t,e){var i=lg(),n=e.breakOption,r=e.breakParsed;return!r&&i&&(r=i.parseAxisBreakOption(n,t)),r}function l_(t){var e=t.brk;return e?e.breaks:[]}function lv(t){var e=t.brk;return!!e&&e.hasBreaks()}lf("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),lf("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var ly={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},lb={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},lx="{yyyy}-{MM}-{dd}",lw={year:"{yyyy}",month:"{yyyy}-{MM}",day:lx,hour:lx+" "+lb.hour,minute:lx+" "+lb.minute,second:lx+" "+lb.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lS=["year","month","day","hour","minute","second","millisecond"],lk=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lC(t,e){return t+="","0000".substr(0,e-t.length)+t}function lT(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 lM(t,e,i,n){var r=rE(t),o=r[lA(i)](),a=r[lE(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[lO(i)](),h=r["get"+(i?"UTC":"")+"Day"](),u=r[lP(i)](),d=(u-1)%12+1,c=r[lL(i)](),p=r[lR(i)](),f=r[lN(i)](),g=u>=12?"pm":"am",m=g.toUpperCase(),_=(n instanceof ls?n:lc[n||lp]||lc.EN).getModel("time"),v=_.get("month"),y=_.get("monthAbbr"),b=_.get("dayOfWeek"),x=_.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,lC(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,lC(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,lC(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[h]).replace(/{ee}/g,x[h]).replace(/{e}/g,h+"").replace(/{HH}/g,lC(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,lC(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,lC(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,lC(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,lC(f,3)).replace(/{S}/g,f+"")}function lD(t,e){var i=rE(t),n=i[lE(e)]()+1,r=i[lO(e)](),o=i[lP(e)](),a=i[lL(e)](),s=i[lR(e)](),l=0===i[lN(e)](),h=l&&0===s,u=h&&0===a,d=u&&0===o,c=d&&1===r;if(c&&1===n)return"year";if(c)return"month";if(d)return"day";if(u)return"hour";if(h)return"minute";else if(l)return"second";else return"millisecond"}function lI(t,e,i){switch(e){case"year":t[lz(i)](0);case"month":t[lB(i)](1);case"day":t[lV(i)](0);case"hour":t[lF(i)](0);case"minute":t[lH(i)](0);case"second":t[lY(i)](0)}return t}function lA(t){return t?"getUTCFullYear":"getFullYear"}function lE(t){return t?"getUTCMonth":"getMonth"}function lO(t){return t?"getUTCDate":"getDate"}function lP(t){return t?"getUTCHours":"getHours"}function lL(t){return t?"getUTCMinutes":"getMinutes"}function lR(t){return t?"getUTCSeconds":"getSeconds"}function lN(t){return t?"getUTCMilliseconds":"getMilliseconds"}function lz(t){return t?"setUTCMonth":"setMonth"}function lB(t){return t?"setUTCDate":"setDate"}function lV(t){return t?"setUTCHours":"setHours"}function lF(t){return t?"setUTCMinutes":"setMinutes"}function lH(t){return t?"setUTCSeconds":"setSeconds"}function lY(t){return t?"setUTCMilliseconds":"setMilliseconds"}function l$(t){if(isNaN(rR(t)))return tB(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lU(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}function lW(t,e,i){function n(t){return t&&tQ(t)?t:"-"}var r="time"===e,o=t instanceof Date;if(r||o){var a=r?rE(t):t;if(!isNaN(+a))return lM(a,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(o)return"-"}if("ordinal"===e)return tV(t)?n(t):tF(t)&&rB(t)?t+"":"-";var s=rR(t);return rB(s)?l$(s):tV(t)?n(t):"boolean"==typeof t?t+"":"-"}var lj=["a","b","c","d","e","f","g"],lG=function(t,e){return"{"+t+(null==e?"":e)+"}"};function lZ(t,e,i){tN(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=lj[o];t=t.replace(lG(a),lG(a,0))}for(var s=0;s<n;s++)for(var l=0;l<r.length;l++){var h=e[s][r[l]];t=t.replace(lG(lj[l],s),i?ew(h):h)}return t}function lq(t,e){return e=e||"transparent",tB(t)?t:tH(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var lX={},lK={},lQ=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function i(i,n){var r=[];return tI(i,function(i,n){var o=i.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=i(lX,!0),this._normalMasterList=i(lK,!1)},t.prototype.update=function(t,e){tI(this._normalMasterList,function(i){i.update&&i.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){lX[t]=e;return}lK[t]=e},t.get=function(t){return lK[t]||lX[t]},t}(),lJ=t5();function l0(t){var e=t.getShallow("coord",!0),i=1;if(null==e){var n=lJ.get(t.type);n&&n.getCoord2&&(i=2,e=n.getCoord2(t))}return{coord:e,from:i}}var l1=["left","right","top","bottom","width","height"],l2=[["width","left","right"],["height","top","bottom"]];function l5(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,h){var u,d,c=l.getBoundingRect(),p=e.childAt(h+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=c.width+(f?-f.x+c.x:0);(u=o+g)>n||l.newline?(o=0,u=g,a+=s+i,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);(d=a+m)>r||l.newline?(o+=s+i,a=0,d=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+i:a=d+i)})}function l3(t,e,i){i=tX(i||0);var n=e.width,r=e.height,o=rb(t.left,n),a=rb(t.top,r),s=rb(t.right,n),l=rb(t.bottom,r),h=rb(t.width,n),u=rb(t.height,r),d=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(h)&&(h=n-s-c-o),isNaN(u)&&(u=r-l-d-a),null!=p&&(isNaN(h)&&isNaN(u)&&(p>n/r?h=.8*n:u=.8*r),isNaN(h)&&(h=p*u),isNaN(u)&&(u=h/p)),isNaN(o)&&(o=n-s-h-c),isNaN(a)&&(a=r-l-u-d),t.left||t.right){case"center":o=n/2-h/2-i[3];break;case"right":o=n-h-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-i[0];break;case"bottom":a=r-u-d}o=o||0,a=a||0,isNaN(h)&&(h=n-c-o-(s||0)),isNaN(u)&&(u=r-d-a-(l||0));var f=new ie((e.x||0)+o+i[3],(e.y||0)+a+i[0],h,u);return f.margin=i,f}tR(l5,"vertical"),tR(l5,"horizontal");function l4(t,e,i){var n,r,o,a,s=t.boxCoordinateSystem;if(s){var l=l0(t),h=l.coord,u=l.from;if(s.dataToLayout){o=1,a=u;var d=s.dataToLayout(h);n=d.contentRect||d.rect}else i&&i.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=2,a=u,r=s.dataToPoint(h))}return null==o&&(o=1),1===o&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[n.x+n.width/2,n.y+n.height/2]),{type:o,refContainer:n,refPoint:r,boxCoordFrom:a}}function l6(t){var e=t.layoutMode||t.constructor.layoutMode;return tH(e)?e:e?{type:e}:null}function l7(t,e,i){var n=i&&i.ignoreSize;tN(n)||(n=[n,n]);var r=a(l2[0],0),o=a(l2[1],1);function a(i,r){var o={},a=0,l={},h=0;if(tI(i,function(e){l[e]=t[e]}),tI(i,function(t){t6(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&h++}),n[r])return s(e,i[1])?l[i[2]]=null:s(e,i[2])&&(l[i[1]]=null),l;if(2===h||!a)return l;if(a>=2)return o;for(var u=0;u<i.length;u++){var d=i[u];if(!t6(o,d)&&t6(t,d)){o[d]=t[d];break}}return o}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,i){tI(t,function(t){e[t]=i[t]})}l(l2[0],t,r),l(l2[1],t,o)}function l8(t){var e,i;return e={},(i=t)&&e&&tI(l1,function(t){t6(i,t)&&(e[t]=i[t])}),e}var l9=rX(),ht=function(t){var e;function i(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=lh("ec_cpt_model"),r}return ti(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=l6(this),n=i?l8(t):{};tS(t,e.getTheme().get(this.mainType)),tS(t,this.getDefaultOption()),i&&l7(t,n,i)},i.prototype.mergeOption=function(t,e){tS(this.option,t,!0);var i=l6(this);i&&l7(this.option,t,i)},i.prototype.optionUpdated=function(t,e){},i.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oh]))return t.defaultOption;var e=l9(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=tS(o,i[a],!0);e.defaultOption=o}return e.defaultOption},i.prototype.getReferringComponents=function(t,e){return r2(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},i.prototype.getBoxLayoutParams=function(){return{left:this.getShallow("left",!1),top:this.getShallow("top",!1),right:this.getShallow("right",!1),bottom:this.getShallow("bottom",!1),width:this.getShallow("width",!1),height:this.getShallow("height",!1)}},i.prototype.getZLevelKey=function(){return""},i.prototype.setZLevel=function(t){this.option.zlevel=t},i.protoInitialize=void((e=i.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),i}(ls);oc(ht,ls),om(ht),d={},ht.registerSubTypeDefaulter=function(t,e){d[ou(t).main]=e},ht.determineSubType=function(t,e){var i=e.type;if(!i){var n=ou(t).main;ht.hasSubTypes(t)&&d[n]&&(i=d[n](e))}return i};var he=function(t){var e=[];return tI(ht.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tA(e,function(t){return ou(t).main}),"dataset"!==t&&0>=tT(e,"dataset")&&e.unshift("dataset"),e};function hi(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}ht.topologicalTravel=function(t,e,i,n){if(t.length){var r,o,a,s=(o={},a=[],tI(r=e,function(t){var e,i,n,s=hi(o,t),l=(e=s.originalDeps=he(t),i=r,n=[],tI(e,function(t){tT(i,t)>=0&&n.push(t)}),n);s.entryCount=l.length,0===s.entryCount&&a.push(t),tI(l,function(e){0>tT(s.predecessor,e)&&s.predecessor.push(e);var i=hi(o,e);0>tT(i.successor,e)&&i.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,h=s.noEntryList,u={};for(tI(t,function(t){u[t]=!0});h.length;){var d=h.pop(),c=l[d],p=!!u[d];p&&(i.call(n,d,c.originalDeps.slice()),delete u[d]),tI(c.successor,p?g:f)}tI(u,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function g(t){u[t]=!0,f(t)}};var hn={color:{},darkColor:{},size:{}},hr=hn.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var ho in tk(hr,{primary:hr.neutral80,secondary:hr.neutral70,tertiary:hr.neutral60,quaternary:hr.neutral50,disabled:hr.neutral20,border:hr.neutral30,borderTint:hr.neutral20,borderShade:hr.neutral40,background:hr.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:hr.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:hr.neutral70,axisLineTint:hr.neutral40,axisTick:hr.neutral70,axisTickMinor:hr.neutral60,axisLabel:hr.neutral70,axisSplitLine:hr.neutral15,axisMinorSplitLine:hr.neutral05}),hr)if(hr.hasOwnProperty(ho)){var ha=hr[ho];"theme"===ho?hn.darkColor.theme=hr.theme.slice():"highlight"===ho?hn.darkColor.highlight="rgba(255,231,130,0.4)":0===ho.indexOf("accent")?hn.darkColor[ho]=i7(ha,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):hn.darkColor[ho]=i7(ha,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}hn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var hs="";"u">typeof navigator&&(hs=navigator.platform||"");var hl="rgba(0, 0, 0, 0.2)",hh=hn.color.theme["0"],hu=i7(hh,null,null,.9);let hd={darkMode:"auto",colorBy:"series",color:hn.color.theme,gradientColor:[hu,hh],aria:{decal:{decals:[{color:hl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:hl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:hl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:hl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:hl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:hl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hs.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var hc=rX();function hp(t,e,i){var n,r,o={},a=hf(e);if(!a||!t)return o;var s=[],l=[],h=hc(e.ecModel).datasetMap,u=a.uid+"_"+i.seriesLayoutBy;tI(t=t.slice(),function(e,i){var a=tH(e)?e:t[i]={name:e};"ordinal"===a.type&&null==n&&(n=i,r=p(a)),o[a.name]=[]});var d=h.get(u)||h.set(u,{categoryWayDim:r,valueWayDim:0});function c(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function p(t){var e=t.dimsDef;return e?e.length:1}return tI(t,function(t,e){var i=t.name,r=p(t);if(null==n){var a=d.valueWayDim;c(o[i],a,r),c(l,a,r),d.valueWayDim+=r}else if(n===e)c(o[i],0,r),c(s,0,r);else{var a=d.categoryWayDim;c(o[i],a,r),c(l,a,r),d.categoryWayDim+=r}}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function hf(t){if(!t.get("data",!0))return r2(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},r0).models[0]}function hg(t,e){return function(t,e,i,n,r,o){var a,s,l;if(t$(t))return 3;if(n){var h=n[o];tH(h)?(s=h.name,l=h.type):tB(h)&&(s=h)}if(null!=l)return"ordinal"===l?1:3;if(e===a8)if("row"===i){for(var u=t[o],d=0;d<(u||[]).length&&d<5;d++)if(null!=(a=g(u[r+d])))return a}else for(var d=0;d<t.length&&d<5;d++){var c=t[r+d];if(c&&null!=(a=g(c[o])))return a}else if(e===a9){if(!s)return 3;for(var d=0;d<t.length&&d<5;d++){var p=t[d];if(p&&null!=(a=g(p[s])))return a}}else if(e===st){if(!s)return 3;var u=t[s];if(!u||t$(u))return 3;for(var d=0;d<u.length&&d<5;d++)if(null!=(a=g(u[d])))return a}else if(e===a7)for(var d=0;d<t.length&&d<5;d++){var p=t[d],f=r$(p);if(!tN(f))return 3;if(null!=(a=g(f[o])))return a}function g(t){var e=tB(t);return null!=t&&isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var hm=t5(),h_=rX();rX();var hv=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){return function(t,e,i,n,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,h=s.paletteNameMap=s.paletteNameMap||{};if(h.hasOwnProperty(r))return h[r];var u=null!=a&&n?function(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}(n,a):i;if((u=u||i)&&u.length){var d=u[l];return r&&(h[r]=d),s.paletteIdx=(l+1)%u.length,d}}(this,h_,rF(this.get("color",!0)),this.get("colorLayer",!0),t,e,i)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=h_)(t).paletteIdx=0,e(t).paletteNameMap={}},t}(),hy="\0_ec_inner",hb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new ls(n),this._locale=new ls(r),this._optionManager=o},e.prototype.setOption=function(t,e,i){var n=hS(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,hS(e))},e.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):_(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&tI(a,function(t){i=!0,this._mergeOption(t,e)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,r=this._componentsCount,o=[],a=t5(),s=e&&e.replaceMergeMainTypeMap;hc(this).datasetMap=t5(),tI(t,function(t,e){null!=t&&(ht.hasClass(e)?e&&(o.push(e),a.set(e,!0)):i[e]=null==i[e]?tw(t):tS(i[e],t,!0))}),s&&s.each(function(t,e){ht.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),ht.topologicalTravel(o,ht.getAllClassMainTypes(),function(e){var o,a,l,h,u,d,c,p,f,m,_,v,y,b,x,w,S,k,C,T,M=function(t,e,i){var n=hm.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}(this,e,rF(t[e])),D=n.get(e),I=D?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",A=(y=D,b=M,x="normalMerge"===I,w="replaceMerge"===I,S="replaceAll"===I,y=y||[],b=(b||[]).slice(),k=t5(),tI(b,function(t,e){if(!tH(t)){b[e]=null;return}}),C=function(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||rZ(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}(y,k,I),(x||w)&&(o=C,a=y,l=k,tI(h=b,function(t,e){if(t&&null!=t.id){var i=rW(t.id),n=l.get(i);if(null!=n){var r=o[n];tK(!r.newOption,'Duplicated option on id "'+i+'".'),r.newOption=t,r.existing=a[n],h[e]=null}}})),x&&(u=C,tI(d=b,function(t,e){if(t&&null!=t.name)for(var i=0;i<u.length;i++){var n=u[i].existing;if(!u[i].newOption&&n&&(null==n.id||null==t.id)&&!rZ(t)&&!rZ(n)&&rU("name",n,t)){u[i].newOption=t,d[e]=null;return}}})),x||w?(c=C,p=b,f=w,tI(p,function(t){if(t){for(var e,i=0;(e=c[i])&&(e.newOption||rZ(e.existing)||e.existing&&null!=t.id&&!rU("id",t,e.existing));)i++;e?(e.newOption=t,e.brandNew=f):c.push({newOption:t,brandNew:f,existing:null,keyInfo:null}),i++}})):S&&(m=C,tI(b,function(t){m.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),_=C,v=t5(),tI(_,function(t){var e=t.existing;e&&v.set(e.id,t)}),tI(_,function(t){var e=t.newOption;tK(!e||null==e.id||!v.get(e.id)||v.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&v.set(e.id,t),t.keyInfo||(t.keyInfo={})}),tI(_,function(t,e){var i=t.existing,n=t.newOption,r=t.keyInfo;if(tH(n)){if(r.name=null!=n.name?rW(n.name):i?i.name:rV+e,i)r.id=rW(i.id);else if(null!=n.id)r.id=rW(n.id);else{var o=0;do r.id="\0"+r.name+"\0"+o++;while(v.get(r.id))}v.set(r.id,t)}}),C);tI(A,function(t){var i,n,r,o,a=t.newOption;tH(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,n=a,r=t.existing,o=ht,n.type?n.type:r?r.subType:o.determineSubType(i,n)))}),i[e]=null,n.set(e,null),r.set(e,0);var E=[],O=[],P=0;tI(A,function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=ht.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(T)return;T=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=tk({componentIndex:i},t.keyInfo);tk(n=new a(r,this,this,s),s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(E.push(n.option),O.push(n),P++):(E.push(void 0),O.push(void 0))},this),i[e]=E,n.set(e,O),r.set(e,P),"series"===e&&g(this)},this),this._seriesIndices||g(this)},e.prototype.getOption=function(){var t=tw(this.option);return tI(t,function(e,i){if(ht.hasClass(i)){for(var n=rF(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!rZ(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}}),delete t[hy],t},e.prototype.setTheme=function(t){this._theme=new ls(t),this._resetOption("recreate",null)},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 i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e){for(var r=0;r<i.length;r++)if(i[r])return i[r]}}},e.prototype.queryComponents=function(t){var e,i=t.mainType;if(!i)return[];var n=t.index,r=t.id,o=t.name,a=this._componentsMap.get(i);return a&&a.length?(null!=n?(e=[],tI(rF(n),function(t){a[t]&&e.push(a[t])})):e=null!=r?hx("id",r,a):null!=o?hx("name",o,a):tO(a,function(t){return!!t}),hw(e,t)):[]},e.prototype.findComponents=function(t){var e,i,n,r,o,a=t.query,s=t.mainType,l=(e=a,i=s+"Index",n=s+"Id",r=s+"Name",e&&(null!=e[i]||null!=e[n]||null!=e[r])?{mainType:s,index:e[i],id:e[n],name:e[r]}:null);return o=hw(l?this.queryComponents(l):tO(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?tO(o,t.filter):o},e.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(tz(t))n.each(function(i,n){for(var r=0;i&&r<i.length;r++){var o=i[r];o&&t.call(e,n,o,o.componentIndex)}});else for(var r=tB(t)?n.get(t):tH(t)?this.findComponents(t):null,o=0;r&&o<r.length;o++){var a=r[o];a&&e.call(i,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=rj(t,null);return tO(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return tO(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return tO(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){m(this),tI(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},e.prototype.eachRawSeries=function(t,e){tI(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,i){m(this),tI(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},e.prototype.eachRawSeriesByType=function(t,e,i){return tI(this.getSeriesByType(t),e,i)},e.prototype.isSeriesFiltered=function(t){return m(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){m(this);var i=[];tI(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=t5(i)},e.prototype.restoreData=function(t){g(this);var e=this._componentsMap,i=[];e.each(function(t,e){ht.hasClass(e)&&i.push(e)}),ht.topologicalTravel(i,ht.getAllClassMainTypes(),function(i){tI(e.get(i),function(e){e&&("series"!==i||!function(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})},e.internalField=void(g=function(t){var e=t._seriesIndices=[];tI(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=t5(e)},m=function(t){},_=function(t,e){t.option={},t.option[hy]=1,t._componentsMap=t5({series:[]}),t._componentsCount=t5();var i,n,r,o=e.aria;tH(o)&&null==o.enabled&&(o.enabled=!0),i=e,n=t._theme.option,r=i.color&&!i.colorLayer,tI(n,function(t,e){"colorLayer"===e&&r||"color"===e&&i.color||ht.hasClass(e)||("object"==typeof t?i[e]=i[e]?tS(i[e],t,!1):tw(t):null==i[e]&&(i[e]=t))}),tS(e,hd,!1),t._mergeOption(e,null)}),e}(ls);function hx(t,e,i){if(tN(e)){var n=t5();return tI(e,function(t){null!=t&&null!=rj(t,null)&&n.set(t,!0)}),tO(i,function(e){return e&&n.get(e[t])})}var r=rj(e,null);return tO(i,function(e){return e&&null!=r&&e[t]===r})}function hw(t,e){return e.hasOwnProperty("subType")?tO(t,function(t){return t&&t.subType===e.subType}):t}function hS(t){var e=t5();return t&&tI(rF(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}tM(hb,hv);var hk=/^(min|max)?(.+)$/,hC=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,i){t&&(tI(rF(t.series),function(t){t&&t.data&&t$(t.data)&&(t.data[tJ]=!0)}),tI(rF(t.dataset),function(t){t&&t.source&&t$(t.source)&&(t.source[tJ]=!0)})),t=tw(t);var n=this._optionBackup,r=function(t,e,i){var n,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,h=t.media,u=!!t.media,d=!!(l||s||a&&a.timeline);function c(t){tI(e,function(e){e(t,i)})}return a?(r=a).timeline||(r.timeline=s):((d||u)&&(t.options=t.media=null),r=t),u&&tN(h)&&tI(h,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))}),c(r),tI(l,function(t){return c(t)}),tI(o,function(t){return c(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:n,mediaList:o}}(t,e,!n);this._newBaseOption=r.baseOption,n?(r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tw(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=tw(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,i,n=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var h=0,u=o.length;h<u;h++)(function(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return tI(t,function(t,e){var i=e.match(hk);if(i&&i[1]&&i[2]){var o,a,s,l=i[1];o=n[i[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[h].query,n,r)&&s.push(h);return!s.length&&a&&(s=[-1]),s.length&&(e=s,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(l=tA(s,function(t){return tw(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),hT=tH,hM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hD(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=hM.length;i<n;i++){var r=hM[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?tS(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?tS(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function hI(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,tC(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function hA(t){hI(t,"itemStyle"),hI(t,"lineStyle"),hI(t,"areaStyle"),hI(t,"label"),hI(t,"labelLine"),hI(t,"upperLabel"),hI(t,"edgeLabel")}function hE(t,e){var i=hT(t)&&t[e],n=hT(i)&&i.textStyle;if(n)for(var r=0,o=rY.length;r<o;r++){var a=rY[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function hO(t){t&&(hA(t),hE(t,"label"),t.emphasis&&hE(t.emphasis,"label"))}function hP(t){return tN(t)?t:t?[t]:[]}function hL(t){return(tN(t)?t[0]:t)||{}}function hR(t){t&&tI(hN,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var hN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hz=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],hB=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hV(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<hB.length;i++){var n=hB[i][1],r=hB[i][0];null!=e[n]&&(e[r]=e[n])}}function hF(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hH(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function hY(t,e){var i;tI(hP(t.series),function(t){hT(t)&&function(t){if(hT(t)){hD(t),hA(t),hE(t,"label"),hE(t,"upperLabel"),hE(t,"edgeLabel"),t.emphasis&&(hE(t.emphasis,"label"),hE(t.emphasis,"upperLabel"),hE(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(hD(e),hO(e));var i=t.markLine;i&&(hD(i),hO(i));var n=t.markArea;n&&hO(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!t$(o))for(var a=0;a<o.length;a++)hO(o[a]);tI(t.categories,function(t){hA(t)})}if(r&&!t$(r))for(var a=0;a<r.length;a++)hO(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)hO(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)tN(l[a])?(hO(l[a][0]),hO(l[a][1])):hO(l[a]);"gauge"===t.type?(hE(t,"axisLabel"),hE(t,"title"),hE(t,"detail")):"treemap"===t.type?(hI(t.breadcrumb,"itemStyle"),tI(t.levels,function(t){hA(t)})):"tree"===t.type&&hA(t.leaves)}}(t)}),i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),tI(i,function(e){tI(hP(t[e]),function(t){t&&(hE(t,"axisLabel"),hE(t.axisPointer,"label"))})}),tI(hP(t.parallel),function(t){var e=t&&t.parallelAxisDefault;hE(e,"axisLabel"),hE(e&&e.axisPointer,"label")}),tI(hP(t.calendar),function(t){hI(t,"itemStyle"),hE(t,"dayLabel"),hE(t,"monthLabel"),hE(t,"yearLabel")}),tI(hP(t.radar),function(t){hE(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),tI(hP(t.geo),function(t){hT(t)&&(hO(t),tI(hP(t.regions),function(t){hO(t)}))}),tI(hP(t.timeline),function(t){hO(t),hI(t,"label"),hI(t,"itemStyle"),hI(t,"controlStyle",!0);var e=t.data;tN(e)&&tI(e,function(t){tH(t)&&(hI(t,"label"),hI(t,"itemStyle"))})}),tI(hP(t.toolbox),function(t){hI(t,"iconStyle"),tI(t.feature,function(t){hI(t,"iconStyle")})}),hE(hL(t.axisPointer),"label"),hE(hL(t.tooltip).axisPointer,"label"),t.series=rF(t.series),tI(t.series,function(t){if(tH(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),hF(t.label);var i=t.data;if(i&&!t$(i))for(var n=0;n<i.length;n++)hF(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}(t,"pointer.color");null!=r&&function(t,e,i){for(var n,r=e.split(","),o=t,a=0;a<r.length-1;a++)null==o[n=r[a]]&&(o[n]={}),o=o[n];null==o[r[a]]&&(o[r[a]]=i)}(t,"itemStyle.color",r)}else if("bar"===e){hV(t),hV(t.backgroundStyle),hV(t.emphasis);var i=t.data;if(i&&!t$(i))for(var n=0;n<i.length;n++)"object"==typeof i[n]&&(hV(i[n]),hV(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hH(t),function t(e,i){if(e)for(var n=0;n<e.length;n++)i(e[n]),e[n]&&t(e[n].children,i)}(t.data,hH)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&tC(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),hR(t)}}),t.dataRange&&(t.visualMap=t.dataRange),tI(hz,function(e){var i=t[e];i&&(tN(i)||(i=[i]),tI(i,function(t){hR(t)}))})}var h$=os(function(t){var e=t5();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){var e;0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),tI(t,function(e,i){e.data.setCalculationInfo("stackedOnSeries",i>0?t[i-1].seriesModel:null)}),tI(e=t,function(t,i){var n=[],r=[0/0,0/0],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,h,u){var d,c,p=a.get(t.stackedDimension,u);if(isNaN(p))return r;s?c=a.getRawIndex(u):d=a.get(t.stackedByDimension,u);for(var f=0/0,g=i-1;g>=0;g--){var m=e[g];if(s||(c=m.data.rawIndexOf(m.stackedByDimension,d)),c>=0){var _=m.data.getByRawIndex(m.stackResultDimension,c);if("all"===l||"positive"===l&&_>0||"negative"===l&&_<0||"samesign"===l&&p>=0&&_>0||"samesign"===l&&p<=0&&_<0){p=rT(p,_),f=_;break}}}return n[0]=p,n[1]=f,n})}))})}),hU=function(t){this.data=t.data||(t.sourceFormat===st?{}:[]),this.sourceFormat=t.sourceFormat||si,this.seriesLayoutBy=t.seriesLayoutBy||sn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&1===hg(this,i)&&(n.type="ordinal")}};function hW(t){return t instanceof hU}function hj(t,e,i){i=i||hZ(t);var n=e.seriesLayoutBy,r=function(t,e,i,n,r){if(!t)return{dimensionsDefine:hq(r),startIndex:a,dimensionsDetectedCount:o};if(e===a8){var o,a;"auto"===n||null==n?hX(function(t){null!=t&&"-"!==t&&(tB(t)?null==a&&(a=1):a=0)},i,t,10):a=tF(n)?n:+!!n,r||1!==a||(r=[],hX(function(t,e){r[e]=null!=t?t+"":""},i,t,1/0)),o=r?r.length:"row"===i?t.length:t[0]?t[0].length:null}else if(e===a9)r||(r=function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e)return tP(e)}(t));else if(e===st)r||(r=[],tI(t,function(t,e){r.push(e)}));else if(e===a7){var s=r$(t[0]);o=tN(s)&&s.length||1}return{startIndex:a,dimensionsDefine:hq(r),dimensionsDetectedCount:o}}(t,i,n,e.sourceHeader,e.dimensions);return new hU({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:tw(e)})}function hG(t){return new hU({data:t,sourceFormat:t$(t)?se:a7})}function hZ(t){var e=si;if(t$(t))e=se;else if(tN(t)){0===t.length&&(e=a8);for(var i=0,n=t.length;i<n;i++){var r=t[i];if(null!=r){if(tN(r)||t$(r)){e=a8;break}else if(tH(r)){e=a9;break}}}}else if(tH(t)){for(var o in t)if(t6(t,o)&&tD(t[o])){e=st;break}}return e}function hq(t){if(t){var e=t5();return tA(t,function(t,i){var n={name:(t=tH(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var r=e.get(n.name);return r?n.name+="-"+r.count++:e.set(n.name,{count:1}),n})}}function hX(t,e,i,n){if("row"===e)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&r<n;r++)t(o[r],r)}function hK(t){var e=t.sourceFormat;return e===a9||e===st}var hQ={},hJ="u">typeof console&&console.warn&&console.log;function h0(t,e){!function(t,e,i){if(hJ){if(i){if(hQ[e])return;hQ[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function h1(t){throw Error(t)}var h2=function(){var t;function e(t,e){var i=hW(t)?t:hG(t);this._source=i;var n=this._data=i.data,r=i.sourceFormat;i.seriesLayoutBy,r===se&&(this._offset=0,this._dimSize=e,this._data=n),S(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){S=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,h=o.dimensionsDefine;tk(t,w[ut(a,s)]),a===se?(t.getItem=e,t.count=n,t.fillStorage=i):(t.getItem=tL(function(t,e){return h4[ut(t,e)]}(a,s),null,r,l,h),t.count=tL(function(t,e){return h7[ut(t,e)]}(a,s),null,r,l,h))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;o<n;o++)e[o]=i[r+o];return e},i=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,d=i[a],c=0;c<u;c++){var p=r[c*o+a];d[t+c]=p,p<l&&(l=p),p>h&&(h=p)}s[0]=l,s[1]=h}},n=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[a8+"_"+sn]={pure:!0,appendData:r},t[a8+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[a9]={pure:!0,appendData:r},t[st]={pure:!0,appendData:function(t){var e=this._data;tI(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},t[a7]={appendData:r},t[se]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},w=t}(),e}(),h5=function(t){tN(t)||h0("series.data or dataset.source must be an array.")};(v={})[a8+"_"+sn]=h5,v[a8+"_row"]=h5,v[a9]=h5,v[st]=function(t,e){for(var i=0;i<e.length;i++)null==e[i].name&&h0("dimension name must not be null/undefined.")},v[a7]=h5;var h3=function(t,e,i,n){return t[n]},h4=((y={})[a8+"_"+sn]=function(t,e,i,n){return t[n+e]},y[a8+"_row"]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[n]:null}return o},y[a9]=h3,y[st]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name,l=null!=s?t[s]:null;o[a]=l?l[n]:null}return o},y[a7]=h3,y),h6=function(t,e,i){return t.length},h7=((b={})[a8+"_"+sn]=function(t,e,i){return Math.max(0,t.length-e)},b[a8+"_row"]=function(t,e,i){var n=t[0];return n?Math.max(0,n.length-e):0},b[a9]=h6,b[st]=function(t,e,i){var n=i[0].name,r=null!=n?t[n]:null;return r?r.length:0},b[a7]=h6,b),h8=function(t,e,i){return t[e]},h9=((x={})[a8]=h8,x[a9]=function(t,e,i){return t[i]},x[st]=h8,x[a7]=function(t,e,i){var n=r$(t);return n instanceof Array?n[e]:n},x[se]=h8,x);function ut(t,e){return t===a8?t+"_"+e:t}function ue(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return h9[o](n,a,s)}var l=n;return o===a7&&(l=r$(n)),l}}}var ui=/\{@(.+?)\}/g,un=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],h=s&&s.stroke,u=this.mainType,d="series"===u,c=i.userOutput&&i.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:h,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);return(o&&(s.value=o.interpolatedValue),null!=n&&tN(s.value)&&(s.value=s.value[n]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),tz(r))?(s.status=e,s.dimensionIndex=n,r(s)):tB(r)?lZ(r,s).replace(ui,function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=ue(a,t,r);if(o&&tN(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return ue(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,i){},t}();function ur(t){var e,i;return tH(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function uo(t){return new ua(t)}var ua=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,i,n,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(n=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),h=this._modDataCount||0,u=((i=t&&t.modBy)>=1||(i=1),i),d=t&&t.modDataCount||0;(l!==u||h!==d)&&(n="reset"),(this._dirty||"reset"===n)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=u,this._modDataCount=d;var c=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(r||p<f)){var g=this._progress;if(tN(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,f,u,d);else this._doProgress(g,p,f,u,d)}this._dueIndex=f;var _=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=_}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){us.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:us.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),tN(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,i,n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),us=function(){var t,e,i,n,r,o={reset:function(l,h,u,d){e=l,t=h,i=u,r=Math.ceil((n=d)/i),o.next=i>1&&n>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*i+Math.ceil(e/r),a=e>=t?null:o<n?o:e;return e++,a}}();function ul(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||tF(t)||null==t||"-"===t||(t=+rE(t)),null==t||""===t?0/0:Number(t))}t5({number:function(t){return parseFloat(t)},time:function(t){return+rE(t)},trim:function(t){return tB(t)?tQ(t):t}});var uh={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}};(function(t,e){tF(e)||h1(""),this._opFn=uh[t],this._rvalFloat=rR(e)}).prototype.evaluate=function(t){return tF(t)?this._opFn(t,this._rvalFloat):this._opFn(rR(t),this._rvalFloat)};var uu=function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=tF(t)?t:rR(t),n=tF(e)?e:rR(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=tB(t),s=tB(e);a&&(i=s?t:0),s&&(n=a?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t}();(function(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=rR(e)}).prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&("number"===i||"number"===this._rvalTypeof)&&(e=rR(t)===this._rvalFloat)}return this._isEQ?e:!e};var ud=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ul(t,e)},t}();function uc(t){return u_(t.sourceFormat)||h1(""),t.data}function up(t){var e=t.sourceFormat,i=t.data;if(u_(e)||h1(""),e===a8){for(var n=[],r=0,o=i.length;r<o;r++)n.push(i[r].slice());return n}if(e===a9){for(var n=[],r=0,o=i.length;r<o;r++)n.push(tk({},i[r]));return n}}function uf(t,e,i){if(null!=i){if(tF(i)||!isNaN(i)&&!t6(e,i))return t[i];else if(t6(e,i))return e[i]}}function ug(t){return tw(t)}var um=t5();function u_(t){return t===a8||t===a9}var uv=typeof Uint32Array===a3?Array:Uint32Array,uy=typeof Uint16Array===a3?Array:Uint16Array,ub=typeof Int32Array===a3?Array:Int32Array,ux=typeof Float64Array===a3?Array:Float64Array,uw={float:ux,int:ub,ordinal:Array,number:Array,time:ux};function uS(t){return t>65535?uv:uy}function uk(t,e,i,n,r){var o=uw[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),h=0;h<s;h++)l[h]=a[h];t[e]=l}}else t[e]=new o(n)}var uC=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=t5()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=k[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],hK(n),this._dimensions=tA(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new uw[e||"float"](this._rawCount),this._rawExtent[r]=r4(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=r4());for(var s=r[t],l=o;l<a;l++){var h=i[l]=e.parseAndCollect(i[l]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var h=n[l];uk(i,l,h.type,s,!0)}for(var u=[],d=a;d<s;d++)for(var c=d-a,p=0;p<r;p++){var h=n[p],f=k.arrayRows.call(this,t[c]||u,h.property,c,p);i[p][d]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tA(o,function(t){return t.property}),h=0;h<a;h++){var u=o[h];s[h]||(s[h]=r4()),uk(r,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var d=[],c=t;c<e;c++){d=n.getItem(c,d);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(d,l[p],c,p);f[c]=g;var m=s[p];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}!n.persistent&&n.clean&&n.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<this._count))return 0/0;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:0/0},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;r<o;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var i=this._chunks[t];return i?i[e]:0/0},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();n<r;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)}),rS(e);var i=this.count();return 0===i?0:i%2==1?e[(i-1)/2]:(e[i/2]+e[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;n<=r;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return -1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;r<n;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{var i=uS(this._rawCount);t=new i(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=new(uS(i._rawCount))(n),o=[],a=t.length,s=0,l=t[0],h=i._chunks,u=0;u<n;u++){var d=void 0,c=i.getRawIndex(u);if(0===a)d=e(u);else if(1===a)d=e(h[l][c],u);else{for(var p=0;p<a;p++)o[p]=h[t[p]][c];o[p]=u,d=e.apply(null,o)}d&&(r[s++]=c)}return s<n&&(i._indices=r),i._count=s,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=tP(t),r=n.length;if(!r)return this;var o=e.count(),a=new(uS(e._rawCount))(o),s=0,l=n[0],h=t[l][0],u=t[l][1],d=e._chunks,c=!1;if(!e._indices){var p=0;if(1===r){for(var f=d[n[0]],g=0;g<i;g++){var m=f[g];(m>=h&&m<=u||isNaN(m))&&(a[s++]=p),p++}c=!0}else if(2===r){for(var f=d[n[0]],_=d[n[1]],v=t[n[1]][0],y=t[n[1]][1],g=0;g<i;g++){var m=f[g],b=_[g];(m>=h&&m<=u||isNaN(m))&&(b>=v&&b<=y||isNaN(b))&&(a[s++]=p),p++}c=!0}}if(!c)if(1===r)for(var g=0;g<o;g++){var x=e.getRawIndex(g),m=d[n[0]][x];(m>=h&&m<=u||isNaN(m))&&(a[s++]=x)}else for(var g=0;g<o;g++){for(var w=!0,x=e.getRawIndex(g),S=0;S<r;S++){var k=n[S],m=d[k][x];(m<t[k][0]||m>t[k][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=r4();for(var u=0;u<a;u++){for(var d=t.getRawIndex(u),c=0;c<o;c++)s[c]=n[e[c]][d];s[o]=u;var p=i&&i.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(var h=0;h<p.length;h++){var f=e[h],g=p[h],m=l[f],_=n[f];_&&(_[d]=g),g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,h=Math.floor(1/e),u=this.getRawIndex(0),d=new(uS(this._rawCount))(Math.min((Math.ceil(s/h)+2)*2,s));d[l++]=u;for(var c=1;c<s-1;c+=h){for(var p=Math.min(c+h,s-1),f=Math.min(c+2*h,s),g=(f+p)/2,m=0,_=p;_<f;_++){var v=this.getRawIndex(_),y=a[v];isNaN(y)||(m+=y)}m/=f-p;var b=c,x=Math.min(c+h,s),w=c-1,S=a[u];i=-1,r=b;for(var k=-1,C=0,_=b;_<x;_++){var v=this.getRawIndex(_),y=a[v];if(isNaN(y)){C++,k<0&&(k=v);continue}(n=Math.abs((w-g)*(y-S)-(w-_)*(m-S)))>i&&(i=n,r=v)}C>0&&C<x-b&&(d[l++]=Math.min(k,r),r=Math.max(k,r)),d[l++]=r,u=r}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,r=Math.floor(1/e),o=n[t],a=this.count(),s=new(uS(this._rawCount))(2*Math.ceil(a/r)),l=0,h=0;h<a;h+=r){var u=h,d=o[this.getRawIndex(u)],c=h,p=o[this.getRawIndex(c)],f=r;h+r>a&&(f=a-h);for(var g=0;g<f;g++){var m=o[this.getRawIndex(h+g)];m<d&&(d=m,u=h+g),m>p&&(p=m,c=h+g)}var _=this.getRawIndex(u),v=this.getRawIndex(c);u<c?(s[l++]=_,s[l++]=v):(s[l++]=v,s[l++]=_)}return i._count=l,i._indices=s,i._updateGetRawIdx(),i},t.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),u=r._rawExtent[t]=r4(),d=new(uS(this._rawCount))(Math.ceil(h/s)),c=0,p=0;p<h;p+=s){s>h-p&&(a.length=s=h-p);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var m=i(a),_=this.getRawIndex(Math.min(p+n(a,m)||0,h-1));l[_]=m,m<u[0]&&(u[0]=m),m>u[1]&&(u[1]=m),d[c++]=_}return r._count=c,r._indices=d,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var i=this._chunks[t],n=r4();if(!i)return n;var r=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var o=this._extent,a=o[t]||(o[t]={}),s=(p="",f=-1/0,g=-1/0,m=1/0,_=1/0,e&&(null!=e.g&&(p+="G"+e.g,f=e.g),null!=e.ge&&(p+="GE"+e.ge,g=e.ge),null!=e.l&&(p+="L"+e.l,m=e.l),null!=e.le&&(p+="LE"+e.le,_=e.le)),{key:p,g:f,ge:g,l:m,le:_}),l=s.key,h=a[l];if(h)return h.slice();for(var u=n[0],d=n[1],c=0;c<r;c++){var p,f,g,m,_,v=i[this.getRawIndex(c)];(!e||v>s.g&&v>=s.ge&&v<s.l&&v<=s.le)&&(v<u&&(u=v),v>d&&(d=v))}return a[l]=[u,d]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=new t,r=this._chunks,o=e&&tE(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)n._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=tw(this._extent),t._rawExtent=tw(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return ul(t[n],this._dimensions[n])}k={arrayRows:t,objectRows:function(t,e,i,n){return ul(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return ul(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),uT=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,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(uM(i)){var o=void 0,a=void 0,s=void 0;if(r){var l=n[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=t$(o=i.get("data",!0))?se:a7,e=[];var h=this._getSourceMetaRawOption()||{},u=s&&s.metaRawOption||{},d=tG(h.seriesLayoutBy,u.seriesLayoutBy)||null,c=tG(h.sourceHeader,u.sourceHeader),p=tG(h.dimensions,u.dimensions);t=d!==u.seriesLayoutBy||!!c!=!!u.sourceHeader||p?[hj(o,{seriesLayoutBy:d,sourceHeader:c,dimensions:p},a)]:[]}else if(r){var f=this._applyTransform(n);t=f.sourceList,e=f.upstreamSignList}else t=[hj(i.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,i,n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);null!=o&&1!==t.length&&uD("");var a=[],s=[];return(tI(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||uD(""),a.push(e),s.push(t._getVersionSign())}),r)?i=function(t,e,i){var n=rF(t),r=n.length;r||h1("");for(var o=0;o<r;o++)e=function(t,e){e.length||h1(""),tH(t)||h1("");var i=t.type,n=um.get(i);n||h1("");var r=tA(e,function(t){return function(t,e){var i=new ud,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==sn&&h1("");var a=[],s={},l=t.dimensionsDefine;if(l)tI(l,function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};a.push(n),null!=i&&(t6(s,i)&&h1(""),s[i]=n)});else for(var h=0;h<t.dimensionsDetectedCount||0;h++)a.push({index:h});var u=h4[ut(r,sn)];e.__isBuiltIn&&(i.getRawDataItem=function(t){return u(n,o,a,t)},i.getRawData=tL(uc,null,t)),i.cloneRawData=tL(up,null,t),i.count=tL(h7[ut(r,sn)],null,n,o,a);var d=h9[r];i.retrieveValue=function(t,e){return c(u(n,o,a,t),e)};var c=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];if(i)return d(t,e,i.name)}};return i.getDimensionInfo=tL(uf,null,a,s),i.cloneAllDimensionInfo=tL(ug,null,a),i}(t,n)});return tA(rF(n.transform({upstream:r[0],upstreamList:r,config:tw(t.config)})),function(t,i){tH(t)||h1(""),t.data||h1(""),u_(hZ(t.data))||h1("");var n,r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:sn,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:sn,sourceHeader:0,dimensions:t.dimensions};return hj(t.data,n,null)})}(n[o],e),o!==r-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:n.componentIndex}):null!=o&&(i=[new hU({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tw(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:i,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];uM(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new uC).initData(new h2(e,t.length),t),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(uM(t)){var e=hf(t);return e?[e.getSourceManager()]:[]}return tA(t.get("transform",!0)||t.get("fromTransformResult",!0)?r2(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},r0).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return uM(n)?(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}();function uM(t){return"series"===t.mainType}function uD(t){throw Error(t)}function uI(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+ew(e+"")+"px"}function uA(t,e){var i=t.color||hn.color.tertiary,n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||hn.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ew(n+"")+"px;color:"+ew(i)+";font-weight:"+ew(r+""),valueStyle:"font-size:"+ew(a+"")+"px;color:"+ew(o)+";font-weight:"+ew(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var uE=[0,10,20,30],uO=["","\n","\n\n","\n\n\n"];function uP(t,e){return e.type=t,e}function uL(t){return"section"===t.type}function uR(t,e,i,n){var r,o=e.noHeader,a={html:uE[r=function t(e){if(uL(e)){var i=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return tI(e.blocks,function(e){var n=t(e);n>=i&&(i=n+ +(r&&(!n||uL(e)&&!e.noHeader)))}),i}return 0}(e)],richText:uO[r]},s=[],l=e.blocks||[];tK(!l||tN(l)),l=l||[];var h=t.orderMode;if(e.sortBlocks&&h){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(t6(u,h)){var d=new uu(u[h],null);l.sort(function(t,e){return d.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===h&&l.reverse()}tI(l,function(i,r){var o=e.valueFormatter,l=(uL(i)?uR:uN)(o?tk(tk({},t),{valueFormatter:o}):t,i,r>0?a.html:0,n);null!=l&&s.push(l)});var c="richText"===t.renderMode?s.join(a.richText):uB(n,s.join(""),o?i:a.html);if(o)return c;var p=lW(e.header,"ordinal",t.useUTC),f=uA(n,t.renderMode).nameStyle,g=uI(n);return"richText"===t.renderMode?uV(t,p,f)+a.richText+c:uB(n,'<div style="'+f+";"+g+';">'+ew(p)+"</div>"+c,i)}function uN(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,h=t.useUTC,u=e.valueFormatter||t.valueFormatter||function(t){return tA(t=tN(t)?t:[t],function(t,e){return lW(t,tN(x)?x[e]:x,h)})};if(!o||!a){var d,c,p,f,g,m,_,v,y=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||hn.color.secondary,r),b=o?"":lW(l,"ordinal",h),x=e.valueType,w=a?[]:u(e.value,e.rawDataIndex),S=!s||!o,k=!s&&o,C=uA(n,r),T=C.nameStyle,M=C.valueStyle;return"richText"===r?(s?"":y)+(o?"":uV(t,b,T))+(a?"":(d=t,c=w,p=S,f=k,g=[M],p&&g.push({padding:[0,0,0,f?10:20],align:"right"}),d.markupStyleCreator.wrapRichTextStyle(tN(c)?c.join(" "):c,g))):uB(n,(s?"":y)+(o?"":'<span style="'+T+";"+(s?"":"margin-left:2px")+'">'+ew(b)+"</span>")+(a?"":(m=w,_=S,v=k,'<span style="'+(_?"float:right;margin-left:"+(v?"10px":"20px"):"")+";"+M+'">'+tA(m=tN(m)?m:[m],function(t){return ew(t)}).join("&nbsp;&nbsp;")+"</span>")),i)}}function uz(t,e,i,n,r,o){if(t)return(uL(t)?uR:uN)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function uB(t,e,i){return'<div style="margin: '+i+"px 0 0;"+uI(t)+';">'+e+'<div style="clear:both"></div></div>'}function uV(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function uF(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var uH=function(){function t(){this.richTextStyles={},this._nextStyleNameId=rN()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n,r,o,a,s,l,h="richText"===i?this._generateStyleName():null,u=(a=(o=tB(n={color:e,type:t,renderMode:i,markerId:h})?{color:n,extraCssText:r}:n||{}).color,s=o.type,r=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ew(a)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ew(a)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return tB(u)?u:(this.richTextStyles[h]=u.style,u.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};tN(e)?tI(e,function(t){return tk(i,t)}):tk(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),uY=rX();function u$(t,e){return t.getName(e)||t.getId(e)}var uU="__universalTransitionEnabled",uW=function(t){var e;function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return ti(i,t),i.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=uo({count:uG,reset:uZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(uY(this).sourceManager=new uT(this)).prepareSource();var n=this.getInitialData(t,i);uX(n,this),this.dataTask.context.data=n,uY(this).dataBeforeProcessed=n,uj(this),this._initSelectedMapFromData(n)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=l6(this),n=i?l8(t):{},r=this.subType;ht.hasClass(r)&&(r+="Series"),tS(t,e.getTheme().get(this.subType)),tS(t,this.getDefaultOption()),rH(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&l7(t,n,i)},i.prototype.mergeOption=function(t,e){t=tS(this.option,t,!0),this.fillDataTextStyle(t.data);var i=l6(this);i&&l7(this.option,t,i);var n=uY(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);uX(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,uY(this).dataBeforeProcessed=r,uj(this),this._initSelectedMapFromData(r)},i.prototype.fillDataTextStyle=function(t){if(t&&!t$(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&rH(t[i],"label",e)},i.prototype.getInitialData=function(t,e){},i.prototype.appendData=function(t){this.getRawData().appendData(t.data)},i.prototype.getData=function(t){var e=uQ(this);if(!e)return uY(this).data;var i=e.context.data;return null!=t&&i.getLinkedData?i.getLinkedData(t):i},i.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},i.prototype.setData=function(t){var e=uQ(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}uY(this).data=t},i.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return t5(t)},i.prototype.getSourceManager=function(){return uY(this).sourceManager},i.prototype.getSource=function(){return this.getSourceManager().getSource()},i.prototype.getRawData=function(){return uY(this).dataBeforeProcessed},i.prototype.getColorBy=function(){return this.get("colorBy")||"series"},i.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},i.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},i.prototype.indicesOfNearest=function(t,e,i,n){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(i);null==n&&(n=1/0);for(var l=[],h=1/0,u=-1,d=0,c=r.getDimensionIndex(e),p=r.getStore(),f=0,g=p.count();f<g;f++){var m=p.get(c,f),_=s-a.dataToCoord(m),v=Math.abs(_);v<=n&&((v<h||v===h&&_>=0&&u<0)&&(h=v,u=_,d=0),_===u&&(l[d++]=f))}return l.length=d,l},i.prototype.formatTooltip=function(t,e,i){return function(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),h=l.mapDimensionsAll("defaultedTooltip"),u=h.length,d=o.getRawValue(a),c=tN(d),p=lq(o.getData().getItemVisual(a,"style")[o.visualDrawType]);if(u>1||c&&!u){var f=function(t,e,i,n,r){var o=e.getData(),a=tE(t,function(t,e,i){var n=o.getDimensionInfo(i);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),s=[],l=[],h=[];function u(t,e){var i=o.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(a?h.push(uP("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(s.push(t),l.push(i.type)))}return n.length?tI(n,function(t){u(ue(o,i,t),t)}):tI(t,u),{inlineValues:s,inlineValueTypes:l,blocks:h}}(d,o,a,h,p);e=f.inlineValues,i=f.inlineValueTypes,n=f.blocks,r=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(h[0]);r=e=ue(l,a,h[0]),i=g.type}else r=e=c?d[0]:d;var m=rG(o),_=m&&o.name||"",v=l.getName(a),y=s?_:v;return uP("section",{header:_,noHeader:s||!m,sortParam:r,blocks:[uP("nameValue",{markerType:"item",markerColor:p,name:y,noName:!tQ(y),value:e,valueType:i,rawDataIndex:l.getRawIndex(a)})].concat(n||[])})}({series:this,dataIndex:t,multipleSeries:e})},i.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(tr.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=hv.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},i.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},i.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=u$(r,t[o]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},i.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},i.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=tP(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},i.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[u$(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},i.prototype.isUniversalTransitionEnabled=function(){if(this[uU])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},i.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){tH(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var h=e[l],u=u$(t,h);s[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(h)}}else if("single"===o||!0===o){var d=e[a-1],u=u$(t,d);(i={})[u]=!0,r.selectedMap=i,this._selectedDataIndicesMap=((n={})[u]=t.getRawIndex(d),n)}}},i.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),e.length>0&&this._innerSelect(t,e)}},i.registerClass=function(t){return ht.registerClass(t)},i.protoInitialize=void((e=i.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),i}(ht);function uj(t){var e,i,n,r=t.name;rG(t)||(t.name=(i=(e=t.getRawData()).mapDimensionsAll("seriesName"),n=[],tI(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")||r))}function uG(t){return t.model.getRawData().count()}function uZ(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),uq}function uq(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function uX(t,e){tI(function(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,tR(uK,e))})}function uK(t,e){var i=uQ(t);return i&&i.setOutputEnd((e||this).count()),e}function uQ(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}tM(uW,un),tM(uW,hv),oc(uW,ht);var uJ=function(){function t(){this.group=new rn,this.uid=lh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){},t.prototype.updateLayout=function(t,e,i,n){},t.prototype.updateVisual=function(t,e,i,n){},t.prototype.toggleBlurSeries=function(t,e,i){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function u0(){var t=rX();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!!(n&&n.large),s=i.progressiveRender=!!(n&&n.progressiveRender);return(r!==a||o!==s)&&"reset"}}od(uJ),om(uJ);var u1=ac.CMD,u2=[[],[],[]],u5=Math.sqrt,u3=Math.atan2;function u4(t,e){if(e){var i,n,r,o,a,s,l=t.data,h=t.len(),u=u1.M,d=u1.C,c=u1.L,p=u1.R,f=u1.A,g=u1.Q;for(r=0,o=0;r<h;){switch(i=l[r++],o=r,n=0,i){case u:case c:n=1;break;case d:n=3;break;case g:n=2;break;case f:var m=e[4],_=e[5],v=u5(e[0]*e[0]+e[1]*e[1]),y=u5(e[2]*e[2]+e[3]*e[3]),b=u3(-e[1]/y,e[0]/v);l[r]*=v,l[r++]+=m,l[r]*=y,l[r++]+=_,l[r++]*=v,l[r++]*=y,l[r++]+=b,l[r++]+=b,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],es(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],es(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<n;a++){var x=u2[a];x[0]=l[r++],x[1]=l[r++],es(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var u6=Math.sqrt,u7=Math.sin,u8=Math.cos,u9=Math.PI;function dt(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function de(t,e){return(t[0]*e[0]+t[1]*e[1])/(dt(t)*dt(e))}function di(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(de(t,e))}function dn(t,e,i,n,r,o,a,s,l,h,u){var d=u9/180*l,c=u8(d)*(t-i)/2+u7(d)*(e-n)/2,p=-1*u7(d)*(t-i)/2+u8(d)*(e-n)/2,f=c*c/(a*a)+p*p/(s*s);f>1&&(a*=u6(f),s*=u6(f));var g=(r===o?-1:1)*u6((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0,m=g*a*p/s,_=-(g*s)*c/a,v=(t+i)/2+u8(d)*m-u7(d)*_,y=(e+n)/2+u7(d)*m+u8(d)*_,b=di([1,0],[(c-m)/a,(p-_)/s]),x=[(c-m)/a,(p-_)/s],w=[(-1*c-m)/a,(-1*p-_)/s],S=di(x,w);if(-1>=de(x,w)&&(S=u9),de(x,w)>=1&&(S=0),S<0){var k=Math.round(S/u9*1e6)/1e6;S=2*u9+k%2*u9}u.addData(h,v,y,a,s,b,S,d,o)}var dr=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,da=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.applyTransform=function(t){},e}(aT);function dl(t){return null!=t.setData}function dh(t,e){var i=function(t){var e,i=new ac;if(!t)return i;var n=0,r=0,o=0,a=0,s=ac.CMD,l=t.match(dr);if(!l)return i;for(var h=0;h<l.length;h++){for(var u=l[h],d=u.charAt(0),c=void 0,p=u.match(da)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var m=0;m<f;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0,k=n,C=r,T=void 0,M=void 0;switch(d){case"l":n+=p[m++],r+=p[m++],c=s.L,i.addData(c,n,r);break;case"L":n=p[m++],r=p[m++],c=s.L,i.addData(c,n,r);break;case"m":n+=p[m++],r+=p[m++],c=s.M,i.addData(c,n,r),o=n,a=r,d="l";break;case"M":n=p[m++],r=p[m++],c=s.M,i.addData(c,n,r),o=n,a=r,d="L";break;case"h":n+=p[m++],c=s.L,i.addData(c,n,r);break;case"H":n=p[m++],c=s.L,i.addData(c,n,r);break;case"v":r+=p[m++],c=s.L,i.addData(c,n,r);break;case"V":r=p[m++],c=s.L,i.addData(c,n,r);break;case"C":c=s.C,i.addData(c,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),n=p[m-2],r=p[m-1];break;case"c":c=s.C,i.addData(c,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r),n+=p[m-2],r+=p[m-1];break;case"S":_=n,v=r,T=i.len(),M=i.data,e===s.C&&(_+=n-M[T-4],v+=r-M[T-3]),c=s.C,k=p[m++],C=p[m++],n=p[m++],r=p[m++],i.addData(c,_,v,k,C,n,r);break;case"s":_=n,v=r,T=i.len(),M=i.data,e===s.C&&(_+=n-M[T-4],v+=r-M[T-3]),c=s.C,k=n+p[m++],C=r+p[m++],n+=p[m++],r+=p[m++],i.addData(c,_,v,k,C,n,r);break;case"Q":k=p[m++],C=p[m++],n=p[m++],r=p[m++],c=s.Q,i.addData(c,k,C,n,r);break;case"q":k=p[m++]+n,C=p[m++]+r,n+=p[m++],r+=p[m++],c=s.Q,i.addData(c,k,C,n,r);break;case"T":_=n,v=r,T=i.len(),M=i.data,e===s.Q&&(_+=n-M[T-4],v+=r-M[T-3]),n=p[m++],r=p[m++],c=s.Q,i.addData(c,_,v,n,r);break;case"t":_=n,v=r,T=i.len(),M=i.data,e===s.Q&&(_+=n-M[T-4],v+=r-M[T-3]),n+=p[m++],r+=p[m++],c=s.Q,i.addData(c,_,v,n,r);break;case"A":y=p[m++],b=p[m++],x=p[m++],w=p[m++],S=p[m++],k=n,C=r,n=p[m++],dn(k,C,n,r=p[m++],w,S,y,b,x,c=s.A,i);break;case"a":y=p[m++],b=p[m++],x=p[m++],w=p[m++],S=p[m++],k=n,C=r,n+=p[m++],dn(k,C,n,r+=p[m++],w,S,y,b,x,c=s.A,i)}}("z"===d||"Z"===d)&&(c=s.Z,i.addData(c),n=o,r=a),e=c}return i.toStatic(),i}(t),n=tk({},e);return n.buildPath=function(t){var e=dl(t);if(e&&t.canSave()){t.appendPath(i);var n=t.getContext();n&&t.rebuildPath(n,1)}else{var n=e?t.getContext():t;n&&i.rebuildPath(n,1)}},n.applyTransform=function(t){u4(i,t),this.dirtyShape()},n}function du(t,e){e=e||{};var i=new aT;return t.shape&&i.setShape(t.shape),i.setStyle(t.style),e.bakeTransform?u4(i.path,t.getComputedTransform()):e.toLocal?i.setLocalTransform(t.getComputedTransform()):i.copyTransform(t),i.buildPath=t.buildPath,i.applyTransform=i.applyTransform,i.z=t.z,i.z2=t.z2,i.zlevel=t.zlevel,i}var dd=function(){this.cx=0,this.cy=0,this.r=0},dc=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dd},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}(aT);dc.prototype.type="circle";let dp=dc;var df=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},dg=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new df},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=e.rx,o=e.ry,a=.5522848*r,s=.5522848*o;t.moveTo(i-r,n),t.bezierCurveTo(i-r,n-s,i-a,n-o,i,n-o),t.bezierCurveTo(i+a,n-o,i+r,n-s,i+r,n),t.bezierCurveTo(i+r,n+s,i+a,n+o,i,n+o),t.bezierCurveTo(i-a,n+o,i-r,n+s,i-r,n),t.closePath()},e}(aT);dg.prototype.type="ellipse";let dm=dg;var d_=Math.PI,dv=2*d_,dy=Math.sin,db=Math.cos,dx=Math.acos,dw=Math.atan2,dS=Math.abs,dk=Math.sqrt,dC=Math.max,dT=Math.min;function dM(t,e,i,n,r,o,a){var s=t-i,l=e-n,h=(a?o:-o)/dk(s*s+l*l),u=h*l,d=-h*s,c=t+u,p=e+d,f=i+u,g=n+d,m=(c+f)/2,_=(p+g)/2,v=f-c,y=g-p,b=v*v+y*y,x=r-o,w=c*g-f*p,S=(y<0?-1:1)*dk(dC(0,x*x*b-w*w)),k=(w*y-v*S)/b,C=(-w*v-y*S)/b,T=(w*y+v*S)/b,M=(-w*v+y*S)/b,D=k-m,I=C-_,A=T-m,E=M-_;return D*D+I*I>A*A+E*E&&(k=T,C=M),{cx:k,cy:C,x0:-u,y0:-d,x1:k*(r/x-1),y1:C*(r/x-1)}}var dD=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},dI=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dD},e.prototype.buildPath=function(t,e){!function(t,e){var i,n=dC(e.r,0),r=dC(e.r0||0,0),o=n>0,a=r>0;if(o||a){if(o||(n=r,r=0),r>n){var s=n;n=r,r=s}var l=e.startAngle,h=e.endAngle;if(!(isNaN(l)||isNaN(h))){var u=e.cx,d=e.cy,c=!!e.clockwise,p=dS(h-l),f=p>dv&&p%dv;if(f>1e-4&&(p=f),n>1e-4)if(p>dv-1e-4)t.moveTo(u+n*db(l),d+n*dy(l)),t.arc(u,d,n,l,h,!c),r>1e-4&&(t.moveTo(u+r*db(h),d+r*dy(h)),t.arc(u,d,r,h,l,c));else{var g=void 0,m=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0,k=void 0,C=void 0,T=void 0,M=void 0,D=void 0,I=void 0,A=void 0,E=n*db(l),O=n*dy(l),P=r*db(h),L=r*dy(h),R=p>1e-4;if(R){var N=e.cornerRadius;N&&(g=(i=function(t){var e;if(tN(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],m=i[1],_=i[2],v=i[3]);var z=dS(n-r)/2;if(y=dT(z,_),b=dT(z,v),x=dT(z,g),w=dT(z,m),C=S=dC(y,b),T=k=dC(x,w),(S>1e-4||k>1e-4)&&(M=n*db(h),D=n*dy(h),I=r*db(l),A=r*dy(l),p<d_)){var B=function(t,e,i,n,r,o,a,s){var l=i-t,h=n-e,u=a-r,d=s-o,c=d*l-u*h;if(!(c*c<1e-4))return c=(u*(e-o)-d*(t-r))/c,[t+c*l,e+c*h]}(E,O,I,A,M,D,P,L);if(B){var V=E-B[0],F=O-B[1],H=M-B[0],Y=D-B[1],$=1/dy(dx((V*H+F*Y)/(dk(V*V+F*F)*dk(H*H+Y*Y)))/2),U=dk(B[0]*B[0]+B[1]*B[1]);C=dT(S,(n-U)/($+1)),T=dT(k,(r-U)/($-1))}}}if(R)if(C>1e-4){var W=dT(_,C),j=dT(v,C),G=dM(I,A,E,O,n,W,c),Z=dM(M,D,P,L,n,j,c);t.moveTo(u+G.cx+G.x0,d+G.cy+G.y0),C<S&&W===j?t.arc(u+G.cx,d+G.cy,C,dw(G.y0,G.x0),dw(Z.y0,Z.x0),!c):(W>0&&t.arc(u+G.cx,d+G.cy,W,dw(G.y0,G.x0),dw(G.y1,G.x1),!c),t.arc(u,d,n,dw(G.cy+G.y1,G.cx+G.x1),dw(Z.cy+Z.y1,Z.cx+Z.x1),!c),j>0&&t.arc(u+Z.cx,d+Z.cy,j,dw(Z.y1,Z.x1),dw(Z.y0,Z.x0),!c))}else t.moveTo(u+E,d+O),t.arc(u,d,n,l,h,!c);else t.moveTo(u+E,d+O);if(r>1e-4&&R)if(T>1e-4){var W=dT(g,T),j=dT(m,T),G=dM(P,L,M,D,r,-j,c),Z=dM(E,O,I,A,r,-W,c);t.lineTo(u+G.cx+G.x0,d+G.cy+G.y0),T<k&&W===j?t.arc(u+G.cx,d+G.cy,T,dw(G.y0,G.x0),dw(Z.y0,Z.x0),!c):(j>0&&t.arc(u+G.cx,d+G.cy,j,dw(G.y0,G.x0),dw(G.y1,G.x1),!c),t.arc(u,d,r,dw(G.cy+G.y1,G.cx+G.x1),dw(Z.cy+Z.y1,Z.cx+Z.x1),c),W>0&&t.arc(u+Z.cx,d+Z.cy,W,dw(Z.y1,Z.x1),dw(Z.y0,Z.x0),!c))}else t.lineTo(u+P,d+L),t.arc(u,d,r,h,l,c);else t.lineTo(u+P,d+L)}else t.moveTo(u,d);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(aT);dI.prototype.type="sector";let dA=dI;var dE=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dO=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dE},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},e}(aT);dO.prototype.type="ring";let dP=dO;function dL(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n){var o=function(t,e,i,n){var r,o,a,s,l=[],h=[],u=[],d=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var c=0,p=t.length;c<p;c++)el(a,a,t[c]),eh(s,s,t[c]);el(a,a,n[0]),eh(s,s,n[1])}for(var c=0,p=t.length;c<p;c++){var f,g,m,_=t[c];if(i)r=t[c?c-1:p-1],o=t[(c+1)%p];else if(0===c||c===p-1){l.push([(f=t[c])[0],f[1]]);continue}else r=t[c-1],o=t[c+1];g=o,m=r,h[0]=g[0]-m[0],h[1]=g[1]-m[1],er(h,h,e);var v=eo(_,r),y=eo(_,o),b=v+y;0!==b&&(v/=b,y/=b),er(u,h,-v),er(d,h,y);var x=en([],_,u),w=en([],_,d);n&&(eh(x,x,a),el(x,x,s),eh(w,w,a),el(w,w,s)),l.push(x),l.push(w)}return i&&l.push(l.shift()),l}(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(i?a:a-1);s++){var l=o[2*s],h=o[2*s+1],u=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,d=r.length;s<d;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}var dR=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},dN=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dR},e.prototype.buildPath=function(t,e){dL(t,e,!0)},e}(aT);dN.prototype.type="polygon";let dz=dN;var dB=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},dV=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dB},e.prototype.buildPath=function(t,e){dL(t,e,!1)},e}(aT);dV.prototype.type="polyline";let dF=dV;var dH={},dY=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},d$=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dY},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var i,n,r,o,a=aL(dH,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),s<1&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},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}(aT);d$.prototype.type="line";let dU=d$;var dW=[],dj=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function dG(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(i?iP:iO)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?iP:iO)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?iB:iz)(t.x1,t.cpx1,t.x2,e),(i?iB:iz)(t.y1,t.cpy1,t.y2,e)]}var dZ=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dj},e.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,u=e.percent;0!==u&&(t.moveTo(i,n),null==l||null==h?(u<1&&(iF(i,a,r,u,dW),a=dW[1],r=dW[2],iF(n,s,o,u,dW),s=dW[1],o=dW[2]),t.quadraticCurveTo(a,s,r,o)):(u<1&&(iN(i,a,l,r,u,dW),a=dW[1],l=dW[2],r=dW[3],iN(n,s,h,o,u,dW),s=dW[1],h=dW[2],o=dW[3]),t.bezierCurveTo(a,s,l,h,r,o)))},e.prototype.pointAt=function(t){return dG(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e,i=dG(this.shape,t,!0),n=Math.sqrt((e=i)[0]*e[0]+e[1]*e[1]);return 0===n?(i[0]=0,i[1]=0):(i[0]=i[0]/n,i[1]=i[1]/n),i},e}(aT);dZ.prototype.type="bezier-curve";let dq=dZ;var dX=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},dK=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dX},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),h=Math.sin(o);t.moveTo(l*r+i,h*r+n),t.arc(i,n,r,o,a,!s)},e}(aT);dK.prototype.type="arc";let dQ=dK,dJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return et(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),aT.prototype.getBoundingRect.call(this)},e}(aT);var d0=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();let d1=function(t){function e(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return et(e,t),e}(d0),d2=function(t){function e(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return et(e,t),e}(d0);var d5=Math.min,d3=Math.max,d4=Math.abs,d6=[0,0],d7=[0,0],d8=it(),d9=d8.minTv,ct=d8.maxTv;let ce=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new eY;for(var i=0;i<2;i++)this._axes[i]=new eY;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;l<4;l++)i[l].transform(e);eY.sub(n[0],i[1],i[0]),eY.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e,i){var n=!0,r=!e;return(e&&eY.set(e,0,0),d8.reset(i,!r),!this._intersectCheckOneSide(this,t,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(n=!1,r))?n:(r||d8.negativeSize||eY.copy(e,n?d8.useDir?d8.dirMinTv:d9:ct),n)},t.prototype._intersectCheckOneSide=function(t,e,i,n){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,d6),t._getProjMinMaxOnAxis(o,e._corners,d7),d8.negativeSize||d6[1]<d7[0]||d6[0]>d7[1]){if(r=!1,d8.negativeSize||i)return r;var s=d4(d7[0]-d6[1]),l=d4(d6[0]-d7[1]);d5(s,l)>ct.len()&&(s<l?eY.scale(ct,a,-s*n):eY.scale(ct,a,l*n))}else if(!i){var s=d4(d7[0]-d6[1]),l=d4(d6[0]-d7[1]);(d8.useDir||d5(s,l)<d9.len())&&((s<l||!d8.bidirectional)&&(eY.scale(d9,a,s*n),d8.useDir&&d8.calcDirMTV()),(s>=l||!d8.bidirectional)&&(eY.scale(d9,a,-l*n),d8.useDir&&d8.calcDirMTV()))}}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var h=e[l].dot(n)+r[t];a=d5(h,a),s=d3(h,s)}i[0]=a+d8.touchThreshold,i[1]=s-d8.touchThreshold,d8.negativeSize=i[1]<i[0]},t}();var ci=[];let cn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return et(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},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 i=0;i<t.length;i++)this.addDisplayable(t[i],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ie(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(ci)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1])){for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0}return!1},e}(oU);var cr=rX();function co(t,e,i,n,r){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var h=void 0,u=void 0,d=void 0;return n?(h=tG(n.duration,200),u=tG(n.easing,"cubicOut"),d=0):(h=e.getShallow(l?"animationDurationUpdate":"animationDuration"),u=e.getShallow(l?"animationEasingUpdate":"animationEasing"),d=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(h=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(d=o.delay)),tz(d)&&(d=d(i,r)),tz(h)&&(h=h(i)),{duration:h||0,delay:d,easing:u}}function ca(t,e,i,n,r,o,a){var s,l=!1;tz(r)?(a=o,o=r,r=null):tH(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var u=co(t,n,r,h?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(u&&u.duration>0){var d={duration:u.duration,delay:u.delay||0,easing:u.easing,done:o,force:!!o||!!a,setToFinal:!h,scope:t,during:a};l?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),l||e.attr(i),a&&a(1),o&&o()}function cs(t,e,i,n,r,o){ca("update",t,e,i,n,r,o)}function cl(t,e,i,n,r,o){ca("enter",t,e,i,n,r,o)}function ch(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function cu(t,e,i,n,r,o){ch(t)||ca("leave",t,e,i,n,r,o)}function cd(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),cu(t,{style:{opacity:0}},e,i,n)}function cc(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||cd(t,e,i,n)}):cd(t,e,i,n)}var cp={},cf=["x","y"],cg=["width","height"],cm=0,c_=1,cv=2;function cy(t){return aT.extend(t)}var cb=function(t,e){var i=dh(t,e),n=ds;function r(t){var e=n.call(this,t)||this;return e.applyTransform=i.applyTransform,e.buildPath=i.buildPath,e}return et(r,n),r};function cx(t,e){return cb(t,e)}function cw(t,e){cp[t]=e}function cS(t){if(cp.hasOwnProperty(t))return cp[t]}function ck(t,e,i,n){var r=new ds(dh(t,e));return i&&("center"===n&&(i=cT(i,r.getBoundingRect())),cD(r,i)),r}function cC(t,e,i){var n=new aO({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(cT(e,r))}}});return n}function cT(t,e){var i,n=e.width/e.height,r=t.height*n;return i=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}var cM=function(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new aT(e);return a.createPathProxy(),a.buildPath=function(t){if(dl(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function cD(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}function cI(t,e){return aL(t,t,{lineWidth:e}),t}function cA(t,e){return aR(t,t,e),t}var cE=aN;function cO(t,e){for(var i=eN([]);t&&t!==e;)eB(i,t.getLocalTransform(),i),t=t.parent;return i}function cP(t,e,i){return e&&!tD(e)&&(e=nV.getLocalTransform(e)),i&&(e=eH([],e)),es([],t,e)}function cL(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:ru(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:ru(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return ru((o=cP(o,e,i))[0])>ru(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function cR(t,e,i){if(t&&e){var n,r=(n={},t.traverse(function(t){!t.isGroup&&t.anid&&(n[t.anid]=t)}),n);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),cs(t,n,i,a2(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=tw(t.shape)),e}}function cN(t,e){return tA(t,function(t){var i=t[0];i=rl(i=rh(i,e.x),e.x+e.width);var n=t[1];return[i,n=rl(n=rh(n,e.y),e.y+e.height)]})}function cz(t,e){var i=rh(t.x,e.x),n=rl(t.x+t.width,e.x+e.width),r=rh(t.y,e.y),o=rl(t.y+t.height,e.y+e.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}}function cB(t,e,i){var n=tk({rectHover:!0},e),r=n.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),tC(r,i),new aO(n)):ck(t.replace("path://",""),n,i,"center")}function cV(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(cF(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function cF(t,e,i,n,r,o,a,s){var l,h=i-t,u=n-e,d=a-r,c=s-o,p=d*u-h*c;if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,m=(f*u-h*g)/p;if(m<0||m>1)return!1;var _=(f*c-d*g)/p;return!(_<0)&&!(_>1)}function cH(t,e,i,n,r){return null==e||(tF(e)?cY[0]=cY[1]=cY[2]=cY[3]=e:(cY[0]=e[0],cY[1]=e[1],cY[2]=e[2],cY[3]=e[3]),n&&(cY[0]=rh(0,cY[0]),cY[1]=rh(0,cY[1]),cY[2]=rh(0,cY[2]),cY[3]=rh(0,cY[3])),i&&(cY[0]=-cY[0],cY[1]=-cY[1],cY[2]=-cY[2],cY[3]=-cY[3]),c$(t,cY,"x","width",3,1,r&&r[0]||0),c$(t,cY,"y","height",0,2,r&&r[1]||0)),t}var cY=[0,0,0,0];function c$(t,e,i,n,r,o,a){var s=e[o]+e[r],l=t[n];t[n]+=s,a=rh(0,rl(a,l)),t[n]<a?(t[n]=a,t[i]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:ru(s)>1e-8?(l-a)*e[r]/s:0):t[i]-=e[r]}function cU(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=tB(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tI(tP(l),function(t){t6(s,t)||(s[t]=l[t],s.$vars.push(t))});var h=a2(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:n,option:tC({content:n,encodeHTMLContent:!0,formatterParams:s},r)}}function cW(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function cj(t,e){if(t)if(tN(t))for(var i=0;i<t.length;i++)cW(t[i],e);else cW(t,e)}function cG(t){return!t||ru(t[1])<cZ&&ru(t[2])<cZ||ru(t[0])<cZ&&ru(t[3])<cZ}var cZ=1e-5;function cq(t,e){return t?ie.copy(t,e):e.clone()}function cX(t,e){return e?ez(t||eR(),e):void 0}function cK(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function cQ(t){var e=-1/0,i=1/0;function n(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var i=0;i<e.length;i++)r(t.states[e[i]]);r(t)}}function r(t){if(t){var n=t.z2;n>e&&(e=n),n<i&&(i=n)}}return cW(t,function(t){n(t),n(t.getTextContent()),n(t.getTextGuideLine())}),i>e&&(i=e=0),{min:i,max:e}}function cJ(t,e,i){!function t(e,i,n,r){if(e.ignoreModelZ)return r;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=rh(t(s[l],i,n,r),r);else e.z=i,e.zlevel=n,r=rh(e.z2||0,r);if(o&&(o.z=i,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var h=e.textGuideLineConfig;a.z=i,a.zlevel=n,isFinite(r)&&(a.z2=r+(h&&h.showAbove?1:-1))}return r}(t,e,i,-1/0)}function c0(t){return t.animation={duration:0},t}function c1(t,e){return e?ez(c2.transform,e):eN(c2.transform),c2.decomposeTransform(),nY(t,c2),t}var c2=new nV;function c5(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}c2.transform=eR(),cp.circle=dp,cp.ellipse=dm,cp.sector=dA,cp.ring=dP,cp.polygon=dz,cp.polyline=dF,cp.rect=aF,cp.line=dU,cp.bezierCurve=dq,cp.arc=dQ;var c3=rX(),c4=u0(),c6=function(){function t(){this.group=new rn,this.uid=lh("viewChart"),this.renderTask=uo({plan:c9,reset:pt}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.highlight=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&c8(r,n,"emphasis")},t.prototype.downplay=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&c8(r,n,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.eachRendered=function(t){cj(this.group,t)},t.markUpdateMethod=function(t,e){c3(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function c7(t,e,i){t&&sj(t)&&("emphasis"===e?sO:sP)(t,i)}function c8(t,e,i){var n,r,o=rq(t,e),a=e&&null!=e.highlightKey?(null==(r=ss[n=e.highlightKey])&&sa<=32&&(r=ss[n]=sa++),r):null;null!=o?tI(rF(o),function(e){c7(t.getItemGraphicEl(e),i,a)}):t.eachItemGraphicEl(function(t){c7(t,i,a)})}function c9(t){return c4(t.model)}function pt(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&c3(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),pe[l]}od(c6,["dispose"]),om(c6);var pe={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pi="\0__throttleOriginMethod",pn="\0__throttleRate",pr="\0__throttleType";function po(t,e,i){var n,r,o,a,s,l=0,h=0,u=null;function d(){h=new Date().getTime(),u=null,t.apply(o,a||[])}e=e||0;var c=function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];n=new Date().getTime(),o=this,a=t;var p=s||e,f=s||i;s=null,r=n-(f?l:h)-p,clearTimeout(u),f?u=setTimeout(d,p):r>=0?d():u=setTimeout(d,-r),l=n};return c.clear=function(){u&&(clearTimeout(u),u=null)},c.debounceNextCall=function(t){s=t},c}function pa(t,e,i,n){var r=t[e];if(r){var o=r[pi]||r,a=r[pr];if(r[pn]!==i||a!==n){if(null==i||!n)return t[e]=o;(r=t[e]=po(o,i,"debounce"===n))[pi]=o,r[pr]=n,r[pn]=i}return r}}function ps(t,e){var i=t[e];i&&i[pi]&&(i.clear&&i.clear(),t[e]=i[pi])}var pl=rX(),ph={itemStyle:o_(lr,!0),lineStyle:o_(le,!0)},pu={lineStyle:"stroke",itemStyle:"fill"};function pd(t,e){var i=t.visualStyleMapper||ph[e];return i||(console.warn("Unknown style type '"+e+"'."),ph.itemStyle)}function pc(t,e){var i=t.visualDrawType||pu[e];return i||(console.warn("Unknown style type '"+e+"'."),"fill")}var pp=new ls,pf=Math.PI,pg=function(){function t(t,e,i,n){this._stageTaskMap=t5(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}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 i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,o=n&&n.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i,n=this._pipelineMap.get(t.uid),r=t.__preparePipelineContext?t.__preparePipelineContext(e,n):(i=t.getData().count(),{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null});t.pipelineContext=n.context=r},t.prototype.restorePipelines=function(t,e){var i=this,n=i._pipelineMap=t5();e.eachSeries(function(e){var r="canvas"===t.painter.type&&e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),i._pipe(e,e.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;tI(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{});tK(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){n=n||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tI(t,function(t,s){if(!n.visualType||n.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),h=l.seriesTaskMap,u=l.overallTask;if(u){var d,c=u.agentStubMap;c.each(function(t){a(n,t)&&(t.dirty(),d=!0)}),d&&u.dirty(),o.updatePayload(u,i);var p=o.getPerformArgs(u,n.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(r=!0)}else h&&h.each(function(s,l){a(n,s)&&s.dirty();var h=o.getPerformArgs(s,n.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,i),s.perform(h)&&(r=!0)})}}),this.unfinished=r||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,i,n){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=t5(),s=t.seriesType,l=t.getTargetSeries;function h(e){var s=e.uid,l=a.set(s,o&&o.get(s)||uo({plan:pb,reset:px,count:pk}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?i.eachRawSeries(h):s?i.eachRawSeriesByType(s,h):l&&l(i,n).each(h)},t.prototype._createOverallStageTask=function(t,e,i,n){var r=this,o=e.overallTask=e.overallTask||uo({reset:pm});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=t5(),l=t.seriesType,h=t.getTargetSeries,u=t.dirtyOnOverallProgress,d=!1;function c(t){var e=t.uid,i=s.set(e,a&&a.get(e)||(d=!0,uo({reset:p_,onDirty:py})));i.context={model:t,dirtyOnOverallProgress:u},i.agent=o,i.__block=u,r._pipe(t,i)}tK(!t.createOnAllSeries,""),l?i.eachRawSeriesByType(l,c):h?h(i,n).each(c):tI(i.getSeries(),c),d&&o.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);n.head||(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return tz(t)&&(t={overallReset:t,seriesType:function(t){C=null;try{t(pC,pT)}catch(t){}return C}(t)}),t.uid=lh("stageHandler"),e&&(t.visualType=e),t},t}();function pm(t){t.overallReset(t.ecModel,t.api,t.payload)}function p_(t){return t.dirtyOnOverallProgress&&pv}function pv(){this.agent.dirty(),this.getDownstream().dirty()}function py(){this.agent&&this.agent.dirty()}function pb(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function px(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=rF(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tA(e,function(t,e){return pS(e)}):pw}var pw=pS(0);function pS(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function pk(t){return t.data.count()}var pC={},pT={};function pM(t,e){for(var i in e.prototype)t[i]=t7}pM(pC,hb),pM(pT,so),pC.eachSeriesByType=pC.eachRawSeriesByType=function(t){C=t},pC.eachComponent=function(t){"series"===t.mainType&&t.subType&&(C=t.subType)};var pD=hn.darkColor,pI=pD.background,pA=function(){return{axisLine:{lineStyle:{color:pD.axisLine}},splitLine:{lineStyle:{color:pD.axisSplitLine}},splitArea:{areaStyle:{color:[pD.backgroundTint,pD.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:pD.axisMinorSplitLine}},axisLabel:{color:pD.axisLabel},axisName:{}}},pE={label:{color:pD.secondary},itemStyle:{borderColor:pD.borderTint},dividerLineStyle:{color:pD.border}},pO={darkMode:!0,color:pD.theme,backgroundColor:pI,axisPointer:{lineStyle:{color:pD.border},crossStyle:{color:pD.borderShade},label:{color:pD.tertiary}},legend:{textStyle:{color:pD.secondary},pageTextStyle:{color:pD.tertiary}},textStyle:{color:pD.secondary},title:{textStyle:{color:pD.primary},subtextStyle:{color:pD.quaternary}},toolbox:{iconStyle:{borderColor:pD.accent50},feature:{dataView:{backgroundColor:pI,textColor:pD.primary,textareaColor:pD.background,textareaBorderColor:pD.border,buttonColor:pD.accent50,buttonTextColor:pD.neutral00}}},tooltip:{backgroundColor:pD.neutral20,defaultBorderColor:pD.border,textStyle:{color:pD.tertiary}},dataZoom:{borderColor:pD.accent10,textStyle:{color:pD.tertiary},brushStyle:{color:pD.backgroundTint},handleStyle:{color:pD.neutral00,borderColor:pD.accent20},moveHandleStyle:{color:pD.accent40},emphasis:{handleStyle:{borderColor:pD.accent50}},dataBackground:{lineStyle:{color:pD.accent30},areaStyle:{color:pD.accent20}},selectedDataBackground:{lineStyle:{color:pD.accent50},areaStyle:{color:pD.accent30}}},visualMap:{textStyle:{color:pD.secondary},handleStyle:{borderColor:pD.neutral30}},timeline:{lineStyle:{color:pD.accent10},label:{color:pD.tertiary},controlStyle:{color:pD.accent30,borderColor:pD.accent30}},calendar:{itemStyle:{color:pD.neutral00,borderColor:pD.neutral20},dayLabel:{color:pD.tertiary},monthLabel:{color:pD.secondary},yearLabel:{color:pD.secondary}},matrix:{x:pE,y:pE,backgroundColor:{borderColor:pD.axisLine},body:{itemStyle:{borderColor:pD.borderTint}}},timeAxis:pA(),logAxis:pA(),valueAxis:pA(),categoryAxis:pA(),line:{symbol:"circle"},graph:{color:pD.theme},gauge:{title:{color:pD.secondary},axisLine:{lineStyle:{color:[[1,pD.neutral05]]}},axisLabel:{color:pD.axisLabel},detail:{color:pD.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:pD.background}},radar:((c=pA()).axisName={color:pD.axisLabel},c.axisLine.lineStyle.color=pD.neutral20,c),treemap:{breadcrumb:{itemStyle:{color:pD.neutral20,textStyle:{color:pD.secondary}},emphasis:{itemStyle:{color:pD.neutral30}}}},sunburst:{itemStyle:{borderColor:pD.background}},map:{itemStyle:{borderColor:pD.border,areaColor:pD.neutral10},label:{color:pD.tertiary},emphasis:{label:{color:pD.primary},itemStyle:{areaColor:pD.highlight}},select:{label:{color:pD.primary},itemStyle:{areaColor:pD.highlight}}},geo:{itemStyle:{borderColor:pD.border,areaColor:pD.neutral10},emphasis:{label:{color:pD.primary},itemStyle:{areaColor:pD.highlight}},select:{label:{color:pD.primary},itemStyle:{color:pD.highlight}}}};pO.categoryAxis.splitLine.show=!1;var pP=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(tB(t)){var r=ou(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};tI(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var h=o[l],u=r.lastIndexOf(h);if(u>0&&u===r.length-h.length){var d=r.slice(0,u);"data"!==d&&(e.mainType=d,e[h.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,r=i.packedEvent,o=i.model,a=i.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return h(s,o,"mainType")&&h(s,o,"subType")&&h(s,o,"index","componentIndex")&&h(s,o,"name")&&h(s,o,"id")&&h(l,r,"name")&&h(l,r,"dataIndex")&&h(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,n,r));function h(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),pL=["symbol","symbolSize","symbolRotate","symbolOffset"],pR=pL.concat(["symbolKeepAspect"]);function pN(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,n=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),h=rq(l,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:tN(h)?l.getName(h[0]):l.getName(h),selected:tB(n)?n:tk({},n)})}})}function pz(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}var pB=new ec,pV={},pF=rX();function pH(t){return pF(t).fullUpdate}var pY=Math.round(9*Math.random()),p$="function"==typeof Object.defineProperty,pU=function(){function t(){this._id="__ec_inner_"+pY++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return p$?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),pW=aT.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),pj=aT.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),pG=aT.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,h=Math.asin(s/a),u=Math.cos(h)*a,d=Math.sin(h),c=Math.cos(h),p=.6*a,f=.7*a;t.moveTo(i-u,l+s),t.arc(i,l,a,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(i+u-d*p,l+s+c*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-u+d*p,l+s+c*p,i-u,l+s),t.closePath()}}),pZ=aT.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),pq={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},pX={};tI({line:dU,rect:aF,roundRect:aF,square:aF,circle:dp,diamond:pj,pin:pG,arrow:pZ,triangle:pW},function(t,e){pX[e]=new t});var pK=aT.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=nJ(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=pX[n];r||(r=pX[n="rect"]),pq[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function pQ(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||hn.color.neutral00,i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function pJ(t,e,i,n,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?cC(t.slice(8),new ie(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?ck(t.slice(7),{},new ie(e,i,n,r),a?"center":"cover"):new pK({shape:{symbolType:t,x:e,y:i,width:n,height:r}})).__isEmptyBrush=l,s.setColor=pQ,o&&s.setColor(o),s}function p0(t,e){if(null!=t)return tN(t)||(t=[t,t]),[rb(t[0],e[0])||0,rb(tG(t[1],t[0]),e[1])||0]}function p1(t){return isFinite(t)}function p2(t,e,i){for(var n,r,o,a,s,l,h,u,d,c,p="radial"===e.type?(o=Math.min(n=i.width,r=i.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),a=p1(a)?a:.5,s=p1(s)?s:.5,l=l>=0&&p1(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(h=null==e.x?0:e.x,u=null==e.x2?1:e.x2,d=null==e.y?0:e.y,c=null==e.y2?0:e.y2,e.global||(h=h*i.width+i.x,u=u*i.width+i.x,d=d*i.height+i.y,c=c*i.height+i.y),h=p1(h)?h:0,u=p1(u)?u:1,d=p1(d)?d:0,c=p1(c)?c:0,t.createLinearGradient(h,d,u,c)),f=e.colorStops,g=0;g<f.length;g++)p.addColorStop(f[g].offset,f[g].color);return p}function p5(t){return parseInt(t,10)}function p3(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=document.defaultView.getComputedStyle(t);return(t[r]||p5(s[n])||p5(t.style[n]))-(p5(s[o])||0)-(p5(s[a])||0)||0}function p4(t){var e,i,n=t.style,r=n.lineDash&&n.lineWidth>0&&(e=n.lineDash,i=n.lineWidth,e&&"solid"!==e&&i>0?"dashed"===e?[4*i,2*i]:"dotted"===e?[i]:tF(e)?[e]:tN(e)?e:null:null),o=n.lineDashOffset;if(r){var a=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tA(r,function(t){return t/a}),o/=a)}return[r,o]}var p6=new ac(!0);function p7(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function p8(t){return"string"==typeof t&&"none"!==t}function p9(t){var e=t.fill;return null!=e&&"none"!==e}function ft(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function fe(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function fi(t,e,i){var n=ox(e.image,e.__image,i);if(oS(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*t8),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var fn=["shadowBlur","shadowOffsetX","shadowOffsetY"],fr=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fo(t,e,i,n,r){var o=!1;if(!n&&e===(i=i||{}))return!1;if(n||e.opacity!==i.opacity){fl(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?oF.opacity:a}(n||e.blend!==i.blend)&&(o||(fl(t,r),o=!0),t.globalCompositeOperation=e.blend||oF.blend);for(var s=0;s<fn.length;s++){var l=fn[s];(n||e[l]!==i[l])&&(o||(fl(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(fl(t,r),o=!0),t.shadowColor=e.shadowColor||oF.shadowColor),o}function fa(t,e,i,n,r){var o=e.style,a=n?null:i&&i.style||{};if(o===a)return!1;var s=fo(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(fl(t,r),s=!0),p8(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(fl(t,r),s=!0),p8(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(fl(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(fl(t,r),s=!0),t.lineWidth=l)}for(var h=0;h<fr.length;h++){var u=fr[h],d=u[0];(n||o[d]!==a[d])&&(s||(fl(t,r),s=!0),t[d]=o[d]||u[1])}return s}function fs(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function fl(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function fh(t,e){var i={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};fu(t,e,i),fd(t,i)}function fu(t,e,i){var n,r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var o=e.__clipPaths,a=i.prevElClipPaths,s=e.style,l=!1,h=!1;if((!a||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}(o,a))&&(a&&(fl(t,i),t.restore(),h=l=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length)){fl(t,i),t.save();for(var u=!1,d=0;d<o.length;d++){var c=o[d];u=u||c.isZeroArea(),fs(t,c),t.beginPath(),c.buildPath(t,c.shape),t.clip()}i.allClipped=u,l=!0,i.prevElClipPaths=o}if(i.allClipped){e.__dirty&=-2,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(i.beforeBrushParam),e.innerBeforeBrush();var p=i.prevEl;p||(h=l=!0);var f=e instanceof aT&&e.autoBatch&&(g=p9(s),m=p7(s),!(s.lineDash||!(g^m)||g&&"string"!=typeof s.fill||m&&"string"!=typeof s.stroke||s.strokePercent<1||s.strokeOpacity<1||s.fillOpacity<1));if(!l&&(_=p.transform,r&&_?r[0]===_[0]&&r[1]===_[1]&&r[2]===_[2]&&r[3]===_[3]&&r[4]===_[4]&&r[5]===_[5]:+(!r&&!_))?f||fl(t,i):(fl(t,i),fs(t,e)),e instanceof aT)1!==i.lastDrawType&&(h=!0,i.lastDrawType=1),fa(t,e,p,h,i),f&&(i.batchFill||i.batchStroke)||t.beginPath(),function(t,e,i,n,r){var o,a,s,l=p7(i),h=p9(i),u=i.strokePercent,d=u<1,c=!e.path;(!e.silent||d)&&c&&e.createPathProxy();var p=e.path||p6,f=e.__dirty;if(!n){var g=i.fill,m=i.stroke,_=h&&!!g.colorStops,v=l&&!!m.colorStops,y=h&&!!g.image,b=l&&!!m.image,x=void 0,w=void 0,S=void 0,k=void 0,C=void 0;(_||v)&&(C=e.getBoundingRect()),_&&(x=f?p2(t,g,C):e.__canvasFillGradient,e.__canvasFillGradient=x),v&&(w=f?p2(t,m,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),y&&(S=f||!e.__canvasFillPattern?fi(t,g,e):e.__canvasFillPattern,e.__canvasFillPattern=S),b&&(k=f||!e.__canvasStrokePattern?fi(t,m,e):e.__canvasStrokePattern,e.__canvasStrokePattern=k),_?t.fillStyle=x:y&&(S?t.fillStyle=S:h=!1),v?t.strokeStyle=w:b&&(k?t.strokeStyle=k:l=!1)}var T=e.getGlobalScale();p.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&i.lineDash&&(a=(o=p4(e))[0],s=o[1]);var M=!0;(c||4&f)&&(p.setDPR(t.dpr),d?p.setContext(null):(p.setContext(t),M=!1),p.reset(),e.buildPath(p,e.shape,n),p.toStatic(),e.pathUpdated()),M&&p.rebuildPath(t,d?u:1),a&&(t.setLineDash(a),t.lineDashOffset=s),n?(r.batchFill=h,r.batchStroke=l):i.strokeFirst?(l&&fe(t,i),h&&ft(t,i)):(h&&ft(t,i),l&&fe(t,i)),a&&t.setLineDash([])}(t,e,s,f,i);else if(e instanceof aD){3!==i.lastDrawType&&(h=!0,i.lastDrawType=3),fa(t,e,p,h,i);var g,m,_,v,y=s.text;if(null!=y&&(y+=""),y){t.font=s.font||to,t.textAlign=s.textAlign,t.textBaseline=s.textBaseline;var b=void 0,x=void 0;t.setLineDash&&s.lineDash&&(b=(v=p4(e))[0],x=v[1]),b&&(t.setLineDash(b),t.lineDashOffset=x),s.strokeFirst?(p7(s)&&t.strokeText(y,s.x,s.y),p9(s)&&t.fillText(y,s.x,s.y)):(p9(s)&&t.fillText(y,s.x,s.y),p7(s)&&t.strokeText(y,s.x,s.y)),b&&t.setLineDash([])}}else e instanceof aO?(2!==i.lastDrawType&&(h=!0,i.lastDrawType=2),n=h,fo(t,e.style,p&&p.style,n,i),function(t,e,i){var n=e.__image=ox(i.image,e.__image,e,e.onload);if(n&&oS(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var h=i.sx||0,u=i.sy||0;t.drawImage(n,h,u,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var h=i.sx,u=i.sy,d=a-h,c=s-u;t.drawImage(n,h,u,d,c,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}(t,e,s)):e.getTemporalDisplayables&&(4!==i.lastDrawType&&(h=!0,i.lastDrawType=4),function(t,e,i){var n,r,o=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover,beforeBrushParam:{}};for(n=e.getCursor(),r=o.length;n<r;n++){var l=o[n];l.beforeBrush&&l.beforeBrush(i.beforeBrushParam),l.innerBeforeBrush(),fu(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}fd(t,s);for(var h=0,u=a.length;h<u;h++){var l=a[h];l.beforeBrush&&l.beforeBrush(i.beforeBrushParam),l.innerBeforeBrush(),fu(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}fd(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,i));e.innerAfterBrush(),e.afterBrush&&(f&&fl(t,i),e.afterBrush()),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}function fd(t,e){fl(t,e),e.prevElClipPaths&&t.restore()}var fc=new pU,fp=new ij(100),ff=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fg(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&fc.delete(t);var o=fc.get(t);if(o)return o;var a=tC(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"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o,s=[i],l=!0,h=0;h<ff.length;++h){var u=a[ff[h]];if(null!=u&&!tN(u)&&!tB(u)&&!tF(u)&&"boolean"!=typeof u){l=!1;break}s.push(u)}if(l){e=s.join(",")+(r?"-svg":"");var d=fp.get(e);d&&(r?t.svgElement=d:t.image=d)}var c=function t(e){if(!e||0===e.length)return[[0,0]];if(tF(e)){var i=Math.ceil(e);return[[i,i]]}for(var n=!0,r=0;r<e.length;++r)if(!tF(e[r])){n=!1;break}if(n)return t([e]);for(var o=[],r=0;r<e.length;++r)if(tF(e[r])){var i=Math.ceil(e[r]);o.push([i,i])}else{var i=tA(e[r],function(t){return Math.ceil(t)});i.length%2==1?o.push(i.concat(i)):o.push(i)}return o}(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(tF(t)){var e=Math.ceil(t);return[e,e]}var i=tA(t,function(t){return Math.ceil(t)});return t.length%2?i.concat(i):i}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(tB(e))return[[e]];for(var i=!0,n=0;n<e.length;++n)if(!tB(e[n])){i=!1;break}if(i)return t([e]);for(var r=[],n=0;n<e.length;++n)tB(e[n])?r.push([e[n]]):r.push(e[n]);return r}(a.symbol),g=tA(c,function(t){return fm(t)}),m=fm(p),_=!r&&ts.createCanvas(),v=r&&{tag:"g",attrs:{},key:"dcl",children:[]},y=function(){for(var t=1,e=0,i=g.length;e<i;++e)t=rz(t,g[e]);for(var n=1,e=0,i=f.length;e<i;++e)n=rz(n,f[e].length);t*=n;var r=m*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();_&&(_.width=y.width*i,_.height=y.height*i,o=_.getContext("2d")),function(){o&&(o.clearRect(0,0,_.width,_.height),a.backgroundColor&&(o.fillStyle=a.backgroundColor,o.fillRect(0,0,_.width,_.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var s=-m,l=0,h=0,u=0;s<y.height;){if(l%2==0){for(var d=h/2%f.length,g=0,b=0,x=0;g<2*y.width;){for(var w=0,e=0;e<c[u].length;++e)w+=c[u][e];if(w<=0)break;if(b%2==0){var S=(1-a.symbolSize)*.5,k=g+c[u][b]*S,C=s+p[l]*S,T=c[u][b]*a.symbolSize,M=p[l]*a.symbolSize,D=x/2%f[d].length;!function(t,e,s,l,h){var u=r?1:i,d=pJ(h,t*u,e*u,s*u,l*u,a.color,a.symbolKeepAspect);if(r){var c=n.painter.renderOneToVNode(d);c&&v.children.push(c)}else fh(o,d)}(k,C,T,M,f[d][D])}g+=c[u][b],++x,++b===c[u].length&&(b=0)}++u===c.length&&(u=0)}s+=p[l],++h,++l===p.length&&(l=0)}}(),l&&fp.put(e,_||v),t.image=_,t.svgElement=v,t.svgWidth=y.width,t.svgHeight=y.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/i,fc.set(t,s),t.dirty=!1,s}function fm(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}var f_=os(function(t,e){t.eachRawSeries(function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");i&&(n.ensureUniqueItemVisual(t,"style").decal=fg(i,e))});var r=n.getVisual("decal");r&&(n.getVisual("style").decal=fg(r,e))}})}),fv="__flagInMainProcess",fy="__mainProcessVersion",fb="__pendingUpdate",fx="__needsUpdateStatus",fw=/^[a-zA-Z0-9_]+$/,fS="__connectUpdateStatus";function fk(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void this.id:fT(this,t,e)}}function fC(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return fT(this,t,e)}}function fT(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),ec.prototype[e].apply(t,i)}var fM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e}(ec),fD=fM.prototype;fD.on=fC("on"),fD.off=fC("off");var fI=function(t){function e(e,i,n){var r=t.call(this,new pP)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},r.__v_skip=!0,r._dom=e,r[fy]=1,n.ssr;var o=r._zr=rs(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:tG(n.useDirtyRect,!1),useCoarsePointer:tG(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});r._ssr=n.ssr,r._throttledZrFlush=po(tL(o.flush,o),17),r._updateTheme(i),r._locale=function(t){if(!tB(t))return tS(tw(t),tw(ld.EN),!1);var e=ld[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?tw(e):tS(tw(e),tw(ld.EN),!1)}(n.locale||lp),r._coordSysMgr=new lQ;var a=r._api=F(r);function s(t,e){return t.__prio-e.__prio}return i_(fz,s),i_(fR,s),r._scheduler=new pg(r,a,fR,fz),r._messageCenter=new fM,r._initEvents(),r.resize=tL(r.resize,r),o.animation.on("frame",r._onframe,r),R(o,r),N(o,r),r[tJ]=!0,r}return ti(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,i=this._api;if($(this),this[fb]){var n=this[fb].silent;this[fv]=!0,U(this);try{T(this),I.update.call(this,null,this[fb].updateParams)}catch(t){throw this[fv]=!1,this[fb]=null,t}this._zr.flush(),this[fv]=!1,this[fb]=null,P.call(this,n),L.call(this,n)}else if(t.unfinished){var r=1;do{t.unfinished=!1;var o=ts.getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),E(this,e),t.performVisualTasks(e),V(this,this._model,i,"remain",{}),r-=ts.getTime()-o}while(r>0&&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,i){if(!this[fv]){if(this._disposed)return void this.id;if(tH(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[fv]=!0,U(this),!this._model||e){var n,r,o,a=new hC(this._api),s=this._theme,l=this._model=new hb;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},fN);var h={seriesTransition:o,optionChanged:!0};if(i)this[fb]={silent:n,updateParams:h},this[fv]=!1,this.getZr().wakeUp();else{try{T(this),I.update.call(this,null,h)}catch(t){throw this[fb]=null,this[fv]=!1,t}this._ssr||this._zr.flush(),this[fb]=null,this[fv]=!1,P.call(this,n),L.call(this,n)}}},e.prototype.setTheme=function(t,e){if(!this[fv]){if(this._disposed)return void this.id;var i=this._model;if(i){var n=e&&e.silent,r=null;this[fb]&&(null==n&&(n=this[fb].silent),r=this[fb].updateParams,this[fb]=null),this[fv]=!0,U(this);try{this._updateTheme(t),i.setTheme(this._theme),T(this),I.update.call(this,{type:"setTheme"},r)}catch(t){throw this[fv]=!1,t}this[fv]=!1,P.call(this,n),L.call(this,n)}}},e.prototype._updateTheme=function(t){tB(t)&&(t=fB[t]),t&&((t=tw(t))&&hY(t,!0),this._theme=t)},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||tr.hasGlobalWindow&&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(){var t=this._zr;return tI(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,i=this._model,n=[],r=this;tI(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tI(n,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max;if(!fH[i])return this.getDataURL(t);var o=1/0,a=1/0,s=-1/0,l=-1/0,h=[],u=t&&t.pixelRatio||this.getDevicePixelRatio();tI(fF,function(u,d){if(u.group===i){var c=e?u.getZr().painter.getSvgDom().innerHTML:u.renderToCanvas(tw(t)),p=u.getDom().getBoundingClientRect();o=n(p.left,o),a=n(p.top,a),s=r(p.right,s),l=r(p.bottom,l),h.push({dom:c,left:p.left,top:p.top})}}),o*=u,a*=u,s*=u,l*=u;var d=s-o,c=l-a,p=ts.createCanvas(),f=rs(p,{renderer:e?"svg":"canvas"});if(f.resize({width:d,height:c}),!e)return t.connectedBackgroundColor&&f.add(new aF({shape:{x:0,y:0,width:d,height:c},style:{fill:t.connectedBackgroundColor}})),tI(h,function(t){var e=new aO({style:{x:t.left*u-o,y:t.top*u-a,image:t.dom}});f.add(e)}),f.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"));var g="";return tI(h,function(t){var e=t.left-o,i=t.top-a;g+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,t.connectedBackgroundColor&&f.painter.setBackgroundColor(t.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,i){return A(this,"convertToPixel",t,e,i)},e.prototype.convertToLayout=function(t,e,i){return A(this,"convertToLayout",t,e,i)},e.prototype.convertFromPixel=function(t,e,i){return A(this,"convertFromPixel",t,e,i)},e.prototype.containPixel=function(t,e){var i;return this._disposed?void this.id:(tI(rQ(this._model,t),function(t,n){n.indexOf("Models")>=0&&tI(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}},this)},this),!!i)},e.prototype.getVisual=function(t,e){var i=rQ(this._model,t,{defaultMainType:"series"}),n=i.seriesModel.getData(),r=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?n.indexOfRawIndex(i.dataIndex):null;return null!=r?function(t,e,i){switch(i){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,i)}}(n,r,e):function(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)}}(n,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,e,i=this;tI(fE,function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&pz(o,function(t){var e=a2(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=tk({},e.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),h=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:h},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)});var n=this._messageCenter;tI(fL,function(t,e){n.on(e,function(t){i.trigger(e,t)})}),t=this,e=this._api,n.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(pN("map","selectchanged",t,n,i),pN("pie","selectchanged",t,n,i)):"select"===i.fromAction?(pN("map","selected",t,n,i),pN("pie","selected",t,n,i)):"unselect"===i.fromAction&&(pN("map","unselected",t,n,i),pN("pie","unselected",t,n,i))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&r5(this.getDom(),f$,"");var t=this._api,e=this._model;tI(this._componentsViews,function(i){i.dispose(e,t)}),tI(this._chartsViews,function(i){i.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 fF[this.id]},e.prototype.resize=function(t){if(!this[fv]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[fb]&&(null==n&&(n=this[fb].silent),i=!0,this[fb]=null),this[fv]=!0,U(this);try{i&&T(this),I.update.call(this,{type:"resize",animation:tk({duration:0},t&&t.animation)})}catch(t){throw this[fv]=!1,t}this[fv]=!1,P.call(this,n),L.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(tH(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),fV[t]){var i=fV[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=tk({},t);return e.type=fP[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if((tH(e)||(e={silent:!!e}),fO[t.type])&&this._model){if(this[fv])return void this._pendingActions.push(t);var i=e.silent;O.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&tr.browser.weChat&&this._throttledZrFlush(),P.call(this,i),L.call(this,i)}},e.prototype.updateLabelLayout=function(){pB.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;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=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){if(!t.preventAutoZ){var i=cK(t);e.eachRendered(function(t){return cJ(t,i.z,i.zlevel),!0})}}function n(t,e){e.eachRendered(function(t){if(!ch(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,i){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;i.eachRendered(function(t){if(t.states&&t.states.emphasis&&!ch(t)){if(t instanceof aT&&((i=sl(t)).normalFill=t.style.fill,i.normalStroke=t.style.stroke,i.selectFill=(n=t.states.select||{}).style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty){var i,n,o=t.prevStates;o&&t.useStates(o)}if(r){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}T=function(t){pF(t._model).prepare={};var e=t._scheduler;e.restorePipelines(t._zr,t._model),e.prepareStageTasks(),M(t,!0),M(t,!1),e.plan()},M=function(t,e){for(var i=t._model,n=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function h(t){var l=t.__requireNewView;t.__requireNewView=!1;var h="_ec_"+t.id+"_"+t.type,u=!l&&o[h];if(!u){var d=ou(t.type);(u=new(e?uJ.getClass(d.main,d.sub):c6.getClass(d.sub))).init(i,s),o[h]=u,r.push(u),a.add(u.group)}t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||n.prepareView(u,t,i,s)}e?i.eachComponent(function(t,e){"series"!==t&&h(e)}):i.eachSeries(h);for(var l=0;l<r.length;){var u=r[l];u.__alive?l++:(e||u.renderTask.dispose(),a.remove(u.group),u.dispose(i,s),r.splice(l,1),o[u.__id]===u&&delete o[u.__id],u.__id=u.group.__ecComponentInfo=null)}},D=function(t,e,i,n,r){var o,a,s,l=t._model;if(l.setUpdatePayload(i),!n)return void tI([].concat(t._componentsViews).concat(t._chartsViews),d);var h=((o={})[n+"Id"]=i[n+"Id"],o[n+"Index"]=i[n+"Index"],o[n+"Name"]=i[n+"Name"],a={mainType:n,query:o},r&&(a.subType=r),a),u=i.excludeSeriesId;function d(n){n&&n.__alive&&n[e]&&n[e](n.__model,l,t._api,i)}null!=u&&(s=t5(),tI(rF(u),function(t){var e=rj(t,null);null!=e&&s.set(e,!0)})),l&&l.eachComponent(h,function(e){if(!(s&&null!=s.get(e.id))){if(sZ(i))if(e instanceof uW)i.type!==sc||i.notBlur||e.get(["emphasis","disabled"])||function(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=rq(r,e);o=(tN(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var h=a2(a);sN(n,h.focus,h.blurScope,i)}else{var u=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=u&&sN(n,u,d,i)}}}(e,i,t._api);else{var n=sB(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;i.type===sc&&r&&!i.notBlur&&sz(e.mainType,e.componentIndex,t._api),o&&tI(o,function(t){i.type===sc?sO(t):sP(t)})}else if(sG(i)&&e instanceof uW){if(t._api,sG(i)){var a=i.dataType,l=rq(e.getData(a),i);tN(l)||(l=[l]),e[i.type===sm?"toggleSelect":i.type===sf?"select":"unselect"](l,a)}sV(e),Y(t)}}},t),l&&l.eachComponent(h,function(e){s&&null!=s.get(e.id)||d(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)},I={prepareAndUpdate:function(t){T(this),I.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,i){var n=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(n){pF(n).fullUpdate={},n.setUpdatePayload(e),s.restoreData(n,e),s.performSeriesTasks(n),a.create(n,r),pB.trigger("coordsys:aftercreate",n,r),s.performDataProcessorTasks(n,e),E(this,n),a.update(n,r),t(n),s.performVisualTasks(n,e);var l=n.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var h=n.get("darkMode");null!=h&&"auto"!==h&&o.setDarkMode(h),z(this,n,r,e,i),pB.trigger("afterupdate",n,r)}},updateTransform:function(t){var e=this,i=e._model,n=e._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent(function(o,a){if(o!==a4){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,n,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=t5();i.eachSeries(function(r){var a=e._chartsMap[r.__viewId],s=r.pipelineContext;if(a.updateTransform&&!s.progressiveRender){var l=a.updateTransform(r,i,n,t);l&&l.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),e._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),V(e,i,n,t,{},o),pB.trigger("afterupdate",i,n)}},updateView:function(e){var i=this._model;i&&(i.setUpdatePayload(e),c6.markUpdateMethod(e,"updateView"),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0}),z(this,i,this._api,e,{}),pB.trigger("afterupdate",i,this._api))},updateVisual:function(e){var i=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(t){t.getData().clearAllVisual()}),c6.markUpdateMethod(e,"updateVisual"),t(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent(function(t,r){if("series"!==t){var o=i.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,i._api,e)}}),n.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,n,i._api,e)}),pB.trigger("afterupdate",n,this._api))},updateLayout:function(t){I.update.call(this,t)}},A=function(t,e,i,n,r){if(t._disposed)return void t.id;for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=rQ(a,i),h=0;h<s.length;h++){var u=s[h];if(u[e]&&null!=(o=u[e](a,l,n,r)))return o}},E=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},O=function(t,e){var i,n=this,r=this.getModel(),o=t.type,a=t.escapeConnect,s=fO[o],l=(s.update||"update").split(":"),h=l.pop(),u=null!=l[0]&&ou(l[0]);this[fv]=!0,U(this);var d=[t],c=!1;t.batch&&(c=!0,d=tA(t.batch,function(e){return(e=tC(tk({},e),t)).batch=null,e}));var p=[],f=[],g=s.nonRefinedEventType,m=sG(t),_=sZ(t);if(_&&sR(this._api),tI(d,function(e){var o=s.action(e,r,n._api);if(s.refineEvent?f.push(o):i=o,(i=i||tk({},e)).type=g,p.push(i),_){var a=rJ(t),l=a.queryOptionMap;D(n,h,e,a.mainTypeSpecified?l.keys()[0]:"series"),Y(n)}else m?(D(n,h,e,"series"),Y(n)):u&&D(n,h,e,u.main,u.sub)}),"none"!==h&&!_&&!m&&!u)try{this[fb]?(T(this),I.update.call(this,t),this[fb]=null):I[h].call(this,t)}catch(t){throw this[fv]=!1,t}if(i=c?{type:g,escapeConnect:a,batch:p}:p[0],this[fv]=!1,!e){var v=void 0;if(s.refineEvent){var y=s.refineEvent(f,t,r,this._api).eventContent;tK(tH(y)),(v=tC({type:s.refinedEventType},y)).fromAction=t.type,v.fromActionPayload=t,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(i.type,i),v&&b.trigger(v.type,v)}},P=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();O.call(this,i,t)}},L=function(t){t||this.trigger("updated")},R=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[fb]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")})},N=function(t,e){t.on("mouseover",function(t){var i,n,r,o,a,s=pz(t.target,sj);s&&(i=e._api,o=(r=sB((n=a2(s)).componentMainType,n.componentIndex,n.componentHighDownName,i)).dispatchers,a=r.focusSelf,o?(a&&sz(n.componentMainType,n.componentIndex,i),tI(o,function(e){return sA(e,t)})):(sN(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&sz(n.componentMainType,n.componentIndex,i),sA(s,t)),Y(e))}).on("mouseout",function(t){var i,n,r,o=pz(t.target,sj);o&&(sR(i=e._api),(r=sB((n=a2(o)).componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers)?tI(r,function(e){return sE(e,t)}):sE(o,t),Y(e))}).on("click",function(t){var i=pz(t.target,function(t){return null!=a2(t).dataIndex},!0);if(i){var n=i.selected?"unselect":"select",r=a2(i);e._api.dispatchAction({type:n,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},z=function(t,e,i,n,r){!function(t){var e=[],i=[],n=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),n){var r,o,a=e.concat(i);i_(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),tI(a,function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)})}}(e),B(t,e,i,n,r),tI(t._chartsViews,function(t){t.__alive=!1}),V(t,e,i,n,r),tI(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},B=function(t,e,o,a,s,l){tI(l||t._componentsViews,function(t){var s=t.__model;n(s,t),t.render(s,e,o,a),i(s,t),r(s,t)})},V=function(t,e,o,a,s,l){var h=t._scheduler;s=tk(s||{},{updatedSeries:e.getSeries()}),pB.trigger("series:beforeupdate",e,o,s);var u=!1;e.eachSeries(function(e){var i,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var d=s.renderTask;h.updatePayload(d,a),n(e,s),l&&l.get(e.uid)&&d.dirty(),d.perform(h.getPerformArgs(d))&&(u=!0),s.group.silent=!!e.get("silent"),i=e,r=s,o=i.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),sV(e)}),h.unfinished=u||h.unfinished,pB.trigger("series:layoutlabels",e,o,s),pB.trigger("series:transition",e,o,s),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];i(e,n),r(e,n)}),function(t,e){var i=t._zr;if("canvas"===i.painter.type){var n=i.storage,r=0;n.traverse(function(t){!t.isGroup&&r++});var o=r>tG(e.get("hoverLayerThreshold"),hd.hoverLayerThreshold)&&!tr.node&&!tr.worker;(t._usingTHL||o)&&(e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered(function(t){var e=t.states.emphasis;e&&e.hoverLayer!==cv&&(e.hoverLayer=o?c_:cm)})}}),t._usingTHL=o)}}(t,e),pB.trigger("series:afterupdate",e,o,s)},Y=function(t){t[fx]=!0,t.getZr().wakeUp()},U=function(t){t[fy]=(t[fy]+1)%1e6},$=function(t){t[fx]&&(t.getZr().storage.traverse(function(t){ch(t)||e(t)}),t[fx]=!1)},F=function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ti(i,e),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},i.prototype.enterEmphasis=function(e,i){sO(e,i),Y(t)},i.prototype.leaveEmphasis=function(e,i){sP(e,i),Y(t)},i.prototype.enterBlur=function(e){sT(e,sw),Y(t)},i.prototype.leaveBlur=function(e){sT(e,sS),Y(t)},i.prototype.enterSelect=function(e){sT(e,sk),Y(t)},i.prototype.leaveSelect=function(e){sT(e,sC),Y(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i.prototype.getECUpdateCycleVersion=function(){return t[fy]},i.prototype.usingTHL=function(){return t._usingTHL},i}(so))(t)},H=function(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][fS]=e}tI(fP,function(i,n){t._messageCenter.on(n,function(i){if(fH[t.group]&&0!==t[fS]&&(!i||!i.escapeConnect)){var n=t.makeActionFromEvent(i),r=[];tI(fF,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),tI(r,function(t){1!==t[fS]&&t.dispatchAction(n)}),e(r,2)}})})}}(),e}(ec),fA=fI.prototype;fA.on=fk("on"),fA.off=fk("off"),fA.one=function(t,e,i){var n=this;this.on.call(this,t,function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),n.off(t,i)},i)};var fE=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],fO={},fP={},fL={},fR=[],fN=[],fz=[],fB={},fV={},fF={},fH={},fY=new Date-0,f$="_echarts_instance_";function fU(t){0>tT(fN,t)&&fN.push(t)}function fW(t,e){fX(fR,t,e,2e3)}function fj(t,e){pB.on(t,e)}function fG(t,e,i){function n(t){return t.toLowerCase()}tz(e)&&(i=e,e=""),tH(t)?(r=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,i||(i=t.action),o=t.refineEvent):(r=t,l=e);var r,o,a,s,l=n(l||r),h=o?n(r):l;fO[r]||(tK(fw.test(r)&&fw.test(l)),o&&tK(l!==r),fO[r]={actionType:r,refinedEventType:l,nonRefinedEventType:h,update:a,action:i,refineEvent:o},fL[l]=1,o&&s&&(fL[h]=1),fP[h]=r)}function fZ(t,e){fX(fz,t,e,3e3,"visual",!0)}var fq=[];function fX(t,e,i,n,r,o){if((tz(e)||tH(e))&&(i=e,e=n),!(tT(fq,i)>=0)){fq.push(i);var a=pg.wrapStageHandler(i,r);a.__prio=e,a.__raw=i,t.push(a)}}function fK(t,e,i,n){var r;return{eventContent:{selected:(r=[],i.eachSeries(function(t){tI(t.getAllData(),function(e){e.data;var i=e.type,n=t.getSelectedDataIndices();if(n.length>0){var o={dataIndex:n,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),r.push(o)}})}),r),isFromClick:e.isFromClick||!1}}}fZ(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=pd(t,n)(r),a=r.getShallow("decal");a&&(i.setVisual("decal",a),a.dirty=!0);var s=pc(t,n),l=o[s],h=tz(l)?l:null,u="auto"===o.fill||"auto"===o.stroke;if(!o[s]||h||u){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=d,i.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tz(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||tz(o.stroke)?d:o.stroke}if(i.setVisual("style",o),i.setVisual("drawType",s),!e.isSeriesFiltered(t)&&h)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=tk({},o);r[s]=h(n),e.setItemVisual(i,"style",r)}}}}),fZ(4500,{createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=pd(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){pp.option=i[n];var a=r(pp);tk(t.ensureUniqueItemVisual(e,"style"),a),pp.option.decal&&(t.setItemVisual(e,"decal",pp.option.decal),pp.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),fZ(4500,{performRawSeries:!0,overallReset:function(t){var e=t5();t.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();pl(t).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(t){if(!t.isColorBySeries()){var e=t.getRawData(),i={},n=t.getData(),r=pl(t).scope,o=t.visualStyleAccessPath||"itemStyle",a=pc(t,o);n.each(function(t){i[n.getRawIndex(t)]=t}),e.each(function(o){var s=i[o];if(n.getItemVisual(s,"colorFromPalette")){var l=n.ensureUniqueItemVisual(s,"style"),h=e.getName(o)||o+"",u=e.count();l[a]=t.getColorFromPalette(h,r,u)}})}})}}),fZ(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},r={},o=!1,a=0;a<pL.length;a++){var s=pL[a],l=t.get(s);tz(l)?(o=!0,r[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,i.setVisual(tk({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var h=tP(r);return{dataEach:o?function(e,i){for(var n=t.getRawValue(i),o=t.getDataParams(i),a=0;a<h.length;a++){var s=h[a];e.setItemVisual(i,s,r[s](n,o))}}:null}}}}}),fZ(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var i=t.getItemModel(e),n=0;n<pR.length;n++){var r=pR[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}}),fZ(7e3,f_),fU(hY),fW(900,h$),fV.default=function(t,e){tC(e=e||{},{text:"loading",textColor:hn.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:hn.color.theme["0"],spinnerRadius:10,lineWidth:5,zlevel:0});var i,n=new rn,r=new aF({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var o=new a1({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new aF({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new dQ({shape:{startAngle:-pf/2,endAngle:-pf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*pf/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*pf/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),h=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:h}),a.setShape({x:l-s,y:h-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n},fG({type:sc,event:sc,update:sc},t7),fG({type:sp,event:sp,update:sp},t7),fG({type:sf,event:s_,update:sf,action:t7,refineEvent:fK,publishNonRefinedEvent:!0}),fG({type:sg,event:s_,update:sg,action:t7,refineEvent:fK,publishNonRefinedEvent:!0}),fG({type:sm,event:s_,update:sm,action:t7,refineEvent:fK,publishNonRefinedEvent:!0}),fB.default={},fB.dark=pO;var fQ={},fJ=[],f0={registerPreprocessor:fU,registerProcessor:fW,registerPostInit:function(t){fj("afterinit",t)},registerPostUpdate:function(t){fj("afterupdate",t)},registerUpdateLifecycle:fj,registerAction:fG,registerCoordinateSystem:function(t,e){lQ.register(t,e)},registerLayout:function(t,e){fX(fz,t,e,1e3,"layout",!0)},registerVisual:fZ,registerTransform:function(t){var e=(t=tw(t)).type;e||h1("");var i=e.split(":");2!==i.length&&h1("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,um.set(e,t)},registerLoading:function(t,e){fV[t]=e},registerMap:function(t,e,i){var n=pV.registerMap;n&&n(t,e,i)},registerImpl:function(t,e){pV[t]=e},PRIORITY:{PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS: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}},ComponentModel:ht,ComponentView:uJ,SeriesModel:uW,ChartView:c6,registerComponentModel:function(t){ht.registerClass(t)},registerComponentView:function(t){uJ.registerClass(t)},registerSeriesModel:function(t){uW.registerClass(t)},registerChartView:function(t){c6.registerClass(t)},registerCustomSeries:function(t,e){fQ[t]=e},registerSubTypeDefaulter:function(t,e){ht.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){rr[t]=e}};function f1(t){tN(t)?tI(t,function(t){f1(t)}):tT(fJ,t)>=0||(fJ.push(t),tz(t)&&(t={install:t}),t.install(f0))}var f2=i(487),f5={left:0,right:0,top:0,bottom:0},f3=["25%","25%"],f4="cartesian2d",f6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.mergeDefaultAndTheme=function(e,i){var n=l8(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&l7(e.outerBounds,n)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&l7(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:f5,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:hn.color.transparent,borderWidth:1,borderColor:hn.color.neutral30},e}(ht),f7=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),f8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",r0).models[0]},e.type="cartesian2dAxis",e}(ht);tM(f8,f7);var f9={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:"auto",onZeroAxisIndex:null,lineStyle:{color:hn.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:hn.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:hn.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[hn.color.backgroundTint,hn.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:hn.color.neutral00,borderColor:hn.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},gt=tS({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},f9),ge=tS({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:hn.color.axisMinorSplitLine,width:1}}},f9),gi=tS({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ge),gn=tC({logBase:10},ge);let gr={category:gt,value:ge,time:gi,log:gn};var go=0,ga=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++go,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&tA(n,gs);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!tB(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=t5(this.categories))},t}();function gs(t){return tH(t)&&null!=t.value?t.value:t+""}var gl={value:1,category:1,time:1,log:1};function gh(t,e,i,n){tI(gl,function(r,o){var a=tS(tS({},gr[o],!0),n,!0),s=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e+"Axis."+o,i}return ti(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var i=l6(this),n=i?l8(t):{};tS(t,e.getTheme().get(o+"Axis")),tS(t,this.getDefaultOption()),t.type=gu(t),i&&l7(t,n,i)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=ga.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.prototype.updateAxisBreaks=function(t){return{breaks:[]}},i.type=e+"Axis."+o,i.defaultOption=a,i}(i);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",gu)}function gu(t){return t.type||(t.data?"category":"value")}var gd=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();om(gd);var gc=tP({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function gp(t,e,i){t=t||{};var n,r,o,a,s,l=lg();if(l){var h=l.createBreakScaleMapper(e,i);h.hasBreaks()&&(tI(gc,function(e){h[e]&&(t[e]=tL(h[e],h))}),s=h)}return null==s&&(n=t,r=i,a=[],(o=n||{})._extents=a,a[0]=r?r.slice():r4(),tk(o,gv)),{brk:s,mapper:t}}function gf(t,e){tI(gc,function(i){t[i]=e[i]})}function gg(t){return t.getExtentUnsafe(0,2)}function gm(t,e){return t.getExtentUnsafe(1,e)||t.getExtentUnsafe(0,e)}function g_(t){var e=t.getExtentUnsafe(0,3);return e[1]-e[0]}var gv={needTransform:function(){return!1},normalize:function(t){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[1]||this._extents[0];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=gm(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){gy(this._extents,0,t,e)},setExtent2:function(t,e,i){var n=this._extents;n[t]||(n[t]=n[0].slice()),gy(n,t,e,i)},freeze:function(){}};function gy(t,e,i,n){ot(i,n)&&(t[e][0]=i,t[e][1]=n)}function gb(t){return"interval"===t.type}function gx(t){return"time"===t.type}function gw(t){return"log"===t.type}function gS(t){return"ordinal"===t.type}function gk(t){return rk(t)+2}function gC(t,e,i){var n=i&&i.lookup;if(n){for(var r=0;r<n.from.length;r++)if(t===n.from[r])return n.to[r]}return rf(e,t)}function gT(t,e,i){var n=t.slice();if(n[0]===n[1]){var r=i&&i.ctnShp;if(0!==n[0]){var o=ru(n[0]);e[1]||(n[1]+=o/2),n[0]-=o/2}else r&&(n[0]=-1),n[1]=1}return r9(n[0])&&r9(n[1])||(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function gM(t,e){return rd(rh(t=t||e,1))}function gD(t,e,i){var n=gg(t),r=n[0],o=t.count(),a=Math.max((e||0)+1,1);0!==r&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==n[0]&&l(n[0],!0,!0);for(var s=r;s<=n[1];s+=a)l(s,!1,s===n[0]||s===n[1]);function l(t,e,n){i({value:t,offInterval:e},n)}s-a!==n[1]&&l(n[1],!0,!0)}var gI=function(t){function e(i){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,gf(n,e.decoratedMethods);var r=i.ordinalMeta;r||(r=new ga({})),tN(r)&&(r=new ga({categories:tA(r,function(t){return tH(t)?t.value:t})})),n._ordinalMeta=r;var o=gp(null,null,i.extent||[0,r.categories.length-1]);return n._mapper=o.mapper,o.mapper,n.freeze=t7,n}return ti(e,t),e.parse=function(t){return null==t?t=0/0:tB(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=0/0):t=rd(t),t},e.prototype.getTicks=function(){var t=[];return gD(this,0,function(e){t.push(e)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=rl(o,e.length);r<a;++r)n[i[r]=e[r]]=r;for(var s=0;r<o;++r){for(;null!=n[s];)s++;i[r]=s,n[s]=r}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},e.prototype.count=function(){var t=gg(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(rd(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,i){return this._mapper.setExtent2(t,e,i)}},e}(gd);function gA(t,e,i,n){for(var r=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<r.length;s++){var l=r[s],h=r[s-1];if(!h.break&&!l.break){for(var u=0,d=[],c=(l.value-h.value)/e,p=gk(c);u<e-1;){var f=rw(h.value+(u+1)*c,p);f>a[0]&&f<a[1]&&d.push(f),u++}var g=lg();g&&g.pruneTicksByBreak("auto",d,i,function(t){return t},n,a),o.push(d)}}return o}gd.registerClass(gI);var gE=function(t){function e(i){var n=t.call(this)||this;n.type="interval",n.parse=e.parse;var r=lm(n,i=i||{}),o=gp(n,r,null);return n.brk=o.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return ti(e,t),e.parse=function(t){return null==t||""===t?0/0:Number(t)},e.prototype.getConfig=function(){return tw(this._cfg)},e.prototype.setConfig=function(t){var e=gg(this);this._cfg=t=tw(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=gk(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,i=e.interval,n=gg(this),r=e.niceExtent,o=e.intervalPrecision,a=lg(),s=this.brk,l=a&&s,h=[];if(!i)return h;if("only_break"===t.breakTicks&&l)return a.addBreaksToTicks(h,s.breaks,n),h;n[0]<r[0]&&h.push({value:t.expandToNicedExtent?rw(r[0]-i,o):n[0]});for(var u=function(t,e){return rd((e-t)/i)},d=e.intervalCount,c=r[0],p=0;;p++){if(null==d){if(c>r[1]||!isFinite(c)||!isFinite(r[1]))break}else{if(p>d)break;c=rl(c,r[1]),p===d&&(c=r[1])}if(h.push({value:c}),c=rw(c+i,o),s){var f=s.calcNiceTickMultiple(c,u);f>=0&&(c=rw(c+f*i,o))}if(h.length>0&&c===h[h.length-1].value)break;if(h.length>3e3)return[]}var g=h.length?h[h.length-1].value:r[1];return n[1]>g&&h.push({value:t.expandToNicedExtent?rw(g+i,o):n[1]}),l&&a.pruneTicksByBreak(t.pruneByBreak,h,s.breaks,function(t){return t.value},e.interval,n),l&&"none"!==t.breakTicks&&a.addBreaksToTicks(h,s.breaks,n),h},e.prototype.getMinorTicks=function(t){return gA(this,t,l_(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=rk(t.value)||0:"auto"===i&&(i=this._cfg.intervalPrecision),l$(rw(t.value,i,!0))},e.type="interval",e}(gd);gd.registerClass(gE);var gO=function(t,e,i,n){for(;i<n;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},gP=function(t){function e(i){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=i.locale,n._useUTC=i.useUTC,n._interval=0;var r=lm(n,i),o=gp(n,r,null);return n.brk=o.brk,n}return ti(e,t),e.prototype.getLabel=function(t){return lM(t.value,lw[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(lT(this._minLevelUnit))]||lw.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,i){return function(t,e,i,n,r){var o=null;if(tB(i))o=i;else if(tz(i)){var a={time:t.time,level:t.time?t.time.level:0},s=lg();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=i(t.value,e,a)}else{var l=t.time;if(l){var h=i[l.lowerTimeUnit][l.upperTimeUnit];o=h[Math.min(l.level,h.length-1)]||""}else{var u=lD(t.value,r);o=i[u][u][0]}}return lM(new Date(t.value),o,r,n)}(t,e,i,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,i=gg(this),n=lg(),r=this.brk,o=n&&r,a=[];if(!e)return a;var s=this._useUTC;if(o&&"only_break"===t.breakTicks)return lg().addBreaksToTicks(a,r.breaks,i),a;a=function(t,e,i,n,r,o){for(var a=0,s=[],l=[],h=0,u=0,d=0;d<lk.length;++d){var c,p=lT(lk[d]);if((c=lk[d])===lT(c)&&(!function(t,r,s){var l=[],h=!r.length;if(!gR(lT(t),n[0],n[1],i)){h&&(r=[{value:(p=n[0],f=Math.max(0,tT(lS,t)-1),lI(new Date(p),lS[f],i).getTime())},{value:n[1]}]);for(var u=0;u<r.length-1;u++){var d=r[u].value,c=r[u+1].value;if(d!==c){var p,f,g,m,_,v=void 0,y=void 0,b=void 0;switch(t){case"year":v=Math.max(1,Math.round(e/864e5/365)),y=lA(i),b=i?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":v=(g=e/2592e6)>6?6:g>3?3:g>2?2:1,y=lE(i),b=lz(i);break;case"week":case"half-week":case"day":v=(m=e/864e5)>16?16:m>7.5?7:m>3.5?4:m>1.5?2:1,y=lO(i),b=lB(i);break;case"half-day":case"quarter-day":case"hour":v=(_=e/36e5)>12?12:_>6?6:_>3.5?4:_>2?2:1,y=lP(i),b=lV(i);break;case"minute":v=gN(e,!0),y=lL(i),b=lF(i);break;case"second":v=gN(e,!1),y=lR(i),b=lH(i);break;case"millisecond":v=rh(rL(e,!0),1),y=lN(i),b=lY(i)}c>=n[0]&&d<=n[1]&&function(t,e,i,r,s,l){for(var h,u,d,c=((h=new Date(0))[s](1),u=h.getTime(),h[s](1+t),d=h.getTime()-u,function(t,e){return Math.max(0,Math.round((e-t)/d))}),p=e,f=new Date(p);p<i&&p<=n[1]&&(l.push({value:p}),!(a++>3e3));)if(f[s](f[r]()+t),p=f.getTime(),o){var g=o.calcNiceTickMultiple(p,c);g>0&&(f[s](f[r]()+g*t),p=f.getTime())}l.push({value:p,notAdd:p>n[1]})}(v,d,c,y,b,l),"year"===t&&s.length>1&&0===u&&s.unshift({value:s[0].value-v})}}for(var u=0;u<l.length;u++)s.push(l[u])}}(lk[d],s[s.length-1]||[],l),p!==(lk[d+1]?lT(lk[d+1]):null))){if(l.length){u=h,l.sort(function(t,e){return t.value-e.value});for(var f=[],g=0;g<l.length;++g){var m=l[g].value;(0===g||l[g-1].value!==m)&&(f.push(l[g]),m>=n[0]&&m<=n[1]&&h++)}var _=r/e;if(h>1.5*_&&u>_/1.5||(s.push(f),h>_||t===lk[d]))break}l=[]}}for(var v=tO(tA(s,function(t){return tO(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return t.length>0}),y=v.length-1,b=[],d=0;d<v.length;++d)for(var x=v[d],w=0;w<x.length;++w){var S=lD(x[w].value,i);b.push({value:x[w].value,time:{level:y-d,upperTimeUnit:S,lowerTimeUnit:S}})}or(b,oo,null),b.sort(function(t,e){return t.value-e.value});var k=b[0],C=b[b.length-1],T=lD(n[0],i),M=lD(n[1],i);return(!k||k.value>n[0])&&b.unshift({value:n[0],time:{level:0,upperTimeUnit:T,lowerTimeUnit:T},notNice:!0}),(!C||C.value<n[1])&&b.push({value:n[1],time:{level:0,upperTimeUnit:M,lowerTimeUnit:M},notNice:!0}),b}(this._minLevelUnit,this._approxInterval,s,i,g_(this),r);var l=lS.length-1,h=0;return tI(a,function(t){t.time&&(l=Math.min(l,tT(lS,t.time.upperTimeUnit)),h=Math.max(h,t.time.level))}),o&&lg().pruneTicksByBreak(t.pruneByBreak,a,r.breaks,function(t){return t.value},this._approxInterval,i),o&&"none"!==t.breakTicks&&lg().addBreaksToTicks(a,r.breaks,i,function(t){for(var e=Math.max(tT(lS,lD(t.vmin,s)),tT(lS,lD(t.vmax,s))),i=0,n=0;n<lS.length;n++)if(!gR(lS[n],t.vmin,t.vmax,s)){i=n;break}var r=Math.min(i,l);return{level:h,lowerTimeUnit:lS[Math.max(r,e)],upperTimeUnit:lS[r]}}),a},e.prototype.getMinorTicks=function(t){return gA(this,t,l_(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return tF(t)?Math.round(t):+rE(t)},e.type="time",e}(gd),gL=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function gR(t,e,i,n){return lI(new Date(e),t,n).getTime()===lI(new Date(i),t,n).getTime()}function gN(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}gd.registerClass(gP);var gz=function(t){function e(i){var n=t.call(this)||this;n.type="log",n.parse=gE.parse,n.base=i.logBase||10;var r=[],o=[],a=n._lookup={from:r,to:o};r[0]=r[1]=o[0]=o[1]=0/0,gf(n,e.mapperMethods);var s=lg(),l=i.breakOption,h={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},2,h),n.powStub=new gE({breakParsed:h.original}),n.intervalStub=new gE({breakParsed:h.transformed}),n.intervalStub,n.freeze=t7,n}return ti(e,t),e.prototype.getTicks=function(t){var e=this.base,i=this.powStub,n=lg(),r=this.intervalStub,o={lookup:{from:r.getExtent(),to:i.getExtent()}};return tA(r.getTicks(t||{}),function(t){var r,a=gC(t.value,e,o);if(n){var s=n.getTicksBreakOutwardTransform(this,t,l_(i),this._lookup);s&&(r=s.vBreak,a=s.tickVal)}return{value:a,break:r}},this)},e.prototype.getMinorTicks=function(t){return gA(this,t,l_(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){var e;return this.intervalStub.normalize((e=this.base,rg(t)/rg(e)))},scale:function(t){return gC(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){var i,n;return i=t,n=this.base,t=rg(i)/rg(n),e&&2===e.depth?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var i=e?e.depth:null;return gB.depth=i,gV.lookup=this._lookup,gC(2===i?t:this.intervalStub.transformOut(t,gB),this.base,gV)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(0,t,e)},setExtent2:function(t,e,i){if(ot(e,i)&&!(e<=0)&&!(i<=0)){var n=gF,r=gF;if(0===t){var o=this._lookup;n=o.to,r=o.from}this.powStub.setExtent2(t,n[0]=e,n[1]=i);var a=this.base;this.intervalStub.setExtent2(t,r[0]=rg(e)/rg(a),r[1]=rg(i)/rg(a))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return ot(e[0],e[1])&&rB(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(gd);gd.registerClass(gz);var gB={},gV={},gF=[],gH=rX(),gY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g$=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=gj(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return tG(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=hK(this.source),i=!(t>30),n="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,h=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===o)s=e?u.name:null,l=u.type,h=u.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=e?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:h}),!e||null==s||u&&u.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=gY[l]||"f",h&&(n+=h.uid),n+="$"}var c=this.source;return{dimensions:r,hash:[c.seriesLayoutBy,c.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gU(t){return t instanceof g$}function gW(t){for(var e=t5(),i=0;i<(t||[]).length;i++){var n=t[i],r=tH(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function gj(t){var e=gH(t);return e.dimNameMap||(e.dimNameMap=gW(t.dimensionsDefine))}function gG(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}var gZ=rX();function gq(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var i,n,r,o=tB(e)||tz(e)?e:(i=(i=e)||{},n={},r=!0,tI(lS,function(t){r&&(r=null==i[t])}),tI(lS,function(t,e){var o=i[t];n[t]={};for(var a=null,s=e;s>=0;s--){var l=lS[s],h=tH(o)&&!tN(o)?o[l]:o,u=void 0;tN(h)?a=(u=h.slice())[0]||"":tB(h)?u=[a=h]:(null==a?a=lb[t]:ly[l].test(a)||(a=n[l][l][0]+" "+a),u=[a],r&&(u[1]="{primary|"+a+"}")),n[t][l]=u}}),n);return function(e,i){return t.scale.getFormattedLabel(e,i,o)}}if(tB(e))return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")};if(!tz(e))return function(e){return t.scale.getLabel(e)};if("category"===t.type)return function(i,n){return e(gX(t,i),i.value-t.scale.getExtent()[0],null)};var a=lg();return function(i,n){var r=null;return a&&(r=a.makeAxisLabelFormatterParamBreak(r,i.break)),e(gX(t,i),n,r)}}function gX(t,e){var i=t.scale;return gS(i)?i.getLabel(e):e.value}function gK(t){var e=t.get("interval");return null==e?"auto":e}function gQ(t){return"middle"===t||"center"===t}function gJ(t){return t.getShallow("show")}function g0(t,e,i){var n=t.get("breaks",!0);if(null!=n)return lg()&&i&&"category"!==e?n:void 0}function g1(t,e,i,n,r,o){var a=gw(t),s=a?t.intervalStub:t;if(s.setExtent(n[0],n[1]),a){var l=t.powStub,h={depth:2},u=t.transformOut(n[0],h),d=t.transformOut(n[1],h),c=[i[0]!==n[0],i[1]!==n[1]];e[0]&&!c[0]&&(u=r[0]),e[1]&&!c[1]&&(d=r[1]),l.setExtent(u,d)}s.setConfig(o)}function g2(t,e){return gS(t)?t.getRawOrdinalNumber(e.value):e.value}function g5(t,e){return gS(t)&&!!e.get("boundaryGap")}var g3=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return tA(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tO(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),g4=["x","y"];function g6(t){return("interval"===t.type||"time"===t.type)&&!lv(t)}var g7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=f4,e.dimensions=g4,e}return ti(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(g6(t)&&g6(e)){var i=gm(t,null),n=gm(e,null),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,h=(o[1]-r[1])/s,u=r[0]-i[0]*l,d=r[1]-n[0]*h,c=this._transform=[l,0,0,h,u,d];this._invTransform=eH([],c)}}},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"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new ie(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return es(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},e.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[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,i){if(i=i||[],this._invTransform)return es(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1])-t,r=Math.min(i[0],i[1])-t,o=Math.max(e[0],e[1])-n+t,a=Math.max(i[0],i[1])-r+t;return new ie(n,r,o,a)},e}(g3),g8=rX(),g9=rX();function mt(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function me(t,e){var i=e.getExtent(),n=[];return tI(t,function(t){(t=e.parse(t))>=i[0]&&t<=i[1]&&n.push(t)}),or(n,oa,null),rS(n),tA(n,function(t){return{value:t}})}function mi(t,e,i){var n,r,o=mr(t),a=gK(e),s=1===i.kind;if(!s){var l=ma(o,a);if(l)return l}tz(a)?n=mu(t,a,!1):(r="auto"===a?function(t,e){if(1===e.kind){var i=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return g9(t).autoInterval=i,!0}),i}var n=g9(t).autoInterval;return null!=n?n:g9(t).autoInterval=t.calculateCategoryInterval(e)}(t,i):a,n=mu(t,r,!1));var h={labels:n,labelCategoryInterval:r};return s?i.out.noPxChangeTryDetermine.push(function(){return ms(o,a,h),!0}):ms(o,a,h),h}var mn=mo("axisTick"),mr=mo("axisLabel");function mo(t){return function(e){return g9(e)[t]||(g9(e)[t]={list:[]})}}function ma(t,e){for(var i=0;i<t.list.length;i++)if(t.list[i].key===e)return t.list[i].value}function ms(t,e,i){return t.list.push({key:e,value:i}),i}function ml(t,e,i){return null==mh(t,e,i)}function mh(t,e,i){var n=g8(t.model),r=t.getExtent(),o=n.lastAutoInterval,a=n.lastTickCount;if(null!=o&&null!=a&&1>=Math.abs(o-e)&&1>=Math.abs(a-i)&&o>e&&n.axisExtent0===r[0]&&n.axisExtent1===r[1])return o;n.lastTickCount=i,n.lastAutoInterval=e,n.axisExtent0=r[0],n.axisExtent1=r[1]}function mu(t,e,i){var n=gq(t),r=t.scale,o=[],a=tz(e);return gD(r,a?0:e,function(t,s){var l=r.getLabel(t);if(a){var h=!!e(t.value,l);if(t.offInterval=!h,!h&&!s)return}o.push(i?t:{formattedLabel:n(t),rawLabel:l,tick:t})}),o}oi();var md=rX();function mc(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function mp(t,e){var i=t.model,n=md(pH(i.ecModel)).keys;n&&tI(n.get(i.uid),function(t){e(t)})}function mf(t,e,i){if(t){var n=md(pH(e.ecModel)),r=t.model.uid,o=n.axSer||(n.axSer=t5());(o.get(r)||o.set(r,[])).push(e);var a=e.subType,s=e.getBaseAxis()===t,l=mm.get(mg(a,s,i))||mm.get(mg(a,s,null));if(l){var h=n.keyed||(n.keyed=t5()),u=n.keys||(n.keys=t5()),d=l.key,c=h.get(d)||h.set(d,t5()),p=c.get(r);p||((p=c.set(r,{axis:t,sers:[],serByIdx:[]})).metrics=l.getMetrics(t),(u.get(r)||u.set(r,[])).push(d)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function mg(t,e,i){return t+"|&"+tG(e,!0)+"|&"+(i||"")}rX();var mm=t5();function m_(t,e){e=e||{};var i,n,r,o,a,s,l,h={w:0/0,w2:0/0},u=t.scale,d=e.fromStat,c=e.min,p=(l=gm(u,3))[1]-l[0];rB(p)||(p=0/0);var f=t.getExtent(),g=ru(f[1]-f[0]);return gS(u)?(i=h,n=t,r=p,o=g,0===(s=r+ +!!(a=n.onBand))&&(s=1),i.w=o/s,!a&&r&&o&&(i.w2=i.w*r/o)):d&&function(t,e,i,n,r){var o,a,s,l,h,u,d,c,p,f=!1,g=-1/0;tI(r.key?[mc((l=r.key,(d=(u=md(pH((h=e.model).ecModel)).keyed)&&u.get(l))&&d.get(h.uid)))]:(c=r.sers||[],p=[],o=e.model.ecModel,a=function(t){for(var e=0;e<c.length;e++)c[e]&&t.serByIdx[c[e].seriesIndex]&&p.push(mc(t))},(s=md(pH(o)).keyed)&&s.each(function(t,e){t.each(function(t,i){a(t,e,i)})}),p),function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>g&&(g=e),f=!1):-2===e&&(f=!0))}),rB(i)&&i>0&&rB(g)?(t.w=n/i*g,t.w2=g):f&&(t.w=.8*n,t.w2=t.w*i/n)}(h,t,p,g,d),null!=c&&(h.w=rB(h.w)?rh(c,h.w):c),h}var mv=[0,1];function my(t){var e=t.getExtent();if(t.onBand){var i=(e[1]-e[0])/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}var mb=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return ti(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this.scale;return ry(t=i.normalize(i.parse(t)),mv,my(this),e)},t.prototype.coordToData=function(t,e){var i=ry(t,my(this),mv,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e,i,n,r=(t=t||{}).tickModel||this.getTickModel(),o=(e={breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak},i=this.scale,(n=this.getTickModel().get("customValues"))?{ticks:me(n,i)}:"category"===this.type?function(t,e){var i,n,r=mn(t),o=gK(e),a=ma(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(i=[]),tz(o))i=mu(t,o,!0);else if("auto"===o){var s=mi(t,t.getLabelModel(),mt(2));n=s.labelCategoryInterval,i=tA(s.labels,function(t){return t.tick})}else i=mu(t,n=o,!0);return ms(r,o,{ticks:i,tickCategoryInterval:n})}(this,r):{ticks:i.getTicks(e)}),a=tA(o.ticks,function(t){return{coord:this.dataToCoord(g2(this.scale,t)),tick:t}},this),s=function(t,e,i){var n=e.length;if(!t.onBand||i||!n)return!1;var r=m_(t).w;if(!r)return!1;tI(e,function(t){t.coord-=r/2});var o=t.scale.getExtent(),a=e[n-1];return a.tick.offInterval&&e.pop(),e.push({coord:a.coord+r,tick:{value:o[1]+1}}),!0}(this,a,r.get("alignWithLabel"));return tA(a,function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:s}})},t.prototype.getMinorTicksCoords=function(){if(gS(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),tA(this.scale.getMinorTicks(t),function(t){return tA(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var i,n,r,o,a,s,l,h=t.getLabelModel().get("customValues");if(h){var u=t.scale;return{labels:tA(me(h,u),function(e,i){return{formattedLabel:gq(t)(e,i),rawLabel:u.getLabel(e),tick:e}})}}return"category"===t.type?(i=t,n=e,r=i.getLabelModel(),o=mi(i,r,n),!r.get("show")||i.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=gq(a),{labels:tA(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tick:t}})})}(this,t=t||mt(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return m_(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var i,n,r=e.kind,o=(n=(i=t).getLabelModel(),{axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:n.get("rotate")||0,font:n.getFont()}),a=gq(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,h=l.getExtent(),u=l.count();if(h[1]-h[0]<1)return 0;var d=1;u>40&&(d=Math.max(1,Math.floor(u/40)));for(var c=h[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(p*Math.cos(s)),g=Math.abs(p*Math.sin(s)),m=0,_=0;c<=h[1];c+=d){var v=0,y=0,b=nZ(a({value:c}),o.font,"center","top");v=1.3*b.width,y=1.3*b.height,m=Math.max(m,v,7),_=Math.max(_,y,7)}var x=m/f,w=_/g;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(x,w)));if(1===r)return e.out.noPxChangeTryDetermine.push(tL(ml,null,t,S,u)),S;var k=mh(t,S,u);return null!=k?k:S}(this,t=t||mt(2))},t}()),mx=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function mw(t,e,i){i=i||3,e?t.dirty|=i:t.dirty&=~i}function mS(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function mk(t){if(t)return mS(t)&&function(t,e,i){var n=e.getComputedTransform();t.transform=cX(t.transform,n);var r=t.localRect=cq(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=i&&i.marginForce,l=i&&i.minMarginForce,h=i&&i.marginDefault,u=o.__marginType;null==u&&h&&(a=h,u=s6.textMargin);for(var d=0;d<4;d++)mC[d]=u===s6.minMargin&&l&&null!=l[d]?l[d]:s&&null!=s[d]?s[d]:a?a[d]:0;u===s6.textMargin&&cH(r,mC,!1,!1);var c=t.rect=cq(t.rect,r);n&&c.applyTransform(n),u===s6.minMargin&&cH(c,mC,!1,!1),t.axisAligned=cG(n),(t.label=t.label||{}).ignore=e.ignore,mw(t,!1),mw(t,!0,2)}(t,t.label,t),t}var mC=[0,0,0,0];function mT(t,e){for(var i=0;i<mx.length;i++){var n=mx[i];null==t[n]&&(t[n]=e[n])}return mk(t)}function mM(t){var e=t.obb;return(!e||mS(t,2))&&(t.obb=e=e||new ce,e.fromBoundingRect(t.localRect,t.transform),mw(t,!1,2)),e}function mD(t,e,i,n){return!!t&&!!e&&(!t.label||!t.label.ignore)&&(!e.label||!e.label.ignore)&&!!t.rect.intersect(e.rect,i,n)&&(!!t.axisAligned&&!!e.axisAligned||mM(t).intersect(mM(e),i,n))}var mI=Math.PI,mA=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],mE=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],mO=rX(),mP=rX(),mL=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,i=t.componentIndex,n=this.recordMap,r=n[e]||(n[e]=[]);return r[i]||(r[i]={ready:{}})},t}(),mR=eR(),mN=new ie(0,0,0,0),mz=function(t,e,i,n,r,o){if(gQ(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&mB((a={},s=o.transGroup.transform,a.transform=cX(a.transform,s),a.localRect=cq(a.localRect,l),a.rect=cq(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=cG(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),n,r)}else mV(o.labelInfoList,o.dirVec,n,r)};function mB(t,e,i){var n=new eY;mD(t,e,n,{direction:Math.atan2(i.y,i.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var i=t.transform;i&&(i[4]+=e.x,i[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,i)}}(e,n)}function mV(t,e,i,n){for(var r=eY.dot(n,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||mB(s,i,n)}}var mF=function(){function t(t,e,i,n){this.group=new rn,this._axisModel=t,this._api=e,this._local={},this._shared=n||new mL(mz),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},n=tG(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");(null==r||"auto"===r)&&(r=tG(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:tG(t.nameDirection,1),tickDirection:tG(t.tickDirection,1),labelDirection:tG(t.labelDirection,1),labelOffset:tG(t.labelOffset,0),silent:tG(t.silent,!0),axisName:n,nameLocation:tZ(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:!!n&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new rn({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new eY(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),tI(mH,function(n){t[n]&&mY[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,e||{})}),this},t.innerTextLayout=function(t,e,i){var n,r,o=rD(e-t);return rI(o)?(r=i>0?"top":"bottom",n="center"):rI(o-mI)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o<mI?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},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}(),mH=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],mY={axisLine:function(t,e,i,n,r,o,a){var s=n.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=n.axis.getExtent(),h=o.transform,u=[l[0],0],d=[l[1],0],c=u[0]>d[0];h&&(es(u,u,h),es(d,d,h));var p=tk({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(n.get(["axisLine","breakLine"])&&lv(n.axis.scale))null.buildAxisBreakLine(n,r,o,f);else{var g=new dU(tk({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},f));cI(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var m=n.get(["axisLine","symbol"]);if(null!=m){var _=n.get(["axisLine","symbolSize"]);tB(m)&&(m=[m,m]),(tB(_)||tF(_))&&(_=[_,_]);var v=p0(n.get(["axisLine","symbolOffset"])||0,_),y=_[0],b=_[1];tI([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(e,i){if("none"!==m[i]&&null!=m[i]){var n=pJ(m[i],-y/2,-b/2,y,b,p.stroke,!0),o=e.r+e.offset,a=c?d:u;n.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(n)}})}}},axisTickLabelEstimate:function(t,e,i,n,r,o,a,s){mj(e,r,s)&&m$(t,e,i,n,r,o,a,1)},axisTickLabelDetermine:function(t,e,i,n,r,o,a,s){mj(e,r,s)&&m$(t,e,i,n,r,o,a,2);var l,h,u,d=function(t,e,i,n){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),h=mW(r.getTicksCoords(),i.transform,l,tC(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<h.length;u++)e.add(h[u]);return h}(t,r,o,n);l=t,h=e.labelLayoutList,u=d,l.showMinorTicks||tI(h,function(t){if(t&&t.label.ignore)for(var e=0;e<u.length;e++){var i=u[e],n=mP(i),r=mO(t.label);if(null!=n.tickValue&&!n.onBand&&n.tickValue===r.labelInfo.tick.value)return void mU(i)}}),function(t,e,i,n,r){var o=n.axis,a=n.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),h=r*a.get("length"),u=tC(l.getLineStyle(),tC(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var c=mW(s[d],i.transform,h,u,"minorticks_"+d),p=0;p<c.length;p++)e.add(c[p])}}(t,r,o,n,t.tickDirection)},axisName:function(t,e,i,n,r,o,a,s){var l,h,u=i.ensureRecord(n);e.nameEl&&(r.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var d=t.axisName;if(d){var c,p,f,g,m,_,v,y,b,x=t.nameLocation,w=t.nameDirection,S=n.getModel("nameTextStyle"),k=n.get("nameGap")||0,C=n.axis.getExtent(),T=n.axis.inverse?-1:1,M=new eY(0,0),D=new eY(0,0);"start"===x?(M.x=C[0]-T*k,D.x=-T):"end"===x?(M.x=C[1]+T*k,D.x=T):(M.x=(C[0]+C[1])/2,M.y=t.labelOffset+w*k,D.y=w);var I=eR();D.transform(eF(I,I,t.rotation));var A=n.get("nameRotate");null!=A&&(A=A*mI/180),gQ(x)?l=mF.innerTextLayout(t.rotation,null!=A?A:t.rotation,w):(c=t.rotation,p=x,f=A||0,g=C,v=rD(f-c),y=g[0]>g[1],b="start"===p&&!y||"start"!==p&&y,rI(v-mI/2)?(_=b?"bottom":"top",m="center"):rI(v-1.5*mI)?(_=b?"top":"bottom",m="center"):(_="middle",m=v<1.5*mI&&v>mI/2?b?"left":"right":b?"right":"left"),l={rotation:v,textAlign:m,textVerticalAlign:_},null!=(h=t.raw.axisNameAvailableWidth)&&(isFinite(h=Math.abs(h/Math.sin(l.rotation)))||(h=null)));var E=S.getFont(),O=n.get("nameTruncate",!0)||{},P=O.ellipsis,L=tj(t.raw.nameTruncateMaxWidth,O.maxWidth,h),R=s.nameMarginLevel||0,N=new a1({x:M.x,y:M.y,rotation:l.rotation,silent:mF.isLabelSilent(n),style:sJ(S,{text:d,font:E,overflow:"truncate",width:L,ellipsis:P,fill:S.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:S.get("align")||l.textAlign,verticalAlign:S.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(cU({el:N,componentModel:n,itemName:d}),N.__fullText=d,N.anid="name",n.get("triggerEvent")){var z=mF.makeAxisEventDataBase(n);z.targetType="axisName",z.name=d,a2(N).eventData=z}o.add(N),N.updateTransform(),e.nameEl=N;var B=u.nameLayout=mk({label:N,priority:N.z2,defaultAttr:{ignore:N.ignore},marginDefault:gQ(x)?mA[R]:mE[R]});if(u.nameLocation=x,r.add(N),N.decomposeTransform(),t.shouldNameMoveOverlap&&B){var V=i.ensureRecord(n);i.resolveAxisNameOverlap(t,i,n,B,D,V)}}}};function m$(t,e,i,n,r,o,a,s){mG(e)||function(t,e,i,n,r,o){var a=r.axis,s=tj(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new rn;i.add(l);var h=mt(n);if(!s||a.scale.isBlank())return mZ(e,[],l,h);var u=r.getModel("axisLabel"),d=a.getViewLabels(h),c=(tj(t.raw.labelRotate,u.get("rotate"))||0)*mI/180,p=mF.innerTextLayout(t.rotation,c,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],m=r.get("triggerEvent"),_=1/0,v=-1/0;tI(d,function(t,e){var i,n=t.tick,s=t.formattedLabel,h=t.rawLabel,c=u,y=g2(a.scale,n);if(f&&f[y]){var b=f[y];tH(b)&&b.textStyle&&(c=new ls(b.textStyle,u,r.ecModel))}var x=c.getTextColor()||r.get(["axisLine","lineStyle","color"]),w=c.getShallow("align",!0)||p.textAlign,S=tG(c.getShallow("alignMinLabel",!0),w),k=tG(c.getShallow("alignMaxLabel",!0),w),C=c.getShallow("verticalAlign",!0)||c.getShallow("baseline",!0)||p.textVerticalAlign,T=tG(c.getShallow("verticalAlignMinLabel",!0),C),M=tG(c.getShallow("verticalAlignMaxLabel",!0),C),D=10+((null==(i=n.time)?void 0:i.level)||0);_=Math.min(_,D),v=Math.max(v,D);var I=new a1({x:0,y:0,rotation:0,silent:mF.isLabelSilent(r),z2:D,style:sJ(c,{text:s,align:0===e?S:e===d.length-1?k:w,verticalAlign:0===e?T:e===d.length-1?M:C,fill:tz(x)?x("category"===a.type?h:"value"===a.type?y+"":y,e):x})});I.anid="label_"+y;var A=mO(I);if(A.labelInfo=t,A.layoutRotation=p.rotation,cU({el:I,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:h,tickIndex:e}}),m){var E,O,P,L,R=mF.makeAxisEventDataBase(r);R.targetType="axisLabel",R.value=h,R.tickIndex=e;var N=t.tick.break;if(N){var z=N.parsedBreak;R.break={start:z.vmin,end:z.vmax}}"category"===a.type&&(R.dataIndex=y),a2(I).eventData=R,N&&(E=r,O=o,P=I,L=N,P.on("click",function(t){var e={type:"expandAxisBreak",breaks:[{start:L.parsedBreak.breakOption.start,end:L.parsedBreak.breakOption.end}]};e[E.axis.dim+"AxisIndex"]=E.componentIndex,O.dispatchAction(e)}))}g.push(I),l.add(I)}),mZ(e,tA(g,function(t){return{label:t,priority:mO(t).labelInfo.tick.break?t.z2+(v-_+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,h)}(t,e,r,s,n,a);var l,h,u,d,c,p=e.labelLayoutList;l=t,h=n,u=p,d=o,c=h.get(["axisLabel","margin"]),tI(u,function(t,e){var i=mk(t);if(i){var n=i.label,r=mO(n);i.suggestIgnore=n.ignore,n.ignore=!1,nY(mq,mX);var o=h.axis;mq.x=o.dataToCoord(g2(o.scale,r.labelInfo.tick)),mq.y=l.labelOffset+l.labelDirection*c,mq.rotation=r.layoutRotation,d.add(mq),mq.updateTransform(),d.remove(mq),mq.decomposeTransform(),nY(n,mq),n.markRedraw(),mw(i,!0),mk(i)}}),function(t,e,i){var n=lg();if(n){var r=n.retrieveAxisBreakPairs(i,function(t){return t&&mO(t.label).labelInfo.tick.break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===o||"auto"===o)&&tI(r,function(n){null.adjustBreakLabelPair(t.axis.inverse,e,[mk(i[n[0]]),mk(i[n[1]])])})}}(n,t.rotation,p);var f=t.optionHideOverlap;(function(t,e,i){var n=t.axis,r=t.get(["axisLabel","customValues"]);if("category"!==n.type||0!==gK(n.getLabelModel())){var o=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(o,0,1),l(a,s-1,s-2)}function l(t,o,a){var s=mk(e[o]),l=mk(e[a]),h=n.scale;if(s&&l){if(null==t){if(!i&&r)return;var u=mO(s.label).labelInfo.tick;if(gx(h)&&u.notNice||gS(h)&&u.offInterval)return void mU(s.label)}if(!1===t||s.suggestIgnore)return void mU(s.label);if(l.suggestIgnore)return void mU(l.label);if(!i){var d=[0,0,0,0];s=mT({marginForce:d},s),l=mT({marginForce:d},l)}mD(s,l,null,{touchThreshold:.1})&&(t?mU(l.label):mU(s.label))}}})(n,p,f),f&&function(t){var e=[];function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return!!e.suggestIgnore-!!t.suggestIgnore||e.priority-t.priority});for(var n=0;n<t.length;n++){var r=mk(t[n]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(mD(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(i(o),a&&i(a)):e.push(r)}}}(tO(p,function(t){return t&&!t.label.ignore})),function(t,e,i,n){var r,o=i.axis,a=e.ensureRecord(i),s=[],l=!!t.axisName&&gQ(t.nameLocation);tI(n,function(t){var e=mk(t);if(e&&!e.label.ignore){s.push(e);var i=a.transGroup;l&&(i.transform?eH(mR,i.transform):eN(mR),e.transform&&eB(mR,mR,e.transform),ie.copy(mN,e.localRect),mN.applyTransform(mR),r?r.union(mN):ie.copy(r=new ie(0,0,0,0),mN))}});var h=Math.abs(a.dirVec.x)>.1?"x":"y",u=a.transGroup[h];if(s.sort(function(t,e){return Math.abs(t.label[h]-u)-Math.abs(e.label[h]-u)}),l&&r){var d=o.getExtent(),c=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-c;r.union(new ie(c,0,p,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,i,n,p)}function mU(t){t&&(t.ignore=!0)}function mW(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord;a[0]=h,a[1]=0,s[0]=h,s[1]=i,e&&(es(a,a,e),es(s,s,e));var u=new dU({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});cI(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u);var d=mP(u);d.onBand=!!t[l].onBand,d.tickValue=t[l].tickValue}return o}function mj(t,e,i){if(mG(t)){var n=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(i.noPxChange){for(var r=!0,o=0;o<n.length;o++)r=r&&n[o]();if(r)return!1}n.length&&(e.remove(t.labelGroup),mZ(t,null,null,null))}return!0}function mG(t){return!!t.labelLayoutList}function mZ(t,e,i,n){t.labelLayoutList=e,t.labelGroup=i,t.axisLabelsCreationContext=n}var mq=new aF,mX=new aF;function mK(t,e,i){i=i||{};var n=e.axis,r={},o=n.getAxesOnZeroOf()[0],a=n.position,s=o?"onZero":a,l=n.dim,h=[t.x,t.x+t.width,t.y,t.y+t.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,c="x"===l?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));c[u.onZero]=Math.max(Math.min(p,c[1]),c[0])}r.position=["y"===l?c[u[s]]:h[0],"x"===l?c[u[s]]:h[3]],r.rotation=Math.PI/2*("x"!==l),r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,left:-1,right:1})[a],r.labelOffset=o?c[u[a]]-c[u.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),tj(i.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-f:f,r.z2=1,r}var mQ=rX(),mJ=function(){function t(t,e,i,n,r){var o,a,s,l,h=gS(t),u=h?e.getCategories().length:null;if(h){var d=e.getCategories(!0);l=d&&!d.length}var c=i.slice();(gb(t)||gw(t)||gx(t))&&(r7(c,m1(t,e.get("dataMin",!0))),r8(c,m1(t,e.get("dataMax",!0)))),isFinite(o=c[1]-c[0])&&o>=0||(c[0]=c[1]=0/0);var p=[],f=[!1,!1],g=e.get("min",!0);"dataMin"===g?(p[0]=c[0],f[0]=!0):(p[0]=m1(t,tz(g)?g({min:c[0],max:c[1]}):g),f[0]=null!=p[0]);var m=e.get("max",!0);"dataMax"===m?(p[1]=c[1],f[1]=!0):(p[1]=m1(t,tz(m)?m({min:c[0],max:c[1]}):m),f[1]=null!=p[1]);var _=function(t,e){var i;if(gS(t))i=[0,0];else{var n=e.get("boundaryGap");"boolean"==typeof n&&(n=null),i=tN(n)?n:[n,n]}return[m2(i[0]),m2(i[1])]}(t,e),v=h?null:c[1]-c[0]||Math.abs(c[0]);null==p[0]&&(p[0]=h?l?c[0]:u?0:0/0:c[0]-_[0]*v),null==p[1]&&(p[1]=h?l?c[1]:u?u-1:0/0:c[1]+_[1]*v),r9(p[0])||(p[0]=0/0),r9(p[1])||(p[1]=0/0);var y=l||(a=p[0])!=a||(s=p[1])!=s||h&&!u,b=gb(t),x=b&&e.needIncludeZero&&e.needIncludeZero();x&&(p[0]>0&&p[1]>0&&!f[0]&&(p[0]=0),p[0]<0&&p[1]<0&&!f[1]&&(p[1]=0));var w=!1;p[0]>p[1]&&(p.reverse(),w=!0);var S=m1(t,e.get("startValue",!0)),k=null!=S;!rB(S)&&n&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),rB(S)&&(k||!b||x)&&(S<p[0]&&!f[0]?(p[0]=S,f[0]=!0):S>p[1]&&!f[1]&&(p[1]=S,f[1]=!0)),m0(this._i={scale:t,dataMM:c,noZoomEffMM:p,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:S,isBlank:y,incl0:x,tggAxInv:w,ctnShp:r},p)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,i=t.noZoomEffMM,n=t.zoomFixMM,r=t.fixMM,o={fixMM:r,zoomFixMM:n,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:i.slice()},a=o.effMM;return null!=e[0]&&(a[0]=e[0],r[0]=n[0]=!0),null!=e[1]&&(a[1]=e[1],r[1]=n[1]=!0),m0(t,a),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function m0(t,e){var i=t.scale,n=t.dataMM;i.sanitize&&(e[0]=i.sanitize(e[0],n),e[1]=i.sanitize(e[1],n),oe(e))}function m1(t,e){return null==e?null:e!=e?0/0:t.parse(e)}function m2(t){return nQ("boolean"==typeof t?0:t,1)||0}function m5(t){var e=mQ(t.scale);return e.extent||(e.extent=r4()),e}function m3(t,e){var i=t.scale,n=t.model,r=t.dim;i.rawExtentInfo||function(t,e,i,n,r){var o,a,s=m5(e),l=s.extent,h=!1;(a=md(pH(o=e.model.ecModel)).axSer)&&function(t,e,i){if(e)for(var n=0;n<e.length;n++){var r=e[n];t.isSeriesFiltered(r)||i(r)}}(o,a.get(e.model.uid),function(n){if(n.boxCoordinateSystem){var r=l0(n).coord,o=s.dimIdxInCoord;if(o>=0&&tN(r)){var a=r[o];null==a||tN(a)||r6(l,t.parse(a))}}else if(n.coordinateSystem){var u=n.getData();if(u){var d,c=t.getFilter?t.getFilter():null;tI((d={},tI(u.mapDimensionsAll(i),function(t){d[gG(u,t)?u.getCalculationInfo("stackResultDimension"):t]=!0}),tP(d)),function(t){var e;ot((e=u.getApproximateExtent(t,c))[0],e[1])&&(e[0]<l[0]&&(l[0]=e[0]),e[1]>l[1]&&(l[1]=e[1]))})}n.__requireStartValue&&n.__requireStartValue(e)&&(h=!0)}});var u=function(t,e,i){var n=g5(t,i),r=i.get("containShape",!0);if(null!=r||n||(r=!0),!r)return!1;var o=!1;return mp(e,function(t){o=!!m6.get(t)||o}),o}(t,e,n),d=new mJ(t,n,l,h,u);m4(t,d,r),s.extent=null}(i,t,r,n,e)}function m4(t,e,i){t.rawExtentInfo=e,e.from=i}var m6=t5();function m7(t,e,i,n,r){t.rawExtentInfo||(o={scale:t,model:e},a=r||r4(),m4(s=o.scale,new mJ(s,o.model,a,!1,!1),3));var o,a,s,l=t.rawExtentInfo.makeFinal(),h=l.effMM;return t.setExtent(h[0],h[1]),t.setBlank(l.isBlank),n&&l.tggAxInv&&i&&!i.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),l}function m8(t,e){var i,n,r,o,a,s,l,h,u,d,c,p,f,g,m,_,v,y=gw(t),b=y?t.intervalStub:t,x=e.fixMinMax||[],w=y?t.getExtent():null,S=b.getExtent(),k=gT(S,x,e.rawExtentResult);b.setExtent(k[0],k[1]),k=b.getExtent();var C=y?(i=b,n=gM(e.splitNumber,10),r=i.getExtent(),a=rh(rO(o=g_(i)),1),n/o*a<=.5&&(a*=10),s=gk(a),l=[rw(rp(r[0]/a)*a,s),rw(rc(r[1]/a)*a,s)],{intervalPrecision:s,interval:a,niceExtent:l}):(h=b,d=gM((u=e).splitNumber,5),c=g_(h),p=u.minInterval,f=u.maxInterval,g=rL(c/d,!0),null!=p&&g<p&&(g=p),null!=f&&g>f&&(g=f),m=gk(g),v=[rw(rp((_=h.getExtent())[0]/g)*g,m),rw(rc(_[1]/g)*g,m)],{interval:g,intervalPrecision:m,niceExtent:v}),T=C.intervalPrecision,M=C.interval,D=e.userInterval;null!=D&&(C.interval=D,C.intervalPrecision=gk(D)),x[0]||(k[0]=rw(rc(k[0]/M)*M,T)),x[1]||(k[1]=rw(rp(k[1]/M)*M,T)),null!=D&&(C.niceExtent=k.slice()),g1(t,x,S,k,w,C)}function m9(t){var e,i,n,r,o,a,s,l,h=t.scale,u=t.model,d=u.axis,c=u.ecModel;e=h,i=u,n=d,o=m7(e,i,r=c,n,null),a=gb(e)||gx(e),s=e,l={splitNumber:i.get("splitNumber"),fixMinMax:o.fixMM,userInterval:i.get("interval"),minInterval:a?i.get("minInterval"):null,maxInterval:a?i.get("maxInterval"):null,rawExtentResult:o},_t[s.type](s,l),n&&r&&function(t,e,i,n){if(i.ctnShp&&(mp(t,function(e){var i=m6.get(e);if(i){var o=i(t,n);o&&(r7(r=r||[0,0],o[0]),r8(r,o[1]),gZ(t).noOnMyZero=!0)}}),r)){var r,o=e.getExtent();if(gS(e))t.onBand||e.setExtent2(1,rl(o[0],o[0]+r[0]),rh(o[1],o[1]+r[1]));else{var a=o.slice();i.zoomFixMM[0]||(a[0]=rl(a[0],e.transformOut(e.transformIn(a[0],null)+r[0],null))),i.zoomFixMM[1]||(a[1]=rh(a[1],e.transformOut(e.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(1,a[0],a[1])}}}(n,e,o,r)}var _t={interval:m8,log:m8,time:function(t,e){var i=t.getExtent();if(i[0]===i[1]&&(i[0]-=864e5,i[1]+=864e5),-1/0===i[1]&&1/0===i[0]){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-864e5}t.setExtent(i[0],i[1]);var r=gM(e.splitNumber,10),o=g_(t)/r,a=e.minInterval,s=e.maxInterval;null!=a&&o<a&&(o=a),null!=s&&o>s&&(o=s);var l=gL.length,h=Math.min(gO(gL,o,0,l),l-1),u=gL[h][1],d=gL[Math.max(h-1,0)][0];t.setTimeInterval({approxInterval:o,interval:u,minLevelUnit:d})},ordinal:t7},_e=[[3,1],[0,2]],_i=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=g4,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;function n(t){for(var e=tP(t),i=[],n=e.length-1;n>=0;n--){var r=t[+e[n]];r.__alignTo?i.push(r):m9(r)}tI(i,function(t){var e,i;(e=t,i=t.__alignTo,lv(e.scale)||lv(i.scale)||i.scale.getTicks().length<2)?m9(t):function(t,e){var i,n,r,o,a,s,l,h,u,d=t.scale,c=t.model,p=m7(d,c,c.ecModel,t,null),f=gw(d),g=gw(e)?e.intervalStub:e,m=f?d.intervalStub:d,_=d.base,v=g.getTicks(),y=g.getTicks({expandToNicedExtent:!0}),b=v.length-1;if(1===b)i=n=0,r=1;else if(2===b){var x=ru(v[0].value-v[1].value),w=ru(v[1].value-v[2].value);i=n=0,x===w?r=2:(r=1,x<w?i=x/w:n=w/x)}else{var S=g.getConfig().interval;i=(1-(v[0].value-y[0].value)/S)%1,n=(1-(y[b].value-v[b].value)/S)%1,r=b-!!i-!!n}var k=p.zoomFixMM,C=k[0]||k[1],T=[p.fixMM[0]||C,p.fixMM[1]||C],M=d.getExtent(),D=m.getExtent(),I=gT(D,T);function A(t){for(var e=0;e<50&&!t();e++)l=gk(s=f?s*rh(_,2):function(t){var e=rP(t),i=rf(10,e),n=rd(t/i);return n?2===n?n=3:3===n?n=5:n*=2:n=1,rw(n*i,-e)}(s))}function E(){o=rw(u-s*i,l)}function O(){a=rw(h+s*n,l)}function P(){u=i?rw(o+s*i,l):o}function L(){h=n?rw(a-s*n,l):a}if(T[0]&&T[1]){o=I[0],s=((a=I[1])-o)/(r+i+n);var R=t.getExtent(),N=ru(R[1]-R[0]);l=rC([a,o],N,.5/r),P(),L(),rB(l)&&(s=rw(s,l))}else{var z=I[1]-I[0];l=gk(s=f?rh(rO(z),1):rL(z/r,2)),T[0]?(o=I[0],A(function(){if(P(),h=rw(u+s*r,l),O(),a>=I[1])return!0})):T[1]?(a=I[1],A(function(){if(L(),u=rw(h-s*r,l),E(),o<=I[0])return!0})):A(function(){u=rw(rp(I[0]/s)*s,l);var t=rd(((h=rw(rc(I[1]/s)*s,l))-u)/s);if(t<=r){var e=r-t,i=void 0,n=p.incl0||f;if(n&&0===I[0])i=[0,e];else if(n&&0===I[1])i=[e,0];else{var d=rc(e/2);i=e%2==0?[d,d]:o+a<I[0]+I[1]?[d,d+1]:[d+1,d]}if(u=rw(u-s*i[0],l),h=rw(h+s*i[1],l),E(),O(),o<=I[0]&&a>=I[1])return!0}})}g1(d,T,D,[o,a],M,{interval:s,intervalCount:r,intervalPrecision:l,niceExtent:[u,h]})}(t,t.__alignTo.scale)})}tI(this._axesList,function(t){m3(t,1);var e=t.scale;gS(e)&&e.setSortInfo(t.model.get("categorySortInfo"))}),n(i.x),n(i.y);var r={};tI(i.x,function(t){_n(i,"y",t,r)}),tI(i.y,function(t){_n(i,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){var n=l4(t,e),r=this._rect=l3(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(_a(o,r),!i){var l=(u=r,d=a,c=o,p=s,f=e,g=new mL(_u),tI(c,function(t){return tI(t,function(t){gJ(t.model)&&(t.axisBuilder=function(t,e,i,n,r,o){for(var a,s=mK(t,i),l=!1,h=!1,u=0;u<e.length;u++)(gb(a=e[u].getOtherAxis(i.axis).scale)||gw(a))&&(l=h=!0,"category"===i.axis.type&&i.axis.onBand&&(h=!1));return s.axisLineAutoShow=l,s.axisTickAutoShow=h,s.defaultNameMoveOverlap=o,new mF(i,n,s,r)}(u,d,t.model,f,g,!p))})}),g),h=void 0;if(s)W?(W(this._axesList,r),_a(o,r)):h=_l(r.clone(),"axisLabel",null,r,o,l,n);else{var u,d,c,p,f,g,m,_,v,y,b,x,w=(m=t,_=r,v=n,"same"===(b=m.get("outerBoundsMode",!0))?y=_.clone():(null==b||"auto"===b)&&(y=l3(m.get("outerBounds",!0)||f5,v.refContainer)),{outerBoundsRect:y,parsedOuterBoundsContain:null==(x=m.get("outerBoundsContain",!0))||"auto"===x||0>tT(["all","axisLabel"],x)?"all":x,outerBoundsClamp:[rx(tG(m.get("outerBoundsClampWidth",!0),f3["0"]),_.width),rx(tG(m.get("outerBoundsClampHeight",!0),f3["1"]),_.height)]}),S=w.outerBoundsRect,k=w.parsedOuterBoundsContain,C=w.outerBoundsClamp;S&&(h=_l(S,k,C,r,o,l,n))}_h(r,o,2,null,h,n),tI(this._coordsList,function(t){t.calcAffineTransform()})}},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i)return i[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}tH(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",r0).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",r0).models[0],a=t.gridModel,s=this._coordsList;return n?0>tT(s,e=n.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?i=this.getAxis("x",r.componentIndex):o?i=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,i){var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(i,n){var l,h;if(l=i,h=t,l.getCoordSysModel()===h){var u,d=i.get("position");"x"===e?"top"!==d&&"bottom"!==d&&(d=o.bottom?"top":"bottom"):"left"!==d&&"right"!==d&&(d=o.left?"right":"left"),o[d]=!0;var c=(null!=(u=i.get("type"))&&(t6(gl,u)||gd.getClass(u))||(u="value"),u),p=new mb(e,function(t,e,i){var n;switch(lg()&&(n=g0(t,e,i)),e){case"category":return new gI({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:r4()});case"time":return new gP({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new gz({logBase:t.get("logBase"),breakOption:n});case"value":return new gE({breakOption:n});default:return new(gd.getClass(e)||gE)({})}}(i,c,!0),[0,0],c,d);p.onBand=g5(p.scale,i),p.inverse=i.get("inverse"),i.axis=p,p.model=i,p.grid=r,p.index=n,r._axesList.push(p),a[e][n]=p,s[e]++}}}this._axesMap=a,tI(a.x,function(e,i){tI(a.y,function(r,o){var a="x"+i+"y"+o,s=new g7(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)})}),_o(a.x),_o(a.y)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return tI(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);0>tT(e,r)&&e.push(r),0>tT(i,o)&&i.push(o)}),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a),tI(a._axesList,function(e){var i;i=t.dimIdxMap,m5(e).dimIdxInCoord=i.get(e.dim)})}),e.eachSeries(function(t){var e,i;!function(t){var e=t.targetModel,i=t.coordSysType,n=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=function(t){var e=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=0;if(e){var r="series"===t.mainType;(null==i&&(i=r?"data":"box"),"data"===i)?(n=1,r||(n=0)):"box"!==i||(n=2,r||lX[e])||(n=0)}return{coordSysType:e,kind:n}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=i),0!==a&&s===i){var l=n(i,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}}({targetModel:t,coordSysType:f4,coordSysProvider:function(){var n,r=(tI(n={xAxisModel:null,yAxisModel:null},function(e,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,r0).models[0];n[i]=o}),n),o=r.xAxisModel,a=r.yAxisModel;return e=o.axis,i=a.axis,o.getCoordSysModel().coordinateSystem.getCartesian(o.componentIndex,a.componentIndex)}}),e&&i&&(mf(e,t,f4),mf(i,t,f4))},this),n},t.dimensions=g4,t.dimIdxMap=gW(g4),t}();function _n(t,e,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=i.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)_r(s,o[l])&&(r=o[l]);else for(var h in o)if(t6(o,h)&&_r(s,o[h])&&!n[u(o[h])]){r=o[h];break}r&&(n[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function _r(t,e){if(!e)return!1;var i,n,r,o=ot(n=(i=e.scale.getExtentUnsafe(0,null))[0],r=i[1])?0===n||0===r?2:n<0&&r>0?1:3:3,a=e&&"category"!==e.type&&"time"!==e.type&&3!==o;return a&&"auto"===t&&gZ(e).noOnMyZero&&(a=!1),a}function _o(t){for(var e,i=tP(t),n=[],r=i.length-1;r>=0;r--){var o,a=t[+i[r]];(gb(o=a.scale)||gw(o))&&null==g0(a.model,a.type,!0)&&(a.model.get("alignTicks")&&null==a.model.get("interval")?n.push(a):e=a)}e||(e=n.pop()),e&&tI(n,function(t){t.__alignTo=e})}function _a(t,e){tI(t.x,function(t){return _s(t,e.x,e.width)}),tI(t.y,function(t){return _s(t,e.y,e.height)})}function _s(t,e,i){var n,r,o=[0,i],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),r=(n=t.getExtent())[0]+n[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function _l(t,e,i,n,r,o,a){_h(n,r,1,e,!1,a);var s=[0,0,0,0];h(0),h(1),u(n,0,0/0),u(n,1,0/0);var l=null==function(t,e){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(void 0,t[i],i,t))return t[i]}}(s,function(t){return t>0});return cH(n,s,!0,!0,i),_a(r,n),l;function h(t){tI(r[cf[t]],function(e){if(gJ(e.model)){var i=o.ensureRecord(e.model),n=i.labelInfoList;if(n)for(var r=0;r<n.length;r++){var a=n[r],s=e.scale.normalize(g2(e.scale,mO(a.label).labelInfo.tick));s=1===t?1-s:s,u(a.rect,t,s),u(a.rect,1-t,0/0)}var l=i.nameLayout;if(l){var s=gQ(i.nameLocation)?.5:0/0;u(l.rect,t,s),u(l.rect,1-t,0/0)}}})}function u(e,i,n){var r=t[cf[i]]-e[cf[i]],o=e[cg[i]]+e[cf[i]]-(t[cg[i]]+t[cf[i]]);r=d(r,1-n),o=d(o,n);var a=_e[i][0],l=_e[i][1];s[a]=rh(s[a],r),s[l]=rh(s[l],o)}function d(t,e){return t>0&&e==e&&e>1e-4&&(t/=e),t}}function _h(t,e,i,n,r,o){var a=2===i;tI(e,function(e){return tI(e,function(e){if(gJ(e.model)){var i,n;i=e.axisBuilder,n=mK(t,e.model),i.updateCfg(n),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r})}})});var s={x:0,y:0};function l(e){s[cf[1-e]]=t[cg[e]]<=.5*o.refContainer[cg[e]]?0:1-e==1?2:1}l(0),l(1),tI(e,function(t,e){return tI(t,function(t){gJ(t.model)&&(("all"===n||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var _u=function(t,e,i,n,r,o){var a="x"===i.axis.dim?"y":"x";mz(t,e,i,n,r,o),gQ(t.nameLocation)||tI(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&mV(t.labelInfoList,t.dirVec,n,r)})};function _d(t,e){return"all"===t||tN(t)&&tT(t,e)>=0||t===e}function _c(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[_f(t)]}function _p(t){return!!t.get(["handle","show"])}function _f(t){return t.type+"||"+t.id}var _g={},_m=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.render=function(e,i,n,r){this.axisPointerClass&&function(t){var e=_c(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=_p(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent();(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},e.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},e.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o,a=(o=_c(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){_g[t]=e},e.getAxisPointerClass=function(t){return t&&_g[t]},e.type="axis",e}(uJ),__=rX(),_v=["splitArea","splitLine","minorSplitLine","breakArea"],_y=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="CartesianAxisPointer",i}return ti(e,t),e.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new rn,this.group.add(this._axisGroup),gJ(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),tI(_v,function(t){e.get([t,"show"])&&_b[t](this,this._axisGroup,e,e.getCoordSysModel(),n)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||cR(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r))},e.prototype.remove=function(){__(this).splitAreaColors=null},e.type="cartesianAxis",e}(_m),_b={splitLine:function(t,e,i,n,r){var o=i.axis;if(!o.scale.isBlank()){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),h=!1!==a.get("showMinLine"),u=!1!==a.get("showMaxLine");l=tN(l)?l:[l];for(var d=n.coordinateSystem.getRect(),c=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],m=[],_=s.getLineStyle(),v=0;v<f.length;v++){var y=o.toGlobalCoord(f[v].coord);if((0!==v||h)&&(v!==f.length-1||u)){var b=f[v].tickValue;c?(g[0]=y,g[1]=d.y,m[0]=y,m[1]=d.y+d.height):(g[0]=d.x,g[1]=y,m[0]=d.x+d.width,m[1]=y);var x=p++%l.length,w=new dU({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:m[0],y2:m[1]},style:tC({stroke:l[x]},_),silent:!0});cI(w.shape,_.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,i,n,r){var o=i.axis,a=i.getModel("minorSplitLine").getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=o.isHorizontal(),h=o.getMinorTicksCoords();if(h.length)for(var u=[],d=[],c=a.getLineStyle(),p=0;p<h.length;p++)for(var f=0;f<h[p].length;f++){var g=o.toGlobalCoord(h[p][f].coord);l?(u[0]=g,u[1]=s.y,d[0]=g,d[1]=s.y+s.height):(u[0]=s.x,u[1]=g,d[0]=s.x+s.width,d[1]=g);var m=new dU({anid:"minor_line_"+h[p][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:c,silent:!0});cI(m.shape,c.lineWidth),e.add(m)}},splitArea:function(t,e,i,n,r){!function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(h.length){var u=s.length,d=__(t).splitAreaColors,c=t5(),p=0;if(d)for(var f=0;f<h.length;f++){var g=d.get(h[f].tickValue);if(null!=g){p=(g+(u-1)*f)%u;break}}var m=r.toGlobalCoord(h[0].coord),_=a.getAreaStyle();s=tN(s)?s:[s];for(var f=1;f<h.length;f++){var v=r.toGlobalCoord(h[f].coord),y=void 0,b=void 0,x=void 0,w=void 0;r.isHorizontal()?(y=m,b=l.y,x=v-y,w=l.height,m=y+x):(y=l.x,b=m,x=l.width,w=v-b,m=b+w);var S=h[f-1].tickValue;null!=S&&c.set(S,p),e.add(new aF({anid:null!=S?"area_"+S:null,shape:{x:y,y:b,width:x,height:w},style:tC({fill:s[p]},_),autoBatch:!0,silent:!0})),p=(p+1)%u}__(t).splitAreaColors=c}}}(t,e,i,n)},breakArea:function(t,e,i,n,r){i.axis.scale}},_x=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="xAxis",e}(_y),_w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=_x.type,e}return ti(e,t),e.type="yAxis",e}(_y),_S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return ti(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new aF({shape:t.coordinateSystem.getRect(),style:tC({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(uJ),_k={offset:0};function _C(t){t.registerComponentView(_S),t.registerComponentModel(f6),t.registerCoordinateSystem("cartesian2d",_i),gh(t,"x",f8,_k),gh(t,"y",f8,_k),t.registerComponentView(_x),t.registerComponentView(_w),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var _T=rX();function _M(t,e,i,n){!function t(e,i){if(!(tH(e)&&tH(i)))return e===i;var n=!0;return tI(i,function(i,r){n=n&&t(e[r],i)}),!!n}(_T(i).lastProp,n)&&(_T(i).lastProp=n,e?cs(i,n,t):(i.stopAnimation(),i.attr(n)))}function _D(t,e){t[e.get(["label","show"])?"show":"hide"]()}function _I(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function _A(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function _E(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:gX(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tI(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),tB(a)?o=a.replace("{value}",o):tz(a)&&(o=a(s))}return o}function _O(t,e,i){var n=eR();return eF(n,n,i.rotation),eV(n,n,i.position),cP([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}var _P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o,a,s,l,h,u,d,c,p,f,g,m,_,v,y,b,x,w,S,k=i.axis,C=k.grid,T=n.get("type"),M=k.getGlobalExtent(),D=_L(C,k).getOtherAxis(k).getGlobalExtent(),I=k.toGlobalCoord(k.dataToCoord(e,!0));if(T&&"none"!==T){var A,E,O,P=(E=n.get("type"),O=n.getModel(E+"Style"),"line"===E?(A=O.getLineStyle()).fill=null:"shadow"===E&&((A=O.getAreaStyle()).stroke=null),A),L=_R[T](k,I,M,D,n.get("seriesDataIndices"),n.ecModel);L.style=P,t.graphicKey=L.type,t.pointer=L}var R=mK(C.getRect(),i);d=mF.innerTextLayout(R.rotation,0,R.labelDirection),R.labelMargin=n.get(["label","margin"]),c={position:_O(i.axis,e,R),align:d.textAlign,verticalAlign:d.textVerticalAlign},p=_E(n.get("value"),i.axis,i.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),g=tX((f=n.getModel("label")).get("padding")||0),_=nZ(p,m=f.getFont()),v=c.position,y=_.width+g[1]+g[3],b=_.height+g[0]+g[2],"right"===(x=c.align)&&(v[0]-=y),"center"===x&&(v[0]-=y/2),"bottom"===(w=c.verticalAlign)&&(v[1]-=b),"middle"===w&&(v[1]-=b/2),o=v,a=y,s=b,h=(l=r).getWidth(),u=l.getHeight(),o[0]=Math.min(o[0]+a,h)-a,o[1]=Math.min(o[1]+s,u)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),(S=f.get("backgroundColor"))&&"auto"!==S||(S=i.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:sJ(f,{text:p,font:m,fill:f.getTextColor(),padding:g,backgroundColor:S}),z2:10}},e.prototype.getHandleTransform=function(t,e,i){var n=mK(e.axis.grid.getRect(),e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=_O(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.grid,a=r.getGlobalExtent(!0),s=_L(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),h=[t.x,t.y];h[l]+=e[l],h[l]=rl(a[1],h[l]),h[l]=rh(a[0],h[l]);var u=(s[1]+s[0])/2,d=[u,u];return d[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=tR(_M,e,u);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,e)}else a=this._group=new rn,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);_A(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&m_(n).w>a)return!0;if(o){var s=_c(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(t,e,i,n,r){},t.prototype.createPointerEl=function(t,e,i,n){var r=e.pointer;if(r){var o=_T(t).pointerEl=new tt[r.type](tw(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=_T(t).labelEl=new a1(tw(e.label));t.add(r),_D(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=_T(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=_T(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),_D(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),r=this._handle,o=i.getModel("handle"),a=i.get("status");if(!o.get("show")||!a||"hide"===a){r&&n.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=cB(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){eA(t.event)},onmousedown:tL(this._onHandleDragMove,this,0,0),drift:tL(this._onHandleDragMove,this),ondragend:tL(this._onHandleDragEnd,this)}),n.add(r)),_A(r,i,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tN(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,pa(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){_M(this._axisPointerModel,!e&&this._moveAnimation,this._handle,_I(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(_I(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(_I(n)),_T(i).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(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ps(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},t}());function _L(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var _R={line:function(t,e,i,n){var r,o,a;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],o=[e,n[1]],{x1:r[a=(a=_N(t))||0],y1:r[1-a],x2:o[a],y2:o[1-a]})}},shadow:function(t,e,i,n,r,o){var a,s,l,h=m_(t,{fromStat:{sers:tA(r,function(t){return o.getSeriesByIndex(t.seriesIndex)})},min:1}).w,u=n[1]-n[0],d=[rh(rl(i[0],i[1]),e-h/2),rl(e+h/2,rh(i[0],i[1]))],c=d[0],p=d[1];return{type:"Rect",shape:(a=[c,n[0]],s=[p-c,u],{x:a[l=(l=_N(t))||0],y:a[1-l],width:s[l],height:s[1-l]})}}};function _N(t){return+("x"!==t.dim)}var _z=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:hn.color.border,width:1,type:"dashed"},shadowStyle:{color:hn.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:hn.color.neutral00,padding:[5,7,5,7],backgroundColor:hn.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:hn.color.accent40,throttle:40}},e}(ht),_B=rX();function _V(t,e,i){if(!tr.node){var n=e.getZr();_B(n).records||(_B(n).records={}),function(t,e){_B(t).initialized||(_B(t).initialized=!0,i("click",tR(_H,"click")),i("mousemove",tR(_H,"mousemove")),i("mousewheel",tR(_H,"mousewheel")),i("globalout",_F));function i(i,n){t.on(i,function(i){var r,o,a,s,l,h,u,d,c=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tI(_B(t).records,function(t){t&&n(t,i,c.dispatchAction)}),s=c.pendings,l=e,u=s.showTip.length,d=s.hideTip.length,u?h=s.showTip[u-1]:d&&(h=s.hideTip[d-1]),h&&(h.dispatchAction=null,l.dispatchAction(h))})}}(n,e),(_B(n).records[t]||(_B(n).records[t]={})).handler=i}}function _F(t,e,i){t.handler("leave",null,i)}function _H(t,e,i,n){e.handler(t,i,n)}function _Y(t,e){if(!tr.node){var i=e.getZr();(_B(i).records||{})[t]&&(_B(i).records[t]=null)}}var _$=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";_V("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){_Y("axisPointer",e)},e.prototype.dispose=function(t,e){_Y("axisPointer",e)},e.type="axisPointer",e}(uJ);function _U(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=rq(o,t);if(null==a||a<0||tN(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var h=l.getBaseAxis(),u=l.getOtherAxis(h).dim,d=h.dim,c=+("x"===u||"radius"===u),p=o.mapDimension(d),f=[];f[c]=o.get(p,a),f[1-c]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(f)||[]}else n=l.dataToPoint(o.getValues(tA(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var _W=rX();function _j(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tL(i.dispatchAction,i),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){_K(r)&&(r=_U({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,h,u=_K(r),d=t.axesInfo,c=a.axesInfo,p="leave"===n||_K(r),f={},g={},m={list:[],map:{}},_={showPointer:tR(_Z,g),showTooltip:tR(_q,m)};tI(a.coordSysMap,function(t,e){var i=u||t.containPoint(r);tI(a.coordSysAxesInfo[e],function(t,e){var n=t.axis,o=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(d,t);if(!p&&i&&(!d||o)){var a=o&&o.value;null!=a||u||(a=n.pointToData(r)),null!=a&&_G(t,a,_,!1,f)}})});var v={};return tI(c,function(t,e){var i=t.linkGroup;i&&!g[e]&&tI(i.axesInfo,function(e,n){var r=g[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,_X(e),_X(t)))),v[t.key]=o}})}),tI(v,function(t,e){_G(c[e],t,_,!0,f)}),s=g,l=c,h=f.axesInfo=[],tI(l,function(t,e){var i=t.axisPointerModel.option,n=s[e];n?(t.useHandle||(i.status="show"),i.value=n.value,i.seriesDataIndices=(n.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&h.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),function(t,e,i,n){if(_K(e)||!t.list.length)return n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(m,r,t,o),function(t,e){var i=e.getZr(),n="axisPointerLastHighlights",r=_W(i)[n]||{},o=_W(i)[n]={};tI(t,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&tI(i.seriesDataIndices,function(t){o[t.seriesIndex+"|"+t.dataIndex]=t})});var a=[],s=[];function l(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}tI(r,function(t,e){o[e]||s.push(l(t))}),tI(o,function(t,e){r[e]||a.push(l(t))}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(c,i),f}}function _G(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a,s,l,h,u,d,c,p,f=(a=e,h=(l=(s=t).axis).dim,u=a,d=[],c=Number.MAX_VALUE,p=-1,tI(s.seriesModels,function(t,e){var i,n,r=t.getData().mapDimensionsAll(h);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);n=o.dataIndices,i=o.nestestValue}else{if(!(n=t.indicesOfNearest(h,r[0],a,"category"===l.type?.5:null)).length)return;i=t.getData().get(r[0],n[0])}if(rB(i)){var s=a-i,f=Math.abs(s);f<=c&&((f<c||s>=0&&p<0)&&(c=f,p=s,u=i,d.length=0),tI(n,function(e){d.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:d,snapToValue:u}),g=f.payloadBatch,m=f.snapToValue;g[0]&&null==r.seriesIndex&&tk(r,g[0]),!n&&t.snap&&o.containData(m)&&null!=m&&(e=m),i.showPointer(t,e,g),i.showTooltip(t,f,m)}}function _Z(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function _q(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,h=_f(l),u=t.map[h];u||(u=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function _X(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function _K(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function _Q(t){_m.registerAxisPointerClass("CartesianAxisPointer",_P),t.registerComponentModel(_z),t.registerComponentView(_$),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tN(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){var i,n,r,o,a,s,l,h,u;t.getComponent("axisPointer").coordSysAxesInfo=(n=i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],h=[],tI(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=_f(t.model),i=n.coordSysAxesInfo[e]={};n.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tI(t.getAxes(),tR(p,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var u="axis"===o.get("trigger"),d="cross"===o.get(["axisPointer","type"]),c=t.getTooltipAxes(o.get(["axisPointer","axis"]));(u||d)&&tI(c.baseAxes,tR(p,!d||"cross",u)),d&&tI(c.otherAxes,tR(p,"cross",!1))}}function p(e,a,u){var d=u.model.getModel("axisPointer",s),c=d.get("show");if(c&&("auto"!==c||e||_p(d))){null==a&&(a=d.get("triggerTooltip"));var p=(d=e?function(t,e,i,n,r,o){var a=e.getModel("axisPointer"),s={};tI(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=tw(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var h=a.get(["label","show"]);if(l.show=null==h||h,!o){var u=s.lineStyle=a.get("crossStyle");u&&tC(l,u.textStyle)}}return t.model.getModel("axisPointer",new ls(s,i,n))}(u,o,s,r,e,a):d).get("snap"),f=d.get("triggerEmphasis"),g=_f(u.model),m=a||p||"category"===u.type,_=n.axesInfo[g]={key:g,axis:u,coordSys:t,axisPointerModel:d,triggerTooltip:a,triggerEmphasis:f,involveSeries:m,snap:p,useHandle:_p(d),seriesModels:[],linkGroup:null};i[g]=_,n.seriesInvolved=n.seriesInvolved||m;var v=function(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(_d(o[n+"AxisId"],i.id)||_d(o[n+"AxisIndex"],i.componentIndex)||_d(o[n+"AxisName"],i.name))return r}}(l,u);if(null!=v){var y=h[v]||(h[v]={axesInfo:{}});y.axesInfo[g]=_,y.mapper=l[v].mapper,_.linkGroup=y}}}}),i.seriesInvolved&&(u=i,t.eachSeries(function(t){var e=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);e&&e.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&tI(u.coordSysAxesInfo[_f(e.model)],function(i){var n=i.axis;e.getAxis(n.dim)===n&&(i.seriesModels.push(t),null==i.seriesDataCount&&(i.seriesDataCount=0),i.seriesDataCount+=t.getData().count())})})),i)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},_j)}var _J=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:hn.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:hn.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:hn.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:hn.color.tertiary,fontSize:14}},e}(ht);function _0(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function _1(t){if(tr.domSupported){for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}}var _2=_1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function _5(t,e){if(!t)return e;e=lU(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}var _3=_5(_1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),_4=_5(_2,"transform"),_6="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tr.transform3dSupported?"will-change:transform;":"");function _7(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!tr.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=tr.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+_4+":"+a+";":[["top",0],["left",0],[_2,a]]}function _8(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&ev(e_,a,n,r,!0)&&ev(t,i,e_[0],e_[1])}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var _9=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tr.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),r=e.appendTo,o=r&&(tB(r)?document.querySelector(r):tU(r)?r:tz(r)&&r(t.getDom()));_8(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=n.handler;eI(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,i,n=this._api.getDom(),r=(e="position",(i=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?e?i[e]:i:null),o=n.style;"absolute"!==o.position&&"absolute"!==r&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i,n,r,o,a,s,l,h,u,d,c,p,f,g,m,_,v,y,b,x,w,S,k,C,T=this.el,M=T.style,D=this._styleCoord;T.innerHTML?M.cssText=_6+(i=!this._firstShow,n=this._longHide,r=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),h=t.get("shadowColor"),u=t.get("shadowOffsetX"),d=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=uF(t,"html"),f=u+"px "+d+"px "+l+"px "+h,o.push("box-shadow:"+f),i&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",m="",_="",r&&(_="opacity"+(m=" "+a/2+"s "+g)+",visibility"+m),n||(m=" "+a+"s "+g,_+=(_.length?",":"")+(tr.transformSupported?""+_4+m:",left"+m+",top"+m)),_3+":"+_)),s&&o.push("background-color:"+s),tI(["width","color","radius"],function(e){var i="border-"+e,n=lU(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))}),o.push((v=[],y=c.get("fontSize"),(b=c.getTextColor())&&v.push("color:"+b),v.push("font:"+c.getFont()),x=tG(c.get("lineHeight"),Math.round(3*y/2)),y&&v.push("line-height:"+x+"px"),w=c.get("textShadowColor"),S=c.get("textShadowBlur")||0,k=c.get("textShadowOffsetX")||0,C=c.get("textShadowOffsetY")||0,w&&S&&v.push("text-shadow:"+k+"px "+C+"px "+S+"px "+w),tI(["decoration","align"],function(t){var e=c.get(t);e&&v.push("text-"+t+":"+e)}),v.join(";"))),null!=p&&o.push("padding:"+tX(p).join("px ")+"px"),o.join(";")+";")+_7(D[0],D[1],!0)+"border-color:"+lq(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):M.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(tB(r)&&"item"===i.get("trigger")&&!_0(i)&&(a=function(t,e,i){if(!tB(i)||"inside"===i)return"";var n,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=lq(e);var s=n="left"===(n=i)?"right":"right"===n?"left":"top"===n?"bottom":"top",l=Math.max(1.5*Math.round(a),6),h="",u=_4+":";tT(["left","right"],s)>-1?(h+="top:50%",u+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(h+="left:50%",u+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var d=r*Math.PI/180,c=l+a,p=c*Math.abs(Math.cos(d))+c*Math.abs(Math.sin(d));h+=";"+s+":-"+Math.round(((p-Math.SQRT2*a)/2+Math.SQRT2*a-(p-c)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",h+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+o+";"].join("")+'"></div>'}(i,n,r)),tB(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tN(t)||(t=[t]);for(var s=0;s<t.length;s++)tU(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(_8(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;tI(_7(i[0],i[1]),function(t){n[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",tr.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function i(t){var e=t[em];e&&(e.clearMarkers&&e.clearMarkers(),delete t[em])}t&&i(t),e&&i(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var i=e.parentNode;i&&i.removeChild(e)}this.el=this._container=null},t}(),vt=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),vn(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n,r){var o=this;tH(t)&&h1(""),this.el&&this._zr.remove(this.el);var a=i.getModel("textStyle");this.el=new a1({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:uF(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),tI(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=i.get(t)}),tI(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=vi(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;vn(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=ve(r.borderWidth||0),a=vi(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function ve(t){return Math.max(0,t)}function vi(t){var e=ve(t.shadowBlur||0),i=ve(t.shadowOffsetX||0),n=ve(t.shadowOffsetY||0);return{left:ve(e-i),right:ve(e+i),top:ve(e-n),bottom:ve(e+n)}}function vn(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var vr=new aF({shape:{x:-1,y:-1,width:2,height:2}}),vo=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.init=function(t,e){if(!tr.node&&e.getDom()){var i,n=t.getComponent("tooltip"),r=this._renderMode="auto"===(i=n.get("renderMode"))?tr.domSupported?"html":"richText":i||"html";this._tooltipContent="richText"===r?new vt(e):new _9(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,i){if(!tr.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?pa(this,"_updatePosition",50,"fixRate"):ps(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");_V("itemTooltip",this._api,tL(function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!tr.node&&i.getDom()){var r=vs(n,i);this._ticket="";var o=n.dataByCoordSys,a=function(t,e,i){var n,r=rJ(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=r2(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(i.getViewOfComponentModel(a).group.traverse(function(e){var i=a2(e).tooltipConfig;if(i&&i.name===t.name)return n=e,!0}),n))return{componentMainType:o,componentIndex:a.componentIndex,el:n}}}(n,e,i);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y)vr.x=n.x,vr.y=n.y,vr.update(),a2(vr).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:vr},r);else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=_U(n,e),h=l.point[0],u=l.point[1];null!=h&&null!=u&&this._tryShow({offsetX:h,offsetY:u,target:l.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(vs(n,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===va([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}},e.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){if("legend"===a2(i).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,pz(i,function(t){if(t.tooltipDisabled)return n=r=null,!0;n||r||(null!=a2(t).dataIndex?n=t:null!=a2(t).tooltipConfig&&(r=t))},!0),n?this._showSeriesItemTooltip(t,n,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=tL(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=va([e.tooltipOption],n),a=this._renderMode,s=[],l=uP("section",{blocks:[],noHeader:!0}),h=[],u=new uH;tI(t,function(t){tI(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,o=e.axis,d=o.scale.parse(r);if(e&&null!=r){var c=_E(r,o,i,t.seriesDataIndices,t.valueLabelOpt),p=uP("section",{header:c,noHeader:!tQ(c),sortBlocks:!0,blocks:[]});l.blocks.push(p),tI(t.seriesDataIndices,function(r){var o=i.getSeriesByIndex(r.seriesIndex),l=r.dataIndexInside,f=o.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=gX(e.axis,{value:d}),f.axisValueLabel=c,f.marker=u.makeTooltipMarker("item",lq(f.color),a);var g=ur(o.formatTooltip(l,!0,null)),m=g.frag;if(m){var _=va([o],n).get("valueFormatter");p.blocks.push(_?tk({valueFormatter:_},m):m)}g.text&&h.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),h.reverse();var d=e.position,c=uz(l,u,a,o.get("order"),i.get("useUTC"),o.get("textStyle"));c&&h.unshift(c);var p="richText"===a?"\n\n":"<br/>",f=h.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],d,null,u)})},e.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=a2(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,h=r.dataType,u=s.getData(h),d=this._renderMode,c=t.positionDefault,p=va([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,c?{position:c}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,h),m=new uH;g.marker=m.makeTooltipMarker("item",lq(g.color),d);var _=ur(s.formatTooltip(l,!1,h)),v=p.get("order"),y=p.get("valueFormatter"),b=_.frag,x=b?uz(y?tk({valueFormatter:y},b):b,m,d,v,n.get("useUTC"),p.get("textStyle")):_.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,m)}),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var n="html"===this._renderMode,r=a2(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tB(o)){var s=o;o={content:s,formatter:s},a=!0}a&&n&&o.content&&((o=tw(o)).content=ew(o.content));var l=[o],h=this._ecModel.getComponent(r.componentMainType,r.componentIndex);h&&l.push(h),l.push({formatter:o.content});var u=t.positionDefault,d=va(l,this._tooltipModel,u?{position:u}:null),c=d.get("content"),p=Math.random()+"",f=new uH;this._showOrMove(d,function(){var i=tw(d.get("formatterParams")||{});this._showTooltipContent(d,c,i,p,t.offsetX,t.offsetY,t.position,e,f)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var u=t.get("formatter");a=a||t.get("position");var d=e,c=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(u)if(tB(u)){var p=t.ecModel.get("useUTC"),f=tN(i)?i[0]:i,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;d=u,g&&(d=lM(f.axisValue,d,p)),d=lZ(d,i,!0)}else if(tz(u)){var m=tL(function(e,n){e===this._ticket&&(h.setContent(n,l,t,c,a),this._updatePosition(t,a,r,o,h,i,s))},this);this._ticket=n,d=u(i,n,m)}else d=u;h.setContent(d,l,t,c,a),h.show(t,c),this._updatePosition(t,a,r,o,h,i,s)}},e.prototype._getNearestPoint=function(t,e,i,n,r){return"axis"===i||tN(e)?{color:n||r}:tN(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=r.getSize(),u=t.get("align"),d=t.get("verticalAlign"),c=a&&a.getBoundingRect().clone();if(a&&c.applyTransform(a.transform),tz(e)&&(e=e([i,n],o,r.el,c,{viewSize:[s,l],contentSize:h.slice()})),tN(e))i=rb(e[0],s),n=rb(e[1],l);else if(tH(e)){var p=e;p.width=h[0],p.height=h[1];var f=l3(p,{width:s,height:l});i=f.x,n=f.y,u=null,d=null}else if(tB(e)&&a){var g=function(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,h=e.width,u=e.height;switch(t){case"inside":s=e.x+h/2-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+h/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+h/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+h+a,l=e.y+u/2-o/2}return[s,l]}(e,c,h,t.get("borderWidth"));i=g[0],n=g[1]}else{var m,_,v,y,b,x,w,S,k,C,g=(m=i,_=n,v=r,y=s,b=l,x=u?null:20,w=d?null:20,k=(S=v.getSize())[0],C=S[1],null!=x&&(m+k+x+2>y?m-=k+x:m+=x),null!=w&&(_+C+w>b?_-=C+w:_+=w),[m,_]);i=g[0],n=g[1]}if(u&&(i-=vl(u)?h[0]/2:"right"===u?h[0]:0),d&&(n-=vl(d)?h[1]/2:"bottom"===d?h[1]:0),_0(t)){var T,M,D,I,A,E,O,P,g=(T=i,M=n,D=r,I=s,A=l,O=(E=D.getSize())[0],P=E[1],T=Math.min(T+O,I)-O,M=Math.min(M+P,A)-P,[T=Math.max(T,0),M=Math.max(M,0)]);i=g[0],n=g[1]}r.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&tI(i,function(i,o){var a=i.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tI(a,function(t,i){var o=s[i]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tI(a,function(t,e){var i=l[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}),n&&tI(t.seriesDataIndices,function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!tr.node&&e.getDom()&&(ps(this,"_updatePosition"),this._tooltipContent.dispose(),_Y("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(uJ);function va(t,e,i){var n,r=e.ecModel;i?(n=new ls(i,r,r),n=new ls(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ls&&(a=a.get("tooltip",!0)),tB(a)&&(a={formatter:a}),a&&(n=new ls(a,n,r)))}return n}function vs(t,e){return t.dispatchAction||tL(e.dispatchAction,e)}function vl(t){return"center"===t||"middle"===t}var vh=["x","y","radius","angle","single"],vu=rX(),vd=["cartesian2d","polar","singleAxis"];function vc(t){return t+"Axis"}function vp(t){var e=t.ecModel,i={infoList:[],infoMap:t5()};return t.eachTargetAxis(function(t,n){var r=e.getComponent(vc(t),n);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=i.infoMap.get(a);s||(s={model:o,axisModels:[]},i.infoList.push(s),i.infoMap.set(a,s)),s.axisModels.push(r)}}}),i}function vf(t){var e=vu(pF(t).prepare);return e.axisProxyMap||(e.axisProxyMap=t5())}function vg(t){if(t)return vf(t.ecModel).get(t.uid)}function vm(t,e){var i=e.getAxisModel().axis.__alignTo;return i&&t.getAxisProxy(i.dim,i.model.componentIndex)?vg(i.model):null}var v_=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),vv=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return ti(e,t),e.prototype.init=function(t,e,i){var n=vy(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var e=vy(t);tS(this.option,t,!0),tS(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;tI([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=t5();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tI(vh,function(i){var n=this.getReferringComponents(vc(i),r1);if(n.specified){e=!0;var r=new v_;tI(n.models,function(t){r.add(t.componentIndex)}),t.set(i,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var i=this.ecModel,n=!0,r="vertical"===e?"y":"x",o=i.findComponents({mainType:r+"Axis"});if(a(o,r),n){var o=i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,i){var r=e[0];if(r){var o=new v_;if(o.add(r.componentIndex),t.set(i,o),n=!1,"x"===i||"y"===i){var a=r.getReferringComponents("grid",r0).models[0];a&&tI(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",r0).models[0]&&o.add(t.componentIndex)})}}}n&&tI(vh,function(e){if(n){var r=i.findComponents({mainType:vc(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new v_;o.add(r[0].componentIndex),t.set(e,o),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,i=this.get("rangeMode");tI([["start","startValue"],["end","endValue"]],function(n,r){var o=null!=t[n[0]],a=null!=t[n[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":i?e[r]=i[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,i){null==t&&(t=this.ecModel.getComponent(vc(e),i))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(i,n){tI(i.indexList,function(i){t.call(e,n,i)})})},e.prototype.getAxisProxy=function(t,e){return vg(this.getAxisModel(t,e))},e.prototype.getAxisModel=function(t,e){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[e])return this.ecModel.getComponent(vc(t),e)},e.prototype.setRawRange=function(t){var e=this.option,i=this.settledOption;tI([["start","startValue"],["end","endValue"]],function(n){(null!=t[n[0]]||null!=t[n[1]])&&(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tI(["start","startValue","end","endValue"],function(i){e[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getWindow().value;var i=this.findRepresentativeAxisProxy();if(i)return i.getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return vg(t);for(var e,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var r=i[n],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(ht);function vy(t){var e={};return tI(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}var vb=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="dataZoom.inside",e.defaultOption=lu(vv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(vv),vx=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.render=function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},e.type="dataZoom",e}(uJ);function vw(t,e,i,n,r,o){t=t||0;var a,s=rT(i[1],-i[0]);if(null!=r&&(r=vk(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n){var l=Math.abs(rT(e[1],-e[0]));l=vk(l,[0,s]),r=o=vk(l,[r,o]),n=0}e[0]=vk(e[0],i),e[1]=vk(e[1],i);var h=vS(e,n);e[n]+=t;var u=r||0,d=i.slice();return h.sign<0?d[0]=rT(d[0],u):d[1]=rT(d[1],-u),e[n]=vk(e[n],d),a=vS(e,n),null!=r&&(a.sign!==h.sign||a.span<r)&&(e[1-n]=rT(e[n],h.sign*r)),a=vS(e,n),null!=o&&a.span>o&&(e[1-n]=rT(e[n],a.sign*o)),e}function vS(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function vk(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var vC=rX();fG({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},t7);var vT={axisPointer:1,tooltip:1,brush:1},vM=function(t){function e(e){var i=t.call(this)||this;i._zr=e;var n=tL(i._mousedownHandler,i),r=tL(i._mousemoveHandler,i),o=tL(i._mouseupHandler,i),a=tL(i._mousewheelHandler,i),s=tL(i._pinchHandler,i);return i.enable=function(t,i){var l=i.zInfo,h=cK(l.component),u=h.z,d=h.zlevel,c={component:l.component,z:u,zlevel:d,z2:tG(l.z2,-1/0)},p=tk({},i.triggerInfo);this._opt=tC(tk({},i),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:c,triggerInfo:p,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this.disable(),this._enabled=!0,(!0===t||"move"===t||"pan"===t)&&(vE(e,"mousedown",n,c),vE(e,"mousemove",r,c),vE(e,"mouseup",o,c)),(!0===t||"scale"===t||"zoom"===t)&&(vE(e,"mousewheel",a,c),vE(e,"pinch",s,c)))},i.disable=function(){this._enabled&&(this._enabled=!1,vO(e,"mousedown",n),vO(e,"mousemove",r),vO(e,"mouseup",o),vO(e,"mousewheel",a),vO(e,"pinch",s))},i}return ti(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,i){var n=this._opt,r=n.zInfoParsed;if(function(t,e,i){var n=e.getComponentByElement(t.topTarget);if(!n||n===i||vT.hasOwnProperty(n.mainType))return!1;var r=n.coordinateSystem;if(!r||r.model===i)return!1;var o=cK(n),a=cK(i);return!(0>=(o.zlevel-a.zlevel||o.z-a.z))}(t,n.api,r.component))return!1;var o=n.triggerInfo,a=o.roamTrigger,s=!1;return"global"===a&&(s=!0),s||(s=o.isInSelf(t,e,i)),s&&o.isInClip&&!o.isInClip(t,e,i)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,i,n){var r=t.target;return!r&&this._checkPointer(t,e,i)?this._opt.cursorGrab:n?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(eE(t)||vD(t))){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var i=t.offsetX,n=t.offsetY;this._checkPointer(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if(!("pinch"===t.gestureEvent||vC(e).globalPan||vD(t))){var i=t.offsetX,n=t.offsetY;if(!this._dragging||!vL("moveOnMouseMove",t,this._opt)){var r=this._decideCursorStyle(t,i,n,!1);r&&e.setCursorStyle(r);return}e.setCursorStyle(this._opt.cursorGrabbing);var o=this._x,a=this._y,s=i-o,l=n-a;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&eA(t.event),t.__ecRoamConsumed=!0,vP(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:i,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!vD(t)){var e=this._zr;if(!eE(t)){this._dragging=!1;var i=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);i&&e.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(t){if(!vD(t)){var e=vL("zoomOnMouseWheel",t,this._opt),i=vL("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),o=t.offsetX,a=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(i){var l=Math.abs(n);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(vC(this._zr).globalPan||vD(t))){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,i,n,r){t._checkPointer(n,r.originX,r.originY)&&(eA(n.event),n.__ecRoamConsumed=!0,vP(t,e,i,n,r))},e}(ec);function vD(t){return t.__ecRoamConsumed}var vI=rX();function vA(t){var e=vI(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function vE(t,e,i,n){for(var r,o,a,s=vA(t).roam,l=s[e]=s[e]||[],h=0;h<l.length;h++){var u=l[h].zInfoParsed;if(0>=(u.zlevel-n.zlevel||u.z-n.z||u.z2-n.z2))break}l.splice(h,0,{listener:i,zInfoParsed:n}),r=t,o=e,(a=vA(r)).uniform[o]||r.on(o,a.uniform[o]=function(t){var e=a.roam[o];if(e)for(var i=0;i<e.length;i++)e[i].listener(t)})}function vO(t,e,i){for(var n=vA(t).roam[e]||[],r=0;r<n.length;r++)if(n[r].listener===i){n.splice(r,1),n.length||function(t,e){var i=vA(t).uniform;i[e]&&(t.off(e,i[e]),i[e]=null)}(t,e);return}}function vP(t,e,i,n,r){r.isAvailableBehavior=tL(vL,null,i,n),t.trigger(e,r)}function vL(t,e,i){var n=i[t];return!t||n&&(!tB(n)||e.event[n+"Key"])}var vR=rX();function vN(t,e){if(e){t.removeKey(e.model.uid);var i=e.controller;i&&i.dispose()}}function vz(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function vB(t,e,i,n){return t.coordinateSystem.containPoint([i,n])}var vV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return ti(e,t),e.prototype.render=function(e,i,n){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:tL(vF.pan,this),zoom:tL(vF.zoom,this),scrollMove:tL(vF.scrollMove,this)},vR(n).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var i=vR(t).coordSysRecordMap,n=i.keys(),r=0;r<n.length;r++){var o=n[r],a=i.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||vN(i,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(vx),vF={zoom:function(t,e,i,n){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=vY[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],h=Math.max(1/n.scale,0);o[0]=(o[0]-l)*h+l,o[1]=(o[1]-l)*h+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(vw(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:vH(function(t,e,i,n,r,o){var a=vY[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:vH(function(t,e,i,n,r,o){return vY[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i).signal*(t[1]-t[0])*o.scrollDelta})};function vH(t){return function(e,i,n,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(vw(t(a,s,e,i,n,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var vY={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=h[1]-h[0],a.pixelStart=h[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},v$=function(){function t(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getWindow=function(){return tw(this._window)},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(tT(vd,e.get("coordinateSystem"))>=0){var i=vc(this._dimName),n=e.getReferringComponents(i,r0).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return tw(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,i=this._extent,n=this.getAxisModel().axis,r=n.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],h=[!1,!1];tI(["start","end"],function(n,u){var d=t[n],c=t[n+"Value"];"percent"===o[u]?(null==d&&(d=a[u]),c=ry(d,a,i),h[u]=!0):(e=!0,null==c?c=i[u]:(c=r.parse(c),r.sanitize&&(c=r.sanitize(c,i))),d=ry(c,i,a)),l[u]=null==c||isNaN(c)?i[u]:c,s[u]=null==d||isNaN(d)?a[u]:d}),rS(l),rS(s);var u=this._minMaxSpan;function d(t,e,i,n,r){var o=r?"Span":"ValueSpan";vw(0,t,i,"all",u["min"+o],u["max"+o]);for(var a=0;a<2;a++)e[a]=ry(t[a],i,n,!0),r&&(e[a]=e[a],h[a]=!0);oe(e)}e?d(l,s,i,a,!1):d(s,l,a,i,!0);var c=gS(r)||gx(r),p=n.getExtent(),f=ru(p[1]-p[0]),g=c?0:rC(l,f,.5);tI([[0,rp],[1,rc]],function(t){var e=t[0],n=t[1];h[e]&&isFinite(g)&&(l[e]=rw(l[e],g),l[e]=rl(i[1],rh(i[0],l[e])),s[e]===a[e]&&(l[e]=i[e],c&&(l[e]=n(l[e]))))}),oe(l);var m=[ry(l[0],i,a,!0),ry(l[1],i,a,!0)];return oe(m),{value:l,percent:s,percentInverted:m,valuePrecision:g}},t.prototype.reset=function(t,e){if(this.hostedBy(t)){var i=this.getAxisModel().axis;m3(i,2);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var r=t.settledOption;e&&(r=tC({start:e[0],end:e[1]},r));var o=this._window=this.calculateDataWindow(r),a=o.percent,s=o.value;0!==a[0]&&n.setZoomMM(0,s[0]),100!==a[1]&&n.setZoomMM(1,s[1])}},t.prototype.filterData=function(t,e){if(this.hostedBy(t)){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._window.value;"none"!==r&&tI(n,function(t){var e=t.getData(),n=e.mapDimensionsAll(i);if(n.length){if("weakFilter"===r){var a=e.getStore(),s=tA(n,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,i,r,l=0;l<n.length;l++){var h=a.get(s[l],t),u=!isNaN(h),d=h<o[0],c=h>o[1];if(u&&!d&&!c)return!0;u&&(r=!0),d&&(e=!0),c&&(i=!0)}return r&&e&&i})}else tI(n,function(i){if("empty"===r)t.setData(e=e.map(i,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:0/0}));else{var n={};n[i]=o,e.selectRange(n)}});tI(n,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._extent;tI(["min","max"],function(n){var r=e.get(n+"Span"),o=e.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=ry(i[0]+o,i,[0,100],!0):null!=r&&(o=ry(r,[0,100],i,!0)-i[0]),t[n+"Span"]=r,t[n+"ValueSpan"]=o},this)},t}();let vU={dirtyOnOverallProgress:!0,getTargetSeries:function(t){var e,i=[];e=function(e,n,r,o){if(!vg(r)){var a=new v$(e,n,o,t);i.push(a),vf(r.ecModel).set(r.uid,a)}},t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(n,r){var o=t.getComponent(vc(n),r);e(n,r,o,i)})});var n=t5();return tI(i,function(t){tI(t.getTargetSeriesModels(),function(t){n.set(t.uid,t)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(e,n){var r=t.getAxisProxy(e,n),o=vm(t,r);o?i.push([r,o]):r.reset(t,null)}),tI(i,function(e){e[0].reset(t,e[1].getWindow().percentInverted)}),t.eachTargetAxis(function(i,n){t.getAxisProxy(i,n).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var i=e.getWindow(),n=i.percent,r=i.value;t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var vW=oi();function vj(t){vW(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,vU),t.registerAction("dataZoom",function(t,e){tI(function(t,e){var i,n=t5(),r=[],o=t5();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do i=!1,t.eachComponent("dataZoom",a);while(i);function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,i){var r=n.get(t);r&&r[i]&&(e=!0)}),e)&&(s(t),i=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(n.get(t)||n.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function vG(t){vj(t),t.registerComponentModel(vb),t.registerComponentView(vV),t.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var i=vR(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=t5());n.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tI(vp(t).infoList,function(i){var r,o,a,s=i.model.uid,l=n.get(s)||n.set(s,(a=(o={model:r=i.model,containsPoint:tR(vB,r),dispatchAction:tR(vz,e),dataZoomInfoMap:null,controller:null}).controller=new vM(e.getZr()),tI(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var i=[];o.dataZoomInfoMap.each(function(n){if(e.isAvailableBehavior(n.model.option)){var r=(n.getRange||{})[t],a=r&&r(n.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!n.model.get("disabled",!0)&&a&&i.push({dataZoomId:n.model.id,start:a[0],end:a[1]})}}),i.length&&o.dispatchAction(i)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=t5())).set(t.uid,{dzReferCoordSysInfo:i,model:t,getRange:null})})}),n.each(function(t){var i,r,o,a,s,l,h,u=t.controller,d=t.dataZoomInfoMap;if(d){var c=d.keys()[0];null!=c&&(h=d.get(c))}if(!h)return void vN(n,t);var p=(a="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0,d.each(function(t){var e=t.model,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");s[a+n]>s[a+i]&&(i=n),l=l&&e.get("preventDefaultMouseMove",!0),r=tG(e.get("cursorGrab",!0),r),o=tG(e.get("cursorGrabbing",!0),o)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:r,cursorGrabbing:o}});u.enable(p.controlType,p.opt),pa(t,"dispatchAction",h.model.get("throttle",!0),"fixRate")})})}var vZ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=lu(vv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:hn.color.accent10,borderRadius:0,backgroundColor:hn.color.transparent,dataBackground:{lineStyle:{color:hn.color.accent30,width:.5},areaStyle:{color:hn.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:hn.color.accent40,width:.5},areaStyle:{color:hn.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:hn.color.neutral00,borderColor:hn.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:hn.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:hn.color.tertiary},brushSelect:!0,brushStyle:{color:hn.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:hn.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(vv),vq="horizontal",vX="vertical",vK=["line","bar","candlestick","scatter"],vQ={easing:"cubicOut",duration:100,delay:0},vJ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._displayables={},i}return ti(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tL(this._onBrush,this),this._onBrushEnd=tL(this._onBrushEnd,this)},e.prototype.render=function(e,i,n,r){if(t.prototype.render.apply(this,arguments),pa(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ps(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new rn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,i=t.get("brushSelect"),n=l4(t,e).refContainer,r=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,a=this._orient===vq?{right:n.width-r.x-r.width,top:n.height-30-o-7*!!i,width:r.width,height:30}:{right:o,top:r.y,width:30,height:r.height},s=l8(t.option);tI(["right","top","width","height"],function(t){"ph"===s[t]&&(s[t]=a[t])});var l=l3(s,n);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===vX&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==vq||r?i===vq&&r?{scaleY:a?1:-1,scaleX:-1}:i!==vX||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]),l=isNaN(s.x)?0:s.x,h=isNaN(s.y)?0:s.y;t.x=e.x-l,t.y=e.y-h,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new aF({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new aF({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tL(this._onClickPanel,this)}),o=this.api.getZr();n?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),i.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,i=this._shadowSize||[],n=t.series,r=n.getRawData(),o=n.getShadowDim&&n.getShadowDim(),a=o&&r.getDimensionInfo(o)?n.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==i[0]||e[1]!==i[1]){var h,u=r.getDataExtent(t.thisDim),d=r.getDataExtent(a),c=(d[1]-d[0])*.3;d=[d[0]-c,d[1]+c];var p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],m=[],_=f[1]/Math.max(1,r.count()-1),v=e[0]/(u[1]-u[0]),y="time"===t.thisAxis.type,b=-_,x=Math.round(r.count()/e[0]);r.each([t.thisDim,a],function(t,e,i){if(x>0&&i%x){y||(b+=_);return}b=y?(t-u[0])*v:b+_;var n=null==e||isNaN(e)||""===e,r=n?0:ry(e,d,p,!0);n&&!h&&i?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&h&&(g.push([b,0]),m.push([b,0])),n||(g.push([b,r]),m.push([b,r])),h=n}),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=m}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var k=function(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),i=new rn,n=new dz({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new dF({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(r),i}(1===S);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,i=e.get("showDataShadow");if(!1!==i){var n=this.ecModel;return e.eachTargetAxis(function(r,o){tI(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==i&&0>tT(vK,e.get("type")))){var a,s=n.getComponent(vc(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],h=e.coordinateSystem;null!=l&&h.getOtherAxis&&(a=h.getOtherAxis(s).inverse),l=e.getData().mapDimension(l);var u=e.getData().mapDimension(r);t={thisAxis:s,series:e,thisDim:u,otherDim:l,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,i=e.handles=[null,null],n=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,h=a.get("brushSelect"),u=e.filler=new aF({silent:h,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new aF({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:hn.color.transparent}})),tI([0,1],function(e){var o=a.get("handleIcon");!pX[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=pJ(o,-1,0,2,2,null,!0);s.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:tL(this._onDragMove,this,e),ondragend:tL(this._onDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1),z2:5});var l=s.getBoundingRect(),h=a.get("handleSize");this._handleHeight=rb(h,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),sF(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),r.add(i[e]=s);var d=a.getModel("textStyle"),c=(a.get("handleLabel")||{}).show||!1;t.add(n[e]=new a1({silent:!0,invisible:!c,style:sJ(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(h){var c=rb(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new aF({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:c}}),f=.8*c,g=e.moveHandleIcon=pJ(a.get("moveHandleIcon"),-f/2,-f/2,f,f,hn.color.neutral00,!0);g.silent=!0,g.y=o[1]+c/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(c,10));(d=e.moveZone=new aF({invisible:!0,shape:{y:o[1]-m,height:c+m}})).on("mouseover",function(){s.enterEmphasis(p)}).on("mouseout",function(){s.leaveEmphasis(p)}),r.add(p),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:"grab",drift:tL(this._onActualMoveZoneDrift,this),ondragstart:tL(this._onActualMoveZoneDragStart,this),ondragend:tL(this._onActualMoveZoneDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[ry(t[0],[0,100],e,!0),ry(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];vw(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?ry(o.minSpan,a,r,!0):null,null!=o.maxSpan?ry(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=rS([ry(n[0],r,a,!0),ry(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,i=this._handleEnds,n=rS(i.slice()),r=this._size;tI([0,1],function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:i[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]});var o={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,n[0],n[1],r[0]],l=0;l<a.length;l++){var h=a[l],u=h.getClipPath();u||(u=new aF,h.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy(),s=a.getAxisModel().axis.scale;if(a){var l,h=this._range;if(t){var u={start:h[0],end:h[1]},d=vm(e,a);if(d){var c=d.calculateDataWindow(u).percentInverted;u={start:c[0],end:c[1]}}l=a.calculateDataWindow(u)}else l=a.getWindow();o=[v0(e,0,l,s),v0(e,1,l,s)]}}var p=rS(this._handleEnds.slice());function f(t){var e=cO(i.handles[t].parent,this.group),a=cL(0===t?"right":"left",e),s=this._handleWidth/2+5,l=cP([p[t]+(0===t?-s:s),this._size[1]/2],e);n[t].setStyle({x:l[0],y:l[1],verticalAlign:r===vq?"middle":a,align:r===vq?a:"center",text:o[t]})}f.call(this,0),f.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,n=t||this._dragging?i:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!n),o[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,e,i){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,e,i)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,e,i,n){this._dragging=!0,eA(n.event);var r=cP([e,i],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0)&&!(i[0]>e[0])&&!(i[1]<0)&&!(i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,i=t.offsetY;this._brushStart=new eY(e,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var i=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(i.width))){var n=this._getViewExtent(),r=[0,100],o=this._handleEnds=[i.x,i.x+i.width],a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();vw(0,o,n,0,null!=a.minSpan?ry(a.minSpan,r,n,!0):null,null!=a.maxSpan?ry(a.maxSpan,r,n,!0):null),this._range=rS([ry(o[0],n,r,!0),ry(o[1],n,r,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(eA(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var i=this._displayables,n=this.dataZoomModel,r=i.brushRect;r||(r=i.brushRect=new aF({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),h=this._size;s[0]=Math.max(Math.min(h[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?vQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=vp(this.dataZoomModel).infoList;if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),r=this.api.getHeight();t={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return t},e.type="dataZoom.slider",e}(vx);function v0(t,e,i,n){var r=t.get("labelFormatter"),o=t.get("labelPrecision");(null==o||"auto"===o)&&(o=i.valuePrecision);var a=i.value[e],s=null==a||isNaN(a)?"":gS(n)||gx(n)?n.getLabel({value:Math.round(a)}):isFinite(o)?rw(a,o,!0):a+"";return tz(r)?r(a,s):tB(r)?r.replace("{value}",s):s}function v1(t){t.registerComponentModel(vZ),t.registerComponentView(vJ),vj(t)}function v2(t){return null==t?0:t.length||1}function v5(t){return t}var v3=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||v5,this._newKeyGetter=n||v5,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=Array(t.length),r=Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=v2(s);if(l>1){var h=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(h,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],h=n[s],u=v2(l),d=v2(h);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(h,l),n[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(h,l),n[s]=null;else if(1===u&&1===d)this._update&&this._update(h,l),n[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(h,l),n[s]=null;else if(u>1)for(var c=0;c<u;c++)this._remove&&this._remove(l[c]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=v2(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=v2(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),v4=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function v6(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}let v7=function(t){this.otherDims={},null!=t&&tk(this,t)};var v8=tH,v9="u"<typeof Int32Array?Array:Int32Array,yt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ye=["_approximateExtent"],yi=function(){function t(t,e){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;gU(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},h=0;h<i.length;h++){var u=i[h],d=tB(u)?new v7({name:u}):u instanceof v7?u:new v7(u),c=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=c,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(c),r[c]=d,null!=l[c]&&(s=!0),d.createInvertedIndices&&(a[c]=[]),n&&(d.storeDimIndex=h),0===p.itemName&&(this._nameDimIdx=d.storeDimIndex),0===p.itemId&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=t5();tI(o,function(t){f.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(tF(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,i){var n,r,o,a,s,l,h,u,d,c,p,f,g,m=this;if(t instanceof uC&&(g=t),!g){var _=this.dimensions,v=hW(t)||tD(t)?new h2(t,_.length):t;g=new uC;var y=tA(_,function(t){return{type:m._dimInfos[t].type,property:t}});g.initData(v,y,i)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(n=this,r=this._schema,a=(o={}).encode={},s=t5(),l=[],h=[],u={},tI(n.dimensions,function(t){var e=n.getDimensionInfo(t),i=e.coordDim;if(i){var r,o=e.coordDimIndex;v6(a,i)[o]=t,e.isExtraCoord||(s.set(i,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),v6(u,i)[o]=n.getDimensionIndex(e.name)),e.defaultTooltip&&h.push(t)}a6.each(function(t,i){var n=v6(a,i),r=e.otherDims[i];null!=r&&!1!==r&&(n[r]=e.name)})}),d=[],c={},s.each(function(t,e){var i=a[e];c[e]=i[0],d=d.concat(i)}),o.dataDimsOnCoord=d,o.dataDimIndicesOnCoord=tA(d,function(t){return n.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=c,(p=a.label)&&p.length&&(l=p.slice()),(f=a.tooltip)&&f.length?h=f.slice():h.length||(h=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=h,o.userOutput=new v4(u,r),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;a<r;a++){var s=a-n;this._nameList[a]=e[s],o&&Q(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==se&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var n=this._nameList,r=this._idList;if(i.getSource().sourceFormat===a7&&!i.pure)for(var o=[],a=t;a<e;a++){var s,l=i.getItem(a,o);if(!(!this.hasItemOption&&tH(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var h=l.name;null==n[a]&&null!=h&&(n[a]=rj(h,null));var u=l.id;null==r[a]&&null!=u&&(r[a]=rj(u,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)Q(this,a);j(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){v8(t)?tk(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=Z(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return G(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var i=this,n=this._store;return tN(t)?n.getValues(tA(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return null==n||isNaN(n)?-1:n},t.prototype.each=function(t,e,i){tz(t)&&(i=e,e=t,t=[]);var n=i||this,r=tA(q(t),this._getStoreDimIndex,this);this._store.each(r,n?tL(e,n):e)},t.prototype.filterSelf=function(t,e,i){tz(t)&&(i=e,e=t,t=[]);var n=i||this,r=tA(q(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?tL(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=tP(t),r=[];return tI(n,function(n){var o=e._getStoreDimIndex(n);i[o]=t[n],r.push(o)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){tz(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=tA(q(t),this._getStoreDimIndex,this),a=K(this);return a._store=this._store.map(o,r?tL(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this,o=tA(q(t),this._getStoreDimIndex,this);this._store.modify(o,r?tL(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=K(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.minmaxDownSample=function(t,e){var i=K(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},t.prototype.lttbDownSample=function(t,e){var i=K(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new ls(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new v3(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return G(t,e)},function(t){return G(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},v8(t)?tk(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(tN(r=this.getVisual(e))?r=r.slice():v8(r)&&(r=tk({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,v8(e)?tk(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){v8(t)?tk(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,i){this._itemLayouts[t]=i?tk(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){a5(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tI(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tA(this.dimensions,this._getDimInfo,this),this.hostModel)),X(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];tz(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(tq(arguments)))})},t.internalField=void(j=function(t){var e=t._invertedIndicesMap;tI(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new v9(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(var s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},Z=function(t,e,i){return rj(t._getCategory(e,i),null)},G=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=Z(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},q=function(t){return tN(t)||(t=null!=t?[t]:[]),t},K=function(e){var i=new t(e._schema?e._schema:tA(e.dimensions,e._getDimInfo,e),e.hostModel);return X(i,e),i},X=function(t,e){tI(yt.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,tI(ye,function(i){t[i]=tw(e[i])}),t._calculationInfo=tk({},e._calculationInfo)},Q=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=Z(t,r,e)),null==s&&null!=o&&(n[e]=s=Z(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,h=l[a]=(l[a]||0)+1;s=a,h>1&&(s+="__ec__"+h),n[e]=s}}),t}(),yn=function(t){this.coordSysDims=[],this.axisMap=t5(),this.categoryAxisMap=t5(),this.coordSysName=t},yr={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",r0).models[0],o=t.getReferringComponents("yAxis",r0).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),yo(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),yo(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",r0).models[0];e.coordSysDims=["single"],i.set("single",r),yo(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",r0).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),yo(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),yo(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tI(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),yo(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,i,n){var r=t.getReferringComponents("matrix",r0).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");i.set("x",o),i.set("y",a),n.set("x",o),n.set("y",a)}};function yo(t){return"category"===t.get("type")}let ya=function(t,e,i){i=i||{};var n,r,o,a,s,l,h,u,d=e.getSourceManager(),c=!1;t?(c=!0,u=hG(t)):c=(u=d.getSource()).sourceFormat===a7;var p=function(t){var e=t.get("coordinateSystem"),i=new yn(e),n=yr[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}(e),f=(r=e.get("coordinateSystem"),o=lQ.get(r),p&&p.coordSysDims&&(n=tA(p.coordSysDims,function(t){var e,i={name:t},n=p.axisMap.get(t);return n&&(i.type="category"===(e=n.get("type"))?"ordinal":"time"===e?"time":"float"),i})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n),g=i.useEncodeDefaulter,m=tz(g)?g:g?tR(hp,f,e):null,_=function(t,e){hW(t)||(t=hG(t));var i,n,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],h=t5(),u=[],d=(i=t,n=s,r=l,o=e.dimensionsCount,a=Math.max(i.dimensionsDetectedCount||1,n.length,r.length,o||0),tI(n,function(t){var e;tH(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),c=e.canOmitUnusedDimensions&&d>30,p=l===t.dimensionsDefine,f=p?gj(t):gW(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,d));for(var m=t5(g),_=new ub(d),v=0;v<_.length;v++)_[v]=-1;function y(t){var e=_[t];if(e<0){var i=l[t],n=tH(i)?i:{name:i},r=new v7,o=n.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=n.type&&(r.type=n.type),null!=n.displayName&&(r.displayName=n.displayName);var a=u.length;return _[t]=a,r.storeDimIndex=t,u.push(r),r}return u[e]}if(!c)for(var v=0;v<d;v++)y(v);m.each(function(t,e){var i=rF(t).slice();if(1===i.length&&!tB(i[0])&&i[0]<0)return void m.set(e,!1);var n=m.set(e,[]);tI(i,function(t,i){var r=tB(t)?f.get(t):t;null!=r&&r<d&&(n[i]=r,x(y(r),e,i))})});var b=0;function x(t,e,i){null!=a6.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,h.set(e,!0))}tI(s,function(t){if(tB(t))r=t,n={};else{var e,i,n,r=(n=t).name,o=n.ordinalMeta;n.ordinalMeta=null,(n=tk({},n)).ordinalMeta=o,e=n.dimsDef,i=n.otherDims,n.name=n.coordDim=n.coordDimIndex=n.dimsDef=n.otherDims=null}var a=m.get(r);if(!1!==a){if(!(a=rF(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;b<d&&null!=y(b).coordDim;)b++;b<d&&a.push(b++)}tI(a,function(t,o){var a=y(t);if(p&&null!=n.type&&(a.type=n.type),x(tC(a,n),r,o),null==a.name&&e){var s=e[o];tH(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&tC(a.otherDims,i)})}});var w=e.generateCoord,S=e.generateCoordCount,k=null!=S;S=w?S||1:0;var C=w||"value";function T(t){null==t.name&&(t.name=t.coordDim)}if(c)tI(u,function(t){T(t)}),u.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<d;M++){var D=y(M);null==D.coordDim&&(D.coordDim=function(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}(C,h,k),D.coordDimIndex=0,(!w||S<=0)&&(D.isExtraCoord=!0),S--),T(D),null==D.type&&(1===hg(t,M)||D.isExtraCoord&&(null!=D.otherDims.itemName||null!=D.otherDims.seriesName))&&(D.type="ordinal")}return or(u,function(t){return t.name},function(t,e){e>0&&(t.name=t.name+(e-1))}),new g$({source:t,dimensions:u,fullDimensionCount:d,dimensionOmitted:c})}(u,{coordDimensions:f,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:m,canOmitUnusedDimensions:!c}),v=(a=_.dimensions,s=i.createInvertedIndices,p&&tI(a,function(t,e){var i=t.coordDim,n=p.categoryAxisMap.get(i);n&&(null==l&&(l=e),t.ordinalMeta=n.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(h=!0)}),h||null==l||(a[l].otherDims.itemName=0),l),y=c?null:d.getSharedDataStore(_),b=function(t,e,i){var n,r,o,a,s,l,h,u=(i=i||{}).byIndex,d=i.stackedCoordDimension;gU(e.schema)?(n=(r=e.schema).dimensions,o=e.store):n=e;var c=!!(t&&t.get("stack")),p=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(tI(n,function(t,e){tB(t)&&(n[e]=t={name:t}),f(t)||(p=!1)}),tI(n,function(t,e){c&&!t.isExtraCoord&&(u||a||!t.ordinalMeta||(a=t),!s&&f(t)&&(!p||"x"!==t.coordDim&&"angle"!==t.coordDim)&&(!d||d===t.coordDim)&&(s=t))}),!s||u||a||(u=!0),s){l="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var g=s.coordDim,m=s.type,_=0;tI(n,function(t){t.coordDim===g&&_++});var v={name:l,coordDim:g,coordDimIndex:_,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:h,coordDim:h,coordDimIndex:_+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,m),y.storeDimIndex=o.ensureCalculationDimension(l,m)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(n.push(v),n.push(y))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:u,stackedOverDimension:h,stackResultDimension:l}}(e,{schema:_,store:y}),x=new yi(_,e);x.setCalculationInfo(b);var w=null!=v&&function(t){if(t.sourceFormat===a7)return!tN(r$(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(u)?function(t,e,i,n){return n===v?i:this.defaultDimValueGetter(t,e,i,n)}:null;return x.hasItemOption=!1,x.initData(c?u:y,null,w),x};var ys=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return ti(e,t),e.prototype.getInitialData=function(t){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new rn,i=pJ("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=pJ(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=hn.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(uW);function yl(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=ue(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(ue(t,e,i[a]));return o.join(" ")}}var yh=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return ti(e,t),e.prototype._createSymbol=function(t,e,i,n,r,o){this.removeAll();var a=pJ(t,-1,-1,2,2,null,o);a.attr({z2:tG(r,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),a.drift=yu,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){sO(this.childAt(0))},e.prototype.downplay=function(){sP(this.childAt(0))},e.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},e.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},e.prototype.updateData=function(t,i,n,r){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,i),l=e.getSymbolZ2(t,i),h=o!==this._symbolType,u=r&&r.disableAnimation;if(h){var d=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,s,l,d)}else{var c,p=this.childAt(0);p.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(f):cs(p,f,a,i),cr(c=p).oldStyle=c.style}if(this._updateCommon(t,i,s,n,r),h){var p=this.childAt(0);if(!u){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,cl(p,f,a,i)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,i,n,r){var o,a,s,l,h,u,d,c,p,f=this.childAt(0),g=t.hostModel;if(n&&(o=n.emphasisItemStyle,a=n.blurItemStyle,s=n.selectItemStyle,l=n.focus,h=n.blurScope,d=n.labelStatesModels,c=n.hoverScale,p=n.cursorStyle,u=n.emphasisDisabled),!n||t.hasItemOption){var m=n&&n.itemModel?n.itemModel:t.getItemModel(e),_=m.getModel("emphasis");o=_.getModel("itemStyle").getItemStyle(),s=m.getModel(["select","itemStyle"]).getItemStyle(),a=m.getModel(["blur","itemStyle"]).getItemStyle(),l=_.get("focus"),h=_.get("blurScope"),u=_.get("disabled"),d=sQ(m),c=_.getShallow("scale"),p=m.getShallow("cursor")}var v=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var y=p0(t.getItemVisual(e,"symbolOffset"),i);y&&(f.x=y[0],f.y=y[1]),p&&f.attr("cursor",p);var b=t.getItemVisual(e,"style"),x=b.fill;if(f instanceof aO){var w=f.style;f.useStyle(tk({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(tk({},b)):f.useStyle(b),f.style.decal=null,f.setColor(x,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=r&&r.useNameLabel;sK(f,d,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):yl(t,e)},inheritColor:x,defaultOpacity:b.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var M=null==c||!0===c?Math.max(1.1,3/this._sizeY):isFinite(c)&&c>0?+c:1;T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M,this.setSymbolScale(1),sH(this,l,h,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=a2(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&cu(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();cu(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var i;return tN(i=t.getItemVisual(e,"symbolSize"))||(i=[+i,+i]),[i[0]||0,i[1]||0]},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(rn);function yu(t,e){this.parent.drift(t,e)}function yd(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(i))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function yc(t){return null==t||tH(t)||(t={isIgnore:t}),t||{}}function yp(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:sQ(e),cursorStyle:e.get("cursor")}}function yf(t,e,i,n,r,o,a){var s=new t(e,i,n,r);return s.setPosition(o),e.setItemGraphicEl(i,s),a.add(s),s}var yg=function(){function t(t){this.group=new rn,this._SymbolCtor=t||yh}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yc(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=this._seriesScope=yp(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add(function(n){var r=h(n);yd(t,r,n,e)&&yf(o,t,n,s,l,r,i)}).update(function(u,d){var c=r.getItemGraphicEl(d),p=h(u);if(!yd(t,p,u,e))return void i.remove(c);var f=t.getItemVisual(u,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==f)i.remove(c),(c=new o(t,u,s,l)).setPosition(p);else{c.updateData(t,u,s,l);var m={x:p[0],y:p[1]};a?c.attr(m):cs(c,m,n)}i.add(c),t.setItemGraphicEl(u,c)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)},n)}).execute(),this._getSymbolPoint=h,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var i=e.getStore(),n=0,r=i.count();n<r;n++){var o=e.getItemGraphicEl(n),a=this._getSymbolPoint(n);yd(e,a,n,t)?((o=o||yf(this._SymbolCtor,e,n,this._seriesScope,{disableAnimation:!0},a,this.group)).stopAnimation(),o.setPosition(a),o.markRedraw()):o&&(this.group.remove(o),e.setItemGraphicEl(n,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yp(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i,n){function r(t){t.isGroup||(t.incremental=i,t.ensureState("emphasis").hoverLayer=cv)}this._progressiveEls=[],n=yc(n);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(yd(e,a,o,n)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){cj(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()},t}();function ym(t,e,i){var n,r,o,a,s=t.getBaseAxis(),l=t.getOtherAxis(s),h=(n=l,r=i,o=0,a=n.scale.getExtent(),"start"===r?o=a[0]:"end"===r?o=a[1]:tF(r)&&!isNaN(r)?o=r:a[0]>0?o=a[0]:a[1]<0&&(o=a[1]),o),u=s.dim,d=l.dim,c=e.mapDimension(d),p=e.mapDimension(u),f=+("x"===d||"radius"===d),g=tA(t.dimensions,function(t){return e.mapDimension(t)}),m=!1,_=e.getCalculationInfo("stackResultDimension");return gG(e,g[0])&&(m=!0,g[0]=_),gG(e,g[1])&&(m=!0,g[1]=_),{dataDimsForPoint:g,valueStart:h,valueAxisDim:d,baseAxisDim:u,stacked:!!m,valueDim:c,baseDim:p,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function y_(t,e,i,n){var r=0/0;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function yv(t,e){return!isFinite(t)||!isFinite(e)}var yy=typeof Float32Array!==a3?Float32Array:void 0;function yb(t){return function(t,e){var i=t.arr,n=t.ctor;if(e>rM&&(e=rM),!i||t.typed&&i.length<e){var r=void 0;if(n)try{r=new n(e),t.typed=!0,i&&r.set(i)}catch(t){}if(!r&&(r=[],t.typed=!1,i))for(var o=0,a=i.length;o<a;o++)r[o]=i[o];t.arr=r}return t}({ctor:yy},t).arr}var yx=Math.min,yw=Math.max;function yS(t,e,i,n,r,o,a,s,l){for(var h,u,d,c,p,f,g=i,m=0;m<n;m++){var _=e[2*g],v=e[2*g+1];if(g>=r||g<0)break;if(yv(_,v)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](_,v),d=_,c=v;else{var y=_-h,b=v-u;if(y*y+b*b<.5){g+=o;continue}if(a>0){for(var x=g+o,w=e[2*x],S=e[2*x+1];w===_&&S===v&&m<n;)m++,x+=o,g+=o,w=e[2*x],S=e[2*x+1],_=e[2*g],v=e[2*g+1],y=_-h,b=v-u;var k=m+1;if(l)for(;yv(w,S)&&k<n;)k++,x+=o,w=e[2*x],S=e[2*x+1];var C=.5,T=0,M=0,D=void 0,I=void 0;if(k>=n||yv(w,S))p=_,f=v;else{T=w-h,M=S-u;var A=_-h,E=w-_,O=v-u,P=S-v,L=void 0,R=void 0;if("x"===s){L=Math.abs(A),R=Math.abs(E);var N=T>0?1:-1;p=_-N*L*a,f=v,D=_+N*R*a,I=v}else if("y"===s){L=Math.abs(O),R=Math.abs(P);var z=M>0?1:-1;p=_,f=v-z*L*a,D=_,I=v+z*R*a}else L=Math.sqrt(A*A+O*O),p=_-T*a*(1-(C=(R=Math.sqrt(E*E+P*P))/(R+L))),f=v-M*a*(1-C),D=_+T*a*C,I=v+M*a*C,D=yx(D,yw(w,_)),I=yx(I,yw(S,v)),D=yw(D,yx(w,_)),I=yw(I,yx(S,v)),T=D-_,M=I-v,p=_-T*L/R,f=v-M*L/R,p=yx(p,yw(h,_)),f=yx(f,yw(u,v)),p=yw(p,yx(h,_)),f=yw(f,yx(u,v)),T=_-p,M=v-f,D=_+T*R/L,I=v+M*R/L}t.bezierCurveTo(d,c,p,f,_,v),d=D,c=I}else t.lineTo(_,v)}h=_,u=v,g+=o}return m}var yk=function(){this.smooth=0,this.smoothConstraint=!0},yC=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return ti(e,t),e.prototype.getDefaultStyle=function(){return{stroke:hn.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new yk},e.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&yv(i[2*r-2],i[2*r-1]);r--);for(;n<r&&yv(i[2*n],i[2*n+1]);n++);}for(;n<r;)n+=yS(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path.data,o=ac.CMD,a="x"===e,s=[],l=0;l<r.length;){var h=r[l++],u=void 0,d=void 0,c=void 0,p=void 0,f=void 0,g=void 0,m=void 0;switch(h){case o.M:i=r[l++],n=r[l++];break;case o.L:if(u=r[l++],d=r[l++],(m=a?(t-i)/(u-i):(t-n)/(d-n))<=1&&m>=0){var _=a?(d-n)*m+n:(u-i)*m+i;return a?[t,_]:[_,t]}i=u,n=d;break;case o.C:u=r[l++],d=r[l++],c=r[l++],p=r[l++],f=r[l++],g=r[l++];var v=a?iL(i,u,c,f,t,s):iL(n,d,p,g,t,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var _=a?iO(n,d,p,g,b):iO(i,u,c,f,b);return a?[t,_]:[_,t]}}i=f,n=g}}},e}(aT),yT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e}(yk),yM=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return ti(e,t),e.prototype.getDefaultShape=function(){return new yT},e.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&yv(i[2*o-2],i[2*o-1]);o--);for(;r<o&&yv(i[2*r],i[2*r+1]);r++);}for(;r<o;){var s=yS(t,i,r,o,o,1,e.smooth,a,e.connectNulls);yS(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(aT);function yD(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function yI(t){for(var e=r4(),i=r4(),n=0;n<t.length;){var r=t[n++],o=t[n++];yv(r,o)||(r6(e,r),r6(i,o))}return[e,i]}function yA(t,e){var i=yI(t),n=i[0],r=i[1],o=yI(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(r[0]-s[0]),Math.abs(n[1]-a[1]),Math.abs(r[1]-s[1]))}function yE(t){return tF(t)?t:.5*!!t}function yO(t,e,i,n,r){var o=i.getBaseAxis(),a=+("x"!==o.dim&&"radius"!==o.dim),s=[],l=0,h=[],u=[],d=[],c=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;yv(p[l],p[l+1])||c.push(t[l],t[l+1])}t=c}for(l=0;l<t.length-2;l+=2)switch(d[0]=t[l+2],d[1]=t[l+3],u[0]=t[l],u[1]=t[l+1],s.push(u[0],u[1]),n){case"end":h[a]=d[a],h[1-a]=u[1-a],s.push(h[0],h[1]);break;case"middle":var f=(u[a]+d[a])/2,g=[];h[a]=g[a]=f,h[1-a]=u[1-a],g[1-a]=d[1-a],s.push(h[0],h[1]),s.push(g[0],g[1]);break;default:h[a]=u[a],h[1-a]=d[1-a],s.push(h[0],h[1])}return s.push(t[l++],t[l++]),s}function yP(t,e){return[t[2*e],t[2*e+1]]}function yL(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<su.length;e++)if(t.get([su[e],"endLabel","show"]))return!0;return!1}function yR(t,e,i,n){if("cartesian2d"===e.type){var r,o,a,s,l=n.getModel("endLabel"),h=l.get("valueAnimation"),u=n.getData(),d={lastFrameIndex:0},c=yL(n)?function(i,n){t._endLabelOnDuring(i,n,u,d,h,l,e)}:null,p=e.getBaseAxis().isHorizontal(),f=function(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,h=o.height,u=i.get(["lineStyle","width"])||0;a-=u/2,s-=u/2,l+=u,h+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new aF({shape:{x:a,y:s,width:l,height:h}});if(e){var c=t.getBaseAxis(),p=c.isHorizontal(),f=c.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=h),d.shape.height=0);var g=tz(r)?function(t){r(t,d)}:null;cl(d,{shape:{width:l,height:h,x:a,y:s}},i,null,n,g)}return d}(e,i,n,function(){var e=t._endLabel;e&&i&&null!=d.originalX&&e.attr({x:d.originalX,y:d.originalY})},c);if(!n.get("clip",!0)){var g=f.shape,m=Math.max(g.width,g.height);p?(g.y-=m,g.height+=2*m):(g.x-=m,g.width+=2*m)}return c&&c(1,f),f}return o=rw((r=e.getArea()).r0,1),a=rw(r.r,1),s=new dA({shape:{cx:rw(e.cx,1),cy:rw(e.cy,1),r0:o,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}),i&&("angle"===e.getBaseAxis().dim?s.shape.endAngle=r.startAngle:s.shape.r=o,cl(s,{shape:{endAngle:r.endAngle,r:a}},n)),s}var yN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.init=function(){var t=new rn,e=new yg;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=tL(this._changePolyState,this)},e.prototype.render=function(t,e,i){var n,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],u="polar"===r.type,d=this._coordSys,c=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,m=!e.ssr&&t.get("animation"),_=!l.isEmpty(),v=l.get("origin"),y=ym(r,a,v),b=_&&function(t,e,i){if(null==i.valueDim)return[];for(var n=e.count(),r=yb(2*n),o=0;o<n;o++){var a=y_(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,y),x=t.get("showSymbol"),w=t.get("connectNulls"),S=x&&!u&&function(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&!(r&&function(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*yh.getSymbolSize(e,a)[+!!t.isHorizontal()]>n)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return tI(o.getViewLabels(),function(t){t.tick.offInterval||(s[g2(o.scale,t.tick)]=1)}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),x||c.remove(),o.add(g);var C=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(n=r.getArea()).width?(n.x-=.1,n.y-=.1,n.width+=.2,n.height+=.2):n.r0&&(n.r0-=.5,n.r+=.5)),this._clipShapeForSymbol=n;var T=function(t,e,i){var n,r,o=t.getVisual("visualMeta");if(o&&o.length&&t.count()){if("cartesian2d"!==e.type)return;for(var a=o.length-1;a>=0;a--){var s=t.getDimensionInfo(o[a].dimension);if("x"===(n=s&&s.coordDim)||"y"===n){r=o[a];break}}if(!r)return;var l=e.getAxis(n),h=tA(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=h.length,d=r.outerColors.slice();u&&h[0].coord>h[u-1].coord&&(h.reverse(),d.reverse());var c=function(t,e){var i,n,r=[],o=t.length;function a(t,e,i){var n=t.coord,r=function(t,e){if(e&&e.length&&t>=0&&t<=1){var i,n,r,o,a=t*(e.length-1),s=Math.floor(a),l=Math.ceil(a),h=i3(e[s]),u=i3(e[l]),d=a-s;return i8([iZ((i=h[0],i+(u[0]-i)*d)),iZ((n=h[1],n+(u[1]-n)*d)),iZ((r=h[2],r+(u[2]-r)*d)),iq((o=h[3],o+(u[3]-o)*d))],"rgba")}}((i-n)/(e.coord-n),[t.color,e.color]);return{coord:i,color:r}}for(var s=0;s<o;s++){var l=t[s],h=l.coord;if(h<0)i=l;else if(h>e){n?r.push(a(n,l,e)):i&&r.push(a(i,l,0),a(i,l,e));break}else i&&(r.push(a(i,l,0)),i=null),r.push(l),n=l}return r}(h,"x"===n?i.getWidth():i.getHeight()),p=c.length;if(!p&&u)return h[0].coord<0?d[1]?d[1]:h[u-1].color:d[0]?d[0]:h[0].color;var f=c[0].coord-10,g=c[p-1].coord+10,m=g-f;if(m<.001)return"transparent";tI(c,function(t){t.offset=(t.coord-f)/m}),c.push({offset:p?c[p-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:p?c[0].offset:.5,color:d[0]||"transparent"});var _=new d1(0,0,0,0,c,!0);return _[n]=f,_[n+"2"]=g,_}}(a,r,i)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===r.type&&C===this._step){_&&!f?f=this._newPolygon(h,b):f&&!_&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,lq(T));var M=g.getClipPath();M?cl(M,{shape:yR(this,r,!1,t).shape},t):g.setClipPath(yR(this,r,!0,t)),x&&c.updateData(a,{isIgnore:S,clipShape:n,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),yD(this._stackedOnPoints,b)&&yD(this._points,h)||(m?this._doUpdateAnimation(a,b,r,i,C,v,w):(C&&(b&&(b=yO(b,h,r,C,w)),h=yO(h,null,r,C,w)),p.setShape({points:h}),f&&f.setShape({points:h,stackedOnPoints:b})))}else x&&c.updateData(a,{isIgnore:S,clipShape:n,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,n),C&&(b&&(b=yO(b,h,r,C,w)),h=yO(h,null,r,C,w)),p=this._newPolyline(h),_?f=this._newPolygon(h,b):f&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,lq(T)),g.setClipPath(yR(this,r,!0,t));var D=t.getModel("emphasis"),I=D.get("focus"),A=D.get("blurScope"),E=D.get("disabled");p.useStyle(tC(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),sU(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),a2(p).seriesIndex=t.seriesIndex,sH(p,I,A,E);var O=yE(t.get("smooth")),P=t.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:P,connectNulls:w}),f){var L=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(tC(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(R=yE(L.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:R,smoothMonotone:P,connectNulls:w}),sU(f,t,"areaStyle"),a2(f).seriesIndex=t.seriesIndex,sH(f,I,A,E)}var N=this._changePolyState;a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=h,this._step=C,this._valueOrigin=v;var z=t.get("triggerEvent"),B=t.get("triggerLineEvent");this.packEventData(t,p,!0===B||!0===z||"line"===z),f&&this.packEventData(t,f,!0===B||!0===z||"area"===z)},e.prototype.packEventData=function(t,e,i){a2(e).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:e===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=rq(r,n);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))c6.prototype.highlight.call(this,t,e,i,n);else{var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],h=a[2*o+1];if(yv(l,h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,h))return;var u=t.get("zlevel")||0,d=t.get("z")||0;(s=new yh(r,o)).x=l,s.y=h,s.setZ(u,d);var c=s.getSymbolPath().getTextContent();c&&(c.zlevel=u,c.z=d,c.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=rq(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else c6.prototype.downplay.call(this,t,e,i,n)},e.prototype._changePolyState=function(t){var e=this._polygon;sM(this._polyline,t),e&&sM(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new yC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yM({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");tz(l)&&(l=l(null));var h=s.get("animationDelay")||0,u=tz(h)?h(null):h;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],d=void 0,c=void 0,p=void 0;if(i)if(r){var f=e.pointToCoord(s);n?(d=i.startAngle,c=i.endAngle,p=-f[1]/180*Math.PI):(d=i.r0,c=i.r,p=f[0])}else n?(d=i.x,c=i.x+i.width,p=t.x):(d=i.y+i.height,c=i.y,p=t.y);var g=c===d?0:(p-d)/(c-d);a&&(g=1-g);var m=tz(h)?h(o):l*g+u,_=t.getSymbolPath(),v=_.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:m}),v&&v.animateFrom({style:{opacity:0}},{duration:300,delay:m}),_.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(yL(t)){var r,o,a,s=t.getData(),l=this._polyline,h=s.getLayout("points");if(!h){l.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||((u=this._endLabel=new a1({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var d=function(t){for(var e=t.length/2;e>0&&yv(t[2*e-2],t[2*e-1]);e--);return e-1}(h);d>=0&&(sK(l,sQ(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:d,defaultText:function(t,e,i){return null!=i?function(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!tN(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}(s,i):yl(s,t)},enableTextSetter:!0},(o=(r=e.getBaseAxis()).isHorizontal(),a=r.inverse,{normal:{align:n.get("align")||(o?a?"right":"left":"center"),verticalAlign:n.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var h=i.getLayout("points"),u=i.hostModel,d=u.get("connectNulls"),c=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),m=f.inverse,_=e.shape,v=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,y=(g?p:0)*(m?-1:1),b=(g?0:-p)*(m?-1:1),x=g?"x":"y",w=function(t,e,i){for(var n,r,o=t.length/2,a=+("x"!==i),s=0,l=-1,h=0;h<o;h++)if(!yv(r=t[2*h+a],t[2*h+1-a])){if(0===h){n=r;continue}if(n<=e&&r>=e||n>=e&&r<=e){l=h;break}s=h,n=r}return{range:[s,l],t:(e-n)/(r-n)}}(h,v,x),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!d){var T=yP(h,S[0]);s.attr({x:T[0]+y,y:T[1]+b}),r&&(C=u.getRawValue(S[0]))}else{var T=l.getPointOn(v,x);T&&s.attr({x:T[0]+y,y:T[1]+b});var M=u.getRawValue(S[0]),D=u.getRawValue(S[1]);r&&(C=function(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(tF(n)){var a,s=(n-(a=i||0))*r+a;return rw(s,o?Math.max(rk(i||0),rk(n)):e)}if(tB(n))return r<1?i:n;for(var l=[],h=Math.max(i?i.length:0,n.length),u=0;u<h;++u){var d=t.getDimensionInfo(u);if(d&&"ordinal"===d.type)l[u]=(r<1&&i?i:n)[u];else{var c=i&&i[u]?i[u]:0,p=n[u],s=(p-c)*r+c;l[u]=rw(s,o?Math.max(rk(c),rk(p)):e)}}return l}(i,c,M,D,w.t))}n.lastFrameIndex=S[0]}else{var I=1===t||n.lastFrameIndex>0?S[0]:0,T=yP(h,I);r&&(C=u.getRawValue(I)),s.attr({x:T[0]+y,y:T[1]+b})}if(r){var A=s4(s);"function"==typeof A.setLabelText&&A.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,h=t.hostModel,u=function(t,e,i,n,r,o){for(var a,s=(a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute(),a),l=[],h=[],u=[],d=[],c=[],p=[],f=[],g=ym(r,e,o),m=t.getLayout("points")||[],_=e.getLayout("points")||[],v=0;v<s.length;v++){var y=s[v],b=!0,x=void 0,w=void 0;switch(y.cmd){case"=":x=2*y.idx,w=2*y.idx1;var S=m[x],k=m[x+1],C=_[w],T=_[w+1];(isNaN(S)||isNaN(k))&&(S=C,k=T),l.push(S,k),h.push(C,T),u.push(i[x],i[x+1]),d.push(n[w],n[w+1]),f.push(e.getRawIndex(y.idx1));break;case"+":var M=y.idx,D=g.dataDimsForPoint,I=r.dataToPoint([e.get(D[0],M),e.get(D[1],M)]);w=2*M,l.push(I[0],I[1]),h.push(_[w],_[w+1]);var A=y_(g,r,e,M);u.push(A[0],A[1]),d.push(n[w],n[w+1]),f.push(e.getRawIndex(M));break;case"-":b=!1}b&&(c.push(y),p.push(p.length))}p.sort(function(t,e){return f[t]-f[e]});for(var E=l.length,O=yb(E),P=yb(E),L=yb(E),R=yb(E),N=[],v=0;v<p.length;v++){var z=p[v],B=2*v,V=2*z;O[B]=l[V],O[B+1]=l[V+1],P[B]=h[V],P[B+1]=h[V+1],L[B]=u[V],L[B+1]=u[V+1],R[B]=d[V],R[B+1]=d[V+1],N[v]=c[z]}return{current:O,next:P,stackedOnCurrent:L,stackedOnNext:R,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),d=u.current,c=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(c=yO(u.stackedOnCurrent,u.current,i,r,a),d=yO(u.current,null,i,r,a),f=yO(u.stackedOnNext,u.next,i,r,a),p=yO(u.next,null,i,r,a)),yA(d,p)>3e3||l&&yA(c,f)>3e3){s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f}));return}s.shape.__points=u.current,s.shape.points=d;var g={shape:{points:p}};u.current!==d&&(g.shape.__points=u.next),s.stopAnimation(),cs(s,g,h),l&&(l.setShape({points:d,stackedOnPoints:c}),l.stopAnimation(),cs(l,{shape:{stackedOnPoints:f}},h),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var m=[],_=u.status,v=0;v<_.length;v++)if("="===_[v].cmd){var y=t.getItemGraphicEl(_[v].idx1);y&&m.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<m.length;e++){var i=m[e].el,n=2*m[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(c6),yz={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)!isNaN(t[n])&&(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},yB=function(t){return Math.round(t.length/2)},yV=ac.CMD;function yF(t,e){return 1e-5>Math.abs(t-e)}function yH(t){var e,i,n,r,o,a=t.data,s=t.len(),l=[],h=0,u=0,d=0,c=0;function p(t,i){e&&e.length>2&&l.push(e),e=[t,i]}function f(t,i,n,r){yF(t,n)&&yF(i,r)||e.push(t,i,n,r,n,r)}for(var g=0;g<s;){var m=a[g++],_=1===g;switch(_&&(h=a[g],u=a[g+1],d=h,c=u,(m===yV.L||m===yV.C||m===yV.Q)&&(e=[d,c])),m){case yV.M:h=d=a[g++],u=c=a[g++],p(d,c);break;case yV.L:f(h,u,i=a[g++],n=a[g++]),h=i,u=n;break;case yV.C:e.push(a[g++],a[g++],a[g++],a[g++],h=a[g++],u=a[g++]);break;case yV.Q:i=a[g++],n=a[g++],r=a[g++],o=a[g++],e.push(h+2/3*(i-h),u+2/3*(n-u),r+2/3*(i-r),o+2/3*(n-o),r,o),h=r,u=o;break;case yV.A:var v=a[g++],y=a[g++],b=a[g++],x=a[g++],w=a[g++],S=a[g++]+w;g+=1;var k=!a[g++];i=Math.cos(w)*b+v,n=Math.sin(w)*x+y,_?p(d=i,c=n):f(h,u,i,n),h=Math.cos(S)*b+v,u=Math.sin(S)*x+y;for(var C=(k?-1:1)*Math.PI/2,T=w;k?T>S:T<S;T+=C){var M=k?Math.max(T+C,S):Math.min(T+C,S);!function(t,i,n,r,o,a){var s=4*Math.tan(Math.abs(i-t)/4)/3,l=i<t?-1:1,h=Math.cos(t),u=Math.sin(t),d=Math.cos(i),c=Math.sin(i),p=d*o+n,f=c*a+r,g=o*s*l,m=a*s*l;e.push(h*o+n-g*u,u*a+r+m*h,p+g*c,f-m*d,p,f)}(T,M,v,y,b,x)}break;case yV.R:d=h=a[g++],c=u=a[g++],i=d+a[g++],n=c+a[g++],p(i,c),f(i,c,i,n),f(i,n,d,n),f(d,n,d,c),f(d,c,i,c);break;case yV.Z:e&&f(h,u,d,c),h=d,u=c}}return e&&e.length>2&&l.push(e),l}function yY(t,e,i){var n=Math.ceil(Math.sqrt(Math.abs(t[e]/t[1-e])*i)),r=Math.floor(i/n);0===r&&(r=1,n=i);for(var o=[],a=0;a<n;a++)o.push(r);var s=i-n*r;if(s>0)for(var a=0;a<s;a++)o[a%n]+=1;return o}function y$(t,e,i){for(var n=t.r0,r=t.r,o=t.startAngle,a=Math.abs(t.endAngle-o),s=a*r,l=r-n,h=s>Math.abs(l),u=yY([s,l],+!h,e),d=(h?a:l)/u.length,c=0;c<u.length;c++)for(var p=(h?l:a)/u[c],f=0;f<u[c];f++){var g={};h?(g.startAngle=o+d*c,g.endAngle=o+d*(c+1),g.r0=n+p*f,g.r=n+p*(f+1)):(g.startAngle=o+p*f,g.endAngle=o+p*(f+1),g.r0=n+d*c,g.r=n+d*(c+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,i.push(g)}}function yU(t,e){var i=t[t.length-1];i&&i[0]===e[0]&&i[1]===e[1]||t.push(e)}function yW(t){var e=t.points,i=[],n=[];o1(e,i,n);var r=new ie(i[0],i[1],n[0]-i[0],n[1]-i[1]),o=r.width,a=r.height,s=r.x,l=r.y,h=new eY,u=new eY;return o>a?(h.x=u.x=s+o/2,h.y=l,u.y=l+a):(h.y=u.y=l+a/2,h.x=s,u.x=s+o),function(t,e,i){for(var n=t.length,r=[],o=0;o<n;o++){var a=t[o],s=t[(o+1)%n],l=function(t,e,i,n,r,o,a,s){var l=i-t,h=n-e,u=a-r,d=s-o,c=u*h-l*d;if(1e-6>Math.abs(c))return null;var p=((t-r)*d-u*(e-o))/c;return p<0||p>1?null:new eY(p*l+t,p*h+e)}(a[0],a[1],s[0],s[1],e.x,e.y,i.x,i.y);l&&r.push({projPt:function(t,e,i){var n=new eY;eY.sub(n,i,e),n.normalize();var r=new eY;return eY.sub(r,t,e),r.dot(n)}(l,e,i),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort(function(t,e){return t.projPt-e.projPt});var h=r[0],u=r[r.length-1];if(u.idx<h.idx){var d=h;h=u,u=d}for(var c=[h.pt.x,h.pt.y],p=[u.pt.x,u.pt.y],f=[c],g=[p],o=h.idx+1;o<=u.idx;o++)yU(f,t[o].slice());yU(f,p),yU(f,c);for(var o=u.idx+1;o<=h.idx+n;o++)yU(g,t[o%n].slice());return yU(g,c),yU(g,p),[{points:f},{points:g}]}(e,h,u)}function yj(t,e,i,n){if(1===i)n.push(e);else{var r=Math.floor(i/2),o=t(e);yj(t,o[0],r,n),yj(t,o[1],i-r,n)}return n}function yG(t,e){for(var i=t.length,n=t[i-2],r=t[i-1],o=[],a=0;a<e.length;)o[a++]=n,o[a++]=r;return o}function yZ(t){for(var e=0,i=0,n=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],h=t[o],u=t[o+1],d=s*u-h*l;e+=d,i+=(s+h)*d,n+=(l+u)*d}return 0===e?[t[0]||0,t[1]||0]:[i/e/3,n/e/3,e]}function yq(t){return t.__isCombineMorphing}var yX="__mOriginal_";function yK(t,e,i){var n=yX+e,r=t[n]||t[e];t[n]||(t[n]=t[e]);var o=i.replace,a=i.after,s=i.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function yQ(t,e){var i=yX+e;t[i]&&(t[e]=t[i],t[i]=null)}function yJ(t,e){for(var i=0;i<t.length;i++)for(var n=t[i],r=0;r<n.length;){var o=n[r],a=n[r+1];n[r++]=e[0]*o+e[2]*a+e[4],n[r++]=e[1]*o+e[3]*a+e[5]}}function y0(t,e){var i=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),r=function(t,e){for(var i,n,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],h=e[s],u=void 0,d=void 0;l?h?(u=(i=function(t,e){var i=t.length,n=e.length;if(i===n)return[t,e];for(var r=[],o=[],a=i<n?t:e,s=Math.min(i,n),l=Math.abs(n-i)/6,h=Math.ceil(l/((s-2)/6))+1,u=[a[0],a[1]],d=l,c=2;c<s;){var p=a[c-2],f=a[c-1],g=a[c++],m=a[c++],_=a[c++],v=a[c++],y=a[c++],b=a[c++];if(d<=0){u.push(g,m,_,v,y,b);continue}for(var x=Math.min(d,h-1)+1,w=1;w<=x;w++){var S=w/x;iN(p,g,_,y,S,r),iN(f,m,v,b,S,o),p=r[3],f=o[3],u.push(r[1],o[1],r[2],o[2],p,f),g=r[5],m=o[5],_=r[6],v=o[6]}d-=x-1}return a===t?[u,e]:[t,u]}(l,h))[0],d=i[1],n=u,r=d):(d=yG(r||l,l),u=l):(u=yG(n||h,h),d=h),o.push(u),a.push(d)}return[o,a]}(yH(i),yH(n)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&yJ(o,s),l&&yJ(a,l),yK(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var h=function(t,e,i){for(var n,r=[],o=0;o<t.length;o++){var a=t[o],s=e[o],l=yZ(a),h=yZ(s);null==n&&(n=l[2]<0!=h[2]<0);var u=[],d=[],c=0,p=1/0,f=[],g=a.length;n&&(a=function(t){for(var e=[],i=t.length,n=0;n<i;n+=2)e[n]=t[i-n-2],e[n+1]=t[i-n-1];return e}(a));for(var m=6*function(t,e,i,n){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,h=0;h<r;h++){for(var u=6*h,d=0,c=0;c<s;c+=2){var p=0===c?u:(u+c-2)%l+2,f=t[p]-i[0],g=t[p+1]-i[1],m=e[c]-n[0],_=e[c+1]-n[1],v=m-f,y=_-g;d+=v*v+y*y}d<o&&(o=d,a=h)}return a}(a,s,l,h),_=g-2,v=0;v<_;v+=2){var y=(m+v)%_+2;u[v+2]=a[y]-l[0],u[v+3]=a[y+1]-l[1]}u[0]=a[m]-l[0],u[1]=a[m+1]-l[1];for(var b=i/10,x=-i/2;x<=i/2;x+=b){for(var w=Math.sin(x),S=Math.cos(x),k=0,v=0;v<a.length;v+=2){var C=u[v],T=u[v+1],M=s[v]-h[0],D=s[v+1]-h[1],I=M*S-D*w,A=M*w+D*S;f[v]=I,f[v+1]=A;var E=I-C,O=A-T;k+=E*E+O*O}if(k<p){p=k,c=x;for(var P=0;P<f.length;P++)d[P]=f[P]}}r.push({from:u,to:d,fromCp:l,toCp:h,rotation:-c})}return r}(o,a,Math.PI),u=[];yK(e,"buildPath",{replace:function(t){for(var i=e.__morphT,n=1-i,r=[],o=0;o<h.length;o++){var a=h[o],s=a.from,l=a.to,d=a.rotation*i,c=a.fromCp,p=a.toCp,f=Math.sin(d),g=Math.cos(d);r[0]=c[0]+i*(p[0]-c[0]),r[1]=c[1]+i*(p[1]-c[1]);for(var m=0;m<s.length;m+=2){var _=s[m],v=s[m+1],y=l[m],b=l[m+1],x=_*n+y*i,w=v*n+b*i;u[m]=x*g-w*f+r[0],u[m+1]=x*f+w*g+r[1]}var S=u[0],k=u[1];t.moveTo(S,k);for(var m=2;m<s.length;){var y=u[m++],b=u[m++],C=u[m++],T=u[m++],M=u[m++],D=u[m++];S===y&&k===b&&C===M&&T===D?t.lineTo(M,D):t.bezierCurveTo(y,b,C,T,M,D),S=M,k=D}}}})}function y1(t,e,i){if(!t||!e)return e;var n=i.done,r=i.during;return y0(t,e),e.__morphT=0,e.animateTo({__morphT:1},tC({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){yQ(e,"buildPath"),yQ(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),n&&n()}},i)),e}function y2(t){var e=1/0,i=1/0,n=-1/0,r=-1/0,o=tA(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),i=Math.min(l,i),n=Math.max(s,n),r=Math.max(l,r),[s,l]});return tA(o,function(o,a){return{cp:o,z:function(t,e,i,n,r,o){t=r===i?0:Math.round(32767*(t-i)/(r-i)),e=o===n?0:Math.round(32767*(e-n)/(o-n));for(var a,s=0,l=32768;l>0;l/=2){var h=0,u=0;(t&l)>0&&(h=1),(e&l)>0&&(u=1),s+=l*l*(3*h^u),0===u&&(1===h&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}(o[0],o[1],e,i,n,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function y5(t){return function(t,e){var i,n=[],r=t.shape;switch(t.type){case"rect":!function(t,e,i){for(var n=t.width,r=t.height,o=n>r,a=yY([n,r],+!o,e),s=o?"width":"height",l=o?"height":"width",h=o?"x":"y",u=o?"y":"x",d=t[s]/a.length,c=0;c<a.length;c++)for(var p=t[l]/a[c],f=0;f<a[c];f++){var g={};g[h]=c*d,g[u]=f*p,g[s]=d,g[l]=p,g.x+=t.x,g.y+=t.y,i.push(g)}}(r,e,n),i=aF;break;case"sector":y$(r,e,n),i=dA;break;case"circle":y$({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,n),i=dA;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=tA(function(t,e){var i=yH(t),n=[];e=e||1;for(var r=0;r<i.length;r++){var o=i[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var h=2;h<o.length;){var u=o[h++],d=o[h++],c=o[h++],p=o[h++],f=o[h++],g=o[h++];!function t(e,i,n,r,o,a,s,l,h,u){if(yF(e,n)&&yF(i,r)&&yF(o,s)&&yF(a,l))return void h.push(s,l);var d=2/u,c=d*d,p=s-e,f=l-i,g=Math.sqrt(p*p+f*f);p/=g,f/=g;var m=n-e,_=r-i,v=o-s,y=a-l,b=m*m+_*_,x=v*v+y*y;if(b<c&&x<c)return void h.push(s,l);var w=p*m+f*_,S=-p*v-f*y;if(b-w*w<c&&w>=0&&x-S*S<c&&S>=0)return void h.push(s,l);var k=[],C=[];iN(e,n,o,s,.5,k),iN(i,r,a,l,.5,C),t(k[0],C[0],k[1],C[1],k[2],C[2],k[3],C[3],h,u),t(k[4],C[4],k[5],C[5],k[6],C[6],k[7],C[7],h,u)}(s,l,u,d,c,p,f,g,a,e),s=f,l=g}n.push(a)}return n}(t.getUpdatedPathProxy(),a),function(t){for(var e=[],i=0;i<t.length;)e.push([t[i++],t[i++]]);return e}),l=s.length;if(0===l)yj(yW,{points:s[0]},e,n);else if(l===e)for(var h=0;h<l;h++)n.push({points:s[h]});else{var u=0,d=tA(s,function(t){var e=[],i=[];o1(t,e,i);var n=(i[1]-e[1])*(i[0]-e[0]);return u+=n,{poly:t,area:n}});d.sort(function(t,e){return e.area-t.area});for(var c=e,h=0;h<l;h++){var p=d[h];if(c<=0)break;var f=h===l-1?c:Math.ceil(p.area/u*e);f<0||(yj(yW,{points:p.poly},f,n),c-=f)}}i=dz}if(!i){for(var g=[],m=0;m<e;m++)g.push(du(t));return g}for(var _=[],h=0;h<n.length;h++){var v=new i;v.setShape(n[h]),v.setStyle(t.style),v.z=t.z,v.z2=t.z2,v.zlevel=t.zlevel,_.push(v)}return _}(t.path,t.count)}function y3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function y4(t,e){for(var i=[],n=t.length,r=0;r<n;r++)i.push({one:t[r],many:[]});for(var r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)i[a%n].many.push(e[r][a])}for(var s=0,r=n-1;r>=0;r--)if(!i[r].many.length){var l=i[s].many;if(l.length<=1)if(!s)return i;else s=0;var o=l.length,h=Math.ceil(o/2);i[r].many=l.slice(h,o),i[s].many=l.slice(0,h),s++}return i}var y6={clone:function(t){for(var e=[],i=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var r=du(t.path);r.setStyle("opacity",i),e.push(r)}return e},split:null};function y7(t,e,i,n,r,o){if(t.length&&e.length){var a,s,l=co("update",n,r);if(l&&l.duration>0){var h=n.getModel("universalTransition").get("delay"),u=tk({setToFinal:!0},l);tN(t[0])&&(a=t,s=e),tN(e[0])&&(a=e,s=t);for(var d=a?a===t:t.length>e.length,c=a?y4(s,a):y4(d?e:t,[d?t:e]),p=0,f=0;f<c.length;f++)p+=c[f].many.length;for(var g=0,f=0;f<c.length;f++)(function t(e,n,r,a,s){var l=e.many,d=e.one;if(1!==l.length||s)for(var c=tC({dividePath:y6[i],individualDelay:h&&function(t,e,i,n){return h(t+r,a)}},u),p=n?function(t,e,i){var n=[];!function t(e){for(var i=0;i<e.length;i++){var r=e[i];yq(r)?t(r.childrenRef()):r instanceof aT&&n.push(r)}}(t);var r=n.length;if(!r)return y3();var o=(i.dividePath||y5)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),y3();n=y2(n),o=y2(o);for(var a=i.done,s=i.during,l=i.individualDelay,h=new nV,u=0;u<r;u++){var d=n[u],c=o[u];c.parent=e,c.copyTransform(h),l||y0(d,c)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,yQ(e,"addSelfToZr"),yQ(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},yK(e,"addSelfToZr",{after:function(t){p(t)}}),yK(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l)for(var m=g,_=function(){0==--m&&(f(),a&&a())},u=0;u<g;u++){var v=l?tC({delay:(i.delay||0)+l(u,g,n[u],o[u]),done:_},i):i;y1(n[u],o[u],v)}else e.__morphT=0,e.animateTo({__morphT:1},tC({during:function(t){for(var i=0;i<g;i++){var n=o[i];n.__morphT=e.__morphT,n.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)yQ(t[e],"updateTransform");a&&a()}},i));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:o,count:g}}(l,d,c):function(t,e,i){var n=e.length,r=[],o=i.dividePath||y5;if(yq(t)){!function t(e){for(var i=0;i<e.length;i++){var n=e[i];yq(n)?t(n.childrenRef()):n instanceof aT&&r.push(n)}}(t.childrenRef());var a=r.length;if(a<n)for(var s=0,l=a;l<n;l++)r.push(du(r[s++%a]));r.length=n}else{r=o({path:t,count:n});for(var h=t.getComputedTransform(),l=0;l<r.length;l++)r[l].setLocalTransform(h);if(r.length!==n)return console.error("Invalid morphing: unmatched splitted path"),y3()}r=y2(r),e=y2(e);for(var u=i.individualDelay,l=0;l<n;l++){var d=u?tC({delay:(i.delay||0)+u(l,n,r[l],e[l])},i):i;y1(r[l],e[l],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(d,l,c),f=p.fromIndividuals,g=p.toIndividuals,m=f.length,_=0;_<m;_++){var v=h?tC({delay:h(_,m)},u):u;o(f[_],g[_],n?l[_]:e.one,n?e.one:l[_],v)}else{var y=n?l[0]:d,b=n?d:l[0];if(yq(y))t({many:[y],one:b},!0,r,a,!0);else{var v=h?tC({delay:h(r,a)},u):u;y1(y,b,v),o(y,b,y,b,v)}}})(c[f],d,g,p),g+=c[f].many.length}}}function y8(t){if(!t)return[];if(tN(t)){for(var e=[],i=0;i<t.length;i++)e.push(y8(t[i]));return e}var n=[];return t.traverse(function(t){t instanceof aT&&!t.disableMorphing&&!t.invisible&&!t.ignore&&n.push(t)}),n}var y9=rX();function bt(t,e,i,n){var r=function(t,e){for(var i=t.dimensions,n=0;n<i.length;n++){var r=t.getDimensionInfo(i[n]);if(r&&0===r.otherDims[e])return i[n]}}(t,n?"itemChildGroupId":"itemGroupId");if(r){var o=t,a=e,s=r,l=o.getDimensionInfo(s),h=l&&l.ordinalMeta;if(l){var u=o.get(l.name,a);return h&&h.categories[u]||u+""}return}var d=t.getRawDataItem(e),c=n?"childGroupId":"groupId";return d&&d[c]?d[c]+"":n?void 0:i||t.getId(e)}function be(t){var e=[];return tI(t,function(t){var i=t.data,n=t.dataGroupId;if(!(i.count()>1e4))for(var r=i.getIndices(),o=0;o<r.length;o++)e.push({data:i,groupId:bt(i,o,n,!1),childGroupId:bt(i,o,n,!0),divide:t.divide,dataIndex:o})}),e}function bi(t,e,i){t.traverse(function(t){t instanceof aT&&cl(t,{style:{opacity:0}},e,{dataIndex:i,isFrom:!0})})}function bn(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function br(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function bo(t,e,i){var n=be(t),r=be(e);function o(t,e,i,n,r){(i||t)&&e.animateFrom({style:i&&i!==t?tk(tk({},i.style),t.style):t.style},r)}var a=!1,s=0,l=t5(),h=t5();tI(n,function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&h.set(t.childGroupId,!0)});for(var u=0;u<r.length;u++){var d=r[u].groupId;if(h.get(d)){s=1;break}var c=r[u].childGroupId;if(c&&l.get(c)){s=2;break}}function p(t,e){return function(i){var n=i.data,r=i.dataIndex;return e?n.getId(r):t?1===s?i.childGroupId:i.groupId:2===s?i.childGroupId:i.groupId}}var f=function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++){var r=t[n],o=e[n];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(n,r),g={};if(!f)for(var u=0;u<r.length;u++){var m=r[u],_=m.data.getItemGraphicEl(m.dataIndex);_&&(g[_.id]=!0)}function v(t,e){var i,s=n[e],l=r[t],h=l.data.hostModel,u=s.data.getItemGraphicEl(s.dataIndex),d=l.data.getItemGraphicEl(l.dataIndex);if(u===d){d&&(i=co("update",h,l.dataIndex))&&d.traverse(function(t){if(t instanceof oU){var e=cr(t).oldStyle;e&&t.animateFrom({style:e},i)}});return}u&&g[u.id]||d&&(br(d),u?(br(u),bn(u),a=!0,y7(y8(u),y8(d),l.divide,h,t,o)):bi(d,h,t))}new v3(n,r,p(!0,f),p(!1,f),null,"multiple").update(v).updateManyToOne(function(t,e){var i=r[t],s=i.data,l=s.hostModel,h=s.getItemGraphicEl(i.dataIndex),u=tO(tA(e,function(t){return n[t].data.getItemGraphicEl(n[t].dataIndex)}),function(t){return t&&t!==h&&!g[t.id]});h&&(br(h),u.length?(tI(u,function(t){br(t),bn(t)}),a=!0,y7(y8(u),y8(h),i.divide,l,t,o)):bi(h,l,i.dataIndex))}).updateOneToMany(function(t,e){var i=n[e],s=i.data.getItemGraphicEl(i.dataIndex);if(!s||!g[s.id]){var l=tO(tA(t,function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)}),function(t){return t&&t!==s}),h=r[t[0]].data.hostModel;l.length&&(tI(l,function(t){return br(t)}),s?(br(s),bn(s),a=!0,y7(y8(s),y8(l),i.divide,h,t[0],o)):tI(l,function(e){return bi(e,h,t[0])}))}}).updateManyToMany(function(t,e){new v3(e,t,function(t){return n[t].data.getId(n[t].dataIndex)},function(t){return r[t].data.getId(r[t].dataIndex)}).update(function(i,n){v(t[i],e[n])}).execute()}).execute(),a&&tI(e,function(t){var e=t.data.hostModel,n=e&&i.getViewOfSeriesModel(e),r=co("update",e,0);n&&e.isAnimationEnabled()&&r&&r.duration>0&&n.group.traverse(function(t){t instanceof aT&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function ba(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function bs(t){return tN(t)?t.sort().join(","):t}function bl(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bh(t,e){for(var i=0;i<t.length;i++)if(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)return i}function bu(t,e,i){var n=ts.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function bd(t){return!t.__cursors.get(0)}function bc(t){var e=t.__cursors.get(0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var bp=function(t){function e(e,i,n){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.zlevel=0,o.zlevel2=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__prevIdx={startIdx:0,endIdx:0},n=n||nE,"string"==typeof e?r=bu(e,i,n):tH(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(t4(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=i,o.dpr=n,o}return et(e,t),e.prototype.afterBrush=function(){this.__prevIdx=bc(this)},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=bu("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,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new ie(0,0,0,0);function h(t){if(!(!t.isFinite()||t.isZero()))if(0===o.length){var e=new ie(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,h=0;h<o.length;++h){var u=o[h];if(u.intersect(t)){var d=new ie(0,0,0,0);d.copy(u),d.union(t),o[h]=d,i=!0;break}if(s){l.copy(t),l.union(u);var c=t.width*t.height,p=u.width*u.height,f=l.width*l.height-c-p;f<n&&(n=f,r=h)}}if(s&&(o[r].union(t),i=!0),!i){var e=new ie(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var u=bc(this),d=u.startIdx;d<u.endIdx;++d){var c=t[d];if(c){var p=c.shouldBePainted(i,n,!0,!0),f=c.__isRendered&&(1&c.__dirty||!p)?c.getPrevPaintRect():null;f&&h(f);var g=p&&(1&c.__dirty||!c.__isRendered)?c.getPaintRect():null;g&&h(g)}}for(var m=this.__prevIdx,d=m.startIdx;d<m.endIdx;++d){var c=e[d],p=c&&c.shouldBePainted(i,n,!0,!0);if(c&&(!p||!c.__zr)&&c.__isRendered){var f=c.getPrevPaintRect();f&&h(f)}}do{r=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var _=d+1;_<o.length;)o[d].intersect(o[_])?(r=!0,o[d].union(o[_]),o.splice(_,1)):_++;d++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,e,i){var n=this.dom,r=this.ctx,o=n.width,a=n.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,h=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/h,a/h));var d=this.domBack;function c(t,i,n,o){if(r.clearRect(t,i,n,o),e&&"transparent"!==e){var a=void 0;tW(e)?(a=(e.global||e.__width===n&&e.__height===o)&&e.__canvasGradient||p2(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a,e.__width=n,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=fi(r,e,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,t,i,n,o),r.restore())}!i||s?c(0,0,o,a):i.length&&tI(i,function(t){c(t.x*h,t.y*h,t.width*h,t.height*h)})},e}(ec),bf=void 0;function bg(t,e,i,n){var r=new bp(t,e,e.dpr);return r.zlevel=i,r.zlevel2=n,r.__builtin__=!0,bm(r),r}function bm(t){t.__cursorStack=[],t.__cursors=t5()}function b_(t,e){for(var i=t.__cursorStack,n=0;n<i.length;n++)e(t.__cursors.get(i[n]))}function bv(t,e){var i=t.layers;return i[e]||(i[e]=[,,,])}function by(t,e,i){for(var n=t.layerStack,r=0;r<n.length;r++){var o=n[r].zl,a=n[r].zl2,s=t.layers[o][a];i&&(i&bb&&!s.__builtin__||i&bx&&s.__builtin__||i&bw&&s===t.hoverlayer)||e(s,o,a,r)}}var bb=1,bx=2,bw=4,bS=function(){function t(t,e,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();if(this._opts=i=tk({},i||{}),this.dpr=i.devicePixelRatio||nE,this._singleCanvas=r,this.root=t,t.style&&(t4(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],r){var o=t.width,a=t.height;null!=i.width&&(o=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,t.width=o*this.dpr,t.height=a*this.dpr,this._width=o,this._height=a;var s=bg(t,this,314159,0);s.initContext(),this._insertLayer(s,314159,0,!0),this._domRoot=t}else{this._width=p3(t,0,i),this._height=p3(t,1,i);var l,h,u,d=this._domRoot=(l=this._width,h=this._height,(u=document.createElement("div")).style.cssText=["position:relative","width:"+l+"px","height:"+h+"px","padding:0;margin:0;border-width:0"].join(";")+";",u);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=t&&!tH(t)?{paintAll:!!t}:t||{},i=tG(e.refresh,!0),n=tG(e.refreshHover,!1);if(n&&(this._hoverLayerDirty=2),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var r=this.storage.getDisplayList(!0);this._updateLayerStatus(r,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(r,o,this._redrawId);var a=this._backgroundColor;return by(this._i,function(t,e,i,n){t.refresh&&t.refresh(0===n?a:null)},bx),this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype._paintHoverList=function(t){var e,i=this._i.hoverlayer,n=this._hoverLayerDirty;if((this._hoverLayerDirty=bf,n!==bf)&&(i||2!==n||(i=this._i.hoverlayer=this._ensureLayer(1e5)),i)){i.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=0,a=t.length;o<a;o++){var s=t[o];if(s.__inHover){e||(e=i.ctx).save();var l=s.__hoverStyle,h=void 0;l&&(h=s.style,s.style=l),fu(e,s,r),l&&(s.style=h)}}e&&(fd(e,r),e.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(1e5)},t.prototype.paintOne=function(t,e){fh(t,e)},t.prototype._paintList=function(t,e,i){if(this._redrawId===i){var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),n)by(this._i,function(t){t.afterBrush&&t.afterBrush()},5),this._paintHoverList(t);else{var r=this;p(function(){r._paintList(t,e,i)})}}},t.prototype._compositeManually=function(){var t=this._ensureLayer(314159).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),by(this._i,function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)},bb)},t.prototype._doPaintList=function(t,e){var i=this,n=!0;return by(this._i,function(r){var o=!1;if(b_(r,function(t){(t.drawIdx<t.endIdx||t.notClearIdx>=0)&&(o=!0)}),o||r.__dirty){var a=i._opts.useDirtyRect&&!bd(r)?r.createRepaintRects(t,e,i._width,i._height):null,s=i._i.layerStack[0],l=!0;if(r.__dirty){l=!1,r.__dirty=!1;var h=r.zlevel===s.zl&&r.zlevel2===s.zl2?i._backgroundColor:null;r.clear(!1,h,a)}b_(r,function(e){var o=i._paintPerCursor(r,e,t,a,l);n=n&&o})}},5),tr.wxa&&by(this._i,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),n},t.prototype._paintPerCursor=function(t,e,i,n,r){var o=t.ctx;if(n)if(n.length)for(var a=this.dpr,s=0;s<n.length;++s){var l=n[s];o.save(),o.beginPath(),o.rect(l.x*a,l.y*a,l.width*a,l.height*a),o.clip(),this._paintPerCursorInRect(t,e,i,l,r),o.restore()}else e.drawIdx=e.endIdx;else o.save(),this._paintPerCursorInRect(t,e,i,null,r),o.restore();return e.drawIdx>=e.endIdx},t.prototype._paintPerCursorInRect=function(t,e,i,n,r){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:r}},a=t.ctx,s=bd(t),l=s&&ts.getTime(),h=e.drawIdx,u=e.notClearIdx,d=u>=0?Math.min(u,h):h;d<e.endIdx;d++){var c=i[d];if(!(d<h)||c.notClear){if(c.__inHover&&(this._hoverLayerDirty=2),null!=n){var p=c.getPaintRect();p&&p.intersect(n)&&(fu(a,c,o),c.setPrevPaintRect(p))}else fu(a,c,o);if(s&&ts.getTime()-l>15){d++;break}}}fd(a,o),e.drawIdx=Math.max(d,h)},t.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},t.prototype._ensureLayer=function(t,e,i){e=e||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(t=314159,e=0);var r=bv(this._i,t)[e];return r||(r=bg("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&tS(r,this._layerConfig[t],!0),(i||n&&314159!==t)&&(r.virtual=!0),this._insertLayer(r,t,e,!1),r.initContext()),r},t.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},t.prototype._insertLayer=function(t,e,i,n){var r=this._i,o=r.layers,a=r.layerStack,s=this._domRoot,l=null;if(!o[e]||!o[e][i]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){for(var h=a.length,u=0;u<h&&(a[u].zl<e||a[u].zl===e&&a[u].zl2<i);)u++;if(u>0&&(l=bv(r,a[u-1].zl)[a[u-1].zl2]),a.splice(u,0,{zl:e,zl2:i}),bv(r,e)[i]=t,!n&&!t.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(t.dom,d.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}}},t.prototype.eachLayer=function(t,e){return by(this._i,function(i,n){t.call(e,i,n)})},t.prototype.eachBuiltinLayer=function(t,e){return by(this._i,function(i,n){t.call(e,i,n)},bb)},t.prototype.eachOtherLayer=function(t,e){return by(this._i,function(i,n){t.call(e,i,n)},bx)},t.prototype.getLayers=function(){var t={};return by(this._i,function(e,i,n){t[e.id]=e}),t},t.prototype._updateLayerStatus=function(t,e){var i,n=this;if(n._singleCanvas)for(var r=1;r<t.length;r++){var o=t[r];if(o.zlevel!==t[r-1].zlevel||o.incremental){n._needsManuallyCompositing=!0;break}}by(n._i,function(t){t.__dirty=!1,b_(t,function(t){t.used=!1,t.endIdxNew=0,t.notClearIdx=-1})},5);for(var a=null,s=null,l=!1,h=0,u=t.length;h<u;h++){var o=t[h],d=o.zlevel,c=o.incremental,p=void 0;if(i!==d&&(i=d,l=!1),c?(l=!0,p=1):p=2*!!l,(!a||d!==a.zlevel||p!==a.zlevel2)&&(a=n._ensureLayer(d,p),s=null,!a.__builtin__)){tx("ZLevel "+d+" has been used by unknown layer "+a.id);continue}if((!s||c!==s.key)&&!(s=function(t,e){var i,n=t.__cursors,r=+e;return n.get(r)||(t.__cursorStack.push(r),n.set(r,((i={key:r}).startIdx=i.drawIdx=i.endIdx=i.endIdxNew=0,i.used=!1,i.first=i.last=0/0,i.notClearIdx=-1,i)))}(a,c)).used)if(s.used=!0,e||s.first!==o.id)a.__dirty=!0,s.first=o.id,s.startIdx=s.drawIdx=h,s.endIdx=h+1;else{var f=h-s.startIdx;s.startIdx=h,s.drawIdx+=f,s.endIdx+=f}s.endIdxNew=h+1,1&o.__dirty&&!o.__inHover&&(c&&(o.notClear||!(h<s.drawIdx))||(a.__dirty=!0),c&&o.notClear&&s.notClearIdx<0&&(s.notClearIdx=h))}by(n._i,function(e){for(var i=e.__cursorStack,r=e.__cursors,o=i.length-1;o>=0;o--){var a=r.get(i[o]);if(a.used){var s=a.endIdxNew;(bd(e)?s<a.drawIdx:s!==a.endIdx||!s||t[s-1].id!==a.last)&&(e.__dirty=!0),a.endIdx=a.endIdxNew,a.last=s?t[s-1].id:0/0}else e.__dirty=!0,r.removeKey(i[o]),i.splice(o,1)}e.__dirty&&(b_(e,function(t){t.drawIdx=t.startIdx}),n._hoverLayerDirty===bf&&(n._hoverLayerDirty=1))},5)},t.prototype.clear=function(){return by(this._i,function(t){t.clear(),bm(t)},bb),this},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,by(this._i,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?tS(i[t],e,!0):i[t]=e,by(this._i,function(t,e){tS(t,i[e],!0)})}},t.prototype.delLayer=function(t){for(var e=this._i.layerStack,i=this._i.layers,n=e.length-1;n>=0;n--){var r=e[n];if(r.zl===t){var o=i[t][r.zl2];if(o.__builtin__)continue;if(e.splice(n,1),i[t][r.zl2]=void 0,!o.virtual){var a=o.dom.parentNode;a&&a.removeChild(o.dom)}}}},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,r=this.root;null!=t&&(n.width=t),null!=e&&(n.height=e),t=p3(r,0,n),e=p3(r,1,n),i.style.display="",(this._width!==t||e!==this._height)&&(i.style.width=t+"px",i.style.height=e+"px",by(this._i,function(i){i.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this._ensureLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){tI(this._i.layers[t],function(t){t&&!t.__builtin__&&t.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[314159][0].dom;var e=new bp("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;by(this._i,function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++)fu(i,a[s],o);fd(i,o)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),bk=i(51),bC=i.n(bk);let bT=globalThis,bM=bT.ShadowRoot&&(void 0===bT.ShadyCSS||bT.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bD=Symbol(),bI=new WeakMap;class bA{constructor(t,e,i){if(this._$cssResult$=!0,i!==bD)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(bM&&void 0===t){let i=void 0!==e&&1===e.length;i&&(t=bI.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&bI.set(e,t))}return t}toString(){return this.cssText}}let bE=t=>new bA("string"==typeof t?t:t+"",void 0,bD),bO=(t,...e)=>new bA(1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]),t,bD),bP=(t,e)=>{if(bM)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let i of e){let e=document.createElement("style"),n=bT.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}},bL=bM?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return bE(e)})(t):t,{is:bR,defineProperty:bN,getOwnPropertyDescriptor:bz,getOwnPropertyNames:bB,getOwnPropertySymbols:bV,getPrototypeOf:bF}=Object,bH=globalThis,bY=bH.trustedTypes,b$=bY?bY.emptyScript:"",bU=bH.reactiveElementPolyfillSupport,bW={toAttribute(t,e){switch(e){case Boolean:t=t?b$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},bj=(t,e)=>!bR(t,e),bG={attribute:!0,type:String,converter:bW,reflect:!1,useDefault:!1,hasChanged:bj};Symbol.metadata??=Symbol("metadata"),bH.litPropertyMetadata??=new WeakMap;class bZ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=bG){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);void 0!==n&&bN(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:r}=bz(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:n,set(e){let o=n?.call(this);r?.call(this,e),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??bG}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let t=bF(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...bB(t),...bV(t)])this.createProperty(e,t[e])}let t=this[Symbol.metadata];if(null!==t){let e=litPropertyMetadata.get(t);if(void 0!==e)for(let[t,i]of e)this.elementProperties.set(t,i)}for(let[t,e]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let i of new Set(t.flat(1/0).reverse()))e.unshift(bL(i));else void 0!==t&&e.push(bL(t));return e}static _$Eu(t,e){let i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map;for(let e of this.constructor.elementProperties.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bP(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(void 0!==n&&!0===i.reflect){let r=(void 0!==i.converter?.toAttribute?i.converter:bW).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(void 0!==n&&this._$Em!==n){let t=i.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:bW;this._$Em=n;let o=r.fromAttribute(e,t.type);this[n]=o??this._$Ej?.get(n)??o,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){let n=this.constructor,r=this[t];if(!(((i??=n.getPropertyOptions(t)).hasChanged??bj)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:n,wrapped:r},o){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[e,i]of t){let{wrapped:t}=i,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,i,n)}}let t=!1,e=this._$AL;try{(t=this.shouldUpdate(e))?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}bZ.elementStyles=[],bZ.shadowRootOptions={mode:"open"},bZ.elementProperties=new Map,bZ.finalized=new Map,bU?.({ReactiveElement:bZ}),(bH.reactiveElementVersions??=[]).push("2.1.1");let bq=globalThis,bX=bq.trustedTypes,bK=bX?bX.createPolicy("lit-html",{createHTML:t=>t}):void 0,bQ="$lit$",bJ=`lit$${Math.random().toFixed(9).slice(2)}$`,b0="?"+bJ,b1=`<${b0}>`,b2=document,b5=()=>b2.createComment(""),b3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b4=Array.isArray,b6="[ \n\f\r]",b7=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b8=/-->/g,b9=/>/g,xt=RegExp(`>|${b6}(?:([^\\s"'>=/]+)(${b6}*=${b6}*(?:[^
2
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,xi=/"/g,xn=/^(?:script|style|textarea|title)$/i,xr=(t,...e)=>({_$litType$:1,strings:t,values:e}),xo=Symbol.for("lit-noChange"),xa=Symbol.for("lit-nothing"),xs=new WeakMap,xl=b2.createTreeWalker(b2,129);function xh(t,e){if(!b4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==bK?bK.createHTML(e):e}class xu{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,s=this.parts,[l,h]=((t,e)=>{let i=t.length-1,n=[],r,o=2===e?"<svg>":3===e?"<math>":"",a=b7;for(let e=0;e<i;e++){let i=t[e],s,l,h=-1,u=0;for(;u<i.length&&(a.lastIndex=u,null!==(l=a.exec(i)));)u=a.lastIndex,a===b7?"!--"===l[1]?a=b8:void 0!==l[1]?a=b9:void 0!==l[2]?(xn.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=xt):void 0!==l[3]&&(a=xt):a===xt?">"===l[0]?(a=r??b7,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?xt:'"'===l[3]?xi:xe):a===xi||a===xe?a=xt:a===b8||a===b9?a=b7:(a=xt,r=void 0);let d=a===xt&&t[e+1].startsWith("/>")?" ":"";o+=a===b7?i+b1:h>=0?(n.push(s),i.slice(0,h)+bQ+i.slice(h)+bJ+d):i+bJ+(-2===h?e:d)}return[xh(t,o+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]})(t,e);if(this.el=xu.createElement(l,i),xl.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=xl.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(bQ)){const e=h[o++],i=n.getAttribute(t).split(bJ),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?xg:"?"===a[1]?xm:"@"===a[1]?x_:xf}),n.removeAttribute(t)}else t.startsWith(bJ)&&(s.push({type:6,index:r}),n.removeAttribute(t));if(xn.test(n.tagName)){const t=n.textContent.split(bJ),e=t.length-1;if(e>0){n.textContent=bX?bX.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],b5()),xl.nextNode(),s.push({type:2,index:++r});n.append(t[e],b5())}}}else if(8===n.nodeType)if(n.data===b0)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(bJ,t+1));)s.push({type:7,index:r}),t+=bJ.length-1}r++}}static createElement(t,e){let i=b2.createElement("template");return i.innerHTML=t,i}}function xd(t,e,i=t,n){if(e===xo)return e;let r=void 0!==n?i._$Co?.[n]:i._$Cl,o=b3(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t))._$AT(t,i,n),void 0!==n?(i._$Co??=[])[n]=r:i._$Cl=r),void 0!==r&&(e=xd(t,r._$AS(t,e.values),r,n)),e}class xc{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??b2).importNode(e,!0);xl.currentNode=n;let r=xl.nextNode(),o=0,a=0,s=i[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new xp(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new xv(r,this,t)),this._$AV.push(e),s=i[++a]}o!==s?.index&&(r=xl.nextNode(),o++)}return xl.currentNode=b2,n}p(t){let e=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xp{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=xa,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){let i;b3(t=xd(this,t,e))?t===xa||null==t||""===t?(this._$AH!==xa&&this._$AR(),this._$AH=xa):t!==this._$AH&&t!==xo&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):b4(i=t)||"function"==typeof i?.[Symbol.iterator]?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==xa&&b3(this._$AH)?this._$AA.nextSibling.data=t:this.T(b2.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=xu.createElement(xh(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let t=new xc(n,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=xs.get(t.strings);return void 0===e&&xs.set(t.strings,e=new xu(t)),e}k(t){b4(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let r of t)n===e.length?e.push(i=new xp(this.O(b5()),this.O(b5()),this,this.options)):i=e[n],i._$AI(r),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class xf{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,r){this.type=1,this._$AH=xa,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xa}_$AI(t,e=this,i,n){let r=this.strings,o=!1;if(void 0===r)(o=!b3(t=xd(this,t,e,0))||t!==this._$AH&&t!==xo)&&(this._$AH=t);else{let n,a,s=t;for(t=r[0],n=0;n<r.length-1;n++)(a=xd(this,s[i+n],e,n))===xo&&(a=this._$AH[n]),o||=!b3(a)||a!==this._$AH[n],a===xa?t=xa:t!==xa&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}o&&!n&&this.j(t)}j(t){t===xa?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xg extends xf{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===xa?void 0:t}}class xm extends xf{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==xa)}}class x_ extends xf{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){if((t=xd(this,t,e,0)??xa)===xo)return;let i=this._$AH,n=t===xa&&i!==xa||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==xa&&(i===xa||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class xv{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){xd(this,t)}}let xy=bq.litHtmlPolyfillSupport;xy?.(xu,xp),(bq.litHtmlVersions??=[]).push("3.3.1");let xb=globalThis;class xx extends bZ{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{let n=i?.renderBefore??e,r=n._$litPart$;if(void 0===r){let t=i?.renderBefore??null;n._$litPart$=r=new xp(e.insertBefore(b5(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xo}}xx._$litElement$=!0,xx.finalized=!0,xb.litElementHydrateSupport?.({LitElement:xx});let xw=xb.litElementPolyfillSupport;xw?.({LitElement:xx}),(xb.litElementVersions??=[]).push("4.2.1");let xS=t=>(e,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},xk={attribute:!0,type:String,converter:bW,reflect:!1,hasChanged:bj};function xC(t){return(e,i)=>{let n;return"object"==typeof i?((t=xk,e,i)=>{let{kind:n,metadata:r}=i,o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),o.set(i.name,t),"accessor"===n){let{name:n}=i;return{set(i){let r=e.get.call(this);e.set.call(this,i),this.requestUpdate(n,r,t)},init(e){return void 0!==e&&this.C(n,void 0,t,e),e}}}if("setter"===n){let{name:n}=i;return function(i){let r=this[n];e.call(this,i),this.requestUpdate(n,r,t)}}throw Error("Unsupported decorator location: "+n)})(t,e,i):(n=e.hasOwnProperty(i),e.constructor.createProperty(i,t),n?Object.getOwnPropertyDescriptor(e,i):void 0)}}let xT=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i);function xM(t,e){return(i,n,r)=>{let o=e=>e.renderRoot?.querySelector(t)??null;if(e){let t,{get:e,set:a}="object"==typeof n?i:r??(t=Symbol(),{get(){return this[t]},set(e){this[t]=e}});return xT(i,n,{get(){let t=e.call(this);return void 0===t&&(null!==(t=o(this))||this.hasUpdated)&&a.call(this,t),t}})}return xT(i,n,{get(){return o(this)}})}}var xD=i(673),xI=i(650),xA=i(954),xE=i.n(xA);function xO(t,e,i){return t?e(t):i?.(t)}var xP=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};let xL=bO`
1
+ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt,l="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g,h="object"==typeof self&&self&&self.Object===Object&&self,u=l||h||Function("return this")(),d=Object.prototype.toString,c=Math.max,p=Math.min,f=function(){return u.Date.now()};function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function _(t){if("number"==typeof t)return t;if("symbol"==typeof(e=t)||e&&"object"==typeof e&&"[object Symbol]"==d.call(e))return 0/0;if(g(t)){var e,i="function"==typeof t.valueOf?t.valueOf():t;t=g(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(n,"");var l=o.test(t);return l||a.test(t)?s(t.slice(2),l?2:8):r.test(t)?0/0:+t}t.exports=function(t,e,i){var n,r,o,a,s,l,h=0,u=!1,d=!1,m=!0;if("function"!=typeof t)throw TypeError("Expected a function");function v(e){var i=n,o=r;return n=r=void 0,h=e,a=t.apply(o,i)}function y(t){var i=t-l,n=t-h;return void 0===l||i>=e||i<0||d&&n>=o}function b(){var t,i,n,r=f();if(y(r))return x(r);s=setTimeout(b,(t=r-l,i=r-h,n=e-t,d?p(n,o-i):n))}function x(t){return(s=void 0,m&&n)?v(t):(n=r=void 0,a)}function w(){var t,i=f(),o=y(i);if(n=arguments,r=this,l=i,o){if(void 0===s)return h=t=l,s=setTimeout(b,e),u?v(t):a;if(d)return s=setTimeout(b,e),v(l)}return void 0===s&&(s=setTimeout(b,e)),a}return e=_(e)||0,g(i)&&(u=!!i.leading,o=(d="maxWait"in i)?c(_(i.maxWait)||0,e):o,m="trailing"in i?!!i.trailing:m),w.cancel=function(){void 0!==s&&clearTimeout(s),h=0,n=l=r=s=void 0},w.flush=function(){return void 0===s?a:x(f())},w}},867(t,e,i){t=i.nmd(t),t.exports=function(){"use strict";function e(){return H.apply(null,arguments)}function n(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){var e;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;for(e in t)if(o(t,e))return!1;return!0}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function u(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function d(t,e){for(var i in e)o(e,i)&&(t[i]=e[i]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return eo(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function f(t){var e=null,i=!1,n=t._d&&!isNaN(t._d.getTime());return(n&&(e=p(t),i=Y.call(e.parsedDateParts,function(t){return null!=t}),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t))?n:(t._isValid=n,t._isValid)}function g(t){var e=c(0/0);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}Y=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var _,m,v=e.momentProperties=[],y=!1;function b(t,e){var i,n,r,o=v.length;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=p(e)),s(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)s(r=e[n=v[i]])||(t[n]=r);return t}function x(t){b(this,t),this._d=new Date(null!=t._d?t._d.getTime():0/0),this.isValid()||(this._d=new Date(0/0)),!1===y&&(y=!0,e.updateOffset(this),y=!1)}function w(t){return t instanceof x||null!=t&&null!=t._isAMomentObject}function S(t){!1===e.suppressDeprecationWarnings&&"u">typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,i){var n=!0;return d(function(){if(null!=e.deprecationHandler&&e.deprecationHandler(null,t),n){var r,a,s,l=[],h=arguments.length;for(a=0;a<h;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}S(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+Error().stack),n=!1}return i.apply(this,arguments)},i)}var C={};function T(t,i){null!=e.deprecationHandler&&e.deprecationHandler(t,i),C[t]||(S(i),C[t]=!0)}function M(t){return"u">typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function D(t,e){var i,n=d({},t);for(i in e)o(e,i)&&(r(t[i])&&r(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)o(t,i)&&!o(e,i)&&r(t[i])&&(n[i]=d({},n[i]));return n}function I(t){null!=t&&this.set(t)}function A(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;var E=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},L={};function R(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(L[t]=r),e&&(L[e[0]]=function(){return A(r.apply(this,arguments),e[1],e[2])}),i&&(L[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function N(t,e){return t.isValid()?(P[e=z(e,t.localeData())]=P[e]||function(t){var e,i,n,r=t.match(E);for(i=0,n=r.length;i<n;i++)L[r[i]]?r[i]=L[r[i]]:r[i]=(e=r[i]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=M(r[i])?r[i].call(e,t):r[i];return o}}(e),P[e](t)):t.localeData().invalidDate()}function z(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(O.lastIndex=0;i>=0&&O.test(t);)t=t.replace(O,n),O.lastIndex=0,i-=1;return t}var B={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function V(t){return"string"==typeof t?B[t]||B[t.toLowerCase()]:void 0}function F(t){var e,i,n={};for(i in t)o(t,i)&&(e=V(i))&&(n[e]=t[i]);return n}var H,Y,$,U={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},W=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)o(t,e)&&i.push(e);return i},j=/\d/,G=/\d\d/,Z=/\d{3}/,q=/\d{4}/,X=/[+-]?\d{6}/,K=/\d\d?/,Q=/\d\d\d\d?/,J=/\d\d\d\d\d\d?/,tt=/\d{1,3}/,te=/\d{1,4}/,ti=/[+-]?\d{1,6}/,tn=/\d+/,tr=/[+-]?\d+/,to=/Z|[+-]\d\d:?\d\d/gi,ta=/Z|[+-]\d\d(?::?\d\d)?/gi,ts=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,tl=/^[1-9]\d?/,th=/^([1-9]\d|\d)/;function tu(t,e,i){$[t]=M(e)?e:function(t,n){return t&&i?i:e}}function td(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tc(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function tp(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=tc(e)),i}$={};var tf={};function tg(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,i){i[e]=tp(t)}),n=t.length,i=0;i<n;i++)tf[t[i]]=r}function t_(t,e){tg(t,function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)})}function tm(t){return t%4==0&&t%100!=0||t%400==0}function tv(t){return tm(t)?366:365}R("Y",0,0,function(){var t=this.year();return t<=9999?A(t,4):"+"+t}),R(0,["YY",2],0,function(){return this.year()%100}),R(0,["YYYY",4],0,"year"),R(0,["YYYYY",5],0,"year"),R(0,["YYYYYY",6,!0],0,"year"),tu("Y",tr),tu("YY",K,G),tu("YYYY",te,q),tu("YYYYY",ti,X),tu("YYYYYY",ti,X),tg(["YYYYY","YYYYYY"],0),tg("YYYY",function(t,i){i[0]=2===t.length?e.parseTwoDigitYear(t):tp(t)}),tg("YY",function(t,i){i[0]=e.parseTwoDigitYear(t)}),tg("Y",function(t,e){e[0]=parseInt(t,10)}),e.parseTwoDigitYear=function(t){return tp(t)+(tp(t)>68?1900:2e3)};var ty=tb("FullYear",!0);function tb(t,i){return function(n){return null!=n?(tw(this,t,n),e.updateOffset(this,i),this):tx(this,t)}}function tx(t,e){if(!t.isValid())return 0/0;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return 0/0}}function tw(t,e,i){var n,r,o,a;if(!(!t.isValid()||isNaN(i))){switch(n=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=t.month(),a=29!==(a=t.date())||1!==o||tm(i)?a:28,r?n.setUTCFullYear(i,o,a):n.setFullYear(i,o,a)}}function tS(t,e){if(isNaN(t)||isNaN(e))return 0/0;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?tm(t)?29:28:31-i%7%2}t$=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return -1},R("M",["MM",2],"Mo",function(){return this.month()+1}),R("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),R("MMMM",0,0,function(t){return this.localeData().months(this,t)}),tu("M",K,tl),tu("MM",K,G),tu("MMM",function(t,e){return e.monthsShortRegex(t)}),tu("MMMM",function(t,e){return e.monthsRegex(t)}),tg(["M","MM"],function(t,e){e[1]=tp(t)-1}),tg(["MMM","MMMM"],function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:p(i).invalidMonth=t});var tk="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),tC=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function tT(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();if(i)if("MMM"===e)return -1!==(r=t$.call(this._shortMonthsParse,a))?r:null;else return -1!==(r=t$.call(this._longMonthsParse,a))?r:null;return"MMM"===e?-1!==(r=t$.call(this._shortMonthsParse,a))||-1!==(r=t$.call(this._longMonthsParse,a))?r:null:-1!==(r=t$.call(this._longMonthsParse,a))||-1!==(r=t$.call(this._shortMonthsParse,a))?r:null}function tM(t,e){if(!t.isValid())return t;if("string"==typeof e){if(/^\d+$/.test(e))e=tp(e);else if(!l(e=t.localeData().monthsParse(e)))return t}var i=e,n=t.date();return n=n<29?n:Math.min(n,tS(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function tD(t){return null!=t?(tM(this,t),e.updateOffset(this,!0),this):tx(this,"Month")}function tI(){function t(t,e){return e.length-t.length}var e,i,n,r,o=[],a=[],s=[];for(e=0;e<12;e++)i=c([2e3,e]),n=td(this.monthsShort(i,"")),r=td(this.months(i,"")),o.push(n),a.push(r),s.push(r),s.push(n);o.sort(t),a.sort(t),s.sort(t),this._monthsRegex=RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+o.join("|")+")","i")}function tA(t,e,i,n,r,o,a){var s;return t<100&&t>=0?isFinite((s=new Date(t+400,e,i,n,r,o,a)).getFullYear())&&s.setFullYear(t):s=new Date(t,e,i,n,r,o,a),s}function tE(t){var e,i;return t<100&&t>=0?(i=Array.prototype.slice.call(arguments),i[0]=t+400,isFinite((e=new Date(Date.UTC.apply(null,i))).getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function tO(t,e,i){var n=7+e-i;return-((7+tE(t,0,n).getUTCDay()-e)%7)+n-1}function tP(t,e,i,n,r){var o,a,s=1+7*(e-1)+(7+i-n)%7+tO(t,n,r);return s<=0?a=tv(o=t-1)+s:s>tv(t)?(o=t+1,a=s-tv(t)):(o=t,a=s),{year:o,dayOfYear:a}}function tL(t,e,i){var n,r,o=tO(t.year(),e,i),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?n=a+tR(r=t.year()-1,e,i):a>tR(t.year(),e,i)?(n=a-tR(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function tR(t,e,i){var n=tO(t,e,i),r=tO(t+1,e,i);return(tv(t)-n+r)/7}function tN(t,e){return t.slice(e,7).concat(t.slice(0,e))}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),tu("w",K,tl),tu("ww",K,G),tu("W",K,tl),tu("WW",K,G),t_(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=tp(t)}),R("d",0,"do","day"),R("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),R("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),R("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),tu("d",K),tu("e",K),tu("E",K),tu("dd",function(t,e){return e.weekdaysMinRegex(t)}),tu("ddd",function(t,e){return e.weekdaysShortRegex(t)}),tu("dddd",function(t,e){return e.weekdaysRegex(t)}),t_(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t}),t_(["d","e","E"],function(t,e,i,n){e[n]=tp(t)});var tz="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function tB(t,e,i){var n,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();if(i)if("dddd"===e)return -1!==(r=t$.call(this._weekdaysParse,a))?r:null;else if("ddd"===e)return -1!==(r=t$.call(this._shortWeekdaysParse,a))?r:null;else return -1!==(r=t$.call(this._minWeekdaysParse,a))?r:null;return"dddd"===e?-1!==(r=t$.call(this._weekdaysParse,a))||-1!==(r=t$.call(this._shortWeekdaysParse,a))||-1!==(r=t$.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=t$.call(this._shortWeekdaysParse,a))||-1!==(r=t$.call(this._weekdaysParse,a))||-1!==(r=t$.call(this._minWeekdaysParse,a))?r:null:-1!==(r=t$.call(this._minWeekdaysParse,a))||-1!==(r=t$.call(this._weekdaysParse,a))||-1!==(r=t$.call(this._shortWeekdaysParse,a))?r:null}function tV(){function t(t,e){return e.length-t.length}var e,i,n,r,o,a=[],s=[],l=[],h=[];for(e=0;e<7;e++)i=c([2e3,1]).day(e),n=td(this.weekdaysMin(i,"")),r=td(this.weekdaysShort(i,"")),o=td(this.weekdays(i,"")),a.push(n),s.push(r),l.push(o),h.push(n),h.push(r),h.push(o);a.sort(t),s.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function tF(){return this.hours()%12||12}function tH(t,e){R(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function tY(t,e){return e._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,tF),R("k",["kk",2],0,function(){return this.hours()||24}),R("hmm",0,0,function(){return""+tF.apply(this)+A(this.minutes(),2)}),R("hmmss",0,0,function(){return""+tF.apply(this)+A(this.minutes(),2)+A(this.seconds(),2)}),R("Hmm",0,0,function(){return""+this.hours()+A(this.minutes(),2)}),R("Hmmss",0,0,function(){return""+this.hours()+A(this.minutes(),2)+A(this.seconds(),2)}),tH("a",!0),tH("A",!1),tu("a",tY),tu("A",tY),tu("H",K,th),tu("h",K,tl),tu("k",K,tl),tu("HH",K,G),tu("hh",K,G),tu("kk",K,G),tu("hmm",Q),tu("hmmss",J),tu("Hmm",Q),tu("Hmmss",J),tg(["H","HH"],3),tg(["k","kk"],function(t,e,i){var n=tp(t);e[3]=24===n?0:n}),tg(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),tg(["h","hh"],function(t,e,i){e[3]=tp(t),p(i).bigHour=!0}),tg("hmm",function(t,e,i){var n=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n)),p(i).bigHour=!0}),tg("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n,2)),e[5]=tp(t.substr(r)),p(i).bigHour=!0}),tg("Hmm",function(t,e,i){var n=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n))}),tg("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=tp(t.substr(0,n)),e[4]=tp(t.substr(n,2)),e[5]=tp(t.substr(r))});var t$,tU,tW=tb("Hours",!0),tj={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:tk,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:tz,meridiemParse:/[ap]\.?m?\.?/i},tG={},tZ={};function tq(t){return t?t.toLowerCase().replace("_","-"):t}function tX(e){var n=null;if(void 0===tG[e]&&t&&t.exports&&e&&e.match("^[^/\\\\]*$"))try{n=tU._abbr,i(118)("./locale/"+e),tK(n)}catch(t){tG[e]=null}return tG[e]}function tK(t,e){var i;return t&&((i=s(e)?tJ(t):tQ(t,e))?tU=i:"u">typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),tU._abbr}function tQ(t,e){if(null===e)return delete tG[t],null;var i,n=tj;if(e.abbr=t,null!=tG[t])T("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=tG[t]._config;else if(null!=e.parentLocale)if(null!=tG[e.parentLocale])n=tG[e.parentLocale]._config;else{if(null==(i=tX(e.parentLocale)))return tZ[e.parentLocale]||(tZ[e.parentLocale]=[]),tZ[e.parentLocale].push({name:t,config:e}),null;n=i._config}return tG[t]=new I(D(n,e)),tZ[t]&&tZ[t].forEach(function(t){tQ(t.name,t.config)}),tK(t),tG[t]}function tJ(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return tU;if(!n(t)){if(e=tX(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=tq(t[o]).split("-")).length,i=(i=tq(t[o+1]))?i.split("-"):null;e>0;){if(n=tX(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&function(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}(r,i)>=e-1)break;e--}o++}return tU}(t)}function t0(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>tS(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,p(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),p(t)._overflowWeeks&&-1===e&&(e=7),p(t)._overflowWeekday&&-1===e&&(e=8),p(t).overflow=e),t}var t1=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t2=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,t5=/Z|[+-]\d\d(?::?\d\d)?/,t3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],t4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],t6=/^\/?Date\((-?\d+)/i,t7=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,t8={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function t9(t){var e,i,n,r,o,a,s=t._i,l=t1.exec(s)||t2.exec(s),h=t3.length,u=t4.length;if(l){for(p(t).iso=!0,e=0,i=h;e<i;e++)if(t3[e][1].exec(l[1])){r=t3[e][0],n=!1!==t3[e][2];break}if(null==r){t._isValid=!1;return}if(l[3]){for(e=0,i=u;e<i;e++)if(t4[e][1].exec(l[3])){o=(l[2]||" ")+t4[e][0];break}if(null==o){t._isValid=!1;return}}if(!n&&null!=o){t._isValid=!1;return}if(l[4])if(t5.exec(l[4]))a="Z";else{t._isValid=!1;return}t._f=r+(o||"")+(a||""),en(t)}else t._isValid=!1}function et(t){var e,i,n,r,o,a,s,l,h,u,d,c=t7.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(c){if(o=c[4],a=c[3],s=c[2],l=c[5],h=c[6],u=c[7],d=[(e=parseInt(o,10))<=49?2e3+e:e<=999?1900+e:e,tk.indexOf(a),parseInt(s,10),parseInt(l,10),parseInt(h,10)],u&&d.push(parseInt(u,10)),i=c[1],n=d,r=t,i&&tz.indexOf(i)!==new Date(n[0],n[1],n[2]).getDay()&&(p(r).weekdayMismatch=!0,r._isValid=!1,1))return;t._a=d,t._tzm=function(t,e,i){if(t)return t8[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(c[8],c[9],c[10]),t._d=tE.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function ee(t,e,i){return null!=t?t:null!=e?e:i}function ei(t){var i,n,r,o,a,s,l,h,u,d,c,f,g,_,m,v,y=[];if(!t._d){for(c=new Date(e.now()),_=t._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],t._w&&null==t._a[2]&&null==t._a[1]&&(null!=(n=(i=t)._w).GG||null!=n.W||null!=n.E?(s=1,l=4,r=ee(n.GG,i._a[0],tL(ea(),1,4).year),o=ee(n.W,1),((a=ee(n.E,1))<1||a>7)&&(u=!0)):(s=i._locale._week.dow,l=i._locale._week.doy,d=tL(ea(),s,l),r=ee(n.gg,i._a[0],d.year),o=ee(n.w,d.week),null!=n.d?((a=n.d)<0||a>6)&&(u=!0):null!=n.e?(a=n.e+s,(n.e<0||n.e>6)&&(u=!0)):a=s),o<1||o>tR(r,s,l)?p(i)._overflowWeeks=!0:null!=u?p(i)._overflowWeekday=!0:(h=tP(r,o,a,s,l),i._a[0]=h.year,i._dayOfYear=h.dayOfYear)),null!=t._dayOfYear&&(v=ee(t._a[0],_[0]),(t._dayOfYear>tv(v)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),g=tE(v,0,t._dayOfYear),t._a[1]=g.getUTCMonth(),t._a[2]=g.getUTCDate()),f=0;f<3&&null==t._a[f];++f)t._a[f]=y[f]=_[f];for(;f<7;f++)t._a[f]=y[f]=null==t._a[f]?+(2===f):t._a[f];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?tE:tA).apply(null,y),m=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==m&&(p(t).weekdayMismatch=!0)}}function en(t){if(t._f===e.ISO_8601)return void t9(t);if(t._f===e.RFC_2822)return void et(t);t._a=[],p(t).empty=!0;var i,n,r,a,s,l,h,u,d,c,f,g=""+t._i,_=g.length,m=0;for(f=(h=z(t._f,t._locale).match(E)||[]).length,s=0;s<f;s++)if(u=h[s],(l=(g.match(!o($,u)?new RegExp(td(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r}))):$[u](t._strict,t._locale))||[])[0])&&((d=g.substr(0,g.indexOf(l))).length>0&&p(t).unusedInput.push(d),g=g.slice(g.indexOf(l)+l.length),m+=l.length),L[u])l?p(t).empty=!1:p(t).unusedTokens.push(u),null!=l&&o(tf,u)&&tf[u](l,t._a,t,u);else t._strict&&!l&&p(t).unusedTokens.push(u);p(t).charsLeftOver=_-m,g.length>0&&p(t).unusedInput.push(g),t._a[3]<=12&&!0===p(t).bigHour&&t._a[3]>0&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[3]=(i=t._locale,n=t._a[3],null==(r=t._meridiem)?n:null!=i.meridiemHour?i.meridiemHour(n,r):(null!=i.isPM&&((a=i.isPM(r))&&n<12&&(n+=12),a||12!==n||(n=0)),n)),null!==(c=p(t).era)&&(t._a[0]=t._locale.erasConvertYear(c,t._a[0])),ei(t),t0(t)}function er(t){var i=t._i,o=t._f;return(t._locale=t._locale||tJ(t._l),null===i||void 0===o&&""===i)?g({nullInput:!0}):("string"==typeof i&&(t._i=i=t._locale.preparse(i)),w(i))?new x(t0(i)):(h(i)?t._d=i:n(o)?!function(t){var e,i,n,r,o,a,s=!1,l=t._f.length;if(0===l){p(t).invalidFormat=!0,t._d=new Date(0/0);return}for(r=0;r<l;r++)o=0,a=!1,e=b({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],en(e),f(e)&&(a=!0),o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,s?o<n&&(n=o,i=e):(null==n||o<n||a)&&(n=o,i=e,a&&(s=!0));d(t,i||e)}(t):o?en(t):function(t){var i=t._i;if(s(i))t._d=new Date(e.now());else if(h(i))t._d=new Date(i.valueOf());else if("string"==typeof i)!function(t){var i=t6.exec(t._i);if(null!==i){t._d=new Date(+i[1]);return}t9(t),!1!==t._isValid||(delete t._isValid,et(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:e.createFromInputFallback(t)))}(t);else if(n(i))t._a=u(i.slice(0),function(t){return parseInt(t,10)}),ei(t);else if(r(i)){if(!t._d){var o=F(t._i),a=void 0===o.day?o.date:o.day;t._a=u([o.year,o.month,a,o.hour,o.minute,o.second,o.millisecond],function(t){return t&&parseInt(t,10)}),ei(t)}}else l(i)?t._d=new Date(i):e.createFromInputFallback(t)}(t),f(t)||(t._d=null),t)}function eo(t,e,i,o,s){var l,h={};return(!0===e||!1===e)&&(o=e,e=void 0),(!0===i||!1===i)&&(o=i,i=void 0),(r(t)&&a(t)||n(t)&&0===t.length)&&(t=void 0),h._isAMomentObject=!0,h._useUTC=h._isUTC=s,h._l=i,h._i=t,h._f=e,h._strict=o,(l=new x(t0(er(h))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function ea(t,e,i,n){return eo(t,e,i,n,!1)}e.createFromInputFallback=k("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){},e.RFC_2822=function(){};var es=k("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ea.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),el=k("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ea.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:g()});function eh(t,e){var i,r;if(1===e.length&&n(e[0])&&(e=e[0]),!e.length)return ea();for(i=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](i))&&(i=e[r]);return i}var eu=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ed(t){var e=F(t),i=e.year||0,n=e.quarter||0,r=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,h=e.minute||0,u=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=eu.length;for(e in t)if(o(t,e)&&!(-1!==t$.call(eu,e)&&(null==t[e]||!isNaN(t[e]))))return!1;for(i=0;i<r;++i)if(t[eu[i]]){if(n)return!1;parseFloat(t[eu[i]])!==tp(t[eu[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*u+6e4*h+1e3*l*3600,this._days=+s+7*a,this._months=+r+3*n+12*i,this._data={},this._locale=tJ(),this._bubble()}function ec(t){return t instanceof ed}function ep(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ef(t,e){R(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+A(~~(t/60),2)+e+A(~~t%60,2)})}ef("Z",":"),ef("ZZ",""),tu("Z",ta),tu("ZZ",ta),tg(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=e_(ta,t)});var eg=/([\+\-]|\d\d)/gi;function e_(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=+(60*(i=((r[r.length-1]||[])+"").match(eg)||["-",0,0])[1])+tp(i[2]))?0:"+"===i[0]?n:-n}function em(t,i){var n,r;return i._isUTC?(n=i.clone(),r=(w(t)||h(t)?t.valueOf():ea(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),e.updateOffset(n,!1),n):ea(t).local()}function ev(t){return-Math.round(t._d.getTimezoneOffset())}function ey(){return!!this.isValid()&&this._isUTC&&0===this._offset}e.updateOffset=function(){};var eb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ew(t,e){var i,n,r,a,s,h,u=t,d=null;return ec(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(d=eb.exec(t))?(a="-"===d[1]?-1:1,u={y:0,d:tp(d[2])*a,h:tp(d[3])*a,m:tp(d[4])*a,s:tp(d[5])*a,ms:tp(ep(1e3*d[6]))*a}):(d=ex.exec(t))?(a="-"===d[1]?-1:1,u={y:eS(d[2],a),M:eS(d[3],a),w:eS(d[4],a),d:eS(d[5],a),h:eS(d[6],a),m:eS(d[7],a),s:eS(d[8],a)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=ea(u.from),n=ea(u.to),h=i.isValid()&&n.isValid()?(n=em(n,i),i.isBefore(n)?r=ek(i,n):((r=ek(n,i)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(u={}).ms=h.milliseconds,u.M=h.months),s=new ed(u),ec(t)&&o(t,"_locale")&&(s._locale=t._locale),ec(t)&&o(t,"_isValid")&&(s._isValid=t._isValid),s}function eS(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function ek(t,e){var i={};return i.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=e-t.clone().add(i.months,"M"),i}function eC(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(T(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),eT(this,ew(i,n),t),this}}function eT(t,i,n,r){var o=i._milliseconds,a=ep(i._days),s=ep(i._months);t.isValid()&&(r=null==r||r,s&&tM(t,tx(t,"Month")+s*n),a&&tw(t,"Date",tx(t,"Date")+a*n),o&&t._d.setTime(t._d.valueOf()+o*n),r&&e.updateOffset(t,a||s))}ew.fn=ed.prototype,ew.invalid=function(){return ew(0/0)};var eM=eC(1,"add"),eD=eC(-1,"subtract");function eI(t){return"string"==typeof t||t instanceof String}function eA(t,e){if(t.date()<e.date())return-eA(e,t);var i,n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months");return i=e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r),-(n+i)||0}function eE(t){var e;return void 0===t?this._locale._abbr:(null!=(e=tJ(t))&&(this._locale=e),this)}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var eO=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function eP(){return this._locale}function eL(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function eR(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function eN(t,e){return e.erasAbbrRegex(t)}function ez(){var t,e,i,n,r,o=[],a=[],s=[],l=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=td(h[t].name),n=td(h[t].abbr),r=td(h[t].narrow),a.push(i),o.push(n),s.push(r),l.push(i),l.push(n),l.push(r);this._erasRegex=RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+s.join("|")+")","i")}function eB(t,e){R(0,[t,t.length],0,e)}function eV(t,e,i,n,r){var o;return null==t?tL(this,n,r).year:(e>(o=tR(t,n,r))&&(e=o),eF.call(this,t,e,i,n,r))}function eF(t,e,i,n,r){var o=tP(t,e,i,n,r),a=tE(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),tu("N",eN),tu("NN",eN),tu("NNN",eN),tu("NNNN",function(t,e){return e.erasNameRegex(t)}),tu("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),tg(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?p(i).era=r:p(i).invalidEra=t}),tu("y",tn),tu("yy",tn),tu("yyy",tn),tu("yyyy",tn),tu("yo",function(t,e){return e._eraYearOrdinalRegex||tn}),tg(["y","yy","yyy","yyyy"],0),tg(["yo"],function(t,e,i,n){var r;i._locale._eraYearOrdinalRegex&&(r=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[0]=i._locale.eraYearOrdinalParse(t,r):e[0]=parseInt(t,10)}),R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),eB("gggg","weekYear"),eB("ggggg","weekYear"),eB("GGGG","isoWeekYear"),eB("GGGGG","isoWeekYear"),tu("G",tr),tu("g",tr),tu("GG",K,G),tu("gg",K,G),tu("GGGG",te,q),tu("gggg",te,q),tu("GGGGG",ti,X),tu("ggggg",ti,X),t_(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=tp(t)}),t_(["gg","GG"],function(t,i,n,r){i[r]=e.parseTwoDigitYear(t)}),R("Q",0,"Qo","quarter"),tu("Q",j),tg("Q",function(t,e){e[1]=(tp(t)-1)*3}),R("D",["DD",2],"Do","date"),tu("D",K,tl),tu("DD",K,G),tu("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),tg(["D","DD"],2),tg("Do",function(t,e){e[2]=tp(t.match(K)[0])});var eH=tb("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),tu("DDD",tt),tu("DDDD",Z),tg(["DDD","DDDD"],function(t,e,i){i._dayOfYear=tp(t)}),R("m",["mm",2],0,"minute"),tu("m",K,th),tu("mm",K,G),tg(["m","mm"],4);var eY=tb("Minutes",!1);R("s",["ss",2],0,"second"),tu("s",K,th),tu("ss",K,G),tg(["s","ss"],5);var e$=tb("Seconds",!1);for(R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),tu("S",tt,j),tu("SS",tt,G),tu("SSS",tt,Z),_="SSSS";_.length<=9;_+="S")tu(_,tn);function eU(t,e){e[6]=tp(("0."+t)*1e3)}for(_="S";_.length<=9;_+="S")tg(_,eU);m=tb("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var eW=x.prototype;function ej(t){return t}eW.add=eM,eW.calendar=function(t,i){if(1==arguments.length)if(arguments[0]){var s,u,d,c;if(s=arguments[0],w(s)||h(s)||eI(s)||l(s)||(d=n(u=s),c=!1,d&&(c=0===u.filter(function(t){return!l(t)&&eI(u)}).length),d&&c)||function(t){var e,i,n=r(t)&&!a(t),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=l.length;for(e=0;e<h;e+=1)i=l[e],s=s||o(t,i);return n&&s}(s)||null==s)t=arguments[0],i=void 0;else(function(t){var e,i,n=r(t)&&!a(t),s=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<l.length;e+=1)i=l[e],s=s||o(t,i);return n&&s})(arguments[0])&&(i=arguments[0],t=void 0)}else t=void 0,i=void 0;var p=t||ea(),f=em(p,this).startOf("day"),g=e.calendarFormat(this,f)||"sameElse",_=i&&(M(i[g])?i[g].call(this,p):i[g]);return this.format(_||this.localeData().calendar(g,this,ea(p)))},eW.clone=function(){return new x(this)},eW.diff=function(t,e,i){var n,r,o;if(!this.isValid()||!(n=em(t,this)).isValid())return 0/0;switch(r=(n.utcOffset()-this.utcOffset())*6e4,e=V(e)){case"year":o=eA(this,n)/12;break;case"month":o=eA(this,n);break;case"quarter":o=eA(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:tc(o)},eW.endOf=function(t){var i,n;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?eR:eL,t){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=36e5-((i+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":i=this._d.valueOf(),i+=6e4-(i%6e4+6e4)%6e4-1;break;case"second":i=this._d.valueOf(),i+=1e3-(i%1e3+1e3)%1e3-1}return this._d.setTime(i),e.updateOffset(this,!0),this},eW.format=function(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var i=N(this,t);return this.localeData().postformat(i)},eW.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||ea(t).isValid())?ew({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},eW.fromNow=function(t){return this.from(ea(),t)},eW.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||ea(t).isValid())?ew({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},eW.toNow=function(t){return this.to(ea(),t)},eW.get=function(t){return M(this[t=V(t)])?this[t]():this},eW.invalidAt=function(){return p(this).overflow},eW.isAfter=function(t,e){var i=w(t)?t:ea(t);return!!(this.isValid()&&i.isValid())&&("millisecond"===(e=V(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},eW.isBefore=function(t,e){var i=w(t)?t:ea(t);return!!(this.isValid()&&i.isValid())&&("millisecond"===(e=V(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},eW.isBetween=function(t,e,i,n){var r=w(t)?t:ea(t),o=w(e)?e:ea(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},eW.isSame=function(t,e){var i,n=w(t)?t:ea(t);return!!(this.isValid()&&n.isValid())&&("millisecond"===(e=V(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},eW.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},eW.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},eW.isValid=function(){return f(this)},eW.lang=eO,eW.locale=eE,eW.localeData=eP,eW.max=el,eW.min=es,eW.parsingFlags=function(){return d({},p(this))},eW.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)o(t,e)&&i.push({unit:e,priority:U[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}(t=F(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(M(this[t=V(t)]))return this[t](e);return this},eW.startOf=function(t){var i,n;if(void 0===(t=V(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?eR:eL,t){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=((i+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":i=this._d.valueOf(),i-=(i%6e4+6e4)%6e4;break;case"second":i=this._d.valueOf(),i-=(i%1e3+1e3)%1e3}return this._d.setTime(i),e.updateOffset(this,!0),this},eW.subtract=eD,eW.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},eW.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},eW.toDate=function(){return new Date(this.valueOf())},eW.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;if(0>i.year()||i.year()>9999)return N(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(M(Date.prototype.toISOString))if(e)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",N(i,"Z"));return N(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},eW.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+n+'("]',e=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i)},"u">typeof Symbol&&null!=Symbol.for&&(eW[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),eW.toJSON=function(){return this.isValid()?this.toISOString():null},eW.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},eW.unix=function(){return Math.floor(this.valueOf()/1e3)},eW.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},eW.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},eW.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return n[t].name;return""},eW.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return n[t].narrow;return""},eW.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t)if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until||n[t].until<=i&&i<=n[t].since)return n[t].abbr;return""},eW.eraYear=function(){var t,i,n,r,o=this.localeData().eras();for(t=0,i=o.length;t<i;++t)if(n=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-e(o[t].since).year())*n+o[t].offset;return this.year()},eW.year=ty,eW.isLeapYear=function(){return tm(this.year())},eW.weekYear=function(t){return eV.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},eW.isoWeekYear=function(t){return eV.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},eW.quarter=eW.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)},eW.month=tD,eW.daysInMonth=function(){return tS(this.year(),this.month())},eW.week=eW.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add((t-e)*7,"d")},eW.isoWeek=eW.isoWeeks=function(t){var e=tL(this,1,4).week;return null==t?e:this.add((t-e)*7,"d")},eW.weeksInYear=function(){var t=this.localeData()._week;return tR(this.year(),t.dow,t.doy)},eW.weeksInWeekYear=function(){var t=this.localeData()._week;return tR(this.weekYear(),t.dow,t.doy)},eW.isoWeeksInYear=function(){return tR(this.year(),1,4)},eW.isoWeeksInISOWeekYear=function(){return tR(this.isoWeekYear(),1,4)},eW.date=eH,eW.day=eW.days=function(t){if(!this.isValid())return null!=t?this:0/0;var e,i,n=tx(this,"Day");return null==t?n:(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d"))},eW.weekday=function(t){if(!this.isValid())return null!=t?this:0/0;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},eW.isoWeekday=function(t){if(!this.isValid())return null!=t?this:0/0;if(null==t)return this.day()||7;var e,i=(e=this.localeData(),"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t);return this.day(this.day()%7?i:i-7)},eW.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},eW.hour=eW.hours=tW,eW.minute=eW.minutes=eY,eW.second=eW.seconds=e$,eW.millisecond=eW.milliseconds=m,eW.utcOffset=function(t,i,n){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:0/0;if(null==t)return this._isUTC?o:ev(this);if("string"==typeof t){if(null===(t=e_(ta,t)))return this}else 16>Math.abs(t)&&!n&&(t*=60);return!this._isUTC&&i&&(r=ev(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!i||this._changeInProgress?eT(this,ew(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this},eW.utc=function(t){return this.utcOffset(0,t)},eW.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ev(this),"m")),this},eW.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=e_(to,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},eW.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?ea(t).utcOffset():0,(this.utcOffset()-t)%60==0)},eW.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},eW.isLocal=function(){return!!this.isValid()&&!this._isUTC},eW.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},eW.isUtc=ey,eW.isUTC=ey,eW.zoneAbbr=function(){return this._isUTC?"UTC":""},eW.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},eW.dates=k("dates accessor is deprecated. Use date instead.",eH),eW.months=k("months accessor is deprecated. Use month instead",tD),eW.years=k("years accessor is deprecated. Use year instead",ty),eW.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),eW.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return b(e,this),(e=er(e))._a?(t=e._isUTC?c(e._a):ea(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),o=0;for(i=0;i<n;i++)tp(t[i])!==tp(e[i])&&o++;return o+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var eG=I.prototype;function eZ(t,e,i,n){var r=tJ(),o=c().set(n,e);return r[i](o,t)}function eq(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return eZ(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=eZ(t,n,i,"month");return r}function eX(t,e,i,n){"boolean"==typeof t||(i=e=t,t=!1),l(e)&&(i=e,e=void 0),e=e||"";var r,o=tJ(),a=t?o._week.dow:0,s=[];if(null!=i)return eZ(e,(i+a)%7,n,"day");for(r=0;r<7;r++)s[r]=eZ(e,(r+a)%7,n,"day");return s}eG.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return M(n)?n.call(e,i):n},eG.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(E).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},eG.invalidDate=function(){return this._invalidDate},eG.ordinal=function(t){return this._ordinal.replace("%d",t)},eG.preparse=ej,eG.postformat=ej,eG.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return M(r)?r(t,e,i,n):r.replace(/%d/i,t)},eG.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return M(i)?i(e):i.replace(/%s/i,e)},eG.set=function(t){var e,i;for(i in t)o(t,i)&&(M(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},eG.eras=function(t,i){var n,r,o,a=this._eras||tJ("en")._eras;for(n=0,r=a.length;n<r;++n)switch("string"==typeof a[n].since&&(o=e(a[n].since).startOf("day"),a[n].since=o.valueOf()),typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":o=e(a[n].until).startOf("day").valueOf(),a[n].until=o.valueOf()}return a},eG.erasParse=function(t,e,i){var n,r,o,a,s,l=this.eras();for(t=t.toUpperCase(),n=0,r=l.length;n<r;++n)if(o=l[n].name.toUpperCase(),a=l[n].abbr.toUpperCase(),s=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(s===t)return l[n]}else if([o,a,s].indexOf(t)>=0)return l[n]},eG.erasConvertYear=function(t,i){var n=t.since<=t.until?1:-1;return void 0===i?e(t.since).year():e(t.since).year()+(i-t.offset)*n},eG.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||ez.call(this),t?this._erasAbbrRegex:this._erasRegex},eG.erasNameRegex=function(t){return o(this,"_erasNameRegex")||ez.call(this),t?this._erasNameRegex:this._erasRegex},eG.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||ez.call(this),t?this._erasNarrowRegex:this._erasRegex},eG.months=function(t,e){return t?n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||tC).test(e)?"format":"standalone"][t.month()]:n(this._months)?this._months:this._months.standalone},eG.monthsShort=function(t,e){return t?n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[tC.test(e)?"format":"standalone"][t.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},eG.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return tT.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},eG.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tI.call(this),t)?this._monthsStrictRegex:this._monthsRegex:(o(this,"_monthsRegex")||(this._monthsRegex=ts),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},eG.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||tI.call(this),t)?this._monthsShortStrictRegex:this._monthsShortRegex:(o(this,"_monthsShortRegex")||(this._monthsShortRegex=ts),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},eG.week=function(t){return tL(t,this._week.dow,this._week.doy).week},eG.firstDayOfYear=function(){return this._week.doy},eG.firstDayOfWeek=function(){return this._week.dow},eG.weekdays=function(t,e){var i=n(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?tN(i,this._week.dow):t?i[t.day()]:i},eG.weekdaysMin=function(t){return!0===t?tN(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},eG.weekdaysShort=function(t){return!0===t?tN(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},eG.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return tB.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;else if(!i&&this._weekdaysParse[n].test(t))return n}},eG.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t)?this._weekdaysStrictRegex:this._weekdaysRegex:(o(this,"_weekdaysRegex")||(this._weekdaysRegex=ts),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},eG.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ts),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},eG.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||tV.call(this),t)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ts),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},eG.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},eG.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},tK("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===tp(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),e.lang=k("moment.lang is deprecated. Use moment.locale instead.",tK),e.langData=k("moment.langData is deprecated. Use moment.localeData instead.",tJ);var eK=Math.abs;function eQ(t,e,i,n){var r=ew(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function eJ(t){return t<0?Math.floor(t):Math.ceil(t)}function e0(t){return 4800*t/146097}function e1(t){return 146097*t/4800}function e2(t){return function(){return this.as(t)}}var e5=e2("ms"),e3=e2("s"),e4=e2("m"),e6=e2("h"),e7=e2("d"),e8=e2("w"),e9=e2("M"),it=e2("Q"),ie=e2("y");function ii(t){return function(){return this.isValid()?this._data[t]:0/0}}var ir=ii("milliseconds"),io=ii("seconds"),ia=ii("minutes"),is=ii("hours"),il=ii("days"),ih=ii("months"),iu=ii("years"),id=Math.round,ic={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ip(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var ig=Math.abs;function i_(t){return(t>0)-(t<0)||+t}function im(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,o,a,s,l=ig(this._milliseconds)/1e3,h=ig(this._days),u=ig(this._months),d=this.asSeconds();return d?(t=tc(l/60),e=tc(t/60),l%=60,t%=60,i=tc(u/12),u%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=i_(this._months)!==i_(d)?"-":"",a=i_(this._days)!==i_(d)?"-":"",s=i_(this._milliseconds)!==i_(d)?"-":"",r+"P"+(i?o+i+"Y":"")+(u?o+u+"M":"")+(h?a+h+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+n+"S":"")):"P0D"}var iv=ed.prototype;return iv.isValid=function(){return this._isValid},iv.abs=function(){var t=this._data;return this._milliseconds=eK(this._milliseconds),this._days=eK(this._days),this._months=eK(this._months),t.milliseconds=eK(t.milliseconds),t.seconds=eK(t.seconds),t.minutes=eK(t.minutes),t.hours=eK(t.hours),t.months=eK(t.months),t.years=eK(t.years),this},iv.add=function(t,e){return eQ(this,t,e,1)},iv.subtract=function(t,e){return eQ(this,t,e,-1)},iv.as=function(t){if(!this.isValid())return 0/0;var e,i,n=this._milliseconds;if("month"===(t=V(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+e0(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(e1(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw Error("Unknown unit "+t)}},iv.asMilliseconds=e5,iv.asSeconds=e3,iv.asMinutes=e4,iv.asHours=e6,iv.asDays=e7,iv.asWeeks=e8,iv.asMonths=e9,iv.asQuarters=it,iv.asYears=ie,iv.valueOf=e5,iv._bubble=function(){var t,e,i,n,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*eJ(e1(s)+a),a=0,s=0),l.milliseconds=o%1e3,l.seconds=(t=tc(o/1e3))%60,l.minutes=(e=tc(t/60))%60,l.hours=(i=tc(e/60))%24,a+=tc(i/24),s+=r=tc(e0(a)),a-=eJ(e1(r)),n=tc(s/12),s%=12,l.days=a,l.months=s,l.years=n,this},iv.clone=function(){return ew(this)},iv.get=function(t){return t=V(t),this.isValid()?this[t+"s"]():0/0},iv.milliseconds=ir,iv.seconds=io,iv.minutes=ia,iv.hours=is,iv.days=il,iv.weeks=function(){return tc(this.days()/7)},iv.months=ih,iv.years=iu,iv.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r,o,a,s,l,h,u,d,c,p,f,g=!1,_=ic;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(g=t),"object"==typeof e&&(_=Object.assign({},ic,e),null!=e.s&&null==e.ss&&(_.ss=e.s-1)),p=this.localeData(),i=!g,n=_,r=ew(this).abs(),o=id(r.as("s")),a=id(r.as("m")),s=id(r.as("h")),l=id(r.as("d")),h=id(r.as("M")),u=id(r.as("w")),d=id(r.as("y")),c=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l],null!=n.w&&(c=c||u<=1&&["w"]||u<n.w&&["ww",u]),(c=c||h<=1&&["M"]||h<n.M&&["MM",h]||d<=1&&["y"]||["yy",d])[2]=i,c[3]=+this>0,c[4]=p,f=ip.apply(null,c),g&&(f=p.pastFuture(+this,f)),p.postformat(f)},iv.toISOString=im,iv.toString=im,iv.toJSON=im,iv.locale=eE,iv.localeData=eP,iv.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",im),iv.lang=eO,R("X",0,0,"unix"),R("x",0,0,"valueOf"),tu("x",tr),tu("X",/[+-]?\d+(\.\d{1,3})?/),tg("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t))}),tg("x",function(t,e,i){i._d=new Date(tp(t))}),e.version="2.30.1",H=ea,e.fn=eW,e.min=function(){var t=[].slice.call(arguments,0);return eh("isBefore",t)},e.max=function(){var t=[].slice.call(arguments,0);return eh("isAfter",t)},e.now=function(){return Date.now?Date.now():+new Date},e.utc=c,e.unix=function(t){return ea(1e3*t)},e.months=function(t,e){return eq(t,e,"months")},e.isDate=h,e.locale=tK,e.invalid=g,e.duration=ew,e.isMoment=w,e.weekdays=function(t,e,i){return eX(t,e,i,"weekdays")},e.parseZone=function(){return ea.apply(null,arguments).parseZone()},e.localeData=tJ,e.isDuration=ec,e.monthsShort=function(t,e){return eq(t,e,"monthsShort")},e.weekdaysMin=function(t,e,i){return eX(t,e,i,"weekdaysMin")},e.defineLocale=tQ,e.updateLocale=function(t,e){if(null!=e){var i,n,r=tj;null!=tG[t]&&null!=tG[t].parentLocale?tG[t].set(D(tG[t]._config,e)):(null!=(n=tX(t))&&(r=n._config),e=D(r,e),null==n&&(e.abbr=t),(i=new I(e)).parentLocale=tG[t],tG[t]=i),tK(t)}else null!=tG[t]&&(null!=tG[t].parentLocale?(tG[t]=tG[t].parentLocale,t===tK()&&tK(t)):null!=tG[t]&&delete tG[t]);return tG[t]},e.locales=function(){return W(tG)},e.weekdaysShort=function(t,e,i){return eX(t,e,i,"weekdaysShort")},e.normalizeUnits=V,e.relativeTimeRounding=function(t){return void 0===t?id:"function"==typeof t&&(id=t,!0)},e.relativeTimeThreshold=function(t,e){return void 0!==ic[t]&&(void 0===e?ic[t]:(ic[t]=e,"s"===t&&(ic.ss=e-1),!0))},e.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},e.prototype=eW,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}()},118(t){function e(t){var e=Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}e.keys=()=>[],e.resolve=e,e.id=118,t.exports=e},288(t){"use strict";t.exports='/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/material-components/material-components-web/blob/master/LICENSE\n */\n.mdc-data-table__content {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n}\n\n.mdc-data-table {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n border-radius: 4px;\n /* @alternate */\n border-radius: var(--mdc-shape-medium, 4px);\n border-width: 1px;\n border-style: solid;\n border-color: rgba(0, 0, 0, 0.12);\n -webkit-overflow-scrolling: touch;\n display: inline-flex;\n flex-direction: column;\n box-sizing: border-box;\n position: relative;\n}\n.mdc-data-table .mdc-data-table__header-cell:first-child {\n border-top-left-radius: 4px;\n /* @alternate */\n border-top-left-radius: var(--mdc-shape-medium, 4px);\n}\n[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:first-child, .mdc-data-table .mdc-data-table__header-cell:first-child[dir=rtl] {\n border-top-right-radius: 4px;\n /* @alternate */\n border-top-right-radius: var(--mdc-shape-medium, 4px);\n border-top-left-radius: 0;\n}\n.mdc-data-table .mdc-data-table__header-cell:last-child {\n border-top-right-radius: 4px;\n /* @alternate */\n border-top-right-radius: var(--mdc-shape-medium, 4px);\n}\n[dir=rtl] .mdc-data-table .mdc-data-table__header-cell:last-child, .mdc-data-table .mdc-data-table__header-cell:last-child[dir=rtl] {\n border-top-left-radius: 4px;\n /* @alternate */\n border-top-left-radius: var(--mdc-shape-medium, 4px);\n border-top-right-radius: 0;\n}\n\n.mdc-data-table__row {\n background-color: inherit;\n}\n\n.mdc-data-table__header-cell {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n}\n\n.mdc-data-table__row--selected {\n background-color: rgba(98, 0, 238, 0.04);\n}\n\n.mdc-data-table__header-cell:after {\n border-bottom-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-data-table__pagination-rows-per-page-select:not(.mdc-select--disabled) .mdc-notched-outline__leading,\n.mdc-data-table__pagination-rows-per-page-select:not(.mdc-select--disabled) .mdc-notched-outline__notch,\n.mdc-data-table__pagination-rows-per-page-select:not(.mdc-select--disabled) .mdc-notched-outline__trailing {\n border-color: rgba(0, 0, 0, 0.12);\n}\n.mdc-data-table__row,\n.mdc-data-table__pagination {\n border-top-color: rgba(0, 0, 0, 0.12);\n}\n\n.mdc-data-table__header-cell:after {\n border-bottom-style: solid;\n border-bottom-width: 1px;\n}\n\n.mdc-data-table__row,\n.mdc-data-table__pagination {\n border-top-width: 1px;\n border-top-style: solid;\n}\n\n.mdc-data-table__row:not(.mdc-data-table__row--selected):hover {\n background-color: rgba(0, 0, 0, 0.04);\n}\n\n.mdc-data-table__header-cell {\n color: rgba(0, 0, 0, 0.87);\n}\n\n.mdc-data-table__pagination-total,\n.mdc-data-table__pagination-rows-per-page-label,\n.mdc-data-table__cell {\n color: rgba(0, 0, 0, 0.87);\n}\n\n.mdc-data-table__cell {\n height: 52px;\n}\n\n.mdc-data-table__pagination {\n min-height: 52px;\n}\n\n.mdc-data-table__header-cell {\n height: 56px;\n}\n\n.mdc-data-table__cell,\n.mdc-data-table__header-cell {\n padding-right: 16px;\n padding-left: 16px;\n}\n\n.mdc-data-table__header-cell--checkbox,\n.mdc-data-table__cell--checkbox {\n /* @noflip */\n padding-left: 4px;\n /* @noflip */\n padding-right: 0;\n}\n[dir=rtl] .mdc-data-table__header-cell--checkbox, .mdc-data-table__header-cell--checkbox[dir=rtl],\n[dir=rtl] .mdc-data-table__cell--checkbox,\n.mdc-data-table__cell--checkbox[dir=rtl] {\n /* @noflip */\n padding-left: 0;\n /* @noflip */\n padding-right: 4px;\n}\n\n.mdc-data-table__sort-icon-button {\n color: rgba(0, 0, 0, 0.6);\n}\n.mdc-data-table__sort-icon-button::before, .mdc-data-table__sort-icon-button::after {\n background-color: rgba(0, 0, 0, 0.6);\n /* @alternate */\n background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.6));\n}\n.mdc-data-table__sort-icon-button:hover::before, .mdc-data-table__sort-icon-button.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-data-table__sort-icon-button.mdc-ripple-upgraded--background-focused::before, .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__sort-icon-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button {\n color: rgba(0, 0, 0, 0.87);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button::before, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button::after {\n background-color: rgba(0, 0, 0, 0.87);\n /* @alternate */\n background-color: var(--mdc-ripple-color, rgba(0, 0, 0, 0.87));\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:hover::before, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button.mdc-ripple-surface--hover::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button.mdc-ripple-upgraded--background-focused::before, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):focus::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded)::after {\n transition: opacity 150ms linear;\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button:not(.mdc-ripple-upgraded):active::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n\n.mdc-data-table__table-container {\n -webkit-overflow-scrolling: touch;\n overflow-x: auto;\n width: 100%;\n}\n\n.mdc-data-table__table {\n min-width: 100%;\n border: 0;\n white-space: nowrap;\n border-collapse: collapse;\n /**\n * With table-layout:fixed, table and column widths are defined by the width\n * of the first row of cells. Cells in subsequent rows do not affect column\n * widths. This results in a predictable table layout and may also speed up\n * rendering.\n */\n table-layout: fixed;\n}\n\n.mdc-data-table__cell {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n box-sizing: border-box;\n overflow: hidden;\n text-align: left;\n text-overflow: ellipsis;\n}\n[dir=rtl] .mdc-data-table__cell, .mdc-data-table__cell[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-data-table__cell--numeric {\n text-align: right;\n}\n[dir=rtl] .mdc-data-table__cell--numeric, .mdc-data-table__cell--numeric[dir=rtl] {\n /* @noflip */\n text-align: left;\n}\n\n.mdc-data-table__cell--checkbox {\n width: 1px;\n}\n\n.mdc-data-table__header-cell {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-subtitle2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-subtitle2-font-size, 0.875rem);\n line-height: 1.375rem;\n /* @alternate */\n line-height: var(--mdc-typography-subtitle2-line-height, 1.375rem);\n font-weight: 500;\n /* @alternate */\n font-weight: var(--mdc-typography-subtitle2-font-weight, 500);\n letter-spacing: 0.0071428571em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-subtitle2-letter-spacing, 0.0071428571em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-subtitle2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-subtitle2-text-transform, inherit);\n box-sizing: border-box;\n text-overflow: ellipsis;\n overflow: hidden;\n outline: none;\n /* @noflip */\n text-align: left;\n}\n[dir=rtl] .mdc-data-table__header-cell, .mdc-data-table__header-cell[dir=rtl] {\n /* @noflip */\n text-align: right;\n}\n\n.mdc-data-table__header-cell--checkbox {\n width: 1px;\n}\n\n.mdc-data-table__header-cell--numeric {\n text-align: right;\n}\n[dir=rtl] .mdc-data-table__header-cell--numeric, .mdc-data-table__header-cell--numeric[dir=rtl] {\n /* @noflip */\n text-align: left;\n}\n\n.mdc-data-table__sort-icon-button {\n width: 28px;\n height: 28px;\n padding: 2px;\n -webkit-transform: rotate(0.0001deg);\n transform: rotate(0.0001deg);\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n transition: -webkit-transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);\n transition: transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 150ms 0ms cubic-bezier(0.4, 0, 0.2, 1);\n opacity: 0;\n}\n[dir=rtl] .mdc-data-table__sort-icon-button, .mdc-data-table__sort-icon-button[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n.mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n[dir=rtl] .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button, .mdc-data-table__header-cell--numeric .mdc-data-table__sort-icon-button[dir=rtl] {\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n}\n.mdc-data-table__header-cell--sorted-descending .mdc-data-table__sort-icon-button {\n -webkit-transform: rotate(-180deg);\n transform: rotate(-180deg);\n}\n.mdc-data-table__sort-icon-button:focus, .mdc-data-table__header-cell:hover .mdc-data-table__sort-icon-button, .mdc-data-table__header-cell--sorted .mdc-data-table__sort-icon-button {\n opacity: 1;\n}\n\n.mdc-data-table__header-cell-wrapper {\n align-items: center;\n display: inline-flex;\n vertical-align: middle;\n}\n\n.mdc-data-table__header-cell--with-sort {\n cursor: pointer;\n}\n\n.mdc-data-table__sort-status-label {\n clip: rect(1px, 1px, 1px, 1px);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n /* added line */\n width: 1px;\n}\n\n.mdc-data-table__progress-indicator {\n display: none;\n position: absolute;\n width: 100%;\n}\n.mdc-data-table--in-progress .mdc-data-table__progress-indicator {\n display: block;\n}\n\n.mdc-data-table__scrim {\n background-color: #fff;\n /* @alternate */\n background-color: var(--mdc-theme-surface, #fff);\n height: 100%;\n opacity: 0.32;\n position: absolute;\n top: 0;\n width: 100%;\n}\n\n.mdc-data-table--sticky-header .mdc-data-table__header-cell {\n position: -webkit-sticky;\n position: sticky;\n top: 0;\n z-index: 1;\n}\n.mdc-data-table--sticky-header .mdc-data-table__header-cell:after {\n bottom: 0;\n content: "";\n left: 0;\n position: absolute;\n width: 100%;\n}\n.mdc-data-table--sticky-header .mdc-data-table__row:first-child {\n border-top: 0;\n}\n\n.mdc-data-table__pagination {\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-family: Roboto, sans-serif;\n /* @alternate */\n font-family: var(--mdc-typography-body2-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));\n font-size: 0.875rem;\n /* @alternate */\n font-size: var(--mdc-typography-body2-font-size, 0.875rem);\n line-height: 1.25rem;\n /* @alternate */\n line-height: var(--mdc-typography-body2-line-height, 1.25rem);\n font-weight: 400;\n /* @alternate */\n font-weight: var(--mdc-typography-body2-font-weight, 400);\n letter-spacing: 0.0178571429em;\n /* @alternate */\n letter-spacing: var(--mdc-typography-body2-letter-spacing, 0.0178571429em);\n text-decoration: inherit;\n /* @alternate */\n -webkit-text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-decoration: var(--mdc-typography-body2-text-decoration, inherit);\n text-transform: inherit;\n /* @alternate */\n text-transform: var(--mdc-typography-body2-text-transform, inherit);\n box-sizing: border-box;\n display: flex;\n justify-content: flex-end;\n}\n\n.mdc-data-table__pagination-trailing {\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n align-items: center;\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n}\n[dir=rtl] .mdc-data-table__pagination-trailing, .mdc-data-table__pagination-trailing[dir=rtl] {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n\n.mdc-data-table__pagination-navigation {\n align-items: center;\n display: flex;\n}\n\n.mdc-data-table__pagination-button {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 4px;\n}\n[dir=rtl] .mdc-data-table__pagination-button .mdc-button__icon, .mdc-data-table__pagination-button .mdc-button__icon[dir=rtl] {\n /* @noflip */\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n[dir=rtl] .mdc-data-table__pagination-button, .mdc-data-table__pagination-button[dir=rtl] {\n /* @noflip */\n margin-left: 4px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-data-table__pagination-total {\n /* @noflip */\n margin-left: 14px;\n /* @noflip */\n margin-right: 36px;\n white-space: nowrap;\n}\n[dir=rtl] .mdc-data-table__pagination-total, .mdc-data-table__pagination-total[dir=rtl] {\n /* @noflip */\n margin-left: 36px;\n /* @noflip */\n margin-right: 14px;\n}\n\n.mdc-data-table__pagination-rows-per-page {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 22px;\n align-items: center;\n display: inline-flex;\n}\n[dir=rtl] .mdc-data-table__pagination-rows-per-page, .mdc-data-table__pagination-rows-per-page[dir=rtl] {\n /* @noflip */\n margin-left: 22px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-data-table__pagination-rows-per-page-label {\n /* @noflip */\n margin-left: 0;\n /* @noflip */\n margin-right: 12px;\n white-space: nowrap;\n}\n[dir=rtl] .mdc-data-table__pagination-rows-per-page-label, .mdc-data-table__pagination-rows-per-page-label[dir=rtl] {\n /* @noflip */\n margin-left: 12px;\n /* @noflip */\n margin-right: 0;\n}\n\n.mdc-data-table__pagination-rows-per-page-select {\n min-width: 80px;\n margin: 8px 0;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor {\n width: 100%;\n min-width: 80px;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor {\n height: 36px;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above {\n -webkit-transform: translateY(-27.25px) scale(1);\n transform: translateY(-27.25px) scale(1);\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--float-above {\n font-size: 0.75rem;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n -webkit-transform: translateY(-24.75px) scale(0.75);\n transform: translateY(-24.75px) scale(0.75);\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above {\n font-size: 1rem;\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__anchor .mdc-floating-label--shake {\n -webkit-animation: mdc-floating-label-shake-float-above-select-outlined-36px 250ms 1;\n animation: mdc-floating-label-shake-float-above-select-outlined-36px 250ms 1;\n}\n@-webkit-keyframes mdc-floating-label-shake-float-above-select-outlined-36px {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n}\n@keyframes mdc-floating-label-shake-float-above-select-outlined-36px {\n 0% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n 33% {\n -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n -webkit-transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 66% {\n -webkit-animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n animation-timing-function: cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);\n -webkit-transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(-4% - 0%)) translateY(-24.75px) scale(0.75);\n }\n 100% {\n -webkit-transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n transform: translateX(calc(0 - 0%)) translateY(-24.75px) scale(0.75);\n }\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-select__dropdown-icon {\n width: 20px;\n height: 20px;\n}\n.mdc-data-table__pagination-rows-per-page-select.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch {\n max-width: calc(100% - 56px);\n}\n.mdc-data-table__pagination-rows-per-page-select .mdc-list-item {\n height: 36px;\n}\n\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before, .mdc-data-table__header-row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected .mdc-checkbox__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before, .mdc-data-table__header-row-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:hover .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected.mdc-ripple-surface--hover .mdc-checkbox__ripple::before {\n opacity: 0.04;\n /* @alternate */\n opacity: var(--mdc-ripple-hover-opacity, 0.04);\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before, .mdc-data-table__header-row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded--background-focused .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):focus .mdc-checkbox__ripple::before {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-focus-opacity, 0.12);\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded) .mdc-checkbox__ripple::after {\n transition: opacity 150ms linear;\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected:not(.mdc-ripple-upgraded):active .mdc-checkbox__ripple::after {\n transition-duration: 75ms;\n opacity: 0.12;\n /* @alternate */\n opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded,\n.mdc-data-table__row-checkbox.mdc-checkbox--selected.mdc-ripple-upgraded {\n --mdc-ripple-fg-opacity: var(--mdc-ripple-press-opacity, 0.12);\n}\n.mdc-data-table__header-row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-data-table__header-row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after,\n.mdc-data-table__row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::before,\n.mdc-data-table__row-checkbox.mdc-ripple-upgraded--background-focused.mdc-checkbox--selected .mdc-checkbox__ripple::after {\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee));\n}\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control:enabled:not(:checked):not(:indeterminate):not([data-indeterminate=true]) ~ .mdc-checkbox__background {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n}\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,\n.mdc-data-table__header-row-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control:enabled:checked ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control:enabled:indeterminate ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox .mdc-checkbox__native-control[data-indeterminate=true]:enabled ~ .mdc-checkbox__background {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n}\n@-webkit-keyframes mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE {\n 0% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n 50% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n}\n@keyframes mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE {\n 0% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n 50% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n}\n@-webkit-keyframes mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE {\n 0%, 80% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n 100% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n}\n@keyframes mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE {\n 0%, 80% {\n border-color: #6200ee;\n /* @alternate */\n border-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n background-color: #6200ee;\n /* @alternate */\n background-color: var(--mdc-checkbox-checked-color, var(--mdc-theme-secondary, #6200ee));\n }\n 100% {\n border-color: rgba(0, 0, 0, 0.54);\n /* @alternate */\n border-color: var(--mdc-checkbox-unchecked-color, rgba(0, 0, 0, 0.54));\n background-color: transparent;\n }\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background, .mdc-data-table__header-row-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {\n -webkit-animation-name: mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE;\n animation-name: mdc-checkbox-fade-in-background-8A000000FF6200EE00000000FF6200EE;\n}\n.mdc-data-table__header-row-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background, .mdc-data-table__header-row-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background,\n.mdc-data-table__row-checkbox.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__native-control:enabled ~ .mdc-checkbox__background {\n -webkit-animation-name: mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE;\n animation-name: mdc-checkbox-fade-out-background-8A000000FF6200EE00000000FF6200EE;\n}\n\n/*# sourceMappingURL=mdc.data-table.css.map*/'},879(t){"use strict";t.exports=__rspack_external__879},954(t){"use strict";t.exports=__rspack_external__954},487(t){"use strict";t.exports=__rspack_external__487},650(t){"use strict";t.exports=__rspack_external__650},207(t){"use strict";t.exports=__rspack_external__207},673(t){"use strict";t.exports=__rspack_external__673}},e={};function i(n){var r=e[n];if(void 0!==r)return r.exports;var o=e[n]={exports:{}};return t[n].call(o.exports,o,o.exports,i),o.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e,n)=>{var r=(e,n)=>{for(var r in e)i.o(e,r)&&!i.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,[n]:e[r]})};r(e,"get"),r(n,"value")},i.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}})(),i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};(()=>{"use strict";let t,e,r;i.r(n),i.d(n,{OrAttributeHistory:()=>CI,OrAttributeHistoryEvent:()=>CT});var o,a,s,l,h,u,d,c,p,f,g,_,m,v,y,b,x,w,S,k,C,T,M,D,I,A,E,O,P,L,R,N,z,B,V,F,H,Y,$,U,W,j,G,Z,q,X,K,Q,J,tt={};i.r(tt),i.d(tt,{Arc:()=>dQ,BezierCurve:()=>dq,BoundingRect:()=>ie,Circle:()=>dp,CompoundPath:()=>dJ,Ellipse:()=>d_,Group:()=>rn,HOVER_LAYER_FOR_INCREMENTAL:()=>cv,HOVER_LAYER_FROM_THRESHOLD:()=>cm,HOVER_LAYER_NO:()=>c_,Image:()=>aO,IncrementalDisplayable:()=>cn,Line:()=>dU,LinearGradient:()=>d1,OrientedBoundingRect:()=>ce,Path:()=>aT,Point:()=>eY,Polygon:()=>dz,Polyline:()=>dF,RadialGradient:()=>d2,Rect:()=>aF,Ring:()=>dP,Sector:()=>dA,Text:()=>a1,WH:()=>cg,XY:()=>cf,applyTransform:()=>cP,calcZ2Range:()=>cQ,clipPointsByRect:()=>cN,clipRectByRect:()=>cz,createIcon:()=>cB,decomposeTransform:()=>c1,ensureCopyRect:()=>cq,ensureCopyTransform:()=>cX,expandOrShrinkRect:()=>cH,extendPath:()=>cx,extendShape:()=>cy,getCurrentCanvasPainter:()=>c5,getShapeClass:()=>cS,getTransform:()=>cO,groupTransition:()=>cR,initProps:()=>cl,isBoundingRectAxisAligned:()=>cG,isElementRemoved:()=>ch,lineLineIntersect:()=>cF,linePolygonIntersect:()=>cV,makeImage:()=>cC,makePath:()=>ck,mergePath:()=>cM,payloadDisableAnimation:()=>c0,registerShape:()=>cw,removeElement:()=>cu,removeElementWithFadeOut:()=>cc,resizePath:()=>cD,retrieveZInfo:()=>cK,setTooltipConfig:()=>cU,subPixelOptimize:()=>cE,subPixelOptimizeLine:()=>cI,subPixelOptimizeRect:()=>cA,transformDirection:()=>cL,traverseElements:()=>cj,traverseUpdateZ:()=>cJ,updateProps:()=>cs});var te=function(t,e){return(te=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function ti(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}te(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var tn=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},tr=new function(){this.browser=new tn,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="u">typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(tr.wxa=!0,tr.touchEventsSupported=!0):"u"<typeof document&&"u">typeof self?tr.worker=!0:!tr.hasGlobalWindow||"Deno"in window||"u">typeof navigator&&"string"==typeof navigator.userAgent&&navigator.userAgent.indexOf("Node.js")>-1?(tr.node=!0,tr.svgSupported=!0):function(t,e){var i=e.browser,n=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);if(n&&(i.firefox=!0,i.version=n[1]),r&&(i.ie=!0,i.version=r[1]),o&&(i.edge=!0,i.version=o[1],i.newEdge=+o[1].split(".")[0]>18),a&&(i.weChat=!0),e.svgSupported="u">typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!i.ie&&!i.edge,e.pointerEventsSupported="onpointerdown"in window&&(i.edge||i.ie&&+i.version>=11),e.domSupported="u">typeof document){var s=document.documentElement.style;e.transform3dSupported=(i.ie&&"transition"in s||i.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||i.ie&&+i.version>=9}}(navigator.userAgent,tr);var to="12px sans-serif",ta=function(t){var e={};if("u"<typeof JSON)return e;for(var i=0;i<t.length;i++){var n=String.fromCharCode(i+32),r=(t.charCodeAt(i)-20)/100;e[n]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),ts={createCanvas:function(){return"u">typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!o){var i=ts.createCanvas();o=i&&i.getContext("2d")}if(o)return a!==e&&(a=o.font=e||to),o.measureText(t);t=t||"",e=e||to;var n=/((?:\d+)?\.?\d*)px/.exec(e),r=n&&+n[1]||12,s=0;if(e.indexOf("mono")>=0)s=r*t.length;else for(var l=0;l<t.length;l++){var h=ta[t[l]];s+=null==h?r:h*r}return{width:s}},loadImage:function(t,e,i){var n=new Image;return n.onload=e,n.onerror=i,n.src=t,n},getTime:function(){return Date.now?Date.now():+new Date}},tl=tE(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),th=tE(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),tu=Object.prototype.toString,td=Array.prototype,tc=td.forEach,tp=td.filter,tf=td.slice,tg=td.map,t_=(function(){}).constructor,tm=t_?t_.prototype:null,tv="__proto__",ty=2311;function tb(){return ty>=0x1fffffffffffff&&(ty=0),ty++}function tx(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"u">typeof console&&console.error.apply(console,t)}function tw(t){if(null==t||"object"!=typeof t)return t;var e=t,i=tu.call(t);if("[object Array]"===i){if(!t[tJ]){e=[];for(var n=0,r=t.length;n<r;n++)e[n]=tw(t[n])}}else if(th[i]){if(!t[tJ]){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var n=0,r=t.length;n<r;n++)e[n]=t[n]}}}else if(!tl[i]&&!t[tJ]&&!tU(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==tv&&(e[a]=tw(t[a]));return e}function tS(t,e,i){if(!tH(e)||!tH(t))return i?tw(e):t;for(var n in e)if(e.hasOwnProperty(n)&&n!==tv){var r=t[n],o=e[n];!(tH(o)&&tH(r))||tN(o)||tN(r)||tU(o)||tU(r)||tY(o)||tY(r)||o[tJ]||r[tJ]?!i&&n in t||(t[n]=tw(e[n])):tS(r,o,i)}return t}function tk(t,e){if(Object.assign)Object.assign(t,e);else for(var i in e)e.hasOwnProperty(i)&&i!==tv&&(t[i]=e[i]);return t}function tC(t,e,i){for(var n=tP(e),r=0,o=n.length;r<o;r++){var a=n[r];(i?null!=e[a]:null==t[a])&&(t[a]=e[a])}return t}function tT(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i}return -1}function tM(t,e,i){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),r=0;r<n.length;r++){var o=n[r];"constructor"!==o&&(i?null!=e[o]:null==t[o])&&(t[o]=e[o])}else tC(t,e,i)}function tD(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function tI(t,e,i){if(t&&e)if(t.forEach&&t.forEach===tc)t.forEach(e,i);else if(t.length===+t.length)for(var n=0,r=t.length;n<r;n++)e.call(i,t[n],n,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(i,t[o],o,t)}function tA(t,e,i){if(!t)return[];if(!e)return tq(t);if(t.map&&t.map===tg)return t.map(e,i);for(var n=[],r=0,o=t.length;r<o;r++)n.push(e.call(i,t[r],r,t));return n}function tE(t,e,i,n){if(t&&e){for(var r=0,o=t.length;r<o;r++)i=e.call(n,i,t[r],r,t);return i}}function tO(t,e,i){if(!t)return[];if(!e)return tq(t);if(t.filter&&t.filter===tp)return t.filter(e,i);for(var n=[],r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t)&&n.push(t[r]);return n}function tP(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}ts.createCanvas;var tL=tm&&tz(tm.bind)?tm.call.bind(tm.bind):function(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return function(){return t.apply(e,i.concat(tf.call(arguments)))}};function tR(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return function(){return t.apply(this,e.concat(tf.call(arguments)))}}function tN(t){return Array.isArray?Array.isArray(t):"[object Array]"===tu.call(t)}function tz(t){return"function"==typeof t}function tB(t){return"string"==typeof t}function tV(t){return"[object String]"===tu.call(t)}function tF(t){return"number"==typeof t}function tH(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function tY(t){return!!tl[tu.call(t)]}function t$(t){return!!th[tu.call(t)]}function tU(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function tW(t){return null!=t.colorStops}function tj(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i=0,n=t.length;i<n;i++)if(null!=t[i])return t[i]}function tG(t,e){return null!=t?t:e}function tZ(t,e,i){return null!=t?t:null!=e?e:i}function tq(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return tf.apply(t,e)}function tX(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function tK(t,e){if(!t)throw Error(e)}function tQ(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var tJ="__ec_primitive__",t0=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return tP(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},t}(),t1="function"==typeof Map,t2=function(){function t(e){var i=tN(e);this.data=t1?new Map:new t0;var n=this;function r(t,e){i?n.set(t,e):n.set(e,t)}e instanceof t?e.each(r):e&&tI(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach(function(i,n){t.call(e,i,n)})},t.prototype.keys=function(){var t=this.data.keys();return t1?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function t5(t){return new t2(t)}function t3(t,e){var i;if(Object.create)i=Object.create(t);else{var n=function(){};n.prototype=t,i=new n}return e&&tk(i,e),i}function t4(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function t6(t,e){return t.hasOwnProperty(e)}function t7(){}var t8=180/Math.PI,t9=function(t,e){return(t9=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};function et(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}t9(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function ee(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function ei(t,e,i){return t[0]=e,t[1]=i,t}function en(t,e,i){return t[0]=e[0]+i[0],t[1]=e[1]+i[1],t}function er(t,e,i){return t[0]=e[0]*i,t[1]=e[1]*i,t}function eo(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ea=function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])};function es(t,e,i){var n=e[0],r=e[1];return t[0]=i[0]*n+i[2]*r+i[4],t[1]=i[1]*n+i[3]*r+i[5],t}function el(t,e,i){return t[0]=Math.min(e[0],i[0]),t[1]=Math.min(e[1],i[1]),t}function eh(t,e,i){return t[0]=Math.max(e[0],i[0]),t[1]=Math.max(e[1],i[1]),t}var eu=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ed=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new eu(e,t),"dragstart",t.event))},t.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,r=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(r,o,t),this.handler.dispatchToElement(new eu(e,t),"drag",t.event);var a=this.handler.findHover(i,n,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new eu(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new eu(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new eu(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new eu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),ec=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(n=i,i=e,e=null),!i||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===i)return this;var s={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},l=r[t].length-1,h=r[t][l];return h&&h.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],r=0,o=i[t].length;r<o;r++)i[t][r].h!==e&&n.push(i[t][r]);i[t]=n}i[t]&&0===i[t].length&&delete i[t]}else delete i[t];return this},t.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=n.length,s=0;s<a;s++){var l=n[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],r=this._$eventProcessor;if(n)for(var o=e.length,a=e[o-1],s=n.length,l=0;l<s;l++){var h=n[l];if(!r||!r.filter||null==h.query||r.filter(t,h.query))switch(o){case 0:h.h.call(a);break;case 1:h.h.call(a,e[0]);break;case 2:h.h.call(a,e[0],e[1]);break;default:h.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),ep=Math.log(2);function ef(t,e,i,n,r,o){var a=n+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ep);return t[i][l]}for(var h=n|1<<i,u=i+1;n&1<<u;)u++;for(var d=0,c=0,p=0;c<s;c++){var f=1<<c;!(f&r)&&(d+=(p%2?-1:1)*t[i][c]*ef(t,e-1,u,h,r|f,o),p++)}return o[a]=d,d}function eg(t,e){var i=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],n={},r=ef(i,8,0,0,0,n);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ef(i,7,+(0===a),1<<a,1<<s,n)/r*e[a];return function(t,e,i){var n=e*o[6]+i*o[7]+1;t[0]=(e*o[0]+i*o[1]+o[2])/n,t[1]=(e*o[3]+i*o[4]+o[5])/n}}}var e_="___zrEVENTSAVED",em=[];function ev(t,e,i,n,r){if(e.getBoundingClientRect&&tr.domSupported&&!ey(e)){var o=e[e_]||(e[e_]={}),a=function(t,e,i){for(var n=i?"invTrans":"trans",r=e[n],o=e.srcCoords,a=[],s=[],l=!0,h=0;h<4;h++){var u=t[h].getBoundingClientRect(),d=2*h,c=u.left,p=u.top;a.push(c,p),l=l&&o&&c===o[d]&&p===o[d+1],s.push(t[h].offsetLeft,t[h].offsetTop)}return l&&r?r:(e.srcCoords=a,e[n]=i?eg(s,a):eg(a,s))}(function(t,e){var i=e.markers;if(i)return i;i=e.markers=[];for(var n=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,h=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",r[h]+":0",n[1-l]+":auto",r[1-h]+":auto",""].join("!important;"),t.appendChild(a),i.push(a)}return e.clearMarkers=function(){tI(i,function(t){t.parentNode&&t.parentNode.removeChild(t)})},i}(e,o),o,r);if(a)return a(t,i,n),!0}return!1}function ey(t){return"CANVAS"===t.nodeName.toUpperCase()}var eb=/([&<>"'])/g,ex={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ew(t){return null==t?"":(t+"").replace(eb,function(t,e){return ex[e]})}var eS=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ek=[],eC=tr.browser.firefox&&39>+tr.browser.version.split(".")[0];function eT(t,e,i,n){return i=i||{},n?eM(t,e,i):eC&&null!=e.layerX&&e.layerX!==e.offsetX?(i.zrX=e.layerX,i.zrY=e.layerY):null!=e.offsetX?(i.zrX=e.offsetX,i.zrY=e.offsetY):eM(t,e,i),i}function eM(t,e,i){if(tr.domSupported&&t.getBoundingClientRect){var n=e.clientX,r=e.clientY;if(ey(t)){var o=t.getBoundingClientRect();i.zrX=n-o.left,i.zrY=r-o.top;return}if(ev(ek,t,n,r)){i.zrX=ek[0],i.zrY=ek[1];return}}i.zrX=i.zrY=0}function eD(t){return t||window.event}function eI(t,e,i){if(null!=(e=eD(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var r="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];r&&eT(t,r,e,i)}else{eT(t,e,e,i);var o=function(t){var e=t.wheelDelta;if(e)return e;var i=t.deltaX,n=t.deltaY;return null==i||null==n?e:3*(0!==n?Math.abs(n):Math.abs(i))*(n>0?-1:n<0?1:i>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&eS.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}var eA=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function eE(t){return 2===t.which||3===t.which}var eO=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var r={points:[],touches:[],target:e,event:t},o=0,a=n.length;o<a;o++){var s=n[o],l=eT(i,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in eL)if(eL.hasOwnProperty(e)){var i=eL[e](this._track,t);if(i)return i}},t}();function eP(t){var e=t[1][0]-t[0][0],i=t[1][1]-t[0][1];return Math.sqrt(e*e+i*i)}var eL={pinch:function(t,e){var i=t.length;if(i){var n=(t[i-1]||{}).points,r=(t[i-2]||{}).points||n;if(r&&r.length>1&&n&&n.length>1){var o=eP(n)/eP(r);isFinite(o)||(o=1),e.pinchScale=o;var a=[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function eR(){return[1,0,0,1,0,0]}function eN(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ez(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 eB(t,e,i){var n=e[0]*i[0]+e[2]*i[1],r=e[1]*i[0]+e[3]*i[1],o=e[0]*i[2]+e[2]*i[3],a=e[1]*i[2]+e[3]*i[3],s=e[0]*i[4]+e[2]*i[5]+e[4],l=e[1]*i[4]+e[3]*i[5]+e[5];return t[0]=n,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function eV(t,e,i){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+i[0],t[5]=e[5]+i[1],t}function eF(t,e,i,n){void 0===n&&(n=[0,0]);var r=e[0],o=e[2],a=e[4],s=e[1],l=e[3],h=e[5],u=Math.sin(i),d=Math.cos(i);return t[0]=r*d+s*u,t[1]=-r*u+s*d,t[2]=o*d+l*u,t[3]=-o*u+d*l,t[4]=d*(a-n[0])+u*(h-n[1])+n[0],t[5]=d*(h-n[1])-u*(a-n[0])+n[1],t}function eH(t,e){var i=e[0],n=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=i*a-o*n;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-n*l,t[3]=i*l,t[4]=(n*s-a*r)*l,t[5]=(o*r-i*s)*l,t):null}let eY=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,i=this.y-t.y;return Math.sqrt(e*e+i*i)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,i){t.x=e,t.y=i},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,i){t.x=e.x+i.x,t.y=e.y+i.y},t.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},t.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},t.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},t.lerp=function(t,e,i,n){var r=1-n;t.x=r*e.x+n*i.x,t.y=r*e.y+n*i.y},t}();var e$=Math.min,eU=Math.max,eW=Math.abs,ej=["x","y"],eG=["width","height"],eZ=new eY,eq=new eY,eX=new eY,eK=new eY,eQ=it(),eJ=eQ.minTv,e0=eQ.maxTv,e1=[0,0],e2=function(){function t(t,e,i,n){e5(this,t,e,i,n)}return t.set=function(t,e,i,n,r){return n<0&&(e+=n,n=-n),r<0&&(i+=r,r=-r),t.x=e,t.y=i,t.width=n,t.height=r,t},t.prototype.union=function(t){var e=e$(t.x,this.x),i=e$(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=eU(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=eU(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){return e4(eR(),this,t)},t.prototype.intersect=function(e,i,n){return t.intersect(this,e,i,n)},t.intersect=function(e,i,n,r){n&&eY.set(n,0,0);var o=r&&r.outIntersectRect||null,a=r&&r.clamp;if(o&&(o.x=o.y=o.width=o.height=0/0),!e||!i)return!1;e instanceof t||(e=e5(e6,e.x,e.y,e.width,e.height)),i instanceof t||(i=e5(e7,i.x,i.y,i.width,i.height));var s=!!n;eQ.reset(r,s);var l=eQ.touchThreshold,h=e.x+l,u=e.x+e.width-l,d=e.y+l,c=e.y+e.height-l,p=i.x+l,f=i.x+i.width-l,g=i.y+l,_=i.y+i.height-l;if(h>u||d>c||p>f||g>_)return!1;var m=!(u<p||f<h||c<g||_<d);return(s||o)&&(e1[0]=1/0,e1[1]=0,e9(h,u,p,f,0,s,o,a),e9(d,c,g,_,1,s,o,a),s&&eY.copy(n,m?eQ.useDir?eQ.dirMinTv:eJ:e0)),m},t.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},t.prototype.contain=function(e,i){return t.contain(this,e,i)},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(t){e3(this,t)},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?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},t.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},t.applyTransform=function(t,e,i){if(!i){t!==e&&e3(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],r=i[3],o=i[4],a=i[5];t.x=e.x*n+o,t.y=e.y*r+a,t.width=e.width*n,t.height=e.height*r,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}eZ.x=eX.x=e.x,eZ.y=eK.y=e.y,eq.x=eK.x=e.x+e.width,eq.y=eX.y=e.y+e.height,eZ.transform(i),eK.transform(i),eq.transform(i),eX.transform(i),t.x=e$(eZ.x,eq.x,eX.x,eK.x),t.y=e$(eZ.y,eq.y,eX.y,eK.y);var s=eU(eZ.x,eq.x,eX.x,eK.x),l=eU(eZ.y,eq.y,eX.y,eK.y);t.width=s-t.x,t.height=l-t.y},t.calculateTransform=function(t,e,i){var n,r,o,a,s,l=i.width/e.width,h=i.height/e.height;return eV(t=eN(t||[]),t,ei(e8,-e.x,-e.y)),n=t,r=t,a=(o=ei(e8,l,h))[0],s=o[1],n[0]=r[0]*a,n[1]=r[1]*s,n[2]=r[2]*a,n[3]=r[3]*s,n[4]=r[4]*a,n[5]=r[5]*s,eV(t,t,ei(e8,i.x,i.y)),t},t}();e2.create;var e5=e2.set,e3=e2.copy,e4=e2.calculateTransform;e2.applyTransform,e2.contain;var e6=new e2(0,0,0,0),e7=new e2(0,0,0,0),e8=[];function e9(t,e,i,n,r,o,a,s){var l=eW(e-i),h=eW(n-t),u=e$(l,h),d=ej[r],c=ej[1-r],p=eG[r];e<i||n<t?l<h?(o&&(e0[d]=-l),s&&(a[d]=e,a[p]=0)):(o&&(e0[d]=h),s&&(a[d]=t,a[p]=0)):(a&&(a[d]=eU(t,i),a[p]=e$(e,n)-a[d]),o&&(u<e1[0]||eQ.useDir)&&(e1[0]=e$(u,e1[0]),(l<h||!eQ.bidirectional)&&(eJ[d]=l,eJ[c]=0,eQ.useDir&&eQ.calcDirMTV()),(l>=h||!eQ.bidirectional)&&(eJ[d]=-h,eJ[c]=0,eQ.useDir&&eQ.calcDirMTV())))}function it(){var t=0,e=new eY,i=new eY,n={minTv:new eY,maxTv:new eY,useDir:!1,dirMinTv:new eY,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(r,o){n.touchThreshold=0,r&&null!=r.touchThreshold&&(n.touchThreshold=eU(0,r.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,r&&null!=r.direction&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),i.copy(n.minTv),t=r.direction,n.bidirectional=null==r.bidirectional||!!r.bidirectional,n.bidirectional||e.set(Math.cos(t),Math.sin(t))))},calcDirMTV:function(){var o=n.minTv,a=n.dirMinTv,s=o.y*o.y+o.x*o.x,l=Math.sin(t),h=Math.cos(t),u=l*o.y+h*o.x;if(r(u)){r(o.x)&&r(o.y)&&a.set(0,0);return}(i.x=s*h/u,i.y=s*l/u,r(i.x)&&r(i.y))?a.set(0,0):(n.bidirectional||e.dot(i)>0)&&i.len()<a.len()&&a.copy(i)}};function r(t){return 1e-10>eW(t)}return n}let ie=e2;var ii="silent";function ir(){eA(this.event)}var io=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return et(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ec),ia=function(t,e){this.x=t,this.y=e},is=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],il=new ie(0,0,0,0),ih=function(t){function e(e,i,n,r,o){var a=t.call(this)||this;return a._hovered=new ia(0,0),a.storage=e,a.painter=i,a.painterRoot=r,a._pointerSize=o,n=n||new io,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new ed(a),a}return et(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tI(is,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,i=t.zrY,n=id(this,e,i),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=n?new ia(e,i):this.findHover(e,i),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new ia(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,i){var n=(t=t||{}).target;if(!n||!n.silent){for(var r,o="on"+e,a={type:e,event:i,target:(r=t).target,topTarget:r.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:ir};n&&(n[o]&&(a.cancelBubble=!!n[o].call(n,a)),n.trigger(e,a),n=n.__hostTarget?n.__hostTarget:n.parent,!a.cancelBubble););!a.cancelBubble&&(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[o]&&t[o].call(t,a),t.trigger&&t.trigger(e,a)}))}},e.prototype.findHover=function(t,e,i){var n=this.storage.getDisplayList(),r=new ia(t,e);if(iu(n,r,t,e,i),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new ie(t-s,e-s,a,a),h=n.length-1;h>=0;h--){var u=n[h];u===i||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(il.copy(u.getBoundingRect()),u.transform&&il.applyTransform(u.transform),il.intersect(l)&&o.push(u))}if(o.length){for(var d=Math.PI/12,c=2*Math.PI,p=0;p<s;p+=4)for(var f=0;f<c;f+=d)if(iu(o,r,t+p*Math.cos(f),e+p*Math.sin(f),i),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new eO);var i=this._gestureMgr;"start"===e&&i.clear();var n=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),n){var r=n.type;t.gestureEvent=r;var o=new ia;o.target=n.target,this.dispatchToElement(o,r,n.event)}},e}(ec);function iu(t,e,i,n,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=function(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){for(var n=t,r=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(e,i))return!1}n.silent&&(r=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return!r||ii}return!1}(a,i,n))&&(e.topTarget||(e.topTarget=a),s!==ii)){e.target=a;break}}}function id(t,e,i){var n=t.painter;return e<0||e>n.getWidth()||i<0||i>n.getHeight()}function ic(t,e,i,n){var r=e+1;if(r===i)return 1;if(0>n(t[r++],t[e])){for(;r<i&&0>n(t[r],t[r-1]);)r++;var o=t,a=e,s=r;for(s--;a<s;){var l=o[a];o[a++]=o[s],o[s--]=l}}else for(;r<i&&n(t[r],t[r-1])>=0;)r++;return r-e}function ip(t,e,i,n,r){for(n===e&&n++;n<i;n++){for(var o,a=t[n],s=e,l=n;s<l;)0>r(a,t[o=s+l>>>1])?l=o:s=o+1;var h=n-s;switch(h){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(;h>0;)t[s+h]=t[s+h-1],h--}t[s]=a}}function ig(t,e,i,n,r,o){var a=0,s=0,l=1;if(o(t,e[i+r])>0){for(s=n-r;l<s&&o(t,e[i+r+l])>0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&0>=o(t,e[i+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}for(a++;a<l;){var u=a+(l-a>>>1);o(t,e[i+u])>0?a=u+1:l=u}return l}function i_(t,e,i,n,r,o){var a=0,s=0,l=1;if(0>o(t,e[i+r])){for(s=r+1;l<s&&0>o(t,e[i+r-l]);)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s);var h=a;a=r-l,l=r-h}else{for(s=n-r;l<s&&o(t,e[i+r+l])>=0;)a=l,(l=(l<<1)+1)<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var u=a+(l-a>>>1);0>o(t,e[i+u])?l=u:a=u+1}return l}function im(t,e,i,n){i||(i=0),n||(n=t.length);var r=n-i;if(!(r<2)){var o=0;if(r<32){o=ic(t,i,n,e),ip(t,i,n,i+o,e);return}var a=function(t,e){var i,n,r=7,o=0,a=[];function s(s){var l=i[s],h=n[s],u=i[s+1],d=n[s+1];n[s]=h+d,s===o-3&&(i[s+1]=i[s+2],n[s+1]=n[s+2]),o--;var c=i_(t[u],t,l,h,0,e);l+=c,0==(h-=c)||0!==(d=ig(t[l+h-1],t,u,d,d-1,e))&&(h<=d?function(i,n,o,s){var l,h,u,d=0;for(d=0;d<n;d++)a[d]=t[i+d];var c=0,p=o,f=i;if(t[f++]=t[p++],0==--s){for(d=0;d<n;d++)t[f+d]=a[c+d];return}if(1===n){for(d=0;d<s;d++)t[f+d]=t[p+d];t[f+s]=a[c];return}for(var g=r;;){l=0,h=0,u=!1;do if(0>e(t[p],a[c])){if(t[f++]=t[p++],h++,l=0,0==--s){u=!0;break}}else if(t[f++]=a[c++],l++,h=0,1==--n){u=!0;break}while((l|h)<g);if(u)break;do{if(0!==(l=i_(t[p],a,c,n,0,e))){for(d=0;d<l;d++)t[f+d]=a[c+d];if(f+=l,c+=l,(n-=l)<=1){u=!0;break}}if(t[f++]=t[p++],0==--s){u=!0;break}if(0!==(h=ig(a[c],t,p,s,0,e))){for(d=0;d<h;d++)t[f+d]=t[p+d];if(f+=h,p+=h,0==(s-=h)){u=!0;break}}if(t[f++]=a[c++],1==--n){u=!0;break}g--}while(l>=7||h>=7);if(u)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===n){for(d=0;d<s;d++)t[f+d]=t[p+d];t[f+s]=a[c]}else if(0===n)throw Error();else for(d=0;d<n;d++)t[f+d]=a[c+d]}(l,h,u,d):function(i,n,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var h=i+n-1,u=s-1,d=o+s-1,c=0,p=0;if(t[d--]=t[h--],0==--n){for(c=d-(s-1),l=0;l<s;l++)t[c+l]=a[l];return}if(1===s){for(d-=n,h-=n,p=d+1,c=h+1,l=n-1;l>=0;l--)t[p+l]=t[c+l];t[d]=a[u];return}for(var f=r;;){var g=0,_=0,m=!1;do if(0>e(a[u],t[h])){if(t[d--]=t[h--],g++,_=0,0==--n){m=!0;break}}else if(t[d--]=a[u--],_++,g=0,1==--s){m=!0;break}while((g|_)<f);if(m)break;do{if(0!=(g=n-i_(a[u],t,i,n,n-1,e))){for(d-=g,h-=g,n-=g,p=d+1,c=h+1,l=g-1;l>=0;l--)t[p+l]=t[c+l];if(0===n){m=!0;break}}if(t[d--]=a[u--],1==--s){m=!0;break}if(0!=(_=s-ig(t[h],a,0,s,s-1,e))){for(d-=_,u-=_,s-=_,p=d+1,c=u+1,l=0;l<_;l++)t[p+l]=a[c+l];if(s<=1){m=!0;break}}if(t[d--]=t[h--],0==--n){m=!0;break}f--}while(g>=7||_>=7);if(m)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d-=n,h-=n,p=d+1,c=h+1,l=n-1;l>=0;l--)t[p+l]=t[c+l];t[d]=a[u]}else if(0===s)throw Error();else for(c=d-(s-1),l=0;l<s;l++)t[c+l]=a[l]}(l,h,u,d))}return i=[],n=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]<n[t+1]&&t--;else if(n[t]>n[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&n[t-1]<n[t+1]&&t--,s(t)}},pushRun:function(t,e){i[o]=t,n[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=ic(t,i,n,e))<s){var l=r;l>s&&(l=s),ip(t,i,i+l,i+o,e),o=l}a.pushRun(i,o),a.mergeRuns(),r-=o,i+=o}while(0!==r);a.forceMergeRuns()}}tI(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){ih.prototype[t]=function(e){var i,n,r=e.zrX,o=e.zrY,a=id(this,r,o);if("mouseup"===t&&a||(n=(i=this.findHover(r,o)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||eo(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}});var iv=!1;function iy(){iv||(iv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function ib(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var ix=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=ib}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,r=e.length;n<r;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,im(i,ib)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),r=e&&e.length,o=0,a=t.__clipPaths;if(!t.ignoreClip&&(r||n)){if(a||(a=t.__clipPaths=[]),r)for(var s=0;s<e.length;s++)a[o++]=e[s];for(var l=n,h=t;l;)l.parent=h,l.updateTransform(),a[o++]=l,h=l,l=l.getClipPath()}if(a&&(a.length=o),t.childrenRef){for(var u=t.childrenRef(),d=0;d<u.length;d++){var c=u[d];t.__dirty&&(c.__dirty|=1),this._updateAndAddDisplayable(c,a,i)}t.__dirty=0}else isNaN(t.z)&&(iy(),t.z=0),isNaN(t.z2)&&(iy(),t.z2=0),isNaN(t.zlevel)&&(iy(),t.zlevel=0),this._displayList[this._displayListLen++]=t;var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,a,i);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,a,i);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,a,i)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=tT(this._roots,t);n>=0&&this._roots.splice(n,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();p=tr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var iw={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),-(i*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)))},elasticOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin(2*Math.PI*(t-e)/.4)+1)},elasticInOut:function(t){var e,i=.1;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=.1):e=.4*Math.asin(1/i)/(2*Math.PI),(t*=2)<1)?-.5*(i*Math.pow(2,10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)):i*Math.pow(2,-10*(t-=1))*Math.sin(2*Math.PI*(t-e)/.4)*.5+1},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return--t*t*(2.70158*t+1.70158)+1},backInOut:function(t){return(t*=2)<1?t*t*(3.5949095*t-2.5949095)*.5:.5*((t-=2)*t*(3.5949095*t+2.5949095)+2)},bounceIn:function(t){return 1-iw.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*iw.bounceIn(2*t):.5*iw.bounceOut(2*t-1)+.5}},iS=Math.pow,ik=Math.sqrt,iC=ik(3),iT=1/3,iM=ee(),iD=ee(),iI=ee();function iA(t){return t>-1e-8&&t<1e-8}function iE(t){return t>1e-8||t<-1e-8}function iO(t,e,i,n,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*n+3*o*i)}function iP(t,e,i,n,r){var o=1-r;return 3*(((e-t)*o+2*(i-e)*r)*o+(n-i)*r*r)}function iL(t,e,i,n,r,o){var a=n+3*(e-i)-t,s=3*(i-2*e+t),l=3*(e-t),h=t-r,u=s*s-3*a*l,d=s*l-9*a*h,c=l*l-3*s*h,p=0;if(iA(u)&&iA(d))if(iA(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var g=d*d-4*u*c;if(iA(g)){var _=d/u,f=-s/a+_,m=-_/2;f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m)}else if(g>0){var v=ik(g),y=u*s+1.5*a*(-d+v),b=u*s+1.5*a*(-d-v),f=(-s-((y=y<0?-iS(-y,iT):iS(y,iT))+(b=b<0?-iS(-b,iT):iS(b,iT))))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=Math.acos((2*u*s-3*a*d)/(2*ik(u*u*u)))/3,w=ik(u),S=Math.cos(x),f=(-s-2*w*S)/(3*a),m=(-s+w*(S+iC*Math.sin(x)))/(3*a),k=(-s+w*(S-iC*Math.sin(x)))/(3*a);f>=0&&f<=1&&(o[p++]=f),m>=0&&m<=1&&(o[p++]=m),k>=0&&k<=1&&(o[p++]=k)}}return p}function iR(t,e,i,n,r){var o=6*i-12*e+6*t,a=9*e+3*n-3*t-9*i,s=3*e-3*t,l=0;if(iA(a)){if(iE(o)){var h=-s/o;h>=0&&h<=1&&(r[l++]=h)}}else{var u=o*o-4*a*s;if(iA(u))r[0]=-o/(2*a);else if(u>0){var d=ik(u),h=(-o+d)/(2*a),c=(-o-d)/(2*a);h>=0&&h<=1&&(r[l++]=h),c>=0&&c<=1&&(r[l++]=c)}}return l}function iN(t,e,i,n,r,o){var a=(e-t)*r+t,s=(i-e)*r+e,l=(n-i)*r+i,h=(s-a)*r+a,u=(l-s)*r+s,d=(u-h)*r+h;o[0]=t,o[1]=a,o[2]=h,o[3]=d,o[4]=d,o[5]=u,o[6]=l,o[7]=n}function iz(t,e,i,n){var r=1-n;return r*(r*t+2*n*e)+n*n*i}function iB(t,e,i,n){return 2*((1-n)*(e-t)+n*(i-e))}function iV(t,e,i){var n=t+i-2*e;return 0===n?.5:(t-e)/n}function iF(t,e,i,n,r){var o=(e-t)*n+t,a=(i-e)*n+e,s=(a-o)*n+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=i}var iH=/cubic-bezier\(([0-9,\.e ]+)\)/;function iY(t){var e=t&&iH.exec(t);if(e){var i=e[1].split(","),n=+tQ(i[0]),r=+tQ(i[1]),o=+tQ(i[2]),a=+tQ(i[3]);if(isNaN(n+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:iL(0,n,o,1,t,s)&&iO(0,r,a,1,s[0])}}}var i$=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||t7,this.ondestroy=t.ondestroy||t7,this.onrestart=t.onrestart||t7,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var i=this._life,n=t-this._startTime-this._pausedTime,r=n/i;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r)if(!this.loop)return!0;else this._startTime=t-n%i,this._pausedTime=0,this.onrestart();return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=tz(t)?t:iw[t]||iY(t)},t}(),iU=function(t){this.value=t},iW=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new iU(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,i=t.next;e?e.next=i:this.head=i,i?i.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),ij=function(){function t(t){this._list=new iW,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var i=this._list,n=this._map,r=null;if(null==n[t]){var o=i.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=i.head;i.remove(s),delete n[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new iU(e),a.key=t,i.insertEntry(a),n[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],i=this._list;if(null!=e)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),iG={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function iZ(t){return(t=Math.round(t))<0?0:t>255?255:t}function iq(t){return t<0?0:t>1?1:t}function iX(t){return t.length&&"%"===t.charAt(t.length-1)?iZ(parseFloat(t)/100*255):iZ(parseInt(t,10))}function iK(t){return t.length&&"%"===t.charAt(t.length-1)?iq(parseFloat(t)/100):iq(parseFloat(t))}function iQ(t,e,i){return(i<0?i+=1:i>1&&(i-=1),6*i<1)?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}function iJ(t,e,i,n,r){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t}function i0(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var i1=new ij(20),i2=null;function i5(t,e){i2&&i0(i2,e),i2=i1.put(t,i2||e.slice())}function i3(t,e){if(t){e=e||[];var i=i1.get(t);if(i)return i0(e,i);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in iG)return i0(e,iG[n]),i5(t,e),e;var r=n.length;if("#"===n.charAt(0)){if(4===r||5===r){var o=parseInt(n.slice(1,4),16);return o>=0&&o<=4095?(iJ(e,(3840&o)>>4|(3840&o)>>8,240&o|(240&o)>>4,15&o|(15&o)<<4,5===r?parseInt(n.slice(4),16)/15:1),i5(t,e),e):void iJ(e,0,0,0,1)}if(7===r||9===r){var o=parseInt(n.slice(1,7),16);return o>=0&&o<=0xffffff?(iJ(e,(0xff0000&o)>>16,(65280&o)>>8,255&o,9===r?parseInt(n.slice(7),16)/255:1),i5(t,e),e):void iJ(e,0,0,0,1)}return}var a=n.indexOf("("),s=n.indexOf(")");if(-1!==a&&s+1===r){var l=n.substr(0,a),h=n.substr(a+1,s-(a+1)).split(","),u=1;switch(l){case"rgba":if(4!==h.length)return 3===h.length?iJ(e,+h[0],+h[1],+h[2],1):iJ(e,0,0,0,1);u=iK(h.pop());case"rgb":if(h.length>=3)return iJ(e,iX(h[0]),iX(h[1]),iX(h[2]),3===h.length?u:iK(h[3])),i5(t,e),e;return void iJ(e,0,0,0,1);case"hsla":if(4!==h.length)return void iJ(e,0,0,0,1);return h[3]=iK(h[3]),i4(h,e),i5(t,e),e;case"hsl":if(3!==h.length)return void iJ(e,0,0,0,1);return i4(h,e),i5(t,e),e;default:return}}iJ(e,0,0,0,1)}}function i4(t,e){var i=(parseFloat(t[0])%360+360)%360/360,n=iK(t[1]),r=iK(t[2]),o=r<=.5?r*(n+1):r+n-r*n,a=2*r-o;return iJ(e=e||[],iZ(255*iQ(a,o,i+1/3)),iZ(255*iQ(a,o,i)),iZ(255*iQ(a,o,i-1/3)),1),4===t.length&&(e[3]=t[3]),e}function i6(t,e){var i=i3(t);if(i){for(var n=0;n<3;n++)e<0?i[n]=i[n]*(1-e)|0:i[n]=(255-i[n])*e+i[n]|0,i[n]>255?i[n]=255:i[n]<0&&(i[n]=0);return i8(i,4===i.length?"rgba":"rgb")}}function i7(t,e,i,n){var r,o=i3(t);if(t)return o=function(t){if(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(n,r,o),s=Math.max(n,r,o),l=s-a,h=(s+a)/2;if(0===l)e=0,i=0;else{i=h<.5?l/(s+a):l/(2-s-a);var u=((s-n)/6+l/2)/l,d=((s-r)/6+l/2)/l,c=((s-o)/6+l/2)/l;n===s?e=c-d:r===s?e=1/3+u-c:o===s&&(e=2/3+d-u),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,i,h];return null!=t[3]&&p.push(t[3]),p}}(o),null!=e&&(o[0]=(r=Math.round(r=tz(e)?e(o[0]):e))<0?0:r>360?360:r),null!=i&&(o[1]=iK(tz(i)?i(o[1]):i)),null!=n&&(o[2]=iK(tz(n)?n(o[2]):n)),i8(i4(o),"rgba")}function i8(t,e){if(t&&t.length){var i=t[0]+","+t[1]+","+t[2];return("rgba"===e||"hsva"===e||"hsla"===e)&&(i+=","+t[3]),e+"("+i+")"}}function i9(t,e){var i=i3(t);return i?(.299*i[0]+.587*i[1]+.114*i[2])*i[3]/255+(1-i[3])*e:0}var nt=new ij(100);function ne(t){if(tB(t)){var e=nt.get(t);return e||(e=i6(t,-.1),nt.put(t,e)),e}if(tW(t)){var i=tk({},t);return i.colorStops=tA(t.colorStops,function(t){return{offset:t.offset,color:i6(t.color,-.1)}}),i}return t}"u">typeof Buffer&&Buffer.from;var ni=Array.prototype.slice;function nn(t,e,i,n){for(var r,o=e.length,a=0;a<o;a++)t[a]=(r=e[a],(i[a]-r)*n+r);return t}function nr(t,e,i,n){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+i[o]*n;return t}function no(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+i[a][s]*n}return t}function na(t){if(tD(t)){var e=t.length;if(tD(t[0])){for(var i=[],n=0;n<e;n++)i.push(ni.call(t[n]));return i}return ni.call(t)}return t}function ns(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function nl(t){return 4===t||5===t}function nh(t){return 1===t||2===t}var nu=[0,0,0,0],nd=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,r=n.length,o=!1,a=6,s=e;if(tD(e)){var l=tD(e&&e[0])?2:1;a=l,(1!==l||tF(e[0]))&&(2!==l||tF(e[0][0]))||(o=!0)}else if(tF(e)&&e==e)a=0;else if(tB(e))if(isNaN(+e)){var h=i3(e);h&&(s=h,a=3)}else a=0;else if(tW(e)){var u=tk({},s);(u.colorStops=tA(e.colorStops,function(t){return{offset:t.offset,color:i3(t.color)}}),"linear"===e.type)?a=4:"radial"===e.type&&(a=5),s=u}0===r?this.valType=a:(a!==this.valType||6===a)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:s,rawValue:e,percent:0};return i&&(d.easing=i,d.easingFunc=tz(i)?i:iw[i]||iY(i)),n.push(d),d},t.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(t,e){return t.time-e.time});for(var n=this.valType,r=i.length,o=i[r-1],a=this.discrete,s=nh(n),l=nl(n),h=0;h<r;h++){var u=i[h],d=u.value,c=o.value;u.percent=u.time/t,!a&&(s&&h!==r-1?function(t,e,i){if(t.push&&e.push){var n=t.length,r=e.length;if(n!==r)if(n>r)t.length=r;else for(var o=n;o<r;o++)t.push(1===i?e[o]:ni.call(e[o]));for(var a=t[0]&&t[0].length,o=0;o<t.length;o++)if(1===i)isNaN(t[o])&&(t[o]=e[o]);else for(var s=0;s<a;s++)isNaN(t[o][s])&&(t[o][s]=e[o][s])}}(d,c,n):l&&function(t,e){for(var i=t.length,n=e.length,r=i>n?e:t,o=Math.min(i,n),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(i,n);s++)r.push({offset:a.offset,color:a.color.slice()})}(d.colorStops,c.colorStops))}if(!a&&5!==n&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var p=i[0].value,h=0;h<r;h++)0===n?i[h].additiveValue=i[h].value-p:3===n?i[h].additiveValue=nr([],i[h].value,p,-1):nh(n)&&(i[h].additiveValue=1===n?nr([],i[h].value,p,-1):no([],i[h].value,p,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,n,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,l=this.keyframes,h=l.length,u=this.propName,d=3===s,c=this._lastFr,p=Math.min;if(1===h)n=r=l[0];else{if(e<0)i=0;else if(e<this._lastFrP){for(i=p(c+1,h-1);i>=0&&!(l[i].percent<=e);i--);i=p(i,h-2)}else{for(i=c;i<h&&!(l[i].percent>e);i++);i=p(i-1,h-2)}r=l[i+1],n=l[i]}if(n&&r){this._lastFr=i,this._lastFrP=e;var f=r.percent-n.percent,g=0===f?1:p((e-n.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var _=o?this._additiveValue:d?nu:t[u];if((nh(s)||d)&&!_&&(_=this._additiveValue=[]),this.discrete)t[u]=g<1?n.rawValue:r.rawValue;else if(nh(s))1===s?nn(_,n[a],r[a],g):function(t,e,i,n){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s,l=0;l<o;l++)t[a][l]=(s=e[a][l],(i[a][l]-s)*n+s)}}(_,n[a],r[a],g);else if(nl(s)){var m,v,y,b,x,w=n[a],S=r[a],k=4===s;(t[u]={type:k?"linear":"radial",x:(m=w.x,(S.x-m)*g+m),y:(v=w.y,(S.y-v)*g+v),colorStops:tA(w.colorStops,function(t,e){var i,n=S.colorStops[e];return{offset:(i=t.offset,(n.offset-i)*g+i),color:ns(nn([],t.color,n.color,g))}}),global:S.global},k)?(t[u].x2=(y=w.x2,(S.x2-y)*g+y),t[u].y2=(b=w.y2,(S.y2-b)*g+b)):t[u].r=(x=w.r,(S.r-x)*g+x)}else if(d)nn(_,n[a],r[a],g),o||(t[u]=ns(_));else{var C,T=(C=n[a],(r[a]-C)*g+C);o?this._additiveValue=T:t[u]=T}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;0===e?t[i]=t[i]+n:3===e?(i3(t[i],nu),nr(nu,nu,n,1),t[i]=ns(nu)):1===e?nr(t[i],t[i],n,1):2===e&&no(t[i],t[i],n,1)},t}(),nc=function(){function t(t,e,i,n){(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n)?tx("Can' use additive animation on looped animation."):(this._additiveAnimators=n,this._allowDiscrete=i)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,tP(e),i)},t.prototype.whenWithKeys=function(t,e,i,n){for(var r=this._tracks,o=0;o<i.length;o++){var a=i[o],s=r[a];if(!s){s=r[a]=new nd(a);var l=void 0,h=this._getAdditiveTrack(a);if(h){var u=h.keyframes,d=u[u.length-1];l=d&&d.value,3===h.valType&&l&&(l=ns(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,na(l),n),this._trackKeys.push(a)}s.addKeyframe(t,na(e[a]),n)}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,i=0;i<e;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var r=i[n].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,h=l.length;if(a.prepare(n,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var u=l[h-1];u&&(e._target[a.propName]=u.rawValue),a.setFinished()}else i.push(a)}if(i.length||this._force){var d=new i$({life:n,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var n=e._additiveAnimators;if(n){for(var r=!1,o=0;o<n.length;o++)if(n[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(var o=0;o<i.length;o++)i[o].step(e._target,t);var a=e._onframeCbs;if(a)for(var o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return tA(this._trackKeys,function(e){return t._tracks[e]})},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,r=0;r<t.length;r++){var o=i[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}for(var a=!0,r=0;r<n.length;r++)if(!i[n[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var r=e[n],o=this._tracks[r];if(!(!o||o.isFinished())){var a=o.keyframes,s=a[i?0:a.length-1];s&&(t[r]=na(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||tP(t);for(var i=0;i<e.length;i++){var n=e[i],r=this._tracks[n];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[n]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();function np(){return new Date().getTime()}var nf=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,i.stage=(e=e||{}).stage||{},i}return et(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,i=t.next;e?e.next=i:this._head=i,i?i.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=np()-this._pausedTime,i=e-this._time,n=this._head;n;){var r=n.next;n.step(e,i)&&(n.ondestroy(),this.removeClip(n)),n=r}this._time=e,!t&&(this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,p(function e(){t._running&&(p(e),t._paused||t.update())})},e.prototype.start=function(){this._running||(this._time=np(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=np(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=np()-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 i=new nc(t,e.loop);return this.addAnimator(i),i},e}(ec),ng=tr.domSupported,n_=(l={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},h=tA(s=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],function(t){var e=t.replace("mouse","pointer");return l.hasOwnProperty(e)?e:t}),{mouse:s,touch:["touchstart","touchend","touchmove"],pointer:h}),nm=["mousemove","mouseup"],nv=["pointermove","pointerup"],ny=!1;function nb(t){var e=t.pointerType;return"pen"===e||"touch"===e}function nx(t){t&&(t.zrByTouch=!0)}function nw(t,e){for(var i=e,n=!1;i&&9!==i.nodeType&&!(n=i.domBelongToZr||i!==e&&i===t.painterRoot);)i=i.parentNode;return n}var nS=function(t,e){this.stopPropagation=t7,this.stopImmediatePropagation=t7,this.preventDefault=t7,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},nk={mousedown:function(t){t=eI(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=eI(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=eI(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){nw(this,(t=eI(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){ny=!0,t=eI(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){ny||(t=eI(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){nx(t=eI(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),nk.mousemove.call(this,t),nk.mousedown.call(this,t)},touchmove:function(t){nx(t=eI(this.dom,t)),this.handler.processGesture(t,"change"),nk.mousemove.call(this,t)},touchend:function(t){nx(t=eI(this.dom,t)),this.handler.processGesture(t,"end"),nk.mouseup.call(this,t),new Date-this.__lastTouchMoment<300&&nk.click.call(this,t)},pointerdown:function(t){nk.mousedown.call(this,t)},pointermove:function(t){nb(t)||nk.mousemove.call(this,t)},pointerup:function(t){nk.mouseup.call(this,t)},pointerout:function(t){nb(t)||nk.mouseout.call(this,t)}};tI(["click","dblclick","contextmenu"],function(t){nk[t]=function(e){e=eI(this.dom,e),this.trigger(t,e)}});var nC={pointermove:function(t){nb(t)||nC.mousemove.call(this,t)},pointerup:function(t){nC.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function nT(t,e,i,n){var r;t.mounted[e]=i,t.listenerOpts[e]=n,r=t.domTarget,r.addEventListener(e,i,n)}function nM(t){var e,i,n,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,i=r[o],n=t.listenerOpts[o],e.removeEventListener(o,i,n));t.mounted={}}var nD=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},nI=function(t){function e(e,i){var n,r,o=t.call(this)||this;return o.__pointerCapturing=!1,o.dom=e,o.painterRoot=i,o._localHandlerScope=new nD(e,nk),ng&&(o._globalHandlerScope=new nD(document,nC)),r=(n=o._localHandlerScope).domHandlers,tr.pointerEventsSupported?tI(n_.pointer,function(t){nT(n,t,function(e){r[t].call(o,e)})}):(tr.touchEventsSupported&&tI(n_.touch,function(t){nT(n,t,function(e){r[t].call(o,e),n.touching=!0,null!=n.touchTimer&&(clearTimeout(n.touchTimer),n.touchTimer=null),n.touchTimer=setTimeout(function(){n.touching=!1,n.touchTimer=null},700)})}),tI(n_.mouse,function(t){nT(n,t,function(e){e=eD(e),n.touching||r[t].call(o,e)})})),o}return et(e,t),e.prototype.dispose=function(){nM(this._localHandlerScope),ng&&nM(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,ng&&this.__pointerCapturing^t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){tr.pointerEventsSupported?tI(nv,i):tr.touchEventsSupported||tI(nm,i);function i(i){nT(e,i,function(n){if(!nw(t,(n=eD(n)).target)){var r;r=n,n=eI(t.dom,new nS(t,r),!0),e.domHandlers[i].call(t,n)}},{capture:!0})}}(this,e):nM(e)}},e}(ec),nA=1;tr.hasGlobalWindow&&(nA=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var nE=nA,nO="#333",nP="#ccc";function nL(t){return t>5e-5||t<-5e-5}var nR=[],nN=[],nz=eR(),nB=Math.abs,nV=function(){var t;function e(){}return e.prototype.getLocalTransform=function(t){return nF(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return nL(this.rotation)||nL(this.x)||nL(this.y)||nL(this.scaleX-1)||nL(this.scaleY-1)||nL(this.skewX)||nL(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(eN(i),this.invTransform=null);return}i=i||eR(),e?this.getLocalTransform(i):eN(i),t&&(e?eB(i,t,i):ez(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||eR(),eH(this.invTransform,i)},e.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(nR);var i=nR[0]<0?-1:1,n=nR[1]<0?-1:1,r=((nR[0]-i)*e+i)/nR[0]||0,o=((nR[1]-n)*e+n)/nR[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}},e.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),r=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||eR(),eB(nN,t.invTransform,e),e=nN);var i=this.originX,n=this.originY;(i||n)&&(nz[4]=i,nz[5]=n,eB(nN,e,nz),nN[4]-=i,nN[5]-=n,e=nN),this.setLocalTransform(e)}},e.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[0]=1,t[1]=1),t},e.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&es(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&es(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&nB(t[0]-1)>1e-10&&nB(t[3]-1)>1e-10?Math.sqrt(nB(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){nY(this,t)},e.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,h=t.x,u=t.y,d=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||a||s){var p=i+a,f=n+s;e[4]=-p*r-d*f*o,e[5]=-f*o-c*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=c*r,e[2]=d*o,l&&eF(e,e,l),e[4]+=i+h,e[5]+=n+u,e},e.initDefaultProps=void((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0),e}(),nF=nV.getLocalTransform,nH=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nY(t,e){var i=t;i=i||{};for(var n=0;n<nH.length;n++){var r=nH[n];i[r]=e[r]}return i}function n$(t){f||(f=new ij(100)),t=t||to;var e=f.get(t);return e||(e={font:t,strWidthCache:new ij(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:ts.measureText("国",t).width,asciiCharWidth:ts.measureText("a",t).width},f.put(t,e)),e}var nU=0;function nW(t,e){return t.asciiWidthMapTried||(t.asciiWidthMap=function(t){if(!(nU>=5)){t=t||to;for(var e=[],i=+new Date,n=0;n<=127;n++)e[n]=ts.measureText(String.fromCharCode(n),t).width;var r=new Date-i;return r>16?nU=5:r>2&&nU++,e}}(t.font),t.asciiWidthMapTried=!0),0<=e&&e<=127?null!=t.asciiWidthMap?t.asciiWidthMap[e]:t.asciiCharWidth:t.stWideCharWidth}function nj(t,e){var i=t.strWidthCache,n=i.get(e);return null==n&&(n=ts.measureText(e,t.font).width,i.put(e,n)),n}function nG(t,e,i,n){var r=nj(n$(e),t),o=nK(e);return new ie(nq(0,r,i),nX(0,o,n),r,o)}function nZ(t,e,i,n){var r=((t||"")+"").split("\n");if(1===r.length)return nG(r[0],e,i,n);for(var o=new ie(0,0,0,0),a=0;a<r.length;a++){var s=nG(r[a],e,i,n);0===a?o.copy(s):o.union(s)}return o}function nq(t,e,i,n){return"right"===i?n?t+=e:t-=e:"center"===i&&(n?t+=e/2:t-=e/2),t}function nX(t,e,i,n){return"middle"===i?n?t+=e/2:t-=e/2:"bottom"===i&&(n?t+=e:t-=e),t}function nK(t){return n$(t).stWideCharWidth}function nQ(t,e){return"string"==typeof t?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function nJ(t,e,i){var n=e.position||"inside",r=null!=e.distance?e.distance:5,o=i.height,a=i.width,s=o/2,l=i.x,h=i.y,u="left",d="top";if(n instanceof Array)l+=nQ(n[0],i.width),h+=nQ(n[1],i.height),u=null,d=null;else switch(n){case"left":l-=r,h+=s,u="right",d="middle";break;case"right":l+=r+a,h+=s,d="middle";break;case"top":l+=a/2,h-=r,u="center",d="bottom";break;case"bottom":l+=a/2,h+=o+r,u="center";break;case"inside":l+=a/2,h+=s,u="center",d="middle";break;case"insideLeft":l+=r,h+=s,d="middle";break;case"insideRight":l+=a-r,h+=s,u="right",d="middle";break;case"insideTop":l+=a/2,h+=r,u="center";break;case"insideBottom":l+=a/2,h+=o-r,u="center",d="bottom";break;case"insideTopLeft":l+=r,h+=r;break;case"insideTopRight":l+=a-r,h+=r,u="right";break;case"insideBottomLeft":l+=r,h+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,h+=o-r,u="right",d="bottom"}return(t=t||{}).x=l,t.y=h,t.align=u,t.verticalAlign=d,t}var n0="__zr_normal__",n1=nH.concat(["ignore"]),n2=tE(nH,function(t,e){return t[e]=!0,t},{ignore:!1}),n5={},n3=new ie(0,0,0,0),n4=[],n6=function(){function t(t){this.id=tb(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=n?this:null;var l=!1;r.copyTransform(e);var h=null!=i.position,u=i.autoOverflowArea,d=void 0;if((u||h)&&(d=n3,i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),n||d.applyTransform(this.transform)),h){this.calculateTextPosition?this.calculateTextPosition(n5,i,d):nJ(n5,i,d),r.x=n5.x,r.y=n5.y,o=n5.align,a=n5.verticalAlign;var c=i.origin;if(c&&null!=i.rotation){var p=void 0,f=void 0;"center"===c?(p=.5*d.width,f=.5*d.height):(p=nQ(c[0],d.width),f=nQ(c[1],d.height)),l=!0,r.originX=-r.x+p+(n?0:d.x),r.originY=-r.y+f+(n?0:d.y)}}null!=i.rotation&&(r.rotation=i.rotation);var g=i.offset;g&&(r.x+=g[0],r.y+=g[1],l||(r.originX=-g[0],r.originY=-g[1]));var _=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(u){var m=_.overflowRect=_.overflowRect||new ie(0,0,0,0);r.getLocalTransform(n4),eH(n4,n4),ie.copy(m,d),m.applyTransform(n4)}else _.overflowRect=null;var v=null==i.inside?"string"==typeof i.position&&i.position.indexOf("inside")>=0:i.inside,y=void 0,b=void 0,x=void 0;v&&this.canBeInsideText()?(y=i.insideFill,b=i.insideStroke,(null==y||"auto"===y)&&(y=this.getInsideTextFill()),(null==b||"auto"===b)&&(b=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,b=i.outsideStroke,(null==y||"auto"===y)&&(y=this.getOutsideFill()),(null==b||"auto"===b)&&(b=this.getOutsideStroke(y),x=!0)),((y=y||"#000")!==_.fill||b!==_.stroke||x!==_.autoStroke||o!==_.align||a!==_.verticalAlign)&&(s=!0,_.fill=y,_.stroke=b,_.autoStroke=x,_.align=o,_.verticalAlign=a,e.setDefaultTextStyle(_)),e.__dirty|=1,s&&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()?nP:nO},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"==typeof e&&i3(e);i||(i=[255,255,255,1]);for(var n=i[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+255*!r*(1-n);return i[3]=1,i8(i,"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||{},tk(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(tH(t))for(var i=tP(t),n=0;n<i.length;n++){var r=i[n];this.attrKV(r,t[r])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],r=n.__fromStateTransition;if(!n.getLoop()&&(!r||r===n0)){var o=n.targetName,a=o?e[o]:e;n.saveTo(a)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,n1)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var r=i[n];null==t[r]||r in e||(e[r]=this[r])}},t.prototype.hasState=function(){return this.currentStates.length>0},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(n0,!1,t)},t.prototype.useState=function(t,e,i,n){var r,o=t===n0;if(this.hasState()||!o){var a=this.currentStates,s=this.stateTransition;if(!(tT(a,t)>=0)||!e&&1!==a.length){if(this.stateProxy&&!o&&(r=this.stateProxy(t)),r||(r=this.states&&this.states[t]),!r&&!o)return void tx("State "+t+" not exists.");o||this.saveCurrentToNormalState(r);var l=this._textContent,h=n9(this,l,r,n);h&&!this.__inHover&&(this.__inHover=h),this._applyStateObj(t,r,this._normalState,e,re(this,i,s),s);var u=this._textGuide;return l&&l.useState(t,e,i,!!h),u&&u.useState(t,e,i,!!h),o?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),r}}},t.prototype.useStates=function(t,e,i){if(t.length){var n=[],r=this.currentStates,o=t.length,a=o===r.length;if(a){for(var s=0;s<o;s++)if(t[s]!==r[s]){a=!1;break}}if(!a){for(var s=0;s<o;s++){var l=t[s],h=void 0;this.stateProxy&&(h=this.stateProxy(l,t)),h||(h=this.states[l]),h&&n.push(h)}var u=n[o-1],d=this._textContent,c=n9(this,d,u,i);c&&!this.__inHover&&(this.__inHover=c);var p=this._mergeStates(n),f=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,this._normalState,!1,re(this,e,f),f);var g=this._textGuide;d&&d.useStates(t,e,!!c),g&&g.useStates(t,e,!!c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}}else this.clearStates()},t.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=tT(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),r=tT(n,t),o=tT(n,e)>=0;r>=0?o?n.splice(r,1):n[r]=e:i&&!o&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},n=0;n<t.length;n++){var r=t[n];tk(i,r),r.textConfig&&tk(e=e||{},r.textConfig)}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,n,r,o){if(1!==this.__inHover){var a=!(e&&n);e&&e.textConfig?(this.textConfig=tk({},n?this.textConfig:i.textConfig),tk(this.textConfig,e.textConfig)):a&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,h=0;h<n1.length;h++){var u=n1[h],d=r&&n2[u];e&&null!=e[u]?d?(l=!0,s[u]=e[u]):this[u]=e[u]:a&&null!=i[u]&&(d?(l=!0,s[u]=i[u]):this[u]=i[u])}if(!r)for(var h=0;h<this.animators.length;h++){var c=this.animators[h],p=c.targetName;c.getLoop()||c.__changeFinalValue(p?(e||i)[p]:e||i)}l&&this._transitionState(t,s,o)}},t.prototype._attachComponent=function(t){if((!t.__zr||t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new nV,this._attachComponent(t),this._textContent=t,this.markRedraw())},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),tk(this.textConfig,t),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=1;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},t.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},t.prototype.animate=function(t,e,i){var n=new nc(t?this[t]:this,e,i);return t&&(n.targetName=t),this.addAnimator(n,t),n},t.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var e=n.animators,i=tT(e,t);i>=0&&e.splice(i,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,r=[],o=0;o<n;o++){var a=i[o];t&&t!==a.scope?r.push(a):a.stop(e)}return this.animators=r,this},t.prototype.animateTo=function(t,e,i){n7(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){n7(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,n){for(var r=n7(this,e,i,n),o=0;o<r.length;o++)r[o].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;function i(t,i,n,r){Object.defineProperty(e,t,{get:function(){return this[i]||o(this,this[i]=[]),this[i]},set:function(t){this[n]=t[0],this[r]=t[1],this[i]=t,o(this,t)}});function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[r]},set:function(e){t[r]=e}})}}e.type="element",e.name="",e.ignore=e.silent=e.ignoreHostSilent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=!1,e.__inHover=0,e.__dirty=1,Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();function n7(t,e,i,n,r){var o=[];!function t(e,i,n,r,o,a,s,l){for(var h=tP(r),u=o.duration,d=o.delay,c=o.additive,p=o.setToFinal,f=!tH(a),g=e.animators,_=[],m=0;m<h.length;m++){var v=h[m],y=r[v];if(null!=y&&null!=n[v]&&(f||a[v]))if(!tH(y)||tD(y)||tW(y))_.push(v);else{if(i){l||(n[v]=y,e.updateDuringAnimation(i));continue}t(e,v,n[v],y,o,a&&a[v],s,l)}else l||(n[v]=y,e.updateDuringAnimation(i),_.push(v))}var b=_.length;if(!c&&b)for(var x=0;x<g.length;x++){var w=g[x];if(w.targetName===i&&w.stopTracks(_)){var S=tT(g,w);g.splice(S,1)}}if(o.force||(b=(_=tO(_,function(t){var e,i;return!((e=r[t])===(i=n[t])||tD(e)&&tD(i)&&function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}(e,i))})).length),b>0||o.force&&!s.length){var k=void 0,C=void 0,T=void 0;if(l){C={},p&&(k={});for(var x=0;x<b;x++){var v=_[x];C[v]=n[v],p?k[v]=r[v]:n[v]=r[v]}}else if(p){T={};for(var x=0;x<b;x++){var v=_[x];T[v]=na(n[v]),function(t,e,i){if(tD(e[i]))if(tD(t[i])||(t[i]=[]),t$(e[i])){var n=e[i].length;t[i].length!==n&&(t[i]=new e[i].constructor(n),n8(t[i],e[i],n))}else{var r=e[i],o=t[i],a=r.length;if(tD(r[0]))for(var s=r[0].length,l=0;l<a;l++)o[l]?n8(o[l],r[l],s):o[l]=Array.prototype.slice.call(r[l]);else n8(o,r,a);o.length=r.length}else t[i]=e[i]}(n,r,v)}}var w=new nc(n,!1,!1,c?tO(g,function(t){return t.targetName===i}):null);w.targetName=i,o.scope&&(w.scope=o.scope),p&&k&&w.whenWithKeys(0,k,_),T&&w.whenWithKeys(0,T,_),w.whenWithKeys(null==u?500:u,l?C:r,_).delay(d||0),e.addAnimator(w,i),s.push(w)}}(t,"",t,e,i=i||{},n,o,r);var a=o.length,s=!1,l=i.done,h=i.aborted,u=function(){s=!0,--a<=0&&(s?l&&l():h&&h())},d=function(){--a<=0&&(s?l&&l():h&&h())};!a&&l&&l(),o.length>0&&i.during&&o[0].during(function(t,e){i.during(e)});for(var c=0;c<o.length;c++){var p=o[c];u&&p.done(u),d&&p.aborted(d),i.force&&p.duration(i.duration),p.start(i.easing)}return o}function n8(t,e,i){for(var n=0;n<i;n++)t[n]=e[n]}function n9(t,e,i,n){return!(i&&i.hoverLayer||n)||rt(t)||e&&rt(e)?0:1}function rt(t){return"text"===t.type||"tspan"===t.type}function re(t,e,i){return!e&&!t.__inHover&&i&&i.duration>0}tM(n6,ec),tM(n6,nV);var ri=function(t){function e(e){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(t){return this._children[t]},e.prototype.childOfName=function(t){for(var e=this._children,i=0;i<e.length;i++)if(e[i].name===t)return e[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(t){return t&&t!==this&&t.parent!==this&&(this._children.push(t),this._doAdd(t)),this},e.prototype.addBefore=function(t,e){if(t&&t!==this&&t.parent!==this&&e&&e.parent===this){var i=this._children,n=i.indexOf(e);n>=0&&(i.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var i=tT(this._children,t);return i>=0&&this.replaceAt(e,i),this},e.prototype.replaceAt=function(t,e){var i=this._children,n=i[e];if(t&&t!==this&&t.parent!==this&&t!==n){i[e]=t,n.parent=null;var r=this.__zr;r&&n.removeSelfFromZr(r),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,i=this._children,n=tT(i,t);return n<0||(i.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,i=0;i<t.length;i++){var n=t[i];e&&n.removeSelfFromZr(e),n.parent=null}return t.length=0,this},e.prototype.eachChild=function(t,e){for(var i=this._children,n=0;n<i.length;n++){var r=i[n];t.call(e,r,n)}return this},e.prototype.traverse=function(t,e){for(var i=0;i<this._children.length;i++){var n=this._children[i],r=t.call(e,n);n.isGroup&&!r&&n.traverse(t,e)}return this},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].addSelfToZr(e)},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].removeSelfFromZr(e)},e.prototype.getBoundingRect=function(t){for(var e=new ie(0,0,0,0),i=t||this._children,n=[],r=null,o=0;o<i.length;o++){var a=i[o];if(!a.ignore&&!a.invisible){var s=a.getBoundingRect(),l=a.getLocalTransform(n);l?(ie.applyTransform(e,s,l),(r=r||e.clone()).union(e)):(r=r||s.clone()).union(s)}}return r||e},e}(n6);ri.prototype.type="group";let rn=ri;var rr={},ro={},ra=function(){function t(t,e,i){var n,r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var o=new ix,a=i.renderer||"canvas";rr[a]||(a=tP(rr)[0]),i.useDirtyRect=null!=i.useDirtyRect&&i.useDirtyRect;var s=new rr[a](e,o,i,t),l=i.ssr||s.ssrOnly;this.storage=o,this.painter=s;var h=tr.node||tr.worker||l?null:new nI(s.getViewportRoot(),s.root),u=i.useCoarsePointer;(null==u||"auto"===u?tr.touchEventsSupported:!!u)&&(n=tG(i.pointerSize,44)),this.handler=new ih(o,s,h,s.root,n),this.animation=new nf({stage:{update:l?null:function(){return r._flush(!1)}}}),l||this.animation.start()}return t.prototype.add=function(t){!this._disposed&&t&&(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},t.prototype.remove=function(t){!this._disposed&&t&&(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},t.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=function(t){if(!t)return!1;if("string"==typeof t)return .4>i9(t,1);if(t.colorStops){for(var e=t.colorStops,i=0,n=e.length,r=0;r<n;r++)i+=i9(e[r].color,1);return(i/=n)<.4}return!1}(t))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(t){this._darkMode=t},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},t.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!0)},t.prototype._flush=function(t){var e,i=np(),n=this._needsRefresh,r=this._needsRefreshHover;(n||r)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:r}));var o=np();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},t.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},t.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},t.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},t.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},t.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof rn&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){if(!this._disposed){var t;this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,t=this.id,delete ro[t]}},t}();function rs(t,e){var i=new ra(tb(),t,e);return ro[i.id]=i,i}var rl=Math.min,rh=Math.max,ru=Math.abs,rd=Math.round,rc=Math.floor,rp=Math.ceil,rf=Math.pow,rg=Math.log,r_=Math.LN10,rm=Math.PI,rv=Math.random;function ry(t,e,i,n){var r=e[0],o=e[1],a=i[0],s=i[1],l=o-r,h=s-a;if(0===l)return 0===h?a:(a+s)/2;if(n){if(l>0){if(t<=r)return a;else if(t>=o)return s}else if(t>=r)return a;else if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*h+a}var rb=function(t,e,i){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return rx(t,e,i)};function rx(t,e,i){if(tB(t))return t.replace(/^\s+|\s+$/g,"").match(/%$/)?parseFloat(t)/100*e+(i||0):parseFloat(t);return null==t?0/0:+t}function rw(t,e,i){return isNaN(e)?i?""+t:+t:(e=rl(rh(0,e),20),t=(+t).toFixed(e),i?t:+t)}function rS(t){return t.sort(function(t,e){return t-e}),t}function rk(t){if(isNaN(t*=1))return 0;if(t>1e-14){for(var e,i,n,r,o,a=1,s=0;s<15;s++,a*=10)if(rd(t*a)/a===t)return s}return n=(i=(e=t.toString().toLowerCase()).indexOf("e"))>0?+e.slice(i+1):0,r=i>0?i:e.length,rh(0,((o=e.indexOf("."))<0?0:r-1-o)-n)}function rC(t,e,i){var n=ru(t[1]-t[0]);if(!isFinite(n)||0===n)return 0/0;var r=rh(0,rp(-(rg(2*ru(i||1)*ru(n))/r_)+rg(ru(e))/r_));return isFinite(r)||(r=0/0),r}function rT(t,e){var i=rh(rk(t),rk(e)),n=t+e;return i>20?n:rw(n,i)}var rM=rf(2,53)-1;function rD(t){var e=2*rm;return(t%e+e)%e}function rI(t){return t>-1e-4&&t<1e-4}var rA=/^(?:(\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 rE(t){if(t instanceof Date)return t;if(tB(t)){var e=rA.exec(t);if(!e)return new Date(0/0);if(!e[8])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);var i=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(i-=e[8].slice(0,3)),new Date(Date.UTC(+e[1],(e[2]||1)-1,+e[3]||1,i,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}return null==t?new Date(0/0):new Date(rd(t))}function rO(t){return rf(10,rP(t))}function rP(t){if(0===t)return 0;var e=rc(rg(t)/r_);return t/rf(10,e)>=10&&e++,e}function rL(t,e){var i=rP(t),n=rf(10,i),r=t/n;return rw(t=(2===e?1:e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*n,-i)}function rR(t){var e=parseFloat(t);return e==t&&(0!==e||!tB(t)||0>=t.indexOf("x"))?e:0/0}function rN(){return rd(9*rv())}function rz(t,e){return null==t?e:null==e?t:t*e/function t(e,i){return 0===i?e:t(i,e%i)}(t,e)}function rB(t){return null!=t&&isFinite(t)}var rV="series\0";function rF(t){return t instanceof Array?t:null==t?[]:[t]}function rH(t,e,i){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var n=0,r=i.length;n<r;n++){var o=i[n];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var rY=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function r$(t){return!tH(t)||tN(t)||t instanceof Date?t:t.value}function rU(t,e,i){var n=rj(e[t],null),r=rj(i[t],null);return null!=n&&null!=r&&n===r}function rW(t){return rj(t,"")}function rj(t,e){return null==t?e:tB(t)?t:tF(t)||tV(t)?t+"":e}function rG(t){var e=t.name;return!!(e&&e.indexOf(rV))}function rZ(t){return t&&null!=t.id&&0===rW(t.id).indexOf("\0_ec_\0")}function rq(t,e){return null!=e.dataIndexInside?e.dataIndexInside:null!=e.dataIndex?tN(e.dataIndex)?tA(e.dataIndex,function(e){return t.indexOfRawIndex(e)}):t.indexOfRawIndex(e.dataIndex):null!=e.name?tN(e.name)?tA(e.name,function(e){return t.indexOfName(e)}):t.indexOfName(e.name):void 0}function rX(){var t="__ec_inner_"+rK++;return function(e){return e[t]||(e[t]={})}}var rK=rN();function rQ(t,e,i){var n=rJ(e,i),r=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=i?i.defaultMainType:null;return!r&&s&&o.set(s,{}),o.each(function(e,n){var r=r2(t,n,e,{useDefault:s===n,enableAll:!i||null==i.enableAll||i.enableAll,enableNone:!i||null==i.enableNone||i.enableNone});a[n+"Models"]=r.models,a[n+"Model"]=r.models[0]}),a}function rJ(t,e){if(tB(t)){var i,n={};n[t+"Index"]=0,i=n}else i=t;var r=t5(),o={},a=!1;return tI(i,function(t,i){if("dataIndex"===i||"dataIndexInside"===i){o[i]=t;return}var n=i.match(/^(\w+)(Index|Id|Name)$/)||[],s=n[1],l=(n[2]||"").toLowerCase();!s||!l||e&&e.includeMainTypes&&0>tT(e.includeMainTypes,s)||(a=a||!!s,(r.get(s)||r.set(s,{}))[l]=t)}),{mainTypeSpecified:a,queryOptionMap:r,others:o}}var r0={useDefault:!0,enableAll:!1,enableNone:!1},r1={useDefault:!1,enableAll:!0,enableNone:!0};function r2(t,e,i,n){n=n||r0;var r=i.index,o=i.id,a=i.name,s={models:null,specified:null!=r||null!=o||null!=a};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=t.getComponent(e))?[l]:[],s}if("none"===r||!1===r)if(n.enableNone)return s.models=[],s;else r=-1;return"all"===r&&(r=n.enableAll?o=a=null:-1),s.models=t.queryComponents({mainType:e,index:r,id:o,name:a}),s}function r5(t,e,i){t.setAttribute?t.setAttribute(e,i):t[e]=i}function r3(){}function r4(){return[1/0,-1/0]}function r6(t,e){r9(e)&&(e<t[0]&&(t[0]=e),e>t[1]&&(t[1]=e))}function r7(t,e){r9(e)&&e<t[0]&&(t[0]=e)}function r8(t,e){r9(e)&&e>t[1]&&(t[1]=e)}function r9(t){return null!=t&&isFinite(t)}function ot(t,e){return r9(t)&&r9(e)&&t<=e}function oe(t){ot(t[0],t[1])&&t[0]>t[1]&&(t[0]=t[1])}function oi(){var t="__ec_once_"+on++;return function(e,i){t6(e,t)||(e[t]=1,i())}}r3.prototype.reset=function(t,e,i,n){return this._list=t,this._step=n=n||1,this._idx=e,this._end=null!=i?i:n>0?t.length:0,this.item=null,this.key=0/0,this},r3.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx=this._idx+this._step,!0)};var on=rN();function or(t,e,i){var n=t5(),r=0;tI(t,function(o){var a=e(o),s=n.get(a)||0;i&&i(o,s),s||i||(t[r++]=o),n.set(a,s+1)}),i||(t.length=r)}function oo(t){return t.value+""}function oa(t){return t+""}function os(t){return{overallReset:t}}var ol="___EC__COMPONENT__CONTAINER___",oh="___EC__EXTENDED_CLASS___";function ou(t){var e={main:"",sub:""};if(t){var i=t.split(".");e.main=i[0]||"",e.sub=i[1]||""}return e}function od(t,e){t.$constructor=t,t.extend=function(t){var e,i,n=this;if(tz(e=n)&&/^class\s/.test(Function.prototype.toString.call(e)))i=function(t){function e(){return t.apply(this,arguments)||this}return ti(e,t),e}(n);else{var r=i=function(){(t.$constructor||n).apply(this,arguments)},o=r.prototype;function a(){}for(var s in a.prototype=this.prototype,r.prototype=new a,o)o.hasOwnProperty(s)&&(r.prototype[s]=o[s]);r.prototype.constructor=r,r.superClass=this}return tk(i.prototype,t),i[oh]=!0,i.extend=this.extend,i.superCall=of,i.superApply=og,i.superClass=n,i}}function oc(t,e){t.extend=e.extend}var op=Math.round(10*Math.random());function of(t,e){for(var i=[],n=2;n<arguments.length;n++)i[n-2]=arguments[n];return this.superClass.prototype[e].apply(t,i)}function og(t,e,i){return this.superClass.prototype[e].apply(t,i)}function o_(t){var e={};t.registerClass=function(t){var i=t.type||t.prototype.type;if(i){tK(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(i),'componentType "'+i+'" illegal'),t.prototype.type=i;var n,r,o=ou(i);o.sub?o.sub!==ol&&(((r=e[(n=o).main])&&r[ol]||((r=e[n.main]={})[ol]=!0),r)[o.sub]=t):e[o.main]=t}return t},t.getClass=function(t,i,n){var r=e[t];if(r&&r[ol]&&(r=i?r[i]:null),n&&!r)throw Error(i?"Component "+t+"."+(i||"")+" is used but not imported.":t+".type should be specified.");return r},t.getClassesByMainType=function(t){var i=ou(t),n=[],r=e[i.main];return r&&r[ol]?tI(r,function(t,e){e!==ol&&n.push(t)}):n.push(r),n},t.hasClass=function(t){return!!e[ou(t).main]},t.getAllClassMainTypes=function(){var t=[];return tI(e,function(e,i){t.push(i)}),t},t.hasSubTypes=function(t){var i=e[ou(t).main];return i&&i[ol]}}function om(t,e){for(var i=0;i<t.length;i++)t[i][1]||(t[i][1]=t[i][0]);return e=e||!1,function(i,n,r){for(var o={},a=0;a<t.length;a++){var s=t[a][1];if(!(n&&tT(n,s)>=0||r&&0>tT(r,s))){var l=i.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var ov=om([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),oy=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return ov(this,t,e)},t}(),ob=new ij(50);function ox(t,e,i,n,r){if(!t)return e;if("string"!=typeof t)return t;if(e&&e.__zrImageSrc===t||!i)return e;var o=ob.get(t),a={hostEl:i,cb:n,cbPayload:r};return o?oS(e=o.image)||o.pending.push(a):((e=ts.loadImage(t,ow,ow)).__zrImageSrc=t,ob.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}function ow(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var i=t.pending[e],n=i.cb;n&&n(this,i.cbPayload),i.hostEl.dirty()}t.pending.length=0}function oS(t){return t&&t.width&&t.height}var ok=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oC(t,e,i,n){var r=tk({},n=n||{});i=tG(i,"..."),r.maxIterations=tG(n.maxIterations,2);var o=r.minChar=tG(n.minChar,0),a=r.fontMeasureInfo=n$(e),s=a.asciiCharWidth;r.placeholder=tG(n.placeholder,"");for(var l=t=Math.max(0,t-1),h=0;h<o&&l>=s;h++)l-=s;var u=nj(a,i);return u>l&&(i="",u=0),l=t-u,r.ellipsis=i,r.ellipsisWidth=u,r.contentWidth=l,r.containerWidth=t,r}function oT(t,e,i){var n=i.containerWidth,r=i.contentWidth,o=i.fontMeasureInfo;if(!n){t.textLine="",t.isTruncated=!1;return}var a=nj(o,e);if(a<=n){t.textLine=e,t.isTruncated=!1;return}for(var s=0;;s++){if(a<=r||s>=i.maxIterations){e+=i.ellipsis;break}var l=0===s?function(t,e,i){for(var n=0,r=0,o=t.length;r<o&&n<e;r++)n+=nW(i,t.charCodeAt(r));return r}(e,r,o):a>0?Math.floor(e.length*r/a):0;a=nj(o,e=e.substr(0,l))}""===e&&(e=i.placeholder),t.textLine=e,t.isTruncated=!0}var oM=function(){},oD=function(t){this.tokens=[],t&&(this.tokens=t)},oI=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function oA(t,e,i,n,r){var o,a,s=""===e,l=r&&i.rich[r]||{},h=t.lines,u=l.font||i.font,d=!1;if(n){var c=l.padding,p=c?c[1]+c[3]:0;if(null!=l.width&&"auto"!==l.width){var f=nQ(l.width,n.width)+p;h.length>0&&f+n.accumWidth>n.width&&(o=e.split("\n"),d=!0),n.accumWidth=f}else{var g=oO(e,u,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}o||(o=e.split("\n"));for(var _=n$(u),m=0;m<o.length;m++){var v=o[m],y=new oM;if(y.styleName=r,y.text=v,y.isLineHolder=!v&&!s,"number"==typeof l.width?y.width=l.width:y.width=a?a[m]:nj(_,v),m||d)h.push(new oD([y]));else{var b=(h[h.length-1]||(h[0]=new oD)).tokens,x=b.length;1===x&&b[0].isLineHolder?b[0]=y:(v||!x||s)&&b.push(y)}}}var oE=tE(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function oO(t,e,i,n,r){for(var o=[],a=[],s="",l="",h=0,u=0,d=n$(e),c=0;c<t.length;c++){var p=t.charAt(c);if("\n"===p){l&&(s+=l,u+=h),o.push(s),a.push(u),s="",l="",h=0,u=0;continue}var f=nW(d,p.charCodeAt(0)),g=!n&&!function(t){var e;return(!((e=t.charCodeAt(0))>=32)||!(e<=591))&&(!(e>=880)||!(e<=4351))&&(!(e>=4608)||!(e<=5119))&&(!(e>=7680)||!(e<=8303))||!!oE[t]}(p);if(o.length?u+f>i:r+u+f>i){u?(s||l)&&(g?(s||(s=l,l="",u=h=0),o.push(s),a.push(u-h),l+=p,h+=f,s="",u=h):(l&&(s+=l,l="",h=0),o.push(s),a.push(u),s=p,u=f)):g?(o.push(l),a.push(h),l=p,h=f):(o.push(p),a.push(f));continue}u+=f,g?(l+=p,h+=f):(l&&(s+=l,l="",h=0),s+=p)}return l&&(s+=l),s&&(o.push(s),a.push(u)),1===o.length&&(u+=r),{accumWidth:u,lines:o,linesWidths:a}}function oP(t,e,i,n,r,o){if(t.baseX=i,t.baseY=n,t.outerWidth=t.outerHeight=null,e){var a=2*e.width,s=2*e.height;ie.set(oL,nq(i,a,r),nX(n,s,o),a,s),ie.intersect(e,oL,null,oR);var l=oR.outIntersectRect;t.outerWidth=l.width,t.outerHeight=l.height,t.baseX=nq(l.x,l.width,r,!0),t.baseY=nX(l.y,l.height,o,!0)}}var oL=new ie(0,0,0,0),oR={outIntersectRect:{},clamp:!0};function oN(t){return null!=t?t+="":t=""}function oz(t,e,i,n){var r=new ie(nq(t.x||0,e,t.textAlign),nX(t.y||0,i,t.textBaseline),e,i),o=null!=n?n:oB(t)?t.lineWidth:0;return o>0&&(r.x-=o/2,r.y-=o/2,r.width+=o,r.height+=o),r}function oB(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}var oV="__zr_style_"+Math.round(10*Math.random()),oF={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oH={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};oF[oV]=!0;var oY=["z","z2","invisible"],o$=["invisible"],oU=function(t){var e;function i(e){return t.call(this,e)||this}return et(i,t),i.prototype._init=function(e){for(var i=tP(e),n=0;n<i.length;n++){var r=i[n];"style"===r?this.useStyle(e[r]):t.prototype.attrKV.call(this,r,e[r])}this.style||this.useStyle({})},i.prototype.beforeBrush=function(t){},i.prototype.afterBrush=function(){},i.prototype.innerBeforeBrush=function(){},i.prototype.innerAfterBrush=function(){},i.prototype.shouldBePainted=function(t,e,i,n){var r,o,a,s=this.transform;if(this.ignore||this.invisible||0===this.style.opacity||this.culling&&(r=this,o=t,a=e,oW.copy(r.getBoundingRect()),r.transform&&oW.applyTransform(r.transform),oj.width=o,oj.height=a,!oW.intersect(oj))||s&&!s[0]&&!s[3])return!1;if(i&&this.__clipPaths&&this.__clipPaths.length){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(n&&this.parent)for(var h=this.parent;h;){if(h.ignore)return!1;h=h.parent}return!0},i.prototype.contain=function(t,e){return this.rectContain(t,e)},i.prototype.traverse=function(t,e){t.call(e,this)},i.prototype.rectContain=function(t,e){var i=this.transformCoordToLocal(t,e);return this.getBoundingRect().contain(i[0],i[1])},i.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var e=this.transform,i=this.getBoundingRect(),n=this.style,r=n.shadowBlur||0,o=n.shadowOffsetX||0,a=n.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new ie(0,0,0,0)),e?ie.applyTransform(t,i,e):t.copy(i),(r||o||a)&&(t.width+=2*r+Math.abs(o),t.height+=2*r+Math.abs(a),t.x=Math.min(t.x,t.x+o-r),t.y=Math.min(t.y,t.y+a-r));var s=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-s),t.y=Math.floor(t.y-s),t.width=Math.ceil(t.width+1+2*s),t.height=Math.ceil(t.height+1+2*s))}return t},i.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new ie(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},i.prototype.getPrevPaintRect=function(){return this._prevPaintRect},i.prototype.animateStyle=function(t){return this.animate("style",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():this.markRedraw()},i.prototype.attrKV=function(e,i){"style"!==e?t.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},i.prototype.setStyle=function(t,e){return"string"==typeof t?this.style[t]=e:tk(this.style,t),this.dirtyStyle(),this},i.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=2,this._rect&&(this._rect=null)},i.prototype.dirty=function(){this.dirtyStyle()},i.prototype.styleChanged=function(){return!!(2&this.__dirty)},i.prototype.styleUpdated=function(){this.__dirty&=-3},i.prototype.createStyle=function(t){return t3(oF,t)},i.prototype.useStyle=function(t){t[oV]||(t=this.createStyle(t)),this.style=t,this.dirtyStyle()},i.prototype._useHoverStyle=function(t){this.__hoverStyle=t},i.prototype.isStyleObject=function(t){return t[oV]},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,oY)},i.prototype._applyStateObj=function(e,i,n,r,o,a){t.prototype._applyStateObj.call(this,e,i,n,r,o,a);var s,l=!(i&&r),h=1===this.__inHover;if(i&&i.style?o?r?s=i.style:(s=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(s,i.style)):(s=this._mergeStyle(this.createStyle(),r?this.style:n.style),this._mergeStyle(s,i.style)):l&&(s=n.style),s)if(o){var u=this.style;if(this.style=this.createStyle(l?{}:u),l)for(var d=tP(u),c=0;c<d.length;c++){var p=d[c];p in s&&(s[p]=s[p],this.style[p]=u[p])}for(var f=tP(s),c=0;c<f.length;c++){var p=f[c];this.style[p]=this.style[p]}this._transitionState(e,{style:s},a,this.getAnimationStyleProps())}else h?this._useHoverStyle(s):this.useStyle(s);if(!h)for(var g=this.__inHover?o$:oY,c=0;c<g.length;c++){var p=g[c];i&&null!=i[p]?this[p]=i[p]:l&&null!=n[p]&&(this[p]=n[p])}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},i.prototype._mergeStyle=function(t,e){return tk(t,e),t},i.prototype.getAnimationStyleProps=function(){return oH},i.initDefaultProps=void((e=i.prototype).type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=3),i}(n6),oW=new ie(0,0,0,0),oj=new ie(0,0,0,0),oG=Math.min,oZ=Math.max,oq=Math.sin,oX=Math.cos,oK=2*Math.PI,oQ=ee(),oJ=ee(),o0=ee();function o1(t,e,i){if(0!==t.length){for(var n=t[0],r=n[0],o=n[0],a=n[1],s=n[1],l=1;l<t.length;l++)r=oG(r,(n=t[l])[0]),o=oZ(o,n[0]),a=oG(a,n[1]),s=oZ(s,n[1]);e[0]=r,e[1]=a,i[0]=o,i[1]=s}}function o2(t,e,i,n,r,o){r[0]=oG(t,i),r[1]=oG(e,n),o[0]=oZ(t,i),o[1]=oZ(e,n)}var o5=[],o3=[],o4={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},o6=[],o7=[],o8=[],o9=[],at=[],ae=[],ai=Math.min,an=Math.max,ar=Math.cos,ao=Math.sin,aa=Math.abs,as=Math.PI,al=2*as,ah="u">typeof Float32Array,au=[];function ad(t){return Math.round(t/as*1e8)/1e8%2*as}var ac=function(){var t;function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,e,i){(i=i||0)>0&&(this._ux=aa(i/nE/t)||0,this._uy=aa(i/nE/e)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(o4.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},e.prototype.lineTo=function(t,e){var i=aa(t-this._xi),n=aa(e-this._yi),r=i>this._ux||n>this._uy;if(this.addData(o4.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,e,i,n,r,o){return this._drawPendingPt(),this.addData(o4.C,t,e,i,n,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(o4.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,e,i,n,r,o){this._drawPendingPt(),au[0]=n,au[1]=r,(a=ad(au[0]))<0&&(a+=al),s=a-au[0],l=au[1]+s,!o&&l-a>=al?l=a+al:o&&a-l>=al?l=a-al:!o&&a>l?l=a+(al-ad(a-l)):o&&a<l&&(l=a-(al-ad(l-a))),au[0]=a,au[1]=l,n=au[0];var a,s,l,h=(r=au[1])-n;return this.addData(o4.A,t,e,i,i,n,h,0,+!o),this._ctx&&this._ctx.arc(t,e,i,n,r,o),this._xi=ar(r)*i+t,this._yi=ao(r)*i+e,this},e.prototype.arcTo=function(t,e,i,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,r),this},e.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(o4.R,t,e,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(o4.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&ah&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},e.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,r=0;r<e;r++)i+=t[r].len();var o=this.data;if(ah&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var a=0;a<n;a++)this.data[a]=o[a];for(var r=0;r<e;r++)for(var s=t[r].data,a=0;a<s.length;a++)this.data[n++]=s[a];this._len=n}},e.prototype.addData=function(t,e,i,n,r,o,a,s,l){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var u=0;u<arguments.length;u++)h[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ah&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){o8[0]=o8[1]=at[0]=at[1]=Number.MAX_VALUE,o9[0]=o9[1]=ae[0]=ae[1]=-Number.MAX_VALUE;var t,e=this.data,i=0,n=0,r=0,o=0;for(t=0;t<this._len;){var a=e[t++],s=1===t;switch(s&&(i=e[t],n=e[t+1],r=i,o=n),a){case o4.M:i=r=e[t++],n=o=e[t++],at[0]=r,at[1]=o,ae[0]=r,ae[1]=o;break;case o4.L:o2(i,n,e[t],e[t+1],at,ae),i=e[t++],n=e[t++];break;case o4.C:!function(t,e,i,n,r,o,a,s,l,h){var u=iR(t,i,r,a,o5);l[0]=1/0,l[1]=1/0,h[0]=-1/0,h[1]=-1/0;for(var d=0;d<u;d++){var c=iO(t,i,r,a,o5[d]);l[0]=oG(c,l[0]),h[0]=oZ(c,h[0])}u=iR(e,n,o,s,o3);for(var d=0;d<u;d++){var p=iO(e,n,o,s,o3[d]);l[1]=oG(p,l[1]),h[1]=oZ(p,h[1])}l[0]=oG(t,l[0]),h[0]=oZ(t,h[0]),l[0]=oG(a,l[0]),h[0]=oZ(a,h[0]),l[1]=oG(e,l[1]),h[1]=oZ(e,h[1]),l[1]=oG(s,l[1]),h[1]=oZ(s,h[1])}(i,n,e[t++],e[t++],e[t++],e[t++],e[t],e[t+1],at,ae),i=e[t++],n=e[t++];break;case o4.Q:!function(t,e,i,n,r,o,a,s){var l=oZ(oG(iV(t,i,r),1),0),h=oZ(oG(iV(e,n,o),1),0),u=iz(t,i,r,l),d=iz(e,n,o,h);a[0]=oG(t,r,u),a[1]=oG(e,o,d),s[0]=oZ(t,r,u),s[1]=oZ(e,o,d)}(i,n,e[t++],e[t++],e[t],e[t+1],at,ae),i=e[t++],n=e[t++];break;case o4.A:var l=e[t++],h=e[t++],u=e[t++],d=e[t++],c=e[t++],p=e[t++]+c;t+=1;var f=!e[t++];s&&(r=ar(c)*u+l,o=ao(c)*d+h),function(t,e,i,n,r,o,a,s,l){var h=Math.abs(r-o);if(h%oK<1e-4&&h>1e-4){s[0]=t-i,s[1]=e-n,l[0]=t+i,l[1]=e+n;return}if(oQ[0]=oX(r)*i+t,oQ[1]=oq(r)*n+e,oJ[0]=oX(o)*i+t,oJ[1]=oq(o)*n+e,el(s,oQ,oJ),eh(l,oQ,oJ),(r%=oK)<0&&(r+=oK),(o%=oK)<0&&(o+=oK),r>o&&!a?o+=oK:r<o&&a&&(r+=oK),a){var u=o;o=r,r=u}for(var d=0;d<o;d+=Math.PI/2)d>r&&(o0[0]=oX(d)*i+t,o0[1]=oq(d)*n+e,el(s,o0,s),eh(l,o0,l))}(l,h,u,d,c,p,f,at,ae),i=ar(p)*u+l,n=ao(p)*d+h;break;case o4.R:o2(r=i=e[t++],o=n=e[t++],r+e[t++],o+e[t++],at,ae);break;case o4.Z:i=r,n=o}el(o8,o8,at),eh(o9,o9,ae)}return 0===t&&(o8[0]=o8[1]=o9[0]=o9[1]=0),new ie(o8[0],o8[1],o9[0]-o8[0],o9[1]-o8[1])},e.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,r=0,o=0,a=0,s=0;this._pathSegLen||(this._pathSegLen=[]);for(var l=this._pathSegLen,h=0,u=0,d=0;d<e;){var c=t[d++],p=1===d;p&&(r=t[d],o=t[d+1],a=r,s=o);var f=-1;switch(c){case o4.M:r=a=t[d++],o=s=t[d++];break;case o4.L:var g=t[d++],_=t[d++],m=g-r,v=_-o;(aa(m)>i||aa(v)>n||d===e-1)&&(f=Math.sqrt(m*m+v*v),r=g,o=_);break;case o4.C:var y=t[d++],b=t[d++],g=t[d++],_=t[d++],x=t[d++],w=t[d++];f=function(t,e,i,n,r,o,a,s){for(var l=t,h=e,u=0,d=1;d<=10;d++){var c=.1*d,p=iO(t,i,r,a,c),f=iO(e,n,o,s,c),g=p-l,_=f-h;u+=Math.sqrt(g*g+_*_),l=p,h=f}return u}(r,o,y,b,g,_,x,w),r=x,o=w;break;case o4.Q:var y=t[d++],b=t[d++],g=t[d++],_=t[d++];f=function(t,e,i,n,r,o){for(var a=t,s=e,l=0,h=1;h<=10;h++){var u=.1*h,d=iz(t,i,r,u),c=iz(e,n,o,u),p=d-a,f=c-s;l+=Math.sqrt(p*p+f*f),a=d,s=c}return l}(r,o,y,b,g,_),r=g,o=_;break;case o4.A:var S=t[d++],k=t[d++],C=t[d++],T=t[d++],M=t[d++],D=t[d++],I=D+M;d+=1,p&&(a=ar(M)*C+S,s=ao(M)*T+k),f=an(C,T)*ai(al,Math.abs(D)),r=ar(I)*C+S,o=ao(I)*T+k;break;case o4.R:a=r=t[d++],s=o=t[d++],f=2*t[d++]+2*t[d++];break;case o4.Z:var m=a-r,v=s-o;f=Math.sqrt(m*m+v*v),r=a,o=s}f>=0&&(l[u++]=f,h+=f)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,e){var i,n,r,o,a,s,l,h,u,d,c=this.data,p=this._ux,f=this._uy,g=this._len,_=e<1,m=0,v=0,y=0;if(!_||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,h=e*this._pathLen))t:for(var b=0;b<g;){var x=c[b++],w=1===b;switch(w&&(r=c[b],o=c[b+1],i=r,n=o),x!==o4.L&&y>0&&(t.lineTo(u,d),y=0),x){case o4.M:i=r=c[b++],n=o=c[b++],t.moveTo(r,o);break;case o4.L:a=c[b++],s=c[b++];var S=aa(a-r),k=aa(s-o);if(S>p||k>f){if(_){var C=l[v++];if(m+C>h){var T=(h-m)/C;t.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break t}m+=C}t.lineTo(a,s),r=a,o=s,y=0}else{var M=S*S+k*k;M>y&&(u=a,d=s,y=M)}break;case o4.C:var D=c[b++],I=c[b++],A=c[b++],E=c[b++],O=c[b++],P=c[b++];if(_){var C=l[v++];if(m+C>h){var T=(h-m)/C;iN(r,D,A,O,T,o6),iN(o,I,E,P,T,o7),t.bezierCurveTo(o6[1],o7[1],o6[2],o7[2],o6[3],o7[3]);break t}m+=C}t.bezierCurveTo(D,I,A,E,O,P),r=O,o=P;break;case o4.Q:var D=c[b++],I=c[b++],A=c[b++],E=c[b++];if(_){var C=l[v++];if(m+C>h){var T=(h-m)/C;iF(r,D,A,T,o6),iF(o,I,E,T,o7),t.quadraticCurveTo(o6[1],o7[1],o6[2],o7[2]);break t}m+=C}t.quadraticCurveTo(D,I,A,E),r=A,o=E;break;case o4.A:var L=c[b++],R=c[b++],N=c[b++],z=c[b++],B=c[b++],V=c[b++],F=c[b++],H=!c[b++],Y=N>z?N:z,$=aa(N-z)>.001,U=B+V,W=!1;if(_){var C=l[v++];m+C>h&&(U=B+V*(h-m)/C,W=!0),m+=C}if($&&t.ellipse?t.ellipse(L,R,N,z,F,B,U,H):t.arc(L,R,Y,B,U,H),W)break t;w&&(i=ar(B)*N+L,n=ao(B)*z+R),r=ar(U)*N+L,o=ao(U)*z+R;break;case o4.R:i=r=c[b],n=o=c[b+1],a=c[b++],s=c[b++];var j=c[b++],G=c[b++];if(_){var C=l[v++];if(m+C>h){var Z=h-m;t.moveTo(a,s),t.lineTo(a+ai(Z,j),s),(Z-=j)>0&&t.lineTo(a+j,s+ai(Z,G)),(Z-=G)>0&&t.lineTo(a+an(j-Z,0),s+G),(Z-=j)>0&&t.lineTo(a,s+an(G-Z,0));break t}m+=C}t.rect(a,s,j,G);break;case o4.Z:if(_){var C=l[v++];if(m+C>h){var T=(h-m)/C;t.lineTo(r*(1-T)+i*T,o*(1-T)+n*T);break t}m+=C}t.closePath(),r=i,o=n}}},e.prototype.clone=function(){var t=new e,i=this.data;return t.data=i.slice?i.slice():Array.prototype.slice.call(i),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=o4,e.initDefaultProps=void((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0),e}();function ap(t,e,i,n,r,o,a){if(0===r)return!1;var s=0,l=t;if(a>e+r&&a>n+r||a<e-r&&a<n-r||o>t+r&&o>i+r||o<t-r&&o<i-r)return!1;if(t===i)return Math.abs(o-t)<=r/2;s=(e-n)/(t-i);var h=s*o-a+(l=(t*n-i*e)/(t-i));return h*h/(s*s+1)<=r/2*r/2}var af=2*Math.PI;function ag(t){return(t%=af)<0&&(t+=af),t}var a_=2*Math.PI;function am(t,e,i,n,r,o){if(o>e&&o>n||o<e&&o<n||n===e)return 0;var a=(o-e)/(n-e),s=n<e?1:-1;(1===a||0===a)&&(s=n<e?.5:-.5);var l=a*(i-t)+t;return l===r?1/0:l>r?s:0}var av=ac.CMD,ay=2*Math.PI,ab=[-1,-1,-1],ax=[-1,-1];function aw(t,e,i,n,r){for(var o,a,s=t.data,l=t.len(),h=0,u=0,d=0,c=0,p=0,f=0;f<l;){var g,_,m,v,y,b,x,w,S,k,C,T,M,D,I=s[f++],A=1===f;switch(I===av.M&&f>1&&!i&&(h+=am(u,d,c,p,n,r)),A&&(u=s[f],d=s[f+1],c=u,p=d),I){case av.M:c=s[f++],p=s[f++],u=c,d=p;break;case av.L:if(i){if(ap(u,d,s[f],s[f+1],e,n,r))return!0}else h+=am(u,d,s[f],s[f+1],n,r)||0;u=s[f++],d=s[f++];break;case av.C:if(i){if(g=u,_=d,m=s[f++],v=s[f++],y=s[f++],b=s[f++],x=s[f],w=s[f+1],0!==e&&(!(r>_+e)||!(r>v+e)||!(r>b+e)||!(r>w+e))&&(!(r<_-e)||!(r<v-e)||!(r<b-e)||!(r<w-e))&&(!(n>g+e)||!(n>m+e)||!(n>y+e)||!(n>x+e))&&(!(n<g-e)||!(n<m-e)||!(n<y-e)||!(n<x-e))&&function(t,e,i,n,r,o,a,s,l,h){var u,d,c,p,f,g=.005,_=1/0;iM[0]=l,iM[1]=h;for(var m=0;m<1;m+=.05)iD[0]=iO(t,i,r,a,m),iD[1]=iO(e,n,o,s,m),(p=ea(iM,iD))<_&&(u=m,_=p);_=1/0;for(var v=0;v<32&&!(g<1e-4);v++)d=u-g,c=u+g,iD[0]=iO(t,i,r,a,d),iD[1]=iO(e,n,o,s,d),p=ea(iD,iM),d>=0&&p<_?(u=d,_=p):(iI[0]=iO(t,i,r,a,c),iI[1]=iO(e,n,o,s,c),f=ea(iI,iM),c<=1&&f<_?(u=c,_=f):g*=.5);return ik(_)}(g,_,m,v,y,b,x,w,n,r)<=e/2)return!0}else h+=function(t,e,i,n,r,o,a,s,l,h){if(h>e&&h>n&&h>o&&h>s||h<e&&h<n&&h<o&&h<s)return 0;var u=iL(e,n,o,s,h,ab);if(0===u)return 0;for(var d=0,c=-1,p=void 0,f=void 0,g=0;g<u;g++){var _=ab[g],m=0===_||1===_?.5:1;iO(t,i,r,a,_)<l||(c<0&&(c=iR(e,n,o,s,ax),ax[1]<ax[0]&&c>1&&function(){var t=ax[0];ax[0]=ax[1],ax[1]=t}(),p=iO(e,n,o,s,ax[0]),c>1&&(f=iO(e,n,o,s,ax[1]))),2===c?_<ax[0]?d+=p<e?m:-m:_<ax[1]?d+=f<p?m:-m:d+=s<f?m:-m:_<ax[0]?d+=p<e?m:-m:d+=s<p?m:-m)}return d}(u,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],n,r)||0;u=s[f++],d=s[f++];break;case av.Q:if(i){if(S=u,k=d,C=s[f++],T=s[f++],M=s[f],D=s[f+1],0!==e&&(!(r>k+e)||!(r>T+e)||!(r>D+e))&&(!(r<k-e)||!(r<T-e)||!(r<D-e))&&(!(n>S+e)||!(n>C+e)||!(n>M+e))&&(!(n<S-e)||!(n<C-e)||!(n<M-e))&&function(t,e,i,n,r,o,a,s){var l,h=.005,u=1/0;iM[0]=a,iM[1]=s;for(var d=0;d<1;d+=.05){iD[0]=iz(t,i,r,d),iD[1]=iz(e,n,o,d);var c=ea(iM,iD);c<u&&(l=d,u=c)}u=1/0;for(var p=0;p<32&&!(h<1e-4);p++){var f=l-h,g=l+h;iD[0]=iz(t,i,r,f),iD[1]=iz(e,n,o,f);var c=ea(iD,iM);if(f>=0&&c<u)l=f,u=c;else{iI[0]=iz(t,i,r,g),iI[1]=iz(e,n,o,g);var _=ea(iI,iM);g<=1&&_<u?(l=g,u=_):h*=.5}}return ik(u)}(S,k,C,T,M,D,n,r)<=e/2)return!0}else h+=function(t,e,i,n,r,o,a,s){if(s>e&&s>n&&s>o||s<e&&s<n&&s<o)return 0;var l=function(t,e,i,n,r){var o=t-2*e+i,a=2*(e-t),s=t-n,l=0;if(iA(o)){if(iE(a)){var h=-s/a;h>=0&&h<=1&&(r[l++]=h)}}else{var u=a*a-4*o*s;if(iA(u)){var h=-a/(2*o);h>=0&&h<=1&&(r[l++]=h)}else if(u>0){var d=ik(u),h=(-a+d)/(2*o),c=(-a-d)/(2*o);h>=0&&h<=1&&(r[l++]=h),c>=0&&c<=1&&(r[l++]=c)}}return l}(e,n,o,s,ab);if(0===l)return 0;var h=iV(e,n,o);if(h>=0&&h<=1){for(var u=0,d=iz(e,n,o,h),c=0;c<l;c++){var p=0===ab[c]||1===ab[c]?.5:1,f=iz(t,i,r,ab[c]);f<a||(ab[c]<h?u+=d<e?p:-p:u+=o<d?p:-p)}return u}var p=0===ab[0]||1===ab[0]?.5:1,f=iz(t,i,r,ab[0]);return f<a?0:o<e?p:-p}(u,d,s[f++],s[f++],s[f],s[f+1],n,r)||0;u=s[f++],d=s[f++];break;case av.A:var E=s[f++],O=s[f++],P=s[f++],L=s[f++],R=s[f++],N=s[f++];f+=1;var z=!!(1-s[f++]);o=Math.cos(R)*P+E,a=Math.sin(R)*L+O,A?(c=o,p=a):h+=am(u,d,o,a,n,r);var B=(n-E)*L/P+E;if(i){if(function(t,e,i,n,r,o,a,s,l){if(0===a)return!1;var h=Math.sqrt((s-=t)*s+(l-=e)*l);if(h-a>i||h+a<i)return!1;if(Math.abs(n-r)%a_<1e-4)return!0;if(o){var u=n;n=ag(r),r=ag(u)}else n=ag(n),r=ag(r);n>r&&(r+=a_);var d=Math.atan2(l,s);return d<0&&(d+=a_),d>=n&&d<=r||d+a_>=n&&d+a_<=r}(E,O,L,R,R+N,z,e,B,r))return!0}else h+=function(t,e,i,n,r,o,a,s){if((s-=e)>i||s<-i)return 0;var l=Math.sqrt(i*i-s*s);ab[0]=-l,ab[1]=l;var h=Math.abs(n-r);if(h<1e-4)return 0;if(h>=ay-1e-4){n=0,r=ay;var u=o?1:-1;return a>=ab[0]+t&&a<=ab[1]+t?u:0}if(n>r){var d=n;n=r,r=d}n<0&&(n+=ay,r+=ay);for(var c=0,p=0;p<2;p++){var f=ab[p];if(f+t>a){var g=Math.atan2(s,f),u=o?1:-1;g<0&&(g=ay+g),(g>=n&&g<=r||g+ay>=n&&g+ay<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(u=-u),c+=u)}}return c}(E,O,L,R,R+N,z,B,r);u=Math.cos(R+N)*P+E,d=Math.sin(R+N)*L+O;break;case av.R:c=u=s[f++],p=d=s[f++];var V=s[f++],F=s[f++];if(o=c+V,a=p+F,i){if(ap(c,p,o,p,e,n,r)||ap(o,p,o,a,e,n,r)||ap(o,a,c,a,e,n,r)||ap(c,a,c,p,e,n,r))return!0}else h+=am(o,p,o,a,n,r),h+=am(c,a,c,p,n,r);break;case av.Z:if(i){if(ap(u,d,c,p,e,n,r))return!0}else h+=am(u,d,c,p,n,r);u=c,d=p}}return i||1e-4>Math.abs(d-p)||(h+=am(u,d,c,p,n,r)||0),0!==h}var aS=tC({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},oF),ak={style:tC({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oH.style)},aC=nH.concat(["invisible","culling","z","z2","zlevel","parent"]);let aT=function(t){var e;function i(e){return t.call(this,e)||this}return et(i,t),i.prototype.update=function(){var e=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var r=this._decalEl=this._decalEl||new i;r.buildPath===i.prototype.buildPath&&(r.buildPath=function(t){e.buildPath(t,e.shape)}),r.silent=!0;var o=r.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<aC.length;++s)r[aC[s]]=this[aC[s]];r.__dirty|=1}else this._decalEl&&(this._decalEl=null)},i.prototype.getDecalElement=function(){return this._decalEl},i.prototype._init=function(e){var i=tP(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var r=0;r<i.length;r++){var o=i[r],a=e[o];"style"===o?this.style?tk(this.style,a):this.useStyle(a):"shape"===o?tk(this.shape,a):t.prototype.attrKV.call(this,o,a)}this.style||this.useStyle({})},i.prototype.getDefaultStyle=function(){return null},i.prototype.getDefaultShape=function(){return{}},i.prototype.canBeInsideText=function(){return this.hasFill()},i.prototype.getInsideTextFill=function(){var t=this.style.fill;if("none"!==t){if(tB(t)){var e=i9(t,0);return e>.5?nO:e>.2?"#eee":nP}else if(t)return nP}return nO},i.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(tB(e)){var i=this.__zr;if(!!(i&&i.isDarkMode())==.4>i9(t,0))return e}},i.prototype.buildPath=function(t,e,i){},i.prototype.pathUpdated=function(){this.__dirty&=-5},i.prototype.getUpdatedPathProxy=function(t){return this.path||this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},i.prototype.createPathProxy=function(){this.path=new ac(!1)},i.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0},i.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},i.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,i=!t;if(i){var n=!1;this.path||(n=!0,this.createPathProxy());var r=this.path;(n||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||i){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},i.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),r=this.style;if(t=i[0],e=i[1],n.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),aw(o,a/s,!0,t,e)))return!0}if(this.hasFill())return aw(o,0,!1,t,e)}return!1},i.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},i.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},i.prototype.animateShape=function(t){return this.animate("shape",t)},i.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},i.prototype.attrKV=function(e,i){"shape"===e?this.setShape(i):t.prototype.attrKV.call(this,e,i)},i.prototype.setShape=function(t,e){var i=this.shape;return i||(i=this.shape={}),"string"==typeof t?i[t]=e:tk(i,t),this.dirtyShape(),this},i.prototype.shapeChanged=function(){return!!(4&this.__dirty)},i.prototype.createStyle=function(t){return t3(aS,t)},i.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=tk({},this.shape))},i.prototype._applyStateObj=function(e,i,n,r,o,a){if(t.prototype._applyStateObj.call(this,e,i,n,r,o,a),1!==this.__inHover){var s,l=!(i&&r);if(i&&i.shape?o?r?s=i.shape:(s=tk({},n.shape),tk(s,i.shape)):(s=tk({},r?this.shape:n.shape),tk(s,i.shape)):l&&(s=n.shape),s)if(o){this.shape=tk({},this.shape);for(var h={},u=tP(s),d=0;d<u.length;d++){var c=u[d];"object"==typeof s[c]?this.shape[c]=s[c]:h[c]=s[c]}this._transitionState(e,{shape:h},a)}else this.shape=s,this.dirtyShape()}},i.prototype._mergeStates=function(e){for(var i,n=t.prototype._mergeStates.call(this,e),r=0;r<e.length;r++){var o=e[r];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},i.prototype.getAnimationStyleProps=function(){return ak},i.prototype.isZeroArea=function(){return!1},i.extend=function(t){var e=function(e){function i(i){var n=e.call(this,i)||this;return t.init&&t.init.call(n,i),n}return et(i,e),i.prototype.getDefaultStyle=function(){return tw(t.style)},i.prototype.getDefaultShape=function(){return tw(t.shape)},i}(i);for(var n in t)"function"==typeof t[n]&&(e.prototype[n]=t[n]);return e},i.initDefaultProps=void((e=i.prototype).type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=7),i}(oU);var aM=tC({strokeFirst:!0,font:to,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},aS),aD=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.hasStroke=function(){return oB(this.style)},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return t3(aM,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t,e,i;return this._rect||(this._rect=(e=oN((t=this.style).text),i=t.font,oz(t,nj(n$(i),e),nK(i),null))),this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(oU);aD.prototype.type="tspan";var aI=tC({x:0,y:0},oF),aA={style:tC({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oH.style)},aE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.createStyle=function(t){return t3(aI,t)},e.prototype._getSize=function(t){var e,i=this.style,n=i[t];if(null!=n)return n;var r=(e=i.image)&&"string"!=typeof e&&e.width&&e.height?i.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=i[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return aA},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ie(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(oU);aE.prototype.type="image";let aO=aE;var aP=Math.round;function aL(t,e,i){if(e){var n=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=n,t.x2=r,t.y1=o,t.y2=a;var s=i&&i.lineWidth;return s&&(aP(2*n)===aP(2*r)&&(t.x1=t.x2=aN(n,s,!0)),aP(2*o)===aP(2*a)&&(t.y1=t.y2=aN(o,s,!0))),t}}function aR(t,e,i){if(e){var n=e.x,r=e.y,o=e.width,a=e.height;t.x=n,t.y=r,t.width=o,t.height=a;var s=i&&i.lineWidth;return s&&(t.x=aN(n,s,!0),t.y=aN(r,s,!0),t.width=Math.max(aN(n+o,s,!1)-t.x,+(0!==o)),t.height=Math.max(aN(r+a,s,!1)-t.y,+(0!==a))),t}}function aN(t,e,i){if(!e)return t;var n=aP(2*t);return(n+aP(e))%2==0?n/2:(n+(i?1:-1))/2}var az=function(){this.x=0,this.y=0,this.width=0,this.height=0},aB={},aV=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new az},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var i,n,r,o,a,s,l,h,u,d,c,p,f,g,_,m=aR(aB,e,this.style);p=m.x,f=m.y,g=m.width,_=m.height,m.r=e.r,e=m}else p=e.x,f=e.y,g=e.width,_=e.height;e.r?(l=(i=e).x,h=i.y,u=i.width,d=i.height,c=i.r,u<0&&(l+=u,u=-u),d<0&&(h+=d,d=-d),"number"==typeof c?n=r=o=a=c:c instanceof Array?1===c.length?n=r=o=a=c[0]:2===c.length?(n=o=c[0],r=a=c[1]):3===c.length?(n=c[0],r=a=c[1],o=c[2]):(n=c[0],r=c[1],o=c[2],a=c[3]):n=r=o=a=0,n+r>u&&(s=n+r,n*=u/s,r*=u/s),o+a>u&&(s=o+a,o*=u/s,a*=u/s),r+o>d&&(s=r+o,r*=d/s,o*=d/s),n+a>d&&(s=n+a,n*=d/s,a*=d/s),t.moveTo(l+n,h),t.lineTo(l+u-r,h),0!==r&&t.arc(l+u-r,h+r,r,-Math.PI/2,0),t.lineTo(l+u,h+d-o),0!==o&&t.arc(l+u-o,h+d-o,o,0,Math.PI/2),t.lineTo(l+a,h+d),0!==a&&t.arc(l+a,h+d-a,a,Math.PI/2,Math.PI),t.lineTo(l,h+n),0!==n&&t.arc(l+n,h+n,n,Math.PI,1.5*Math.PI),t.closePath()):t.rect(p,f,g,_)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(aT);aV.prototype.type="rect";let aF=aV;var aH={fill:"#000"},aY={},a$={style:tC({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},oH.style)},aU=function(t){function e(e){var i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=aH,i.attr(e),i}return et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},e.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):t.prototype.getLocalTransform.call(this,e)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){var t;this._childCursor=0,aq(t=this.style),tI(t.rich,aq),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(e){t.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},e.prototype.removeSelfFromZr=function(e){t.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var t=new ie(0,0,0,0),e=this._children,i=[],n=null,r=0;r<e.length;r++){var o=e[r],a=o.getBoundingRect(),s=o.getLocalTransform(i);s?(t.copy(a),t.applyTransform(s),(n=n||t.clone()).union(t)):(n=n||a.clone()).union(a)}this._rect=n||t}return this._rect},e.prototype.setDefaultTextStyle=function(t){this._defaultStyle=t||aH},e.prototype.setTextContent=function(t){},e.prototype._mergeStyle=function(t,e){if(!e)return t;var i=e.rich,n=t.rich||i&&{};return tk(t,e),i&&n?(this._mergeRich(n,i),t.rich=n):n&&(t.rich=n),t},e.prototype._mergeRich=function(t,e){for(var i=tP(e),n=0;n<i.length;n++){var r=i[n];t[r]=t[r]||{},tk(t[r],e[r])}},e.prototype.getAnimationStyleProps=function(){return a$},e.prototype._getOrCreateChild=function(t){var e=this._children[this._childCursor];return e&&e instanceof t||(e=new t),this._children[this._childCursor++]=e,e.__zr=this.__zr,e.parent=this,e},e.prototype._updatePlainTexts=function(){var t=this.style,e=t.font||to,i=t.padding,n=this._defaultStyle,r=t.x||0,o=t.y||0,a=t.align||n.align||"left",s=t.verticalAlign||n.verticalAlign||"top";oP(aY,n.overflowRect,r,o,a,s),r=aY.baseX,o=aY.baseY;var l=function(t,e,i,n){var r,o=oN(t),a=e.overflow,s=e.padding,l=s?s[1]+s[3]:0,h=s?s[0]+s[2]:0,u=e.font,d=nK(u),c=tG(e.lineHeight,d),p="truncate"===e.lineOverflow,f=!1,g=e.width;null==g&&null!=i&&(g=i-l);var _=e.height;null==_&&null!=n&&(_=n-h);var m=(r=null!=g&&("break"===a||"breakAll"===a)?o?oO(o,e.font,g,"breakAll"===a,0).lines:[]:o?o.split("\n"):[]).length*c;if(null==_&&(_=m),m>_&&p){var v=Math.floor(_/c);f=f||r.length>v,m=(r=r.slice(0,v)).length*c}if(o&&"truncate"===a&&null!=g)for(var y=oC(g,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),b={},x=0;x<r.length;x++)oT(b,r[x],y),r[x]=b.textLine,f=f||b.isTruncated;for(var w=_,S=0,k=n$(u),x=0;x<r.length;x++)S=Math.max(nj(k,r[x]),S);null==g&&(g=S);var C=g;return w+=h,{lines:r,height:_,outerWidth:C+=l,outerHeight:w,lineHeight:c,calculatedLineHeight:d,contentWidth:S,contentHeight:m,width:g,isTruncated:f}}(aJ(t),t,aY.outerWidth,aY.outerHeight),h=a0(t),u=!!t.backgroundColor,d=l.outerHeight,c=l.outerWidth,p=l.lines,f=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=r,_=nX(o,l.contentHeight,s);if(h||i){var m=nq(r,c,a),v=nX(o,d,s);h&&this._renderBackground(t,t,m,v,c,d)}_+=f/2,i&&(g=aQ(r,a,i),"top"===s?_+=i[0]:"bottom"===s&&(_-=i[2]));for(var y=0,b=!1,x=!1,w=aK("fill"in t?t.fill:(x=!0,n.fill)),S=aX("stroke"in t?t.stroke:u||n.autoStroke&&!x?null:(y=2,b=!0,n.stroke)),k=t.textShadowBlur>0,C=0;C<p.length;C++){var T=this._getOrCreateChild(aD),M=T.createStyle();T.useStyle(M),M.text=p[C],M.x=g,M.y=_,a&&(M.textAlign=a),M.textBaseline="middle",M.opacity=t.opacity,M.strokeFirst=!0,k&&(M.shadowBlur=t.textShadowBlur||0,M.shadowColor=t.textShadowColor||"transparent",M.shadowOffsetX=t.textShadowOffsetX||0,M.shadowOffsetY=t.textShadowOffsetY||0),M.stroke=S,M.fill=w,S&&(M.lineWidth=t.lineWidth||y,M.lineDash=t.lineDash,M.lineDashOffset=t.lineDashOffset||0),M.font=e,aZ(M,t),_+=f,T.setBoundingRect(oz(M,l.contentWidth,l.calculatedLineHeight,b?0:null))}},e.prototype._updateRichTexts=function(){var t=this.style,e=this._defaultStyle,i=t.align||e.align,n=t.verticalAlign||e.verticalAlign,r=t.x||0,o=t.y||0;oP(aY,e.overflowRect,r,o,i,n),r=aY.baseX,o=aY.baseY;var a=function(t,e,i,n,r){var o,a=new oI,s=oN(t);if(!s)return a;var l=e.padding,h=l?l[1]+l[3]:0,u=l?l[0]+l[2]:0,d=e.width;null==d&&null!=i&&(d=i-h);var c=e.height;null==c&&null!=n&&(c=n-u);for(var p=e.overflow,f=("break"===p||"breakAll"===p)&&null!=d?{width:d,accumWidth:0,breakAll:"breakAll"===p}:null,g=ok.lastIndex=0;null!=(o=ok.exec(s));){var _=o.index;_>g&&oA(a,s.substring(g,_),e,f),oA(a,o[2],e,f,o[1]),g=ok.lastIndex}g<s.length&&oA(a,s.substring(g,s.length),e,f);var m=[],v=0,y=0,b="truncate"===p,x="truncate"===e.lineOverflow,w={};function S(t,e,i){t.width=e,t.lineHeight=i,v+=i,y=Math.max(y,e)}e:for(var k=0;k<a.lines.length;k++){for(var C=a.lines[k],T=0,M=0,D=0;D<C.tokens.length;D++){var I=C.tokens[D],A=I.styleName&&e.rich[I.styleName]||{},E=I.textPadding=A.padding,O=E?E[1]+E[3]:0,P=I.font=A.font||e.font;I.contentHeight=nK(P);var L=tG(A.height,I.contentHeight);if(I.innerHeight=L,E&&(L+=E[0]+E[2]),I.height=L,I.lineHeight=tZ(A.lineHeight,e.lineHeight,L),I.align=A&&A.align||r,I.verticalAlign=A&&A.verticalAlign||"middle",x&&null!=c&&v+I.lineHeight>c){var R=a.lines.length;D>0?(C.tokens=C.tokens.slice(0,D),S(C,M,T),a.lines=a.lines.slice(0,k+1)):a.lines=a.lines.slice(0,k),a.isTruncated=a.isTruncated||a.lines.length<R;break e}var N=A.width,z=null==N||"auto"===N;if("string"==typeof N&&"%"===N.charAt(N.length-1))I.percentWidth=N,m.push(I),I.contentWidth=nj(n$(P),I.text);else{if(z){var B=A.backgroundColor,V=B&&B.image;V&&oS(V=function(t){if("string"!=typeof t)return t;var e=ob.get(t);return e&&e.image}(V))&&(I.width=Math.max(I.width,V.width*L/V.height))}var F=b&&null!=d?d-M:null;null!=F&&F<I.width?!z||F<O?(I.text="",I.width=I.contentWidth=0):(!function(t,e,i,n,r,o){if(!i){t.text="",t.isTruncated=!1;return}var a=(e+"").split("\n");o=oC(i,n,r,o);for(var s=!1,l={},h=0,u=a.length;h<u;h++)oT(l,a[h],o),a[h]=l.textLine,s=s||l.isTruncated;t.text=a.join("\n"),t.isTruncated=s}(w,I.text,F-O,P,e.ellipsis,{minChar:e.truncateMinChar}),I.text=w.text,a.isTruncated=a.isTruncated||w.isTruncated,I.width=I.contentWidth=nj(n$(P),I.text)):I.contentWidth=nj(n$(P),I.text)}I.width+=O,M+=I.width,A&&(T=Math.max(T,I.lineHeight))}S(C,M,T)}a.outerWidth=a.width=tG(d,y),a.outerHeight=a.height=tG(c,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=h,a.outerHeight+=u;for(var k=0;k<m.length;k++){var I=m[k],H=I.percentWidth;I.width=parseInt(H,10)/100*a.width}return a}(aJ(t),t,aY.outerWidth,aY.outerHeight,i),s=a.width,l=a.outerWidth,h=a.outerHeight,u=t.padding;this.isTruncated=!!a.isTruncated;var d=nq(r,l,i),c=nX(o,h,n),p=d,f=c;u&&(p+=u[3],f+=u[0]);var g=p+s;a0(t)&&this._renderBackground(t,t,d,c,l,h);for(var _=!!t.backgroundColor,m=0;m<a.lines.length;m++){for(var v=a.lines[m],y=v.tokens,b=y.length,x=v.lineHeight,w=v.width,S=0,k=p,C=g,T=b-1,M=void 0;S<b&&(!(M=y[S]).align||"left"===M.align);)this._placeToken(M,t,x,f,k,"left",_),w-=M.width,k+=M.width,S++;for(;T>=0&&"right"===(M=y[T]).align;)this._placeToken(M,t,x,f,C,"right",_),w-=M.width,C-=M.width,T--;for(k+=(s-(k-p)-(g-C)-w)/2;S<=T;)M=y[S],this._placeToken(M,t,x,f,k+M.width/2,"center",_),k+=M.width,S++;f+=x}},e.prototype._placeToken=function(t,e,i,n,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,h=n+i/2;"top"===l?h=n+t.height/2:"bottom"===l&&(h=n+i-t.height/2),!t.isLineHolder&&a0(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,h-t.height/2,t.width,t.height);var u=!!s.backgroundColor,d=t.textPadding;d&&(r=aQ(r,o,d),h-=t.height/2-d[0]-t.innerHeight/2);var c=this._getOrCreateChild(aD),p=c.createStyle();c.useStyle(p);var f=this._defaultStyle,g=!1,_=0,m=!1,v=aK("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),y=aX("stroke"in s?s.stroke:"stroke"in e?e.stroke:u||a||f.autoStroke&&!g?null:(_=2,m=!0,f.stroke)),b=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=h,b&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||to,p.opacity=tZ(s.opacity,e.opacity,1),aZ(p,s),y&&(p.lineWidth=tZ(s.lineWidth,e.lineWidth,_),p.lineDash=tG(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),c.setBoundingRect(oz(p,t.contentWidth,t.contentHeight,m?0:null))},e.prototype._renderBackground=function(t,e,i,n,r,o){var a,s,l=t.backgroundColor,h=t.borderWidth,u=t.borderColor,d=l&&l.image,c=l&&!d,p=t.borderRadius,f=this;if(c||t.lineHeight||h&&u){(a=this._getOrCreateChild(aF)).useStyle(a.createStyle()),a.style.fill=null;var g=a.shape;g.x=i,g.y=n,g.width=r,g.height=o,g.r=p,a.dirtyShape()}if(c){var _=a.style;_.fill=l||null,_.fillOpacity=tG(t.fillOpacity,1)}else if(d){(s=this._getOrCreateChild(aO)).onload=function(){f.dirtyStyle()};var m=s.style;m.image=l.image,m.x=i,m.y=n,m.width=r,m.height=o}if(h&&u){var _=a.style;_.lineWidth=h,_.stroke=u,_.strokeOpacity=tG(t.strokeOpacity,1),_.lineDash=t.borderDash,_.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(_.strokeFirst=!0,_.lineWidth*=2)}var v=(a||s).style;v.shadowBlur=t.shadowBlur||0,v.shadowColor=t.shadowColor||"transparent",v.shadowOffsetX=t.shadowOffsetX||0,v.shadowOffsetY=t.shadowOffsetY||0,v.opacity=tZ(t.opacity,e.opacity,1)},e.makeFont=function(t){var e,i,n="";return(null!=(e=t).fontSize||e.fontFamily||e.fontWeight)&&(n=[t.fontStyle,t.fontWeight,"string"==typeof(i=t.fontSize)&&(-1!==i.indexOf("px")||-1!==i.indexOf("rem")||-1!==i.indexOf("em"))?i:isNaN(+i)?"12px":i+"px",t.fontFamily||"sans-serif"].join(" ")),n&&tQ(n)||t.textFont||t.font},e}(oU),aW={left:!0,right:1,center:1},aj={top:1,bottom:1,middle:1},aG=["fontStyle","fontWeight","fontSize","fontFamily"];function aZ(t,e){for(var i=0;i<aG.length;i++){var n=aG[i],r=e[n];null!=r&&(t[n]=r)}}function aq(t){if(t){t.font=aU.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||aW[e]?e:"left";var i=t.verticalAlign;"center"===i&&(i="middle"),t.verticalAlign=null==i||aj[i]?i:"top",t.padding&&(t.padding=tX(t.padding))}}function aX(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function aK(t){return null==t||"none"===t?null:t.image||t.colorStops?"#000":t}function aQ(t,e,i){return"right"===e?t-i[1]:"center"===e?t+i[3]/2-i[1]/2:t+i[3]}function aJ(t){var e=t.text;return null!=e&&(e+=""),e}function a0(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}let a1=aU;var a2=rX(),a5=function(t,e,i,n){if(n){var r=a2(n);r.dataIndex=i,r.dataType=e,r.seriesIndex=t,r.ssrType="chart","group"===n.type&&n.traverse(function(n){var r=a2(n);r.seriesIndex=t,r.dataIndex=i,r.dataType=e,r.ssrType="chart"})}},a3="undefined",a4="series",a6=t5(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),a7="original",a8="arrayRows",a9="objectRows",st="keyedColumns",se="typedArray",si="unknown",sn="column",sr=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"];let so=function(t){tI(sr,function(e){this[e]=tL(t[e],t)},this)};var sa=1,ss={},sl=rX(),sh=rX(),su=["emphasis","blur","select"],sd=["normal","emphasis","blur","select"],sc="highlight",sp="downplay",sf="select",sg="unselect",s_="toggleSelect",sm="selectchanged";function sv(t){return null!=t&&"none"!==t}function sy(t,e,i){t.onHoverStateChange&&(t.hoverState||0)!==i&&t.onHoverStateChange(e),t.hoverState=i}function sb(t){sy(t,"emphasis",2)}function sx(t){2===t.hoverState&&sy(t,"normal",0)}function sw(t){sy(t,"blur",1)}function sS(t){1===t.hoverState&&sy(t,"normal",0)}function sk(t){t.selected=!0}function sC(t){t.selected=!1}function sT(t,e,i){e(t,i),t.isGroup&&t.traverse(function(t){e(t,i)})}function sM(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function sD(t,e){var i,n,r,o,a,s=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,i){var n=e&&tT(e,"select")>=0,r=!1;if(t instanceof aT){var o=sl(t),a=n&&o.selectFill||o.normalFill,s=n&&o.selectStroke||o.normalStroke;if(sv(a)||sv(s)){var l=(i=i||{}).style||{};"inherit"===l.fill?(r=!0,i=tk({},i),(l=tk({},l)).fill=a):!sv(l.fill)&&sv(a)?(r=!0,i=tk({},i),(l=tk({},l)).fill=ne(a)):!sv(l.stroke)&&sv(s)&&(r||(i=tk({},i),l=tk({},l)),l.stroke=ne(s)),i.style=l}}if(i&&null==i.z2){r||(i=tk({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:10)}return i}(this,e,s);else if("blur"===t)return i=s,n=tT(this.currentStates,t)>=0,r=this.style.opacity,o=n?null:function(t,e,i,n){for(var r=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=r[s];o[s]=null==l?n&&n[s]:l}for(var a=0;a<t.animators.length;a++){var h=t.animators[a];h.__fromStateTransition&&0>h.__fromStateTransition.indexOf(i)&&"style"===h.targetName&&h.saveTo(o,e)}return o}(this,["opacity"],t,{opacity:1}),null==(a=(i=i||{}).style||{}).opacity&&(i=tk({},i),a=tk({opacity:n?r:.1*o.opacity},a),i.style=a),i;else if("select"===t){var l=s;if(l&&null==l.z2){l=tk({},l);var h=this.z2SelectLift;l.z2=this.z2+(null!=h?h:9)}return l}}return s}function sI(t){t.stateProxy=sD;var e=t.getTextContent(),i=t.getTextGuideLine();e&&(e.stateProxy=sD),i&&(i.stateProxy=sD)}function sA(t,e){sL(t,e)||t.__highByOuter||sT(t,sb)}function sE(t,e){sL(t,e)||t.__highByOuter||sT(t,sx)}function sO(t,e){t.__highByOuter|=1<<(e||0),sT(t,sb)}function sP(t,e){(t.__highByOuter&=~(1<<(e||0)))||sT(t,sx)}function sL(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function sR(t){var e=t.getModel(),i=[],n=[];e.eachComponent(function(e,r){var o=sh(r),a=r.mainType===a4?t.getViewOfSeriesModel(r):t.getViewOfComponentModel(r),s="series"===e;s||n.push(a),o.isBlured&&(a.group.traverse(function(t){sS(t)}),s&&i.push(r)),o.isBlured=!1}),tI(n,function(t){t&&t.toggleBlurSeries&&t.toggleBlurSeries(i,!1,e)})}function sN(t,e,i,n){var r=n.getModel();function o(t,e){for(var i=0;i<e.length;i++){var n=t.getItemGraphicEl(e[i]);n&&sT(n,sS)}}if((i=i||"coordinateSystem",null!=t)&&e&&"none"!==e){var a=r.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];r.eachSeries(function(t){var r=a===t,h=t.coordinateSystem;h&&h.master&&(h=h.master);var u=h&&s?h===s:r;if(!("series"===i&&!r||"coordinateSystem"===i&&!u||"series"===e&&r)){if(n.getViewOfSeriesModel(t).group.traverse(function(t){t.__highByOuter&&r&&"self"===e||sw(t)}),tD(e))o(t.getData(),e);else if(tH(e))for(var d=tP(e),c=0;c<d.length;c++)o(t.getData(d[c]),e[d[c]]);l.push(t),sh(t).isBlured=!0}}),r.eachComponent(function(t,e){if("series"!==t){var i=n.getViewOfComponentModel(e);i&&i.toggleBlurSeries&&i.toggleBlurSeries(l,!0,r)}})}}function sz(t,e,i){if(null!=t&&null!=e){var n=i.getModel().getComponent(t,e);if(n){sh(n).isBlured=!0;var r=i.getViewOfComponentModel(n);r&&r.focusBlurEnabled&&r.group.traverse(function(t){sw(t)})}}}function sB(t,e,i,n){var r,o={focusSelf:!1,dispatchers:null};if(null==t||"series"===t||null==e||null==i)return o;var a=n.getModel().getComponent(t,e);if(!a)return o;var s=n.getViewOfComponentModel(a);if(!s||!s.findHighDownDispatchers)return o;for(var l=s.findHighDownDispatchers(i),h=0;h<l.length;h++)if("self"===a2(l[h]).focus){r=!0;break}return{focusSelf:r,dispatchers:l}}function sV(t){tI(t.getAllData(),function(e){var i=e.data,n=e.type;i.eachItemGraphicEl(function(e,i){t.isSelected(i,n)?sT(e,sk):sT(e,sC)})})}function sF(t,e,i){var n,r,o,a;sW(t,!0),sT(t,sI),n=t,r=e,o=i,a=a2(n),null!=r?(a.focus=r,a.blurScope=o):a.focus&&(a.focus=null)}function sH(t,e,i,n){n?sW(t,!1):sF(t,e,i)}var sY=["emphasis","blur","select"],s$={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function sU(t,e,i,n){i=i||"itemStyle";for(var r=0;r<sY.length;r++){var o=sY[r],a=e.getModel([o,i]);t.ensureState(o).style=n?n(a):a[s$[i]]()}}function sW(t,e){var i=!1===e;t.highDownSilentOnTouch&&(t.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!i||t.__highDownDispatcher)&&(t.__highByOuter=t.__highByOuter||0,t.__highDownDispatcher=!i)}function sj(t){return!!(t&&t.__highDownDispatcher)}function sG(t){var e=t.type;return e===sf||e===sg||e===s_}function sZ(t){var e=t.type;return e===sc||e===sp}var sq={};function sX(t,e,i){var n,r=t.labelFetcher,o=t.labelDataIndex,a=t.labelDimIndex,s=e.normal;r&&(n=r.getFormattedLabel(o,"normal",null,a,s&&s.get("formatter"),null!=i?{interpolatedValue:i}:null)),null==n&&(n=tz(t.defaultText)?t.defaultText(o,t,i):t.defaultText);for(var l={normal:n},h=0;h<su.length;h++){var u=su[h],d=e[u];l[u]=tG(r?r.getFormattedLabel(o,u,null,a,d&&d.get("formatter")):null,n)}return l}function sK(t,e,i,n){i=i||sq;for(var r=t instanceof a1,o=!1,a=0;a<sd.length;a++){var s=e[sd[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=r?t:t.getTextContent();if(o){!r&&(l||(l=new a1,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var h=sX(i,e),u=e.normal,d=!!u.getShallow("show"),c=sJ(u,n&&n.normal,i,!1,!r);c.text=h.normal,r||t.setTextConfig(s0(u,i,!1));for(var a=0;a<su.length;a++){var p=su[a],s=e[p];if(s){var f=l.ensureState(p),g=!!tG(s.getShallow("show"),d);g!==d&&(f.ignore=!g),f.style=sJ(s,n&&n[p],i,!0,!r),f.style.text=h[p],r||(t.ensureState(p).textConfig=s0(s,i,!0))}}l.silent=!!u.getShallow("silent"),null!=l.style.x&&(c.x=l.style.x),null!=l.style.y&&(c.y=l.style.y),l.ignore=!d,l.useStyle(c),l.dirty(),i.enableTextSetter&&(s4(l).setLabelText=function(t){var n=sX(i,e,t);!function(t,e){for(var i=0;i<su.length;i++){var n=su[i],r=e[n],o=t.ensureState(n);o.style=o.style||{},o.style.text=r}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}(l,n)})}else l&&(l.ignore=!0);t.dirty()}function sQ(t,e){e=e||"label";for(var i={normal:t.getModel(e)},n=0;n<su.length;n++){var r=su[n];i[r]=t.getModel([r,e])}return i}function sJ(t,e,i,n,r){var o={};return function(t,e,i,n,r){i=i||sq;var o,a=e.ecModel,s=a&&a.option.textStyle,l=function(t){for(var e;t&&t!==t.ecModel;){var i=(t.option||sq).rich;if(i){e=e||{};for(var n=tP(i),r=0;r<n.length;r++)e[n[r]]=1}t=t.parentModel}return e}(e);if(l){o={};var h="richInheritPlainLabel",u=tG(e.get(h),a?a.get(h):void 0);for(var d in l)if(l.hasOwnProperty(d)){var c=e.getModel(["rich",d]);s3(o[d]={},c,s,e,u,i,n,r,!1,!0)}}o&&(t.rich=o);var p=e.get("overflow");p&&(t.overflow=p);var f=e.get("lineOverflow");f&&(t.lineOverflow=f);var g=e.get("minMargin");if(null!=g)t.margin=[g=tF(g)?g/2:0,g,g,g],t.__marginType=s6.minMargin;else{var _=e.get("textMargin");null!=_&&(t.margin=tX(_),t.__marginType=s6.textMargin)}s3(t,e,s,null,null,i,n,r,!0,!1)}(o,t,i,n,r),e&&tk(o,e),o}function s0(t,e,i){e=e||{};var n,r={},o=t.getShallow("rotate"),a=tG(t.getShallow("distance"),i?null:5),s=t.getShallow("offset");return"outside"===(n=t.getShallow("position")||(i?null:"inside"))&&(n=e.defaultOutsidePosition||"top"),null!=n&&(r.position=n),null!=s&&(r.offset=s),null!=o&&(r.rotation=o*=Math.PI/180),null!=a&&(r.distance=a),r.outsideFill="inherit"===t.get("color")?e.inheritColor||null:"auto",null!=e.autoOverflowArea&&(r.autoOverflowArea=e.autoOverflowArea),null!=e.layoutRect&&(r.layoutRect=e.layoutRect),r}var s1=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],s2=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],s5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function s3(t,e,i,n,r,o,a,s,l,h){i=!a&&i||sq;var u=o&&o.inheritColor,d=e.getShallow("color"),c=e.getShallow("textBorderColor"),p=tG(e.getShallow("opacity"),i.opacity);("inherit"===d||"auto"===d)&&(d=u||null),("inherit"===c||"auto"===c)&&(c=u||null),s||(d=d||i.color,c=c||i.textBorderColor),null!=d&&(t.fill=d),null!=c&&(t.stroke=c);var f=tG(e.getShallow("textBorderWidth"),i.textBorderWidth);null!=f&&(t.lineWidth=f);var g=tG(e.getShallow("textBorderType"),i.textBorderType);null!=g&&(t.lineDash=g);var _=tG(e.getShallow("textBorderDashOffset"),i.textBorderDashOffset);null!=_&&(t.lineDashOffset=_),a||null!=p||h||(p=o&&o.defaultOpacity),null!=p&&(t.opacity=p),a||s||null!=t.fill||!o.inheritColor||(t.fill=o.inheritColor);for(var m=0;m<s1.length;m++){var v=s1[m],y=!1!==r&&n?tZ(e.getShallow(v),n.getShallow(v),i[v]):tG(e.getShallow(v),i[v]);null!=y&&(t[v]=y)}for(var m=0;m<s2.length;m++){var v=s2[m],y=e.getShallow(v);null!=y&&(t[v]=y)}if(null==t.verticalAlign){var b=e.getShallow("baseline");null!=b&&(t.verticalAlign=b)}if(!l||!o.disableBox){for(var m=0;m<s5.length;m++){var v=s5[m],y=e.getShallow(v);null!=y&&(t[v]=y)}var x=e.getShallow("borderType");null!=x&&(t.borderDash=x),("auto"===t.backgroundColor||"inherit"===t.backgroundColor)&&u&&(t.backgroundColor=u),("auto"===t.borderColor||"inherit"===t.borderColor)&&u&&(t.borderColor=u)}}var s4=rX(),s6={minMargin:1,textMargin:2},s7=["textStyle","color"],s8=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],s9=new a1,lt=function(){function t(){}return t.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(s7):null)},t.prototype.getFont=function(){var t,e,i;return t={fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},i=(e=this.ecModel)&&e.getModel("textStyle"),tQ([t.fontStyle||i&&i.getShallow("fontStyle")||"",t.fontWeight||i&&i.getShallow("fontWeight")||"",(t.fontSize||i&&i.getShallow("fontSize")||12)+"px",t.fontFamily||i&&i.getShallow("fontFamily")||"sans-serif"].join(" "))},t.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},i=0;i<s8.length;i++)e[s8[i]]=this.getShallow(s8[i]);return s9.useStyle(e),s9.update(),s9.getBoundingRect()},t}(),le=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],li=om(le),ln=function(){function t(){}return t.prototype.getLineStyle=function(t){return li(this,t)},t}(),lr=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],lo=om(lr),la=function(){function t(){}return t.prototype.getItemStyle=function(t,e){return lo(this,t,e)},t}(),ls=function(){function t(t,e,i){this.parentModel=e,this.ecModel=i,this.option=t}return t.prototype.init=function(t,e,i){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r]},t.prototype.mergeOption=function(t,e){tS(this.option,t,!0)},t.prototype.get=function(t,e){return null==t?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},t.prototype.getShallow=function(t,e){var i=this.option,n=null==i?i:i[t];if(null==n&&!e){var r=this.parentModel;r&&(n=r.getShallow(t))}return n},t.prototype.getModel=function(e,i){var n=null!=e,r=n?this.parsePath(e):null;return new t(n?this._doGet(r):this.option,i=i||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(r)),this.ecModel)},t.prototype.isEmpty=function(){return null==this.option},t.prototype.restoreData=function(){},t.prototype.clone=function(){return new this.constructor(tw(this.option))},t.prototype.parsePath=function(t){return"string"==typeof t?t.split("."):t},t.prototype.resolveParentPath=function(t){return t},t.prototype.isAnimationEnabled=function(){if(!tr.node&&this.option){if(null!=this.option.animation)return!!this.option.animation;else if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(t,e){var i=this.option;if(!t)return i;for(var n=0;n<t.length&&(!t[n]||null!=(i=i&&"object"==typeof i?i[t[n]]:null));n++);return null==i&&e&&(i=e._doGet(this.resolveParentPath(t),e.parentModel)),i},t}();od(ls),u=["__\0is_clz",op++].join("_"),ls.prototype[u]=!0,ls.isInstance=function(t){return!!(t&&t[u])},tM(ls,ln),tM(ls,la),tM(ls,oy),tM(ls,lt);var ll=Math.round(10*Math.random());function lh(t){return[t||"",ll++].join("_")}function lu(t,e){return tS(tS({},t,!0),e,!0)}var ld={},lc={},lp=tr.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||"EN").toUpperCase().indexOf("ZH")>-1?"ZH":"EN";function lf(t,e){lc[t=t.toUpperCase()]=new ls(e),ld[t]=e}function lg(){return null}function l_(t,e){var i=lg(),n=e.breakOption,r=e.breakParsed;return!r&&i&&(r=i.parseAxisBreakOption(n,t)),r}function lm(t){var e=t.brk;return e?e.breaks:[]}function lv(t){var e=t.brk;return!!e&&e.hasBreaks()}lf("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),lf("ZH",{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var ly={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},lb={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},lx="{yyyy}-{MM}-{dd}",lw={year:"{yyyy}",month:"{yyyy}-{MM}",day:lx,hour:lx+" "+lb.hour,minute:lx+" "+lb.minute,second:lx+" "+lb.second,millisecond:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},lS=["year","month","day","hour","minute","second","millisecond"],lk=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function lC(t,e){return t+="","0000".substr(0,e-t.length)+t}function lT(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 lM(t,e,i,n){var r=rE(t),o=r[lA(i)](),a=r[lE(i)]()+1,s=Math.floor((a-1)/3)+1,l=r[lO(i)](),h=r["get"+(i?"UTC":"")+"Day"](),u=r[lP(i)](),d=(u-1)%12+1,c=r[lL(i)](),p=r[lR(i)](),f=r[lN(i)](),g=u>=12?"pm":"am",_=g.toUpperCase(),m=(n instanceof ls?n:lc[n||lp]||lc.EN).getModel("time"),v=m.get("month"),y=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,_+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,lC(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,lC(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,lC(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[h]).replace(/{ee}/g,x[h]).replace(/{e}/g,h+"").replace(/{HH}/g,lC(u,2)).replace(/{H}/g,u+"").replace(/{hh}/g,lC(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,lC(c,2)).replace(/{m}/g,c+"").replace(/{ss}/g,lC(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,lC(f,3)).replace(/{S}/g,f+"")}function lD(t,e){var i=rE(t),n=i[lE(e)]()+1,r=i[lO(e)](),o=i[lP(e)](),a=i[lL(e)](),s=i[lR(e)](),l=0===i[lN(e)](),h=l&&0===s,u=h&&0===a,d=u&&0===o,c=d&&1===r;if(c&&1===n)return"year";if(c)return"month";if(d)return"day";if(u)return"hour";if(h)return"minute";else if(l)return"second";else return"millisecond"}function lI(t,e,i){switch(e){case"year":t[lz(i)](0);case"month":t[lB(i)](1);case"day":t[lV(i)](0);case"hour":t[lF(i)](0);case"minute":t[lH(i)](0);case"second":t[lY(i)](0)}return t}function lA(t){return t?"getUTCFullYear":"getFullYear"}function lE(t){return t?"getUTCMonth":"getMonth"}function lO(t){return t?"getUTCDate":"getDate"}function lP(t){return t?"getUTCHours":"getHours"}function lL(t){return t?"getUTCMinutes":"getMinutes"}function lR(t){return t?"getUTCSeconds":"getSeconds"}function lN(t){return t?"getUTCMilliseconds":"getMilliseconds"}function lz(t){return t?"setUTCMonth":"setMonth"}function lB(t){return t?"setUTCDate":"setDate"}function lV(t){return t?"setUTCHours":"setHours"}function lF(t){return t?"setUTCMinutes":"setMinutes"}function lH(t){return t?"setUTCSeconds":"setSeconds"}function lY(t){return t?"setUTCMilliseconds":"setMilliseconds"}function l$(t){if(isNaN(rR(t)))return tB(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function lU(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}function lW(t,e,i){function n(t){return t&&tQ(t)?t:"-"}var r="time"===e,o=t instanceof Date;if(r||o){var a=r?rE(t):t;if(!isNaN(+a))return lM(a,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",i);if(o)return"-"}if("ordinal"===e)return tV(t)?n(t):tF(t)&&rB(t)?t+"":"-";var s=rR(t);return rB(s)?l$(s):tV(t)?n(t):"boolean"==typeof t?t+"":"-"}var lj=["a","b","c","d","e","f","g"],lG=function(t,e){return"{"+t+(null==e?"":e)+"}"};function lZ(t,e,i){tN(e)||(e=[e]);var n=e.length;if(!n)return"";for(var r=e[0].$vars||[],o=0;o<r.length;o++){var a=lj[o];t=t.replace(lG(a),lG(a,0))}for(var s=0;s<n;s++)for(var l=0;l<r.length;l++){var h=e[s][r[l]];t=t.replace(lG(lj[l],s),i?ew(h):h)}return t}function lq(t,e){return e=e||"transparent",tB(t)?t:tH(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}var lX={},lK={},lQ=function(){function t(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return t.prototype.create=function(t,e){function i(i,n){var r=[];return tI(i,function(i,n){var o=i.create(t,e);r=r.concat(o||[])}),r}this._nonSeriesBoxMasterList=i(lX,!0),this._normalMasterList=i(lK,!1)},t.prototype.update=function(t,e){tI(this._normalMasterList,function(i){i.update&&i.update(t,e)})},t.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},t.register=function(t,e){if("matrix"===t||"calendar"===t){lX[t]=e;return}lK[t]=e},t.get=function(t){return lK[t]||lX[t]},t}(),lJ=t5();function l0(t){var e=t.getShallow("coord",!0),i=1;if(null==e){var n=lJ.get(t.type);n&&n.getCoord2&&(i=2,e=n.getCoord2(t))}return{coord:e,from:i}}var l1=["left","right","top","bottom","width","height"],l2=[["width","left","right"],["height","top","bottom"]];function l5(t,e,i,n,r){var o=0,a=0;null==n&&(n=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,h){var u,d,c=l.getBoundingRect(),p=e.childAt(h+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=c.width+(f?-f.x+c.x:0);(u=o+g)>n||l.newline?(o=0,u=g,a+=s+i,s=c.height):s=Math.max(s,c.height)}else{var _=c.height+(f?-f.y+c.y:0);(d=a+_)>r||l.newline?(o+=s+i,a=0,d=_,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=u+i:a=d+i)})}function l3(t,e,i){i=tX(i||0);var n=e.width,r=e.height,o=rb(t.left,n),a=rb(t.top,r),s=rb(t.right,n),l=rb(t.bottom,r),h=rb(t.width,n),u=rb(t.height,r),d=i[2]+i[0],c=i[1]+i[3],p=t.aspect;switch(isNaN(h)&&(h=n-s-c-o),isNaN(u)&&(u=r-l-d-a),null!=p&&(isNaN(h)&&isNaN(u)&&(p>n/r?h=.8*n:u=.8*r),isNaN(h)&&(h=p*u),isNaN(u)&&(u=h/p)),isNaN(o)&&(o=n-s-h-c),isNaN(a)&&(a=r-l-u-d),t.left||t.right){case"center":o=n/2-h/2-i[3];break;case"right":o=n-h-c}switch(t.top||t.bottom){case"middle":case"center":a=r/2-u/2-i[0];break;case"bottom":a=r-u-d}o=o||0,a=a||0,isNaN(h)&&(h=n-c-o-(s||0)),isNaN(u)&&(u=r-d-a-(l||0));var f=new ie((e.x||0)+o+i[3],(e.y||0)+a+i[0],h,u);return f.margin=i,f}tR(l5,"vertical"),tR(l5,"horizontal");function l4(t,e,i){var n,r,o,a,s=t.boxCoordinateSystem;if(s){var l=l0(t),h=l.coord,u=l.from;if(s.dataToLayout){o=1,a=u;var d=s.dataToLayout(h);n=d.contentRect||d.rect}else i&&i.enableLayoutOnlyByCenter&&s.dataToPoint&&(o=2,a=u,r=s.dataToPoint(h))}return null==o&&(o=1),1===o&&(n||(n={x:0,y:0,width:e.getWidth(),height:e.getHeight()}),r=[n.x+n.width/2,n.y+n.height/2]),{type:o,refContainer:n,refPoint:r,boxCoordFrom:a}}function l6(t){var e=t.layoutMode||t.constructor.layoutMode;return tH(e)?e:e?{type:e}:null}function l7(t,e,i){var n=i&&i.ignoreSize;tN(n)||(n=[n,n]);var r=a(l2[0],0),o=a(l2[1],1);function a(i,r){var o={},a=0,l={},h=0;if(tI(i,function(e){l[e]=t[e]}),tI(i,function(t){t6(e,t)&&(o[t]=l[t]=e[t]),s(o,t)&&a++,s(l,t)&&h++}),n[r])return s(e,i[1])?l[i[2]]=null:s(e,i[2])&&(l[i[1]]=null),l;if(2===h||!a)return l;if(a>=2)return o;for(var u=0;u<i.length;u++){var d=i[u];if(!t6(o,d)&&t6(t,d)){o[d]=t[d];break}}return o}function s(t,e){return null!=t[e]&&"auto"!==t[e]}function l(t,e,i){tI(t,function(t){e[t]=i[t]})}l(l2[0],t,r),l(l2[1],t,o)}function l8(t){var e,i;return e={},(i=t)&&e&&tI(l1,function(t){t6(i,t)&&(e[t]=i[t])}),e}var l9=rX(),ht=function(t){var e;function i(e,i,n){var r=t.call(this,e,i,n)||this;return r.uid=lh("ec_cpt_model"),r}return ti(i,t),i.prototype.init=function(t,e,i){this.mergeDefaultAndTheme(t,i)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=l6(this),n=i?l8(t):{};tS(t,e.getTheme().get(this.mainType)),tS(t,this.getDefaultOption()),i&&l7(t,n,i)},i.prototype.mergeOption=function(t,e){tS(this.option,t,!0);var i=l6(this);i&&l7(this.option,t,i)},i.prototype.optionUpdated=function(t,e){},i.prototype.getDefaultOption=function(){var t=this.constructor;if(!(t&&t[oh]))return t.defaultOption;var e=l9(this);if(!e.defaultOption){for(var i=[],n=t;n;){var r=n.prototype.defaultOption;r&&i.push(r),n=n.superClass}for(var o={},a=i.length-1;a>=0;a--)o=tS(o,i[a],!0);e.defaultOption=o}return e.defaultOption},i.prototype.getReferringComponents=function(t,e){return r2(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)},e)},i.prototype.getBoxLayoutParams=function(){return{left:this.getShallow("left",!1),top:this.getShallow("top",!1),right:this.getShallow("right",!1),bottom:this.getShallow("bottom",!1),width:this.getShallow("width",!1),height:this.getShallow("height",!1)}},i.prototype.getZLevelKey=function(){return""},i.prototype.setZLevel=function(t){this.option.zlevel=t},i.protoInitialize=void((e=i.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0),i}(ls);oc(ht,ls),o_(ht),d={},ht.registerSubTypeDefaulter=function(t,e){d[ou(t).main]=e},ht.determineSubType=function(t,e){var i=e.type;if(!i){var n=ou(t).main;ht.hasSubTypes(t)&&d[n]&&(i=d[n](e))}return i};var he=function(t){var e=[];return tI(ht.getClassesByMainType(t),function(t){e=e.concat(t.dependencies||t.prototype.dependencies||[])}),e=tA(e,function(t){return ou(t).main}),"dataset"!==t&&0>=tT(e,"dataset")&&e.unshift("dataset"),e};function hi(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}ht.topologicalTravel=function(t,e,i,n){if(t.length){var r,o,a,s=(o={},a=[],tI(r=e,function(t){var e,i,n,s=hi(o,t),l=(e=s.originalDeps=he(t),i=r,n=[],tI(e,function(t){tT(i,t)>=0&&n.push(t)}),n);s.entryCount=l.length,0===s.entryCount&&a.push(t),tI(l,function(e){0>tT(s.predecessor,e)&&s.predecessor.push(e);var i=hi(o,e);0>tT(i.successor,e)&&i.successor.push(t)})}),{graph:o,noEntryList:a}),l=s.graph,h=s.noEntryList,u={};for(tI(t,function(t){u[t]=!0});h.length;){var d=h.pop(),c=l[d],p=!!u[d];p&&(i.call(n,d,c.originalDeps.slice()),delete u[d]),tI(c.successor,p?g:f)}tI(u,function(){throw Error("")})}function f(t){l[t].entryCount--,0===l[t].entryCount&&h.push(t)}function g(t){u[t]=!0,f(t)}};var hn={color:{},darkColor:{},size:{}},hr=hn.color={theme:["#5070dd","#b6d634","#505372","#ff994d","#0ca8df","#ffd10a","#fb628b","#785db0","#3fbe95"],neutral00:"#fff",neutral05:"#f4f7fd",neutral10:"#e8ebf0",neutral15:"#dbdee4",neutral20:"#cfd2d7",neutral25:"#c3c5cb",neutral30:"#b7b9be",neutral35:"#aaacb2",neutral40:"#9ea0a5",neutral45:"#929399",neutral50:"#86878c",neutral55:"#797b7f",neutral60:"#6d6e73",neutral65:"#616266",neutral70:"#54555a",neutral75:"#48494d",neutral80:"#3c3c41",neutral85:"#303034",neutral90:"#232328",neutral95:"#17171b",neutral99:"#000",accent05:"#eff1f9",accent10:"#e0e4f2",accent15:"#d0d6ec",accent20:"#c0c9e6",accent25:"#b1bbdf",accent30:"#a1aed9",accent35:"#91a0d3",accent40:"#8292cc",accent45:"#7285c6",accent50:"#6578ba",accent55:"#5c6da9",accent60:"#536298",accent65:"#4a5787",accent70:"#404c76",accent75:"#374165",accent80:"#2e3654",accent85:"#252b43",accent90:"#1b2032",accent95:"#121521",transparent:"rgba(0,0,0,0)",highlight:"rgba(255,231,130,0.8)"};for(var ho in tk(hr,{primary:hr.neutral80,secondary:hr.neutral70,tertiary:hr.neutral60,quaternary:hr.neutral50,disabled:hr.neutral20,border:hr.neutral30,borderTint:hr.neutral20,borderShade:hr.neutral40,background:hr.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:hr.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:hr.neutral70,axisLineTint:hr.neutral40,axisTick:hr.neutral70,axisTickMinor:hr.neutral60,axisLabel:hr.neutral70,axisSplitLine:hr.neutral15,axisMinorSplitLine:hr.neutral05}),hr)if(hr.hasOwnProperty(ho)){var ha=hr[ho];"theme"===ho?hn.darkColor.theme=hr.theme.slice():"highlight"===ho?hn.darkColor.highlight="rgba(255,231,130,0.4)":0===ho.indexOf("accent")?hn.darkColor[ho]=i7(ha,null,function(t){return .5*t},function(t){return Math.min(1,1.3-t)}):hn.darkColor[ho]=i7(ha,null,function(t){return .9*t},function(t){return 1-Math.pow(t,1.5)})}hn.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var hs="";"u">typeof navigator&&(hs=navigator.platform||"");var hl="rgba(0, 0, 0, 0.2)",hh=hn.color.theme["0"],hu=i7(hh,null,null,.9);let hd={darkMode:"auto",colorBy:"series",color:hn.color.theme,gradientColor:[hu,hh],aria:{decal:{decals:[{color:hl,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:hl,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:hl,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:hl,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:hl,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:hl,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hs.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var hc=rX();function hp(t,e,i){var n,r,o={},a=hf(e);if(!a||!t)return o;var s=[],l=[],h=hc(e.ecModel).datasetMap,u=a.uid+"_"+i.seriesLayoutBy;tI(t=t.slice(),function(e,i){var a=tH(e)?e:t[i]={name:e};"ordinal"===a.type&&null==n&&(n=i,r=p(a)),o[a.name]=[]});var d=h.get(u)||h.set(u,{categoryWayDim:r,valueWayDim:0});function c(t,e,i){for(var n=0;n<i;n++)t.push(e+n)}function p(t){var e=t.dimsDef;return e?e.length:1}return tI(t,function(t,e){var i=t.name,r=p(t);if(null==n){var a=d.valueWayDim;c(o[i],a,r),c(l,a,r),d.valueWayDim+=r}else if(n===e)c(o[i],0,r),c(s,0,r);else{var a=d.categoryWayDim;c(o[i],a,r),c(l,a,r),d.categoryWayDim+=r}}),s.length&&(o.itemName=s),l.length&&(o.seriesName=l),o}function hf(t){if(!t.get("data",!0))return r2(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},r0).models[0]}function hg(t,e){return function(t,e,i,n,r,o){var a,s,l;if(t$(t))return 3;if(n){var h=n[o];tH(h)?(s=h.name,l=h.type):tB(h)&&(s=h)}if(null!=l)return"ordinal"===l?1:3;if(e===a8)if("row"===i){for(var u=t[o],d=0;d<(u||[]).length&&d<5;d++)if(null!=(a=g(u[r+d])))return a}else for(var d=0;d<t.length&&d<5;d++){var c=t[r+d];if(c&&null!=(a=g(c[o])))return a}else if(e===a9){if(!s)return 3;for(var d=0;d<t.length&&d<5;d++){var p=t[d];if(p&&null!=(a=g(p[s])))return a}}else if(e===st){if(!s)return 3;var u=t[s];if(!u||t$(u))return 3;for(var d=0;d<u.length&&d<5;d++)if(null!=(a=g(u[d])))return a}else if(e===a7)for(var d=0;d<t.length&&d<5;d++){var p=t[d],f=r$(p);if(!tN(f))return 3;if(null!=(a=g(f[o])))return a}function g(t){var e=tB(t);return null!=t&&isFinite(Number(t))&&""!==t?e?2:3:e&&"-"!==t?1:void 0}return 3}(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}var h_=t5(),hm=rX();rX();var hv=function(){function t(){}return t.prototype.getColorFromPalette=function(t,e,i){return function(t,e,i,n,r,o,a){var s=e(o=o||t),l=s.paletteIdx||0,h=s.paletteNameMap=s.paletteNameMap||{};if(h.hasOwnProperty(r))return h[r];var u=null!=a&&n?function(t,e){for(var i=t.length,n=0;n<i;n++)if(t[n].length>e)return t[n];return t[i-1]}(n,a):i;if((u=u||i)&&u.length){var d=u[l];return r&&(h[r]=d),s.paletteIdx=(l+1)%u.length,d}}(this,hm,rF(this.get("color",!0)),this.get("colorLayer",!0),t,e,i)},t.prototype.clearColorPalette=function(){var t,e;t=this,(e=hm)(t).paletteIdx=0,e(t).paletteNameMap={}},t}(),hy="\0_ec_inner",hb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.init=function(t,e,i,n,r,o){n=n||{},this.option=null,this._theme=new ls(n),this._locale=new ls(r),this._optionManager=o},e.prototype.setOption=function(t,e,i){var n=hS(e);this._optionManager.setOption(t,i,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,hS(e))},e.prototype._resetOption=function(t,e){var i=!1,n=this._optionManager;if(!t||"recreate"===t){var r=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):m(this,r),i=!0}if(("timeline"===t||"media"===t)&&this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=n.getTimelineOption(this);o&&(i=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&tI(a,function(t){i=!0,this._mergeOption(t,e)},this)}return i},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var i=this.option,n=this._componentsMap,r=this._componentsCount,o=[],a=t5(),s=e&&e.replaceMergeMainTypeMap;hc(this).datasetMap=t5(),tI(t,function(t,e){null!=t&&(ht.hasClass(e)?e&&(o.push(e),a.set(e,!0)):i[e]=null==i[e]?tw(t):tS(i[e],t,!0))}),s&&s.each(function(t,e){ht.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),ht.topologicalTravel(o,ht.getAllClassMainTypes(),function(e){var o,a,l,h,u,d,c,p,f,_,m,v,y,b,x,w,S,k,C,T,M=function(t,e,i){var n=h_.get(e);if(!n)return i;var r=n(t);return r?i.concat(r):i}(this,e,rF(t[e])),D=n.get(e),I=D?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll",A=(y=D,b=M,x="normalMerge"===I,w="replaceMerge"===I,S="replaceAll"===I,y=y||[],b=(b||[]).slice(),k=t5(),tI(b,function(t,e){if(!tH(t)){b[e]=null;return}}),C=function(t,e,i){var n=[];if("replaceAll"===i)return n;for(var r=0;r<t.length;r++){var o=t[r];o&&null!=o.id&&e.set(o.id,r),n.push({existing:"replaceMerge"===i||rZ(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}(y,k,I),(x||w)&&(o=C,a=y,l=k,tI(h=b,function(t,e){if(t&&null!=t.id){var i=rW(t.id),n=l.get(i);if(null!=n){var r=o[n];tK(!r.newOption,'Duplicated option on id "'+i+'".'),r.newOption=t,r.existing=a[n],h[e]=null}}})),x&&(u=C,tI(d=b,function(t,e){if(t&&null!=t.name)for(var i=0;i<u.length;i++){var n=u[i].existing;if(!u[i].newOption&&n&&(null==n.id||null==t.id)&&!rZ(t)&&!rZ(n)&&rU("name",n,t)){u[i].newOption=t,d[e]=null;return}}})),x||w?(c=C,p=b,f=w,tI(p,function(t){if(t){for(var e,i=0;(e=c[i])&&(e.newOption||rZ(e.existing)||e.existing&&null!=t.id&&!rU("id",t,e.existing));)i++;e?(e.newOption=t,e.brandNew=f):c.push({newOption:t,brandNew:f,existing:null,keyInfo:null}),i++}})):S&&(_=C,tI(b,function(t){_.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})),m=C,v=t5(),tI(m,function(t){var e=t.existing;e&&v.set(e.id,t)}),tI(m,function(t){var e=t.newOption;tK(!e||null==e.id||!v.get(e.id)||v.get(e.id)===t,"id duplicates: "+(e&&e.id)),e&&null!=e.id&&v.set(e.id,t),t.keyInfo||(t.keyInfo={})}),tI(m,function(t,e){var i=t.existing,n=t.newOption,r=t.keyInfo;if(tH(n)){if(r.name=null!=n.name?rW(n.name):i?i.name:rV+e,i)r.id=rW(i.id);else if(null!=n.id)r.id=rW(n.id);else{var o=0;do r.id="\0"+r.name+"\0"+o++;while(v.get(r.id))}v.set(r.id,t)}}),C);tI(A,function(t){var i,n,r,o,a=t.newOption;tH(a)&&(t.keyInfo.mainType=e,t.keyInfo.subType=(i=e,n=a,r=t.existing,o=ht,n.type?n.type:r?r.subType:o.determineSubType(i,n)))}),i[e]=null,n.set(e,null),r.set(e,0);var E=[],O=[],P=0;tI(A,function(t,i){var n=t.existing,r=t.newOption;if(r){var o="series"===e,a=ht.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(T)return;T=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(r,this),n.optionUpdated(r,!1);else{var s=tk({componentIndex:i},t.keyInfo);tk(n=new a(r,this,this,s),s),t.brandNew&&(n.__requireNewView=!0),n.init(r,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(E.push(n.option),O.push(n),P++):(E.push(void 0),O.push(void 0))},this),i[e]=E,n.set(e,O),r.set(e,P),"series"===e&&g(this)},this),this._seriesIndices||g(this)},e.prototype.getOption=function(){var t=tw(this.option);return tI(t,function(e,i){if(ht.hasClass(i)){for(var n=rF(e),r=n.length,o=!1,a=r-1;a>=0;a--)n[a]&&!rZ(n[a])?o=!0:(n[a]=null,!o&&r--);n.length=r,t[i]=n}}),delete t[hy],t},e.prototype.setTheme=function(t){this._theme=new ls(t),this._resetOption("recreate",null)},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 i=this._componentsMap.get(t);if(i){var n=i[e||0];if(n)return n;if(null==e){for(var r=0;r<i.length;r++)if(i[r])return i[r]}}},e.prototype.queryComponents=function(t){var e,i=t.mainType;if(!i)return[];var n=t.index,r=t.id,o=t.name,a=this._componentsMap.get(i);return a&&a.length?(null!=n?(e=[],tI(rF(n),function(t){a[t]&&e.push(a[t])})):e=null!=r?hx("id",r,a):null!=o?hx("name",o,a):tO(a,function(t){return!!t}),hw(e,t)):[]},e.prototype.findComponents=function(t){var e,i,n,r,o,a=t.query,s=t.mainType,l=(e=a,i=s+"Index",n=s+"Id",r=s+"Name",e&&(null!=e[i]||null!=e[n]||null!=e[r])?{mainType:s,index:e[i],id:e[n],name:e[r]}:null);return o=hw(l?this.queryComponents(l):tO(this._componentsMap.get(s),function(t){return!!t}),t),t.filter?tO(o,t.filter):o},e.prototype.eachComponent=function(t,e,i){var n=this._componentsMap;if(tz(t))n.each(function(i,n){for(var r=0;i&&r<i.length;r++){var o=i[r];o&&t.call(e,n,o,o.componentIndex)}});else for(var r=tB(t)?n.get(t):tH(t)?this.findComponents(t):null,o=0;r&&o<r.length;o++){var a=r[o];a&&e.call(i,a,a.componentIndex)}},e.prototype.getSeriesByName=function(t){var e=rj(t,null);return tO(this._componentsMap.get("series"),function(t){return!!t&&null!=e&&t.name===e})},e.prototype.getSeriesByIndex=function(t){return this._componentsMap.get("series")[t]},e.prototype.getSeriesByType=function(t){return tO(this._componentsMap.get("series"),function(e){return!!e&&e.subType===t})},e.prototype.getSeries=function(){return tO(this._componentsMap.get("series"),function(t){return!!t})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(t,e){_(this),tI(this._seriesIndices,function(i){var n=this._componentsMap.get("series")[i];t.call(e,n,i)},this)},e.prototype.eachRawSeries=function(t,e){tI(this._componentsMap.get("series"),function(i){i&&t.call(e,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(t,e,i){_(this),tI(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];r.subType===t&&e.call(i,r,n)},this)},e.prototype.eachRawSeriesByType=function(t,e,i){return tI(this.getSeriesByType(t),e,i)},e.prototype.isSeriesFiltered=function(t){return _(this),null==this._seriesIndicesMap.get(t.componentIndex)},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(t,e){_(this);var i=[];tI(this._seriesIndices,function(n){var r=this._componentsMap.get("series")[n];t.call(e,r,n)&&i.push(n)},this),this._seriesIndices=i,this._seriesIndicesMap=t5(i)},e.prototype.restoreData=function(t){g(this);var e=this._componentsMap,i=[];e.each(function(t,e){ht.hasClass(e)&&i.push(e)}),ht.topologicalTravel(i,ht.getAllClassMainTypes(),function(i){tI(e.get(i),function(e){e&&("series"!==i||!function(t,e){if(e){var i=e.seriesIndex,n=e.seriesId,r=e.seriesName;return null!=i&&t.componentIndex!==i||null!=n&&t.id!==n||null!=r&&t.name!==r}}(e,t))&&e.restoreData()})})},e.internalField=void(g=function(t){var e=t._seriesIndices=[];tI(t._componentsMap.get("series"),function(t){t&&e.push(t.componentIndex)}),t._seriesIndicesMap=t5(e)},_=function(t){},m=function(t,e){t.option={},t.option[hy]=1,t._componentsMap=t5({series:[]}),t._componentsCount=t5();var i,n,r,o=e.aria;tH(o)&&null==o.enabled&&(o.enabled=!0),i=e,n=t._theme.option,r=i.color&&!i.colorLayer,tI(n,function(t,e){"colorLayer"===e&&r||"color"===e&&i.color||ht.hasClass(e)||("object"==typeof t?i[e]=i[e]?tS(i[e],t,!1):tw(t):null==i[e]&&(i[e]=t))}),tS(e,hd,!1),t._mergeOption(e,null)}),e}(ls);function hx(t,e,i){if(tN(e)){var n=t5();return tI(e,function(t){null!=t&&null!=rj(t,null)&&n.set(t,!0)}),tO(i,function(e){return e&&n.get(e[t])})}var r=rj(e,null);return tO(i,function(e){return e&&null!=r&&e[t]===r})}function hw(t,e){return e.hasOwnProperty("subType")?tO(t,function(t){return t&&t.subType===e.subType}):t}function hS(t){var e=t5();return t&&tI(rF(t.replaceMerge),function(t){e.set(t,!0)}),{replaceMergeMainTypeMap:e}}tM(hb,hv);var hk=/^(min|max)?(.+)$/,hC=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,i){t&&(tI(rF(t.series),function(t){t&&t.data&&t$(t.data)&&(t.data[tJ]=!0)}),tI(rF(t.dataset),function(t){t&&t.source&&t$(t.source)&&(t.source[tJ]=!0)})),t=tw(t);var n=this._optionBackup,r=function(t,e,i){var n,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,h=t.media,u=!!t.media,d=!!(l||s||a&&a.timeline);function c(t){tI(e,function(e){e(t,i)})}return a?(r=a).timeline||(r.timeline=s):((d||u)&&(t.options=t.media=null),r=t),u&&tN(h)&&tI(h,function(t){t&&t.option&&(t.query?o.push(t):n||(n=t))}),c(r),tI(l,function(t){return c(t)}),tI(o,function(t){return c(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:n,mediaList:o}}(t,e,!n);this._newBaseOption=r.baseOption,n?(r.timelineOptions.length&&(n.timelineOptions=r.timelineOptions),r.mediaList.length&&(n.mediaList=r.mediaList),r.mediaDefault&&(n.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],tw(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,i=this._timelineOptions;if(i.length){var n=t.getComponent("timeline");n&&(e=tw(i[n.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,i,n=this._api.getWidth(),r=this._api.getHeight(),o=this._mediaList,a=this._mediaDefault,s=[],l=[];if(!o.length&&!a)return l;for(var h=0,u=o.length;h<u;h++)(function(t,e,i){var n={width:e,height:i,aspectratio:e/i},r=!0;return tI(t,function(t,e){var i=e.match(hk);if(i&&i[1]&&i[2]){var o,a,s,l=i[1];o=n[i[2].toLowerCase()],a=t,("min"===(s=l)?o>=a:"max"===s?o<=a:o===a)||(r=!1)}}),r})(o[h].query,n,r)&&s.push(h);return!s.length&&a&&(s=[-1]),s.length&&(e=s,i=this._currentMediaIndices,e.join(",")!==i.join(","))&&(l=tA(s,function(t){return tw(-1===t?a.option:o[t].option)})),this._currentMediaIndices=s,l},t}(),hT=tH,hM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function hD(t){var e=t&&t.itemStyle;if(e)for(var i=0,n=hM.length;i<n;i++){var r=hM[i],o=e.normal,a=e.emphasis;o&&o[r]&&(t[r]=t[r]||{},t[r].normal?tS(t[r].normal,o[r]):t[r].normal=o[r],o[r]=null),a&&a[r]&&(t[r]=t[r]||{},t[r].emphasis?tS(t[r].emphasis,a[r]):t[r].emphasis=a[r],a[r]=null)}}function hI(t,e,i){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var n=t[e].normal,r=t[e].emphasis;n&&(i?(t[e].normal=t[e].emphasis=null,tC(t[e],n)):t[e]=n),r&&(t.emphasis=t.emphasis||{},t.emphasis[e]=r,r.focus&&(t.emphasis.focus=r.focus),r.blurScope&&(t.emphasis.blurScope=r.blurScope))}}function hA(t){hI(t,"itemStyle"),hI(t,"lineStyle"),hI(t,"areaStyle"),hI(t,"label"),hI(t,"labelLine"),hI(t,"upperLabel"),hI(t,"edgeLabel")}function hE(t,e){var i=hT(t)&&t[e],n=hT(i)&&i.textStyle;if(n)for(var r=0,o=rY.length;r<o;r++){var a=rY[r];n.hasOwnProperty(a)&&(i[a]=n[a])}}function hO(t){t&&(hA(t),hE(t,"label"),t.emphasis&&hE(t.emphasis,"label"))}function hP(t){return tN(t)?t:t?[t]:[]}function hL(t){return(tN(t)?t[0]:t)||{}}function hR(t){t&&tI(hN,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var hN=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],hz=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],hB=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function hV(t){var e=t&&t.itemStyle;if(e)for(var i=0;i<hB.length;i++){var n=hB[i][1],r=hB[i][0];null!=e[n]&&(e[r]=e[n])}}function hF(t){t&&"edge"===t.alignTo&&null!=t.margin&&null==t.edgeDistance&&(t.edgeDistance=t.margin)}function hH(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay)}function hY(t,e){var i;tI(hP(t.series),function(t){hT(t)&&function(t){if(hT(t)){hD(t),hA(t),hE(t,"label"),hE(t,"upperLabel"),hE(t,"edgeLabel"),t.emphasis&&(hE(t.emphasis,"label"),hE(t.emphasis,"upperLabel"),hE(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(hD(e),hO(e));var i=t.markLine;i&&(hD(i),hO(i));var n=t.markArea;n&&hO(n);var r=t.data;if("graph"===t.type){r=r||t.nodes;var o=t.links||t.edges;if(o&&!t$(o))for(var a=0;a<o.length;a++)hO(o[a]);tI(t.categories,function(t){hA(t)})}if(r&&!t$(r))for(var a=0;a<r.length;a++)hO(r[a]);if((e=t.markPoint)&&e.data)for(var s=e.data,a=0;a<s.length;a++)hO(s[a]);if((i=t.markLine)&&i.data)for(var l=i.data,a=0;a<l.length;a++)tN(l[a])?(hO(l[a][0]),hO(l[a][1])):hO(l[a]);"gauge"===t.type?(hE(t,"axisLabel"),hE(t,"title"),hE(t,"detail")):"treemap"===t.type?(hI(t.breadcrumb,"itemStyle"),tI(t.levels,function(t){hA(t)})):"tree"===t.type&&hA(t.leaves)}}(t)}),i=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"],e&&i.push("valueAxis","categoryAxis","logAxis","timeAxis"),tI(i,function(e){tI(hP(t[e]),function(t){t&&(hE(t,"axisLabel"),hE(t.axisPointer,"label"))})}),tI(hP(t.parallel),function(t){var e=t&&t.parallelAxisDefault;hE(e,"axisLabel"),hE(e&&e.axisPointer,"label")}),tI(hP(t.calendar),function(t){hI(t,"itemStyle"),hE(t,"dayLabel"),hE(t,"monthLabel"),hE(t,"yearLabel")}),tI(hP(t.radar),function(t){hE(t,"name"),t.name&&null==t.axisName&&(t.axisName=t.name,delete t.name),null!=t.nameGap&&null==t.axisNameGap&&(t.axisNameGap=t.nameGap,delete t.nameGap)}),tI(hP(t.geo),function(t){hT(t)&&(hO(t),tI(hP(t.regions),function(t){hO(t)}))}),tI(hP(t.timeline),function(t){hO(t),hI(t,"label"),hI(t,"itemStyle"),hI(t,"controlStyle",!0);var e=t.data;tN(e)&&tI(e,function(t){tH(t)&&(hI(t,"label"),hI(t,"itemStyle"))})}),tI(hP(t.toolbox),function(t){hI(t,"iconStyle"),tI(t.feature,function(t){hI(t,"iconStyle")})}),hE(hL(t.axisPointer),"label"),hE(hL(t.tooltip).axisPointer,"label"),t.series=rF(t.series),tI(t.series,function(t){if(tH(t)){var e=t.type;if("line"===e)null!=t.clipOverflow&&(t.clip=t.clipOverflow);else if("pie"===e||"gauge"===e){null!=t.clockWise&&(t.clockwise=t.clockWise),hF(t.label);var i=t.data;if(i&&!t$(i))for(var n=0;n<i.length;n++)hF(i[n]);null!=t.hoverOffset&&(t.emphasis=t.emphasis||{},t.emphasis.scaleSize=null)}else if("gauge"===e){var r=function(t,e){for(var i=e.split(","),n=t,r=0;r<i.length&&null!=(n=n&&n[i[r]]);r++);return n}(t,"pointer.color");null!=r&&function(t,e,i){for(var n,r=e.split(","),o=t,a=0;a<r.length-1;a++)null==o[n=r[a]]&&(o[n]={}),o=o[n];null==o[r[a]]&&(o[r[a]]=i)}(t,"itemStyle.color",r)}else if("bar"===e){hV(t),hV(t.backgroundStyle),hV(t.emphasis);var i=t.data;if(i&&!t$(i))for(var n=0;n<i.length;n++)"object"==typeof i[n]&&(hV(i[n]),hV(i[n]&&i[n].emphasis))}else if("sunburst"===e){var o=t.highlightPolicy;o&&(t.emphasis=t.emphasis||{},t.emphasis.focus||(t.emphasis.focus=o)),hH(t),function t(e,i){if(e)for(var n=0;n<e.length;n++)i(e[n]),e[n]&&t(e[n].children,i)}(t.data,hH)}else"graph"===e||"sankey"===e?t&&null!=t.focusNodeAdjacency&&(t.emphasis=t.emphasis||{},null==t.emphasis.focus&&(t.emphasis.focus="adjacency")):"map"===e&&(t.mapType&&!t.map&&(t.map=t.mapType),t.mapLocation&&tC(t,t.mapLocation));null!=t.hoverAnimation&&(t.emphasis=t.emphasis||{},t.emphasis&&null==t.emphasis.scale&&(t.emphasis.scale=t.hoverAnimation)),hR(t)}}),t.dataRange&&(t.visualMap=t.dataRange),tI(hz,function(e){var i=t[e];i&&(tN(i)||(i=[i]),tI(i,function(t){hR(t)}))})}var h$=os(function(t){var e=t5();t.eachSeries(function(t){var i=t.get("stack");if(i){var n=e.get(i)||e.set(i,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),e.each(function(t){var e;0!==t.length&&("seriesDesc"===(t[0].seriesModel.get("stackOrder")||"seriesAsc")&&t.reverse(),tI(t,function(e,i){e.data.setCalculationInfo("stackedOnSeries",i>0?t[i-1].seriesModel:null)}),tI(e=t,function(t,i){var n=[],r=[0/0,0/0],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(o,h,u){var d,c,p=a.get(t.stackedDimension,u);if(isNaN(p))return r;s?c=a.getRawIndex(u):d=a.get(t.stackedByDimension,u);for(var f=0/0,g=i-1;g>=0;g--){var _=e[g];if(s||(c=_.data.rawIndexOf(_.stackedByDimension,d)),c>=0){var m=_.data.getByRawIndex(_.stackResultDimension,c);if("all"===l||"positive"===l&&m>0||"negative"===l&&m<0||"samesign"===l&&p>=0&&m>0||"samesign"===l&&p<=0&&m<0){p=rT(p,m),f=m;break}}}return n[0]=p,n[1]=f,n})}))})}),hU=function(t){this.data=t.data||(t.sourceFormat===st?{}:[]),this.sourceFormat=t.sourceFormat||si,this.seriesLayoutBy=t.seriesLayoutBy||sn,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var i=0;i<e.length;i++){var n=e[i];null==n.type&&1===hg(this,i)&&(n.type="ordinal")}};function hW(t){return t instanceof hU}function hj(t,e,i){i=i||hZ(t);var n=e.seriesLayoutBy,r=function(t,e,i,n,r){if(!t)return{dimensionsDefine:hq(r),startIndex:a,dimensionsDetectedCount:o};if(e===a8){var o,a;"auto"===n||null==n?hX(function(t){null!=t&&"-"!==t&&(tB(t)?null==a&&(a=1):a=0)},i,t,10):a=tF(n)?n:+!!n,r||1!==a||(r=[],hX(function(t,e){r[e]=null!=t?t+"":""},i,t,1/0)),o=r?r.length:"row"===i?t.length:t[0]?t[0].length:null}else if(e===a9)r||(r=function(t){for(var e,i=0;i<t.length&&!(e=t[i++]););if(e)return tP(e)}(t));else if(e===st)r||(r=[],tI(t,function(t,e){r.push(e)}));else if(e===a7){var s=r$(t[0]);o=tN(s)&&s.length||1}return{startIndex:a,dimensionsDefine:hq(r),dimensionsDetectedCount:o}}(t,i,n,e.sourceHeader,e.dimensions);return new hU({data:t,sourceFormat:i,seriesLayoutBy:n,dimensionsDefine:r.dimensionsDefine,startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount,metaRawOption:tw(e)})}function hG(t){return new hU({data:t,sourceFormat:t$(t)?se:a7})}function hZ(t){var e=si;if(t$(t))e=se;else if(tN(t)){0===t.length&&(e=a8);for(var i=0,n=t.length;i<n;i++){var r=t[i];if(null!=r){if(tN(r)||t$(r)){e=a8;break}else if(tH(r)){e=a9;break}}}}else if(tH(t)){for(var o in t)if(t6(t,o)&&tD(t[o])){e=st;break}}return e}function hq(t){if(t){var e=t5();return tA(t,function(t,i){var n={name:(t=tH(t)?t:{name:t}).name,displayName:t.displayName,type:t.type};if(null==n.name)return n;n.name+="",null==n.displayName&&(n.displayName=n.name);var r=e.get(n.name);return r?n.name+="-"+r.count++:e.set(n.name,{count:1}),n})}}function hX(t,e,i,n){if("row"===e)for(var r=0;r<i.length&&r<n;r++)t(i[r]?i[r][0]:null,r);else for(var o=i[0]||[],r=0;r<o.length&&r<n;r++)t(o[r],r)}function hK(t){var e=t.sourceFormat;return e===a9||e===st}var hQ={},hJ="u">typeof console&&console.warn&&console.log;function h0(t,e){!function(t,e,i){if(hJ){if(i){if(hQ[e])return;hQ[e]=!0}console[t]("[ECharts] "+e)}}("error",t,e)}function h1(t){throw Error(t)}var h2=function(){var t;function e(t,e){var i=hW(t)?t:hG(t);this._source=i;var n=this._data=i.data,r=i.sourceFormat;i.seriesLayoutBy,r===se&&(this._offset=0,this._dimSize=e,this._data=n),S(this,n,i)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,e){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=void((t=e.prototype).pure=!1,t.persistent=!0),e.internalField=function(){S=function(t,r,o){var a=o.sourceFormat,s=o.seriesLayoutBy,l=o.startIndex,h=o.dimensionsDefine;tk(t,w[ut(a,s)]),a===se?(t.getItem=e,t.count=n,t.fillStorage=i):(t.getItem=tL(function(t,e){return h4[ut(t,e)]}(a,s),null,r,l,h),t.count=tL(function(t,e){return h7[ut(t,e)]}(a,s),null,r,l,h))};var t,e=function(t,e){t-=this._offset,e=e||[];for(var i=this._data,n=this._dimSize,r=n*t,o=0;o<n;o++)e[o]=i[r+o];return e},i=function(t,e,i,n){for(var r=this._data,o=this._dimSize,a=0;a<o;a++){for(var s=n[a],l=null==s[0]?1/0:s[0],h=null==s[1]?-1/0:s[1],u=e-t,d=i[a],c=0;c<u;c++){var p=r[c*o+a];d[t+c]=p,p<l&&(l=p),p>h&&(h=p)}s[0]=l,s[1]=h}},n=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e<t.length;e++)this._data.push(t[e])}(t={})[a8+"_"+sn]={pure:!0,appendData:r},t[a8+"_row"]={pure:!0,appendData:function(){throw Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[a9]={pure:!0,appendData:r},t[st]={pure:!0,appendData:function(t){var e=this._data;tI(t,function(t,i){for(var n=e[i]||(e[i]=[]),r=0;r<(t||[]).length;r++)n.push(t[r])})}},t[a7]={appendData:r},t[se]={persistent:!1,pure:!0,appendData:function(t){this._data=t},clean:function(){this._offset+=this.count(),this._data=null}},w=t}(),e}(),h5=function(t){tN(t)||h0("series.data or dataset.source must be an array.")};(v={})[a8+"_"+sn]=h5,v[a8+"_row"]=h5,v[a9]=h5,v[st]=function(t,e){for(var i=0;i<e.length;i++)null==e[i].name&&h0("dimension name must not be null/undefined.")},v[a7]=h5;var h3=function(t,e,i,n){return t[n]},h4=((y={})[a8+"_"+sn]=function(t,e,i,n){return t[n+e]},y[a8+"_row"]=function(t,e,i,n,r){n+=e;for(var o=r||[],a=0;a<t.length;a++){var s=t[a];o[a]=s?s[n]:null}return o},y[a9]=h3,y[st]=function(t,e,i,n,r){for(var o=r||[],a=0;a<i.length;a++){var s=i[a].name,l=null!=s?t[s]:null;o[a]=l?l[n]:null}return o},y[a7]=h3,y),h6=function(t,e,i){return t.length},h7=((b={})[a8+"_"+sn]=function(t,e,i){return Math.max(0,t.length-e)},b[a8+"_row"]=function(t,e,i){var n=t[0];return n?Math.max(0,n.length-e):0},b[a9]=h6,b[st]=function(t,e,i){var n=i[0].name,r=null!=n?t[n]:null;return r?r.length:0},b[a7]=h6,b),h8=function(t,e,i){return t[e]},h9=((x={})[a8]=h8,x[a9]=function(t,e,i){return t[i]},x[st]=h8,x[a7]=function(t,e,i){var n=r$(t);return n instanceof Array?n[e]:n},x[se]=h8,x);function ut(t,e){return t===a8?t+"_"+e:t}function ue(t,e,i){if(t){var n=t.getRawDataItem(e);if(null!=n){var r=t.getStore(),o=r.getSource().sourceFormat;if(null!=i){var a=t.getDimensionIndex(i),s=r.getDimensionProperty(a);return h9[o](n,a,s)}var l=n;return o===a7&&(l=r$(n)),l}}}var ui=/\{@(.+?)\}/g,un=function(){function t(){}return t.prototype.getDataParams=function(t,e){var i=this.getData(e),n=this.getRawValue(t,e),r=i.getRawIndex(t),o=i.getName(t),a=i.getRawDataItem(t),s=i.getItemVisual(t,"style"),l=s&&s[i.getItemVisual(t,"drawType")||"fill"],h=s&&s.stroke,u=this.mainType,d="series"===u,c=i.userOutput&&i.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:r,data:a,dataType:e,value:n,color:l,borderColor:h,dimensionNames:c?c.fullDimensions:null,encode:c?c.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(t,e,i,n,r,o){e=e||"normal";var a=this.getData(i),s=this.getDataParams(t,i);return(o&&(s.value=o.interpolatedValue),null!=n&&tN(s.value)&&(s.value=s.value[n]),r||(r=a.getItemModel(t).get("normal"===e?["label","formatter"]:[e,"label","formatter"])),tz(r))?(s.status=e,s.dimensionIndex=n,r(s)):tB(r)?lZ(r,s).replace(ui,function(e,i){var n=i.length,r=i;"["===r.charAt(0)&&"]"===r.charAt(n-1)&&(r=+r.slice(1,n-1));var s=ue(a,t,r);if(o&&tN(o.interpolatedValue)){var l=a.getDimensionIndex(r);l>=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}):void 0},t.prototype.getRawValue=function(t,e){return ue(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,i){},t}();function ur(t){var e,i;return tH(t)?t.type&&(i=t):e=t,{text:e,frag:i}}function uo(t){return new ua(t)}var ua=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,i,n,r,o=this._upstream,a=t&&t.skip;if(this._dirty&&o){var s=this.context;s.data=s.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!a&&(n=this._plan(this.context));var l=((e=this._modBy)>=1||(e=1),e),h=this._modDataCount||0,u=((i=t&&t.modBy)>=1||(i=1),i),d=t&&t.modDataCount||0;(l!==u||h!==d)&&(n="reset"),(this._dirty||"reset"===n)&&(this._dirty=!1,r=this._doReset(a)),this._modBy=u,this._modDataCount=d;var c=t&&t.step;if(o?this._dueEnd=o._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var p=this._dueIndex,f=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!a&&(r||p<f)){var g=this._progress;if(tN(g))for(var _=0;_<g.length;_++)this._doProgress(g[_],p,f,u,d);else this._doProgress(g,p,f,u,d)}this._dueIndex=f;var m=null!=this._settedOutputEnd?this._settedOutputEnd:f;this._outputDueEnd=m}else this._dueIndex=this._outputDueEnd=null!=this._settedOutputEnd?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(t,e,i,n,r){us.reset(e,i,n,r),this._callingProgress=t,this._callingProgress({start:e,end:i,count:i-e,next:us.next},this.context)},t.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!t&&this._reset&&((e=this._reset(this.context))&&e.progress&&(i=e.forceFirstProgress,e=e.progress),tN(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var e,i,n=this._downstream;return n&&n.dirty(),i},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},t}(),us=function(){var t,e,i,n,r,o={reset:function(l,h,u,d){e=l,t=h,i=u,r=Math.ceil((n=d)/i),o.next=i>1&&n>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var o=e%r*i+Math.ceil(e/r),a=e>=t?null:o<n?o:e;return e++,a}}();function ul(t,e){var i=e&&e.type;return"ordinal"===i?t:("time"!==i||tF(t)||null==t||"-"===t||(t=+rE(t)),null==t||""===t?0/0:Number(t))}t5({number:function(t){return parseFloat(t)},time:function(t){return+rE(t)},trim:function(t){return tB(t)?tQ(t):t}});var uh={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}};(function(t,e){tF(e)||h1(""),this._opFn=uh[t],this._rvalFloat=rR(e)}).prototype.evaluate=function(t){return tF(t)?this._opFn(t,this._rvalFloat):this._opFn(rR(t),this._rvalFloat)};var uu=function(){function t(t,e){var i="desc"===t;this._resultLT=i?1:-1,null==e&&(e=i?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var i=tF(t)?t:rR(t),n=tF(e)?e:rR(e),r=isNaN(i),o=isNaN(n);if(r&&(i=this._incomparable),o&&(n=this._incomparable),r&&o){var a=tB(t),s=tB(e);a&&(i=s?t:0),s&&(n=a?e:0)}return i<n?this._resultLT:i>n?-this._resultLT:0},t}();(function(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=rR(e)}).prototype.evaluate=function(t){var e=t===this._rval;if(!e){var i=typeof t;i!==this._rvalTypeof&&("number"===i||"number"===this._rvalTypeof)&&(e=rR(t)===this._rvalFloat)}return this._isEQ?e:!e};var ud=function(){function t(){}return t.prototype.getRawData=function(){throw Error("not supported")},t.prototype.getRawDataItem=function(t){throw Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ul(t,e)},t}();function uc(t){return um(t.sourceFormat)||h1(""),t.data}function up(t){var e=t.sourceFormat,i=t.data;if(um(e)||h1(""),e===a8){for(var n=[],r=0,o=i.length;r<o;r++)n.push(i[r].slice());return n}if(e===a9){for(var n=[],r=0,o=i.length;r<o;r++)n.push(tk({},i[r]));return n}}function uf(t,e,i){if(null!=i){if(tF(i)||!isNaN(i)&&!t6(e,i))return t[i];else if(t6(e,i))return e[i]}}function ug(t){return tw(t)}var u_=t5();function um(t){return t===a8||t===a9}var uv=typeof Uint32Array===a3?Array:Uint32Array,uy=typeof Uint16Array===a3?Array:Uint16Array,ub=typeof Int32Array===a3?Array:Int32Array,ux=typeof Float64Array===a3?Array:Float64Array,uw={float:ux,int:ub,ordinal:Array,number:Array,time:ux};function uS(t){return t>65535?uv:uy}function uk(t,e,i,n,r){var o=uw[i||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new o(n),h=0;h<s;h++)l[h]=a[h];t[e]=l}}else t[e]=new o(n)}var uC=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=t5()}return t.prototype.initData=function(t,e,i){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),r=this.defaultDimValueGetter=k[n.sourceFormat];this._dimValueGetter=i||r,this._rawExtent=[],hK(n),this._dimensions=tA(e,function(t){return{type:t.type,property:t.property}}),this._initDataFromProvider(0,t.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(t,e){var i=this._calcDimNameToIdx,n=this._dimensions,r=i.get(t);if(null!=r){if(n[r].type===e)return r}else r=n.length;return n[r]={type:e},i.set(t,r),this._chunks[r]=new uw[e||"float"](this._rawCount),this._rawExtent[r]=r4(),r},t.prototype.collectOrdinalMeta=function(t,e){var i=this._chunks[t],n=this._dimensions[t],r=this._rawExtent,o=n.ordinalOffset||0,a=i.length;0===o&&(r[t]=r4());for(var s=r[t],l=o;l<a;l++){var h=i[l]=e.parseAndCollect(i[l]);isNaN(h)||(s[0]=Math.min(h,s[0]),s[1]=Math.max(h,s[1]))}n.ordinalMeta=e,n.ordinalOffset=a,n.type="ordinal"},t.prototype.getOrdinalMeta=function(t){return this._dimensions[t].ordinalMeta},t.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},t.prototype.appendData=function(t){var e=this._provider,i=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=i),i<n&&this._initDataFromProvider(i,n,!0),[i,n]},t.prototype.appendValues=function(t,e){for(var i=this._chunks,n=this._dimensions,r=n.length,o=this._rawExtent,a=this.count(),s=a+Math.max(t.length,e||0),l=0;l<r;l++){var h=n[l];uk(i,l,h.type,s,!0)}for(var u=[],d=a;d<s;d++)for(var c=d-a,p=0;p<r;p++){var h=n[p],f=k.arrayRows.call(this,t[c]||u,h.property,c,p);i[p][d]=f;var g=o[p];f<g[0]&&(g[0]=f),f>g[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,i){for(var n=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=tA(o,function(t){return t.property}),h=0;h<a;h++){var u=o[h];s[h]||(s[h]=r4()),uk(r,h,u.type,e,i)}if(n.fillStorage)n.fillStorage(t,e,r,s);else for(var d=[],c=t;c<e;c++){d=n.getItem(c,d);for(var p=0;p<a;p++){var f=r[p],g=this._dimValueGetter(d,l[p],c,p);f[c]=g;var _=s[p];g<_[0]&&(_[0]=g),g>_[1]&&(_[1]=g)}}!n.persistent&&n.clean&&n.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<this._count))return 0/0;var i=this._chunks[t];return i?i[this.getRawIndex(e)]:0/0},t.prototype.getValues=function(t,e){var i=[],n=[];if(null==e){e=t,t=[];for(var r=0;r<this._dimensions.length;r++)n.push(r)}else n=t;for(var r=0,o=n.length;r<o;r++)i.push(this.get(n[r],e));return i},t.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return 0/0;var i=this._chunks[t];return i?i[e]:0/0},t.prototype.getSum=function(t){var e=this._chunks[t],i=0;if(e)for(var n=0,r=this.count();n<r;n++){var o=this.get(t,n);isNaN(o)||(i+=o)}return i},t.prototype.getMedian=function(t){var e=[];this.each([t],function(t){isNaN(t)||e.push(t)}),rS(e);var i=this.count();return 0===i?0:i%2==1?e[(i-1)/2]:(e[i/2]+e[i/2-1])/2},t.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return -1;if(!this._indices)return t;var e=this._indices,i=e[t];if(null!=i&&i<this._count&&i===t)return t;for(var n=0,r=this._count-1;n<=r;){var o=(n+r)/2|0;if(e[o]<t)n=o+1;else{if(!(e[o]>t))return o;r=o-1}}return -1},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var i=e.constructor,n=this._count;if(i===Array){t=new i(n);for(var r=0;r<n;r++)t[r]=e[r]}else t=new i(e.buffer,0,n)}else{var i=uS(this._rawCount);t=new i(this.count());for(var r=0;r<t.length;r++)t[r]=r}return t},t.prototype.filter=function(t,e){if(!this._count)return this;for(var i=this.clone(),n=i.count(),r=new(uS(i._rawCount))(n),o=[],a=t.length,s=0,l=t[0],h=i._chunks,u=0;u<n;u++){var d=void 0,c=i.getRawIndex(u);if(0===a)d=e(u);else if(1===a)d=e(h[l][c],u);else{for(var p=0;p<a;p++)o[p]=h[t[p]][c];o[p]=u,d=e.apply(null,o)}d&&(r[s++]=c)}return s<n&&(i._indices=r),i._count=s,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(t){var e=this.clone(),i=e._count;if(!i)return this;var n=tP(t),r=n.length;if(!r)return this;var o=e.count(),a=new(uS(e._rawCount))(o),s=0,l=n[0],h=t[l][0],u=t[l][1],d=e._chunks,c=!1;if(!e._indices){var p=0;if(1===r){for(var f=d[n[0]],g=0;g<i;g++){var _=f[g];(_>=h&&_<=u||isNaN(_))&&(a[s++]=p),p++}c=!0}else if(2===r){for(var f=d[n[0]],m=d[n[1]],v=t[n[1]][0],y=t[n[1]][1],g=0;g<i;g++){var _=f[g],b=m[g];(_>=h&&_<=u||isNaN(_))&&(b>=v&&b<=y||isNaN(b))&&(a[s++]=p),p++}c=!0}}if(!c)if(1===r)for(var g=0;g<o;g++){var x=e.getRawIndex(g),_=d[n[0]][x];(_>=h&&_<=u||isNaN(_))&&(a[s++]=x)}else for(var g=0;g<o;g++){for(var w=!0,x=e.getRawIndex(g),S=0;S<r;S++){var k=n[S],_=d[k][x];(_<t[k][0]||_>t[k][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return s<o&&(e._indices=a),e._count=s,e._extent=[],e._updateGetRawIdx(),e},t.prototype.map=function(t,e){var i=this.clone(t);return this._updateDims(i,t,e),i},t.prototype.modify=function(t,e){this._updateDims(this,t,e)},t.prototype._updateDims=function(t,e,i){for(var n=t._chunks,r=[],o=e.length,a=t.count(),s=[],l=t._rawExtent,h=0;h<e.length;h++)l[e[h]]=r4();for(var u=0;u<a;u++){for(var d=t.getRawIndex(u),c=0;c<o;c++)s[c]=n[e[c]][d];s[o]=u;var p=i&&i.apply(null,s);if(null!=p){"object"!=typeof p&&(r[0]=p,p=r);for(var h=0;h<p.length;h++){var f=e[h],g=p[h],_=l[f],m=n[f];m&&(m[d]=g),g<_[0]&&(_[0]=g),g>_[1]&&(_[1]=g)}}}},t.prototype.lttbDownSample=function(t,e){var i,n,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,h=Math.floor(1/e),u=this.getRawIndex(0),d=new(uS(this._rawCount))(Math.min((Math.ceil(s/h)+2)*2,s));d[l++]=u;for(var c=1;c<s-1;c+=h){for(var p=Math.min(c+h,s-1),f=Math.min(c+2*h,s),g=(f+p)/2,_=0,m=p;m<f;m++){var v=this.getRawIndex(m),y=a[v];isNaN(y)||(_+=y)}_/=f-p;var b=c,x=Math.min(c+h,s),w=c-1,S=a[u];i=-1,r=b;for(var k=-1,C=0,m=b;m<x;m++){var v=this.getRawIndex(m),y=a[v];if(isNaN(y)){C++,k<0&&(k=v);continue}(n=Math.abs((w-g)*(y-S)-(w-m)*(_-S)))>i&&(i=n,r=v)}C>0&&C<x-b&&(d[l++]=Math.min(k,r),r=Math.max(k,r)),d[l++]=r,u=r}return d[l++]=this.getRawIndex(s-1),o._count=l,o._indices=d,o.getRawIndex=this._getRawIdx,o},t.prototype.minmaxDownSample=function(t,e){for(var i=this.clone([t],!0),n=i._chunks,r=Math.floor(1/e),o=n[t],a=this.count(),s=new(uS(this._rawCount))(2*Math.ceil(a/r)),l=0,h=0;h<a;h+=r){var u=h,d=o[this.getRawIndex(u)],c=h,p=o[this.getRawIndex(c)],f=r;h+r>a&&(f=a-h);for(var g=0;g<f;g++){var _=o[this.getRawIndex(h+g)];_<d&&(d=_,u=h+g),_>p&&(p=_,c=h+g)}var m=this.getRawIndex(u),v=this.getRawIndex(c);u<c?(s[l++]=m,s[l++]=v):(s[l++]=v,s[l++]=m)}return i._count=l,i._indices=s,i._updateGetRawIdx(),i},t.prototype.downSample=function(t,e,i,n){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],h=this.count(),u=r._rawExtent[t]=r4(),d=new(uS(this._rawCount))(Math.ceil(h/s)),c=0,p=0;p<h;p+=s){s>h-p&&(a.length=s=h-p);for(var f=0;f<s;f++){var g=this.getRawIndex(p+f);a[f]=l[g]}var _=i(a),m=this.getRawIndex(Math.min(p+n(a,_)||0,h-1));l[m]=_,_<u[0]&&(u[0]=_),_>u[1]&&(u[1]=_),d[c++]=m}return r._count=c,r._indices=d,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var i=t.length,n=this._chunks,r=0,o=this.count();r<o;r++){var a=this.getRawIndex(r);switch(i){case 0:e(r);break;case 1:e(n[t[0]][a],r);break;case 2:e(n[t[0]][a],n[t[1]][a],r);break;default:for(var s=0,l=[];s<i;s++)l[s]=n[t[s]][a];l[s]=r,e.apply(null,l)}}},t.prototype.getDataExtent=function(t,e){var i=this._chunks[t],n=r4();if(!i)return n;var r=this.count();if(!this._indices&&!e)return this._rawExtent[t].slice();var o=this._extent,a=o[t]||(o[t]={}),s=(p="",f=-1/0,g=-1/0,_=1/0,m=1/0,e&&(null!=e.g&&(p+="G"+e.g,f=e.g),null!=e.ge&&(p+="GE"+e.ge,g=e.ge),null!=e.l&&(p+="L"+e.l,_=e.l),null!=e.le&&(p+="LE"+e.le,m=e.le)),{key:p,g:f,ge:g,l:_,le:m}),l=s.key,h=a[l];if(h)return h.slice();for(var u=n[0],d=n[1],c=0;c<r;c++){var p,f,g,_,m,v=i[this.getRawIndex(c)];(!e||v>s.g&&v>=s.ge&&v<s.l&&v<=s.le)&&(v<u&&(u=v),v>d&&(d=v))}return a[l]=[u,d]},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var i=[],n=this._chunks,r=0;r<n.length;r++)i.push(n[r][e]);return i},t.prototype.clone=function(e,i){var n=new t,r=this._chunks,o=e&&tE(e,function(t,e){return t[e]=!0,t},{});if(o)for(var a=0;a<r.length;a++)n._chunks[a]=o[a]?function(t){var e=t.constructor;return e===Array?t.slice():new e(t)}(r[a]):r[a];else n._chunks=r;return this._copyCommonProps(n),i||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},t.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=tw(this._extent),t._rawExtent=tw(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var i=this._indices.length;e=new t(i);for(var n=0;n<i;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},t.prototype._getRawIdxIdentity=function(t){return t},t.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,i,n){return ul(t[n],this._dimensions[n])}k={arrayRows:t,objectRows:function(t,e,i,n){return ul(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,i,n){var r=t&&(null==t.value?t:t.value);return ul(r instanceof Array?r[n]:r,this._dimensions[n])},typedArray:function(t,e,i,n){return t[n]}}}(),t}(),uT=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,i=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length;if(uM(i)){var o=void 0,a=void 0,s=void 0;if(r){var l=n[0];l.prepareSource(),o=(s=l.getSource()).data,a=s.sourceFormat,e=[l._getVersionSign()]}else a=t$(o=i.get("data",!0))?se:a7,e=[];var h=this._getSourceMetaRawOption()||{},u=s&&s.metaRawOption||{},d=tG(h.seriesLayoutBy,u.seriesLayoutBy)||null,c=tG(h.sourceHeader,u.sourceHeader),p=tG(h.dimensions,u.dimensions);t=d!==u.seriesLayoutBy||!!c!=!!u.sourceHeader||p?[hj(o,{seriesLayoutBy:d,sourceHeader:c,dimensions:p},a)]:[]}else if(r){var f=this._applyTransform(n);t=f.sourceList,e=f.upstreamSignList}else t=[hj(i.get("source",!0),this._getSourceMetaRawOption(),null)],e=[];this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,i,n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);null!=o&&1!==t.length&&uD("");var a=[],s=[];return(tI(t,function(t){t.prepareSource();var e=t.getSource(o||0);null==o||e||uD(""),a.push(e),s.push(t._getVersionSign())}),r)?i=function(t,e,i){var n=rF(t),r=n.length;r||h1("");for(var o=0;o<r;o++)e=function(t,e){e.length||h1(""),tH(t)||h1("");var i=t.type,n=u_.get(i);n||h1("");var r=tA(e,function(t){return function(t,e){var i=new ud,n=t.data,r=i.sourceFormat=t.sourceFormat,o=t.startIndex;t.seriesLayoutBy!==sn&&h1("");var a=[],s={},l=t.dimensionsDefine;if(l)tI(l,function(t,e){var i=t.name,n={index:e,name:i,displayName:t.displayName};a.push(n),null!=i&&(t6(s,i)&&h1(""),s[i]=n)});else for(var h=0;h<t.dimensionsDetectedCount||0;h++)a.push({index:h});var u=h4[ut(r,sn)];e.__isBuiltIn&&(i.getRawDataItem=function(t){return u(n,o,a,t)},i.getRawData=tL(uc,null,t)),i.cloneRawData=tL(up,null,t),i.count=tL(h7[ut(r,sn)],null,n,o,a);var d=h9[r];i.retrieveValue=function(t,e){return c(u(n,o,a,t),e)};var c=i.retrieveValueFromItem=function(t,e){if(null!=t){var i=a[e];if(i)return d(t,e,i.name)}};return i.getDimensionInfo=tL(uf,null,a,s),i.cloneAllDimensionInfo=tL(ug,null,a),i}(t,n)});return tA(rF(n.transform({upstream:r[0],upstreamList:r,config:tw(t.config)})),function(t,i){tH(t)||h1(""),t.data||h1(""),um(hZ(t.data))||h1("");var n,r=e[0];if(r&&0===i&&!t.dimensions){var o=r.startIndex;o&&(t.data=r.data.slice(0,o).concat(t.data)),n={seriesLayoutBy:sn,sourceHeader:o,dimensions:r.metaRawOption.dimensions}}else n={seriesLayoutBy:sn,sourceHeader:0,dimensions:t.dimensions};return hj(t.data,n,null)})}(n[o],e),o!==r-1&&(e.length=Math.max(e.length,1));return e}(r,a,{datasetIndex:n.componentIndex}):null!=o&&(i=[new hU({data:(e=a[0]).data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:tw(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})]),{sourceList:i,upstreamSignList:s}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var i=t[e];if(i._isDirty()||this._upstreamSignList[e]!==i._getVersionSign())return!0}},t.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var i=this._getUpstreamSourceManagers();return i[0]&&i[0].getSource(t)}return e},t.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},t.prototype._innerGetDataStore=function(t,e,i){var n=this._storeList,r=n[0];r||(r=n[0]={});var o=r[i];if(!o){var a=this._getUpstreamSourceManagers()[0];uM(this._sourceHost)&&a?o=a._innerGetDataStore(t,e,i):(o=new uC).initData(new h2(e,t.length),t),r[i]=o}return o},t.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(uM(t)){var e=hf(t);return e?[e.getSourceManager()]:[]}return tA(t.get("transform",!0)||t.get("fromTransformResult",!0)?r2(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},r0).models:[],function(t){return t.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var t,e,i,n=this._sourceHost;return uM(n)?(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)):this._getUpstreamSourceManagers().length||(t=n.get("seriesLayoutBy",!0),e=n.get("sourceHeader",!0),i=n.get("dimensions",!0)),{seriesLayoutBy:t,sourceHeader:e,dimensions:i}},t}();function uM(t){return"series"===t.mainType}function uD(t){throw Error(t)}function uI(t){var e=t.lineHeight;return null==e?"line-height:1":"line-height:"+ew(e+"")+"px"}function uA(t,e){var i=t.color||hn.color.tertiary,n=t.fontSize||12,r=t.fontWeight||"400",o=t.color||hn.color.secondary,a=t.fontSize||14,s=t.fontWeight||"900";return"html"===e?{nameStyle:"font-size:"+ew(n+"")+"px;color:"+ew(i)+";font-weight:"+ew(r+""),valueStyle:"font-size:"+ew(a+"")+"px;color:"+ew(o)+";font-weight:"+ew(s+"")}:{nameStyle:{fontSize:n,fill:i,fontWeight:r},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var uE=[0,10,20,30],uO=["","\n","\n\n","\n\n\n"];function uP(t,e){return e.type=t,e}function uL(t){return"section"===t.type}function uR(t,e,i,n){var r,o=e.noHeader,a={html:uE[r=function t(e){if(uL(e)){var i=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return tI(e.blocks,function(e){var n=t(e);n>=i&&(i=n+ +(r&&(!n||uL(e)&&!e.noHeader)))}),i}return 0}(e)],richText:uO[r]},s=[],l=e.blocks||[];tK(!l||tN(l)),l=l||[];var h=t.orderMode;if(e.sortBlocks&&h){l=l.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(t6(u,h)){var d=new uu(u[h],null);l.sort(function(t,e){return d.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===h&&l.reverse()}tI(l,function(i,r){var o=e.valueFormatter,l=(uL(i)?uR:uN)(o?tk(tk({},t),{valueFormatter:o}):t,i,r>0?a.html:0,n);null!=l&&s.push(l)});var c="richText"===t.renderMode?s.join(a.richText):uB(n,s.join(""),o?i:a.html);if(o)return c;var p=lW(e.header,"ordinal",t.useUTC),f=uA(n,t.renderMode).nameStyle,g=uI(n);return"richText"===t.renderMode?uV(t,p,f)+a.richText+c:uB(n,'<div style="'+f+";"+g+';">'+ew(p)+"</div>"+c,i)}function uN(t,e,i,n){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,h=t.useUTC,u=e.valueFormatter||t.valueFormatter||function(t){return tA(t=tN(t)?t:[t],function(t,e){return lW(t,tN(x)?x[e]:x,h)})};if(!o||!a){var d,c,p,f,g,_,m,v,y=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||hn.color.secondary,r),b=o?"":lW(l,"ordinal",h),x=e.valueType,w=a?[]:u(e.value,e.rawDataIndex),S=!s||!o,k=!s&&o,C=uA(n,r),T=C.nameStyle,M=C.valueStyle;return"richText"===r?(s?"":y)+(o?"":uV(t,b,T))+(a?"":(d=t,c=w,p=S,f=k,g=[M],p&&g.push({padding:[0,0,0,f?10:20],align:"right"}),d.markupStyleCreator.wrapRichTextStyle(tN(c)?c.join(" "):c,g))):uB(n,(s?"":y)+(o?"":'<span style="'+T+";"+(s?"":"margin-left:2px")+'">'+ew(b)+"</span>")+(a?"":(_=w,m=S,v=k,'<span style="'+(m?"float:right;margin-left:"+(v?"10px":"20px"):"")+";"+M+'">'+tA(_=tN(_)?_:[_],function(t){return ew(t)}).join("&nbsp;&nbsp;")+"</span>")),i)}}function uz(t,e,i,n,r,o){if(t)return(uL(t)?uR:uN)({useUTC:r,renderMode:i,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function uB(t,e,i){return'<div style="margin: '+i+"px 0 0;"+uI(t)+';">'+e+'<div style="clear:both"></div></div>'}function uV(t,e,i){return t.markupStyleCreator.wrapRichTextStyle(e,i)}function uF(t,e){var i=t.get("padding");return null!=i?i:"richText"===e?[8,10]:10}var uH=function(){function t(){this.richTextStyles={},this._nextStyleNameId=rN()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,i){var n,r,o,a,s,l,h="richText"===i?this._generateStyleName():null,u=(a=(o=tB(n={color:e,type:t,renderMode:i,markerId:h})?{color:n,extraCssText:r}:n||{}).color,s=o.type,r=o.extraCssText,l=o.renderMode||"html",a?"html"===l?"subItem"===s?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ew(a)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ew(a)+";"+(r||"")+'"></span>':{renderMode:l,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===s?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}:"");return tB(u)?u:(this.richTextStyles[h]=u.style,u.content)},t.prototype.wrapRichTextStyle=function(t,e){var i={};tN(e)?tI(e,function(t){return tk(i,t)}):tk(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},t}(),uY=rX();function u$(t,e){return t.getName(e)||t.getId(e)}var uU="__universalTransitionEnabled",uW=function(t){var e;function i(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return ti(i,t),i.prototype.init=function(t,e,i){this.seriesIndex=this.componentIndex,this.dataTask=uo({count:uG,reset:uZ}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,i),(uY(this).sourceManager=new uT(this)).prepareSource();var n=this.getInitialData(t,i);uX(n,this),this.dataTask.context.data=n,uY(this).dataBeforeProcessed=n,uj(this),this._initSelectedMapFromData(n)},i.prototype.mergeDefaultAndTheme=function(t,e){var i=l6(this),n=i?l8(t):{},r=this.subType;ht.hasClass(r)&&(r+="Series"),tS(t,e.getTheme().get(this.subType)),tS(t,this.getDefaultOption()),rH(t,"label",["show"]),this.fillDataTextStyle(t.data),i&&l7(t,n,i)},i.prototype.mergeOption=function(t,e){t=tS(this.option,t,!0),this.fillDataTextStyle(t.data);var i=l6(this);i&&l7(this.option,t,i);var n=uY(this).sourceManager;n.dirty(),n.prepareSource();var r=this.getInitialData(t,e);uX(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,uY(this).dataBeforeProcessed=r,uj(this),this._initSelectedMapFromData(r)},i.prototype.fillDataTextStyle=function(t){if(t&&!t$(t))for(var e=["show"],i=0;i<t.length;i++)t[i]&&t[i].label&&rH(t[i],"label",e)},i.prototype.getInitialData=function(t,e){},i.prototype.appendData=function(t){this.getRawData().appendData(t.data)},i.prototype.getData=function(t){var e=uQ(this);if(!e)return uY(this).data;var i=e.context.data;return null!=t&&i.getLinkedData?i.getLinkedData(t):i},i.prototype.getAllData=function(){var t=this.getData();return t&&t.getLinkedDataAll?t.getLinkedDataAll():[{data:t}]},i.prototype.setData=function(t){var e=uQ(this);if(e){var i=e.context;i.outputData=t,e!==this.dataTask&&(i.data=t)}uY(this).data=t},i.prototype.getEncode=function(){var t=this.get("encode",!0);if(t)return t5(t)},i.prototype.getSourceManager=function(){return uY(this).sourceManager},i.prototype.getSource=function(){return this.getSourceManager().getSource()},i.prototype.getRawData=function(){return uY(this).dataBeforeProcessed},i.prototype.getColorBy=function(){return this.get("colorBy")||"series"},i.prototype.isColorBySeries=function(){return"series"===this.getColorBy()},i.prototype.getBaseAxis=function(){var t=this.coordinateSystem;return t&&t.getBaseAxis&&t.getBaseAxis()},i.prototype.indicesOfNearest=function(t,e,i,n){var r=this.getData(),o=this.coordinateSystem,a=o&&o.getAxis(t);if(!o||!a)return[];var s=a.dataToCoord(i);null==n&&(n=1/0);for(var l=[],h=1/0,u=-1,d=0,c=r.getDimensionIndex(e),p=r.getStore(),f=0,g=p.count();f<g;f++){var _=p.get(c,f),m=s-a.dataToCoord(_),v=Math.abs(m);v<=n&&((v<h||v===h&&m>=0&&u<0)&&(h=v,u=m,d=0),m===u&&(l[d++]=f))}return l.length=d,l},i.prototype.formatTooltip=function(t,e,i){return function(t){var e,i,n,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),h=l.mapDimensionsAll("defaultedTooltip"),u=h.length,d=o.getRawValue(a),c=tN(d),p=lq(o.getData().getItemVisual(a,"style")[o.visualDrawType]);if(u>1||c&&!u){var f=function(t,e,i,n,r){var o=e.getData(),a=tE(t,function(t,e,i){var n=o.getDimensionInfo(i);return t||n&&!1!==n.tooltip&&null!=n.displayName},!1),s=[],l=[],h=[];function u(t,e){var i=o.getDimensionInfo(e);i&&!1!==i.otherDims.tooltip&&(a?h.push(uP("nameValue",{markerType:"subItem",markerColor:r,name:i.displayName,value:t,valueType:i.type})):(s.push(t),l.push(i.type)))}return n.length?tI(n,function(t){u(ue(o,i,t),t)}):tI(t,u),{inlineValues:s,inlineValueTypes:l,blocks:h}}(d,o,a,h,p);e=f.inlineValues,i=f.inlineValueTypes,n=f.blocks,r=f.inlineValues[0]}else if(u){var g=l.getDimensionInfo(h[0]);r=e=ue(l,a,h[0]),i=g.type}else r=e=c?d[0]:d;var _=rG(o),m=_&&o.name||"",v=l.getName(a),y=s?m:v;return uP("section",{header:m,noHeader:s||!_,sortParam:r,blocks:[uP("nameValue",{markerType:"item",markerColor:p,name:y,noName:!tQ(y),value:e,valueType:i,rawDataIndex:l.getRawIndex(a)})].concat(n||[])})}({series:this,dataIndex:t,multipleSeries:e})},i.prototype.isAnimationEnabled=function(){var t=this.ecModel;if(tr.node&&!(t&&t.ssr))return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),!!e},i.prototype.restoreData=function(){this.dataTask.dirty()},i.prototype.getColorFromPalette=function(t,e,i){var n=this.ecModel,r=hv.prototype.getColorFromPalette.call(this,t,e,i);return r||(r=n.getColorFromPalette(t,e,i)),r},i.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},i.prototype.getProgressive=function(){return this.get("progressive")},i.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},i.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},i.prototype.unselect=function(t,e){var i=this.option.selectedMap;if(i){var n=this.option.selectedMode,r=this.getData(e);if("series"===n||"all"===i){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var o=0;o<t.length;o++){var a=u$(r,t[o]);i[a]=!1,this._selectedDataIndicesMap[a]=-1}}},i.prototype.toggleSelect=function(t,e){for(var i=[],n=0;n<t.length;n++)i[0]=t[n],this.isSelected(t[n],e)?this.unselect(i,e):this.select(i,e)},i.prototype.getSelectedDataIndices=function(){if("all"===this.option.selectedMap)return[].slice.call(this.getData().getIndices());for(var t=this._selectedDataIndicesMap,e=tP(t),i=[],n=0;n<e.length;n++){var r=t[e[n]];r>=0&&i.push(r)}return i},i.prototype.isSelected=function(t,e){var i=this.option.selectedMap;if(!i)return!1;var n=this.getData(e);return("all"===i||i[u$(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},i.prototype.isUniversalTransitionEnabled=function(){if(this[uU])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},i.prototype._innerSelect=function(t,e){var i,n,r=this.option,o=r.selectedMode,a=e.length;if(o&&a){if("series"===o)r.selectedMap="all";else if("multiple"===o){tH(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l<a;l++){var h=e[l],u=u$(t,h);s[u]=!0,this._selectedDataIndicesMap[u]=t.getRawIndex(h)}}else if("single"===o||!0===o){var d=e[a-1],u=u$(t,d);(i={})[u]=!0,r.selectedMap=i,this._selectedDataIndicesMap=((n={})[u]=t.getRawIndex(d),n)}}},i.prototype._initSelectedMapFromData=function(t){if(!this.option.selectedMap){var e=[];t.hasItemOption&&t.each(function(i){var n=t.getRawDataItem(i);n&&n.selected&&e.push(i)}),e.length>0&&this._innerSelect(t,e)}},i.registerClass=function(t){return ht.registerClass(t)},i.protoInitialize=void((e=i.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"),i}(ht);function uj(t){var e,i,n,r=t.name;rG(t)||(t.name=(i=(e=t.getRawData()).mapDimensionsAll("seriesName"),n=[],tI(i,function(t){var i=e.getDimensionInfo(t);i.displayName&&n.push(i.displayName)}),n.join(" ")||r))}function uG(t){return t.model.getRawData().count()}function uZ(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),uq}function uq(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function uX(t,e){tI(function(t,e){for(var i=new t.constructor(t.length+e.length),n=0;n<t.length;n++)i[n]=t[n];for(var r=t.length,n=0;n<e.length;n++)i[n+r]=e[n];return i}(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(i){t.wrapMethod(i,tR(uK,e))})}function uK(t,e){var i=uQ(t);return i&&i.setOutputEnd((e||this).count()),e}function uQ(t){var e=(t.ecModel||{}).scheduler,i=e&&e.getPipeline(t.uid);if(i){var n=i.currentTask;if(n){var r=n.agentStubMap;r&&(n=r.get(t.uid))}return n}}tM(uW,un),tM(uW,hv),oc(uW,ht);var uJ=function(){function t(){this.group=new rn,this.uid=lh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){},t.prototype.updateLayout=function(t,e,i,n){},t.prototype.updateVisual=function(t,e,i,n){},t.prototype.toggleBlurSeries=function(t,e,i){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();function u0(){var t=rX();return function(e){var i=t(e),n=e.pipelineContext,r=!!i.large,o=!!i.progressiveRender,a=i.large=!!(n&&n.large),s=i.progressiveRender=!!(n&&n.progressiveRender);return(r!==a||o!==s)&&"reset"}}od(uJ),o_(uJ);var u1=ac.CMD,u2=[[],[],[]],u5=Math.sqrt,u3=Math.atan2;function u4(t,e){if(e){var i,n,r,o,a,s,l=t.data,h=t.len(),u=u1.M,d=u1.C,c=u1.L,p=u1.R,f=u1.A,g=u1.Q;for(r=0,o=0;r<h;){switch(i=l[r++],o=r,n=0,i){case u:case c:n=1;break;case d:n=3;break;case g:n=2;break;case f:var _=e[4],m=e[5],v=u5(e[0]*e[0]+e[1]*e[1]),y=u5(e[2]*e[2]+e[3]*e[3]),b=u3(-e[1]/y,e[0]/v);l[r]*=v,l[r++]+=_,l[r]*=y,l[r++]+=m,l[r++]*=v,l[r++]*=y,l[r++]+=b,l[r++]+=b,r+=2,o=r;break;case p:s[0]=l[r++],s[1]=l[r++],es(s,s,e),l[o++]=s[0],l[o++]=s[1],s[0]+=l[r++],s[1]+=l[r++],es(s,s,e),l[o++]=s[0],l[o++]=s[1]}for(a=0;a<n;a++){var x=u2[a];x[0]=l[r++],x[1]=l[r++],es(x,x,e),l[o++]=x[0],l[o++]=x[1]}}t.increaseVersion()}}var u6=Math.sqrt,u7=Math.sin,u8=Math.cos,u9=Math.PI;function dt(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function de(t,e){return(t[0]*e[0]+t[1]*e[1])/(dt(t)*dt(e))}function di(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(de(t,e))}function dn(t,e,i,n,r,o,a,s,l,h,u){var d=u9/180*l,c=u8(d)*(t-i)/2+u7(d)*(e-n)/2,p=-1*u7(d)*(t-i)/2+u8(d)*(e-n)/2,f=c*c/(a*a)+p*p/(s*s);f>1&&(a*=u6(f),s*=u6(f));var g=(r===o?-1:1)*u6((a*a*(s*s)-a*a*(p*p)-s*s*(c*c))/(a*a*(p*p)+s*s*(c*c)))||0,_=g*a*p/s,m=-(g*s)*c/a,v=(t+i)/2+u8(d)*_-u7(d)*m,y=(e+n)/2+u7(d)*_+u8(d)*m,b=di([1,0],[(c-_)/a,(p-m)/s]),x=[(c-_)/a,(p-m)/s],w=[(-1*c-_)/a,(-1*p-m)/s],S=di(x,w);if(-1>=de(x,w)&&(S=u9),de(x,w)>=1&&(S=0),S<0){var k=Math.round(S/u9*1e6)/1e6;S=2*u9+k%2*u9}u.addData(h,v,y,a,s,b,S,d,o)}var dr=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,da=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return et(e,t),e.prototype.applyTransform=function(t){},e}(aT);function dl(t){return null!=t.setData}function dh(t,e){var i=function(t){var e,i=new ac;if(!t)return i;var n=0,r=0,o=0,a=0,s=ac.CMD,l=t.match(dr);if(!l)return i;for(var h=0;h<l.length;h++){for(var u=l[h],d=u.charAt(0),c=void 0,p=u.match(da)||[],f=p.length,g=0;g<f;g++)p[g]=parseFloat(p[g]);for(var _=0;_<f;){var m=void 0,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0,k=n,C=r,T=void 0,M=void 0;switch(d){case"l":n+=p[_++],r+=p[_++],c=s.L,i.addData(c,n,r);break;case"L":n=p[_++],r=p[_++],c=s.L,i.addData(c,n,r);break;case"m":n+=p[_++],r+=p[_++],c=s.M,i.addData(c,n,r),o=n,a=r,d="l";break;case"M":n=p[_++],r=p[_++],c=s.M,i.addData(c,n,r),o=n,a=r,d="L";break;case"h":n+=p[_++],c=s.L,i.addData(c,n,r);break;case"H":n=p[_++],c=s.L,i.addData(c,n,r);break;case"v":r+=p[_++],c=s.L,i.addData(c,n,r);break;case"V":r=p[_++],c=s.L,i.addData(c,n,r);break;case"C":c=s.C,i.addData(c,p[_++],p[_++],p[_++],p[_++],p[_++],p[_++]),n=p[_-2],r=p[_-1];break;case"c":c=s.C,i.addData(c,p[_++]+n,p[_++]+r,p[_++]+n,p[_++]+r,p[_++]+n,p[_++]+r),n+=p[_-2],r+=p[_-1];break;case"S":m=n,v=r,T=i.len(),M=i.data,e===s.C&&(m+=n-M[T-4],v+=r-M[T-3]),c=s.C,k=p[_++],C=p[_++],n=p[_++],r=p[_++],i.addData(c,m,v,k,C,n,r);break;case"s":m=n,v=r,T=i.len(),M=i.data,e===s.C&&(m+=n-M[T-4],v+=r-M[T-3]),c=s.C,k=n+p[_++],C=r+p[_++],n+=p[_++],r+=p[_++],i.addData(c,m,v,k,C,n,r);break;case"Q":k=p[_++],C=p[_++],n=p[_++],r=p[_++],c=s.Q,i.addData(c,k,C,n,r);break;case"q":k=p[_++]+n,C=p[_++]+r,n+=p[_++],r+=p[_++],c=s.Q,i.addData(c,k,C,n,r);break;case"T":m=n,v=r,T=i.len(),M=i.data,e===s.Q&&(m+=n-M[T-4],v+=r-M[T-3]),n=p[_++],r=p[_++],c=s.Q,i.addData(c,m,v,n,r);break;case"t":m=n,v=r,T=i.len(),M=i.data,e===s.Q&&(m+=n-M[T-4],v+=r-M[T-3]),n+=p[_++],r+=p[_++],c=s.Q,i.addData(c,m,v,n,r);break;case"A":y=p[_++],b=p[_++],x=p[_++],w=p[_++],S=p[_++],k=n,C=r,n=p[_++],dn(k,C,n,r=p[_++],w,S,y,b,x,c=s.A,i);break;case"a":y=p[_++],b=p[_++],x=p[_++],w=p[_++],S=p[_++],k=n,C=r,n+=p[_++],dn(k,C,n,r+=p[_++],w,S,y,b,x,c=s.A,i)}}("z"===d||"Z"===d)&&(c=s.Z,i.addData(c),n=o,r=a),e=c}return i.toStatic(),i}(t),n=tk({},e);return n.buildPath=function(t){var e=dl(t);if(e&&t.canSave()){t.appendPath(i);var n=t.getContext();n&&t.rebuildPath(n,1)}else{var n=e?t.getContext():t;n&&i.rebuildPath(n,1)}},n.applyTransform=function(t){u4(i,t),this.dirtyShape()},n}function du(t,e){e=e||{};var i=new aT;return t.shape&&i.setShape(t.shape),i.setStyle(t.style),e.bakeTransform?u4(i.path,t.getComputedTransform()):e.toLocal?i.setLocalTransform(t.getComputedTransform()):i.copyTransform(t),i.buildPath=t.buildPath,i.applyTransform=i.applyTransform,i.z=t.z,i.z2=t.z2,i.zlevel=t.zlevel,i}var dd=function(){this.cx=0,this.cy=0,this.r=0},dc=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dd},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}(aT);dc.prototype.type="circle";let dp=dc;var df=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},dg=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new df},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=e.rx,o=e.ry,a=.5522848*r,s=.5522848*o;t.moveTo(i-r,n),t.bezierCurveTo(i-r,n-s,i-a,n-o,i,n-o),t.bezierCurveTo(i+a,n-o,i+r,n-s,i+r,n),t.bezierCurveTo(i+r,n+s,i+a,n+o,i,n+o),t.bezierCurveTo(i-a,n+o,i-r,n+s,i-r,n),t.closePath()},e}(aT);dg.prototype.type="ellipse";let d_=dg;var dm=Math.PI,dv=2*dm,dy=Math.sin,db=Math.cos,dx=Math.acos,dw=Math.atan2,dS=Math.abs,dk=Math.sqrt,dC=Math.max,dT=Math.min;function dM(t,e,i,n,r,o,a){var s=t-i,l=e-n,h=(a?o:-o)/dk(s*s+l*l),u=h*l,d=-h*s,c=t+u,p=e+d,f=i+u,g=n+d,_=(c+f)/2,m=(p+g)/2,v=f-c,y=g-p,b=v*v+y*y,x=r-o,w=c*g-f*p,S=(y<0?-1:1)*dk(dC(0,x*x*b-w*w)),k=(w*y-v*S)/b,C=(-w*v-y*S)/b,T=(w*y+v*S)/b,M=(-w*v+y*S)/b,D=k-_,I=C-m,A=T-_,E=M-m;return D*D+I*I>A*A+E*E&&(k=T,C=M),{cx:k,cy:C,x0:-u,y0:-d,x1:k*(r/x-1),y1:C*(r/x-1)}}var dD=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},dI=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dD},e.prototype.buildPath=function(t,e){!function(t,e){var i,n=dC(e.r,0),r=dC(e.r0||0,0),o=n>0,a=r>0;if(o||a){if(o||(n=r,r=0),r>n){var s=n;n=r,r=s}var l=e.startAngle,h=e.endAngle;if(!(isNaN(l)||isNaN(h))){var u=e.cx,d=e.cy,c=!!e.clockwise,p=dS(h-l),f=p>dv&&p%dv;if(f>1e-4&&(p=f),n>1e-4)if(p>dv-1e-4)t.moveTo(u+n*db(l),d+n*dy(l)),t.arc(u,d,n,l,h,!c),r>1e-4&&(t.moveTo(u+r*db(h),d+r*dy(h)),t.arc(u,d,r,h,l,c));else{var g=void 0,_=void 0,m=void 0,v=void 0,y=void 0,b=void 0,x=void 0,w=void 0,S=void 0,k=void 0,C=void 0,T=void 0,M=void 0,D=void 0,I=void 0,A=void 0,E=n*db(l),O=n*dy(l),P=r*db(h),L=r*dy(h),R=p>1e-4;if(R){var N=e.cornerRadius;N&&(g=(i=function(t){var e;if(tN(t)){var i=t.length;if(!i)return t;e=1===i?[t[0],t[0],0,0]:2===i?[t[0],t[0],t[1],t[1]]:3===i?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N))[0],_=i[1],m=i[2],v=i[3]);var z=dS(n-r)/2;if(y=dT(z,m),b=dT(z,v),x=dT(z,g),w=dT(z,_),C=S=dC(y,b),T=k=dC(x,w),(S>1e-4||k>1e-4)&&(M=n*db(h),D=n*dy(h),I=r*db(l),A=r*dy(l),p<dm)){var B=function(t,e,i,n,r,o,a,s){var l=i-t,h=n-e,u=a-r,d=s-o,c=d*l-u*h;if(!(c*c<1e-4))return c=(u*(e-o)-d*(t-r))/c,[t+c*l,e+c*h]}(E,O,I,A,M,D,P,L);if(B){var V=E-B[0],F=O-B[1],H=M-B[0],Y=D-B[1],$=1/dy(dx((V*H+F*Y)/(dk(V*V+F*F)*dk(H*H+Y*Y)))/2),U=dk(B[0]*B[0]+B[1]*B[1]);C=dT(S,(n-U)/($+1)),T=dT(k,(r-U)/($-1))}}}if(R)if(C>1e-4){var W=dT(m,C),j=dT(v,C),G=dM(I,A,E,O,n,W,c),Z=dM(M,D,P,L,n,j,c);t.moveTo(u+G.cx+G.x0,d+G.cy+G.y0),C<S&&W===j?t.arc(u+G.cx,d+G.cy,C,dw(G.y0,G.x0),dw(Z.y0,Z.x0),!c):(W>0&&t.arc(u+G.cx,d+G.cy,W,dw(G.y0,G.x0),dw(G.y1,G.x1),!c),t.arc(u,d,n,dw(G.cy+G.y1,G.cx+G.x1),dw(Z.cy+Z.y1,Z.cx+Z.x1),!c),j>0&&t.arc(u+Z.cx,d+Z.cy,j,dw(Z.y1,Z.x1),dw(Z.y0,Z.x0),!c))}else t.moveTo(u+E,d+O),t.arc(u,d,n,l,h,!c);else t.moveTo(u+E,d+O);if(r>1e-4&&R)if(T>1e-4){var W=dT(g,T),j=dT(_,T),G=dM(P,L,M,D,r,-j,c),Z=dM(E,O,I,A,r,-W,c);t.lineTo(u+G.cx+G.x0,d+G.cy+G.y0),T<k&&W===j?t.arc(u+G.cx,d+G.cy,T,dw(G.y0,G.x0),dw(Z.y0,Z.x0),!c):(j>0&&t.arc(u+G.cx,d+G.cy,j,dw(G.y0,G.x0),dw(G.y1,G.x1),!c),t.arc(u,d,r,dw(G.cy+G.y1,G.cx+G.x1),dw(Z.cy+Z.y1,Z.cx+Z.x1),c),W>0&&t.arc(u+Z.cx,d+Z.cy,W,dw(Z.y1,Z.x1),dw(Z.y0,Z.x0),!c))}else t.lineTo(u+P,d+L),t.arc(u,d,r,h,l,c);else t.lineTo(u+P,d+L)}else t.moveTo(u,d);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(aT);dI.prototype.type="sector";let dA=dI;var dE=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},dO=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dE},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=2*Math.PI;t.moveTo(i+e.r,n),t.arc(i,n,e.r,0,r,!1),t.moveTo(i+e.r0,n),t.arc(i,n,e.r0,0,r,!0)},e}(aT);dO.prototype.type="ring";let dP=dO;function dL(t,e,i){var n=e.smooth,r=e.points;if(r&&r.length>=2){if(n){var o=function(t,e,i,n){var r,o,a,s,l=[],h=[],u=[],d=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var c=0,p=t.length;c<p;c++)el(a,a,t[c]),eh(s,s,t[c]);el(a,a,n[0]),eh(s,s,n[1])}for(var c=0,p=t.length;c<p;c++){var f,g,_,m=t[c];if(i)r=t[c?c-1:p-1],o=t[(c+1)%p];else if(0===c||c===p-1){l.push([(f=t[c])[0],f[1]]);continue}else r=t[c-1],o=t[c+1];g=o,_=r,h[0]=g[0]-_[0],h[1]=g[1]-_[1],er(h,h,e);var v=eo(m,r),y=eo(m,o),b=v+y;0!==b&&(v/=b,y/=b),er(u,h,-v),er(d,h,y);var x=en([],m,u),w=en([],m,d);n&&(eh(x,x,a),el(x,x,s),eh(w,w,a),el(w,w,s)),l.push(x),l.push(w)}return i&&l.push(l.shift()),l}(r,n,i,e.smoothConstraint);t.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(i?a:a-1);s++){var l=o[2*s],h=o[2*s+1],u=r[(s+1)%a];t.bezierCurveTo(l[0],l[1],h[0],h[1],u[0],u[1])}}else{t.moveTo(r[0][0],r[0][1]);for(var s=1,d=r.length;s<d;s++)t.lineTo(r[s][0],r[s][1])}i&&t.closePath()}}var dR=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},dN=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultShape=function(){return new dR},e.prototype.buildPath=function(t,e){dL(t,e,!0)},e}(aT);dN.prototype.type="polygon";let dz=dN;var dB=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},dV=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dB},e.prototype.buildPath=function(t,e){dL(t,e,!1)},e}(aT);dV.prototype.type="polyline";let dF=dV;var dH={},dY=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},d$=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dY},e.prototype.buildPath=function(t,e){if(this.subPixelOptimize){var i,n,r,o,a=aL(dH,e,this.style);i=a.x1,n=a.y1,r=a.x2,o=a.y2}else i=e.x1,n=e.y1,r=e.x2,o=e.y2;var s=e.percent;0!==s&&(t.moveTo(i,n),s<1&&(r=i*(1-s)+r*s,o=n*(1-s)+o*s),t.lineTo(r,o))},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}(aT);d$.prototype.type="line";let dU=d$;var dW=[],dj=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function dG(t,e,i){var n=t.cpx2,r=t.cpy2;return null!=n||null!=r?[(i?iP:iO)(t.x1,t.cpx1,t.cpx2,t.x2,e),(i?iP:iO)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(i?iB:iz)(t.x1,t.cpx1,t.x2,e),(i?iB:iz)(t.y1,t.cpy1,t.y2,e)]}var dZ=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dj},e.prototype.buildPath=function(t,e){var i=e.x1,n=e.y1,r=e.x2,o=e.y2,a=e.cpx1,s=e.cpy1,l=e.cpx2,h=e.cpy2,u=e.percent;0!==u&&(t.moveTo(i,n),null==l||null==h?(u<1&&(iF(i,a,r,u,dW),a=dW[1],r=dW[2],iF(n,s,o,u,dW),s=dW[1],o=dW[2]),t.quadraticCurveTo(a,s,r,o)):(u<1&&(iN(i,a,l,r,u,dW),a=dW[1],l=dW[2],r=dW[3],iN(n,s,h,o,u,dW),s=dW[1],h=dW[2],o=dW[3]),t.bezierCurveTo(a,s,l,h,r,o)))},e.prototype.pointAt=function(t){return dG(this.shape,t,!1)},e.prototype.tangentAt=function(t){var e,i=dG(this.shape,t,!0),n=Math.sqrt((e=i)[0]*e[0]+e[1]*e[1]);return 0===n?(i[0]=0,i[1]=0):(i[0]=i[0]/n,i[1]=i[1]/n),i},e}(aT);dZ.prototype.type="bezier-curve";let dq=dZ;var dX=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},dK=function(t){function e(e){return t.call(this,e)||this}return et(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new dX},e.prototype.buildPath=function(t,e){var i=e.cx,n=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),h=Math.sin(o);t.moveTo(l*r+i,h*r+n),t.arc(i,n,r,o,a,!s)},e}(aT);dK.prototype.type="arc";let dQ=dK,dJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="compound",e}return et(e,t),e.prototype._updatePathDirty=function(){for(var t=this.shape.paths,e=this.shapeChanged(),i=0;i<t.length;i++)e=e||t[i].shapeChanged();e&&this.dirtyShape()},e.prototype.beforeBrush=function(){this._updatePathDirty();for(var t=this.shape.paths||[],e=this.getGlobalScale(),i=0;i<t.length;i++)t[i].path||t[i].createPathProxy(),t[i].path.setScale(e[0],e[1],t[i].segmentIgnoreThreshold)},e.prototype.buildPath=function(t,e){for(var i=e.paths||[],n=0;n<i.length;n++)i[n].buildPath(t,i[n].shape,!0)},e.prototype.afterBrush=function(){for(var t=this.shape.paths||[],e=0;e<t.length;e++)t[e].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),aT.prototype.getBoundingRect.call(this)},e}(aT);var d0=function(){function t(t){this.colorStops=t||[]}return t.prototype.addColorStop=function(t,e){this.colorStops.push({offset:t,color:e})},t}();let d1=function(t){function e(e,i,n,r,o,a){var s=t.call(this,o)||this;return s.x=null==e?0:e,s.y=null==i?0:i,s.x2=null==n?1:n,s.y2=null==r?0:r,s.type="linear",s.global=a||!1,s}return et(e,t),e}(d0),d2=function(t){function e(e,i,n,r,o){var a=t.call(this,r)||this;return a.x=null==e?.5:e,a.y=null==i?.5:i,a.r=null==n?.5:n,a.type="radial",a.global=o||!1,a}return et(e,t),e}(d0);var d5=Math.min,d3=Math.max,d4=Math.abs,d6=[0,0],d7=[0,0],d8=it(),d9=d8.minTv,ct=d8.maxTv;let ce=function(){function t(t,e){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new eY;for(var i=0;i<2;i++)this._axes[i]=new eY;t&&this.fromBoundingRect(t,e)}return t.prototype.fromBoundingRect=function(t,e){var i=this._corners,n=this._axes,r=t.x,o=t.y,a=r+t.width,s=o+t.height;if(i[0].set(r,o),i[1].set(a,o),i[2].set(a,s),i[3].set(r,s),e)for(var l=0;l<4;l++)i[l].transform(e);eY.sub(n[0],i[1],i[0]),eY.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var l=0;l<2;l++)this._origin[l]=n[l].dot(i[0])},t.prototype.intersect=function(t,e,i){var n=!0,r=!e;return(e&&eY.set(e,0,0),d8.reset(i,!r),!this._intersectCheckOneSide(this,t,r,1)&&(n=!1,r)||!this._intersectCheckOneSide(t,this,r,-1)&&(n=!1,r))?n:(r||d8.negativeSize||eY.copy(e,n?d8.useDir?d8.dirMinTv:d9:ct),n)},t.prototype._intersectCheckOneSide=function(t,e,i,n){for(var r=!0,o=0;o<2;o++){var a=t._axes[o];if(t._getProjMinMaxOnAxis(o,t._corners,d6),t._getProjMinMaxOnAxis(o,e._corners,d7),d8.negativeSize||d6[1]<d7[0]||d6[0]>d7[1]){if(r=!1,d8.negativeSize||i)return r;var s=d4(d7[0]-d6[1]),l=d4(d6[0]-d7[1]);d5(s,l)>ct.len()&&(s<l?eY.scale(ct,a,-s*n):eY.scale(ct,a,l*n))}else if(!i){var s=d4(d7[0]-d6[1]),l=d4(d6[0]-d7[1]);(d8.useDir||d5(s,l)<d9.len())&&((s<l||!d8.bidirectional)&&(eY.scale(d9,a,s*n),d8.useDir&&d8.calcDirMTV()),(s>=l||!d8.bidirectional)&&(eY.scale(d9,a,-l*n),d8.useDir&&d8.calcDirMTV()))}}return r},t.prototype._getProjMinMaxOnAxis=function(t,e,i){for(var n=this._axes[t],r=this._origin,o=e[0].dot(n)+r[t],a=o,s=o,l=1;l<e.length;l++){var h=e[l].dot(n)+r[t];a=d5(h,a),s=d3(h,s)}i[0]=a+d8.touchThreshold,i[1]=s-d8.touchThreshold,d8.negativeSize=i[1]<i[0]},t}();var ci=[];let cn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.notClear=!0,e.incremental=1,e._displayables=[],e._temporaryDisplayables=[],e._cursor=0,e}return et(e,t),e.prototype.traverse=function(t,e){t.call(e,this)},e.prototype.useStyle=function(){this.style={}},e.prototype._useHoverStyle=function(){this.__hoverStyle=null},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 i=0;i<t.length;i++)this.addDisplayable(t[i],e)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.prototype.eachPendingDisplayable=function(t){for(var e=this._cursor;e<this._displayables.length;e++)t&&t(this._displayables[e]);for(var e=0;e<this._temporaryDisplayables.length;e++)t&&t(this._temporaryDisplayables[e])},e.prototype.update=function(){this.updateTransform();for(var t=this._cursor;t<this._displayables.length;t++){var e=this._displayables[t];e.parent=this,e.update(),e.parent=null}for(var t=0;t<this._temporaryDisplayables.length;t++){var e=this._temporaryDisplayables[t];e.parent=this,e.update(),e.parent=null}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var t=new ie(1/0,1/0,-1/0,-1/0),e=0;e<this._displayables.length;e++){var i=this._displayables[e],n=i.getBoundingRect().clone();i.needLocalTransform()&&n.applyTransform(i.getLocalTransform(ci)),t.union(n)}this._rect=t}return this._rect},e.prototype.contain=function(t,e){var i=this.transformCoordToLocal(t,e);if(this.getBoundingRect().contain(i[0],i[1])){for(var n=0;n<this._displayables.length;n++)if(this._displayables[n].contain(t,e))return!0}return!1},e}(oU);var cr=rX();function co(t,e,i,n,r){if(e&&e.ecModel){var o,a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l="update"===t;if(!s)return null;var h=void 0,u=void 0,d=void 0;return n?(h=tG(n.duration,200),u=tG(n.easing,"cubicOut"),d=0):(h=e.getShallow(l?"animationDurationUpdate":"animationDuration"),u=e.getShallow(l?"animationEasingUpdate":"animationEasing"),d=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(null!=o.duration&&(h=o.duration),null!=o.easing&&(u=o.easing),null!=o.delay&&(d=o.delay)),tz(d)&&(d=d(i,r)),tz(h)&&(h=h(i)),{duration:h||0,delay:d,easing:u}}function ca(t,e,i,n,r,o,a){var s,l=!1;tz(r)?(a=o,o=r,r=null):tH(r)&&(o=r.cb,a=r.during,l=r.isFrom,s=r.removeOpt,r=r.dataIndex);var h="leave"===t;h||e.stopAnimation("leave");var u=co(t,n,r,h?s||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(e,r):null);if(u&&u.duration>0){var d={duration:u.duration,delay:u.delay||0,easing:u.easing,done:o,force:!!o||!!a,setToFinal:!h,scope:t,during:a};l?e.animateFrom(i,d):e.animateTo(i,d)}else e.stopAnimation(),l||e.attr(i),a&&a(1),o&&o()}function cs(t,e,i,n,r,o){ca("update",t,e,i,n,r,o)}function cl(t,e,i,n,r,o){ca("enter",t,e,i,n,r,o)}function ch(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++)if("leave"===t.animators[e].scope)return!0;return!1}function cu(t,e,i,n,r,o){ch(t)||ca("leave",t,e,i,n,r,o)}function cd(t,e,i,n){t.removeTextContent(),t.removeTextGuideLine(),cu(t,{style:{opacity:0}},e,i,n)}function cc(t,e,i){function n(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||cd(t,e,i,n)}):cd(t,e,i,n)}var cp={},cf=["x","y"],cg=["width","height"],c_=0,cm=1,cv=2;function cy(t){return aT.extend(t)}var cb=function(t,e){var i=dh(t,e),n=ds;function r(t){var e=n.call(this,t)||this;return e.applyTransform=i.applyTransform,e.buildPath=i.buildPath,e}return et(r,n),r};function cx(t,e){return cb(t,e)}function cw(t,e){cp[t]=e}function cS(t){if(cp.hasOwnProperty(t))return cp[t]}function ck(t,e,i,n){var r=new ds(dh(t,e));return i&&("center"===n&&(i=cT(i,r.getBoundingRect())),cD(r,i)),r}function cC(t,e,i){var n=new aO({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(t){if("center"===i){var r={width:t.width,height:t.height};n.setStyle(cT(e,r))}}});return n}function cT(t,e){var i,n=e.width/e.height,r=t.height*n;return i=r<=t.width?t.height:(r=t.width)/n,{x:t.x+t.width/2-r/2,y:t.y+t.height/2-i/2,width:r,height:i}}var cM=function(t,e){for(var i=[],n=t.length,r=0;r<n;r++){var o=t[r];i.push(o.getUpdatedPathProxy(!0))}var a=new aT(e);return a.createPathProxy(),a.buildPath=function(t){if(dl(t)){t.appendPath(i);var e=t.getContext();e&&t.rebuildPath(e,1)}},a};function cD(t,e){if(t.applyTransform){var i=t.getBoundingRect().calculateTransform(e);t.applyTransform(i)}}function cI(t,e){return aL(t,t,{lineWidth:e}),t}function cA(t,e){return aR(t,t,e),t}var cE=aN;function cO(t,e){for(var i=eN([]);t&&t!==e;)eB(i,t.getLocalTransform(),i),t=t.parent;return i}function cP(t,e,i){return e&&!tD(e)&&(e=nV.getLocalTransform(e)),i&&(e=eH([],e)),es([],t,e)}function cL(t,e,i){var n=0===e[4]||0===e[5]||0===e[0]?1:ru(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:ru(2*e[4]/e[2]),o=["left"===t?-n:"right"===t?n:0,"top"===t?-r:"bottom"===t?r:0];return ru((o=cP(o,e,i))[0])>ru(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function cR(t,e,i){if(t&&e){var n,r=(n={},t.traverse(function(t){!t.isGroup&&t.anid&&(n[t.anid]=t)}),n);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=r[t.anid];if(e){var n=o(t);t.attr(o(e)),cs(t,n,i,a2(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return null!=t.shape&&(e.shape=tw(t.shape)),e}}function cN(t,e){return tA(t,function(t){var i=t[0];i=rl(i=rh(i,e.x),e.x+e.width);var n=t[1];return[i,n=rl(n=rh(n,e.y),e.y+e.height)]})}function cz(t,e){var i=rh(t.x,e.x),n=rl(t.x+t.width,e.x+e.width),r=rh(t.y,e.y),o=rl(t.y+t.height,e.y+e.height);if(n>=i&&o>=r)return{x:i,y:r,width:n-i,height:o-r}}function cB(t,e,i){var n=tk({rectHover:!0},e),r=n.style={strokeNoScale:!0};if(i=i||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),tC(r,i),new aO(n)):ck(t.replace("path://",""),n,i,"center")}function cV(t,e,i,n,r){for(var o=0,a=r[r.length-1];o<r.length;o++){var s=r[o];if(cF(t,e,i,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function cF(t,e,i,n,r,o,a,s){var l,h=i-t,u=n-e,d=a-r,c=s-o,p=d*u-h*c;if((l=p)<=1e-6&&l>=-1e-6)return!1;var f=t-r,g=e-o,_=(f*u-h*g)/p;if(_<0||_>1)return!1;var m=(f*c-d*g)/p;return!(m<0)&&!(m>1)}function cH(t,e,i,n,r){return null==e||(tF(e)?cY[0]=cY[1]=cY[2]=cY[3]=e:(cY[0]=e[0],cY[1]=e[1],cY[2]=e[2],cY[3]=e[3]),n&&(cY[0]=rh(0,cY[0]),cY[1]=rh(0,cY[1]),cY[2]=rh(0,cY[2]),cY[3]=rh(0,cY[3])),i&&(cY[0]=-cY[0],cY[1]=-cY[1],cY[2]=-cY[2],cY[3]=-cY[3]),c$(t,cY,"x","width",3,1,r&&r[0]||0),c$(t,cY,"y","height",0,2,r&&r[1]||0)),t}var cY=[0,0,0,0];function c$(t,e,i,n,r,o,a){var s=e[o]+e[r],l=t[n];t[n]+=s,a=rh(0,rl(a,l)),t[n]<a?(t[n]=a,t[i]+=e[r]>=0?-e[r]:e[o]>=0?l+e[o]:ru(s)>1e-8?(l-a)*e[r]/s:0):t[i]-=e[r]}function cU(t){var e=t.itemTooltipOption,i=t.componentModel,n=t.itemName,r=tB(e)?{formatter:e}:e,o=i.mainType,a=i.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tI(tP(l),function(t){t6(s,t)||(s[t]=l[t],s.$vars.push(t))});var h=a2(t.el);h.componentMainType=o,h.componentIndex=a,h.tooltipConfig={name:n,option:tC({content:n,encodeHTMLContent:!0,formatterParams:s},r)}}function cW(t,e){var i;t.isGroup&&(i=e(t)),i||t.traverse(e)}function cj(t,e){if(t)if(tN(t))for(var i=0;i<t.length;i++)cW(t[i],e);else cW(t,e)}function cG(t){return!t||ru(t[1])<cZ&&ru(t[2])<cZ||ru(t[0])<cZ&&ru(t[3])<cZ}var cZ=1e-5;function cq(t,e){return t?ie.copy(t,e):e.clone()}function cX(t,e){return e?ez(t||eR(),e):void 0}function cK(t){return{z:t.get("z")||0,zlevel:t.get("zlevel")||0}}function cQ(t){var e=-1/0,i=1/0;function n(t){if(t&&!t.isGroup){var e=t.currentStates;if(e.length)for(var i=0;i<e.length;i++)r(t.states[e[i]]);r(t)}}function r(t){if(t){var n=t.z2;n>e&&(e=n),n<i&&(i=n)}}return cW(t,function(t){n(t),n(t.getTextContent()),n(t.getTextGuideLine())}),i>e&&(i=e=0),{min:i,max:e}}function cJ(t,e,i){!function t(e,i,n,r){if(e.ignoreModelZ)return r;var o=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var s=e.childrenRef(),l=0;l<s.length;l++)r=rh(t(s[l],i,n,r),r);else e.z=i,e.zlevel=n,r=rh(e.z2||0,r);if(o&&(o.z=i,o.zlevel=n,isFinite(r)&&(o.z2=r+2)),a){var h=e.textGuideLineConfig;a.z=i,a.zlevel=n,isFinite(r)&&(a.z2=r+(h&&h.showAbove?1:-1))}return r}(t,e,i,-1/0)}function c0(t){return t.animation={duration:0},t}function c1(t,e){return e?ez(c2.transform,e):eN(c2.transform),c2.decomposeTransform(),nY(t,c2),t}var c2=new nV;function c5(t){var e=t.getZr().painter;return"canvas"===e.getType()?e:null}c2.transform=eR(),cp.circle=dp,cp.ellipse=d_,cp.sector=dA,cp.ring=dP,cp.polygon=dz,cp.polyline=dF,cp.rect=aF,cp.line=dU,cp.bezierCurve=dq,cp.arc=dQ;var c3=rX(),c4=u0(),c6=function(){function t(){this.group=new rn,this.uid=lh("viewChart"),this.renderTask=uo({plan:c9,reset:pt}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,i,n){},t.prototype.highlight=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&c8(r,n,"emphasis")},t.prototype.downplay=function(t,e,i,n){var r=t.getData(n&&n.dataType);r&&c8(r,n,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.updateVisual=function(t,e,i,n){this.render(t,e,i,n)},t.prototype.eachRendered=function(t){cj(this.group,t)},t.markUpdateMethod=function(t,e){c3(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function c7(t,e,i){t&&sj(t)&&("emphasis"===e?sO:sP)(t,i)}function c8(t,e,i){var n,r,o=rq(t,e),a=e&&null!=e.highlightKey?(null==(r=ss[n=e.highlightKey])&&sa<=32&&(r=ss[n]=sa++),r):null;null!=o?tI(rF(o),function(e){c7(t.getItemGraphicEl(e),i,a)}):t.eachItemGraphicEl(function(t){c7(t,i,a)})}function c9(t){return c4(t.model)}function pt(t){var e=t.model,i=t.ecModel,n=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&c3(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,i,n,r),pe[l]}od(c6,["dispose"]),o_(c6);var pe={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},pi="\0__throttleOriginMethod",pn="\0__throttleRate",pr="\0__throttleType";function po(t,e,i){var n,r,o,a,s,l=0,h=0,u=null;function d(){h=new Date().getTime(),u=null,t.apply(o,a||[])}e=e||0;var c=function(){for(var t=[],c=0;c<arguments.length;c++)t[c]=arguments[c];n=new Date().getTime(),o=this,a=t;var p=s||e,f=s||i;s=null,r=n-(f?l:h)-p,clearTimeout(u),f?u=setTimeout(d,p):r>=0?d():u=setTimeout(d,-r),l=n};return c.clear=function(){u&&(clearTimeout(u),u=null)},c.debounceNextCall=function(t){s=t},c}function pa(t,e,i,n){var r=t[e];if(r){var o=r[pi]||r,a=r[pr];if(r[pn]!==i||a!==n){if(null==i||!n)return t[e]=o;(r=t[e]=po(o,i,"debounce"===n))[pi]=o,r[pr]=n,r[pn]=i}return r}}function ps(t,e){var i=t[e];i&&i[pi]&&(i.clear&&i.clear(),t[e]=i[pi])}var pl=rX(),ph={itemStyle:om(lr,!0),lineStyle:om(le,!0)},pu={lineStyle:"stroke",itemStyle:"fill"};function pd(t,e){var i=t.visualStyleMapper||ph[e];return i||(console.warn("Unknown style type '"+e+"'."),ph.itemStyle)}function pc(t,e){var i=t.visualDrawType||pu[e];return i||(console.warn("Unknown style type '"+e+"'."),"fill")}var pp=new ls,pf=Math.PI,pg=function(){function t(t,e,i,n){this._stageTaskMap=t5(),this.ecInstance=t,this.api=e,i=this._dataProcessorHandlers=i.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=i.concat(n)}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 i=this._pipelineMap.get(t.__pipeline.id),n=i.context,r=!e&&i.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>i.blockIndex?i.step:null,o=n&&n.modDataCount,a=null!=o?Math.ceil(o/r):null;return{step:r,modBy:a,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var i,n=this._pipelineMap.get(t.uid),r=t.__preparePipelineContext?t.__preparePipelineContext(e,n):(i=t.getData().count(),{progressiveRender:n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,large:t.get("large")&&i>=t.get("largeThreshold"),modDataCount:"mod"===t.get("progressiveChunkMode")?t.getData().count():null});t.pipelineContext=n.context=r},t.prototype.restorePipelines=function(t,e){var i=this,n=i._pipelineMap=t5();e.eachSeries(function(e){var r="canvas"===t.painter.type&&e.getProgressive(),o=e.uid;n.set(o,{id:o,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||700),count:0}),i._pipe(e,e.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),i=this.api;tI(this._allHandlers,function(n){var r=t.get(n.uid)||t.set(n.uid,{});tK(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,r,e,i),n.overallReset&&this._createOverallStageTask(n,r,e,i)},this)},t.prototype.prepareView=function(t,e,i,n){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=i,o.api=n,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,i){this._performStageTasks(this._visualHandlers,t,e,i)},t.prototype._performStageTasks=function(t,e,i,n){n=n||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tI(t,function(t,s){if(!n.visualType||n.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),h=l.seriesTaskMap,u=l.overallTask;if(u){var d,c=u.agentStubMap;c.each(function(t){a(n,t)&&(t.dirty(),d=!0)}),d&&u.dirty(),o.updatePayload(u,i);var p=o.getPerformArgs(u,n.block);c.each(function(t){t.perform(p)}),u.perform(p)&&(r=!0)}else h&&h.each(function(s,l){a(n,s)&&s.dirty();var h=o.getPerformArgs(s,n.block);h.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,i),s.perform(h)&&(r=!0)})}}),this.unfinished=r||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,i,n){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=t5(),s=t.seriesType,l=t.getTargetSeries;function h(e){var s=e.uid,l=a.set(s,o&&o.get(s)||uo({plan:pb,reset:px,count:pk}));l.context={model:e,ecModel:i,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?i.eachRawSeries(h):s?i.eachRawSeriesByType(s,h):l&&l(i,n).each(h)},t.prototype._createOverallStageTask=function(t,e,i,n){var r=this,o=e.overallTask=e.overallTask||uo({reset:p_});o.context={ecModel:i,api:n,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=t5(),l=t.seriesType,h=t.getTargetSeries,u=t.dirtyOnOverallProgress,d=!1;function c(t){var e=t.uid,i=s.set(e,a&&a.get(e)||(d=!0,uo({reset:pm,onDirty:py})));i.context={model:t,dirtyOnOverallProgress:u},i.agent=o,i.__block=u,r._pipe(t,i)}tK(!t.createOnAllSeries,""),l?i.eachRawSeriesByType(l,c):h?h(i,n).each(c):tI(i.getSeries(),c),d&&o.dirty()},t.prototype._pipe=function(t,e){var i=t.uid,n=this._pipelineMap.get(i);n.head||(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return tz(t)&&(t={overallReset:t,seriesType:function(t){C=null;try{t(pC,pT)}catch(t){}return C}(t)}),t.uid=lh("stageHandler"),e&&(t.visualType=e),t},t}();function p_(t){t.overallReset(t.ecModel,t.api,t.payload)}function pm(t){return t.dirtyOnOverallProgress&&pv}function pv(){this.agent.dirty(),this.getDownstream().dirty()}function py(){this.agent&&this.agent.dirty()}function pb(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function px(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=rF(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?tA(e,function(t,e){return pS(e)}):pw}var pw=pS(0);function pS(t){return function(e,i){var n=i.data,r=i.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o<e.end;o++)r.dataEach(n,o);else r&&r.progress&&r.progress(e,n)}}function pk(t){return t.data.count()}var pC={},pT={};function pM(t,e){for(var i in e.prototype)t[i]=t7}pM(pC,hb),pM(pT,so),pC.eachSeriesByType=pC.eachRawSeriesByType=function(t){C=t},pC.eachComponent=function(t){"series"===t.mainType&&t.subType&&(C=t.subType)};var pD=hn.darkColor,pI=pD.background,pA=function(){return{axisLine:{lineStyle:{color:pD.axisLine}},splitLine:{lineStyle:{color:pD.axisSplitLine}},splitArea:{areaStyle:{color:[pD.backgroundTint,pD.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:pD.axisMinorSplitLine}},axisLabel:{color:pD.axisLabel},axisName:{}}},pE={label:{color:pD.secondary},itemStyle:{borderColor:pD.borderTint},dividerLineStyle:{color:pD.border}},pO={darkMode:!0,color:pD.theme,backgroundColor:pI,axisPointer:{lineStyle:{color:pD.border},crossStyle:{color:pD.borderShade},label:{color:pD.tertiary}},legend:{textStyle:{color:pD.secondary},pageTextStyle:{color:pD.tertiary}},textStyle:{color:pD.secondary},title:{textStyle:{color:pD.primary},subtextStyle:{color:pD.quaternary}},toolbox:{iconStyle:{borderColor:pD.accent50},feature:{dataView:{backgroundColor:pI,textColor:pD.primary,textareaColor:pD.background,textareaBorderColor:pD.border,buttonColor:pD.accent50,buttonTextColor:pD.neutral00}}},tooltip:{backgroundColor:pD.neutral20,defaultBorderColor:pD.border,textStyle:{color:pD.tertiary}},dataZoom:{borderColor:pD.accent10,textStyle:{color:pD.tertiary},brushStyle:{color:pD.backgroundTint},handleStyle:{color:pD.neutral00,borderColor:pD.accent20},moveHandleStyle:{color:pD.accent40},emphasis:{handleStyle:{borderColor:pD.accent50}},dataBackground:{lineStyle:{color:pD.accent30},areaStyle:{color:pD.accent20}},selectedDataBackground:{lineStyle:{color:pD.accent50},areaStyle:{color:pD.accent30}}},visualMap:{textStyle:{color:pD.secondary},handleStyle:{borderColor:pD.neutral30}},timeline:{lineStyle:{color:pD.accent10},label:{color:pD.tertiary},controlStyle:{color:pD.accent30,borderColor:pD.accent30}},calendar:{itemStyle:{color:pD.neutral00,borderColor:pD.neutral20},dayLabel:{color:pD.tertiary},monthLabel:{color:pD.secondary},yearLabel:{color:pD.secondary}},matrix:{x:pE,y:pE,backgroundColor:{borderColor:pD.axisLine},body:{itemStyle:{borderColor:pD.borderTint}}},timeAxis:pA(),logAxis:pA(),valueAxis:pA(),categoryAxis:pA(),line:{symbol:"circle"},graph:{color:pD.theme},gauge:{title:{color:pD.secondary},axisLine:{lineStyle:{color:[[1,pD.neutral05]]}},axisLabel:{color:pD.axisLabel},detail:{color:pD.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:pD.background}},radar:((c=pA()).axisName={color:pD.axisLabel},c.axisLine.lineStyle.color=pD.neutral20,c),treemap:{breadcrumb:{itemStyle:{color:pD.neutral20,textStyle:{color:pD.secondary}},emphasis:{itemStyle:{color:pD.neutral30}}}},sunburst:{itemStyle:{borderColor:pD.background}},map:{itemStyle:{borderColor:pD.border,areaColor:pD.neutral10},label:{color:pD.tertiary},emphasis:{label:{color:pD.primary},itemStyle:{areaColor:pD.highlight}},select:{label:{color:pD.primary},itemStyle:{areaColor:pD.highlight}}},geo:{itemStyle:{borderColor:pD.border,areaColor:pD.neutral10},emphasis:{label:{color:pD.primary},itemStyle:{areaColor:pD.highlight}},select:{label:{color:pD.primary},itemStyle:{color:pD.highlight}}}};pO.categoryAxis.splitLine.show=!1;var pP=function(){function t(){}return t.prototype.normalizeQuery=function(t){var e={},i={},n={};if(tB(t)){var r=ou(t);e.mainType=r.main||null,e.subType=r.sub||null}else{var o=["Index","Name","Id"],a={name:1,dataIndex:1,dataType:1};tI(t,function(t,r){for(var s=!1,l=0;l<o.length;l++){var h=o[l],u=r.lastIndexOf(h);if(u>0&&u===r.length-h.length){var d=r.slice(0,u);"data"!==d&&(e.mainType=d,e[h.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(i[r]=t,s=!0),s||(n[r]=t)})}return{cptQuery:e,dataQuery:i,otherQuery:n}},t.prototype.filter=function(t,e){var i=this.eventInfo;if(!i)return!0;var n=i.targetEl,r=i.packedEvent,o=i.model,a=i.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return h(s,o,"mainType")&&h(s,o,"subType")&&h(s,o,"index","componentIndex")&&h(s,o,"name")&&h(s,o,"id")&&h(l,r,"name")&&h(l,r,"dataIndex")&&h(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,n,r));function h(t,e,i,n){return null==t[i]||e[n||i]===t[i]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),pL=["symbol","symbolSize","symbolRotate","symbolOffset"],pR=pL.concat(["symbolKeepAspect"]);function pN(t,e,i,n,r){var o=t+e;i.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,n=t.option.selectedMap,a=r.selected,s=0;s<a.length;s++)if(a[s].seriesIndex===e){var l=t.getData(),h=rq(l,r.fromActionPayload);i.trigger(o,{type:o,seriesId:t.id,name:tN(h)?l.getName(h[0]):l.getName(h),selected:tB(n)?n:tk({},n)})}})}function pz(t,e,i){for(var n;t&&(!e(t)||(n=t,!i));)t=t.__hostTarget||t.parent;return n}var pB=new ec,pV={},pF=rX();function pH(t){return pF(t).fullUpdate}var pY=Math.round(9*Math.random()),p$="function"==typeof Object.defineProperty,pU=function(){function t(){this._id="__ec_inner_"+pY++}return t.prototype.get=function(t){return this._guard(t)[this._id]},t.prototype.set=function(t,e){var i=this._guard(t);return p$?Object.defineProperty(i,this._id,{value:e,enumerable:!1,configurable:!0}):i[this._id]=e,this},t.prototype.delete=function(t){return!!this.has(t)&&(delete this._guard(t)[this._id],!0)},t.prototype.has=function(t){return!!this._guard(t)[this._id]},t.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},t}(),pW=aT.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n+o),t.lineTo(i-r,n+o),t.closePath()}}),pj=aT.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var i=e.cx,n=e.cy,r=e.width/2,o=e.height/2;t.moveTo(i,n-o),t.lineTo(i+r,n),t.lineTo(i,n+o),t.lineTo(i-r,n),t.closePath()}}),pG=aT.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.x,n=e.y,r=e.width/5*3,o=Math.max(r,e.height),a=r/2,s=a*a/(o-a),l=n-o+a+s,h=Math.asin(s/a),u=Math.cos(h)*a,d=Math.sin(h),c=Math.cos(h),p=.6*a,f=.7*a;t.moveTo(i-u,l+s),t.arc(i,l,a,Math.PI-h,2*Math.PI+h),t.bezierCurveTo(i+u-d*p,l+s+c*p,i,n-f,i,n),t.bezierCurveTo(i,n-f,i-u+d*p,l+s+c*p,i-u,l+s),t.closePath()}}),pZ=aT.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var i=e.height,n=e.width,r=e.x,o=e.y,a=n/3*2;t.moveTo(r,o),t.lineTo(r+a,o+i),t.lineTo(r,o+i/4*3),t.lineTo(r-a,o+i),t.lineTo(r,o),t.closePath()}}),pq={line:function(t,e,i,n,r){r.x1=t,r.y1=e+n/2,r.x2=t+i,r.y2=e+n/2},rect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n},roundRect:function(t,e,i,n,r){r.x=t,r.y=e,r.width=i,r.height=n,r.r=Math.min(i,n)/4},square:function(t,e,i,n,r){var o=Math.min(i,n);r.x=t,r.y=e,r.width=o,r.height=o},circle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.r=Math.min(i,n)/2},diamond:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n},pin:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},arrow:function(t,e,i,n,r){r.x=t+i/2,r.y=e+n/2,r.width=i,r.height=n},triangle:function(t,e,i,n,r){r.cx=t+i/2,r.cy=e+n/2,r.width=i,r.height=n}},pX={};tI({line:dU,rect:aF,roundRect:aF,square:aF,circle:dp,diamond:pj,pin:pG,arrow:pZ,triangle:pW},function(t,e){pX[e]=new t});var pK=aT.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,i){var n=nJ(t,e,i),r=this.shape;return r&&"pin"===r.symbolType&&"inside"===e.position&&(n.y=i.y+.4*i.height),n},buildPath:function(t,e,i){var n=e.symbolType;if("none"!==n){var r=pX[n];r||(r=pX[n="rect"]),pq[n](e.x,e.y,e.width,e.height,r.shape),r.buildPath(t,r.shape,i)}}});function pQ(t,e){if("image"!==this.type){var i=this.style;this.__isEmptyBrush?(i.stroke=t,i.fill=e||hn.color.neutral00,i.lineWidth=2):"line"===this.shape.symbolType?i.stroke=t:i.fill=t,this.markRedraw()}}function pJ(t,e,i,n,r,o,a){var s,l=0===t.indexOf("empty");return l&&(t=t.substr(5,1).toLowerCase()+t.substr(6)),(s=0===t.indexOf("image://")?cC(t.slice(8),new ie(e,i,n,r),a?"center":"cover"):0===t.indexOf("path://")?ck(t.slice(7),{},new ie(e,i,n,r),a?"center":"cover"):new pK({shape:{symbolType:t,x:e,y:i,width:n,height:r}})).__isEmptyBrush=l,s.setColor=pQ,o&&s.setColor(o),s}function p0(t,e){if(null!=t)return tN(t)||(t=[t,t]),[rb(t[0],e[0])||0,rb(tG(t[1],t[0]),e[1])||0]}function p1(t){return isFinite(t)}function p2(t,e,i){for(var n,r,o,a,s,l,h,u,d,c,p="radial"===e.type?(o=Math.min(n=i.width,r=i.height),a=null==e.x?.5:e.x,s=null==e.y?.5:e.y,l=null==e.r?.5:e.r,e.global||(a=a*n+i.x,s=s*r+i.y,l*=o),a=p1(a)?a:.5,s=p1(s)?s:.5,l=l>=0&&p1(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)):(h=null==e.x?0:e.x,u=null==e.x2?1:e.x2,d=null==e.y?0:e.y,c=null==e.y2?0:e.y2,e.global||(h=h*i.width+i.x,u=u*i.width+i.x,d=d*i.height+i.y,c=c*i.height+i.y),h=p1(h)?h:0,u=p1(u)?u:1,d=p1(d)?d:0,c=p1(c)?c:0,t.createLinearGradient(h,d,u,c)),f=e.colorStops,g=0;g<f.length;g++)p.addColorStop(f[g].offset,f[g].color);return p}function p5(t){return parseInt(t,10)}function p3(t,e,i){var n=["width","height"][e],r=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(null!=i[n]&&"auto"!==i[n])return parseFloat(i[n]);var s=document.defaultView.getComputedStyle(t);return(t[r]||p5(s[n])||p5(t.style[n]))-(p5(s[o])||0)-(p5(s[a])||0)||0}function p4(t){var e,i,n=t.style,r=n.lineDash&&n.lineWidth>0&&(e=n.lineDash,i=n.lineWidth,e&&"solid"!==e&&i>0?"dashed"===e?[4*i,2*i]:"dotted"===e?[i]:tF(e)?[e]:tN(e)?e:null:null),o=n.lineDashOffset;if(r){var a=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=tA(r,function(t){return t/a}),o/=a)}return[r,o]}var p6=new ac(!0);function p7(t){var e=t.stroke;return null!=e&&"none"!==e&&t.lineWidth>0}function p8(t){return"string"==typeof t&&"none"!==t}function p9(t){var e=t.fill;return null!=e&&"none"!==e}function ft(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function fe(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function fi(t,e,i){var n=ox(e.image,e.__image,i);if(oS(n)){var r=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*t8),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var fn=["shadowBlur","shadowOffsetX","shadowOffsetY"],fr=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function fo(t,e,i,n,r){var o=!1;if(!n&&e===(i=i||{}))return!1;if(n||e.opacity!==i.opacity){fl(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?oF.opacity:a}(n||e.blend!==i.blend)&&(o||(fl(t,r),o=!0),t.globalCompositeOperation=e.blend||oF.blend);for(var s=0;s<fn.length;s++){var l=fn[s];(n||e[l]!==i[l])&&(o||(fl(t,r),o=!0),t[l]=t.dpr*(e[l]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(fl(t,r),o=!0),t.shadowColor=e.shadowColor||oF.shadowColor),o}function fa(t,e,i,n,r){var o=e.style,a=n?null:i&&i.style||{};if(o===a)return!1;var s=fo(t,o,a,n,r);if((n||o.fill!==a.fill)&&(s||(fl(t,r),s=!0),p8(o.fill)&&(t.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(fl(t,r),s=!0),p8(o.stroke)&&(t.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(fl(t,r),s=!0),t.globalAlpha=null==o.opacity?1:o.opacity),e.hasStroke()){var l=o.lineWidth/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(fl(t,r),s=!0),t.lineWidth=l)}for(var h=0;h<fr.length;h++){var u=fr[h],d=u[0];(n||o[d]!==a[d])&&(s||(fl(t,r),s=!0),t[d]=o[d]||u[1])}return s}function fs(t,e){var i=e.transform,n=t.dpr||1;i?t.setTransform(n*i[0],n*i[1],n*i[2],n*i[3],n*i[4],n*i[5]):t.setTransform(n,0,0,n,0,0)}function fl(t,e){e.batchFill&&(e.batchFill=!1,t.fill()),e.batchStroke&&(e.batchStroke=!1,t.stroke())}function fh(t,e){var i={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};fu(t,e,i),fd(t,i)}function fu(t,e,i){var n,r=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1)){e.__dirty&=-2,e.__isRendered=!1;return}var o=e.__clipPaths,a=i.prevElClipPaths,s=e.style,l=!1,h=!1;if((!a||function(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}(o,a))&&(a&&(fl(t,i),t.restore(),h=l=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),o&&o.length)){fl(t,i),t.save();for(var u=!1,d=0;d<o.length;d++){var c=o[d];u=u||c.isZeroArea(),fs(t,c),t.beginPath(),c.buildPath(t,c.shape),t.clip()}i.allClipped=u,l=!0,i.prevElClipPaths=o}if(i.allClipped){e.__dirty&=-2,e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(i.beforeBrushParam),e.innerBeforeBrush();var p=i.prevEl;p||(h=l=!0);var f=e instanceof aT&&e.autoBatch&&(g=p9(s),_=p7(s),!(s.lineDash||!(g^_)||g&&"string"!=typeof s.fill||_&&"string"!=typeof s.stroke||s.strokePercent<1||s.strokeOpacity<1||s.fillOpacity<1));if(!l&&(m=p.transform,r&&m?r[0]===m[0]&&r[1]===m[1]&&r[2]===m[2]&&r[3]===m[3]&&r[4]===m[4]&&r[5]===m[5]:+(!r&&!m))?f||fl(t,i):(fl(t,i),fs(t,e)),e instanceof aT)1!==i.lastDrawType&&(h=!0,i.lastDrawType=1),fa(t,e,p,h,i),f&&(i.batchFill||i.batchStroke)||t.beginPath(),function(t,e,i,n,r){var o,a,s,l=p7(i),h=p9(i),u=i.strokePercent,d=u<1,c=!e.path;(!e.silent||d)&&c&&e.createPathProxy();var p=e.path||p6,f=e.__dirty;if(!n){var g=i.fill,_=i.stroke,m=h&&!!g.colorStops,v=l&&!!_.colorStops,y=h&&!!g.image,b=l&&!!_.image,x=void 0,w=void 0,S=void 0,k=void 0,C=void 0;(m||v)&&(C=e.getBoundingRect()),m&&(x=f?p2(t,g,C):e.__canvasFillGradient,e.__canvasFillGradient=x),v&&(w=f?p2(t,_,C):e.__canvasStrokeGradient,e.__canvasStrokeGradient=w),y&&(S=f||!e.__canvasFillPattern?fi(t,g,e):e.__canvasFillPattern,e.__canvasFillPattern=S),b&&(k=f||!e.__canvasStrokePattern?fi(t,_,e):e.__canvasStrokePattern,e.__canvasStrokePattern=k),m?t.fillStyle=x:y&&(S?t.fillStyle=S:h=!1),v?t.strokeStyle=w:b&&(k?t.strokeStyle=k:l=!1)}var T=e.getGlobalScale();p.setScale(T[0],T[1],e.segmentIgnoreThreshold),t.setLineDash&&i.lineDash&&(a=(o=p4(e))[0],s=o[1]);var M=!0;(c||4&f)&&(p.setDPR(t.dpr),d?p.setContext(null):(p.setContext(t),M=!1),p.reset(),e.buildPath(p,e.shape,n),p.toStatic(),e.pathUpdated()),M&&p.rebuildPath(t,d?u:1),a&&(t.setLineDash(a),t.lineDashOffset=s),n?(r.batchFill=h,r.batchStroke=l):i.strokeFirst?(l&&fe(t,i),h&&ft(t,i)):(h&&ft(t,i),l&&fe(t,i)),a&&t.setLineDash([])}(t,e,s,f,i);else if(e instanceof aD){3!==i.lastDrawType&&(h=!0,i.lastDrawType=3),fa(t,e,p,h,i);var g,_,m,v,y=s.text;if(null!=y&&(y+=""),y){t.font=s.font||to,t.textAlign=s.textAlign,t.textBaseline=s.textBaseline;var b=void 0,x=void 0;t.setLineDash&&s.lineDash&&(b=(v=p4(e))[0],x=v[1]),b&&(t.setLineDash(b),t.lineDashOffset=x),s.strokeFirst?(p7(s)&&t.strokeText(y,s.x,s.y),p9(s)&&t.fillText(y,s.x,s.y)):(p9(s)&&t.fillText(y,s.x,s.y),p7(s)&&t.strokeText(y,s.x,s.y)),b&&t.setLineDash([])}}else e instanceof aO?(2!==i.lastDrawType&&(h=!0,i.lastDrawType=2),n=h,fo(t,e.style,p&&p.style,n,i),function(t,e,i){var n=e.__image=ox(i.image,e.__image,e,e.onload);if(n&&oS(n)){var r=i.x||0,o=i.y||0,a=e.getWidth(),s=e.getHeight(),l=n.width/n.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=n.width,s=n.height),i.sWidth&&i.sHeight){var h=i.sx||0,u=i.sy||0;t.drawImage(n,h,u,i.sWidth,i.sHeight,r,o,a,s)}else if(i.sx&&i.sy){var h=i.sx,u=i.sy,d=a-h,c=s-u;t.drawImage(n,h,u,d,c,r,o,a,s)}else t.drawImage(n,r,o,a,s)}}(t,e,s)):e.getTemporalDisplayables&&(4!==i.lastDrawType&&(h=!0,i.lastDrawType=4),function(t,e,i){var n,r,o=e.getDisplayables(),a=e.getTemporalDisplayables();t.save();var s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover,beforeBrushParam:{}};for(n=e.getCursor(),r=o.length;n<r;n++){var l=o[n];l.beforeBrush&&l.beforeBrush(i.beforeBrushParam),l.innerBeforeBrush(),fu(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}fd(t,s);for(var h=0,u=a.length;h<u;h++){var l=a[h];l.beforeBrush&&l.beforeBrush(i.beforeBrushParam),l.innerBeforeBrush(),fu(t,l,s),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),s.prevEl=l}fd(t,s),e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}(t,e,i));e.innerAfterBrush(),e.afterBrush&&(f&&fl(t,i),e.afterBrush()),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}function fd(t,e){fl(t,e),e.prevElClipPaths&&t.restore()}var fc=new pU,fp=new ij(100),ff=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function fg(t,e){if("none"===t)return null;var i=e.getDevicePixelRatio(),n=e.getZr(),r="svg"===n.painter.type;t.dirty&&fc.delete(t);var o=fc.get(t);if(o)return o;var a=tC(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"===a.backgroundColor&&(a.backgroundColor=null);var s={repeat:"repeat"};return function(t){for(var e,o,s=[i],l=!0,h=0;h<ff.length;++h){var u=a[ff[h]];if(null!=u&&!tN(u)&&!tB(u)&&!tF(u)&&"boolean"!=typeof u){l=!1;break}s.push(u)}if(l){e=s.join(",")+(r?"-svg":"");var d=fp.get(e);d&&(r?t.svgElement=d:t.image=d)}var c=function t(e){if(!e||0===e.length)return[[0,0]];if(tF(e)){var i=Math.ceil(e);return[[i,i]]}for(var n=!0,r=0;r<e.length;++r)if(!tF(e[r])){n=!1;break}if(n)return t([e]);for(var o=[],r=0;r<e.length;++r)if(tF(e[r])){var i=Math.ceil(e[r]);o.push([i,i])}else{var i=tA(e[r],function(t){return Math.ceil(t)});i.length%2==1?o.push(i.concat(i)):o.push(i)}return o}(a.dashArrayX),p=function(t){if(!t||"object"==typeof t&&0===t.length)return[0,0];if(tF(t)){var e=Math.ceil(t);return[e,e]}var i=tA(t,function(t){return Math.ceil(t)});return t.length%2?i.concat(i):i}(a.dashArrayY),f=function t(e){if(!e||0===e.length)return[["rect"]];if(tB(e))return[[e]];for(var i=!0,n=0;n<e.length;++n)if(!tB(e[n])){i=!1;break}if(i)return t([e]);for(var r=[],n=0;n<e.length;++n)tB(e[n])?r.push([e[n]]):r.push(e[n]);return r}(a.symbol),g=tA(c,function(t){return f_(t)}),_=f_(p),m=!r&&ts.createCanvas(),v=r&&{tag:"g",attrs:{},key:"dcl",children:[]},y=function(){for(var t=1,e=0,i=g.length;e<i;++e)t=rz(t,g[e]);for(var n=1,e=0,i=f.length;e<i;++e)n=rz(n,f[e].length);t*=n;var r=_*g.length*f.length;return{width:Math.max(1,Math.min(t,a.maxTileWidth)),height:Math.max(1,Math.min(r,a.maxTileHeight))}}();m&&(m.width=y.width*i,m.height=y.height*i,o=m.getContext("2d")),function(){o&&(o.clearRect(0,0,m.width,m.height),a.backgroundColor&&(o.fillStyle=a.backgroundColor,o.fillRect(0,0,m.width,m.height)));for(var t=0,e=0;e<p.length;++e)t+=p[e];if(!(t<=0))for(var s=-_,l=0,h=0,u=0;s<y.height;){if(l%2==0){for(var d=h/2%f.length,g=0,b=0,x=0;g<2*y.width;){for(var w=0,e=0;e<c[u].length;++e)w+=c[u][e];if(w<=0)break;if(b%2==0){var S=(1-a.symbolSize)*.5,k=g+c[u][b]*S,C=s+p[l]*S,T=c[u][b]*a.symbolSize,M=p[l]*a.symbolSize,D=x/2%f[d].length;!function(t,e,s,l,h){var u=r?1:i,d=pJ(h,t*u,e*u,s*u,l*u,a.color,a.symbolKeepAspect);if(r){var c=n.painter.renderOneToVNode(d);c&&v.children.push(c)}else fh(o,d)}(k,C,T,M,f[d][D])}g+=c[u][b],++x,++b===c[u].length&&(b=0)}++u===c.length&&(u=0)}s+=p[l],++h,++l===p.length&&(l=0)}}(),l&&fp.put(e,m||v),t.image=m,t.svgElement=v,t.svgWidth=y.width,t.svgHeight=y.height}(s),s.rotation=a.rotation,s.scaleX=s.scaleY=r?1:1/i,fc.set(t,s),t.dirty=!1,s}function f_(t){for(var e=0,i=0;i<t.length;++i)e+=t[i];return t.length%2==1?2*e:e}var fm=os(function(t,e){t.eachRawSeries(function(i){if(!t.isSeriesFiltered(i)){var n=i.getData();n.hasItemVisual()&&n.each(function(t){var i=n.getItemVisual(t,"decal");i&&(n.ensureUniqueItemVisual(t,"style").decal=fg(i,e))});var r=n.getVisual("decal");r&&(n.getVisual("style").decal=fg(r,e))}})}),fv="__flagInMainProcess",fy="__mainProcessVersion",fb="__pendingUpdate",fx="__needsUpdateStatus",fw=/^[a-zA-Z0-9_]+$/,fS="__connectUpdateStatus";function fk(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return this.isDisposed()?void this.id:fT(this,t,e)}}function fC(t){return function(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return fT(this,t,e)}}function fT(t,e,i){return i[0]=i[0]&&i[0].toLowerCase(),ec.prototype[e].apply(t,i)}var fM=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e}(ec),fD=fM.prototype;fD.on=fC("on"),fD.off=fC("off");var fI=function(t){function e(e,i,n){var r=t.call(this,new pP)||this;r._chartsViews=[],r._chartsMap={},r._componentsViews=[],r._componentsMap={},r._pendingActions=[],n=n||{},r.__v_skip=!0,r._dom=e,r[fy]=1,n.ssr;var o=r._zr=rs(e,{renderer:n.renderer||"canvas",devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:tG(n.useDirtyRect,!1),useCoarsePointer:tG(n.useCoarsePointer,"auto"),pointerSize:n.pointerSize});r._ssr=n.ssr,r._throttledZrFlush=po(tL(o.flush,o),17),r._updateTheme(i),r._locale=function(t){if(!tB(t))return tS(tw(t),tw(ld.EN),!1);var e=ld[t.toUpperCase()]||{};return"ZH"===t||"EN"===t?tw(e):tS(tw(e),tw(ld.EN),!1)}(n.locale||lp),r._coordSysMgr=new lQ;var a=r._api=F(r);function s(t,e){return t.__prio-e.__prio}return im(fz,s),im(fR,s),r._scheduler=new pg(r,a,fR,fz),r._messageCenter=new fM,r._initEvents(),r.resize=tL(r.resize,r),o.animation.on("frame",r._onframe,r),R(o,r),N(o,r),r[tJ]=!0,r}return ti(e,t),e.prototype._onframe=function(){if(!this._disposed){var t=this._scheduler,e=this._model,i=this._api;if($(this),this[fb]){var n=this[fb].silent;this[fv]=!0,U(this);try{T(this),I.update.call(this,null,this[fb].updateParams)}catch(t){throw this[fv]=!1,this[fb]=null,t}this._zr.flush(),this[fv]=!1,this[fb]=null,P.call(this,n),L.call(this,n)}else if(t.unfinished){var r=1;do{t.unfinished=!1;var o=ts.getTime();t.performSeriesTasks(e),t.performDataProcessorTasks(e),E(this,e),t.performVisualTasks(e),V(this,this._model,i,"remain",{}),r-=ts.getTime()-o}while(r>0&&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,i){if(!this[fv]){if(this._disposed)return void this.id;if(tH(e)&&(i=e.lazyUpdate,n=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[fv]=!0,U(this),!this._model||e){var n,r,o,a=new hC(this._api),s=this._theme,l=this._model=new hb;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},fN);var h={seriesTransition:o,optionChanged:!0};if(i)this[fb]={silent:n,updateParams:h},this[fv]=!1,this.getZr().wakeUp();else{try{T(this),I.update.call(this,null,h)}catch(t){throw this[fb]=null,this[fv]=!1,t}this._ssr||this._zr.flush(),this[fb]=null,this[fv]=!1,P.call(this,n),L.call(this,n)}}},e.prototype.setTheme=function(t,e){if(!this[fv]){if(this._disposed)return void this.id;var i=this._model;if(i){var n=e&&e.silent,r=null;this[fb]&&(null==n&&(n=this[fb].silent),r=this[fb].updateParams,this[fb]=null),this[fv]=!0,U(this);try{this._updateTheme(t),i.setTheme(this._theme),T(this),I.update.call(this,{type:"setTheme"},r)}catch(t){throw this[fv]=!1,t}this[fv]=!1,P.call(this,n),L.call(this,n)}}},e.prototype._updateTheme=function(t){tB(t)&&(t=fB[t]),t&&((t=tw(t))&&hY(t,!0),this._theme=t)},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||tr.hasGlobalWindow&&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(){var t=this._zr;return tI(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()},e.prototype.getDataURL=function(t){if(this._disposed)return void this.id;var e=(t=t||{}).excludeComponents,i=this._model,n=[],r=this;tI(e,function(t){i.eachComponent({mainType:t},function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tI(n,function(t){t.group.ignore=!1}),o},e.prototype.getConnectedDataURL=function(t){if(this._disposed)return void this.id;var e="svg"===t.type,i=this.group,n=Math.min,r=Math.max;if(!fH[i])return this.getDataURL(t);var o=1/0,a=1/0,s=-1/0,l=-1/0,h=[],u=t&&t.pixelRatio||this.getDevicePixelRatio();tI(fF,function(u,d){if(u.group===i){var c=e?u.getZr().painter.getSvgDom().innerHTML:u.renderToCanvas(tw(t)),p=u.getDom().getBoundingClientRect();o=n(p.left,o),a=n(p.top,a),s=r(p.right,s),l=r(p.bottom,l),h.push({dom:c,left:p.left,top:p.top})}}),o*=u,a*=u,s*=u,l*=u;var d=s-o,c=l-a,p=ts.createCanvas(),f=rs(p,{renderer:e?"svg":"canvas"});if(f.resize({width:d,height:c}),!e)return t.connectedBackgroundColor&&f.add(new aF({shape:{x:0,y:0,width:d,height:c},style:{fill:t.connectedBackgroundColor}})),tI(h,function(t){var e=new aO({style:{x:t.left*u-o,y:t.top*u-a,image:t.dom}});f.add(e)}),f.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"));var g="";return tI(h,function(t){var e=t.left-o,i=t.top-a;g+='<g transform="translate('+e+","+i+')">'+t.dom+"</g>"}),f.painter.getSvgRoot().innerHTML=g,t.connectedBackgroundColor&&f.painter.setBackgroundColor(t.connectedBackgroundColor),f.refreshImmediately(),f.painter.toDataURL()},e.prototype.convertToPixel=function(t,e,i){return A(this,"convertToPixel",t,e,i)},e.prototype.convertToLayout=function(t,e,i){return A(this,"convertToLayout",t,e,i)},e.prototype.convertFromPixel=function(t,e,i){return A(this,"convertFromPixel",t,e,i)},e.prototype.containPixel=function(t,e){var i;return this._disposed?void this.id:(tI(rQ(this._model,t),function(t,n){n.indexOf("Models")>=0&&tI(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)i=i||!!r.containPoint(e);else if("seriesModels"===n){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(i=i||o.containPoint(e,t))}},this)},this),!!i)},e.prototype.getVisual=function(t,e){var i=rQ(this._model,t,{defaultMainType:"series"}),n=i.seriesModel.getData(),r=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?n.indexOfRawIndex(i.dataIndex):null;return null!=r?function(t,e,i){switch(i){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,i)}}(n,r,e):function(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)}}(n,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,e,i=this;tI(fE,function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&pz(o,function(t){var e=a2(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=tk({},e.eventData),!0},!0),n){var a=n.componentType,s=n.componentIndex;("markLine"===a||"markPoint"===a||"markArea"===a)&&(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),h=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:h},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)});var n=this._messageCenter;tI(fL,function(t,e){n.on(e,function(t){i.trigger(e,t)})}),t=this,e=this._api,n.on("selectchanged",function(i){var n=e.getModel();i.isFromClick?(pN("map","selectchanged",t,n,i),pN("pie","selectchanged",t,n,i)):"select"===i.fromAction?(pN("map","selected",t,n,i),pN("pie","selected",t,n,i)):"unselect"===i.fromAction&&(pN("map","unselected",t,n,i),pN("pie","unselected",t,n,i))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)return void this.id;this._disposed=!0,this.getDom()&&r5(this.getDom(),f$,"");var t=this._api,e=this._model;tI(this._componentsViews,function(i){i.dispose(e,t)}),tI(this._chartsViews,function(i){i.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 fF[this.id]},e.prototype.resize=function(t){if(!this[fv]){if(this._disposed)return void this.id;this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var i=e.resetOption("media"),n=t&&t.silent;this[fb]&&(null==n&&(n=this[fb].silent),i=!0,this[fb]=null),this[fv]=!0,U(this);try{i&&T(this),I.update.call(this,{type:"resize",animation:tk({duration:0},t&&t.animation)})}catch(t){throw this[fv]=!1,t}this[fv]=!1,P.call(this,n),L.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)return void this.id;if(tH(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),fV[t]){var i=fV[t](this._api,e),n=this._zr;this._loadingFX=i,n.add(i)}},e.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=tk({},t);return e.type=fP[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)return void this.id;if((tH(e)||(e={silent:!!e}),fO[t.type])&&this._model){if(this[fv])return void this._pendingActions.push(t);var i=e.silent;O.call(this,t,i);var n=e.flush;n?this._zr.flush():!1!==n&&tr.browser.weChat&&this._throttledZrFlush(),P.call(this,i),L.call(this,i)}},e.prototype.updateLabelLayout=function(){pB.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)return void this.id;var e=t.seriesIndex;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=[],i=t.currentStates,n=0;n<i.length;n++){var r=i[n];"emphasis"!==r&&"blur"!==r&&"select"!==r&&e.push(r)}t.selected&&t.states.select&&e.push("select"),2===t.hoverState&&t.states.emphasis?e.push("emphasis"):1===t.hoverState&&t.states.blur&&e.push("blur"),t.useStates(e)}function i(t,e){if(!t.preventAutoZ){var i=cK(t);e.eachRendered(function(t){return cJ(t,i.z,i.zlevel),!0})}}function n(t,e){e.eachRendered(function(t){if(!ch(t)){var e=t.getTextContent(),i=t.getTextGuideLine();t.stateTransition&&(t.stateTransition=null),e&&e.stateTransition&&(e.stateTransition=null),i&&i.stateTransition&&(i.stateTransition=null),t.hasState()?(t.prevStates=t.currentStates,t.clearStates()):t.prevStates&&(t.prevStates=null)}})}function r(t,i){var n=t.getModel("stateAnimation"),r=t.isAnimationEnabled(),o=n.get("duration"),a=o>0?{duration:o,delay:n.get("delay"),easing:n.get("easing")}:null;i.eachRendered(function(t){if(t.states&&t.states.emphasis&&!ch(t)){if(t instanceof aT&&((i=sl(t)).normalFill=t.style.fill,i.normalStroke=t.style.stroke,i.selectFill=(n=t.states.select||{}).style&&n.style.fill||null,i.selectStroke=n.style&&n.style.stroke||null),t.__dirty){var i,n,o=t.prevStates;o&&t.useStates(o)}if(r){t.stateTransition=a;var s=t.getTextContent(),l=t.getTextGuideLine();s&&(s.stateTransition=a),l&&(l.stateTransition=a)}t.__dirty&&e(t)}})}T=function(t){pF(t._model).prepare={};var e=t._scheduler;e.restorePipelines(t._zr,t._model),e.prepareStageTasks(),M(t,!0),M(t,!1),e.plan()},M=function(t,e){for(var i=t._model,n=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;l<r.length;l++)r[l].__alive=!1;function h(t){var l=t.__requireNewView;t.__requireNewView=!1;var h="_ec_"+t.id+"_"+t.type,u=!l&&o[h];if(!u){var d=ou(t.type);(u=new(e?uJ.getClass(d.main,d.sub):c6.getClass(d.sub))).init(i,s),o[h]=u,r.push(u),a.add(u.group)}t.__viewId=u.__id=h,u.__alive=!0,u.__model=t,u.group.__ecComponentInfo={mainType:t.mainType,index:t.componentIndex},e||n.prepareView(u,t,i,s)}e?i.eachComponent(function(t,e){"series"!==t&&h(e)}):i.eachSeries(h);for(var l=0;l<r.length;){var u=r[l];u.__alive?l++:(e||u.renderTask.dispose(),a.remove(u.group),u.dispose(i,s),r.splice(l,1),o[u.__id]===u&&delete o[u.__id],u.__id=u.group.__ecComponentInfo=null)}},D=function(t,e,i,n,r){var o,a,s,l=t._model;if(l.setUpdatePayload(i),!n)return void tI([].concat(t._componentsViews).concat(t._chartsViews),d);var h=((o={})[n+"Id"]=i[n+"Id"],o[n+"Index"]=i[n+"Index"],o[n+"Name"]=i[n+"Name"],a={mainType:n,query:o},r&&(a.subType=r),a),u=i.excludeSeriesId;function d(n){n&&n.__alive&&n[e]&&n[e](n.__model,l,t._api,i)}null!=u&&(s=t5(),tI(rF(u),function(t){var e=rj(t,null);null!=e&&s.set(e,!0)})),l&&l.eachComponent(h,function(e){if(!(s&&null!=s.get(e.id))){if(sZ(i))if(e instanceof uW)i.type!==sc||i.notBlur||e.get(["emphasis","disabled"])||function(t,e,i){var n=t.seriesIndex,r=t.getData(e.dataType);if(r){var o=rq(r,e);o=(tN(o)?o[0]:o)||0;var a=r.getItemGraphicEl(o);if(!a)for(var s=r.count(),l=0;!a&&l<s;)a=r.getItemGraphicEl(l++);if(a){var h=a2(a);sN(n,h.focus,h.blurScope,i)}else{var u=t.get(["emphasis","focus"]),d=t.get(["emphasis","blurScope"]);null!=u&&sN(n,u,d,i)}}}(e,i,t._api);else{var n=sB(e.mainType,e.componentIndex,i.name,t._api),r=n.focusSelf,o=n.dispatchers;i.type===sc&&r&&!i.notBlur&&sz(e.mainType,e.componentIndex,t._api),o&&tI(o,function(t){i.type===sc?sO(t):sP(t)})}else if(sG(i)&&e instanceof uW){if(t._api,sG(i)){var a=i.dataType,l=rq(e.getData(a),i);tN(l)||(l=[l]),e[i.type===s_?"toggleSelect":i.type===sf?"select":"unselect"](l,a)}sV(e),Y(t)}}},t),l&&l.eachComponent(h,function(e){s&&null!=s.get(e.id)||d(t["series"===n?"_chartsMap":"_componentsMap"][e.__viewId])},t)},I={prepareAndUpdate:function(t){T(this),I.update.call(this,t,t&&{optionChanged:null!=t.newOption})},update:function(e,i){var n=this._model,r=this._api,o=this._zr,a=this._coordSysMgr,s=this._scheduler;if(n){pF(n).fullUpdate={},n.setUpdatePayload(e),s.restoreData(n,e),s.performSeriesTasks(n),a.create(n,r),pB.trigger("coordsys:aftercreate",n,r),s.performDataProcessorTasks(n,e),E(this,n),a.update(n,r),t(n),s.performVisualTasks(n,e);var l=n.get("backgroundColor")||"transparent";o.setBackgroundColor(l);var h=n.get("darkMode");null!=h&&"auto"!==h&&o.setDarkMode(h),z(this,n,r,e,i),pB.trigger("afterupdate",n,r)}},updateTransform:function(t){var e=this,i=e._model,n=e._api;if(i){i.setUpdatePayload(t);var r=[];i.eachComponent(function(o,a){if(o!==a4){var s=e.getViewOfComponentModel(a);if(s&&s.__alive)if(s.updateTransform){var l=s.updateTransform(a,i,n,t);l&&l.update&&r.push(s)}else r.push(s)}});var o=t5();i.eachSeries(function(r){var a=e._chartsMap[r.__viewId],s=r.pipelineContext;if(a.updateTransform&&!s.progressiveRender){var l=a.updateTransform(r,i,n,t);l&&l.update&&o.set(r.uid,1)}else o.set(r.uid,1)}),e._scheduler.performVisualTasks(i,t,{setDirty:!0,dirtyMap:o}),V(e,i,n,t,{},o),pB.trigger("afterupdate",i,n)}},updateView:function(e){var i=this._model;i&&(i.setUpdatePayload(e),c6.markUpdateMethod(e,"updateView"),t(i),this._scheduler.performVisualTasks(i,e,{setDirty:!0}),z(this,i,this._api,e,{}),pB.trigger("afterupdate",i,this._api))},updateVisual:function(e){var i=this,n=this._model;n&&(n.setUpdatePayload(e),n.eachSeries(function(t){t.getData().clearAllVisual()}),c6.markUpdateMethod(e,"updateVisual"),t(n),this._scheduler.performVisualTasks(n,e,{visualType:"visual",setDirty:!0}),n.eachComponent(function(t,r){if("series"!==t){var o=i.getViewOfComponentModel(r);o&&o.__alive&&o.updateVisual(r,n,i._api,e)}}),n.eachSeries(function(t){i._chartsMap[t.__viewId].updateVisual(t,n,i._api,e)}),pB.trigger("afterupdate",n,this._api))},updateLayout:function(t){I.update.call(this,t)}},A=function(t,e,i,n,r){if(t._disposed)return void t.id;for(var o,a=t._model,s=t._coordSysMgr.getCoordinateSystems(),l=rQ(a,i),h=0;h<s.length;h++){var u=s[h];if(u[e]&&null!=(o=u[e](a,l,n,r)))return o}},E=function(t,e){var i=t._chartsMap,n=t._scheduler;e.eachSeries(function(t){n.updateStreamModes(t,i[t.__viewId])})},O=function(t,e){var i,n=this,r=this.getModel(),o=t.type,a=t.escapeConnect,s=fO[o],l=(s.update||"update").split(":"),h=l.pop(),u=null!=l[0]&&ou(l[0]);this[fv]=!0,U(this);var d=[t],c=!1;t.batch&&(c=!0,d=tA(t.batch,function(e){return(e=tC(tk({},e),t)).batch=null,e}));var p=[],f=[],g=s.nonRefinedEventType,_=sG(t),m=sZ(t);if(m&&sR(this._api),tI(d,function(e){var o=s.action(e,r,n._api);if(s.refineEvent?f.push(o):i=o,(i=i||tk({},e)).type=g,p.push(i),m){var a=rJ(t),l=a.queryOptionMap;D(n,h,e,a.mainTypeSpecified?l.keys()[0]:"series"),Y(n)}else _?(D(n,h,e,"series"),Y(n)):u&&D(n,h,e,u.main,u.sub)}),"none"!==h&&!m&&!_&&!u)try{this[fb]?(T(this),I.update.call(this,t),this[fb]=null):I[h].call(this,t)}catch(t){throw this[fv]=!1,t}if(i=c?{type:g,escapeConnect:a,batch:p}:p[0],this[fv]=!1,!e){var v=void 0;if(s.refineEvent){var y=s.refineEvent(f,t,r,this._api).eventContent;tK(tH(y)),(v=tC({type:s.refinedEventType},y)).fromAction=t.type,v.fromActionPayload=t,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(i.type,i),v&&b.trigger(v.type,v)}},P=function(t){for(var e=this._pendingActions;e.length;){var i=e.shift();O.call(this,i,t)}},L=function(t){t||this.trigger("updated")},R=function(t,e){t.on("rendered",function(i){e.trigger("rendered",i),!t.animation.isFinished()||e[fb]||e._scheduler.unfinished||e._pendingActions.length?t.refresh():e.trigger("finished")})},N=function(t,e){t.on("mouseover",function(t){var i,n,r,o,a,s=pz(t.target,sj);s&&(i=e._api,o=(r=sB((n=a2(s)).componentMainType,n.componentIndex,n.componentHighDownName,i)).dispatchers,a=r.focusSelf,o?(a&&sz(n.componentMainType,n.componentIndex,i),tI(o,function(e){return sA(e,t)})):(sN(n.seriesIndex,n.focus,n.blurScope,i),"self"===n.focus&&sz(n.componentMainType,n.componentIndex,i),sA(s,t)),Y(e))}).on("mouseout",function(t){var i,n,r,o=pz(t.target,sj);o&&(sR(i=e._api),(r=sB((n=a2(o)).componentMainType,n.componentIndex,n.componentHighDownName,i).dispatchers)?tI(r,function(e){return sE(e,t)}):sE(o,t),Y(e))}).on("click",function(t){var i=pz(t.target,function(t){return null!=a2(t).dataIndex},!0);if(i){var n=i.selected?"unselect":"select",r=a2(i);e._api.dispatchAction({type:n,dataType:r.dataType,dataIndexInside:r.dataIndex,seriesIndex:r.seriesIndex,isFromClick:!0})}})},z=function(t,e,i,n,r){!function(t){var e=[],i=[],n=!1;if(t.eachComponent(function(t,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();n=n||!!s,("series"===t?i:e).push({zlevel:o,z:a,idx:r.componentIndex,type:t,key:s})}),n){var r,o,a=e.concat(i);im(a,function(t,e){return t.zlevel===e.zlevel?t.z-e.z:t.zlevel-e.zlevel}),tI(a,function(e){var i=t.getComponent(e.type,e.idx),n=e.zlevel,a=e.key;null!=r&&(n=Math.max(r,n)),a?(n===r&&a!==o&&n++,o=a):o&&(n===r&&n++,o=""),r=n,i.setZLevel(n)})}}(e),B(t,e,i,n,r),tI(t._chartsViews,function(t){t.__alive=!1}),V(t,e,i,n,r),tI(t._chartsViews,function(t){t.__alive||t.remove(e,i)})},B=function(t,e,o,a,s,l){tI(l||t._componentsViews,function(t){var s=t.__model;n(s,t),t.render(s,e,o,a),i(s,t),r(s,t)})},V=function(t,e,o,a,s,l){var h=t._scheduler;s=tk(s||{},{updatedSeries:e.getSeries()}),pB.trigger("series:beforeupdate",e,o,s);var u=!1;e.eachSeries(function(e){var i,r,o,s=t._chartsMap[e.__viewId];s.__alive=!0;var d=s.renderTask;h.updatePayload(d,a),n(e,s),l&&l.get(e.uid)&&d.dirty(),d.perform(h.getPerformArgs(d))&&(u=!0),s.group.silent=!!e.get("silent"),i=e,r=s,o=i.get("blendMode")||null,r.eachRendered(function(t){t.isGroup||(t.style.blend=o)}),sV(e)}),h.unfinished=u||h.unfinished,pB.trigger("series:layoutlabels",e,o,s),pB.trigger("series:transition",e,o,s),e.eachSeries(function(e){var n=t._chartsMap[e.__viewId];i(e,n),r(e,n)}),function(t,e){var i=t._zr;if("canvas"===i.painter.type){var n=i.storage,r=0;n.traverse(function(t){!t.isGroup&&r++});var o=r>tG(e.get("hoverLayerThreshold"),hd.hoverLayerThreshold)&&!tr.node&&!tr.worker;(t._usingTHL||o)&&(e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var i=t._chartsMap[e.__viewId];i.__alive&&i.eachRendered(function(t){var e=t.states.emphasis;e&&e.hoverLayer!==cv&&(e.hoverLayer=o?cm:c_)})}}),t._usingTHL=o)}}(t,e),pB.trigger("series:afterupdate",e,o,s)},Y=function(t){t[fx]=!0,t.getZr().wakeUp()},U=function(t){t[fy]=(t[fy]+1)%1e6},$=function(t){t[fx]&&(t.getZr().storage.traverse(function(t){ch(t)||e(t)}),t[fx]=!1)},F=function(t){return new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return ti(i,e),i.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},i.prototype.getComponentByElement=function(e){for(;e;){var i=e.__ecComponentInfo;if(null!=i)return t._model.getComponent(i.mainType,i.index);e=e.parent}},i.prototype.enterEmphasis=function(e,i){sO(e,i),Y(t)},i.prototype.leaveEmphasis=function(e,i){sP(e,i),Y(t)},i.prototype.enterBlur=function(e){sT(e,sw),Y(t)},i.prototype.leaveBlur=function(e){sT(e,sS),Y(t)},i.prototype.enterSelect=function(e){sT(e,sk),Y(t)},i.prototype.leaveSelect=function(e){sT(e,sC),Y(t)},i.prototype.getModel=function(){return t.getModel()},i.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},i.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},i.prototype.getECUpdateCycleVersion=function(){return t[fy]},i.prototype.usingTHL=function(){return t._usingTHL},i}(so))(t)},H=function(t){function e(t,e){for(var i=0;i<t.length;i++)t[i][fS]=e}tI(fP,function(i,n){t._messageCenter.on(n,function(i){if(fH[t.group]&&0!==t[fS]&&(!i||!i.escapeConnect)){var n=t.makeActionFromEvent(i),r=[];tI(fF,function(e){e!==t&&e.group===t.group&&r.push(e)}),e(r,0),tI(r,function(t){1!==t[fS]&&t.dispatchAction(n)}),e(r,2)}})})}}(),e}(ec),fA=fI.prototype;fA.on=fk("on"),fA.off=fk("off"),fA.one=function(t,e,i){var n=this;this.on.call(this,t,function i(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];e&&e.apply&&e.apply(this,r),n.off(t,i)},i)};var fE=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"],fO={},fP={},fL={},fR=[],fN=[],fz=[],fB={},fV={},fF={},fH={},fY=new Date-0,f$="_echarts_instance_";function fU(t){0>tT(fN,t)&&fN.push(t)}function fW(t,e){fX(fR,t,e,2e3)}function fj(t,e){pB.on(t,e)}function fG(t,e,i){function n(t){return t.toLowerCase()}tz(e)&&(i=e,e=""),tH(t)?(r=t.type,l=t.event,a=t.update,s=t.publishNonRefinedEvent,i||(i=t.action),o=t.refineEvent):(r=t,l=e);var r,o,a,s,l=n(l||r),h=o?n(r):l;fO[r]||(tK(fw.test(r)&&fw.test(l)),o&&tK(l!==r),fO[r]={actionType:r,refinedEventType:l,nonRefinedEventType:h,update:a,action:i,refineEvent:o},fL[l]=1,o&&s&&(fL[h]=1),fP[h]=r)}function fZ(t,e){fX(fz,t,e,3e3,"visual",!0)}var fq=[];function fX(t,e,i,n,r,o){if((tz(e)||tH(e))&&(i=e,e=n),!(tT(fq,i)>=0)){fq.push(i);var a=pg.wrapStageHandler(i,r);a.__prio=e,a.__raw=i,t.push(a)}}function fK(t,e,i,n){var r;return{eventContent:{selected:(r=[],i.eachSeries(function(t){tI(t.getAllData(),function(e){e.data;var i=e.type,n=t.getSelectedDataIndices();if(n.length>0){var o={dataIndex:n,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),r.push(o)}})}),r),isFromClick:e.isFromClick||!1}}}fZ(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=t.getModel(n),o=pd(t,n)(r),a=r.getShallow("decal");a&&(i.setVisual("decal",a),a.dirty=!0);var s=pc(t,n),l=o[s],h=tz(l)?l:null,u="auto"===o.fill||"auto"===o.stroke;if(!o[s]||h||u){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=d,i.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||tz(o.fill)?d:o.fill,o.stroke="auto"===o.stroke||tz(o.stroke)?d:o.stroke}if(i.setVisual("style",o),i.setVisual("drawType",s),!e.isSeriesFiltered(t)&&h)return i.setVisual("colorFromPalette",!1),{dataEach:function(e,i){var n=t.getDataParams(i),r=tk({},o);r[s]=h(n),e.setItemVisual(i,"style",r)}}}}),fZ(4500,{createOnAllSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData){var i=t.getData(),n=t.visualStyleAccessPath||"itemStyle",r=pd(t,n),o=i.getVisual("drawType");return{dataEach:i.hasItemOption?function(t,e){var i=t.getRawDataItem(e);if(i&&i[n]){pp.option=i[n];var a=r(pp);tk(t.ensureUniqueItemVisual(e,"style"),a),pp.option.decal&&(t.setItemVisual(e,"decal",pp.option.decal),pp.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}}),fZ(4500,{performRawSeries:!0,overallReset:function(t){var e=t5();t.eachSeries(function(t){if(!t.isColorBySeries()){var i=t.type+"-"+t.getColorBy();pl(t).scope=e.get(i)||e.set(i,{})}}),t.eachSeries(function(t){if(!t.isColorBySeries()){var e=t.getRawData(),i={},n=t.getData(),r=pl(t).scope,o=t.visualStyleAccessPath||"itemStyle",a=pc(t,o);n.each(function(t){i[n.getRawIndex(t)]=t}),e.each(function(o){var s=i[o];if(n.getItemVisual(s,"colorFromPalette")){var l=n.ensureUniqueItemVisual(s,"style"),h=e.getName(o)||o+"",u=e.count();l[a]=t.getColorFromPalette(h,r,u)}})}})}}),fZ(2e3,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var i=t.getData();if(t.legendIcon&&i.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},r={},o=!1,a=0;a<pL.length;a++){var s=pL[a],l=t.get(s);tz(l)?(o=!0,r[s]=l):n[s]=l}if(n.symbol=n.symbol||t.defaultSymbol,i.setVisual(tk({legendIcon:t.legendIcon||n.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},n)),!e.isSeriesFiltered(t)){var h=tP(r);return{dataEach:o?function(e,i){for(var n=t.getRawValue(i),o=t.getDataParams(i),a=0;a<h.length;a++){var s=h[a];e.setItemVisual(i,s,r[s](n,o))}}:null}}}}}),fZ(4500,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){for(var i=t.getItemModel(e),n=0;n<pR.length;n++){var r=pR[n],o=i.getShallow(r,!0);null!=o&&t.setItemVisual(e,r,o)}}:null}}}),fZ(7e3,fm),fU(hY),fW(900,h$),fV.default=function(t,e){tC(e=e||{},{text:"loading",textColor:hn.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:hn.color.theme["0"],spinnerRadius:10,lineWidth:5,zlevel:0});var i,n=new rn,r=new aF({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var o=new a1({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new aF({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((i=new dQ({shape:{startAngle:-pf/2,endAngle:-pf/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*pf/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*pf/2}).delay(300).start("circularInOut"),n.add(i)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),h=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:h}),a.setShape({x:l-s,y:h-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n},fG({type:sc,event:sc,update:sc},t7),fG({type:sp,event:sp,update:sp},t7),fG({type:sf,event:sm,update:sf,action:t7,refineEvent:fK,publishNonRefinedEvent:!0}),fG({type:sg,event:sm,update:sg,action:t7,refineEvent:fK,publishNonRefinedEvent:!0}),fG({type:s_,event:sm,update:s_,action:t7,refineEvent:fK,publishNonRefinedEvent:!0}),fB.default={},fB.dark=pO;var fQ={},fJ=[],f0={registerPreprocessor:fU,registerProcessor:fW,registerPostInit:function(t){fj("afterinit",t)},registerPostUpdate:function(t){fj("afterupdate",t)},registerUpdateLifecycle:fj,registerAction:fG,registerCoordinateSystem:function(t,e){lQ.register(t,e)},registerLayout:function(t,e){fX(fz,t,e,1e3,"layout",!0)},registerVisual:fZ,registerTransform:function(t){var e=(t=tw(t)).type;e||h1("");var i=e.split(":");2!==i.length&&h1("");var n=!1;"echarts"===i[0]&&(e=i[1],n=!0),t.__isBuiltIn=n,u_.set(e,t)},registerLoading:function(t,e){fV[t]=e},registerMap:function(t,e,i){var n=pV.registerMap;n&&n(t,e,i)},registerImpl:function(t,e){pV[t]=e},PRIORITY:{PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS: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}},ComponentModel:ht,ComponentView:uJ,SeriesModel:uW,ChartView:c6,registerComponentModel:function(t){ht.registerClass(t)},registerComponentView:function(t){uJ.registerClass(t)},registerSeriesModel:function(t){uW.registerClass(t)},registerChartView:function(t){c6.registerClass(t)},registerCustomSeries:function(t,e){fQ[t]=e},registerSubTypeDefaulter:function(t,e){ht.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){rr[t]=e}};function f1(t){tN(t)?tI(t,function(t){f1(t)}):tT(fJ,t)>=0||(fJ.push(t),tz(t)&&(t={install:t}),t.install(f0))}var f2=i(487),f5={left:0,right:0,top:0,bottom:0},f3=["25%","25%"],f4="cartesian2d",f6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.mergeDefaultAndTheme=function(e,i){var n=l8(e.outerBounds);t.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&l7(e.outerBounds,n)},e.prototype.mergeOption=function(e,i){t.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&l7(this.option.outerBounds,e.outerBounds)},e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:f5,outerBoundsContain:"all",outerBoundsClampWidth:"25%",outerBoundsClampHeight:"25%",backgroundColor:hn.color.transparent,borderWidth:1,borderColor:hn.color.neutral30},e}(ht),f7=function(){function t(){}return t.prototype.needIncludeZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}(),f8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",r0).models[0]},e.type="cartesian2dAxis",e}(ht);tM(f8,f7);var f9={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:"auto",onZeroAxisIndex:null,lineStyle:{color:hn.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},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,color:hn.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:hn.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[hn.color.backgroundTint,hn.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:hn.color.neutral00,borderColor:hn.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},gt=tS({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},f9),ge=tS({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:hn.color.axisMinorSplitLine,width:1}}},f9),gi=tS({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ge),gn=tC({logBase:10},ge);let gr={category:gt,value:ge,time:gi,log:gn};var go=0,ga=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++go,this._onCollect=t.onCollect}return t.createByAxisModel=function(e){var i=e.option,n=i.data,r=n&&tA(n,gs);return new t({categories:r,needCollect:!r,deduplication:!1!==i.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,i=this._needCollect;if(!tB(t)&&!i)return t;if(i&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return null==(e=n.get(t))&&(i?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=0/0),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=t5(this.categories))},t}();function gs(t){return tH(t)&&null!=t.value?t.value:t+""}var gl={value:1,category:1,time:1,log:1};function gh(t,e,i,n){tI(gl,function(r,o){var a=tS(tS({},gr[o],!0),n,!0),s=function(t){function i(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e+"Axis."+o,i}return ti(i,t),i.prototype.mergeDefaultAndTheme=function(t,e){var i=l6(this),n=i?l8(t):{};tS(t,e.getTheme().get(o+"Axis")),tS(t,this.getDefaultOption()),t.type=gu(t),i&&l7(t,n,i)},i.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=ga.createByAxisModel(this))},i.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},i.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},i.prototype.updateAxisBreaks=function(t){return{breaks:[]}},i.type=e+"Axis."+o,i.defaultOption=a,i}(i);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",gu)}function gu(t){return t.type||(t.data?"category":"value")}var gd=function(){function t(){}return t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();o_(gd);var gc=tP({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function gp(t,e,i){t=t||{};var n,r,o,a,s,l=lg();if(l){var h=l.createBreakScaleMapper(e,i);h.hasBreaks()&&(tI(gc,function(e){h[e]&&(t[e]=tL(h[e],h))}),s=h)}return null==s&&(n=t,r=i,a=[],(o=n||{})._extents=a,a[0]=r?r.slice():r4(),tk(o,gv)),{brk:s,mapper:t}}function gf(t,e){tI(gc,function(i){t[i]=e[i]})}function gg(t){return t.getExtentUnsafe(0,2)}function g_(t,e){return t.getExtentUnsafe(1,e)||t.getExtentUnsafe(0,e)}function gm(t){var e=t.getExtentUnsafe(0,3);return e[1]-e[0]}var gv={needTransform:function(){return!1},normalize:function(t){var e=this._extents[1]||this._extents[0];return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},scale:function(t){var e=this._extents[1]||this._extents[0];return t*(e[1]-e[0])+e[0]},transformIn:function(t){return t},transformOut:function(t){return t},contain:function(t){var e=g_(this,null);return t>=e[0]&&t<=e[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(t){return this._extents[t]},setExtent:function(t,e){gy(this._extents,0,t,e)},setExtent2:function(t,e,i){var n=this._extents;n[t]||(n[t]=n[0].slice()),gy(n,t,e,i)},freeze:function(){}};function gy(t,e,i,n){ot(i,n)&&(t[e][0]=i,t[e][1]=n)}function gb(t){return"interval"===t.type}function gx(t){return"time"===t.type}function gw(t){return"log"===t.type}function gS(t){return"ordinal"===t.type}function gk(t){return rk(t)+2}function gC(t,e,i){var n=i&&i.lookup;if(n){for(var r=0;r<n.from.length;r++)if(t===n.from[r])return n.to[r]}return rf(e,t)}function gT(t,e,i){var n=t.slice();if(n[0]===n[1]){var r=i&&i.ctnShp;if(0!==n[0]){var o=ru(n[0]);e[1]||(n[1]+=o/2),n[0]-=o/2}else r&&(n[0]=-1),n[1]=1}return r9(n[0])&&r9(n[1])||(n[0]=0,n[1]=1),n[1]<n[0]&&n.reverse(),n}function gM(t,e){return rd(rh(t=t||e,1))}function gD(t,e,i){var n=gg(t),r=n[0],o=t.count(),a=Math.max((e||0)+1,1);0!==r&&a>1&&o/a>2&&(r=Math.round(Math.ceil(r/a)*a)),r!==n[0]&&l(n[0],!0,!0);for(var s=r;s<=n[1];s+=a)l(s,!1,s===n[0]||s===n[1]);function l(t,e,n){i({value:t,offInterval:e},n)}s-a!==n[1]&&l(n[1],!0,!0)}var gI=function(t){function e(i){var n=t.call(this)||this;n.type="ordinal",n.parse=e.parse,gf(n,e.decoratedMethods);var r=i.ordinalMeta;r||(r=new ga({})),tN(r)&&(r=new ga({categories:tA(r,function(t){return tH(t)?t.value:t})})),n._ordinalMeta=r;var o=gp(null,null,i.extent||[0,r.categories.length-1]);return n._mapper=o.mapper,o.mapper,n.freeze=t7,n}return ti(e,t),e.parse=function(t){return null==t?t=0/0:tB(t)?null==(t=this._ordinalMeta.getOrdinal(t))&&(t=0/0):t=rd(t),t},e.prototype.getTicks=function(){var t=[];return gD(this,0,function(e){t.push(e)}),t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null==t){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var e=t.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=rl(o,e.length);r<a;++r)n[i[r]=e[r]]=r;for(var s=0;r<o;++r){for(;null!=n[s];)s++;i[r]=s,n[s]=r}},e.prototype._getTickNumber=function(t){var e=this._ticksByOrdinalNumber;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getRawOrdinalNumber=function(t){var e=this._ordinalNumbersByTick;return e&&t>=0&&t<e.length?e[t]:t},e.prototype.getLabel=function(t){if(!this.isBlank()){var e=this.getRawOrdinalNumber(t.value),i=this._ordinalMeta.categories[e];return null==i?"":i+""}},e.prototype.count=function(){var t=gg(this._mapper);return t[1]-t[0]+1},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.type="ordinal",e.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(t){return this._mapper.contain(this._getTickNumber(t))&&t>=0&&t<this._ordinalMeta.categories.length},normalize:function(t){return this._mapper.normalize(this._getTickNumber(t))},scale:function(t){return this.getRawOrdinalNumber(rd(this._mapper.scale(t)))},transformIn:function(t,e){return this._mapper.transformIn(this._getTickNumber(t),e)},transformOut:function(t,e){return this.getRawOrdinalNumber(this._mapper.transformOut(t,e))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(t,e){return this._mapper.getExtentUnsafe(t,e)},setExtent:function(t,e){return this._mapper.setExtent(t,e)},setExtent2:function(t,e,i){return this._mapper.setExtent2(t,e,i)}},e}(gd);function gA(t,e,i,n){for(var r=t.getTicks({expandToNicedExtent:!0}),o=[],a=t.getExtent(),s=1;s<r.length;s++){var l=r[s],h=r[s-1];if(!h.break&&!l.break){for(var u=0,d=[],c=(l.value-h.value)/e,p=gk(c);u<e-1;){var f=rw(h.value+(u+1)*c,p);f>a[0]&&f<a[1]&&d.push(f),u++}var g=lg();g&&g.pruneTicksByBreak("auto",d,i,function(t){return t},n,a),o.push(d)}}return o}gd.registerClass(gI);var gE=function(t){function e(i){var n=t.call(this)||this;n.type="interval",n.parse=e.parse;var r=l_(n,i=i||{}),o=gp(n,r,null);return n.brk=o.brk,n._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},n}return ti(e,t),e.parse=function(t){return null==t||""===t?0/0:Number(t)},e.prototype.getConfig=function(){return tw(this._cfg)},e.prototype.setConfig=function(t){var e=gg(this);this._cfg=t=tw(t),null==t.niceExtent&&(t.niceExtent=e.slice()),null==t.intervalPrecision&&(t.intervalPrecision=gk(t.interval))},e.prototype.getTicks=function(t){t=t||{};var e=this._cfg,i=e.interval,n=gg(this),r=e.niceExtent,o=e.intervalPrecision,a=lg(),s=this.brk,l=a&&s,h=[];if(!i)return h;if("only_break"===t.breakTicks&&l)return a.addBreaksToTicks(h,s.breaks,n),h;n[0]<r[0]&&h.push({value:t.expandToNicedExtent?rw(r[0]-i,o):n[0]});for(var u=function(t,e){return rd((e-t)/i)},d=e.intervalCount,c=r[0],p=0;;p++){if(null==d){if(c>r[1]||!isFinite(c)||!isFinite(r[1]))break}else{if(p>d)break;c=rl(c,r[1]),p===d&&(c=r[1])}if(h.push({value:c}),c=rw(c+i,o),s){var f=s.calcNiceTickMultiple(c,u);f>=0&&(c=rw(c+f*i,o))}if(h.length>0&&c===h[h.length-1].value)break;if(h.length>3e3)return[]}var g=h.length?h[h.length-1].value:r[1];return n[1]>g&&h.push({value:t.expandToNicedExtent?rw(g+i,o):n[1]}),l&&a.pruneTicksByBreak(t.pruneByBreak,h,s.breaks,function(t){return t.value},e.interval,n),l&&"none"!==t.breakTicks&&a.addBreaksToTicks(h,s.breaks,n),h},e.prototype.getMinorTicks=function(t){return gA(this,t,lm(this),this._cfg.interval)},e.prototype.getLabel=function(t,e){if(null==t)return"";var i=e&&e.precision;return null==i?i=rk(t.value)||0:"auto"===i&&(i=this._cfg.intervalPrecision),l$(rw(t.value,i,!0))},e.type="interval",e}(gd);gd.registerClass(gE);var gO=function(t,e,i,n){for(;i<n;){var r=i+n>>>1;t[r][1]<e?i=r+1:n=r}return i},gP=function(t){function e(i){var n=t.call(this)||this;n.type="time",n.parse=e.parse,n._locale=i.locale,n._useUTC=i.useUTC,n._interval=0;var r=l_(n,i),o=gp(n,r,null);return n.brk=o.brk,n}return ti(e,t),e.prototype.getLabel=function(t){return lM(t.value,lw[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(lT(this._minLevelUnit))]||lw.second,this._useUTC,this._locale)},e.prototype.getFormattedLabel=function(t,e,i){return function(t,e,i,n,r){var o=null;if(tB(i))o=i;else if(tz(i)){var a={time:t.time,level:t.time?t.time.level:0},s=lg();s&&s.makeAxisLabelFormatterParamBreak(a,t.break),o=i(t.value,e,a)}else{var l=t.time;if(l){var h=i[l.lowerTimeUnit][l.upperTimeUnit];o=h[Math.min(l.level,h.length-1)]||""}else{var u=lD(t.value,r);o=i[u][u][0]}}return lM(new Date(t.value),o,r,n)}(t,e,i,this._locale,this._useUTC)},e.prototype.getTicks=function(t){t=t||{};var e=this._interval,i=gg(this),n=lg(),r=this.brk,o=n&&r,a=[];if(!e)return a;var s=this._useUTC;if(o&&"only_break"===t.breakTicks)return lg().addBreaksToTicks(a,r.breaks,i),a;a=function(t,e,i,n,r,o){for(var a=0,s=[],l=[],h=0,u=0,d=0;d<lk.length;++d){var c,p=lT(lk[d]);if((c=lk[d])===lT(c)&&(!function(t,r,s){var l=[],h=!r.length;if(!gR(lT(t),n[0],n[1],i)){h&&(r=[{value:(p=n[0],f=Math.max(0,tT(lS,t)-1),lI(new Date(p),lS[f],i).getTime())},{value:n[1]}]);for(var u=0;u<r.length-1;u++){var d=r[u].value,c=r[u+1].value;if(d!==c){var p,f,g,_,m,v=void 0,y=void 0,b=void 0;switch(t){case"year":v=Math.max(1,Math.round(e/864e5/365)),y=lA(i),b=i?"setUTCFullYear":"setFullYear";break;case"half-year":case"quarter":case"month":v=(g=e/2592e6)>6?6:g>3?3:g>2?2:1,y=lE(i),b=lz(i);break;case"week":case"half-week":case"day":v=(_=e/864e5)>16?16:_>7.5?7:_>3.5?4:_>1.5?2:1,y=lO(i),b=lB(i);break;case"half-day":case"quarter-day":case"hour":v=(m=e/36e5)>12?12:m>6?6:m>3.5?4:m>2?2:1,y=lP(i),b=lV(i);break;case"minute":v=gN(e,!0),y=lL(i),b=lF(i);break;case"second":v=gN(e,!1),y=lR(i),b=lH(i);break;case"millisecond":v=rh(rL(e,!0),1),y=lN(i),b=lY(i)}c>=n[0]&&d<=n[1]&&function(t,e,i,r,s,l){for(var h,u,d,c=((h=new Date(0))[s](1),u=h.getTime(),h[s](1+t),d=h.getTime()-u,function(t,e){return Math.max(0,Math.round((e-t)/d))}),p=e,f=new Date(p);p<i&&p<=n[1]&&(l.push({value:p}),!(a++>3e3));)if(f[s](f[r]()+t),p=f.getTime(),o){var g=o.calcNiceTickMultiple(p,c);g>0&&(f[s](f[r]()+g*t),p=f.getTime())}l.push({value:p,notAdd:p>n[1]})}(v,d,c,y,b,l),"year"===t&&s.length>1&&0===u&&s.unshift({value:s[0].value-v})}}for(var u=0;u<l.length;u++)s.push(l[u])}}(lk[d],s[s.length-1]||[],l),p!==(lk[d+1]?lT(lk[d+1]):null))){if(l.length){u=h,l.sort(function(t,e){return t.value-e.value});for(var f=[],g=0;g<l.length;++g){var _=l[g].value;(0===g||l[g-1].value!==_)&&(f.push(l[g]),_>=n[0]&&_<=n[1]&&h++)}var m=r/e;if(h>1.5*m&&u>m/1.5||(s.push(f),h>m||t===lk[d]))break}l=[]}}for(var v=tO(tA(s,function(t){return tO(t,function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd})}),function(t){return t.length>0}),y=v.length-1,b=[],d=0;d<v.length;++d)for(var x=v[d],w=0;w<x.length;++w){var S=lD(x[w].value,i);b.push({value:x[w].value,time:{level:y-d,upperTimeUnit:S,lowerTimeUnit:S}})}or(b,oo,null),b.sort(function(t,e){return t.value-e.value});var k=b[0],C=b[b.length-1],T=lD(n[0],i),M=lD(n[1],i);return(!k||k.value>n[0])&&b.unshift({value:n[0],time:{level:0,upperTimeUnit:T,lowerTimeUnit:T},notNice:!0}),(!C||C.value<n[1])&&b.push({value:n[1],time:{level:0,upperTimeUnit:M,lowerTimeUnit:M},notNice:!0}),b}(this._minLevelUnit,this._approxInterval,s,i,gm(this),r);var l=lS.length-1,h=0;return tI(a,function(t){t.time&&(l=Math.min(l,tT(lS,t.time.upperTimeUnit)),h=Math.max(h,t.time.level))}),o&&lg().pruneTicksByBreak(t.pruneByBreak,a,r.breaks,function(t){return t.value},this._approxInterval,i),o&&"none"!==t.breakTicks&&lg().addBreaksToTicks(a,r.breaks,i,function(t){for(var e=Math.max(tT(lS,lD(t.vmin,s)),tT(lS,lD(t.vmax,s))),i=0,n=0;n<lS.length;n++)if(!gR(lS[n],t.vmin,t.vmax,s)){i=n;break}var r=Math.min(i,l);return{level:h,lowerTimeUnit:lS[Math.max(r,e)],upperTimeUnit:lS[r]}}),a},e.prototype.getMinorTicks=function(t){return gA(this,t,lm(this),this._interval)},e.prototype.setTimeInterval=function(t){this._interval=t.interval,this._approxInterval=t.approxInterval,this._minLevelUnit=t.minLevelUnit},e.parse=function(t){return tF(t)?Math.round(t):+rE(t)},e.type="time",e}(gd),gL=[["second",1e3],["minute",6e4],["hour",36e5],["quarter-day",216e5],["half-day",432e5],["day",10368e4],["half-week",3024e5],["week",6048e5],["month",26784e5],["quarter",8208e6],["half-year",15768e6],["year",31536e6]];function gR(t,e,i,n){return lI(new Date(e),t,n).getTime()===lI(new Date(i),t,n).getTime()}function gN(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}gd.registerClass(gP);var gz=function(t){function e(i){var n=t.call(this)||this;n.type="log",n.parse=gE.parse,n.base=i.logBase||10;var r=[],o=[],a=n._lookup={from:r,to:o};r[0]=r[1]=o[0]=o[1]=0/0,gf(n,e.mapperMethods);var s=lg(),l=i.breakOption,h={lookup:a};return s&&s.parseAxisBreakOptionInwardTransform(l,n,{noNegative:!0},2,h),n.powStub=new gE({breakParsed:h.original}),n.intervalStub=new gE({breakParsed:h.transformed}),n.intervalStub,n.freeze=t7,n}return ti(e,t),e.prototype.getTicks=function(t){var e=this.base,i=this.powStub,n=lg(),r=this.intervalStub,o={lookup:{from:r.getExtent(),to:i.getExtent()}};return tA(r.getTicks(t||{}),function(t){var r,a=gC(t.value,e,o);if(n){var s=n.getTicksBreakOutwardTransform(this,t,lm(i),this._lookup);s&&(r=s.vBreak,a=s.tickVal)}return{value:a,break:r}},this)},e.prototype.getMinorTicks=function(t){return gA(this,t,lm(this.powStub),this.intervalStub.getConfig().interval)},e.prototype.getLabel=function(t,e){return this.intervalStub.getLabel(t,e)},e.type="log",e.mapperMethods={needTransform:function(){return!0},normalize:function(t){var e;return this.intervalStub.normalize((e=this.base,rg(t)/rg(e)))},scale:function(t){return gC(this.intervalStub.scale(t),this.base,null)},transformIn:function(t,e){var i,n;return i=t,n=this.base,t=rg(i)/rg(n),e&&2===e.depth?t:this.intervalStub.transformIn(t,e)},transformOut:function(t,e){var i=e?e.depth:null;return gB.depth=i,gV.lookup=this._lookup,gC(2===i?t:this.intervalStub.transformOut(t,gB),this.base,gV)},contain:function(t){return this.powStub.contain(t)},setExtent:function(t,e){this.setExtent2(0,t,e)},setExtent2:function(t,e,i){if(ot(e,i)&&!(e<=0)&&!(i<=0)){var n=gF,r=gF;if(0===t){var o=this._lookup;n=o.to,r=o.from}this.powStub.setExtent2(t,n[0]=e,n[1]=i);var a=this.base;this.intervalStub.setExtent2(t,r[0]=rg(e)/rg(a),r[1]=rg(i)/rg(a))}},getFilter:function(){return{g:0}},sanitize:function(t,e){return ot(e[0],e[1])&&rB(t)&&t<=0&&(t=e[0]),t},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(t,e){return null===e?this.powStub.getExtentUnsafe(t,null):this.intervalStub.getExtentUnsafe(t,e)}},e}(gd);gd.registerClass(gz);var gB={},gV={},gF=[],gH=rX(),gY={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},g$=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=gj(this.source)))},t.prototype.getSourceDimensionIndex=function(t){return tG(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=hK(this.source),i=!(t>30),n="",r=[],o=0,a=0;o<t;o++){var s=void 0,l=void 0,h=void 0,u=this.dimensions[a];if(u&&u.storeDimIndex===o)s=e?u.name:null,l=u.type,h=u.ordinalMeta,a++;else{var d=this.getSourceDimension(o);d&&(s=e?d.name:null,l=d.type)}r.push({property:s,type:l,ordinalMeta:h}),!e||null==s||u&&u.isCalculationCoord||(n+=i?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),n+="$",n+=gY[l]||"f",h&&(n+=h.uid),n+="$"}var c=this.source;return{dimensions:r,hash:[c.seriesLayoutBy,c.startIndex,n].join("$$")}},t.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,i=0;e<this._fullDimCount;e++){var n=void 0,r=this.dimensions[i];if(r&&r.storeDimIndex===e)r.isCalculationCoord||(n=r.name),i++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},t.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function gU(t){return t instanceof g$}function gW(t){for(var e=t5(),i=0;i<(t||[]).length;i++){var n=t[i],r=tH(n)?n.name:n;null!=r&&null==e.get(r)&&e.set(r,i)}return e}function gj(t){var e=gH(t);return e.dimNameMap||(e.dimNameMap=gW(t.dimensionsDefine))}function gG(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}var gZ=rX();function gq(t){var e=t.getLabelModel().get("formatter");if("time"===t.type){var i,n,r,o=tB(e)||tz(e)?e:(i=(i=e)||{},n={},r=!0,tI(lS,function(t){r&&(r=null==i[t])}),tI(lS,function(t,e){var o=i[t];n[t]={};for(var a=null,s=e;s>=0;s--){var l=lS[s],h=tH(o)&&!tN(o)?o[l]:o,u=void 0;tN(h)?a=(u=h.slice())[0]||"":tB(h)?u=[a=h]:(null==a?a=lb[t]:ly[l].test(a)||(a=n[l][l][0]+" "+a),u=[a],r&&(u[1]="{primary|"+a+"}")),n[t][l]=u}}),n);return function(e,i){return t.scale.getFormattedLabel(e,i,o)}}if(tB(e))return function(i){var n=t.scale.getLabel(i);return e.replace("{value}",null!=n?n:"")};if(!tz(e))return function(e){return t.scale.getLabel(e)};if("category"===t.type)return function(i,n){return e(gX(t,i),i.value-t.scale.getExtent()[0],null)};var a=lg();return function(i,n){var r=null;return a&&(r=a.makeAxisLabelFormatterParamBreak(r,i.break)),e(gX(t,i),n,r)}}function gX(t,e){var i=t.scale;return gS(i)?i.getLabel(e):e.value}function gK(t){var e=t.get("interval");return null==e?"auto":e}function gQ(t){return"middle"===t||"center"===t}function gJ(t){return t.getShallow("show")}function g0(t,e,i){var n=t.get("breaks",!0);if(null!=n)return lg()&&i&&"category"!==e?n:void 0}function g1(t,e,i,n,r,o){var a=gw(t),s=a?t.intervalStub:t;if(s.setExtent(n[0],n[1]),a){var l=t.powStub,h={depth:2},u=t.transformOut(n[0],h),d=t.transformOut(n[1],h),c=[i[0]!==n[0],i[1]!==n[1]];e[0]&&!c[0]&&(u=r[0]),e[1]&&!c[1]&&(d=r[1]),l.setExtent(u,d)}s.setConfig(o)}function g2(t,e){return gS(t)?t.getRawOrdinalNumber(e.value):e.value}function g5(t,e){return gS(t)&&!!e.get("boundaryGap")}var g3=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return tA(this._dimList,function(t){return this._axes[t]},this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tO(this.getAxes(),function(e){return e.scale.type===t})},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),g4=["x","y"];function g6(t){return("interval"===t.type||"time"===t.type)&&!lv(t)}var g7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=f4,e.dimensions=g4,e}return ti(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if(g6(t)&&g6(e)){var i=g_(t,null),n=g_(e,null),r=this.dataToPoint([i[0],n[0]]),o=this.dataToPoint([i[1],n[1]]),a=i[1]-i[0],s=n[1]-n[0];if(a&&s){var l=(o[0]-r[0])/a,h=(o[1]-r[1])/s,u=r[0]-i[0]*l,d=r[1]-n[0]*h,c=this._transform=[l,0,0,h,u,d];this._invTransform=eH([],c)}}},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"),i=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&i.contain(i.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var i=this.dataToPoint(t),n=this.dataToPoint(e),r=this.getArea(),o=new ie(i[0],i[1],n[0]-i[0],n[1]-i[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,i){i=i||[];var n=t[0],r=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=r&&isFinite(r))return es(i,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.toGlobalCoord(o.dataToCoord(n,e)),i[1]=a.toGlobalCoord(a.dataToCoord(r,e)),i},e.prototype.clampData=function(t,e){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,r=i.getExtent(),o=n.getExtent(),a=i.parse(t[0]),s=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[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,i){if(i=i||[],this._invTransform)return es(i,t,this._invTransform);var n=this.getAxis("x"),r=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(t[0]),e),i[1]=r.coordToData(r.toLocalCoord(t[1]),e),i},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(t){t=t||0;var e=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1])-t,r=Math.min(i[0],i[1])-t,o=Math.max(e[0],e[1])-n+t,a=Math.max(i[0],i[1])-r+t;return new ie(n,r,o,a)},e}(g3),g8=rX(),g9=rX();function _t(t){return{out:{noPxChangeTryDetermine:[]},kind:t}}function _e(t,e){var i=e.getExtent(),n=[];return tI(t,function(t){(t=e.parse(t))>=i[0]&&t<=i[1]&&n.push(t)}),or(n,oa,null),rS(n),tA(n,function(t){return{value:t}})}function _i(t,e,i){var n,r,o=_r(t),a=gK(e),s=1===i.kind;if(!s){var l=_a(o,a);if(l)return l}tz(a)?n=_u(t,a,!1):(r="auto"===a?function(t,e){if(1===e.kind){var i=t.calculateCategoryInterval(e);return e.out.noPxChangeTryDetermine.push(function(){return g9(t).autoInterval=i,!0}),i}var n=g9(t).autoInterval;return null!=n?n:g9(t).autoInterval=t.calculateCategoryInterval(e)}(t,i):a,n=_u(t,r,!1));var h={labels:n,labelCategoryInterval:r};return s?i.out.noPxChangeTryDetermine.push(function(){return _s(o,a,h),!0}):_s(o,a,h),h}var _n=_o("axisTick"),_r=_o("axisLabel");function _o(t){return function(e){return g9(e)[t]||(g9(e)[t]={list:[]})}}function _a(t,e){for(var i=0;i<t.list.length;i++)if(t.list[i].key===e)return t.list[i].value}function _s(t,e,i){return t.list.push({key:e,value:i}),i}function _l(t,e,i){return null==_h(t,e,i)}function _h(t,e,i){var n=g8(t.model),r=t.getExtent(),o=n.lastAutoInterval,a=n.lastTickCount;if(null!=o&&null!=a&&1>=Math.abs(o-e)&&1>=Math.abs(a-i)&&o>e&&n.axisExtent0===r[0]&&n.axisExtent1===r[1])return o;n.lastTickCount=i,n.lastAutoInterval=e,n.axisExtent0=r[0],n.axisExtent1=r[1]}function _u(t,e,i){var n=gq(t),r=t.scale,o=[],a=tz(e);return gD(r,a?0:e,function(t,s){var l=r.getLabel(t);if(a){var h=!!e(t.value,l);if(t.offInterval=!h,!h&&!s)return}o.push(i?t:{formattedLabel:n(t),rawLabel:l,tick:t})}),o}oi();var _d=rX();function _c(t){return{liPosMinGap:t?t.liPosMinGap:void 0}}function _p(t,e){var i=t.model,n=_d(pH(i.ecModel)).keys;n&&tI(n.get(i.uid),function(t){e(t)})}function _f(t,e,i){if(t){var n=_d(pH(e.ecModel)),r=t.model.uid,o=n.axSer||(n.axSer=t5());(o.get(r)||o.set(r,[])).push(e);var a=e.subType,s=e.getBaseAxis()===t,l=__.get(_g(a,s,i))||__.get(_g(a,s,null));if(l){var h=n.keyed||(n.keyed=t5()),u=n.keys||(n.keys=t5()),d=l.key,c=h.get(d)||h.set(d,t5()),p=c.get(r);p||((p=c.set(r,{axis:t,sers:[],serByIdx:[]})).metrics=l.getMetrics(t),(u.get(r)||u.set(r,[])).push(d)),p.sers.push(e),p.serByIdx[e.seriesIndex]=e}}}function _g(t,e,i){return t+"|&"+tG(e,!0)+"|&"+(i||"")}rX();var __=t5();function _m(t,e){e=e||{};var i,n,r,o,a,s,l,h={w:0/0,w2:0/0},u=t.scale,d=e.fromStat,c=e.min,p=(l=g_(u,3))[1]-l[0];rB(p)||(p=0/0);var f=t.getExtent(),g=ru(f[1]-f[0]);return gS(u)?(i=h,n=t,r=p,o=g,0===(s=r+ +!!(a=n.onBand))&&(s=1),i.w=o/s,!a&&r&&o&&(i.w2=i.w*r/o)):d&&function(t,e,i,n,r){var o,a,s,l,h,u,d,c,p,f=!1,g=-1/0;tI(r.key?[_c((l=r.key,(d=(u=_d(pH((h=e.model).ecModel)).keyed)&&u.get(l))&&d.get(h.uid)))]:(c=r.sers||[],p=[],o=e.model.ecModel,a=function(t){for(var e=0;e<c.length;e++)c[e]&&t.serByIdx[c[e].seriesIndex]&&p.push(_c(t))},(s=_d(pH(o)).keyed)&&s.each(function(t,e){t.each(function(t,i){a(t,e,i)})}),p),function(t){var e=t.liPosMinGap;null!=e&&(e>0?(e>g&&(g=e),f=!1):-2===e&&(f=!0))}),rB(i)&&i>0&&rB(g)?(t.w=n/i*g,t.w2=g):f&&(t.w=.8*n,t.w2=t.w*i/n)}(h,t,p,g,d),null!=c&&(h.w=rB(h.w)?rh(c,h.w):c),h}var _v=[0,1];function _y(t){var e=t.getExtent();if(t.onBand){var i=(e[1]-e[0])/t.scale.count()/2;e[0]+=i,e[1]-=i}return e}var _b=function(t){function e(e,i,n,r,o){var a=t.call(this,e,i,n)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return ti(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t[+("x"!==this.dim)]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(function(){function t(t,e,i){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=i||[0,0]}return t.prototype.contain=function(t){var e=this._extent,i=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=i&&t<=n},t.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var i=this._extent;i[0]=t,i[1]=e},t.prototype.dataToCoord=function(t,e){var i=this.scale;return ry(t=i.normalize(i.parse(t)),_v,_y(this),e)},t.prototype.coordToData=function(t,e){var i=ry(t,_y(this),_v,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e,i,n,r=(t=t||{}).tickModel||this.getTickModel(),o=(e={breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak},i=this.scale,(n=this.getTickModel().get("customValues"))?{ticks:_e(n,i)}:"category"===this.type?function(t,e){var i,n,r=_n(t),o=gK(e),a=_a(r,o);if(a)return a;if((!e.get("show")||t.scale.isBlank())&&(i=[]),tz(o))i=_u(t,o,!0);else if("auto"===o){var s=_i(t,t.getLabelModel(),_t(2));n=s.labelCategoryInterval,i=tA(s.labels,function(t){return t.tick})}else i=_u(t,n=o,!0);return _s(r,o,{ticks:i,tickCategoryInterval:n})}(this,r):{ticks:i.getTicks(e)}),a=tA(o.ticks,function(t){return{coord:this.dataToCoord(g2(this.scale,t)),tick:t}},this),s=function(t,e,i){var n=e.length;if(!t.onBand||i||!n)return!1;var r=_m(t).w;if(!r)return!1;tI(e,function(t){t.coord-=r/2});var o=t.scale.getExtent(),a=e[n-1];return a.tick.offInterval&&e.pop(),e.push({coord:a.coord+r,tick:{value:o[1]+1}}),!0}(this,a,r.get("alignWithLabel"));return tA(a,function(t){return{coord:t.coord,tickValue:t.tick.value,onBand:s}})},t.prototype.getMinorTicksCoords=function(){if(gS(this.scale))return[];var t=this.model.getModel("minorTick").get("splitNumber");return t>0&&t<100||(t=5),tA(this.scale.getMinorTicks(t),function(t){return tA(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(t){return function(t,e){var i,n,r,o,a,s,l,h=t.getLabelModel().get("customValues");if(h){var u=t.scale;return{labels:tA(_e(h,u),function(e,i){return{formattedLabel:gq(t)(e,i),rawLabel:u.getLabel(e),tick:e}})}}return"category"===t.type?(i=t,n=e,r=i.getLabelModel(),o=_i(i,r,n),!r.get("show")||i.scale.isBlank()?{labels:[]}:o):(s=(a=t).scale.getTicks(),l=gq(a),{labels:tA(s,function(t,e){return{formattedLabel:l(t,e),rawLabel:a.scale.getLabel(t),tick:t}})})}(this,t=t||_t(2)).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){return _m(this,{min:1}).w},t.prototype.calculateCategoryInterval=function(t){return function(t,e){var i,n,r=e.kind,o=(n=(i=t).getLabelModel(),{axisRotate:i.getRotate?i.getRotate():i.isHorizontal&&!i.isHorizontal()?90:0,labelRotate:n.get("rotate")||0,font:n.getFont()}),a=gq(t),s=(o.axisRotate-o.labelRotate)/180*Math.PI,l=t.scale,h=l.getExtent(),u=l.count();if(h[1]-h[0]<1)return 0;var d=1;u>40&&(d=Math.max(1,Math.floor(u/40)));for(var c=h[0],p=t.dataToCoord(c+1)-t.dataToCoord(c),f=Math.abs(p*Math.cos(s)),g=Math.abs(p*Math.sin(s)),_=0,m=0;c<=h[1];c+=d){var v=0,y=0,b=nZ(a({value:c}),o.font,"center","top");v=1.3*b.width,y=1.3*b.height,_=Math.max(_,v,7),m=Math.max(m,y,7)}var x=_/f,w=m/g;isNaN(x)&&(x=1/0),isNaN(w)&&(w=1/0);var S=Math.max(0,Math.floor(Math.min(x,w)));if(1===r)return e.out.noPxChangeTryDetermine.push(tL(_l,null,t,S,u)),S;var k=_h(t,S,u);return null!=k?k:S}(this,t=t||_t(2))},t}()),_x=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"];function _w(t,e,i){i=i||3,e?t.dirty|=i:t.dirty&=~i}function _S(t,e){return e=e||3,null==t.dirty||!!(t.dirty&e)}function _k(t){if(t)return _S(t)&&function(t,e,i){var n=e.getComputedTransform();t.transform=cX(t.transform,n);var r=t.localRect=cq(t.localRect,e.getBoundingRect()),o=e.style,a=o.margin,s=i&&i.marginForce,l=i&&i.minMarginForce,h=i&&i.marginDefault,u=o.__marginType;null==u&&h&&(a=h,u=s6.textMargin);for(var d=0;d<4;d++)_C[d]=u===s6.minMargin&&l&&null!=l[d]?l[d]:s&&null!=s[d]?s[d]:a?a[d]:0;u===s6.textMargin&&cH(r,_C,!1,!1);var c=t.rect=cq(t.rect,r);n&&c.applyTransform(n),u===s6.minMargin&&cH(c,_C,!1,!1),t.axisAligned=cG(n),(t.label=t.label||{}).ignore=e.ignore,_w(t,!1),_w(t,!0,2)}(t,t.label,t),t}var _C=[0,0,0,0];function _T(t,e){for(var i=0;i<_x.length;i++){var n=_x[i];null==t[n]&&(t[n]=e[n])}return _k(t)}function _M(t){var e=t.obb;return(!e||_S(t,2))&&(t.obb=e=e||new ce,e.fromBoundingRect(t.localRect,t.transform),_w(t,!1,2)),e}function _D(t,e,i,n){return!!t&&!!e&&(!t.label||!t.label.ignore)&&(!e.label||!e.label.ignore)&&!!t.rect.intersect(e.rect,i,n)&&(!!t.axisAligned&&!!e.axisAligned||_M(t).intersect(_M(e),i,n))}var _I=Math.PI,_A=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_E=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],_O=rX(),_P=rX(),_L=function(){function t(t){this.recordMap={},this.resolveAxisNameOverlap=t}return t.prototype.ensureRecord=function(t){var e=t.axis.dim,i=t.componentIndex,n=this.recordMap,r=n[e]||(n[e]=[]);return r[i]||(r[i]={ready:{}})},t}(),_R=eR(),_N=new ie(0,0,0,0),_z=function(t,e,i,n,r,o){if(gQ(t.nameLocation)){var a,s,l=o.stOccupiedRect;l&&_B((a={},s=o.transGroup.transform,a.transform=cX(a.transform,s),a.localRect=cq(a.localRect,l),a.rect=cq(a.rect,l),s&&a.rect.applyTransform(s),a.axisAligned=cG(s),a.obb=void 0,(a.label=a.label||{}).ignore=!1,a),n,r)}else _V(o.labelInfoList,o.dirVec,n,r)};function _B(t,e,i){var n=new eY;_D(t,e,n,{direction:Math.atan2(i.y,i.x),bidirectional:!1,touchThreshold:.05})&&function(t,e){if(t){t.label.x+=e.x,t.label.y+=e.y,t.label.markRedraw();var i=t.transform;i&&(i[4]+=e.x,i[5]+=e.y);var n=t.rect;n&&(n.x+=e.x,n.y+=e.y);var r=t.obb;r&&r.fromBoundingRect(t.localRect,i)}}(e,n)}function _V(t,e,i,n){for(var r=eY.dot(n,e)>=0,o=0,a=t.length;o<a;o++){var s=t[r?o:a-1-o];s.label.ignore||_B(s,i,n)}}var _F=function(){function t(t,e,i,n){this.group=new rn,this._axisModel=t,this._api=e,this._local={},this._shared=n||new _L(_z),this._resetCfgDetermined(i)}return t.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},t.prototype.__getRawCfg=function(){return this._cfg.raw},t.prototype._resetCfgDetermined=function(t){var e=this._axisModel,i=e.getDefaultOption?e.getDefaultOption():{},n=tG(t.axisName,e.get("name")),r=e.get("nameMoveOverlap");(null==r||"auto"===r)&&(r=tG(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:tG(t.nameDirection,1),tickDirection:tG(t.tickDirection,1),labelDirection:tG(t.labelDirection,1),labelOffset:tG(t.labelOffset,0),silent:tG(t.silent,!0),axisName:n,nameLocation:tZ(e.get("nameLocation"),i.nameLocation,"end"),shouldNameMoveOverlap:!!n&&r,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var a=new rn({x:o.position[0],y:o.position[1],rotation:o.rotation});a.updateTransform(),this._transformGroup=a;var s=this._shared.ensureRecord(e);s.transGroup=this._transformGroup,s.dirVec=new eY(Math.cos(-o.rotation),Math.sin(-o.rotation))},t.prototype.build=function(t,e){var i=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),tI(_H,function(n){t[n]&&_Y[n](i._cfg,i._local,i._shared,i._axisModel,i.group,i._transformGroup,i._api,e||{})}),this},t.innerTextLayout=function(t,e,i){var n,r,o=rD(e-t);return rI(o)?(r=i>0?"top":"bottom",n="center"):rI(o-_I)?(r=i>0?"bottom":"top",n="center"):(r="middle",n=o>0&&o<_I?i>0?"right":"left":i>0?"left":"right"),{rotation:o,textAlign:n,textVerticalAlign:r}},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}(),_H=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],_Y={axisLine:function(t,e,i,n,r,o,a){var s=n.get(["axisLine","show"]);if("auto"===s&&(s=!0,null!=t.raw.axisLineAutoShow&&(s=!!t.raw.axisLineAutoShow)),s){var l=n.axis.getExtent(),h=o.transform,u=[l[0],0],d=[l[1],0],c=u[0]>d[0];h&&(es(u,u,h),es(d,d,h));var p=tk({lineCap:"round"},n.getModel(["axisLine","lineStyle"]).getLineStyle()),f={strokeContainThreshold:t.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(n.get(["axisLine","breakLine"])&&lv(n.axis.scale))null.buildAxisBreakLine(n,r,o,f);else{var g=new dU(tk({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},f));cI(g.shape,g.style.lineWidth),g.anid="line",r.add(g)}var _=n.get(["axisLine","symbol"]);if(null!=_){var m=n.get(["axisLine","symbolSize"]);tB(_)&&(_=[_,_]),(tB(m)||tF(m))&&(m=[m,m]);var v=p0(n.get(["axisLine","symbolOffset"])||0,m),y=m[0],b=m[1];tI([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(e,i){if("none"!==_[i]&&null!=_[i]){var n=pJ(_[i],-y/2,-b/2,y,b,p.stroke,!0),o=e.r+e.offset,a=c?d:u;n.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),r.add(n)}})}}},axisTickLabelEstimate:function(t,e,i,n,r,o,a,s){_j(e,r,s)&&_$(t,e,i,n,r,o,a,1)},axisTickLabelDetermine:function(t,e,i,n,r,o,a,s){_j(e,r,s)&&_$(t,e,i,n,r,o,a,2);var l,h,u,d=function(t,e,i,n){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&(a=!0,null!=t.raw.axisTickAutoShow&&(a=!!t.raw.axisTickAutoShow)),!a||r.scale.isBlank())return[];for(var s=o.getModel("lineStyle"),l=t.tickDirection*o.get("length"),h=_W(r.getTicksCoords(),i.transform,l,tC(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),u=0;u<h.length;u++)e.add(h[u]);return h}(t,r,o,n);l=t,h=e.labelLayoutList,u=d,l.showMinorTicks||tI(h,function(t){if(t&&t.label.ignore)for(var e=0;e<u.length;e++){var i=u[e],n=_P(i),r=_O(t.label);if(null!=n.tickValue&&!n.onBand&&n.tickValue===r.labelInfo.tick.value)return void _U(i)}}),function(t,e,i,n,r){var o=n.axis,a=n.getModel("minorTick");if(!(!t.showMinorTicks||o.scale.isBlank())){var s=o.getMinorTicksCoords();if(s.length)for(var l=a.getModel("lineStyle"),h=r*a.get("length"),u=tC(l.getLineStyle(),tC(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var c=_W(s[d],i.transform,h,u,"minorticks_"+d),p=0;p<c.length;p++)e.add(c[p])}}(t,r,o,n,t.tickDirection)},axisName:function(t,e,i,n,r,o,a,s){var l,h,u=i.ensureRecord(n);e.nameEl&&(r.remove(e.nameEl),e.nameEl=u.nameLayout=u.nameLocation=null);var d=t.axisName;if(d){var c,p,f,g,_,m,v,y,b,x=t.nameLocation,w=t.nameDirection,S=n.getModel("nameTextStyle"),k=n.get("nameGap")||0,C=n.axis.getExtent(),T=n.axis.inverse?-1:1,M=new eY(0,0),D=new eY(0,0);"start"===x?(M.x=C[0]-T*k,D.x=-T):"end"===x?(M.x=C[1]+T*k,D.x=T):(M.x=(C[0]+C[1])/2,M.y=t.labelOffset+w*k,D.y=w);var I=eR();D.transform(eF(I,I,t.rotation));var A=n.get("nameRotate");null!=A&&(A=A*_I/180),gQ(x)?l=_F.innerTextLayout(t.rotation,null!=A?A:t.rotation,w):(c=t.rotation,p=x,f=A||0,g=C,v=rD(f-c),y=g[0]>g[1],b="start"===p&&!y||"start"!==p&&y,rI(v-_I/2)?(m=b?"bottom":"top",_="center"):rI(v-1.5*_I)?(m=b?"top":"bottom",_="center"):(m="middle",_=v<1.5*_I&&v>_I/2?b?"left":"right":b?"right":"left"),l={rotation:v,textAlign:_,textVerticalAlign:m},null!=(h=t.raw.axisNameAvailableWidth)&&(isFinite(h=Math.abs(h/Math.sin(l.rotation)))||(h=null)));var E=S.getFont(),O=n.get("nameTruncate",!0)||{},P=O.ellipsis,L=tj(t.raw.nameTruncateMaxWidth,O.maxWidth,h),R=s.nameMarginLevel||0,N=new a1({x:M.x,y:M.y,rotation:l.rotation,silent:_F.isLabelSilent(n),style:sJ(S,{text:d,font:E,overflow:"truncate",width:L,ellipsis:P,fill:S.getTextColor()||n.get(["axisLine","lineStyle","color"]),align:S.get("align")||l.textAlign,verticalAlign:S.get("verticalAlign")||l.textVerticalAlign}),z2:1});if(cU({el:N,componentModel:n,itemName:d}),N.__fullText=d,N.anid="name",n.get("triggerEvent")){var z=_F.makeAxisEventDataBase(n);z.targetType="axisName",z.name=d,a2(N).eventData=z}o.add(N),N.updateTransform(),e.nameEl=N;var B=u.nameLayout=_k({label:N,priority:N.z2,defaultAttr:{ignore:N.ignore},marginDefault:gQ(x)?_A[R]:_E[R]});if(u.nameLocation=x,r.add(N),N.decomposeTransform(),t.shouldNameMoveOverlap&&B){var V=i.ensureRecord(n);i.resolveAxisNameOverlap(t,i,n,B,D,V)}}}};function _$(t,e,i,n,r,o,a,s){_G(e)||function(t,e,i,n,r,o){var a=r.axis,s=tj(t.raw.axisLabelShow,r.get(["axisLabel","show"])),l=new rn;i.add(l);var h=_t(n);if(!s||a.scale.isBlank())return _Z(e,[],l,h);var u=r.getModel("axisLabel"),d=a.getViewLabels(h),c=(tj(t.raw.labelRotate,u.get("rotate"))||0)*_I/180,p=_F.innerTextLayout(t.rotation,c,t.labelDirection),f=r.getCategories&&r.getCategories(!0),g=[],_=r.get("triggerEvent"),m=1/0,v=-1/0;tI(d,function(t,e){var i,n=t.tick,s=t.formattedLabel,h=t.rawLabel,c=u,y=g2(a.scale,n);if(f&&f[y]){var b=f[y];tH(b)&&b.textStyle&&(c=new ls(b.textStyle,u,r.ecModel))}var x=c.getTextColor()||r.get(["axisLine","lineStyle","color"]),w=c.getShallow("align",!0)||p.textAlign,S=tG(c.getShallow("alignMinLabel",!0),w),k=tG(c.getShallow("alignMaxLabel",!0),w),C=c.getShallow("verticalAlign",!0)||c.getShallow("baseline",!0)||p.textVerticalAlign,T=tG(c.getShallow("verticalAlignMinLabel",!0),C),M=tG(c.getShallow("verticalAlignMaxLabel",!0),C),D=10+((null==(i=n.time)?void 0:i.level)||0);m=Math.min(m,D),v=Math.max(v,D);var I=new a1({x:0,y:0,rotation:0,silent:_F.isLabelSilent(r),z2:D,style:sJ(c,{text:s,align:0===e?S:e===d.length-1?k:w,verticalAlign:0===e?T:e===d.length-1?M:C,fill:tz(x)?x("category"===a.type?h:"value"===a.type?y+"":y,e):x})});I.anid="label_"+y;var A=_O(I);if(A.labelInfo=t,A.layoutRotation=p.rotation,cU({el:I,componentModel:r,itemName:s,formatterParamsExtra:{isTruncated:function(){return I.isTruncated},value:h,tickIndex:e}}),_){var E,O,P,L,R=_F.makeAxisEventDataBase(r);R.targetType="axisLabel",R.value=h,R.tickIndex=e;var N=t.tick.break;if(N){var z=N.parsedBreak;R.break={start:z.vmin,end:z.vmax}}"category"===a.type&&(R.dataIndex=y),a2(I).eventData=R,N&&(E=r,O=o,P=I,L=N,P.on("click",function(t){var e={type:"expandAxisBreak",breaks:[{start:L.parsedBreak.breakOption.start,end:L.parsedBreak.breakOption.end}]};e[E.axis.dim+"AxisIndex"]=E.componentIndex,O.dispatchAction(e)}))}g.push(I),l.add(I)}),_Z(e,tA(g,function(t){return{label:t,priority:_O(t).labelInfo.tick.break?t.z2+(v-m+1):t.z2,defaultAttr:{ignore:t.ignore}}}),l,h)}(t,e,r,s,n,a);var l,h,u,d,c,p=e.labelLayoutList;l=t,h=n,u=p,d=o,c=h.get(["axisLabel","margin"]),tI(u,function(t,e){var i=_k(t);if(i){var n=i.label,r=_O(n);i.suggestIgnore=n.ignore,n.ignore=!1,nY(_q,_X);var o=h.axis;_q.x=o.dataToCoord(g2(o.scale,r.labelInfo.tick)),_q.y=l.labelOffset+l.labelDirection*c,_q.rotation=r.layoutRotation,d.add(_q),_q.updateTransform(),d.remove(_q),_q.decomposeTransform(),nY(n,_q),n.markRedraw(),_w(i,!0),_k(i)}}),function(t,e,i){var n=lg();if(n){var r=n.retrieveAxisBreakPairs(i,function(t){return t&&_O(t.label).labelInfo.tick.break},!0),o=t.get(["breakLabelLayout","moveOverlap"],!0);(!0===o||"auto"===o)&&tI(r,function(n){null.adjustBreakLabelPair(t.axis.inverse,e,[_k(i[n[0]]),_k(i[n[1]])])})}}(n,t.rotation,p);var f=t.optionHideOverlap;(function(t,e,i){var n=t.axis,r=t.get(["axisLabel","customValues"]);if("category"!==n.type||0!==gK(n.getLabelModel())){var o=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]),s=e.length;l(o,0,1),l(a,s-1,s-2)}function l(t,o,a){var s=_k(e[o]),l=_k(e[a]),h=n.scale;if(s&&l){if(null==t){if(!i&&r)return;var u=_O(s.label).labelInfo.tick;if(gx(h)&&u.notNice||gS(h)&&u.offInterval)return void _U(s.label)}if(!1===t||s.suggestIgnore)return void _U(s.label);if(l.suggestIgnore)return void _U(l.label);if(!i){var d=[0,0,0,0];s=_T({marginForce:d},s),l=_T({marginForce:d},l)}_D(s,l,null,{touchThreshold:.1})&&(t?_U(l.label):_U(s.label))}}})(n,p,f),f&&function(t){var e=[];function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}t.sort(function(t,e){return!!e.suggestIgnore-!!t.suggestIgnore||e.priority-t.priority});for(var n=0;n<t.length;n++){var r=_k(t[n]);if(!r.label.ignore){for(var o=r.label,a=r.labelLine,s=!1,l=0;l<e.length;l++)if(_D(r,e[l],null,{touchThreshold:.05})){s=!0;break}s?(i(o),a&&i(a)):e.push(r)}}}(tO(p,function(t){return t&&!t.label.ignore})),function(t,e,i,n){var r,o=i.axis,a=e.ensureRecord(i),s=[],l=!!t.axisName&&gQ(t.nameLocation);tI(n,function(t){var e=_k(t);if(e&&!e.label.ignore){s.push(e);var i=a.transGroup;l&&(i.transform?eH(_R,i.transform):eN(_R),e.transform&&eB(_R,_R,e.transform),ie.copy(_N,e.localRect),_N.applyTransform(_R),r?r.union(_N):ie.copy(r=new ie(0,0,0,0),_N))}});var h=Math.abs(a.dirVec.x)>.1?"x":"y",u=a.transGroup[h];if(s.sort(function(t,e){return Math.abs(t.label[h]-u)-Math.abs(e.label[h]-u)}),l&&r){var d=o.getExtent(),c=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-c;r.union(new ie(c,0,p,1))}a.stOccupiedRect=r,a.labelInfoList=s}(t,i,n,p)}function _U(t){t&&(t.ignore=!0)}function _W(t,e,i,n,r){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var h=t[l].coord;a[0]=h,a[1]=0,s[0]=h,s[1]=i,e&&(es(a,a,e),es(s,s,e));var u=new dU({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});cI(u.shape,u.style.lineWidth),u.anid=r+"_"+t[l].tickValue,o.push(u);var d=_P(u);d.onBand=!!t[l].onBand,d.tickValue=t[l].tickValue}return o}function _j(t,e,i){if(_G(t)){var n=t.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(i.noPxChange){for(var r=!0,o=0;o<n.length;o++)r=r&&n[o]();if(r)return!1}n.length&&(e.remove(t.labelGroup),_Z(t,null,null,null))}return!0}function _G(t){return!!t.labelLayoutList}function _Z(t,e,i,n){t.labelLayoutList=e,t.labelGroup=i,t.axisLabelsCreationContext=n}var _q=new aF,_X=new aF;function _K(t,e,i){i=i||{};var n=e.axis,r={},o=n.getAxesOnZeroOf()[0],a=n.position,s=o?"onZero":a,l=n.dim,h=[t.x,t.x+t.width,t.y,t.y+t.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=e.get("offset")||0,c="x"===l?[h[2]-d,h[3]+d]:[h[0]-d,h[1]+d];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));c[u.onZero]=Math.max(Math.min(p,c[1]),c[0])}r.position=["y"===l?c[u[s]]:h[0],"x"===l?c[u[s]]:h[3]],r.rotation=Math.PI/2*("x"!==l),r.labelDirection=r.tickDirection=r.nameDirection=({top:-1,bottom:1,left:-1,right:1})[a],r.labelOffset=o?c[u[a]]-c[u.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),tj(i.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var f=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===s?-f:f,r.z2=1,r}var _Q=rX(),_J=function(){function t(t,e,i,n,r){var o,a,s,l,h=gS(t),u=h?e.getCategories().length:null;if(h){var d=e.getCategories(!0);l=d&&!d.length}var c=i.slice();(gb(t)||gw(t)||gx(t))&&(r7(c,_1(t,e.get("dataMin",!0))),r8(c,_1(t,e.get("dataMax",!0)))),isFinite(o=c[1]-c[0])&&o>=0||(c[0]=c[1]=0/0);var p=[],f=[!1,!1],g=e.get("min",!0);"dataMin"===g?(p[0]=c[0],f[0]=!0):(p[0]=_1(t,tz(g)?g({min:c[0],max:c[1]}):g),f[0]=null!=p[0]);var _=e.get("max",!0);"dataMax"===_?(p[1]=c[1],f[1]=!0):(p[1]=_1(t,tz(_)?_({min:c[0],max:c[1]}):_),f[1]=null!=p[1]);var m=function(t,e){var i;if(gS(t))i=[0,0];else{var n=e.get("boundaryGap");"boolean"==typeof n&&(n=null),i=tN(n)?n:[n,n]}return[_2(i[0]),_2(i[1])]}(t,e),v=h?null:c[1]-c[0]||Math.abs(c[0]);null==p[0]&&(p[0]=h?l?c[0]:u?0:0/0:c[0]-m[0]*v),null==p[1]&&(p[1]=h?l?c[1]:u?u-1:0/0:c[1]+m[1]*v),r9(p[0])||(p[0]=0/0),r9(p[1])||(p[1]=0/0);var y=l||(a=p[0])!=a||(s=p[1])!=s||h&&!u,b=gb(t),x=b&&e.needIncludeZero&&e.needIncludeZero();x&&(p[0]>0&&p[1]>0&&!f[0]&&(p[0]=0),p[0]<0&&p[1]<0&&!f[1]&&(p[1]=0));var w=!1;p[0]>p[1]&&(p.reverse(),w=!0);var S=_1(t,e.get("startValue",!0)),k=null!=S;!rB(S)&&n&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),rB(S)&&(k||!b||x)&&(S<p[0]&&!f[0]?(p[0]=S,f[0]=!0):S>p[1]&&!f[1]&&(p[1]=S,f[1]=!0)),_0(this._i={scale:t,dataMM:c,noZoomEffMM:p,zoomMM:[],fixMM:f,zoomFixMM:[!1,!1],startValue:S,isBlank:y,incl0:x,tggAxInv:w,ctnShp:r},p)}return t.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},t.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,i=t.noZoomEffMM,n=t.zoomFixMM,r=t.fixMM,o={fixMM:r,zoomFixMM:n,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:i.slice()},a=o.effMM;return null!=e[0]&&(a[0]=e[0],r[0]=n[0]=!0),null!=e[1]&&(a[1]=e[1],r[1]=n[1]=!0),_0(t,a),o},t.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},t.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},t}();function _0(t,e){var i=t.scale,n=t.dataMM;i.sanitize&&(e[0]=i.sanitize(e[0],n),e[1]=i.sanitize(e[1],n),oe(e))}function _1(t,e){return null==e?null:e!=e?0/0:t.parse(e)}function _2(t){return nQ("boolean"==typeof t?0:t,1)||0}function _5(t){var e=_Q(t.scale);return e.extent||(e.extent=r4()),e}function _3(t,e){var i=t.scale,n=t.model,r=t.dim;i.rawExtentInfo||function(t,e,i,n,r){var o,a,s=_5(e),l=s.extent,h=!1;(a=_d(pH(o=e.model.ecModel)).axSer)&&function(t,e,i){if(e)for(var n=0;n<e.length;n++){var r=e[n];t.isSeriesFiltered(r)||i(r)}}(o,a.get(e.model.uid),function(n){if(n.boxCoordinateSystem){var r=l0(n).coord,o=s.dimIdxInCoord;if(o>=0&&tN(r)){var a=r[o];null==a||tN(a)||r6(l,t.parse(a))}}else if(n.coordinateSystem){var u=n.getData();if(u){var d,c=t.getFilter?t.getFilter():null;tI((d={},tI(u.mapDimensionsAll(i),function(t){d[gG(u,t)?u.getCalculationInfo("stackResultDimension"):t]=!0}),tP(d)),function(t){var e;ot((e=u.getApproximateExtent(t,c))[0],e[1])&&(e[0]<l[0]&&(l[0]=e[0]),e[1]>l[1]&&(l[1]=e[1]))})}n.__requireStartValue&&n.__requireStartValue(e)&&(h=!0)}});var u=function(t,e,i){var n=g5(t,i),r=i.get("containShape",!0);if(null!=r||n||(r=!0),!r)return!1;var o=!1;return _p(e,function(t){o=!!_6.get(t)||o}),o}(t,e,n),d=new _J(t,n,l,h,u);_4(t,d,r),s.extent=null}(i,t,r,n,e)}function _4(t,e,i){t.rawExtentInfo=e,e.from=i}var _6=t5();function _7(t,e,i,n,r){t.rawExtentInfo||(o={scale:t,model:e},a=r||r4(),_4(s=o.scale,new _J(s,o.model,a,!1,!1),3));var o,a,s,l=t.rawExtentInfo.makeFinal(),h=l.effMM;return t.setExtent(h[0],h[1]),t.setBlank(l.isBlank),n&&l.tggAxInv&&i&&!i.get("legacyMinMaxDontInverseAxis")&&(n.inverse=!n.inverse),l}function _8(t,e){var i,n,r,o,a,s,l,h,u,d,c,p,f,g,_,m,v,y=gw(t),b=y?t.intervalStub:t,x=e.fixMinMax||[],w=y?t.getExtent():null,S=b.getExtent(),k=gT(S,x,e.rawExtentResult);b.setExtent(k[0],k[1]),k=b.getExtent();var C=y?(i=b,n=gM(e.splitNumber,10),r=i.getExtent(),a=rh(rO(o=gm(i)),1),n/o*a<=.5&&(a*=10),s=gk(a),l=[rw(rp(r[0]/a)*a,s),rw(rc(r[1]/a)*a,s)],{intervalPrecision:s,interval:a,niceExtent:l}):(h=b,d=gM((u=e).splitNumber,5),c=gm(h),p=u.minInterval,f=u.maxInterval,g=rL(c/d,!0),null!=p&&g<p&&(g=p),null!=f&&g>f&&(g=f),_=gk(g),v=[rw(rp((m=h.getExtent())[0]/g)*g,_),rw(rc(m[1]/g)*g,_)],{interval:g,intervalPrecision:_,niceExtent:v}),T=C.intervalPrecision,M=C.interval,D=e.userInterval;null!=D&&(C.interval=D,C.intervalPrecision=gk(D)),x[0]||(k[0]=rw(rc(k[0]/M)*M,T)),x[1]||(k[1]=rw(rp(k[1]/M)*M,T)),null!=D&&(C.niceExtent=k.slice()),g1(t,x,S,k,w,C)}function _9(t){var e,i,n,r,o,a,s,l,h=t.scale,u=t.model,d=u.axis,c=u.ecModel;e=h,i=u,n=d,o=_7(e,i,r=c,n,null),a=gb(e)||gx(e),s=e,l={splitNumber:i.get("splitNumber"),fixMinMax:o.fixMM,userInterval:i.get("interval"),minInterval:a?i.get("minInterval"):null,maxInterval:a?i.get("maxInterval"):null,rawExtentResult:o},mt[s.type](s,l),n&&r&&function(t,e,i,n){if(i.ctnShp&&(_p(t,function(e){var i=_6.get(e);if(i){var o=i(t,n);o&&(r7(r=r||[0,0],o[0]),r8(r,o[1]),gZ(t).noOnMyZero=!0)}}),r)){var r,o=e.getExtent();if(gS(e))t.onBand||e.setExtent2(1,rl(o[0],o[0]+r[0]),rh(o[1],o[1]+r[1]));else{var a=o.slice();i.zoomFixMM[0]||(a[0]=rl(a[0],e.transformOut(e.transformIn(a[0],null)+r[0],null))),i.zoomFixMM[1]||(a[1]=rh(a[1],e.transformOut(e.transformIn(a[1],null)+r[1],null))),(a[0]<o[0]||a[1]>o[1])&&e.setExtent2(1,a[0],a[1])}}}(n,e,o,r)}var mt={interval:_8,log:_8,time:function(t,e){var i=t.getExtent();if(i[0]===i[1]&&(i[0]-=864e5,i[1]+=864e5),-1/0===i[1]&&1/0===i[0]){var n=new Date;i[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),i[0]=i[1]-864e5}t.setExtent(i[0],i[1]);var r=gM(e.splitNumber,10),o=gm(t)/r,a=e.minInterval,s=e.maxInterval;null!=a&&o<a&&(o=a),null!=s&&o>s&&(o=s);var l=gL.length,h=Math.min(gO(gL,o,0,l),l-1),u=gL[h][1],d=gL[Math.max(h-1,0)][0];t.setTimeInterval({approxInterval:o,interval:u,minLevelUnit:d})},ordinal:t7},me=[[3,1],[0,2]],mi=function(){function t(t,e,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=g4,this._initCartesian(t,e,i),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var i=this._axesMap;function n(t){for(var e=tP(t),i=[],n=e.length-1;n>=0;n--){var r=t[+e[n]];r.__alignTo?i.push(r):_9(r)}tI(i,function(t){var e,i;(e=t,i=t.__alignTo,lv(e.scale)||lv(i.scale)||i.scale.getTicks().length<2)?_9(t):function(t,e){var i,n,r,o,a,s,l,h,u,d=t.scale,c=t.model,p=_7(d,c,c.ecModel,t,null),f=gw(d),g=gw(e)?e.intervalStub:e,_=f?d.intervalStub:d,m=d.base,v=g.getTicks(),y=g.getTicks({expandToNicedExtent:!0}),b=v.length-1;if(1===b)i=n=0,r=1;else if(2===b){var x=ru(v[0].value-v[1].value),w=ru(v[1].value-v[2].value);i=n=0,x===w?r=2:(r=1,x<w?i=x/w:n=w/x)}else{var S=g.getConfig().interval;i=(1-(v[0].value-y[0].value)/S)%1,n=(1-(y[b].value-v[b].value)/S)%1,r=b-!!i-!!n}var k=p.zoomFixMM,C=k[0]||k[1],T=[p.fixMM[0]||C,p.fixMM[1]||C],M=d.getExtent(),D=_.getExtent(),I=gT(D,T);function A(t){for(var e=0;e<50&&!t();e++)l=gk(s=f?s*rh(m,2):function(t){var e=rP(t),i=rf(10,e),n=rd(t/i);return n?2===n?n=3:3===n?n=5:n*=2:n=1,rw(n*i,-e)}(s))}function E(){o=rw(u-s*i,l)}function O(){a=rw(h+s*n,l)}function P(){u=i?rw(o+s*i,l):o}function L(){h=n?rw(a-s*n,l):a}if(T[0]&&T[1]){o=I[0],s=((a=I[1])-o)/(r+i+n);var R=t.getExtent(),N=ru(R[1]-R[0]);l=rC([a,o],N,.5/r),P(),L(),rB(l)&&(s=rw(s,l))}else{var z=I[1]-I[0];l=gk(s=f?rh(rO(z),1):rL(z/r,2)),T[0]?(o=I[0],A(function(){if(P(),h=rw(u+s*r,l),O(),a>=I[1])return!0})):T[1]?(a=I[1],A(function(){if(L(),u=rw(h-s*r,l),E(),o<=I[0])return!0})):A(function(){u=rw(rp(I[0]/s)*s,l);var t=rd(((h=rw(rc(I[1]/s)*s,l))-u)/s);if(t<=r){var e=r-t,i=void 0,n=p.incl0||f;if(n&&0===I[0])i=[0,e];else if(n&&0===I[1])i=[e,0];else{var d=rc(e/2);i=e%2==0?[d,d]:o+a<I[0]+I[1]?[d,d+1]:[d+1,d]}if(u=rw(u-s*i[0],l),h=rw(h+s*i[1],l),E(),O(),o<=I[0]&&a>=I[1])return!0}})}g1(d,T,D,[o,a],M,{interval:s,intervalCount:r,intervalPrecision:l,niceExtent:[u,h]})}(t,t.__alignTo.scale)})}tI(this._axesList,function(t){_3(t,1);var e=t.scale;gS(e)&&e.setSortInfo(t.model.get("categorySortInfo"))}),n(i.x),n(i.y);var r={};tI(i.x,function(t){mn(i,"y",t,r)}),tI(i.y,function(t){mn(i,"x",t,r)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,i){var n=l4(t,e),r=this._rect=l3(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,a=this._coordsList,s=t.get("containLabel");if(ma(o,r),!i){var l=(u=r,d=a,c=o,p=s,f=e,g=new _L(mu),tI(c,function(t){return tI(t,function(t){gJ(t.model)&&(t.axisBuilder=function(t,e,i,n,r,o){for(var a,s=_K(t,i),l=!1,h=!1,u=0;u<e.length;u++)(gb(a=e[u].getOtherAxis(i.axis).scale)||gw(a))&&(l=h=!0,"category"===i.axis.type&&i.axis.onBand&&(h=!1));return s.axisLineAutoShow=l,s.axisTickAutoShow=h,s.defaultNameMoveOverlap=o,new _F(i,n,s,r)}(u,d,t.model,f,g,!p))})}),g),h=void 0;if(s)W?(W(this._axesList,r),ma(o,r)):h=ml(r.clone(),"axisLabel",null,r,o,l,n);else{var u,d,c,p,f,g,_,m,v,y,b,x,w=(_=t,m=r,v=n,"same"===(b=_.get("outerBoundsMode",!0))?y=m.clone():(null==b||"auto"===b)&&(y=l3(_.get("outerBounds",!0)||f5,v.refContainer)),{outerBoundsRect:y,parsedOuterBoundsContain:null==(x=_.get("outerBoundsContain",!0))||"auto"===x||0>tT(["all","axisLabel"],x)?"all":x,outerBoundsClamp:[rx(tG(_.get("outerBoundsClampWidth",!0),f3["0"]),m.width),rx(tG(_.get("outerBoundsClampHeight",!0),f3["1"]),m.height)]}),S=w.outerBoundsRect,k=w.parsedOuterBoundsContain,C=w.outerBoundsClamp;S&&(h=ml(S,k,C,r,o,l,n))}mh(r,o,2,null,h,n),tI(this._coordsList,function(t){t.calcAffineTransform()})}},t.prototype.getAxis=function(t,e){var i=this._axesMap[t];if(null!=i)return i[e||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(t,e){if(null!=t&&null!=e){var i="x"+t+"y"+e;return this._coordsMap[i]}tH(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,r=this._coordsList;n<r.length;n++)if(r[n].getAxis("x").index===t||r[n].getAxis("y").index===e)return r[n]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(i):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(t,e,i){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(i):n.axis?n.axis.coordToData(n.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(t){var e,i,n=t.seriesModel,r=t.xAxisModel||n&&n.getReferringComponents("xAxis",r0).models[0],o=t.yAxisModel||n&&n.getReferringComponents("yAxis",r0).models[0],a=t.gridModel,s=this._coordsList;return n?0>tT(s,e=n.coordinateSystem)&&(e=null):r&&o?e=this.getCartesian(r.componentIndex,o.componentIndex):r?i=this.getAxis("x",r.componentIndex):o?i=this.getAxis("y",o.componentIndex):a&&a.coordinateSystem===this&&(e=this._coordsList[0]),{cartesian:e,axis:i}},t.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},t.prototype._initCartesian=function(t,e,i){var n=this,r=this,o={left:!1,right:!1,top:!1,bottom:!1},a={x:{},y:{}},s={x:0,y:0};if(e.eachComponent("xAxis",l("x"),this),e.eachComponent("yAxis",l("y"),this),!s.x||!s.y){this._axesMap={},this._axesList=[];return}function l(e){return function(i,n){var l,h;if(l=i,h=t,l.getCoordSysModel()===h){var u,d=i.get("position");"x"===e?"top"!==d&&"bottom"!==d&&(d=o.bottom?"top":"bottom"):"left"!==d&&"right"!==d&&(d=o.left?"right":"left"),o[d]=!0;var c=(null!=(u=i.get("type"))&&(t6(gl,u)||gd.getClass(u))||(u="value"),u),p=new _b(e,function(t,e,i){var n;switch(lg()&&(n=g0(t,e,i)),e){case"category":return new gI({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:r4()});case"time":return new gP({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC"),breakOption:n});case"log":return new gz({logBase:t.get("logBase"),breakOption:n});case"value":return new gE({breakOption:n});default:return new(gd.getClass(e)||gE)({})}}(i,c,!0),[0,0],c,d);p.onBand=g5(p.scale,i),p.inverse=i.get("inverse"),i.axis=p,p.model=i,p.grid=r,p.index=n,r._axesList.push(p),a[e][n]=p,s[e]++}}}this._axesMap=a,tI(a.x,function(e,i){tI(a.y,function(r,o){var a="x"+i+"y"+o,s=new g7(a);s.master=n,s.model=t,n._coordsMap[a]=s,n._coordsList.push(s),s.addAxis(e),s.addAxis(r)})}),mo(a.x),mo(a.y)},t.prototype.getTooltipAxes=function(t){var e=[],i=[];return tI(this.getCartesians(),function(n){var r=null!=t&&"auto"!==t?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(r);0>tT(e,r)&&e.push(r),0>tT(i,o)&&i.push(o)}),{baseAxes:e,otherAxes:i}},t.create=function(e,i){var n=[];return e.eachComponent("grid",function(r,o){var a=new t(r,e,i);a.name="grid_"+o,a.resize(r,i,!0),r.coordinateSystem=a,n.push(a),tI(a._axesList,function(e){var i;i=t.dimIdxMap,_5(e).dimIdxInCoord=i.get(e.dim)})}),e.eachSeries(function(t){var e,i;!function(t){var e=t.targetModel,i=t.coordSysType,n=t.coordSysProvider,r=t.isDefaultDataCoordSys;t.allowNotFound;var o=function(t){var e=t.getShallow("coordinateSystem"),i=t.getShallow("coordinateSystemUsage",!0),n=0;if(e){var r="series"===t.mainType;(null==i&&(i=r?"data":"box"),"data"===i)?(n=1,r||(n=0)):"box"!==i||(n=2,r||lX[e])||(n=0)}return{coordSysType:e,kind:n}}(e),a=o.kind,s=o.coordSysType;if(r&&1!==a&&(a=1,s=i),0!==a&&s===i){var l=n(i,e);l&&(1===a?e.coordinateSystem=l:e.boxCoordinateSystem=l)}}({targetModel:t,coordSysType:f4,coordSysProvider:function(){var n,r=(tI(n={xAxisModel:null,yAxisModel:null},function(e,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,r0).models[0];n[i]=o}),n),o=r.xAxisModel,a=r.yAxisModel;return e=o.axis,i=a.axis,o.getCoordSysModel().coordinateSystem.getCartesian(o.componentIndex,a.componentIndex)}}),e&&i&&(_f(e,t,f4),_f(i,t,f4))},this),n},t.dimensions=g4,t.dimIdxMap=gW(g4),t}();function mn(t,e,i,n){i.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=i.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)mr(s,o[l])&&(r=o[l]);else for(var h in o)if(t6(o,h)&&mr(s,o[h])&&!n[u(o[h])]){r=o[h];break}r&&(n[u(r)]=!0)}function u(t){return t.dim+"_"+t.index}}function mr(t,e){if(!e)return!1;var i,n,r,o=ot(n=(i=e.scale.getExtentUnsafe(0,null))[0],r=i[1])?0===n||0===r?2:n<0&&r>0?1:3:3,a=e&&"category"!==e.type&&"time"!==e.type&&3!==o;return a&&"auto"===t&&gZ(e).noOnMyZero&&(a=!1),a}function mo(t){for(var e,i=tP(t),n=[],r=i.length-1;r>=0;r--){var o,a=t[+i[r]];(gb(o=a.scale)||gw(o))&&null==g0(a.model,a.type,!0)&&(a.model.get("alignTicks")&&null==a.model.get("interval")?n.push(a):e=a)}e||(e=n.pop()),e&&tI(n,function(t){t.__alignTo=e})}function ma(t,e){tI(t.x,function(t){return ms(t,e.x,e.width)}),tI(t.y,function(t){return ms(t,e.y,e.height)})}function ms(t,e,i){var n,r,o=[0,i],a=+!!t.inverse;t.setExtent(o[a],o[1-a]),r=(n=t.getExtent())[0]+n[1],t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return r-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return r-t+e}}function ml(t,e,i,n,r,o,a){mh(n,r,1,e,!1,a);var s=[0,0,0,0];h(0),h(1),u(n,0,0/0),u(n,1,0/0);var l=null==function(t,e){if(t&&e){for(var i=0,n=t.length;i<n;i++)if(e.call(void 0,t[i],i,t))return t[i]}}(s,function(t){return t>0});return cH(n,s,!0,!0,i),ma(r,n),l;function h(t){tI(r[cf[t]],function(e){if(gJ(e.model)){var i=o.ensureRecord(e.model),n=i.labelInfoList;if(n)for(var r=0;r<n.length;r++){var a=n[r],s=e.scale.normalize(g2(e.scale,_O(a.label).labelInfo.tick));s=1===t?1-s:s,u(a.rect,t,s),u(a.rect,1-t,0/0)}var l=i.nameLayout;if(l){var s=gQ(i.nameLocation)?.5:0/0;u(l.rect,t,s),u(l.rect,1-t,0/0)}}})}function u(e,i,n){var r=t[cf[i]]-e[cf[i]],o=e[cg[i]]+e[cf[i]]-(t[cg[i]]+t[cf[i]]);r=d(r,1-n),o=d(o,n);var a=me[i][0],l=me[i][1];s[a]=rh(s[a],r),s[l]=rh(s[l],o)}function d(t,e){return t>0&&e==e&&e>1e-4&&(t/=e),t}}function mh(t,e,i,n,r,o){var a=2===i;tI(e,function(e){return tI(e,function(e){if(gJ(e.model)){var i,n;i=e.axisBuilder,n=_K(t,e.model),i.updateCfg(n),e.axisBuilder.build(a?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:r})}})});var s={x:0,y:0};function l(e){s[cf[1-e]]=t[cg[e]]<=.5*o.refContainer[cg[e]]?0:1-e==1?2:1}l(0),l(1),tI(e,function(t,e){return tI(t,function(t){gJ(t.model)&&(("all"===n||a)&&t.axisBuilder.build({axisName:!0},{nameMarginLevel:s[e]}),a&&t.axisBuilder.build({axisLine:!0}))})})}var mu=function(t,e,i,n,r,o){var a="x"===i.axis.dim?"y":"x";_z(t,e,i,n,r,o),gQ(t.nameLocation)||tI(e.recordMap[a],function(t){t&&t.labelInfoList&&t.dirVec&&_V(t.labelInfoList,t.dirVec,n,r)})};function md(t,e){return"all"===t||tN(t)&&tT(t,e)>=0||t===e}function mc(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mf(t)]}function mp(t){return!!t.get(["handle","show"])}function mf(t){return t.type+"||"+t.id}var mg={},m_=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.render=function(e,i,n,r){this.axisPointerClass&&function(t){var e=mc(t);if(e){var i=e.axisPointerModel,n=e.axis.scale,r=i.option,o=i.get("status"),a=i.get("value");null!=a&&(a=n.parse(a));var s=mp(i);null==o&&(r.status=s?"show":"hide");var l=n.getExtent();(null==a||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),r.value=a,s&&(r.status=e.axis.scale.isBlank()?"hide":"show")}}(e),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},e.prototype.updateAxisPointer=function(t,e,i,n){this._doUpdateAxisPointerClass(t,i,!1)},e.prototype.remove=function(t,e){var i=this._axisPointer;i&&i.remove(e)},e.prototype.dispose=function(e,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(t,i,n){var r=e.getAxisPointerClass(this.axisPointerClass);if(r){var o,a=(o=mc(t))&&o.axisPointerModel;a?(this._axisPointer||(this._axisPointer=new r)).render(t,a,i,n):this._disposeAxisPointer(i)}},e.prototype._disposeAxisPointer=function(t){this._axisPointer&&this._axisPointer.dispose(t),this._axisPointer=null},e.registerAxisPointerClass=function(t,e){mg[t]=e},e.getAxisPointerClass=function(t){return t&&mg[t]},e.type="axis",e}(uJ),mm=rX(),mv=["splitArea","splitLine","minorSplitLine","breakArea"],my=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.axisPointerClass="CartesianAxisPointer",i}return ti(e,t),e.prototype.render=function(e,i,n,r){this.group.removeAll();var o=this._axisGroup;this._axisGroup=new rn,this.group.add(this._axisGroup),gJ(e)&&(this._axisGroup.add(e.axis.axisBuilder.group),tI(mv,function(t){e.get([t,"show"])&&mb[t](this,this._axisGroup,e,e.getCoordSysModel(),n)},this),r&&"changeAxisOrder"===r.type&&r.isInitSort||cR(o,this._axisGroup,e),t.prototype.render.call(this,e,i,n,r))},e.prototype.remove=function(){mm(this).splitAreaColors=null},e.type="cartesianAxis",e}(m_),mb={splitLine:function(t,e,i,n,r){var o=i.axis;if(!o.scale.isBlank()){var a=i.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),h=!1!==a.get("showMinLine"),u=!1!==a.get("showMaxLine");l=tN(l)?l:[l];for(var d=n.coordinateSystem.getRect(),c=o.isHorizontal(),p=0,f=o.getTicksCoords({tickModel:a,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),g=[],_=[],m=s.getLineStyle(),v=0;v<f.length;v++){var y=o.toGlobalCoord(f[v].coord);if((0!==v||h)&&(v!==f.length-1||u)){var b=f[v].tickValue;c?(g[0]=y,g[1]=d.y,_[0]=y,_[1]=d.y+d.height):(g[0]=d.x,g[1]=y,_[0]=d.x+d.width,_[1]=y);var x=p++%l.length,w=new dU({anid:null!=b?"line_"+b:null,autoBatch:!0,shape:{x1:g[0],y1:g[1],x2:_[0],y2:_[1]},style:tC({stroke:l[x]},m),silent:!0});cI(w.shape,m.lineWidth),e.add(w)}}}},minorSplitLine:function(t,e,i,n,r){var o=i.axis,a=i.getModel("minorSplitLine").getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=o.isHorizontal(),h=o.getMinorTicksCoords();if(h.length)for(var u=[],d=[],c=a.getLineStyle(),p=0;p<h.length;p++)for(var f=0;f<h[p].length;f++){var g=o.toGlobalCoord(h[p][f].coord);l?(u[0]=g,u[1]=s.y,d[0]=g,d[1]=s.y+s.height):(u[0]=s.x,u[1]=g,d[0]=s.x+s.width,d[1]=g);var _=new dU({anid:"minor_line_"+h[p][f].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:c,silent:!0});cI(_.shape,c.lineWidth),e.add(_)}},splitArea:function(t,e,i,n,r){!function(t,e,i,n){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),h=r.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(h.length){var u=s.length,d=mm(t).splitAreaColors,c=t5(),p=0;if(d)for(var f=0;f<h.length;f++){var g=d.get(h[f].tickValue);if(null!=g){p=(g+(u-1)*f)%u;break}}var _=r.toGlobalCoord(h[0].coord),m=a.getAreaStyle();s=tN(s)?s:[s];for(var f=1;f<h.length;f++){var v=r.toGlobalCoord(h[f].coord),y=void 0,b=void 0,x=void 0,w=void 0;r.isHorizontal()?(y=_,b=l.y,x=v-y,w=l.height,_=y+x):(y=l.x,b=_,x=l.width,w=v-b,_=b+w);var S=h[f-1].tickValue;null!=S&&c.set(S,p),e.add(new aF({anid:null!=S?"area_"+S:null,shape:{x:y,y:b,width:x,height:w},style:tC({fill:s[p]},m),autoBatch:!0,silent:!0})),p=(p+1)%u}mm(t).splitAreaColors=c}}}(t,e,i,n)},breakArea:function(t,e,i,n,r){i.axis.scale}},mx=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="xAxis",e}(my),mw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type=mx.type,e}return ti(e,t),e.type="yAxis",e}(my),mS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="grid",e}return ti(e,t),e.prototype.render=function(t,e){this.group.removeAll(),t.get("show")&&this.group.add(new aF({shape:t.coordinateSystem.getRect(),style:tC({fill:t.get("backgroundColor")},t.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(uJ),mk={offset:0};function mC(t){t.registerComponentView(mS),t.registerComponentModel(f6),t.registerCoordinateSystem("cartesian2d",mi),gh(t,"x",f8,mk),gh(t,"y",f8,mk),t.registerComponentView(mx),t.registerComponentView(mw),t.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var mT=rX();function mM(t,e,i,n){!function t(e,i){if(!(tH(e)&&tH(i)))return e===i;var n=!0;return tI(i,function(i,r){n=n&&t(e[r],i)}),!!n}(mT(i).lastProp,n)&&(mT(i).lastProp=n,e?cs(i,n,t):(i.stopAnimation(),i.attr(n)))}function mD(t,e){t[e.get(["label","show"])?"show":"hide"]()}function mI(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function mA(t,e,i){var n=e.get("z"),r=e.get("zlevel");t&&t.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=r&&(t.zlevel=r),t.silent=i)})}function mE(t,e,i,n,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:gX(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tI(n,function(t){var e=i.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,r=e&&e.getDataParams(n);r&&s.seriesData.push(r)}),tB(a)?o=a.replace("{value}",o):tz(a)&&(o=a(s))}return o}function mO(t,e,i){var n=eR();return eF(n,n,i.rotation),eV(n,n,i.position),cP([t.dataToCoord(e),(i.labelOffset||0)+(i.labelDirection||1)*(i.labelMargin||0)],n)}var mP=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.makeElOption=function(t,e,i,n,r){var o,a,s,l,h,u,d,c,p,f,g,_,m,v,y,b,x,w,S,k=i.axis,C=k.grid,T=n.get("type"),M=k.getGlobalExtent(),D=mL(C,k).getOtherAxis(k).getGlobalExtent(),I=k.toGlobalCoord(k.dataToCoord(e,!0));if(T&&"none"!==T){var A,E,O,P=(E=n.get("type"),O=n.getModel(E+"Style"),"line"===E?(A=O.getLineStyle()).fill=null:"shadow"===E&&((A=O.getAreaStyle()).stroke=null),A),L=mR[T](k,I,M,D,n.get("seriesDataIndices"),n.ecModel);L.style=P,t.graphicKey=L.type,t.pointer=L}var R=_K(C.getRect(),i);d=_F.innerTextLayout(R.rotation,0,R.labelDirection),R.labelMargin=n.get(["label","margin"]),c={position:mO(i.axis,e,R),align:d.textAlign,verticalAlign:d.textVerticalAlign},p=mE(n.get("value"),i.axis,i.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),g=tX((f=n.getModel("label")).get("padding")||0),m=nZ(p,_=f.getFont()),v=c.position,y=m.width+g[1]+g[3],b=m.height+g[0]+g[2],"right"===(x=c.align)&&(v[0]-=y),"center"===x&&(v[0]-=y/2),"bottom"===(w=c.verticalAlign)&&(v[1]-=b),"middle"===w&&(v[1]-=b/2),o=v,a=y,s=b,h=(l=r).getWidth(),u=l.getHeight(),o[0]=Math.min(o[0]+a,h)-a,o[1]=Math.min(o[1]+s,u)-s,o[0]=Math.max(o[0],0),o[1]=Math.max(o[1],0),(S=f.get("backgroundColor"))&&"auto"!==S||(S=i.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:sJ(f,{text:p,font:_,fill:f.getTextColor(),padding:g,backgroundColor:S}),z2:10}},e.prototype.getHandleTransform=function(t,e,i){var n=_K(e.axis.grid.getRect(),e,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var r=mO(e.axis,t,n);return{x:r[0],y:r[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,i,n){var r=i.axis,o=r.grid,a=r.getGlobalExtent(!0),s=mL(o,r).getOtherAxis(r).getGlobalExtent(),l=+("x"!==r.dim),h=[t.x,t.y];h[l]+=e[l],h[l]=rl(a[1],h[l]),h[l]=rh(a[0],h[l]);var u=(s[1]+s[0])/2,d=[u,u];return d[l]=h[l],{x:h[0],y:h[1],rotation:t.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,i,n){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=i,n||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o){a&&a.hide(),s&&s.hide();return}a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,i);var h=l.graphicKey;h!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=h;var u=this._moveAnimation=this.determineAnimation(t,e);if(a){var d=tR(mM,e,u);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,e)}else a=this._group=new rn,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),i.getZr().add(a);mA(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var i=e.get("animation"),n=t.axis,r="category"===n.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===i||null==i){var a=this.animationThreshold;if(r&&_m(n).w>a)return!0;if(o){var s=mc(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===i},t.prototype.makeElOption=function(t,e,i,n,r){},t.prototype.createPointerEl=function(t,e,i,n){var r=e.pointer;if(r){var o=mT(t).pointerEl=new tt[r.type](tw(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,i,n){if(e.label){var r=mT(t).labelEl=new a1(tw(e.label));t.add(r),mD(r,n)}},t.prototype.updatePointerEl=function(t,e,i){var n=mT(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),i(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,i,n){var r=mT(t).labelEl;r&&(r.setStyle(e.label.style),i(r,{x:e.label.x,y:e.label.y}),mD(r,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,i=this._axisPointerModel,n=this._api.getZr(),r=this._handle,o=i.getModel("handle"),a=i.get("status");if(!o.get("show")||!a||"hide"===a){r&&n.remove(r),this._handle=null;return}this._handle||(e=!0,r=this._handle=cB(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){eA(t.event)},onmousedown:tL(this._onHandleDragMove,this,0,0),drift:tL(this._onHandleDragMove,this),ondragend:tL(this._onHandleDragEnd,this)}),n.add(r)),mA(r,i,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");tN(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,pa(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){mM(this._axisPointerModel,!e&&this._moveAnimation,this._handle,mI(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var i=this._handle;if(i){this._dragging=!0;var n=this.updateHandleTransform(mI(i),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,i.stopAnimation(),i.attr(mI(n)),mT(i).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(),i=this._group,n=this._handle;e&&i&&(this._lastGraphicKey=null,i&&e.remove(i),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ps(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,i){return{x:t[i=i||0],y:t[1-i],width:e[i],height:e[1-i]}},t}());function mL(t,e){var i={};return i[e.dim+"AxisIndex"]=e.index,t.getCartesian(i)}var mR={line:function(t,e,i,n){var r,o,a;return{type:"Line",subPixelOptimize:!0,shape:(r=[e,n[0]],o=[e,n[1]],{x1:r[a=(a=mN(t))||0],y1:r[1-a],x2:o[a],y2:o[1-a]})}},shadow:function(t,e,i,n,r,o){var a,s,l,h=_m(t,{fromStat:{sers:tA(r,function(t){return o.getSeriesByIndex(t.seriesIndex)})},min:1}).w,u=n[1]-n[0],d=[rh(rl(i[0],i[1]),e-h/2),rl(e+h/2,rh(i[0],i[1]))],c=d[0],p=d[1];return{type:"Rect",shape:(a=[c,n[0]],s=[p-c,u],{x:a[l=(l=mN(t))||0],y:a[1-l],width:s[l],height:s[1-l]})}}};function mN(t){return+("x"!==t.dim)}var mz=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:hn.color.border,width:1,type:"dashed"},shadowStyle:{color:hn.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:hn.color.neutral00,padding:[5,7,5,7],backgroundColor:hn.color.accent60,borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:hn.color.accent40,throttle:40}},e}(ht),mB=rX();function mV(t,e,i){if(!tr.node){var n=e.getZr();mB(n).records||(mB(n).records={}),function(t,e){mB(t).initialized||(mB(t).initialized=!0,i("click",tR(mH,"click")),i("mousemove",tR(mH,"mousemove")),i("mousewheel",tR(mH,"mousewheel")),i("globalout",mF));function i(i,n){t.on(i,function(i){var r,o,a,s,l,h,u,d,c=(r=e,o={showTip:[],hideTip:[]},{dispatchAction:a=function(t){var e=o[t.type];e?e.push(t):(t.dispatchAction=a,r.dispatchAction(t))},pendings:o});tI(mB(t).records,function(t){t&&n(t,i,c.dispatchAction)}),s=c.pendings,l=e,u=s.showTip.length,d=s.hideTip.length,u?h=s.showTip[u-1]:d&&(h=s.hideTip[d-1]),h&&(h.dispatchAction=null,l.dispatchAction(h))})}}(n,e),(mB(n).records[t]||(mB(n).records[t]={})).handler=i}}function mF(t,e,i){t.handler("leave",null,i)}function mH(t,e,i,n){e.handler(t,i,n)}function mY(t,e){if(!tr.node){var i=e.getZr();(mB(i).records||{})[t]&&(mB(i).records[t]=null)}}var m$=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.render=function(t,e,i){var n=e.getComponent("tooltip"),r=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";mV("axisPointer",i,function(t,e,i){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&i({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){mY("axisPointer",e)},e.prototype.dispose=function(t,e){mY("axisPointer",e)},e.type="axisPointer",e}(uJ);function mU(t,e){var i,n=[],r=t.seriesIndex;if(null==r||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=rq(o,t);if(null==a||a<0||tN(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var h=l.getBaseAxis(),u=l.getOtherAxis(h).dim,d=h.dim,c=+("x"===u||"radius"===u),p=o.mapDimension(d),f=[];f[c]=o.get(p,a),f[1-c]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(f)||[]}else n=l.dataToPoint(o.getValues(tA(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var mW=rX();function mj(t,e,i){var n=t.currTrigger,r=[t.x,t.y],o=t.dispatchAction||tL(i.dispatchAction,i),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){mK(r)&&(r=mU({seriesIndex:t.seriesIndex,dataIndex:t.dataIndex},e).point);var s,l,h,u=mK(r),d=t.axesInfo,c=a.axesInfo,p="leave"===n||mK(r),f={},g={},_={list:[],map:{}},m={showPointer:tR(mZ,g),showTooltip:tR(mq,_)};tI(a.coordSysMap,function(t,e){var i=u||t.containPoint(r);tI(a.coordSysAxesInfo[e],function(t,e){var n=t.axis,o=function(t,e){for(var i=0;i<(t||[]).length;i++){var n=t[i];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(d,t);if(!p&&i&&(!d||o)){var a=o&&o.value;null!=a||u||(a=n.pointToData(r)),null!=a&&mG(t,a,m,!1,f)}})});var v={};return tI(c,function(t,e){var i=t.linkGroup;i&&!g[e]&&tI(i.axesInfo,function(e,n){var r=g[n];if(e!==t&&r){var o=r.value;i.mapper&&(o=t.axis.scale.parse(i.mapper(o,mX(e),mX(t)))),v[t.key]=o}})}),tI(v,function(t,e){mG(c[e],t,m,!0,f)}),s=g,l=c,h=f.axesInfo=[],tI(l,function(t,e){var i=t.axisPointerModel.option,n=s[e];n?(t.useHandle||(i.status="show"),i.value=n.value,i.seriesDataIndices=(n.payloadBatch||[]).slice()):t.useHandle||(i.status="hide"),"show"===i.status&&h.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}),function(t,e,i,n){if(mK(e)||!t.list.length)return n({type:"hideTip"});var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:i.tooltipOption,position:i.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}(_,r,t,o),function(t,e){var i=e.getZr(),n="axisPointerLastHighlights",r=mW(i)[n]||{},o=mW(i)[n]={};tI(t,function(t,e){var i=t.axisPointerModel.option;"show"===i.status&&t.triggerEmphasis&&tI(i.seriesDataIndices,function(t){o[t.seriesIndex+"|"+t.dataIndex]=t})});var a=[],s=[];function l(t){return{seriesIndex:t.seriesIndex,dataIndex:t.dataIndex}}tI(r,function(t,e){o[e]||s.push(l(t))}),tI(o,function(t,e){r[e]||a.push(l(t))}),s.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:s}),a.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(c,i),f}}function mG(t,e,i,n,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e)){if(!t.involveSeries)return void i.showPointer(t,e);var a,s,l,h,u,d,c,p,f=(a=e,h=(l=(s=t).axis).dim,u=a,d=[],c=Number.MAX_VALUE,p=-1,tI(s.seriesModels,function(t,e){var i,n,r=t.getData().mapDimensionsAll(h);if(t.getAxisTooltipData){var o=t.getAxisTooltipData(r,a,l);n=o.dataIndices,i=o.nestestValue}else{if(!(n=t.indicesOfNearest(h,r[0],a,"category"===l.type?.5:null)).length)return;i=t.getData().get(r[0],n[0])}if(rB(i)){var s=a-i,f=Math.abs(s);f<=c&&((f<c||s>=0&&p<0)&&(c=f,p=s,u=i,d.length=0),tI(n,function(e){d.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:d,snapToValue:u}),g=f.payloadBatch,_=f.snapToValue;g[0]&&null==r.seriesIndex&&tk(r,g[0]),!n&&t.snap&&o.containData(_)&&null!=_&&(e=_),i.showPointer(t,e,g),i.showTooltip(t,f,_)}}function mZ(t,e,i,n){t[e.key]={value:i,payloadBatch:n}}function mq(t,e,i,n){var r=i.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,h=mf(l),u=t.map[h];u||(u=t.map[h]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(u)),u.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function mX(t){var e=t.axis.model,i={},n=i.axisDim=t.axis.dim;return i.axisIndex=i[n+"AxisIndex"]=e.componentIndex,i.axisName=i[n+"AxisName"]=e.name,i.axisId=i[n+"AxisId"]=e.id,i}function mK(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function mQ(t){m_.registerAxisPointerClass("CartesianAxisPointer",mP),t.registerComponentModel(mz),t.registerComponentView(m$),t.registerPreprocessor(function(t){if(t){t.axisPointer&&0!==t.axisPointer.length||(t.axisPointer={});var e=t.axisPointer.link;e&&!tN(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){var i,n,r,o,a,s,l,h,u;t.getComponent("axisPointer").coordSysAxesInfo=(n=i={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}},r=t,o=e,a=r.getComponent("tooltip"),l=(s=r.getComponent("axisPointer")).get("link",!0)||[],h=[],tI(o.getCoordinateSystems(),function(t){if(t.axisPointerEnabled){var e=mf(t.model),i=n.coordSysAxesInfo[e]={};n.coordSysMap[e]=t;var o=t.model.getModel("tooltip",a);if(tI(t.getAxes(),tR(p,!1,null)),t.getTooltipAxes&&a&&o.get("show")){var u="axis"===o.get("trigger"),d="cross"===o.get(["axisPointer","type"]),c=t.getTooltipAxes(o.get(["axisPointer","axis"]));(u||d)&&tI(c.baseAxes,tR(p,!d||"cross",u)),d&&tI(c.otherAxes,tR(p,"cross",!1))}}function p(e,a,u){var d=u.model.getModel("axisPointer",s),c=d.get("show");if(c&&("auto"!==c||e||mp(d))){null==a&&(a=d.get("triggerTooltip"));var p=(d=e?function(t,e,i,n,r,o){var a=e.getModel("axisPointer"),s={};tI(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=tw(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var h=a.get(["label","show"]);if(l.show=null==h||h,!o){var u=s.lineStyle=a.get("crossStyle");u&&tC(l,u.textStyle)}}return t.model.getModel("axisPointer",new ls(s,i,n))}(u,o,s,r,e,a):d).get("snap"),f=d.get("triggerEmphasis"),g=mf(u.model),_=a||p||"category"===u.type,m=n.axesInfo[g]={key:g,axis:u,coordSys:t,axisPointerModel:d,triggerTooltip:a,triggerEmphasis:f,involveSeries:_,snap:p,useHandle:mp(d),seriesModels:[],linkGroup:null};i[g]=m,n.seriesInvolved=n.seriesInvolved||_;var v=function(t,e){for(var i=e.model,n=e.dim,r=0;r<t.length;r++){var o=t[r]||{};if(md(o[n+"AxisId"],i.id)||md(o[n+"AxisIndex"],i.componentIndex)||md(o[n+"AxisName"],i.name))return r}}(l,u);if(null!=v){var y=h[v]||(h[v]={axesInfo:{}});y.axesInfo[g]=m,y.mapper=l[v].mapper,m.linkGroup=y}}}}),i.seriesInvolved&&(u=i,t.eachSeries(function(t){var e=t.coordinateSystem,i=t.get(["tooltip","trigger"],!0),n=t.get(["tooltip","show"],!0);e&&e.model&&"none"!==i&&!1!==i&&"item"!==i&&!1!==n&&!1!==t.get(["axisPointer","show"],!0)&&tI(u.coordSysAxesInfo[mf(e.model)],function(i){var n=i.axis;e.getAxis(n.dim)===n&&(i.seriesModels.push(t),null==i.seriesDataCount&&(i.seriesDataCount=0),i.seriesDataCount+=t.getData().count())})})),i)}}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mj)}var mJ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:hn.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:hn.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:hn.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:hn.color.tertiary,fontSize:14}},e}(ht);function m0(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function m1(t){if(tr.domSupported){for(var e=document.documentElement.style,i=0,n=t.length;i<n;i++)if(t[i]in e)return t[i]}}var m2=m1(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);function m5(t,e){if(!t)return e;e=lU(e,!0);var i=t.indexOf(e);return(t=-1===i?e:"-"+t.slice(0,i)+"-"+e).toLowerCase()}var m3=m5(m1(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),"transition"),m4=m5(m2,"transform"),m6="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(tr.transform3dSupported?"will-change:transform;":"");function m7(t,e,i){var n=t.toFixed(0)+"px",r=e.toFixed(0)+"px";if(!tr.transformSupported)return i?"top:"+r+";left:"+n+";":[["top",r],["left",n]];var o=tr.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+r+(o?",0":"")+")";return i?"top:0;left:0;"+m4+":"+a+";":[["top",0],["left",0],[m2,a]]}function m8(t,e,i,n,r){var o=e&&e.painter;if(i){var a=o&&o.getViewportRoot();a&&ev(em,a,n,r,!0)&&ev(t,i,em[0],em[1])}else{t[0]=n,t[1]=r;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var m9=function(){function t(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,tr.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var n=this._zr=t.getZr(),r=e.appendTo,o=r&&(tB(r)?document.querySelector(r):tU(r)?r:tz(r)&&r(t.getDom()));m8(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(i),this._api=t,this._container=o;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(t){if(t=t||window.event,!a._enterable){var e=n.handler;eI(n.painter.getViewportRoot(),t,!0),e.dispatch("mousemove",t)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return t.prototype.update=function(t){if(!this._container){var e,i,n=this._api.getDom(),r=(e="position",(i=n.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(n))?e?i[e]:i:null),o=n.style;"absolute"!==o.position&&"absolute"!==r&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},t.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i,n,r,o,a,s,l,h,u,d,c,p,f,g,_,m,v,y,b,x,w,S,k,C,T=this.el,M=T.style,D=this._styleCoord;T.innerHTML?M.cssText=m6+(i=!this._firstShow,n=this._longHide,r=this._enableDisplayTransition,o=[],a=t.get("transitionDuration"),s=t.get("backgroundColor"),l=t.get("shadowBlur"),h=t.get("shadowColor"),u=t.get("shadowOffsetX"),d=t.get("shadowOffsetY"),c=t.getModel("textStyle"),p=uF(t,"html"),f=u+"px "+d+"px "+l+"px "+h,o.push("box-shadow:"+f),i&&a>0&&o.push((g="cubic-bezier(0.23,1,0.32,1)",_="",m="",r&&(m="opacity"+(_=" "+a/2+"s "+g)+",visibility"+_),n||(_=" "+a+"s "+g,m+=(m.length?",":"")+(tr.transformSupported?""+m4+_:",left"+_+",top"+_)),m3+":"+m)),s&&o.push("background-color:"+s),tI(["width","color","radius"],function(e){var i="border-"+e,n=lU(i),r=t.get(n);null!=r&&o.push(i+":"+r+("color"===e?"":"px"))}),o.push((v=[],y=c.get("fontSize"),(b=c.getTextColor())&&v.push("color:"+b),v.push("font:"+c.getFont()),x=tG(c.get("lineHeight"),Math.round(3*y/2)),y&&v.push("line-height:"+x+"px"),w=c.get("textShadowColor"),S=c.get("textShadowBlur")||0,k=c.get("textShadowOffsetX")||0,C=c.get("textShadowOffsetY")||0,w&&S&&v.push("text-shadow:"+k+"px "+C+"px "+S+"px "+w),tI(["decoration","align"],function(t){var e=c.get(t);e&&v.push("text-"+t+":"+e)}),v.join(";"))),null!=p&&o.push("padding:"+tX(p).join("px ")+"px"),o.join(";")+";")+m7(D[0],D[1],!0)+"border-color:"+lq(e)+";"+(t.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):M.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(t,e,i,n,r){var o=this.el;if(null==t){o.innerHTML="";return}var a="";if(tB(r)&&"item"===i.get("trigger")&&!m0(i)&&(a=function(t,e,i){if(!tB(i)||"inside"===i)return"";var n,r,o=t.get("backgroundColor"),a=t.get("borderWidth");e=lq(e);var s=n="left"===(n=i)?"right":"right"===n?"left":"top"===n?"bottom":"top",l=Math.max(1.5*Math.round(a),6),h="",u=m4+":";tT(["left","right"],s)>-1?(h+="top:50%",u+="translateY(-50%) rotate("+(r="left"===s?-225:-45)+"deg)"):(h+="left:50%",u+="translateX(-50%) rotate("+(r="top"===s?225:45)+"deg)");var d=r*Math.PI/180,c=l+a,p=c*Math.abs(Math.cos(d))+c*Math.abs(Math.sin(d));h+=";"+s+":-"+Math.round(((p-Math.SQRT2*a)/2+Math.SQRT2*a-(p-c)/2)*100)/100+"px";var f=e+" solid "+a+"px;";return'<div style="'+["position:absolute;width:"+l+"px;height:"+l+"px;z-index:-1;",h+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+o+";"].join("")+'"></div>'}(i,n,r)),tB(t))o.innerHTML=t+a;else if(t){o.innerHTML="",tN(t)||(t=[t]);for(var s=0;s<t.length;s++)tU(t[s])&&t[s].parentNode!==o&&o.appendChild(t[s]);if(a&&o.childNodes.length){var l=document.createElement("div");l.innerHTML=a,o.appendChild(l)}}},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},t.prototype.moveTo=function(t,e){if(this.el){var i=this._styleCoord;if(m8(i,this._zr,this._container,t,e),null!=i[0]&&null!=i[1]){var n=this.el.style;tI(m7(i[0],i[1]),function(t){n[t[0]]=t[1]})}}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",tr.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;!function(t,e){function i(t){var e=t[e_];e&&(e.clearMarkers&&e.clearMarkers(),delete t[e_])}t&&i(t),e&&i(e)}(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var i=e.parentNode;i&&i.removeChild(e)}this.el=this._container=null},t}(),vt=function(){function t(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),vn(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return t.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(t,e,i,n,r){var o=this;tH(t)&&h1(""),this.el&&this._zr.remove(this.el);var a=i.getModel("textStyle");this.el=new a1({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:a.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:uF(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),tI(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(t){o.el.style[t]=i.get(t)}),tI(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(t){o.el.style[t]=a.get(t)||0}),this._zr.add(this.el);var s=this;this.el.on("mouseover",function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on("mouseout",function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},t.prototype.setEnterable=function(t){this._enterable=t},t.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),i=vi(t.style);return[e.width+i.left+i.right,e.height+i.top+i.bottom]},t.prototype.moveTo=function(t,e){var i=this.el;if(i){var n=this._styleCoord;vn(n,this._zr,t,e),t=n[0],e=n[1];var r=i.style,o=ve(r.borderWidth||0),a=vi(r);i.x=t+o+a.left,i.y=e+o+a.top,i.markRedraw()}},t.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(t){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(tL(this.hide,this),t)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function ve(t){return Math.max(0,t)}function vi(t){var e=ve(t.shadowBlur||0),i=ve(t.shadowOffsetX||0),n=ve(t.shadowOffsetY||0);return{left:ve(e-i),right:ve(e+i),top:ve(e-n),bottom:ve(e+n)}}function vn(t,e,i,n){t[0]=i,t[1]=n,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var vr=new aF({shape:{x:-1,y:-1,width:2,height:2}}),vo=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.init=function(t,e){if(!tr.node&&e.getDom()){var i,n=t.getComponent("tooltip"),r=this._renderMode="auto"===(i=n.get("renderMode"))?tr.domSupported?"html":"richText":i||"html";this._tooltipContent="richText"===r?new vt(e):new m9(e,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},e.prototype.render=function(t,e,i){if(!tr.node&&i.getDom()){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=i;var n=this._tooltipContent;n.update(t),n.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow(),"richText"!==this._renderMode&&t.get("transitionDuration")?pa(this,"_updatePosition",50,"fixRate"):ps(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");mV("itemTooltip",this._api,tL(function(e,i,n){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(i,n):"leave"===e&&this._hide(n))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,i=this._api,n=t.get("triggerOn");if("axis"!==t.get("trigger")&&(this._lastDataByCoordSys=null,this._cbParamsList=null),null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){i.isDisposed()||r.manuallyShowTip(t,e,i,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,i,n){if(n.from!==this.uid&&!tr.node&&i.getDom()){var r=vs(n,i);this._ticket="";var o=n.dataByCoordSys,a=function(t,e,i){var n,r=rJ(t).queryOptionMap,o=r.keys()[0];if(o&&"series"!==o){var a=r2(e,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a&&(i.getViewOfComponentModel(a).group.traverse(function(e){var i=a2(e).tooltipConfig;if(i&&i.name===t.name)return n=e,!0}),n))return{componentMainType:o,componentIndex:a.componentIndex,el:n}}}(n,e,i);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:n.position,positionDefault:"bottom"},r)}else if(n.tooltip&&null!=n.x&&null!=n.y)vr.x=n.x,vr.y=n.y,vr.update(),a2(vr).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:vr},r);else if(o)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:o,tooltipOption:n.tooltipOption},r);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,i,n))return;var l=mU(n,e),h=l.point[0],u=l.point[1];null!=h&&null!=u&&this._tryShow({offsetX:h,offsetY:u,target:l.el,position:n.position,positionDefault:"bottom"},r)}else null!=n.x&&null!=n.y&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,i,n){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(vs(n,i))},e.prototype._manuallyAxisShowTip=function(t,e,i,n){var r=n.seriesIndex,o=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===va([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return i.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:n.position}),!0}},e.prototype._tryShow=function(t,e){var i=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n,r,o=t.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,t);else if(i){if("legend"===a2(i).ssrType)return;this._lastDataByCoordSys=null,this._cbParamsList=null,pz(i,function(t){if(t.tooltipDisabled)return n=r=null,!0;n||r||(null!=a2(t).dataIndex?n=t:null!=a2(t).tooltipConfig&&(r=t))},!0),n?this._showSeriesItemTooltip(t,n,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var i=t.get("showDelay");e=tL(e,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(e,i):e()},e.prototype._showAxisTooltip=function(t,e){var i=this._ecModel,n=this._tooltipModel,r=[e.offsetX,e.offsetY],o=va([e.tooltipOption],n),a=this._renderMode,s=[],l=uP("section",{blocks:[],noHeader:!0}),h=[],u=new uH;tI(t,function(t){tI(t.dataByAxis,function(t){var e=i.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value,o=e.axis,d=o.scale.parse(r);if(e&&null!=r){var c=mE(r,o,i,t.seriesDataIndices,t.valueLabelOpt),p=uP("section",{header:c,noHeader:!tQ(c),sortBlocks:!0,blocks:[]});l.blocks.push(p),tI(t.seriesDataIndices,function(r){var o=i.getSeriesByIndex(r.seriesIndex),l=r.dataIndexInside,f=o.getDataParams(l);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=gX(e.axis,{value:d}),f.axisValueLabel=c,f.marker=u.makeTooltipMarker("item",lq(f.color),a);var g=ur(o.formatTooltip(l,!0,null)),_=g.frag;if(_){var m=va([o],n).get("valueFormatter");p.blocks.push(m?tk({valueFormatter:m},_):_)}g.text&&h.push(g.text),s.push(f)}})}})}),l.blocks.reverse(),h.reverse();var d=e.position,c=uz(l,u,a,o.get("order"),i.get("useUTC"),o.get("textStyle"));c&&h.unshift(c);var p="richText"===a?"\n\n":"<br/>",f=h.join(p);this._showOrMove(o,function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,f,s,Math.random()+"",r[0],r[1],d,null,u)})},e.prototype._showSeriesItemTooltip=function(t,e,i){var n=this._ecModel,r=a2(e),o=r.seriesIndex,a=n.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,h=r.dataType,u=s.getData(h),d=this._renderMode,c=t.positionDefault,p=va([u.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,c?{position:c}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,h),_=new uH;g.marker=_.makeTooltipMarker("item",lq(g.color),d);var m=ur(s.formatTooltip(l,!1,h)),v=p.get("order"),y=p.get("valueFormatter"),b=m.frag,x=b?uz(y?tk({valueFormatter:y},b):b,_,d,v,n.get("useUTC"),p.get("textStyle")):m.text,w="item_"+s.name+"_"+l;this._showOrMove(p,function(){this._showTooltipContent(p,x,g,w,t.offsetX,t.offsetY,t.position,t.target,_)}),i({type:"showTip",dataIndexInside:l,dataIndex:u.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,i){var n="html"===this._renderMode,r=a2(e),o=r.tooltipConfig.option||{},a=o.encodeHTMLContent;if(tB(o)){var s=o;o={content:s,formatter:s},a=!0}a&&n&&o.content&&((o=tw(o)).content=ew(o.content));var l=[o],h=this._ecModel.getComponent(r.componentMainType,r.componentIndex);h&&l.push(h),l.push({formatter:o.content});var u=t.positionDefault,d=va(l,this._tooltipModel,u?{position:u}:null),c=d.get("content"),p=Math.random()+"",f=new uH;this._showOrMove(d,function(){var i=tw(d.get("formatterParams")||{});this._showTooltipContent(d,c,i,p,t.offsetX,t.offsetY,t.position,e,f)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,i,n,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var u=t.get("formatter");a=a||t.get("position");var d=e,c=this._getNearestPoint([r,o],i,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)).color;if(u)if(tB(u)){var p=t.ecModel.get("useUTC"),f=tN(i)?i[0]:i,g=f&&f.axisType&&f.axisType.indexOf("time")>=0;d=u,g&&(d=lM(f.axisValue,d,p)),d=lZ(d,i,!0)}else if(tz(u)){var _=tL(function(e,n){e===this._ticket&&(h.setContent(n,l,t,c,a),this._updatePosition(t,a,r,o,h,i,s))},this);this._ticket=n,d=u(i,n,_)}else d=u;h.setContent(d,l,t,c,a),h.show(t,c),this._updatePosition(t,a,r,o,h,i,s)}},e.prototype._getNearestPoint=function(t,e,i,n,r){return"axis"===i||tN(e)?{color:n||r}:tN(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,i,n,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var h=r.getSize(),u=t.get("align"),d=t.get("verticalAlign"),c=a&&a.getBoundingRect().clone();if(a&&c.applyTransform(a.transform),tz(e)&&(e=e([i,n],o,r.el,c,{viewSize:[s,l],contentSize:h.slice()})),tN(e))i=rb(e[0],s),n=rb(e[1],l);else if(tH(e)){var p=e;p.width=h[0],p.height=h[1];var f=l3(p,{width:s,height:l});i=f.x,n=f.y,u=null,d=null}else if(tB(e)&&a){var g=function(t,e,i,n){var r=i[0],o=i[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,h=e.width,u=e.height;switch(t){case"inside":s=e.x+h/2-r/2,l=e.y+u/2-o/2;break;case"top":s=e.x+h/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+h/2-r/2,l=e.y+u+a;break;case"left":s=e.x-r-a,l=e.y+u/2-o/2;break;case"right":s=e.x+h+a,l=e.y+u/2-o/2}return[s,l]}(e,c,h,t.get("borderWidth"));i=g[0],n=g[1]}else{var _,m,v,y,b,x,w,S,k,C,g=(_=i,m=n,v=r,y=s,b=l,x=u?null:20,w=d?null:20,k=(S=v.getSize())[0],C=S[1],null!=x&&(_+k+x+2>y?_-=k+x:_+=x),null!=w&&(m+C+w>b?m-=C+w:m+=w),[_,m]);i=g[0],n=g[1]}if(u&&(i-=vl(u)?h[0]/2:"right"===u?h[0]:0),d&&(n-=vl(d)?h[1]/2:"bottom"===d?h[1]:0),m0(t)){var T,M,D,I,A,E,O,P,g=(T=i,M=n,D=r,I=s,A=l,O=(E=D.getSize())[0],P=E[1],T=Math.min(T+O,I)-O,M=Math.min(M+P,A)-P,[T=Math.max(T,0),M=Math.max(M,0)]);i=g[0],n=g[1]}r.moveTo(i,n)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var i=this._lastDataByCoordSys,n=this._cbParamsList,r=!!i&&i.length===t.length;return r&&tI(i,function(i,o){var a=i.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tI(a,function(t,i){var o=s[i]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tI(a,function(t,e){var i=l[e];r=r&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex}),n&&tI(t.seriesDataIndices,function(t){var i=t.seriesIndex,o=e[i],a=n[i];o&&a&&a.data!==o.data&&(r=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,this._cbParamsList=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!tr.node&&e.getDom()&&(ps(this,"_updatePosition"),this._tooltipContent.dispose(),mY("itemTooltip",e),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},e.type="tooltip",e}(uJ);function va(t,e,i){var n,r=e.ecModel;i?(n=new ls(i,r,r),n=new ls(e.option,n,r)):n=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof ls&&(a=a.get("tooltip",!0)),tB(a)&&(a={formatter:a}),a&&(n=new ls(a,n,r)))}return n}function vs(t,e){return t.dispatchAction||tL(e.dispatchAction,e)}function vl(t){return"center"===t||"middle"===t}var vh=["x","y","radius","angle","single"],vu=rX(),vd=["cartesian2d","polar","singleAxis"];function vc(t){return t+"Axis"}function vp(t){var e=t.ecModel,i={infoList:[],infoMap:t5()};return t.eachTargetAxis(function(t,n){var r=e.getComponent(vc(t),n);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=i.infoMap.get(a);s||(s={model:o,axisModels:[]},i.infoList.push(s),i.infoMap.set(a,s)),s.axisModels.push(r)}}}),i}function vf(t){var e=vu(pF(t).prepare);return e.axisProxyMap||(e.axisProxyMap=t5())}function vg(t){if(t)return vf(t.ecModel).get(t.uid)}function v_(t,e){var i=e.getAxisModel().axis.__alignTo;return i&&t.getAxisProxy(i.dim,i.model.componentIndex)?vg(i.model):null}var vm=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),vv=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._autoThrottle=!0,i._noTarget=!0,i._rangePropMode=["percent","percent"],i}return ti(e,t),e.prototype.init=function(t,e,i){var n=vy(t);this.settledOption=n,this.mergeDefaultAndTheme(t,i),this._doInit(n)},e.prototype.mergeOption=function(t){var e=vy(t);tS(this.option,t,!0),tS(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var i=this.settledOption;tI([["start","startValue"],["end","endValue"]],function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=i[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=t5();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tI(vh,function(i){var n=this.getReferringComponents(vc(i),r1);if(n.specified){e=!0;var r=new vm;tI(n.models,function(t){r.add(t.componentIndex)}),t.set(i,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var i=this.ecModel,n=!0,r="vertical"===e?"y":"x",o=i.findComponents({mainType:r+"Axis"});if(a(o,r),n){var o=i.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}});a(o,"single")}function a(e,i){var r=e[0];if(r){var o=new vm;if(o.add(r.componentIndex),t.set(i,o),n=!1,"x"===i||"y"===i){var a=r.getReferringComponents("grid",r0).models[0];a&&tI(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",r0).models[0]&&o.add(t.componentIndex)})}}}n&&tI(vh,function(e){if(n){var r=i.findComponents({mainType:vc(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new vm;o.add(r[0].componentIndex),t.set(e,o),n=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){t||(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,i=this.get("rangeMode");tI([["start","startValue"],["end","endValue"]],function(n,r){var o=null!=t[n[0]],a=null!=t[n[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":i?e[r]=i[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,i){null==t&&(t=this.ecModel.getComponent(vc(e),i))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(i,n){tI(i.indexList,function(i){t.call(e,n,i)})})},e.prototype.getAxisProxy=function(t,e){return vg(this.getAxisModel(t,e))},e.prototype.getAxisModel=function(t,e){var i=this._targetAxisInfoMap.get(t);if(i&&i.indexMap[e])return this.ecModel.getComponent(vc(t),e)},e.prototype.setRawRange=function(t){var e=this.option,i=this.settledOption;tI([["start","startValue"],["end","endValue"]],function(n){(null!=t[n[0]]||null!=t[n[1]])&&(e[n[0]]=i[n[0]]=t[n[0]],e[n[1]]=i[n[1]]=t[n[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tI(["start","startValue","end","endValue"],function(i){e[i]=t[i]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getWindow().percent},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getWindow().value;var i=this.findRepresentativeAxisProxy();if(i)return i.getWindow().value},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return vg(t);for(var e,i=this._targetAxisInfoMap.keys(),n=0;n<i.length;n++)for(var r=i[n],o=this._targetAxisInfoMap.get(r),a=0;a<o.indexList.length;a++){var s=this.getAxisProxy(r,o.indexList[a]);if(s.hostedBy(this))return s;e||(e=s)}return e},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(ht);function vy(t){var e={};return tI(["start","end","startValue","endValue","throttle"],function(i){t.hasOwnProperty(i)&&(e[i]=t[i])}),e}var vb=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="dataZoom.inside",e.defaultOption=lu(vv.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(vv),vx=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.prototype.render=function(t,e,i,n){this.dataZoomModel=t,this.ecModel=e,this.api=i},e.type="dataZoom",e}(uJ);function vw(t,e,i,n,r,o){t=t||0;var a,s=rT(i[1],-i[0]);if(null!=r&&(r=vk(r,[0,s])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===n){var l=Math.abs(rT(e[1],-e[0]));l=vk(l,[0,s]),r=o=vk(l,[r,o]),n=0}e[0]=vk(e[0],i),e[1]=vk(e[1],i);var h=vS(e,n);e[n]+=t;var u=r||0,d=i.slice();return h.sign<0?d[0]=rT(d[0],u):d[1]=rT(d[1],-u),e[n]=vk(e[n],d),a=vS(e,n),null!=r&&(a.sign!==h.sign||a.span<r)&&(e[1-n]=rT(e[n],h.sign*r)),a=vS(e,n),null!=o&&a.span>o&&(e[1-n]=rT(e[n],a.sign*o)),e}function vS(t,e){var i=t[e]-t[1-e];return{span:Math.abs(i),sign:i>0?-1:i<0?1:e?-1:1}}function vk(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var vC=rX();fG({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},t7);var vT={axisPointer:1,tooltip:1,brush:1},vM=function(t){function e(e){var i=t.call(this)||this;i._zr=e;var n=tL(i._mousedownHandler,i),r=tL(i._mousemoveHandler,i),o=tL(i._mouseupHandler,i),a=tL(i._mousewheelHandler,i),s=tL(i._pinchHandler,i);return i.enable=function(t,i){var l=i.zInfo,h=cK(l.component),u=h.z,d=h.zlevel,c={component:l.component,z:u,zlevel:d,z2:tG(l.z2,-1/0)},p=tk({},i.triggerInfo);this._opt=tC(tk({},i),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:c,triggerInfo:p,cursorGrab:"grab",cursorGrabbing:"grabbing"}),null==t&&(t=!0),this._enabled&&this._controlType===t||(this.disable(),this._enabled=!0,(!0===t||"move"===t||"pan"===t)&&(vE(e,"mousedown",n,c),vE(e,"mousemove",r,c),vE(e,"mouseup",o,c)),(!0===t||"scale"===t||"zoom"===t)&&(vE(e,"mousewheel",a,c),vE(e,"pinch",s,c)))},i.disable=function(){this._enabled&&(this._enabled=!1,vO(e,"mousedown",n),vO(e,"mousemove",r),vO(e,"mouseup",o),vO(e,"mousewheel",a),vO(e,"pinch",s))},i}return ti(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype._checkPointer=function(t,e,i){var n=this._opt,r=n.zInfoParsed;if(function(t,e,i){var n=e.getComponentByElement(t.topTarget);if(!n||n===i||vT.hasOwnProperty(n.mainType))return!1;var r=n.coordinateSystem;if(!r||r.model===i)return!1;var o=cK(n),a=cK(i);return!(0>=(o.zlevel-a.zlevel||o.z-a.z))}(t,n.api,r.component))return!1;var o=n.triggerInfo,a=o.roamTrigger,s=!1;return"global"===a&&(s=!0),s||(s=o.isInSelf(t,e,i)),s&&o.isInClip&&!o.isInClip(t,e,i)&&(s=!1),s},e.prototype._decideCursorStyle=function(t,e,i,n){var r=t.target;return!r&&this._checkPointer(t,e,i)?this._opt.cursorGrab:n?r&&r.cursor||"default":void 0},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(eE(t)||vD(t))){for(var e=t.target;e;){if(e.draggable)return;e=e.__hostTarget||e.parent}var i=t.offsetX,n=t.offsetY;this._checkPointer(t,i,n)&&(this._x=i,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){var e=this._zr;if(!("pinch"===t.gestureEvent||vC(e).globalPan||vD(t))){var i=t.offsetX,n=t.offsetY;if(!this._dragging||!vL("moveOnMouseMove",t,this._opt)){var r=this._decideCursorStyle(t,i,n,!1);r&&e.setCursorStyle(r);return}e.setCursorStyle(this._opt.cursorGrabbing);var o=this._x,a=this._y,s=i-o,l=n-a;this._x=i,this._y=n,this._opt.preventDefaultMouseMove&&eA(t.event),t.__ecRoamConsumed=!0,vP(this,"pan","moveOnMouseMove",t,{dx:s,dy:l,oldX:o,oldY:a,newX:i,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){if(!vD(t)){var e=this._zr;if(!eE(t)){this._dragging=!1;var i=this._decideCursorStyle(t,t.offsetX,t.offsetY,!0);i&&e.setCursorStyle(i)}}},e.prototype._mousewheelHandler=function(t){if(!vD(t)){var e=vL("zoomOnMouseWheel",t,this._opt),i=vL("moveOnMouseWheel",t,this._opt),n=t.wheelDelta,r=Math.abs(n),o=t.offsetX,a=t.offsetY;if(0!==n&&(e||i)){if(e){var s=r>3?1.4:r>1?1.2:1.1;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(i){var l=Math.abs(n);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}}},e.prototype._pinchHandler=function(t){if(!(vC(this._zr).globalPan||vD(t))){var e=t.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,t,{scale:e,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})}},e.prototype._checkTriggerMoveZoom=function(t,e,i,n,r){t._checkPointer(n,r.originX,r.originY)&&(eA(n.event),n.__ecRoamConsumed=!0,vP(t,e,i,n,r))},e}(ec);function vD(t){return t.__ecRoamConsumed}var vI=rX();function vA(t){var e=vI(t);return e.roam=e.roam||{},e.uniform=e.uniform||{},e}function vE(t,e,i,n){for(var r,o,a,s=vA(t).roam,l=s[e]=s[e]||[],h=0;h<l.length;h++){var u=l[h].zInfoParsed;if(0>=(u.zlevel-n.zlevel||u.z-n.z||u.z2-n.z2))break}l.splice(h,0,{listener:i,zInfoParsed:n}),r=t,o=e,(a=vA(r)).uniform[o]||r.on(o,a.uniform[o]=function(t){var e=a.roam[o];if(e)for(var i=0;i<e.length;i++)e[i].listener(t)})}function vO(t,e,i){for(var n=vA(t).roam[e]||[],r=0;r<n.length;r++)if(n[r].listener===i){n.splice(r,1),n.length||function(t,e){var i=vA(t).uniform;i[e]&&(t.off(e,i[e]),i[e]=null)}(t,e);return}}function vP(t,e,i,n,r){r.isAvailableBehavior=tL(vL,null,i,n),t.trigger(e,r)}function vL(t,e,i){var n=i[t];return!t||n&&(!tB(n)||e.event[n+"Key"])}var vR=rX();function vN(t,e){if(e){t.removeKey(e.model.uid);var i=e.controller;i&&i.dispose()}}function vz(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function vB(t,e,i,n){return t.coordinateSystem.containPoint([i,n])}var vV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return ti(e,t),e.prototype.render=function(e,i,n){var r;(t.prototype.render.apply(this,arguments),e.noTarget())?this._clear():(this.range=e.getPercentRange(),r={pan:tL(vF.pan,this),zoom:tL(vF.zoom,this),scrollMove:tL(vF.scrollMove,this)},vR(n).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=r)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var i=vR(t).coordSysRecordMap,n=i.keys(),r=0;r<n.length;r++){var o=n[r],a=i.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid;s.get(l)&&(s.removeKey(l),s.keys().length||vN(i,a))}}}(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(vx),vF={zoom:function(t,e,i,n){var r=this.range,o=r.slice(),a=t.axisModels[0];if(a){var s=vY[e](null,[n.originX,n.originY],a,i,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],h=Math.max(1/n.scale,0);o[0]=(o[0]-l)*h+l,o[1]=(o[1]-l)*h+l;var u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(vw(0,o,[0,100],0,u.minSpan,u.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1])return o}},pan:vH(function(t,e,i,n,r,o){var a=vY[n]([o.oldX,o.oldY],[o.newX,o.newY],e,r,i);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:vH(function(t,e,i,n,r,o){return vY[n]([0,0],[o.scrollDelta,o.scrollDelta],e,r,i).signal*(t[1]-t[0])*o.scrollDelta})};function vH(t){return function(e,i,n,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s&&(vw(t(a,s,e,i,n,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]))return a}}var vY={grid:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,i,n,r){var o=i.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),h=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===i.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=h[1]-h[0],a.pixelStart=h[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,i,n,r){var o=i.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},v$=function(){function t(t,e,i,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=i}return t.prototype.hostedBy=function(t){return this._dataZoomModel===t},t.prototype.getWindow=function(){return tw(this._window)},t.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(tT(vd,e.get("coordinateSystem"))>=0){var i=vc(this._dimName),n=e.getReferringComponents(i,r0).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return tw(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,i=this._extent,n=this.getAxisModel().axis,r=n.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],h=[!1,!1];tI(["start","end"],function(n,u){var d=t[n],c=t[n+"Value"];"percent"===o[u]?(null==d&&(d=a[u]),c=ry(d,a,i),h[u]=!0):(e=!0,null==c?c=i[u]:(c=r.parse(c),r.sanitize&&(c=r.sanitize(c,i))),d=ry(c,i,a)),l[u]=null==c||isNaN(c)?i[u]:c,s[u]=null==d||isNaN(d)?a[u]:d}),rS(l),rS(s);var u=this._minMaxSpan;function d(t,e,i,n,r){var o=r?"Span":"ValueSpan";vw(0,t,i,"all",u["min"+o],u["max"+o]);for(var a=0;a<2;a++)e[a]=ry(t[a],i,n,!0),r&&(e[a]=e[a],h[a]=!0);oe(e)}e?d(l,s,i,a,!1):d(s,l,a,i,!0);var c=gS(r)||gx(r),p=n.getExtent(),f=ru(p[1]-p[0]),g=c?0:rC(l,f,.5);tI([[0,rp],[1,rc]],function(t){var e=t[0],n=t[1];h[e]&&isFinite(g)&&(l[e]=rw(l[e],g),l[e]=rl(i[1],rh(i[0],l[e])),s[e]===a[e]&&(l[e]=i[e],c&&(l[e]=n(l[e]))))}),oe(l);var _=[ry(l[0],i,a,!0),ry(l[1],i,a,!0)];return oe(_),{value:l,percent:s,percentInverted:_,valuePrecision:g}},t.prototype.reset=function(t,e){if(this.hostedBy(t)){var i=this.getAxisModel().axis;_3(i,2);var n=i.scale.rawExtentInfo;this._extent=n.makeNoZoom(),this._updateMinMaxSpan();var r=t.settledOption;e&&(r=tC({start:e[0],end:e[1]},r));var o=this._window=this.calculateDataWindow(r),a=o.percent,s=o.value;0!==a[0]&&n.setZoomMM(0,s[0]),100!==a[1]&&n.setZoomMM(1,s[1])}},t.prototype.filterData=function(t,e){if(this.hostedBy(t)){var i=this._dimName,n=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._window.value;"none"!==r&&tI(n,function(t){var e=t.getData(),n=e.mapDimensionsAll(i);if(n.length){if("weakFilter"===r){var a=e.getStore(),s=tA(n,function(t){return e.getDimensionIndex(t)},e);e.filterSelf(function(t){for(var e,i,r,l=0;l<n.length;l++){var h=a.get(s[l],t),u=!isNaN(h),d=h<o[0],c=h>o[1];if(u&&!d&&!c)return!0;u&&(r=!0),d&&(e=!0),c&&(i=!0)}return r&&e&&i})}else tI(n,function(i){if("empty"===r)t.setData(e=e.map(i,function(t){var e;return(e=t)>=o[0]&&e<=o[1]?t:0/0}));else{var n={};n[i]=o,e.selectRange(n)}});tI(n,function(t){e.setApproximateExtent(o,t)})}})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,i=this._extent;tI(["min","max"],function(n){var r=e.get(n+"Span"),o=e.get(n+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=ry(i[0]+o,i,[0,100],!0):null!=r&&(o=ry(r,[0,100],i,!0)-i[0]),t[n+"Span"]=r,t[n+"ValueSpan"]=o},this)},t}();let vU={dirtyOnOverallProgress:!0,getTargetSeries:function(t){var e,i=[];e=function(e,n,r,o){if(!vg(r)){var a=new v$(e,n,o,t);i.push(a),vf(r.ecModel).set(r.uid,a)}},t.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(n,r){var o=t.getComponent(vc(n),r);e(n,r,o,i)})});var n=t5();return tI(i,function(t){tI(t.getTargetSeriesModels(),function(t){n.set(t.uid,t)})}),n},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){var i=[];t.eachTargetAxis(function(e,n){var r=t.getAxisProxy(e,n),o=v_(t,r);o?i.push([r,o]):r.reset(t,null)}),tI(i,function(e){e[0].reset(t,e[1].getWindow().percentInverted)}),t.eachTargetAxis(function(i,n){t.getAxisProxy(i,n).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var i=e.getWindow(),n=i.percent,r=i.value;t.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}})}};var vW=oi();function vj(t){vW(t,function(){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,vU),t.registerAction("dataZoom",function(t,e){tI(function(t,e){var i,n=t5(),r=[],o=t5();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do i=!1,t.eachComponent("dataZoom",a);while(i);function a(t){var e;!o.get(t.uid)&&(e=!1,t.eachTargetAxis(function(t,i){var r=n.get(t);r&&r[i]&&(e=!0)}),e)&&(s(t),i=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(n.get(t)||n.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})}),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"})})}function vG(t){vj(t),t.registerComponentModel(vb),t.registerComponentView(vV),t.registerUpdateLifecycle("coordsys:aftercreate",function(t,e){var i=vR(e),n=i.coordSysRecordMap||(i.coordSysRecordMap=t5());n.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){tI(vp(t).infoList,function(i){var r,o,a,s=i.model.uid,l=n.get(s)||n.set(s,(a=(o={model:r=i.model,containsPoint:tR(vB,r),dispatchAction:tR(vz,e),dataZoomInfoMap:null,controller:null}).controller=new vM(e.getZr()),tI(["pan","zoom","scrollMove"],function(t){a.on(t,function(e){var i=[];o.dataZoomInfoMap.each(function(n){if(e.isAvailableBehavior(n.model.option)){var r=(n.getRange||{})[t],a=r&&r(n.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!n.model.get("disabled",!0)&&a&&i.push({dataZoomId:n.model.id,start:a[0],end:a[1]})}}),i.length&&o.dispatchAction(i)})}),o));(l.dataZoomInfoMap||(l.dataZoomInfoMap=t5())).set(t.uid,{dzReferCoordSysInfo:i,model:t,getRange:null})})}),n.each(function(t){var i,r,o,a,s,l,h,u=t.controller,d=t.dataZoomInfoMap;if(d){var c=d.keys()[0];null!=c&&(h=d.get(c))}if(!h)return void vN(n,t);var p=(a="type_",s={type_true:2,type_move:1,type_false:0,type_undefined:-1},l=!0,d.each(function(t){var e=t.model,n=!e.get("disabled",!0)&&(!e.get("zoomLock",!0)||"move");s[a+n]>s[a+i]&&(i=n),l=l&&e.get("preventDefaultMouseMove",!0),r=tG(e.get("cursorGrab",!0),r),o=tG(e.get("cursorGrabbing",!0),o)}),{controlType:i,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!l,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint},cursorGrab:r,cursorGrabbing:o}});u.enable(p.controlType,p.opt),pa(t,"dispatchAction",h.model.get("throttle",!0),"fixRate")})})}var vZ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i}return ti(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=lu(vv.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:hn.color.accent10,borderRadius:0,backgroundColor:hn.color.transparent,dataBackground:{lineStyle:{color:hn.color.accent30,width:.5},areaStyle:{color:hn.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:hn.color.accent40,width:.5},areaStyle:{color:hn.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:hn.color.neutral00,borderColor:hn.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:hn.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:hn.color.tertiary},brushSelect:!0,brushStyle:{color:hn.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:hn.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),e}(vv),vq="horizontal",vX="vertical",vK=["line","bar","candlestick","scatter"],vQ={easing:"cubicOut",duration:100,delay:0},vJ=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i._displayables={},i}return ti(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=tL(this._onBrush,this),this._onBrushEnd=tL(this._onBrushEnd,this)},e.prototype.render=function(e,i,n,r){if(t.prototype.render.apply(this,arguments),pa(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1===e.get("show"))return void this.group.removeAll();if(e.noTarget()){this._clear(),this.group.removeAll();return}r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ps(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new rn;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,i=t.get("brushSelect"),n=l4(t,e).refContainer,r=this._findCoordRect(),o=t.get("defaultLocationEdgeGap",!0)||0,a=this._orient===vq?{right:n.width-r.x-r.width,top:n.height-30-o-7*!!i,width:r.width,height:30}:{right:o,top:r.y,width:30,height:r.height},s=l8(t.option);tI(["right","top","width","height"],function(t){"ph"===s[t]&&(s[t]=a[t])});var l=l3(s,n);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===vX&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,i=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),r=n&&n.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(i!==vq||r?i===vq&&r?{scaleY:a?1:-1,scaleX:-1}:i!==vX||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]),l=isNaN(s.x)?0:s.x,h=isNaN(s.y)?0:s.y;t.x=e.x-l,t.y=e.y-h,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,i=this._displayables.sliderGroup,n=t.get("brushSelect");i.add(new aF({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new aF({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:tL(this._onClickPanel,this)}),o=this.api.getZr();n?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),i.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,i=this._shadowSize||[],n=t.series,r=n.getRawData(),o=n.getShadowDim&&n.getShadowDim(),a=o&&r.getDimensionInfo(o)?n.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==i[0]||e[1]!==i[1]){var h,u=r.getDataExtent(t.thisDim),d=r.getDataExtent(a),c=(d[1]-d[0])*.3;d=[d[0]-c,d[1]+c];var p=[0,e[1]],f=[0,e[0]],g=[[e[0],0],[0,0]],_=[],m=f[1]/Math.max(1,r.count()-1),v=e[0]/(u[1]-u[0]),y="time"===t.thisAxis.type,b=-m,x=Math.round(r.count()/e[0]);r.each([t.thisDim,a],function(t,e,i){if(x>0&&i%x){y||(b+=m);return}b=y?(t-u[0])*v:b+m;var n=null==e||isNaN(e)||""===e,r=n?0:ry(e,d,p,!0);n&&!h&&i?(g.push([g[g.length-1][0],0]),_.push([_[_.length-1][0],0])):!n&&h&&(g.push([b,0]),_.push([b,0])),n||(g.push([b,r]),_.push([b,r])),h=n}),s=this._shadowPolygonPts=g,l=this._shadowPolylinePts=_}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var w=this.dataZoomModel,S=0;S<3;S++){var k=function(t){var e=w.getModel(t?"selectedDataBackground":"dataBackground"),i=new rn,n=new dz({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new dF({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return i.add(n),i.add(r),i}(1===S);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}}}},e.prototype._prepareDataShadowInfo=function(){var t,e=this.dataZoomModel,i=e.get("showDataShadow");if(!1!==i){var n=this.ecModel;return e.eachTargetAxis(function(r,o){tI(e.getAxisProxy(r,o).getTargetSeriesModels(),function(e){if(!t&&!(!0!==i&&0>tT(vK,e.get("type")))){var a,s=n.getComponent(vc(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],h=e.coordinateSystem;null!=l&&h.getOtherAxis&&(a=h.getOtherAxis(s).inverse),l=e.getData().mapDimension(l);var u=e.getData().mapDimension(r);t={thisAxis:s,series:e,thisDim:u,otherDim:l,otherAxisInverse:a}}},this)},this),t}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,i=e.handles=[null,null],n=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,h=a.get("brushSelect"),u=e.filler=new aF({silent:h,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(u),r.add(new aF({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:hn.color.transparent}})),tI([0,1],function(e){var o=a.get("handleIcon");!pX[o]&&0>o.indexOf("path://")&&0>o.indexOf("image://")&&(o="path://"+o);var s=pJ(o,-1,0,2,2,null,!0);s.attr({cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:tL(this._onDragMove,this,e),ondragend:tL(this._onDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1),z2:5});var l=s.getBoundingRect(),h=a.get("handleSize");this._handleHeight=rb(h,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),sF(s);var u=a.get("handleColor");null!=u&&(s.style.fill=u),r.add(i[e]=s);var d=a.getModel("textStyle"),c=(a.get("handleLabel")||{}).show||!1;t.add(n[e]=new a1({silent:!0,invisible:!c,style:sJ(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))},this);var d=u;if(h){var c=rb(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new aF({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:c}}),f=.8*c,g=e.moveHandleIcon=pJ(a.get("moveHandleIcon"),-f/2,-f/2,f,f,hn.color.neutral00,!0);g.silent=!0,g.y=o[1]+c/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(o[1]/2,Math.max(c,10));(d=e.moveZone=new aF({invisible:!0,shape:{y:o[1]-_,height:c+_}})).on("mouseover",function(){s.enterEmphasis(p)}).on("mouseout",function(){s.leaveEmphasis(p)}),r.add(p),r.add(g),r.add(d)}d.attr({draggable:!0,cursor:"grab",drift:tL(this._onActualMoveZoneDrift,this),ondragstart:tL(this._onActualMoveZoneDragStart,this),ondragend:tL(this._onActualMoveZoneDragEnd,this),onmouseover:tL(this._onOverDataInfoTriggerArea,this,!0),onmouseout:tL(this._onOverDataInfoTriggerArea,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[ry(t[0],[0,100],e,!0),ry(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var i=this.dataZoomModel,n=this._handleEnds,r=this._getViewExtent(),o=i.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];vw(e,n,r,i.get("zoomLock")?"all":t,null!=o.minSpan?ry(o.minSpan,a,r,!0):null,null!=o.maxSpan?ry(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=rS([ry(n[0],r,a,!0),ry(n[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,i=this._handleEnds,n=rS(i.slice()),r=this._size;tI([0,1],function(t){var n=e.handles[t],o=this._handleHeight;n.attr({scaleX:o/2,scaleY:o/2,x:i[t]+(t?-1:1),y:r[1]/2-o/2})},this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:r[1]});var o={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,n[0],n[1],r[0]],l=0;l<a.length;l++){var h=a[l],u=h.getClipPath();u||(u=new aF,h.setClipPath(u)),u.setShape({x:s[l],y:0,width:s[l+1]-s[l],height:r[1]})}this._updateDataInfo(t)},e.prototype._updateDataInfo=function(t){var e=this.dataZoomModel,i=this._displayables,n=i.handleLabels,r=this._orient,o=["",""];if(e.get("showDetail")){var a=e.findRepresentativeAxisProxy(),s=a.getAxisModel().axis.scale;if(a){var l,h=this._range;if(t){var u={start:h[0],end:h[1]},d=v_(e,a);if(d){var c=d.calculateDataWindow(u).percentInverted;u={start:c[0],end:c[1]}}l=a.calculateDataWindow(u)}else l=a.getWindow();o=[v0(e,0,l,s),v0(e,1,l,s)]}}var p=rS(this._handleEnds.slice());function f(t){var e=cO(i.handles[t].parent,this.group),a=cL(0===t?"right":"left",e),s=this._handleWidth/2+5,l=cP([p[t]+(0===t?-s:s),this._size[1]/2],e);n[t].setStyle({x:l[0],y:l[1],verticalAlign:r===vq?"middle":a,align:r===vq?a:"center",text:o[t]})}f.call(this,0),f.call(this,1)},e.prototype._onOverDataInfoTriggerArea=function(t){this._isOverDataInfoTriggerArea=t,this._showDataInfo(t)},e.prototype._showDataInfo=function(t){var e=(this.dataZoomModel.get("handleLabel")||{}).show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]).get("show")||!1,n=t||this._dragging?i:e,r=this._displayables,o=r.handleLabels;o[0].attr("invisible",!n),o[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onActualMoveZoneDrift=function(t,e,i){this.api.getZr().setCursorStyle("grabbing"),this._onDragMove("all",t,e,i)},e.prototype._onActualMoveZoneDragStart=function(t){t.target.attr("cursor","grabbing"),this._showDataInfo(!0)},e.prototype._onActualMoveZoneDragEnd=function(t){t.target.attr("cursor","grab"),this._onDragEnd()},e.prototype._onDragMove=function(t,e,i,n){this._dragging=!0,eA(n.event);var r=cP([e,i],this._displayables.sliderGroup.getLocalTransform(),!0),o=this._updateInterval(t,r[0]),a=this.dataZoomModel.get("realtime");this._updateView(!a),o&&a&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._isOverDataInfoTriggerArea||this._showDataInfo(!1),this.dataZoomModel.get("realtime")||this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(t){var e=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(t.offsetX,t.offsetY);if(!(i[0]<0)&&!(i[0]>e[0])&&!(i[1]<0)&&!(i[1]>e[1])){var n=this._handleEnds,r=(n[0]+n[1])/2,o=this._updateInterval("all",i[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,i=t.offsetY;this._brushStart=new eY(e,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var i=e.shape;if(!(new Date-this._brushStartTime<200&&5>Math.abs(i.width))){var n=this._getViewExtent(),r=[0,100],o=this._handleEnds=[i.x,i.x+i.width],a=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();vw(0,o,n,0,null!=a.minSpan?ry(a.minSpan,r,n,!0):null,null!=a.maxSpan?ry(a.maxSpan,r,n,!0):null),this._range=rS([ry(o[0],n,r,!0),ry(o[1],n,r,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(eA(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var i=this._displayables,n=this.dataZoomModel,r=i.brushRect;r||(r=i.brushRect=new aF({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),h=this._size;s[0]=Math.max(Math.min(h[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:h[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?vQ:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=vp(this.dataZoomModel).infoList;if(!t&&e.length){var i=e[0].model.coordinateSystem;t=i.getRect&&i.getRect()}if(!t){var n=this.api.getWidth(),r=this.api.getHeight();t={x:.2*n,y:.2*r,width:.6*n,height:.6*r}}return t},e.type="dataZoom.slider",e}(vx);function v0(t,e,i,n){var r=t.get("labelFormatter"),o=t.get("labelPrecision");(null==o||"auto"===o)&&(o=i.valuePrecision);var a=i.value[e],s=null==a||isNaN(a)?"":gS(n)||gx(n)?n.getLabel({value:Math.round(a)}):isFinite(o)?rw(a,o,!0):a+"";return tz(r)?r(a,s):tB(r)?r.replace("{value}",s):s}function v1(t){t.registerComponentModel(vZ),t.registerComponentView(vJ),vj(t)}function v2(t){return null==t?0:t.length||1}function v5(t){return t}var v3=function(){function t(t,e,i,n,r,o){this._old=t,this._new=e,this._oldKeyGetter=i||v5,this._newKeyGetter=n||v5,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,i={},n=Array(t.length),r=Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,i,r,"_newKeyGetter");for(var o=0;o<t.length;o++){var a=n[o],s=i[a],l=v2(s);if(l>1){var h=s.shift();1===s.length&&(i[a]=s[0]),this._update&&this._update(h,o)}else 1===l?(i[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,i)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,i={},n={},r=[],o=[];this._initIndexMap(t,i,r,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var a=0;a<r.length;a++){var s=r[a],l=i[s],h=n[s],u=v2(l),d=v2(h);if(u>1&&1===d)this._updateManyToOne&&this._updateManyToOne(h,l),n[s]=null;else if(1===u&&d>1)this._updateOneToMany&&this._updateOneToMany(h,l),n[s]=null;else if(1===u&&1===d)this._update&&this._update(h,l),n[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(h,l),n[s]=null;else if(u>1)for(var c=0;c<u;c++)this._remove&&this._remove(l[c]);else this._remove&&this._remove(l)}this._performRestAdd(o,n)},t.prototype._performRestAdd=function(t,e){for(var i=0;i<t.length;i++){var n=t[i],r=e[n],o=v2(r);if(o>1)for(var a=0;a<o;a++)this._add&&this._add(r[a]);else 1===o&&this._add&&this._add(r);e[n]=null}},t.prototype._initIndexMap=function(t,e,i,n){for(var r=this._diffModeMultiple,o=0;o<t.length;o++){var a="_ec_"+this[n](t[o],o);if(r||(i[o]=a),e){var s=e[a],l=v2(s);0===l?(e[a]=o,r&&i.push(a)):1===l?e[a]=[s,o]:s.push(o)}}},t}(),v4=function(){function t(t,e){this._encode=t,this._schema=e}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function v6(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}let v7=function(t){this.otherDims={},null!=t&&tk(this,t)};var v8=tH,v9="u"<typeof Int32Array?Array:Int32Array,yt=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ye=["_approximateExtent"],yi=function(){function t(t,e){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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,n=!1;gU(t)?(i=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,i=t),i=i||["x","y"];for(var r={},o=[],a={},s=!1,l={},h=0;h<i.length;h++){var u=i[h],d=tB(u)?new v7({name:u}):u instanceof v7?u:new v7(u),c=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=c,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(c),r[c]=d,null!=l[c]&&(s=!0),d.createInvertedIndices&&(a[c]=[]),n&&(d.storeDimIndex=h),0===p.itemName&&(this._nameDimIdx=d.storeDimIndex),0===p.itemId&&(this._idDimIdx=d.storeDimIndex)}if(this.dimensions=o,this._dimInfos=r,this._initGetDimensionInfo(s),this.hostModel=e,this._invertedIndicesMap=a,this._dimOmitted){var f=this._dimIdxToName=t5();tI(o,function(t){f.set(r[t].storeDimIndex,t)})}}return t.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(null==e)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var i=this._dimIdxToName.get(e);if(null!=i)return i;var n=this._schema.getSourceDimension(e);if(n)return n.name},t.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(null!=e)return e;if(null==t)return -1;var i=this._getDimInfo(t);return i?i.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},t.prototype._recognizeDimIndex=function(t){if(tF(t)||null!=t&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||0>this._schema.getSourceDimensionIndex(t)))return+t},t.prototype._getStoreDimIndex=function(t){return this.getDimensionIndex(t)},t.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},t.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(t){return e.hasOwnProperty(t)?e[t]:void 0}:function(t){return e[t]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(t,e){var i=this._dimSummary;if(null==e)return i.encodeFirstDimNotExtra[t];var n=i.encode[t];return n?n[e]:null},t.prototype.mapDimensionsAll=function(t){return(this._dimSummary.encode[t]||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(t,e,i){var n,r,o,a,s,l,h,u,d,c,p,f,g,_=this;if(t instanceof uC&&(g=t),!g){var m=this.dimensions,v=hW(t)||tD(t)?new h2(t,m.length):t;g=new uC;var y=tA(m,function(t){return{type:_._dimInfos[t].type,property:t}});g.initData(v,y,i)}this._store=g,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,g.count()),this._dimSummary=(n=this,r=this._schema,a=(o={}).encode={},s=t5(),l=[],h=[],u={},tI(n.dimensions,function(t){var e=n.getDimensionInfo(t),i=e.coordDim;if(i){var r,o=e.coordDimIndex;v6(a,i)[o]=t,e.isExtraCoord||(s.set(i,1),"ordinal"!==(r=e.type)&&"time"!==r&&(l[0]=t),v6(u,i)[o]=n.getDimensionIndex(e.name)),e.defaultTooltip&&h.push(t)}a6.each(function(t,i){var n=v6(a,i),r=e.otherDims[i];null!=r&&!1!==r&&(n[r]=e.name)})}),d=[],c={},s.each(function(t,e){var i=a[e];c[e]=i[0],d=d.concat(i)}),o.dataDimsOnCoord=d,o.dataDimIndicesOnCoord=tA(d,function(t){return n.getDimensionInfo(t).storeDimIndex}),o.encodeFirstDimNotExtra=c,(p=a.label)&&p.length&&(l=p.slice()),(f=a.tooltip)&&f.length?h=f.slice():h.length||(h=l.slice()),a.defaultedLabel=l,a.defaultedTooltip=h,o.userOutput=new v4(u,r),o),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},t.prototype.appendValues=function(t,e){var i=this._store.appendValues(t,e&&e.length),n=i.start,r=i.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var a=n;a<r;a++){var s=a-n;this._nameList[a]=e[s],o&&Q(this,a)}},t.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,i=0;i<e.length;i++){var n=this._dimInfos[e[i]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return null==this._idDimIdx&&t.getSource().sourceFormat!==se&&!t.fillStorage},t.prototype._doInit=function(t,e){if(!(t>=e)){var i=this._store.getProvider();this._updateOrdinalMeta();var n=this._nameList,r=this._idList;if(i.getSource().sourceFormat===a7&&!i.pure)for(var o=[],a=t;a<e;a++){var s,l=i.getItem(a,o);if(!(!this.hasItemOption&&tH(s=l))||s instanceof Array||(this.hasItemOption=!0),l){var h=l.name;null==n[a]&&null!=h&&(n[a]=rj(h,null));var u=l.id;null==r[a]&&null!=u&&(r[a]=rj(u,null))}}if(this._shouldMakeIdFromName())for(var a=t;a<e;a++)Q(this,a);j(this)}},t.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){v8(t)?tk(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getName=function(t){var e=this.getRawIndex(t),i=this._nameList[e];return null==i&&null!=this._nameDimIdx&&(i=Z(this,this._nameDimIdx,e)),null==i&&(i=""),i},t.prototype._getCategory=function(t,e){var i=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[i]:i},t.prototype.getId=function(t){return G(this,this.getRawIndex(t))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.get(n.storeDimIndex,e)},t.prototype.getByRawIndex=function(t,e){var i=this._store,n=this._dimInfos[t];if(n)return i.getByRawIndex(n.storeDimIndex,e)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},t.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},t.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},t.prototype.getValues=function(t,e){var i=this,n=this._store;return tN(t)?n.getValues(tA(t,function(t){return i._getStoreDimIndex(t)}),e):n.getValues(t)},t.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,i=0,n=e.length;i<n;i++)if(isNaN(this._store.get(e[i],t)))return!1;return!0},t.prototype.indexOfName=function(t){for(var e=0,i=this._store.count();e<i;e++)if(this.getName(e)===t)return e;return -1},t.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},t.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},t.prototype.rawIndexOf=function(t,e){var i=t&&this._invertedIndicesMap[t],n=i&&i[e];return null==n||isNaN(n)?-1:n},t.prototype.each=function(t,e,i){tz(t)&&(i=e,e=t,t=[]);var n=i||this,r=tA(q(t),this._getStoreDimIndex,this);this._store.each(r,n?tL(e,n):e)},t.prototype.filterSelf=function(t,e,i){tz(t)&&(i=e,e=t,t=[]);var n=i||this,r=tA(q(t),this._getStoreDimIndex,this);return this._store=this._store.filter(r,n?tL(e,n):e),this},t.prototype.selectRange=function(t){var e=this,i={},n=tP(t),r=[];return tI(n,function(n){var o=e._getStoreDimIndex(n);i[o]=t[n],r.push(o)}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(t,e,i){tz(t)&&(i=e,e=t,t=[]),i=i||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},i),n},t.prototype.map=function(t,e,i,n){var r=i||n||this,o=tA(q(t),this._getStoreDimIndex,this),a=K(this);return a._store=this._store.map(o,r?tL(e,r):e),a},t.prototype.modify=function(t,e,i,n){var r=i||n||this,o=tA(q(t),this._getStoreDimIndex,this);this._store.modify(o,r?tL(e,r):e)},t.prototype.downSample=function(t,e,i,n){var r=K(this);return r._store=this._store.downSample(this._getStoreDimIndex(t),e,i,n),r},t.prototype.minmaxDownSample=function(t,e){var i=K(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),i},t.prototype.lttbDownSample=function(t,e){var i=K(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),i},t.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},t.prototype.getItemModel=function(t){var e=this.hostModel;return new ls(this.getRawDataItem(t),e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new v3(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(e){return G(t,e)},function(t){return G(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},v8(t)?tk(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var i=this._itemVisuals[t],n=i&&i[e];return null==n?this.getVisual(e):n},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var i=this._itemVisuals,n=i[t];n||(n=i[t]={});var r=n[e];return null==r&&(tN(r=this.getVisual(e))?r=r.slice():v8(r)&&(r=tk({},r)),n[e]=r),r},t.prototype.setItemVisual=function(t,e,i){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,v8(e)?tk(n,e):n[e]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){v8(t)?tk(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,i){this._itemLayouts[t]=i?tk(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){a5(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tI(this._graphicEls,function(i,n){i&&t&&t.call(e,i,n)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:tA(this.dimensions,this._getDimInfo,this),this.hostModel)),X(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var i=this[t];tz(i)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=i.apply(this,arguments);return e.apply(this,[t].concat(tq(arguments)))})},t.internalField=void(j=function(t){var e=t._invertedIndicesMap;tI(e,function(i,n){var r=t._dimInfos[n],o=r.ordinalMeta,a=t._store;if(o){i=e[n]=new v9(o.categories.length);for(var s=0;s<i.length;s++)i[s]=-1;for(var s=0;s<a.count();s++)i[a.get(r.storeDimIndex,s)]=s}})},Z=function(t,e,i){return rj(t._getCategory(e,i),null)},G=function(t,e){var i=t._idList[e];return null==i&&null!=t._idDimIdx&&(i=Z(t,t._idDimIdx,e)),null==i&&(i="e\0\0"+e),i},q=function(t){return tN(t)||(t=null!=t?[t]:[]),t},K=function(e){var i=new t(e._schema?e._schema:tA(e.dimensions,e._getDimInfo,e),e.hostModel);return X(i,e),i},X=function(t,e){tI(yt.concat(e.__wrappedMethods||[]),function(i){e.hasOwnProperty(i)&&(t[i]=e[i])}),t.__wrappedMethods=e.__wrappedMethods,tI(ye,function(i){t[i]=tw(e[i])}),t._calculationInfo=tk({},e._calculationInfo)},Q=function(t,e){var i=t._nameList,n=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=i[e],s=n[e];if(null==a&&null!=r&&(i[e]=a=Z(t,r,e)),null==s&&null!=o&&(n[e]=s=Z(t,o,e)),null==s&&null!=a){var l=t._nameRepeatCount,h=l[a]=(l[a]||0)+1;s=a,h>1&&(s+="__ec__"+h),n[e]=s}}),t}(),yn=function(t){this.coordSysDims=[],this.axisMap=t5(),this.categoryAxisMap=t5(),this.coordSysName=t},yr={cartesian2d:function(t,e,i,n){var r=t.getReferringComponents("xAxis",r0).models[0],o=t.getReferringComponents("yAxis",r0).models[0];e.coordSysDims=["x","y"],i.set("x",r),i.set("y",o),yo(r)&&(n.set("x",r),e.firstCategoryDimIndex=0),yo(o)&&(n.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,i,n){var r=t.getReferringComponents("singleAxis",r0).models[0];e.coordSysDims=["single"],i.set("single",r),yo(r)&&(n.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,i,n){var r=t.getReferringComponents("polar",r0).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],i.set("radius",o),i.set("angle",a),yo(o)&&(n.set("radius",o),e.firstCategoryDimIndex=0),yo(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,i,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,i,n){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tI(o.parallelAxisIndex,function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];i.set(l,s),yo(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))})},matrix:function(t,e,i,n){var r=t.getReferringComponents("matrix",r0).models[0];e.coordSysDims=["x","y"];var o=r.getDimensionModel("x"),a=r.getDimensionModel("y");i.set("x",o),i.set("y",a),n.set("x",o),n.set("y",a)}};function yo(t){return"category"===t.get("type")}let ya=function(t,e,i){i=i||{};var n,r,o,a,s,l,h,u,d=e.getSourceManager(),c=!1;t?(c=!0,u=hG(t)):c=(u=d.getSource()).sourceFormat===a7;var p=function(t){var e=t.get("coordinateSystem"),i=new yn(e),n=yr[e];if(n)return n(t,i,i.axisMap,i.categoryAxisMap),i}(e),f=(r=e.get("coordinateSystem"),o=lQ.get(r),p&&p.coordSysDims&&(n=tA(p.coordSysDims,function(t){var e,i={name:t},n=p.axisMap.get(t);return n&&(i.type="category"===(e=n.get("type"))?"ordinal":"time"===e?"time":"float"),i})),n||(n=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),n),g=i.useEncodeDefaulter,_=tz(g)?g:g?tR(hp,f,e):null,m=function(t,e){hW(t)||(t=hG(t));var i,n,r,o,a,s=(e=e||{}).coordDimensions||[],l=e.dimensionsDefine||t.dimensionsDefine||[],h=t5(),u=[],d=(i=t,n=s,r=l,o=e.dimensionsCount,a=Math.max(i.dimensionsDetectedCount||1,n.length,r.length,o||0),tI(n,function(t){var e;tH(t)&&(e=t.dimsDef)&&(a=Math.max(a,e.length))}),a),c=e.canOmitUnusedDimensions&&d>30,p=l===t.dimensionsDefine,f=p?gj(t):gW(l),g=e.encodeDefine;!g&&e.encodeDefaulter&&(g=e.encodeDefaulter(t,d));for(var _=t5(g),m=new ub(d),v=0;v<m.length;v++)m[v]=-1;function y(t){var e=m[t];if(e<0){var i=l[t],n=tH(i)?i:{name:i},r=new v7,o=n.name;null!=o&&null!=f.get(o)&&(r.name=r.displayName=o),null!=n.type&&(r.type=n.type),null!=n.displayName&&(r.displayName=n.displayName);var a=u.length;return m[t]=a,r.storeDimIndex=t,u.push(r),r}return u[e]}if(!c)for(var v=0;v<d;v++)y(v);_.each(function(t,e){var i=rF(t).slice();if(1===i.length&&!tB(i[0])&&i[0]<0)return void _.set(e,!1);var n=_.set(e,[]);tI(i,function(t,i){var r=tB(t)?f.get(t):t;null!=r&&r<d&&(n[i]=r,x(y(r),e,i))})});var b=0;function x(t,e,i){null!=a6.get(e)?t.otherDims[e]=i:(t.coordDim=e,t.coordDimIndex=i,h.set(e,!0))}tI(s,function(t){if(tB(t))r=t,n={};else{var e,i,n,r=(n=t).name,o=n.ordinalMeta;n.ordinalMeta=null,(n=tk({},n)).ordinalMeta=o,e=n.dimsDef,i=n.otherDims,n.name=n.coordDim=n.coordDimIndex=n.dimsDef=n.otherDims=null}var a=_.get(r);if(!1!==a){if(!(a=rF(a)).length)for(var s=0;s<(e&&e.length||1);s++){for(;b<d&&null!=y(b).coordDim;)b++;b<d&&a.push(b++)}tI(a,function(t,o){var a=y(t);if(p&&null!=n.type&&(a.type=n.type),x(tC(a,n),r,o),null==a.name&&e){var s=e[o];tH(s)||(s={name:s}),a.name=a.displayName=s.name,a.defaultTooltip=s.defaultTooltip}i&&tC(a.otherDims,i)})}});var w=e.generateCoord,S=e.generateCoordCount,k=null!=S;S=w?S||1:0;var C=w||"value";function T(t){null==t.name&&(t.name=t.coordDim)}if(c)tI(u,function(t){T(t)}),u.sort(function(t,e){return t.storeDimIndex-e.storeDimIndex});else for(var M=0;M<d;M++){var D=y(M);null==D.coordDim&&(D.coordDim=function(t,e,i){if(i||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}(C,h,k),D.coordDimIndex=0,(!w||S<=0)&&(D.isExtraCoord=!0),S--),T(D),null==D.type&&(1===hg(t,M)||D.isExtraCoord&&(null!=D.otherDims.itemName||null!=D.otherDims.seriesName))&&(D.type="ordinal")}return or(u,function(t){return t.name},function(t,e){e>0&&(t.name=t.name+(e-1))}),new g$({source:t,dimensions:u,fullDimensionCount:d,dimensionOmitted:c})}(u,{coordDimensions:f,generateCoord:i.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:_,canOmitUnusedDimensions:!c}),v=(a=m.dimensions,s=i.createInvertedIndices,p&&tI(a,function(t,e){var i=t.coordDim,n=p.categoryAxisMap.get(i);n&&(null==l&&(l=e),t.ordinalMeta=n.getOrdinalMeta(),s&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(h=!0)}),h||null==l||(a[l].otherDims.itemName=0),l),y=c?null:d.getSharedDataStore(m),b=function(t,e,i){var n,r,o,a,s,l,h,u=(i=i||{}).byIndex,d=i.stackedCoordDimension;gU(e.schema)?(n=(r=e.schema).dimensions,o=e.store):n=e;var c=!!(t&&t.get("stack")),p=!0;function f(t){return"ordinal"!==t.type&&"time"!==t.type}if(tI(n,function(t,e){tB(t)&&(n[e]=t={name:t}),f(t)||(p=!1)}),tI(n,function(t,e){c&&!t.isExtraCoord&&(u||a||!t.ordinalMeta||(a=t),!s&&f(t)&&(!p||"x"!==t.coordDim&&"angle"!==t.coordDim)&&(!d||d===t.coordDim)&&(s=t))}),!s||u||a||(u=!0),s){l="__\0ecstackresult_"+t.id,h="__\0ecstackedover_"+t.id,a&&(a.createInvertedIndices=!0);var g=s.coordDim,_=s.type,m=0;tI(n,function(t){t.coordDim===g&&m++});var v={name:l,coordDim:g,coordDimIndex:m,type:_,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:h,coordDim:h,coordDimIndex:m+1,type:_,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(h,_),y.storeDimIndex=o.ensureCalculationDimension(l,_)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(n.push(v),n.push(y))}return{stackedDimension:s&&s.name,stackedByDimension:a&&a.name,isStackedByIndex:u,stackedOverDimension:h,stackResultDimension:l}}(e,{schema:m,store:y}),x=new yi(m,e);x.setCalculationInfo(b);var w=null!=v&&function(t){if(t.sourceFormat===a7)return!tN(r$(function(t){for(var e=0;e<t.length&&null==t[e];)e++;return t[e]}(t.data||[])))}(u)?function(t,e,i,n){return n===v?i:this.defaultDimValueGetter(t,e,i,n)}:null;return x.hasItemOption=!1,x.initData(c?u:y,null,w),x};var ys=function(t){function e(){var i=null!==t&&t.apply(this,arguments)||this;return i.type=e.type,i.hasSymbolVisual=!0,i}return ti(e,t),e.prototype.getInitialData=function(t){return ya(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new rn,i=pJ("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(i),i.setStyle(t.lineStyle);var n=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===n?"circle":n,a=.8*t.itemHeight,s=pJ(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill=hn.color.neutral00,s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},e}(uW);function yl(t,e){var i=t.mapDimensionsAll("defaultedLabel"),n=i.length;if(1===n){var r=ue(t,e,i[0]);return null!=r?r+"":null}if(n){for(var o=[],a=0;a<i.length;a++)o.push(ue(t,e,i[a]));return o.join(" ")}}var yh=function(t){function e(e,i,n,r){var o=t.call(this)||this;return o.updateData(e,i,n,r),o}return ti(e,t),e.prototype._createSymbol=function(t,e,i,n,r,o){this.removeAll();var a=pJ(t,-1,-1,2,2,null,o);a.attr({z2:tG(r,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),a.drift=yu,this._symbolType=t,this.add(a)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){sO(this.childAt(0))},e.prototype.downplay=function(){sP(this.childAt(0))},e.prototype.setZ=function(t,e){var i=this.childAt(0);i.zlevel=t,i.z=e},e.prototype.setDraggable=function(t,e){var i=this.childAt(0);i.draggable=t,i.cursor=!e&&t?"move":i.cursor},e.prototype.updateData=function(t,i,n,r){this.silent=!1;var o=t.getItemVisual(i,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,i),l=e.getSymbolZ2(t,i),h=o!==this._symbolType,u=r&&r.disableAnimation;if(h){var d=t.getItemVisual(i,"symbolKeepAspect");this._createSymbol(o,t,i,s,l,d)}else{var c,p=this.childAt(0);p.silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(f):cs(p,f,a,i),cr(c=p).oldStyle=c.style}if(this._updateCommon(t,i,s,n,r),h){var p=this.childAt(0);if(!u){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}};p.scaleX=p.scaleY=0,p.style.opacity=0,cl(p,f,a,i)}}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,i,n,r){var o,a,s,l,h,u,d,c,p,f=this.childAt(0),g=t.hostModel;if(n&&(o=n.emphasisItemStyle,a=n.blurItemStyle,s=n.selectItemStyle,l=n.focus,h=n.blurScope,d=n.labelStatesModels,c=n.hoverScale,p=n.cursorStyle,u=n.emphasisDisabled),!n||t.hasItemOption){var _=n&&n.itemModel?n.itemModel:t.getItemModel(e),m=_.getModel("emphasis");o=m.getModel("itemStyle").getItemStyle(),s=_.getModel(["select","itemStyle"]).getItemStyle(),a=_.getModel(["blur","itemStyle"]).getItemStyle(),l=m.get("focus"),h=m.get("blurScope"),u=m.get("disabled"),d=sQ(_),c=m.getShallow("scale"),p=_.getShallow("cursor")}var v=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(v||0)*Math.PI/180||0);var y=p0(t.getItemVisual(e,"symbolOffset"),i);y&&(f.x=y[0],f.y=y[1]),p&&f.attr("cursor",p);var b=t.getItemVisual(e,"style"),x=b.fill;if(f instanceof aO){var w=f.style;f.useStyle(tk({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},b))}else f.__isEmptyBrush?f.useStyle(tk({},b)):f.useStyle(b),f.style.decal=null,f.setColor(x,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),k=this._z2;null!=S?null==k&&(this._z2=f.z2,f.z2+=S):null!=k&&(f.z2=k,this._z2=null);var C=r&&r.useNameLabel;sK(f,d,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return C?t.getName(e):yl(t,e)},inheritColor:x,defaultOpacity:b.opacity}),this._sizeX=i[0]/2,this._sizeY=i[1]/2;var T=f.ensureState("emphasis");T.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var M=null==c||!0===c?Math.max(1.1,3/this._sizeY):isFinite(c)&&c>0?+c:1;T.scaleX=this._sizeX*M,T.scaleY=this._sizeY*M,this.setSymbolScale(1),sH(this,l,h,u)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,i){var n=this.childAt(0),r=a2(this).dataIndex,o=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var a=n.getTextContent();a&&cu(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){n.removeTextContent()}})}else n.removeTextContent();cu(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){var i;return tN(i=t.getItemVisual(e,"symbolSize"))||(i=[+i,+i]),[i[0]||0,i[1]||0]},e.getSymbolZ2=function(t,e){return t.getItemVisual(e,"z2")},e}(rn);function yu(t,e){this.parent.drift(t,e)}function yd(t,e,i,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n&&n.isIgnore&&n.isIgnore(i))&&!(n&&n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(i,"symbol")}function yc(t){return null==t||tH(t)||(t={isIgnore:t}),t||{}}function yp(t){var e=t.hostModel,i=e.getModel("emphasis");return{emphasisItemStyle:i.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:i.get("focus"),blurScope:i.get("blurScope"),emphasisDisabled:i.get("disabled"),hoverScale:i.get("scale"),labelStatesModels:sQ(e),cursorStyle:e.get("cursor")}}function yf(t,e,i,n,r,o,a){var s=new t(e,i,n,r);return s.setPosition(o),e.setItemGraphicEl(i,s),a.add(s),s}var yg=function(){function t(t){this.group=new rn,this._SymbolCtor=t||yh}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=yc(e);var i=this.group,n=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=this._seriesScope=yp(t),l={disableAnimation:a},h=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||i.removeAll(),t.diff(r).add(function(n){var r=h(n);yd(t,r,n,e)&&yf(o,t,n,s,l,r,i)}).update(function(u,d){var c=r.getItemGraphicEl(d),p=h(u);if(!yd(t,p,u,e))return void i.remove(c);var f=t.getItemVisual(u,"symbol")||"circle",g=c&&c.getSymbolType&&c.getSymbolType();if(!c||g&&g!==f)i.remove(c),(c=new o(t,u,s,l)).setPosition(p);else{c.updateData(t,u,s,l);var _={x:p[0],y:p[1]};a?c.attr(_):cs(c,_,n)}i.add(c),t.setItemGraphicEl(u,c)}).remove(function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut(function(){i.remove(e)},n)}).execute(),this._getSymbolPoint=h,this._data=t},t.prototype.updateLayout=function(t){var e=this._data;if(e)for(var i=e.getStore(),n=0,r=i.count();n<r;n++){var o=e.getItemGraphicEl(n),a=this._getSymbolPoint(n);yd(e,a,n,t)?((o=o||yf(this._SymbolCtor,e,n,this._seriesScope,{disableAnimation:!0},a,this.group)).stopAnimation(),o.setPosition(a),o.markRedraw()):o&&(this.group.remove(o),e.setItemGraphicEl(n,null))}},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=yp(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,i,n){function r(t){t.isGroup||(t.incremental=i,t.ensureState("emphasis").hoverLayer=cv)}this._progressiveEls=[],n=yc(n);for(var o=t.start;o<t.end;o++){var a=e.getItemLayout(o);if(yd(e,a,o,n)){var s=new this._SymbolCtor(e,o,this._seriesScope);s.traverse(r),s.setPosition(a),this.group.add(s),e.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(t){cj(this._progressiveEls||this.group,t)},t.prototype.remove=function(t){var e=this.group,i=this._data;i&&t?i.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)},i.hostModel)}):e.removeAll()},t}();function y_(t,e,i){var n,r,o,a,s=t.getBaseAxis(),l=t.getOtherAxis(s),h=(n=l,r=i,o=0,a=n.scale.getExtent(),"start"===r?o=a[0]:"end"===r?o=a[1]:tF(r)&&!isNaN(r)?o=r:a[0]>0?o=a[0]:a[1]<0&&(o=a[1]),o),u=s.dim,d=l.dim,c=e.mapDimension(d),p=e.mapDimension(u),f=+("x"===d||"radius"===d),g=tA(t.dimensions,function(t){return e.mapDimension(t)}),_=!1,m=e.getCalculationInfo("stackResultDimension");return gG(e,g[0])&&(_=!0,g[0]=m),gG(e,g[1])&&(_=!0,g[1]=m),{dataDimsForPoint:g,valueStart:h,valueAxisDim:d,baseAxisDim:u,stacked:!!_,valueDim:c,baseDim:p,baseDataOffset:f,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ym(t,e,i,n){var r=0/0;t.stacked&&(r=i.get(i.getCalculationInfo("stackedOverDimension"),n)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=i.get(t.baseDim,n),a[1-o]=r,e.dataToPoint(a)}function yv(t,e){return!isFinite(t)||!isFinite(e)}var yy=typeof Float32Array!==a3?Float32Array:void 0;function yb(t){return function(t,e){var i=t.arr,n=t.ctor;if(e>rM&&(e=rM),!i||t.typed&&i.length<e){var r=void 0;if(n)try{r=new n(e),t.typed=!0,i&&r.set(i)}catch(t){}if(!r&&(r=[],t.typed=!1,i))for(var o=0,a=i.length;o<a;o++)r[o]=i[o];t.arr=r}return t}({ctor:yy},t).arr}var yx=Math.min,yw=Math.max;function yS(t,e,i,n,r,o,a,s,l){for(var h,u,d,c,p,f,g=i,_=0;_<n;_++){var m=e[2*g],v=e[2*g+1];if(g>=r||g<0)break;if(yv(m,v)){if(l){g+=o;continue}break}if(g===i)t[o>0?"moveTo":"lineTo"](m,v),d=m,c=v;else{var y=m-h,b=v-u;if(y*y+b*b<.5){g+=o;continue}if(a>0){for(var x=g+o,w=e[2*x],S=e[2*x+1];w===m&&S===v&&_<n;)_++,x+=o,g+=o,w=e[2*x],S=e[2*x+1],m=e[2*g],v=e[2*g+1],y=m-h,b=v-u;var k=_+1;if(l)for(;yv(w,S)&&k<n;)k++,x+=o,w=e[2*x],S=e[2*x+1];var C=.5,T=0,M=0,D=void 0,I=void 0;if(k>=n||yv(w,S))p=m,f=v;else{T=w-h,M=S-u;var A=m-h,E=w-m,O=v-u,P=S-v,L=void 0,R=void 0;if("x"===s){L=Math.abs(A),R=Math.abs(E);var N=T>0?1:-1;p=m-N*L*a,f=v,D=m+N*R*a,I=v}else if("y"===s){L=Math.abs(O),R=Math.abs(P);var z=M>0?1:-1;p=m,f=v-z*L*a,D=m,I=v+z*R*a}else L=Math.sqrt(A*A+O*O),p=m-T*a*(1-(C=(R=Math.sqrt(E*E+P*P))/(R+L))),f=v-M*a*(1-C),D=m+T*a*C,I=v+M*a*C,D=yx(D,yw(w,m)),I=yx(I,yw(S,v)),D=yw(D,yx(w,m)),I=yw(I,yx(S,v)),T=D-m,M=I-v,p=m-T*L/R,f=v-M*L/R,p=yx(p,yw(h,m)),f=yx(f,yw(u,v)),p=yw(p,yx(h,m)),f=yw(f,yx(u,v)),T=m-p,M=v-f,D=m+T*R/L,I=v+M*R/L}t.bezierCurveTo(d,c,p,f,m,v),d=D,c=I}else t.lineTo(m,v)}h=m,u=v,g+=o}return _}var yk=function(){this.smooth=0,this.smoothConstraint=!0},yC=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polyline",i}return ti(e,t),e.prototype.getDefaultStyle=function(){return{stroke:hn.color.neutral99,fill:null}},e.prototype.getDefaultShape=function(){return new yk},e.prototype.buildPath=function(t,e){var i=e.points,n=0,r=i.length/2;if(e.connectNulls){for(;r>0&&yv(i[2*r-2],i[2*r-1]);r--);for(;n<r&&yv(i[2*n],i[2*n+1]);n++);}for(;n<r;)n+=yS(t,i,n,r,r,1,e.smooth,e.smoothMonotone,e.connectNulls)+1},e.prototype.getPointOn=function(t,e){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i,n,r=this.path.data,o=ac.CMD,a="x"===e,s=[],l=0;l<r.length;){var h=r[l++],u=void 0,d=void 0,c=void 0,p=void 0,f=void 0,g=void 0,_=void 0;switch(h){case o.M:i=r[l++],n=r[l++];break;case o.L:if(u=r[l++],d=r[l++],(_=a?(t-i)/(u-i):(t-n)/(d-n))<=1&&_>=0){var m=a?(d-n)*_+n:(u-i)*_+i;return a?[t,m]:[m,t]}i=u,n=d;break;case o.C:u=r[l++],d=r[l++],c=r[l++],p=r[l++],f=r[l++],g=r[l++];var v=a?iL(i,u,c,f,t,s):iL(n,d,p,g,t,s);if(v>0)for(var y=0;y<v;y++){var b=s[y];if(b<=1&&b>=0){var m=a?iO(n,d,p,g,b):iO(i,u,c,f,b);return a?[t,m]:[m,t]}}i=f,n=g}}},e}(aT),yT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e}(yk),yM=function(t){function e(e){var i=t.call(this,e)||this;return i.type="ec-polygon",i}return ti(e,t),e.prototype.getDefaultShape=function(){return new yT},e.prototype.buildPath=function(t,e){var i=e.points,n=e.stackedOnPoints,r=0,o=i.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&yv(i[2*o-2],i[2*o-1]);o--);for(;r<o&&yv(i[2*r],i[2*r+1]);r++);}for(;r<o;){var s=yS(t,i,r,o,o,1,e.smooth,a,e.connectNulls);yS(t,n,r+s-1,s,o,-1,e.stackedOnSmooth,a,e.connectNulls),r+=s+1,t.closePath()}},e}(aT);function yD(t,e){if(t.length===e.length){for(var i=0;i<t.length;i++)if(t[i]!==e[i])return;return!0}}function yI(t){for(var e=r4(),i=r4(),n=0;n<t.length;){var r=t[n++],o=t[n++];yv(r,o)||(r6(e,r),r6(i,o))}return[e,i]}function yA(t,e){var i=yI(t),n=i[0],r=i[1],o=yI(e),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(r[0]-s[0]),Math.abs(n[1]-a[1]),Math.abs(r[1]-s[1]))}function yE(t){return tF(t)?t:.5*!!t}function yO(t,e,i,n,r){var o=i.getBaseAxis(),a=+("x"!==o.dim&&"radius"!==o.dim),s=[],l=0,h=[],u=[],d=[],c=[];if(r){for(l=0;l<t.length;l+=2){var p=e||t;yv(p[l],p[l+1])||c.push(t[l],t[l+1])}t=c}for(l=0;l<t.length-2;l+=2)switch(d[0]=t[l+2],d[1]=t[l+3],u[0]=t[l],u[1]=t[l+1],s.push(u[0],u[1]),n){case"end":h[a]=d[a],h[1-a]=u[1-a],s.push(h[0],h[1]);break;case"middle":var f=(u[a]+d[a])/2,g=[];h[a]=g[a]=f,h[1-a]=u[1-a],g[1-a]=d[1-a],s.push(h[0],h[1]),s.push(g[0],g[1]);break;default:h[a]=u[a],h[1-a]=d[1-a],s.push(h[0],h[1])}return s.push(t[l++],t[l++]),s}function yP(t,e){return[t[2*e],t[2*e+1]]}function yL(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<su.length;e++)if(t.get([su[e],"endLabel","show"]))return!0;return!1}function yR(t,e,i,n){if("cartesian2d"===e.type){var r,o,a,s,l=n.getModel("endLabel"),h=l.get("valueAnimation"),u=n.getData(),d={lastFrameIndex:0},c=yL(n)?function(i,n){t._endLabelOnDuring(i,n,u,d,h,l,e)}:null,p=e.getBaseAxis().isHorizontal(),f=function(t,e,i,n,r){var o=t.getArea(),a=o.x,s=o.y,l=o.width,h=o.height,u=i.get(["lineStyle","width"])||0;a-=u/2,s-=u/2,l+=u,h+=u,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var d=new aF({shape:{x:a,y:s,width:l,height:h}});if(e){var c=t.getBaseAxis(),p=c.isHorizontal(),f=c.inverse;p?(f&&(d.shape.x+=l),d.shape.width=0):(f||(d.shape.y+=h),d.shape.height=0);var g=tz(r)?function(t){r(t,d)}:null;cl(d,{shape:{width:l,height:h,x:a,y:s}},i,null,n,g)}return d}(e,i,n,function(){var e=t._endLabel;e&&i&&null!=d.originalX&&e.attr({x:d.originalX,y:d.originalY})},c);if(!n.get("clip",!0)){var g=f.shape,_=Math.max(g.width,g.height);p?(g.y-=_,g.height+=2*_):(g.x-=_,g.width+=2*_)}return c&&c(1,f),f}return o=rw((r=e.getArea()).r0,1),a=rw(r.r,1),s=new dA({shape:{cx:rw(e.cx,1),cy:rw(e.cy,1),r0:o,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}),i&&("angle"===e.getBaseAxis().dim?s.shape.endAngle=r.startAngle:s.shape.r=o,cl(s,{shape:{endAngle:r.endAngle,r:a}},n)),s}var yN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ti(e,t),e.prototype.init=function(){var t=new rn,e=new yg;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t,this._changePolyState=tL(this._changePolyState,this)},e.prototype.render=function(t,e,i){var n,r=t.coordinateSystem,o=this.group,a=t.getData(),s=t.getModel("lineStyle"),l=t.getModel("areaStyle"),h=a.getLayout("points")||[],u="polar"===r.type,d=this._coordSys,c=this._symbolDraw,p=this._polyline,f=this._polygon,g=this._lineGroup,_=!e.ssr&&t.get("animation"),m=!l.isEmpty(),v=l.get("origin"),y=y_(r,a,v),b=m&&function(t,e,i){if(null==i.valueDim)return[];for(var n=e.count(),r=yb(2*n),o=0;o<n;o++){var a=ym(i,t,e,o);r[2*o]=a[0],r[2*o+1]=a[1]}return r}(r,a,y),x=t.get("showSymbol"),w=t.get("connectNulls"),S=x&&!u&&function(t,e,i){var n=t.get("showAllSymbol"),r="auto"===n;if(!n||r){var o=i.getAxesByScale("ordinal")[0];if(o&&!(r&&function(t,e){var i=t.getExtent(),n=Math.abs(i[1]-i[0])/t.scale.count();isNaN(n)&&(n=0);for(var r=e.count(),o=Math.max(1,Math.round(r/5)),a=0;a<r;a+=o)if(1.5*yh.getSymbolSize(e,a)[+!!t.isHorizontal()]>n)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return tI(o.getViewLabels(),function(t){t.tick.offInterval||(s[g2(o.scale,t.tick)]=1)}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),x||c.remove(),o.add(g);var C=!u&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(n=r.getArea()).width?(n.x-=.1,n.y-=.1,n.width+=.2,n.height+=.2):n.r0&&(n.r0-=.5,n.r+=.5)),this._clipShapeForSymbol=n;var T=function(t,e,i){var n,r,o=t.getVisual("visualMeta");if(o&&o.length&&t.count()){if("cartesian2d"!==e.type)return;for(var a=o.length-1;a>=0;a--){var s=t.getDimensionInfo(o[a].dimension);if("x"===(n=s&&s.coordDim)||"y"===n){r=o[a];break}}if(!r)return;var l=e.getAxis(n),h=tA(r.stops,function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}}),u=h.length,d=r.outerColors.slice();u&&h[0].coord>h[u-1].coord&&(h.reverse(),d.reverse());var c=function(t,e){var i,n,r=[],o=t.length;function a(t,e,i){var n=t.coord,r=function(t,e){if(e&&e.length&&t>=0&&t<=1){var i,n,r,o,a=t*(e.length-1),s=Math.floor(a),l=Math.ceil(a),h=i3(e[s]),u=i3(e[l]),d=a-s;return i8([iZ((i=h[0],i+(u[0]-i)*d)),iZ((n=h[1],n+(u[1]-n)*d)),iZ((r=h[2],r+(u[2]-r)*d)),iq((o=h[3],o+(u[3]-o)*d))],"rgba")}}((i-n)/(e.coord-n),[t.color,e.color]);return{coord:i,color:r}}for(var s=0;s<o;s++){var l=t[s],h=l.coord;if(h<0)i=l;else if(h>e){n?r.push(a(n,l,e)):i&&r.push(a(i,l,0),a(i,l,e));break}else i&&(r.push(a(i,l,0)),i=null),r.push(l),n=l}return r}(h,"x"===n?i.getWidth():i.getHeight()),p=c.length;if(!p&&u)return h[0].coord<0?d[1]?d[1]:h[u-1].color:d[0]?d[0]:h[0].color;var f=c[0].coord-10,g=c[p-1].coord+10,_=g-f;if(_<.001)return"transparent";tI(c,function(t){t.offset=(t.coord-f)/_}),c.push({offset:p?c[p-1].offset:.5,color:d[1]||"transparent"}),c.unshift({offset:p?c[0].offset:.5,color:d[0]||"transparent"});var m=new d1(0,0,0,0,c,!0);return m[n]=f,m[n+"2"]=g,m}}(a,r,i)||a.getVisual("style")[a.getVisual("drawType")];if(p&&d.type===r.type&&C===this._step){m&&!f?f=this._newPolygon(h,b):f&&!m&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,lq(T));var M=g.getClipPath();M?cl(M,{shape:yR(this,r,!1,t).shape},t):g.setClipPath(yR(this,r,!0,t)),x&&c.updateData(a,{isIgnore:S,clipShape:n,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),yD(this._stackedOnPoints,b)&&yD(this._points,h)||(_?this._doUpdateAnimation(a,b,r,i,C,v,w):(C&&(b&&(b=yO(b,h,r,C,w)),h=yO(h,null,r,C,w)),p.setShape({points:h}),f&&f.setShape({points:h,stackedOnPoints:b})))}else x&&c.updateData(a,{isIgnore:S,clipShape:n,disableAnimation:!0,getSymbolPoint:function(t){return[h[2*t],h[2*t+1]]}}),_&&this._initSymbolLabelAnimation(a,r,n),C&&(b&&(b=yO(b,h,r,C,w)),h=yO(h,null,r,C,w)),p=this._newPolyline(h),m?f=this._newPolygon(h,b):f&&(g.remove(f),f=this._polygon=null),u||this._initOrUpdateEndLabel(t,r,lq(T)),g.setClipPath(yR(this,r,!0,t));var D=t.getModel("emphasis"),I=D.get("focus"),A=D.get("blurScope"),E=D.get("disabled");p.useStyle(tC(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),sU(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),a2(p).seriesIndex=t.seriesIndex,sH(p,I,A,E);var O=yE(t.get("smooth")),P=t.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:P,connectNulls:w}),f){var L=a.getCalculationInfo("stackedOnSeries"),R=0;f.useStyle(tC(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),L&&(R=yE(L.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:R,smoothMonotone:P,connectNulls:w}),sU(f,t,"areaStyle"),a2(f).seriesIndex=t.seriesIndex,sH(f,I,A,E)}var N=this._changePolyState;a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=N)}),this._polyline.onHoverStateChange=N,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=h,this._step=C,this._valueOrigin=v;var z=t.get("triggerEvent"),B=t.get("triggerLineEvent");this.packEventData(t,p,!0===B||!0===z||"line"===z),f&&this.packEventData(t,f,!0===B||!0===z||"area"===z)},e.prototype.packEventData=function(t,e,i){a2(e).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line",selfType:e===this._polygon?"area":"line"}:null},e.prototype.highlight=function(t,e,i,n){var r=t.getData(),o=rq(r,n);if(this._changePolyState("emphasis"),o instanceof Array||null==o||!(o>=0))c6.prototype.highlight.call(this,t,e,i,n);else{var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],h=a[2*o+1];if(yv(l,h)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,h))return;var u=t.get("zlevel")||0,d=t.get("z")||0;(s=new yh(r,o)).x=l,s.y=h,s.setZ(u,d);var c=s.getSymbolPath().getTextContent();c&&(c.zlevel=u,c.z=d,c.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}},e.prototype.downplay=function(t,e,i,n){var r=t.getData(),o=rq(r,n);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else c6.prototype.downplay.call(this,t,e,i,n)},e.prototype._changePolyState=function(t){var e=this._polygon;sM(this._polyline,t),e&&sM(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new yC({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new yM({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(t,e,i){var n,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(n=o.isHorizontal(),r=!1):"polar"===e.type&&(n="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");tz(l)&&(l=l(null));var h=s.get("animationDelay")||0,u=tz(h)?h(null):h;t.eachItemGraphicEl(function(t,o){if(t){var s=[t.x,t.y],d=void 0,c=void 0,p=void 0;if(i)if(r){var f=e.pointToCoord(s);n?(d=i.startAngle,c=i.endAngle,p=-f[1]/180*Math.PI):(d=i.r0,c=i.r,p=f[0])}else n?(d=i.x,c=i.x+i.width,p=t.x):(d=i.y+i.height,c=i.y,p=t.y);var g=c===d?0:(p-d)/(c-d);a&&(g=1-g);var _=tz(h)?h(o):l*g+u,m=t.getSymbolPath(),v=m.getTextContent();t.attr({scaleX:0,scaleY:0}),t.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:_}),v&&v.animateFrom({style:{opacity:0}},{duration:300,delay:_}),m.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,i){var n=t.getModel("endLabel");if(yL(t)){var r,o,a,s=t.getData(),l=this._polyline,h=s.getLayout("points");if(!h){l.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||((u=this._endLabel=new a1({z2:200})).ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var d=function(t){for(var e=t.length/2;e>0&&yv(t[2*e-2],t[2*e-1]);e--);return e-1}(h);d>=0&&(sK(l,sQ(t,"endLabel"),{inheritColor:i,labelFetcher:t,labelDataIndex:d,defaultText:function(t,e,i){return null!=i?function(t,e){var i=t.mapDimensionsAll("defaultedLabel");if(!tN(e))return e+"";for(var n=[],r=0;r<i.length;r++){var o=t.getDimensionIndex(i[r]);o>=0&&n.push(e[o])}return n.join(" ")}(s,i):yl(s,t)},enableTextSetter:!0},(o=(r=e.getBaseAxis()).isHorizontal(),a=r.inverse,{normal:{align:n.get("align")||(o?a?"right":"left":"center"),verticalAlign:n.get("verticalAlign")||(o?"middle":a?"top":"bottom")}})),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,i,n,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var h=i.getLayout("points"),u=i.hostModel,d=u.get("connectNulls"),c=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),_=f.inverse,m=e.shape,v=_?g?m.x:m.y+m.height:g?m.x+m.width:m.y,y=(g?p:0)*(_?-1:1),b=(g?0:-p)*(_?-1:1),x=g?"x":"y",w=function(t,e,i){for(var n,r,o=t.length/2,a=+("x"!==i),s=0,l=-1,h=0;h<o;h++)if(!yv(r=t[2*h+a],t[2*h+1-a])){if(0===h){n=r;continue}if(n<=e&&r>=e||n>=e&&r<=e){l=h;break}s=h,n=r}return{range:[s,l],t:(e-n)/(r-n)}}(h,v,x),S=w.range,k=S[1]-S[0],C=void 0;if(k>=1){if(k>1&&!d){var T=yP(h,S[0]);s.attr({x:T[0]+y,y:T[1]+b}),r&&(C=u.getRawValue(S[0]))}else{var T=l.getPointOn(v,x);T&&s.attr({x:T[0]+y,y:T[1]+b});var M=u.getRawValue(S[0]),D=u.getRawValue(S[1]);r&&(C=function(t,e,i,n,r){var o=null==e||"auto"===e;if(null==n)return n;if(tF(n)){var a,s=(n-(a=i||0))*r+a;return rw(s,o?Math.max(rk(i||0),rk(n)):e)}if(tB(n))return r<1?i:n;for(var l=[],h=Math.max(i?i.length:0,n.length),u=0;u<h;++u){var d=t.getDimensionInfo(u);if(d&&"ordinal"===d.type)l[u]=(r<1&&i?i:n)[u];else{var c=i&&i[u]?i[u]:0,p=n[u],s=(p-c)*r+c;l[u]=rw(s,o?Math.max(rk(c),rk(p)):e)}}return l}(i,c,M,D,w.t))}n.lastFrameIndex=S[0]}else{var I=1===t||n.lastFrameIndex>0?S[0]:0,T=yP(h,I);r&&(C=u.getRawValue(I)),s.attr({x:T[0]+y,y:T[1]+b})}if(r){var A=s4(s);"function"==typeof A.setLabelText&&A.setLabelText(C)}}},e.prototype._doUpdateAnimation=function(t,e,i,n,r,o,a){var s=this._polyline,l=this._polygon,h=t.hostModel,u=function(t,e,i,n,r,o){for(var a,s=(a=[],e.diff(t).add(function(t){a.push({cmd:"+",idx:t})}).update(function(t,e){a.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){a.push({cmd:"-",idx:t})}).execute(),a),l=[],h=[],u=[],d=[],c=[],p=[],f=[],g=y_(r,e,o),_=t.getLayout("points")||[],m=e.getLayout("points")||[],v=0;v<s.length;v++){var y=s[v],b=!0,x=void 0,w=void 0;switch(y.cmd){case"=":x=2*y.idx,w=2*y.idx1;var S=_[x],k=_[x+1],C=m[w],T=m[w+1];(isNaN(S)||isNaN(k))&&(S=C,k=T),l.push(S,k),h.push(C,T),u.push(i[x],i[x+1]),d.push(n[w],n[w+1]),f.push(e.getRawIndex(y.idx1));break;case"+":var M=y.idx,D=g.dataDimsForPoint,I=r.dataToPoint([e.get(D[0],M),e.get(D[1],M)]);w=2*M,l.push(I[0],I[1]),h.push(m[w],m[w+1]);var A=ym(g,r,e,M);u.push(A[0],A[1]),d.push(n[w],n[w+1]),f.push(e.getRawIndex(M));break;case"-":b=!1}b&&(c.push(y),p.push(p.length))}p.sort(function(t,e){return f[t]-f[e]});for(var E=l.length,O=yb(E),P=yb(E),L=yb(E),R=yb(E),N=[],v=0;v<p.length;v++){var z=p[v],B=2*v,V=2*z;O[B]=l[V],O[B+1]=l[V+1],P[B]=h[V],P[B+1]=h[V+1],L[B]=u[V],L[B+1]=u[V+1],R[B]=d[V],R[B+1]=d[V+1],N[v]=c[z]}return{current:O,next:P,stackedOnCurrent:L,stackedOnNext:R,status:N}}(this._data,t,this._stackedOnPoints,e,this._coordSys,this._valueOrigin),d=u.current,c=u.stackedOnCurrent,p=u.next,f=u.stackedOnNext;if(r&&(c=yO(u.stackedOnCurrent,u.current,i,r,a),d=yO(u.current,null,i,r,a),f=yO(u.stackedOnNext,u.next,i,r,a),p=yO(u.next,null,i,r,a)),yA(d,p)>3e3||l&&yA(c,f)>3e3){s.stopAnimation(),s.setShape({points:p}),l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f}));return}s.shape.__points=u.current,s.shape.points=d;var g={shape:{points:p}};u.current!==d&&(g.shape.__points=u.next),s.stopAnimation(),cs(s,g,h),l&&(l.setShape({points:d,stackedOnPoints:c}),l.stopAnimation(),cs(l,{shape:{stackedOnPoints:f}},h),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var _=[],m=u.status,v=0;v<m.length;v++)if("="===m[v].cmd){var y=t.getItemGraphicEl(m[v].idx1);y&&_.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){l&&l.dirtyShape();for(var t=s.shape.__points,e=0;e<_.length;e++){var i=_[e].el,n=2*_[e].ptIdx;i.x=t[n],i.y=t[n+1],i.markRedraw()}})},e.prototype.remove=function(t){var e=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(t,n){t.__temp&&(e.remove(t),i.setItemGraphicEl(n,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(c6),yz={average:function(t){for(var e=0,i=0,n=0;n<t.length;n++)!isNaN(t[n])&&(e+=t[n],i++);return 0===i?0/0:e/i},sum:function(t){for(var e=0,i=0;i<t.length;i++)e+=t[i]||0;return e},max:function(t){for(var e=-1/0,i=0;i<t.length;i++)t[i]>e&&(e=t[i]);return isFinite(e)?e:0/0},min:function(t){for(var e=1/0,i=0;i<t.length;i++)t[i]<e&&(e=t[i]);return isFinite(e)?e:0/0},nearest:function(t){return t[0]}},yB=function(t){return Math.round(t.length/2)},yV=ac.CMD;function yF(t,e){return 1e-5>Math.abs(t-e)}function yH(t){var e,i,n,r,o,a=t.data,s=t.len(),l=[],h=0,u=0,d=0,c=0;function p(t,i){e&&e.length>2&&l.push(e),e=[t,i]}function f(t,i,n,r){yF(t,n)&&yF(i,r)||e.push(t,i,n,r,n,r)}for(var g=0;g<s;){var _=a[g++],m=1===g;switch(m&&(h=a[g],u=a[g+1],d=h,c=u,(_===yV.L||_===yV.C||_===yV.Q)&&(e=[d,c])),_){case yV.M:h=d=a[g++],u=c=a[g++],p(d,c);break;case yV.L:f(h,u,i=a[g++],n=a[g++]),h=i,u=n;break;case yV.C:e.push(a[g++],a[g++],a[g++],a[g++],h=a[g++],u=a[g++]);break;case yV.Q:i=a[g++],n=a[g++],r=a[g++],o=a[g++],e.push(h+2/3*(i-h),u+2/3*(n-u),r+2/3*(i-r),o+2/3*(n-o),r,o),h=r,u=o;break;case yV.A:var v=a[g++],y=a[g++],b=a[g++],x=a[g++],w=a[g++],S=a[g++]+w;g+=1;var k=!a[g++];i=Math.cos(w)*b+v,n=Math.sin(w)*x+y,m?p(d=i,c=n):f(h,u,i,n),h=Math.cos(S)*b+v,u=Math.sin(S)*x+y;for(var C=(k?-1:1)*Math.PI/2,T=w;k?T>S:T<S;T+=C){var M=k?Math.max(T+C,S):Math.min(T+C,S);!function(t,i,n,r,o,a){var s=4*Math.tan(Math.abs(i-t)/4)/3,l=i<t?-1:1,h=Math.cos(t),u=Math.sin(t),d=Math.cos(i),c=Math.sin(i),p=d*o+n,f=c*a+r,g=o*s*l,_=a*s*l;e.push(h*o+n-g*u,u*a+r+_*h,p+g*c,f-_*d,p,f)}(T,M,v,y,b,x)}break;case yV.R:d=h=a[g++],c=u=a[g++],i=d+a[g++],n=c+a[g++],p(i,c),f(i,c,i,n),f(i,n,d,n),f(d,n,d,c),f(d,c,i,c);break;case yV.Z:e&&f(h,u,d,c),h=d,u=c}}return e&&e.length>2&&l.push(e),l}function yY(t,e,i){var n=Math.ceil(Math.sqrt(Math.abs(t[e]/t[1-e])*i)),r=Math.floor(i/n);0===r&&(r=1,n=i);for(var o=[],a=0;a<n;a++)o.push(r);var s=i-n*r;if(s>0)for(var a=0;a<s;a++)o[a%n]+=1;return o}function y$(t,e,i){for(var n=t.r0,r=t.r,o=t.startAngle,a=Math.abs(t.endAngle-o),s=a*r,l=r-n,h=s>Math.abs(l),u=yY([s,l],+!h,e),d=(h?a:l)/u.length,c=0;c<u.length;c++)for(var p=(h?l:a)/u[c],f=0;f<u[c];f++){var g={};h?(g.startAngle=o+d*c,g.endAngle=o+d*(c+1),g.r0=n+p*f,g.r=n+p*(f+1)):(g.startAngle=o+p*f,g.endAngle=o+p*(f+1),g.r0=n+d*c,g.r=n+d*(c+1)),g.clockwise=t.clockwise,g.cx=t.cx,g.cy=t.cy,i.push(g)}}function yU(t,e){var i=t[t.length-1];i&&i[0]===e[0]&&i[1]===e[1]||t.push(e)}function yW(t){var e=t.points,i=[],n=[];o1(e,i,n);var r=new ie(i[0],i[1],n[0]-i[0],n[1]-i[1]),o=r.width,a=r.height,s=r.x,l=r.y,h=new eY,u=new eY;return o>a?(h.x=u.x=s+o/2,h.y=l,u.y=l+a):(h.y=u.y=l+a/2,h.x=s,u.x=s+o),function(t,e,i){for(var n=t.length,r=[],o=0;o<n;o++){var a=t[o],s=t[(o+1)%n],l=function(t,e,i,n,r,o,a,s){var l=i-t,h=n-e,u=a-r,d=s-o,c=u*h-l*d;if(1e-6>Math.abs(c))return null;var p=((t-r)*d-u*(e-o))/c;return p<0||p>1?null:new eY(p*l+t,p*h+e)}(a[0],a[1],s[0],s[1],e.x,e.y,i.x,i.y);l&&r.push({projPt:function(t,e,i){var n=new eY;eY.sub(n,i,e),n.normalize();var r=new eY;return eY.sub(r,t,e),r.dot(n)}(l,e,i),pt:l,idx:o})}if(r.length<2)return[{points:t},{points:t}];r.sort(function(t,e){return t.projPt-e.projPt});var h=r[0],u=r[r.length-1];if(u.idx<h.idx){var d=h;h=u,u=d}for(var c=[h.pt.x,h.pt.y],p=[u.pt.x,u.pt.y],f=[c],g=[p],o=h.idx+1;o<=u.idx;o++)yU(f,t[o].slice());yU(f,p),yU(f,c);for(var o=u.idx+1;o<=h.idx+n;o++)yU(g,t[o%n].slice());return yU(g,c),yU(g,p),[{points:f},{points:g}]}(e,h,u)}function yj(t,e,i,n){if(1===i)n.push(e);else{var r=Math.floor(i/2),o=t(e);yj(t,o[0],r,n),yj(t,o[1],i-r,n)}return n}function yG(t,e){for(var i=t.length,n=t[i-2],r=t[i-1],o=[],a=0;a<e.length;)o[a++]=n,o[a++]=r;return o}function yZ(t){for(var e=0,i=0,n=0,r=t.length,o=0,a=r-2;o<r;a=o,o+=2){var s=t[a],l=t[a+1],h=t[o],u=t[o+1],d=s*u-h*l;e+=d,i+=(s+h)*d,n+=(l+u)*d}return 0===e?[t[0]||0,t[1]||0]:[i/e/3,n/e/3,e]}function yq(t){return t.__isCombineMorphing}var yX="__mOriginal_";function yK(t,e,i){var n=yX+e,r=t[n]||t[e];t[n]||(t[n]=t[e]);var o=i.replace,a=i.after,s=i.before;t[e]=function(){var t,e=arguments;return s&&s.apply(this,e),t=o?o.apply(this,e):r.apply(this,e),a&&a.apply(this,e),t}}function yQ(t,e){var i=yX+e;t[i]&&(t[e]=t[i],t[i]=null)}function yJ(t,e){for(var i=0;i<t.length;i++)for(var n=t[i],r=0;r<n.length;){var o=n[r],a=n[r+1];n[r++]=e[0]*o+e[2]*a+e[4],n[r++]=e[1]*o+e[3]*a+e[5]}}function y0(t,e){var i=t.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),r=function(t,e){for(var i,n,r,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],h=e[s],u=void 0,d=void 0;l?h?(u=(i=function(t,e){var i=t.length,n=e.length;if(i===n)return[t,e];for(var r=[],o=[],a=i<n?t:e,s=Math.min(i,n),l=Math.abs(n-i)/6,h=Math.ceil(l/((s-2)/6))+1,u=[a[0],a[1]],d=l,c=2;c<s;){var p=a[c-2],f=a[c-1],g=a[c++],_=a[c++],m=a[c++],v=a[c++],y=a[c++],b=a[c++];if(d<=0){u.push(g,_,m,v,y,b);continue}for(var x=Math.min(d,h-1)+1,w=1;w<=x;w++){var S=w/x;iN(p,g,m,y,S,r),iN(f,_,v,b,S,o),p=r[3],f=o[3],u.push(r[1],o[1],r[2],o[2],p,f),g=r[5],_=o[5],m=r[6],v=o[6]}d-=x-1}return a===t?[u,e]:[t,u]}(l,h))[0],d=i[1],n=u,r=d):(d=yG(r||l,l),u=l):(u=yG(n||h,h),d=h),o.push(u),a.push(d)}return[o,a]}(yH(i),yH(n)),o=r[0],a=r[1],s=t.getComputedTransform(),l=e.getComputedTransform();s&&yJ(o,s),l&&yJ(a,l),yK(e,"updateTransform",{replace:function(){this.transform=null}}),e.transform=null;var h=function(t,e,i){for(var n,r=[],o=0;o<t.length;o++){var a=t[o],s=e[o],l=yZ(a),h=yZ(s);null==n&&(n=l[2]<0!=h[2]<0);var u=[],d=[],c=0,p=1/0,f=[],g=a.length;n&&(a=function(t){for(var e=[],i=t.length,n=0;n<i;n+=2)e[n]=t[i-n-2],e[n+1]=t[i-n-1];return e}(a));for(var _=6*function(t,e,i,n){for(var r=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,h=0;h<r;h++){for(var u=6*h,d=0,c=0;c<s;c+=2){var p=0===c?u:(u+c-2)%l+2,f=t[p]-i[0],g=t[p+1]-i[1],_=e[c]-n[0],m=e[c+1]-n[1],v=_-f,y=m-g;d+=v*v+y*y}d<o&&(o=d,a=h)}return a}(a,s,l,h),m=g-2,v=0;v<m;v+=2){var y=(_+v)%m+2;u[v+2]=a[y]-l[0],u[v+3]=a[y+1]-l[1]}u[0]=a[_]-l[0],u[1]=a[_+1]-l[1];for(var b=i/10,x=-i/2;x<=i/2;x+=b){for(var w=Math.sin(x),S=Math.cos(x),k=0,v=0;v<a.length;v+=2){var C=u[v],T=u[v+1],M=s[v]-h[0],D=s[v+1]-h[1],I=M*S-D*w,A=M*w+D*S;f[v]=I,f[v+1]=A;var E=I-C,O=A-T;k+=E*E+O*O}if(k<p){p=k,c=x;for(var P=0;P<f.length;P++)d[P]=f[P]}}r.push({from:u,to:d,fromCp:l,toCp:h,rotation:-c})}return r}(o,a,Math.PI),u=[];yK(e,"buildPath",{replace:function(t){for(var i=e.__morphT,n=1-i,r=[],o=0;o<h.length;o++){var a=h[o],s=a.from,l=a.to,d=a.rotation*i,c=a.fromCp,p=a.toCp,f=Math.sin(d),g=Math.cos(d);r[0]=c[0]+i*(p[0]-c[0]),r[1]=c[1]+i*(p[1]-c[1]);for(var _=0;_<s.length;_+=2){var m=s[_],v=s[_+1],y=l[_],b=l[_+1],x=m*n+y*i,w=v*n+b*i;u[_]=x*g-w*f+r[0],u[_+1]=x*f+w*g+r[1]}var S=u[0],k=u[1];t.moveTo(S,k);for(var _=2;_<s.length;){var y=u[_++],b=u[_++],C=u[_++],T=u[_++],M=u[_++],D=u[_++];S===y&&k===b&&C===M&&T===D?t.lineTo(M,D):t.bezierCurveTo(y,b,C,T,M,D),S=M,k=D}}}})}function y1(t,e,i){if(!t||!e)return e;var n=i.done,r=i.during;return y0(t,e),e.__morphT=0,e.animateTo({__morphT:1},tC({during:function(t){e.dirtyShape(),r&&r(t)},done:function(){yQ(e,"buildPath"),yQ(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape(),n&&n()}},i)),e}function y2(t){var e=1/0,i=1/0,n=-1/0,r=-1/0,o=tA(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),i=Math.min(l,i),n=Math.max(s,n),r=Math.max(l,r),[s,l]});return tA(o,function(o,a){return{cp:o,z:function(t,e,i,n,r,o){t=r===i?0:Math.round(32767*(t-i)/(r-i)),e=o===n?0:Math.round(32767*(e-n)/(o-n));for(var a,s=0,l=32768;l>0;l/=2){var h=0,u=0;(t&l)>0&&(h=1),(e&l)>0&&(u=1),s+=l*l*(3*h^u),0===u&&(1===h&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}(o[0],o[1],e,i,n,r),path:t[a]}}).sort(function(t,e){return t.z-e.z}).map(function(t){return t.path})}function y5(t){return function(t,e){var i,n=[],r=t.shape;switch(t.type){case"rect":!function(t,e,i){for(var n=t.width,r=t.height,o=n>r,a=yY([n,r],+!o,e),s=o?"width":"height",l=o?"height":"width",h=o?"x":"y",u=o?"y":"x",d=t[s]/a.length,c=0;c<a.length;c++)for(var p=t[l]/a[c],f=0;f<a[c];f++){var g={};g[h]=c*d,g[u]=f*p,g[s]=d,g[l]=p,g.x+=t.x,g.y+=t.y,i.push(g)}}(r,e,n),i=aF;break;case"sector":y$(r,e,n),i=dA;break;case"circle":y$({r0:0,r:r.r,startAngle:0,endAngle:2*Math.PI,cx:r.cx,cy:r.cy},e,n),i=dA;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=tA(function(t,e){var i=yH(t),n=[];e=e||1;for(var r=0;r<i.length;r++){var o=i[r],a=[],s=o[0],l=o[1];a.push(s,l);for(var h=2;h<o.length;){var u=o[h++],d=o[h++],c=o[h++],p=o[h++],f=o[h++],g=o[h++];!function t(e,i,n,r,o,a,s,l,h,u){if(yF(e,n)&&yF(i,r)&&yF(o,s)&&yF(a,l))return void h.push(s,l);var d=2/u,c=d*d,p=s-e,f=l-i,g=Math.sqrt(p*p+f*f);p/=g,f/=g;var _=n-e,m=r-i,v=o-s,y=a-l,b=_*_+m*m,x=v*v+y*y;if(b<c&&x<c)return void h.push(s,l);var w=p*_+f*m,S=-p*v-f*y;if(b-w*w<c&&w>=0&&x-S*S<c&&S>=0)return void h.push(s,l);var k=[],C=[];iN(e,n,o,s,.5,k),iN(i,r,a,l,.5,C),t(k[0],C[0],k[1],C[1],k[2],C[2],k[3],C[3],h,u),t(k[4],C[4],k[5],C[5],k[6],C[6],k[7],C[7],h,u)}(s,l,u,d,c,p,f,g,a,e),s=f,l=g}n.push(a)}return n}(t.getUpdatedPathProxy(),a),function(t){for(var e=[],i=0;i<t.length;)e.push([t[i++],t[i++]]);return e}),l=s.length;if(0===l)yj(yW,{points:s[0]},e,n);else if(l===e)for(var h=0;h<l;h++)n.push({points:s[h]});else{var u=0,d=tA(s,function(t){var e=[],i=[];o1(t,e,i);var n=(i[1]-e[1])*(i[0]-e[0]);return u+=n,{poly:t,area:n}});d.sort(function(t,e){return e.area-t.area});for(var c=e,h=0;h<l;h++){var p=d[h];if(c<=0)break;var f=h===l-1?c:Math.ceil(p.area/u*e);f<0||(yj(yW,{points:p.poly},f,n),c-=f)}}i=dz}if(!i){for(var g=[],_=0;_<e;_++)g.push(du(t));return g}for(var m=[],h=0;h<n.length;h++){var v=new i;v.setShape(n[h]),v.setStyle(t.style),v.z=t.z,v.z2=t.z2,v.zlevel=t.zlevel,m.push(v)}return m}(t.path,t.count)}function y3(){return{fromIndividuals:[],toIndividuals:[],count:0}}function y4(t,e){for(var i=[],n=t.length,r=0;r<n;r++)i.push({one:t[r],many:[]});for(var r=0;r<e.length;r++){var o=e[r].length,a=void 0;for(a=0;a<o;a++)i[a%n].many.push(e[r][a])}for(var s=0,r=n-1;r>=0;r--)if(!i[r].many.length){var l=i[s].many;if(l.length<=1)if(!s)return i;else s=0;var o=l.length,h=Math.ceil(o/2);i[r].many=l.slice(h,o),i[s].many=l.slice(0,h),s++}return i}var y6={clone:function(t){for(var e=[],i=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n<t.count;n++){var r=du(t.path);r.setStyle("opacity",i),e.push(r)}return e},split:null};function y7(t,e,i,n,r,o){if(t.length&&e.length){var a,s,l=co("update",n,r);if(l&&l.duration>0){var h=n.getModel("universalTransition").get("delay"),u=tk({setToFinal:!0},l);tN(t[0])&&(a=t,s=e),tN(e[0])&&(a=e,s=t);for(var d=a?a===t:t.length>e.length,c=a?y4(s,a):y4(d?e:t,[d?t:e]),p=0,f=0;f<c.length;f++)p+=c[f].many.length;for(var g=0,f=0;f<c.length;f++)(function t(e,n,r,a,s){var l=e.many,d=e.one;if(1!==l.length||s)for(var c=tC({dividePath:y6[i],individualDelay:h&&function(t,e,i,n){return h(t+r,a)}},u),p=n?function(t,e,i){var n=[];!function t(e){for(var i=0;i<e.length;i++){var r=e[i];yq(r)?t(r.childrenRef()):r instanceof aT&&n.push(r)}}(t);var r=n.length;if(!r)return y3();var o=(i.dividePath||y5)({path:e,count:r});if(o.length!==r)return console.error("Invalid morphing: unmatched splitted path"),y3();n=y2(n),o=y2(o);for(var a=i.done,s=i.during,l=i.individualDelay,h=new nV,u=0;u<r;u++){var d=n[u],c=o[u];c.parent=e,c.copyTransform(h),l||y0(d,c)}function p(t){for(var e=0;e<o.length;e++)o[e].addSelfToZr(t)}function f(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,yQ(e,"addSelfToZr"),yQ(e,"removeSelfFromZr")}e.__isCombineMorphing=!0,e.childrenRef=function(){return o},yK(e,"addSelfToZr",{after:function(t){p(t)}}),yK(e,"removeSelfFromZr",{after:function(t){for(var e=0;e<o.length;e++)o[e].removeSelfFromZr(t)}});var g=o.length;if(l)for(var _=g,m=function(){0==--_&&(f(),a&&a())},u=0;u<g;u++){var v=l?tC({delay:(i.delay||0)+l(u,g,n[u],o[u]),done:m},i):i;y1(n[u],o[u],v)}else e.__morphT=0,e.animateTo({__morphT:1},tC({during:function(t){for(var i=0;i<g;i++){var n=o[i];n.__morphT=e.__morphT,n.dirtyShape()}s&&s(t)},done:function(){f();for(var e=0;e<t.length;e++)yQ(t[e],"updateTransform");a&&a()}},i));return e.__zr&&p(e.__zr),{fromIndividuals:n,toIndividuals:o,count:g}}(l,d,c):function(t,e,i){var n=e.length,r=[],o=i.dividePath||y5;if(yq(t)){!function t(e){for(var i=0;i<e.length;i++){var n=e[i];yq(n)?t(n.childrenRef()):n instanceof aT&&r.push(n)}}(t.childrenRef());var a=r.length;if(a<n)for(var s=0,l=a;l<n;l++)r.push(du(r[s++%a]));r.length=n}else{r=o({path:t,count:n});for(var h=t.getComputedTransform(),l=0;l<r.length;l++)r[l].setLocalTransform(h);if(r.length!==n)return console.error("Invalid morphing: unmatched splitted path"),y3()}r=y2(r),e=y2(e);for(var u=i.individualDelay,l=0;l<n;l++){var d=u?tC({delay:(i.delay||0)+u(l,n,r[l],e[l])},i):i;y1(r[l],e[l],d)}return{fromIndividuals:r,toIndividuals:e,count:e.length}}(d,l,c),f=p.fromIndividuals,g=p.toIndividuals,_=f.length,m=0;m<_;m++){var v=h?tC({delay:h(m,_)},u):u;o(f[m],g[m],n?l[m]:e.one,n?e.one:l[m],v)}else{var y=n?l[0]:d,b=n?d:l[0];if(yq(y))t({many:[y],one:b},!0,r,a,!0);else{var v=h?tC({delay:h(r,a)},u):u;y1(y,b,v),o(y,b,y,b,v)}}})(c[f],d,g,p),g+=c[f].many.length}}}function y8(t){if(!t)return[];if(tN(t)){for(var e=[],i=0;i<t.length;i++)e.push(y8(t[i]));return e}var n=[];return t.traverse(function(t){t instanceof aT&&!t.disableMorphing&&!t.invisible&&!t.ignore&&n.push(t)}),n}var y9=rX();function bt(t,e,i,n){var r=function(t,e){for(var i=t.dimensions,n=0;n<i.length;n++){var r=t.getDimensionInfo(i[n]);if(r&&0===r.otherDims[e])return i[n]}}(t,n?"itemChildGroupId":"itemGroupId");if(r){var o=t,a=e,s=r,l=o.getDimensionInfo(s),h=l&&l.ordinalMeta;if(l){var u=o.get(l.name,a);return h&&h.categories[u]||u+""}return}var d=t.getRawDataItem(e),c=n?"childGroupId":"groupId";return d&&d[c]?d[c]+"":n?void 0:i||t.getId(e)}function be(t){var e=[];return tI(t,function(t){var i=t.data,n=t.dataGroupId;if(!(i.count()>1e4))for(var r=i.getIndices(),o=0;o<r.length;o++)e.push({data:i,groupId:bt(i,o,n,!1),childGroupId:bt(i,o,n,!0),divide:t.divide,dataIndex:o})}),e}function bi(t,e,i){t.traverse(function(t){t instanceof aT&&cl(t,{style:{opacity:0}},e,{dataIndex:i,isFrom:!0})})}function bn(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function br(t){t.stopAnimation(),t.isGroup&&t.traverse(function(t){t.stopAnimation()})}function bo(t,e,i){var n=be(t),r=be(e);function o(t,e,i,n,r){(i||t)&&e.animateFrom({style:i&&i!==t?tk(tk({},i.style),t.style):t.style},r)}var a=!1,s=0,l=t5(),h=t5();tI(n,function(t){t.groupId&&l.set(t.groupId,!0),t.childGroupId&&h.set(t.childGroupId,!0)});for(var u=0;u<r.length;u++){var d=r[u].groupId;if(h.get(d)){s=1;break}var c=r[u].childGroupId;if(c&&l.get(c)){s=2;break}}function p(t,e){return function(i){var n=i.data,r=i.dataIndex;return e?n.getId(r):t?1===s?i.childGroupId:i.groupId:2===s?i.childGroupId:i.groupId}}var f=function(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++){var r=t[n],o=e[n];if(r.data.getId(r.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}(n,r),g={};if(!f)for(var u=0;u<r.length;u++){var _=r[u],m=_.data.getItemGraphicEl(_.dataIndex);m&&(g[m.id]=!0)}function v(t,e){var i,s=n[e],l=r[t],h=l.data.hostModel,u=s.data.getItemGraphicEl(s.dataIndex),d=l.data.getItemGraphicEl(l.dataIndex);if(u===d){d&&(i=co("update",h,l.dataIndex))&&d.traverse(function(t){if(t instanceof oU){var e=cr(t).oldStyle;e&&t.animateFrom({style:e},i)}});return}u&&g[u.id]||d&&(br(d),u?(br(u),bn(u),a=!0,y7(y8(u),y8(d),l.divide,h,t,o)):bi(d,h,t))}new v3(n,r,p(!0,f),p(!1,f),null,"multiple").update(v).updateManyToOne(function(t,e){var i=r[t],s=i.data,l=s.hostModel,h=s.getItemGraphicEl(i.dataIndex),u=tO(tA(e,function(t){return n[t].data.getItemGraphicEl(n[t].dataIndex)}),function(t){return t&&t!==h&&!g[t.id]});h&&(br(h),u.length?(tI(u,function(t){br(t),bn(t)}),a=!0,y7(y8(u),y8(h),i.divide,l,t,o)):bi(h,l,i.dataIndex))}).updateOneToMany(function(t,e){var i=n[e],s=i.data.getItemGraphicEl(i.dataIndex);if(!s||!g[s.id]){var l=tO(tA(t,function(t){return r[t].data.getItemGraphicEl(r[t].dataIndex)}),function(t){return t&&t!==s}),h=r[t[0]].data.hostModel;l.length&&(tI(l,function(t){return br(t)}),s?(br(s),bn(s),a=!0,y7(y8(s),y8(l),i.divide,h,t[0],o)):tI(l,function(e){return bi(e,h,t[0])}))}}).updateManyToMany(function(t,e){new v3(e,t,function(t){return n[t].data.getId(n[t].dataIndex)},function(t){return r[t].data.getId(r[t].dataIndex)}).update(function(i,n){v(t[i],e[n])}).execute()}).execute(),a&&tI(e,function(t){var e=t.data.hostModel,n=e&&i.getViewOfSeriesModel(e),r=co("update",e,0);n&&e.isAnimationEnabled()&&r&&r.duration>0&&n.group.traverse(function(t){t instanceof aT&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)})})}function ba(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function bs(t){return tN(t)?t.sort().join(","):t}function bl(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bh(t,e){for(var i=0;i<t.length;i++)if(null!=e.seriesIndex&&e.seriesIndex===t[i].seriesIndex||null!=e.seriesId&&e.seriesId===t[i].id)return i}function bu(t,e,i){var n=ts.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",t)),n.width=r*i,n.height=o*i,n}function bd(t){return!t.__cursors.get(0)}function bc(t){var e=t.__cursors.get(0);return{startIdx:e?e.startIdx:0,endIdx:e?e.endIdx:0}}var bp=function(t){function e(e,i,n){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.zlevel=0,o.zlevel2=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__prevIdx={startIdx:0,endIdx:0},n=n||nE,"string"==typeof e?r=bu(e,i,n):tH(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(t4(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=i,o.dpr=n,o}return et(e,t),e.prototype.afterBrush=function(){this.__prevIdx=bc(this)},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=bu("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,i,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new ie(0,0,0,0);function h(t){if(!(!t.isFinite()||t.isZero()))if(0===o.length){var e=new ie(0,0,0,0);e.copy(t),o.push(e)}else{for(var i=!1,n=1/0,r=0,h=0;h<o.length;++h){var u=o[h];if(u.intersect(t)){var d=new ie(0,0,0,0);d.copy(u),d.union(t),o[h]=d,i=!0;break}if(s){l.copy(t),l.union(u);var c=t.width*t.height,p=u.width*u.height,f=l.width*l.height-c-p;f<n&&(n=f,r=h)}}if(s&&(o[r].union(t),i=!0),!i){var e=new ie(0,0,0,0);e.copy(t),o.push(e)}s||(s=o.length>=a)}}for(var u=bc(this),d=u.startIdx;d<u.endIdx;++d){var c=t[d];if(c){var p=c.shouldBePainted(i,n,!0,!0),f=c.__isRendered&&(1&c.__dirty||!p)?c.getPrevPaintRect():null;f&&h(f);var g=p&&(1&c.__dirty||!c.__isRendered)?c.getPaintRect():null;g&&h(g)}}for(var _=this.__prevIdx,d=_.startIdx;d<_.endIdx;++d){var c=e[d],p=c&&c.shouldBePainted(i,n,!0,!0);if(c&&(!p||!c.__zr)&&c.__isRendered){var f=c.getPrevPaintRect();f&&h(f)}}do{r=!1;for(var d=0;d<o.length;){if(o[d].isZero()){o.splice(d,1);continue}for(var m=d+1;m<o.length;)o[d].intersect(o[m])?(r=!0,o[d].union(o[m]),o.splice(m,1)):m++;d++}}while(r);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var i=this.dpr,n=this.dom,r=n.style,o=this.domBack;r&&(r.width=t+"px",r.height=e+"px"),n.width=t*i,n.height=e*i,o&&(o.width=t*i,o.height=e*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,e,i){var n=this.dom,r=this.ctx,o=n.width,a=n.height;e=e||this.clearColor;var s=this.motionBlur&&!t,l=this.lastFrameAlpha,h=this.dpr,u=this;s&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(n,0,0,o/h,a/h));var d=this.domBack;function c(t,i,n,o){if(r.clearRect(t,i,n,o),e&&"transparent"!==e){var a=void 0;tW(e)?(a=(e.global||e.__width===n&&e.__height===o)&&e.__canvasGradient||p2(r,e,{x:0,y:0,width:n,height:o}),e.__canvasGradient=a,e.__width=n,e.__height=o):null!=e.image&&(e.scaleX=e.scaleX||h,e.scaleY=e.scaleY||h,a=fi(r,e,{dirty:function(){u.setUnpainted(),u.painter.refresh()}})),r.save(),r.fillStyle=a||e,r.fillRect(t,i,n,o),r.restore()}s&&(r.save(),r.globalAlpha=l,r.drawImage(d,t,i,n,o),r.restore())}!i||s?c(0,0,o,a):i.length&&tI(i,function(t){c(t.x*h,t.y*h,t.width*h,t.height*h)})},e}(ec),bf=void 0;function bg(t,e,i,n){var r=new bp(t,e,e.dpr);return r.zlevel=i,r.zlevel2=n,r.__builtin__=!0,b_(r),r}function b_(t){t.__cursorStack=[],t.__cursors=t5()}function bm(t,e){for(var i=t.__cursorStack,n=0;n<i.length;n++)e(t.__cursors.get(i[n]))}function bv(t,e){var i=t.layers;return i[e]||(i[e]=[,,,])}function by(t,e,i){for(var n=t.layerStack,r=0;r<n.length;r++){var o=n[r].zl,a=n[r].zl2,s=t.layers[o][a];i&&(i&bb&&!s.__builtin__||i&bx&&s.__builtin__||i&bw&&s===t.hoverlayer)||e(s,o,a,r)}}var bb=1,bx=2,bw=4,bS=function(){function t(t,e,i,n){this.type="canvas",this._prevDisplayList=[],this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas",this._i={layerStack:[],layers:[]};var r=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();if(this._opts=i=tk({},i||{}),this.dpr=i.devicePixelRatio||nE,this._singleCanvas=r,this.root=t,t.style&&(t4(t),t.innerHTML=""),this.storage=e,this._prevDisplayList=[],r){var o=t.width,a=t.height;null!=i.width&&(o=i.width),null!=i.height&&(a=i.height),this.dpr=i.devicePixelRatio||1,t.width=o*this.dpr,t.height=a*this.dpr,this._width=o,this._height=a;var s=bg(t,this,314159,0);s.initContext(),this._insertLayer(s,314159,0,!0),this._domRoot=t}else{this._width=p3(t,0,i),this._height=p3(t,1,i);var l,h,u,d=this._domRoot=(l=this._width,h=this._height,(u=document.createElement("div")).style.cssText=["position:relative","width:"+l+"px","height:"+h+"px","padding:0;margin:0;border-width:0"].join(";")+";",u);t.appendChild(d)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=t&&!tH(t)?{paintAll:!!t}:t||{},i=tG(e.refresh,!0),n=tG(e.refreshHover,!1);if(n&&(this._hoverLayerDirty=2),!i)return n&&this._paintHoverList(this.storage.getDisplayList(!1)),this;var r=this.storage.getDisplayList(!0);this._updateLayerStatus(r,e.paintAll),this._redrawId=Math.random();var o=this._prevDisplayList;this._paintList(r,o,this._redrawId);var a=this._backgroundColor;return by(this._i,function(t,e,i,n){t.refresh&&t.refresh(0===n?a:null)},bx),this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},t.prototype._paintHoverList=function(t){var e,i=this._i.hoverlayer,n=this._hoverLayerDirty;if((this._hoverLayerDirty=bf,n!==bf)&&(i||2!==n||(i=this._i.hoverlayer=this._ensureLayer(1e5)),i)){i.clear();for(var r={inHover:!0,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},o=0,a=t.length;o<a;o++){var s=t[o];if(s.__inHover){e||(e=i.ctx).save();var l=s.__hoverStyle,h=void 0;l&&(h=s.style,s.style=l),fu(e,s,r),l&&(s.style=h)}}e&&(fd(e,r),e.restore())}},t.prototype.getHoverLayer=function(){return this._ensureLayer(1e5)},t.prototype.paintOne=function(t,e){fh(t,e)},t.prototype._paintList=function(t,e,i){if(this._redrawId===i){var n=this._doPaintList(t,e);if(this._needsManuallyCompositing&&this._compositeManually(),n)by(this._i,function(t){t.afterBrush&&t.afterBrush()},5),this._paintHoverList(t);else{var r=this;p(function(){r._paintList(t,e,i)})}}},t.prototype._compositeManually=function(){var t=this._ensureLayer(314159).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),by(this._i,function(n){n.virtual&&t.drawImage(n.dom,0,0,e,i)},bb)},t.prototype._doPaintList=function(t,e){var i=this,n=!0;return by(this._i,function(r){var o=!1;if(bm(r,function(t){(t.drawIdx<t.endIdx||t.notClearIdx>=0)&&(o=!0)}),o||r.__dirty){var a=i._opts.useDirtyRect&&!bd(r)?r.createRepaintRects(t,e,i._width,i._height):null,s=i._i.layerStack[0],l=!0;if(r.__dirty){l=!1,r.__dirty=!1;var h=r.zlevel===s.zl&&r.zlevel2===s.zl2?i._backgroundColor:null;r.clear(!1,h,a)}bm(r,function(e){var o=i._paintPerCursor(r,e,t,a,l);n=n&&o})}},5),tr.wxa&&by(this._i,function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()}),n},t.prototype._paintPerCursor=function(t,e,i,n,r){var o=t.ctx;if(n)if(n.length)for(var a=this.dpr,s=0;s<n.length;++s){var l=n[s];o.save(),o.beginPath(),o.rect(l.x*a,l.y*a,l.width*a,l.height*a),o.clip(),this._paintPerCursorInRect(t,e,i,l,r),o.restore()}else e.drawIdx=e.endIdx;else o.save(),this._paintPerCursorInRect(t,e,i,null,r),o.restore();return e.drawIdx>=e.endIdx},t.prototype._paintPerCursorInRect=function(t,e,i,n,r){for(var o={inHover:!1,allClipped:!1,prevEl:null,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{contentRetained:r}},a=t.ctx,s=bd(t),l=s&&ts.getTime(),h=e.drawIdx,u=e.notClearIdx,d=u>=0?Math.min(u,h):h;d<e.endIdx;d++){var c=i[d];if(!(d<h)||c.notClear){if(c.__inHover&&(this._hoverLayerDirty=2),null!=n){var p=c.getPaintRect();p&&p.intersect(n)&&(fu(a,c,o),c.setPrevPaintRect(p))}else fu(a,c,o);if(s&&ts.getTime()-l>15){d++;break}}}fd(a,o),e.drawIdx=Math.max(d,h)},t.prototype.getLayer=function(t,e){return this._ensureLayer(t,0,e)},t.prototype._ensureLayer=function(t,e,i){e=e||0;var n=this._singleCanvas;n&&!this._needsManuallyCompositing&&(t=314159,e=0);var r=bv(this._i,t)[e];return r||(r=bg("zr_"+t+"."+e,this,t,e),this._layerConfig[t]&&tS(r,this._layerConfig[t],!0),(i||n&&314159!==t)&&(r.virtual=!0),this._insertLayer(r,t,e,!1),r.initContext()),r},t.prototype.insertLayer=function(t,e){this._insertLayer(e,t,0,!1)},t.prototype._insertLayer=function(t,e,i,n){var r=this._i,o=r.layers,a=r.layerStack,s=this._domRoot,l=null;if(!o[e]||!o[e][i]){if(t&&(t.__builtin__||"function"==typeof t.resize&&"function"==typeof t.refresh&&1)){for(var h=a.length,u=0;u<h&&(a[u].zl<e||a[u].zl===e&&a[u].zl2<i);)u++;if(u>0&&(l=bv(r,a[u-1].zl)[a[u-1].zl2]),a.splice(u,0,{zl:e,zl2:i}),bv(r,e)[i]=t,!n&&!t.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(t.dom,d.nextSibling):s.appendChild(t.dom)}else s.firstChild?s.insertBefore(t.dom,s.firstChild):s.appendChild(t.dom);t.painter||(t.painter=this)}}},t.prototype.eachLayer=function(t,e){return by(this._i,function(i,n){t.call(e,i,n)})},t.prototype.eachBuiltinLayer=function(t,e){return by(this._i,function(i,n){t.call(e,i,n)},bb)},t.prototype.eachOtherLayer=function(t,e){return by(this._i,function(i,n){t.call(e,i,n)},bx)},t.prototype.getLayers=function(){var t={};return by(this._i,function(e,i,n){t[e.id]=e}),t},t.prototype._updateLayerStatus=function(t,e){var i,n=this;if(n._singleCanvas)for(var r=1;r<t.length;r++){var o=t[r];if(o.zlevel!==t[r-1].zlevel||o.incremental){n._needsManuallyCompositing=!0;break}}by(n._i,function(t){t.__dirty=!1,bm(t,function(t){t.used=!1,t.endIdxNew=0,t.notClearIdx=-1})},5);for(var a=null,s=null,l=!1,h=0,u=t.length;h<u;h++){var o=t[h],d=o.zlevel,c=o.incremental,p=void 0;if(i!==d&&(i=d,l=!1),c?(l=!0,p=1):p=2*!!l,(!a||d!==a.zlevel||p!==a.zlevel2)&&(a=n._ensureLayer(d,p),s=null,!a.__builtin__)){tx("ZLevel "+d+" has been used by unknown layer "+a.id);continue}if((!s||c!==s.key)&&!(s=function(t,e){var i,n=t.__cursors,r=+e;return n.get(r)||(t.__cursorStack.push(r),n.set(r,((i={key:r}).startIdx=i.drawIdx=i.endIdx=i.endIdxNew=0,i.used=!1,i.first=i.last=0/0,i.notClearIdx=-1,i)))}(a,c)).used)if(s.used=!0,e||s.first!==o.id)a.__dirty=!0,s.first=o.id,s.startIdx=s.drawIdx=h,s.endIdx=h+1;else{var f=h-s.startIdx;s.startIdx=h,s.drawIdx+=f,s.endIdx+=f}s.endIdxNew=h+1,1&o.__dirty&&!o.__inHover&&(c&&(o.notClear||!(h<s.drawIdx))||(a.__dirty=!0),c&&o.notClear&&s.notClearIdx<0&&(s.notClearIdx=h))}by(n._i,function(e){for(var i=e.__cursorStack,r=e.__cursors,o=i.length-1;o>=0;o--){var a=r.get(i[o]);if(a.used){var s=a.endIdxNew;(bd(e)?s<a.drawIdx:s!==a.endIdx||!s||t[s-1].id!==a.last)&&(e.__dirty=!0),a.endIdx=a.endIdxNew,a.last=s?t[s-1].id:0/0}else e.__dirty=!0,r.removeKey(i[o]),i.splice(o,1)}e.__dirty&&(bm(e,function(t){t.drawIdx=t.startIdx}),n._hoverLayerDirty===bf&&(n._hoverLayerDirty=1))},5)},t.prototype.clear=function(){return by(this._i,function(t){t.clear(),b_(t)},bb),this},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,by(this._i,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?tS(i[t],e,!0):i[t]=e,by(this._i,function(t,e){tS(t,i[e],!0)})}},t.prototype.delLayer=function(t){for(var e=this._i.layerStack,i=this._i.layers,n=e.length-1;n>=0;n--){var r=e[n];if(r.zl===t){var o=i[t][r.zl2];if(o.__builtin__)continue;if(e.splice(n,1),i[t][r.zl2]=void 0,!o.virtual){var a=o.dom.parentNode;a&&a.removeChild(o.dom)}}}},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,r=this.root;null!=t&&(n.width=t),null!=e&&(n.height=e),t=p3(r,0,n),e=p3(r,1,n),i.style.display="",(this._width!==t||e!==this._height)&&(i.style.width=t+"px",i.style.height=e+"px",by(this._i,function(i){i.resize(t,e)}),this.refresh({paintAll:!0})),this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this._ensureLayer(314159).resize(t,e)}return this},t.prototype.clearLayer=function(t){tI(this._i.layers[t],function(t){t&&!t.__builtin__&&t.clear()})},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._i=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._i.layers[314159][0].dom;var e=new bp("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=e.dom.width,r=e.dom.height;by(this._i,function(t){t.__builtin__?i.drawImage(t.dom,0,0,n,r):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())})}else{for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height,beforeBrushParam:{}},a=this.storage.getDisplayList(!0),s=0,l=a.length;s<l;s++)fu(i,a[s],o);fd(i,o)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),bk=i(51),bC=i.n(bk);let bT=globalThis,bM=bT.ShadowRoot&&(void 0===bT.ShadyCSS||bT.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bD=Symbol(),bI=new WeakMap;class bA{constructor(t,e,i){if(this._$cssResult$=!0,i!==bD)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(bM&&void 0===t){let i=void 0!==e&&1===e.length;i&&(t=bI.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&bI.set(e,t))}return t}toString(){return this.cssText}}let bE=t=>new bA("string"==typeof t?t:t+"",void 0,bD),bO=(t,...e)=>new bA(1===t.length?t[0]:e.reduce((e,i,n)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[n+1],t[0]),t,bD),bP=(t,e)=>{if(bM)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let i of e){let e=document.createElement("style"),n=bT.litNonce;void 0!==n&&e.setAttribute("nonce",n),e.textContent=i.cssText,t.appendChild(e)}},bL=bM?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(let i of t.cssRules)e+=i.cssText;return bE(e)})(t):t,{is:bR,defineProperty:bN,getOwnPropertyDescriptor:bz,getOwnPropertyNames:bB,getOwnPropertySymbols:bV,getPrototypeOf:bF}=Object,bH=globalThis,bY=bH.trustedTypes,b$=bY?bY.emptyScript:"",bU=bH.reactiveElementPolyfillSupport,bW={toAttribute(t,e){switch(e){case Boolean:t=t?b$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},bj=(t,e)=>!bR(t,e),bG={attribute:!0,type:String,converter:bW,reflect:!1,useDefault:!1,hasChanged:bj};Symbol.metadata??=Symbol("metadata"),bH.litPropertyMetadata??=new WeakMap;class bZ extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=bG){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let i=Symbol(),n=this.getPropertyDescriptor(t,i,e);void 0!==n&&bN(this.prototype,t,n)}}static getPropertyDescriptor(t,e,i){let{get:n,set:r}=bz(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:n,set(e){let o=n?.call(this);r?.call(this,e),this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??bG}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;let t=bF(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){let t=this.properties;for(let e of[...bB(t),...bV(t)])this.createProperty(e,t[e])}let t=this[Symbol.metadata];if(null!==t){let e=litPropertyMetadata.get(t);if(void 0!==e)for(let[t,i]of e)this.elementProperties.set(t,i)}for(let[t,e]of(this._$Eh=new Map,this.elementProperties)){let i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t))for(let i of new Set(t.flat(1/0).reverse()))e.unshift(bL(i));else void 0!==t&&e.push(bL(t));return e}static _$Eu(t,e){let i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map;for(let e of this.constructor.elementProperties.keys())this.hasOwnProperty(e)&&(t.set(e,this[e]),delete this[e]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return bP(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){let i=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,i);if(void 0!==n&&!0===i.reflect){let r=(void 0!==i.converter?.toAttribute?i.converter:bW).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let i=this.constructor,n=i._$Eh.get(t);if(void 0!==n&&this._$Em!==n){let t=i.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:bW;this._$Em=n;let o=r.fromAttribute(e,t.type);this[n]=o??this._$Ej?.get(n)??o,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){let n=this.constructor,r=this[t];if(!(((i??=n.getPropertyOptions(t)).hasChanged??bj)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:n,wrapped:r},o){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===n&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}let t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}let t=this.constructor.elementProperties;if(t.size>0)for(let[e,i]of t){let{wrapped:t}=i,n=this[e];!0!==t||this._$AL.has(e)||void 0===n||this.C(e,void 0,i,n)}}let t=!1,e=this._$AL;try{(t=this.shouldUpdate(e))?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}bZ.elementStyles=[],bZ.shadowRootOptions={mode:"open"},bZ.elementProperties=new Map,bZ.finalized=new Map,bU?.({ReactiveElement:bZ}),(bH.reactiveElementVersions??=[]).push("2.1.1");let bq=globalThis,bX=bq.trustedTypes,bK=bX?bX.createPolicy("lit-html",{createHTML:t=>t}):void 0,bQ="$lit$",bJ=`lit$${Math.random().toFixed(9).slice(2)}$`,b0="?"+bJ,b1=`<${b0}>`,b2=document,b5=()=>b2.createComment(""),b3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,b4=Array.isArray,b6="[ \n\f\r]",b7=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b8=/-->/g,b9=/>/g,xt=RegExp(`>|${b6}(?:([^\\s"'>=/]+)(${b6}*=${b6}*(?:[^
2
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,xi=/"/g,xn=/^(?:script|style|textarea|title)$/i,xr=(t,...e)=>({_$litType$:1,strings:t,values:e}),xo=Symbol.for("lit-noChange"),xa=Symbol.for("lit-nothing"),xs=new WeakMap,xl=b2.createTreeWalker(b2,129);function xh(t,e){if(!b4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==bK?bK.createHTML(e):e}class xu{constructor({strings:t,_$litType$:e},i){let n;this.parts=[];let r=0,o=0;const a=t.length-1,s=this.parts,[l,h]=((t,e)=>{let i=t.length-1,n=[],r,o=2===e?"<svg>":3===e?"<math>":"",a=b7;for(let e=0;e<i;e++){let i=t[e],s,l,h=-1,u=0;for(;u<i.length&&(a.lastIndex=u,null!==(l=a.exec(i)));)u=a.lastIndex,a===b7?"!--"===l[1]?a=b8:void 0!==l[1]?a=b9:void 0!==l[2]?(xn.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=xt):void 0!==l[3]&&(a=xt):a===xt?">"===l[0]?(a=r??b7,h=-1):void 0===l[1]?h=-2:(h=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?xt:'"'===l[3]?xi:xe):a===xi||a===xe?a=xt:a===b8||a===b9?a=b7:(a=xt,r=void 0);let d=a===xt&&t[e+1].startsWith("/>")?" ":"";o+=a===b7?i+b1:h>=0?(n.push(s),i.slice(0,h)+bQ+i.slice(h)+bJ+d):i+bJ+(-2===h?e:d)}return[xh(t,o+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),n]})(t,e);if(this.el=xu.createElement(l,i),xl.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(n=xl.nextNode())&&s.length<a;){if(1===n.nodeType){if(n.hasAttributes())for(const t of n.getAttributeNames())if(t.endsWith(bQ)){const e=h[o++],i=n.getAttribute(t).split(bJ),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:i,ctor:"."===a[1]?xg:"?"===a[1]?x_:"@"===a[1]?xm:xf}),n.removeAttribute(t)}else t.startsWith(bJ)&&(s.push({type:6,index:r}),n.removeAttribute(t));if(xn.test(n.tagName)){const t=n.textContent.split(bJ),e=t.length-1;if(e>0){n.textContent=bX?bX.emptyScript:"";for(let i=0;i<e;i++)n.append(t[i],b5()),xl.nextNode(),s.push({type:2,index:++r});n.append(t[e],b5())}}}else if(8===n.nodeType)if(n.data===b0)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=n.data.indexOf(bJ,t+1));)s.push({type:7,index:r}),t+=bJ.length-1}r++}}static createElement(t,e){let i=b2.createElement("template");return i.innerHTML=t,i}}function xd(t,e,i=t,n){if(e===xo)return e;let r=void 0!==n?i._$Co?.[n]:i._$Cl,o=b3(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t))._$AT(t,i,n),void 0!==n?(i._$Co??=[])[n]=r:i._$Cl=r),void 0!==r&&(e=xd(t,r._$AS(t,e.values),r,n)),e}class xc{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:i}=this._$AD,n=(t?.creationScope??b2).importNode(e,!0);xl.currentNode=n;let r=xl.nextNode(),o=0,a=0,s=i[0];for(;void 0!==s;){if(o===s.index){let e;2===s.type?e=new xp(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new xv(r,this,t)),this._$AV.push(e),s=i[++a]}o!==s?.index&&(r=xl.nextNode(),o++)}return xl.currentNode=b2,n}p(t){let e=0;for(let i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class xp{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,n){this.type=2,this._$AH=xa,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){let i;b3(t=xd(this,t,e))?t===xa||null==t||""===t?(this._$AH!==xa&&this._$AR(),this._$AH=xa):t!==this._$AH&&t!==xo&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):b4(i=t)||"function"==typeof i?.[Symbol.iterator]?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==xa&&b3(this._$AH)?this._$AA.nextSibling.data=t:this.T(b2.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=xu.createElement(xh(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(e);else{let t=new xc(n,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=xs.get(t.strings);return void 0===e&&xs.set(t.strings,e=new xu(t)),e}k(t){b4(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,i,n=0;for(let r of t)n===e.length?e.push(i=new xp(this.O(b5()),this.O(b5()),this,this.options)):i=e[n],i._$AI(r),n++;n<e.length&&(this._$AR(i&&i._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class xf{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,n,r){this.type=1,this._$AH=xa,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=xa}_$AI(t,e=this,i,n){let r=this.strings,o=!1;if(void 0===r)(o=!b3(t=xd(this,t,e,0))||t!==this._$AH&&t!==xo)&&(this._$AH=t);else{let n,a,s=t;for(t=r[0],n=0;n<r.length-1;n++)(a=xd(this,s[i+n],e,n))===xo&&(a=this._$AH[n]),o||=!b3(a)||a!==this._$AH[n],a===xa?t=xa:t!==xa&&(t+=(a??"")+r[n+1]),this._$AH[n]=a}o&&!n&&this.j(t)}j(t){t===xa?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xg extends xf{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===xa?void 0:t}}class x_ extends xf{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==xa)}}class xm extends xf{constructor(t,e,i,n,r){super(t,e,i,n,r),this.type=5}_$AI(t,e=this){if((t=xd(this,t,e,0)??xa)===xo)return;let i=this._$AH,n=t===xa&&i!==xa||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==xa&&(i===xa||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class xv{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){xd(this,t)}}let xy=bq.litHtmlPolyfillSupport;xy?.(xu,xp),(bq.litHtmlVersions??=[]).push("3.3.1");let xb=globalThis;class xx extends bZ{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{let n=i?.renderBefore??e,r=n._$litPart$;if(void 0===r){let t=i?.renderBefore??null;n._$litPart$=r=new xp(e.insertBefore(b5(),t),t,void 0,i??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return xo}}xx._$litElement$=!0,xx.finalized=!0,xb.litElementHydrateSupport?.({LitElement:xx});let xw=xb.litElementPolyfillSupport;xw?.({LitElement:xx}),(xb.litElementVersions??=[]).push("4.2.1");let xS=t=>(e,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},xk={attribute:!0,type:String,converter:bW,reflect:!1,hasChanged:bj};function xC(t){return(e,i)=>{let n;return"object"==typeof i?((t=xk,e,i)=>{let{kind:n,metadata:r}=i,o=globalThis.litPropertyMetadata.get(r);if(void 0===o&&globalThis.litPropertyMetadata.set(r,o=new Map),"setter"===n&&((t=Object.create(t)).wrapped=!0),o.set(i.name,t),"accessor"===n){let{name:n}=i;return{set(i){let r=e.get.call(this);e.set.call(this,i),this.requestUpdate(n,r,t)},init(e){return void 0!==e&&this.C(n,void 0,t,e),e}}}if("setter"===n){let{name:n}=i;return function(i){let r=this[n];e.call(this,i),this.requestUpdate(n,r,t)}}throw Error("Unsupported decorator location: "+n)})(t,e,i):(n=e.hasOwnProperty(i),e.constructor.createProperty(i,t),n?Object.getOwnPropertyDescriptor(e,i):void 0)}}let xT=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i);function xM(t,e){return(i,n,r)=>{let o=e=>e.renderRoot?.querySelector(t)??null;if(e){let t,{get:e,set:a}="object"==typeof n?i:r??(t=Symbol(),{get(){return this[t]},set(e){this[t]=e}});return xT(i,n,{get(){let t=e.call(this);return void 0===t&&(null!==(t=o(this))||this.hasUpdated)&&a.call(this,t),t}})}return xT(i,n,{get(){return o(this)}})}}var xD=i(673),xI=i(650),xA=i(954),xE=i.n(xA);function xO(t,e,i){return t?e(t):i?.(t)}var xP=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a};let xL=bO`
3
3
  :host {
4
4
  --internal-or-panel-background-color: var(
5
5
  --or-panel-background-color,
@@ -56,7 +56,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
56
56
  <slot></slot>
57
57
  </div>
58
58
  </div>
59
- `}};xP([xC({type:Number})],xR.prototype,"zLevel",void 0),xP([xC({type:String})],xR.prototype,"heading",void 0),xP([xM("#panel")],xR.prototype,"_panel",void 0),xR=xP([xS("or-panel")],xR),i(879),window.Vaadin||={},window.Vaadin.featureFlags||={};let xN={};function xz(t,e="25.2.8"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||xN[e]){if(xN[e])return void xN[e].add(t)}else{xN[e]=new Set,xN[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===xN[e].size,set(t){t&&xN[e].size>0&&(xN[e].forEach(t=>{customElements.define(t.is,t)}),xN[e].clear())}});return}}let i=customElements.get(t.is);if(i){let e=i.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let xB=[];function xV(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function xF(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=xF();xB.forEach(e=>{xV(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let xH=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),xV(this,xF(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;let n=xF(),r=i===n&&-1===xB.indexOf(this),o=!i&&e&&-1===xB.indexOf(this),a=i!==n&&e===n;r||o?(this.__subscribe(),xV(this,n,i)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=xB.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){("dir"!==i||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){xB.includes(this)||xB.push(this)}__unsubscribe(){xB.includes(this)&&xB.splice(xB.indexOf(this),1)}},xY=new WeakMap;function x$(t){return e=>{if(function(t,e){let i=e;for(;i;){if(xY.get(i)===t)return!0;i=Object.getPrototypeOf(i)}return!1}(t,e))return e;let i=t(e);return xY.set(i,t),i}}function xU(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}let xW={},xj=/([A-Z])/gu;function xG(t){return xW[t]||(xW[t]=t.replace(xj,"-$1").toLowerCase()),xW[t]}function xZ(t){return t[0].toUpperCase()+t.substring(1)}function xq(t){let[e,i]=t.split("(");return{method:e,observerProps:i.replace(")","").split(",").map(t=>t.trim())}}function xX(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let xK=x$(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return xX(this,t)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:i,observerProps:n}=xq(e);t.set(i,n)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,i){let n=super.getPropertyDescriptor(t,e,i),r=n;if(this.getOrCreateMap("__propKeys").set(t,e),i.sync&&(r={get:n.get,set(n){let r=this[t];bj(n,r)&&(this[e]=n,this.requestUpdate(t,r,i),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),i.readOnly){let e=r.set;this.addCheckedInitializer(i=>{i[`_set${xZ(t)}`]=function(t){e.call(i,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in i&&this.addCheckedInitializer(e=>{let n="function"==typeof i.value?i.value.call(e):i.value;i.readOnly?e[`_set${xZ(t)}`](n):e[t]=n}),i.observer){let e=i.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(i.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(i.computed){let e=`__assignComputed${t}`,n=xq(i.computed);this.prototype[e]=function(...e){this[t]=this[n.method](...e)},this.getOrCreateMap("__computedObservers").set(e,n.observerProps)}return i.attribute||(i.attribute=xG(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let i=this.constructor.__propKeys.get(t),n=this[i];this[i]=e,this.requestUpdate(t,n)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=xX(this,"__dynamicMethodObservers"),{method:i,observerProps:n}=xq(t);e.set(i,n)}_createPropertyObserver(t,e){xX(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,i)=>{e.some(e=>t.has(e))&&(this[i]?this[i](...e.map(t=>this[t])):console.warn(`observer method ${i} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,i)=>{t.has(e)&&this[i]&&this[i](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,i)=>{let n=e.get(i);void 0!==n&&this[n]&&this[n](this[i],t)})}__runNotifyProps(t,e){t.forEach((t,i)=>{e.has(i)&&this.dispatchEvent(new CustomEvent(`${xG(i)}-changed`,{detail:{value:this[i]}}))})}_get(t,e){return xU(t,e)}_set(t,e,i){let n,r;r=(n=t.split(".")).pop(),n.reduce((t,e)=>t[e],i)[r]=e}});function xQ(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class xJ extends EventTarget{#t;#e=new Set;#i;#n=!1;constructor(t){super(),this.#t=t,this.#i=new CSSStyleSheet}#r(t){let{propertyName:e}=t;this.#e.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#e.has(t)||(this.#e.add(t),this.#i.replaceSync(`
59
+ `}};xP([xC({type:Number})],xR.prototype,"zLevel",void 0),xP([xC({type:String})],xR.prototype,"heading",void 0),xP([xM("#panel")],xR.prototype,"_panel",void 0),xR=xP([xS("or-panel")],xR),i(879),window.Vaadin||={},window.Vaadin.featureFlags||={};let xN={};function xz(t,e="25.2.11"){if(Object.defineProperty(t,"version",{get:()=>e}),t.experimental){let e="string"==typeof t.experimental?t.experimental:`${t.is.split("-").slice(1).join("-").replace(/-[a-z]/gu,t=>t[1].toUpperCase())}Component`;if(window.Vaadin.featureFlags[e]||xN[e]){if(xN[e])return void xN[e].add(t)}else{xN[e]=new Set,xN[e].add(t),Object.defineProperty(window.Vaadin.featureFlags,e,{get:()=>0===xN[e].size,set(t){t&&xN[e].size>0&&(xN[e].forEach(t=>{customElements.define(t.is,t)}),xN[e].clear())}});return}}let i=customElements.get(t.is);if(i){let e=i.version;e&&t.version&&e===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${i.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}let xB=[];function xV(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function xF(){return document.documentElement.getAttribute("dir")}new MutationObserver(function(){let t=xF();xB.forEach(e=>{xV(e,t)})}).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});let xH=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),xV(this,xF(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;let n=xF(),r=i===n&&-1===xB.indexOf(this),o=!i&&e&&-1===xB.indexOf(this),a=i!==n&&e===n;r||o?(this.__subscribe(),xV(this,n,i)):a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=xB.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){("dir"!==i||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){xB.includes(this)||xB.push(this)}__unsubscribe(){xB.includes(this)&&xB.splice(xB.indexOf(this),1)}},xY=new WeakMap;function x$(t){return e=>{if(function(t,e){let i=e;for(;i;){if(xY.get(i)===t)return!0;i=Object.getPrototypeOf(i)}return!1}(t,e))return e;let i=t(e);return xY.set(i,t),i}}function xU(t,e){return t.split(".").reduce((t,e)=>t?t[e]:void 0,e)}let xW={},xj=/([A-Z])/gu;function xG(t){return xW[t]||(xW[t]=t.replace(xj,"-$1").toLowerCase()),xW[t]}function xZ(t){return t[0].toUpperCase()+t.substring(1)}function xq(t){let[e,i]=t.split("(");return{method:e,observerProps:i.replace(")","").split(",").map(t=>t.trim())}}function xX(t,e){return Object.prototype.hasOwnProperty.call(t,e)||(t[e]=new Map(t[e])),t[e]}let xK=x$(t=>class extends t{static enabledWarnings=[];static createProperty(t,e){[String,Boolean,Number,Array].includes(e)&&(e={type:e}),e?.reflectToAttribute&&(e.reflect=!0),super.createProperty(t,e)}static getOrCreateMap(t){return xX(this,t)}static finalize(){if(window.litIssuedWarnings&&(window.litIssuedWarnings.add("no-override-create-property"),window.litIssuedWarnings.add("no-override-get-property-descriptor")),super.finalize(),Array.isArray(this.observers)){let t=this.getOrCreateMap("__complexObservers");this.observers.forEach(e=>{let{method:i,observerProps:n}=xq(e);t.set(i,n)})}}static addCheckedInitializer(t){super.addInitializer(e=>{e instanceof this&&t(e)})}static getPropertyDescriptor(t,e,i){let n=super.getPropertyDescriptor(t,e,i),r=n;if(this.getOrCreateMap("__propKeys").set(t,e),i.sync&&(r={get:n.get,set(n){let r=this[t];bj(n,r)&&(this[e]=n,this.requestUpdate(t,r,i),this.hasUpdated&&this.performUpdate())},configurable:!0,enumerable:!0}),i.readOnly){let e=r.set;this.addCheckedInitializer(i=>{i[`_set${xZ(t)}`]=function(t){e.call(i,t)}}),r={get:r.get,set(){},configurable:!0,enumerable:!0}}if("value"in i&&this.addCheckedInitializer(e=>{let n="function"==typeof i.value?i.value.call(e):i.value;i.readOnly?e[`_set${xZ(t)}`](n):e[t]=n}),i.observer){let e=i.observer;this.getOrCreateMap("__observers").set(t,e),this.addCheckedInitializer(t=>{t[e]||console.warn(`observer method ${e} not defined`)})}if(i.notify){if(this.__notifyProps){if(!this.hasOwnProperty("__notifyProps")){let t=this.__notifyProps;this.__notifyProps=new Set(t)}}else this.__notifyProps=new Set;this.__notifyProps.add(t)}if(i.computed){let e=`__assignComputed${t}`,n=xq(i.computed);this.prototype[e]=function(...e){this[t]=this[n.method](...e)},this.getOrCreateMap("__computedObservers").set(e,n.observerProps)}return i.attribute||(i.attribute=xG(t)),r}static get polylitConfig(){return{asyncFirstRender:!1}}connectedCallback(){super.connectedCallback();let{polylitConfig:t}=this.constructor;this.hasUpdated||t.asyncFirstRender||this.performUpdate()}firstUpdated(){super.firstUpdated(),this.$||(this.$={}),this.renderRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t})}ready(){}willUpdate(t){this.constructor.__computedObservers&&this.__runComplexObservers(t,this.constructor.__computedObservers)}updated(t){let e=this.__isReadyInvoked;this.__isReadyInvoked=!0,this.constructor.__observers&&this.__runObservers(t,this.constructor.__observers),this.constructor.__complexObservers&&this.__runComplexObservers(t,this.constructor.__complexObservers),this.__dynamicPropertyObservers&&this.__runDynamicObservers(t,this.__dynamicPropertyObservers),this.__dynamicMethodObservers&&this.__runComplexObservers(t,this.__dynamicMethodObservers),this.constructor.__notifyProps&&this.__runNotifyProps(t,this.constructor.__notifyProps),e||this.ready()}setProperties(t){Object.entries(t).forEach(([t,e])=>{let i=this.constructor.__propKeys.get(t),n=this[i];this[i]=e,this.requestUpdate(t,n)}),this.hasUpdated&&this.performUpdate()}_createMethodObserver(t){let e=xX(this,"__dynamicMethodObservers"),{method:i,observerProps:n}=xq(t);e.set(i,n)}_createPropertyObserver(t,e){xX(this,"__dynamicPropertyObservers").set(e,t)}__runComplexObservers(t,e){e.forEach((e,i)=>{e.some(e=>t.has(e))&&(this[i]?this[i](...e.map(t=>this[t])):console.warn(`observer method ${i} not defined`))})}__runDynamicObservers(t,e){e.forEach((e,i)=>{t.has(e)&&this[i]&&this[i](this[e],t.get(e))})}__runObservers(t,e){t.forEach((t,i)=>{let n=e.get(i);void 0!==n&&this[n]&&this[n](this[i],t)})}__runNotifyProps(t,e){t.forEach((t,i)=>{e.has(i)&&this.dispatchEvent(new CustomEvent(`${xG(i)}-changed`,{detail:{value:this[i]}}))})}_get(t,e){return xU(t,e)}_set(t,e,i){let n,r;r=(n=t.split(".")).pop(),n.reduce((t,e)=>t[e],i)[r]=e}});function xQ(t){try{CSS.registerProperty(t)}catch(e){if(e instanceof DOMException&&"InvalidModificationError"===e.name)console.warn(`The CSS property ${t.name} has already been registered.`);else throw e}}class xJ extends EventTarget{#t;#e=new Set;#i;#n=!1;constructor(t){super(),this.#t=t,this.#i=new CSSStyleSheet}#r(t){let{propertyName:e}=t;this.#e.has(e)&&this.dispatchEvent(new CustomEvent("property-changed",{detail:{propertyName:e}}))}observe(t){this.connect(),this.#e.has(t)||(this.#e.add(t),this.#i.replaceSync(`
60
60
  :root::before, :host::before {
61
61
  content: '' !important;
62
62
  position: absolute !important;
@@ -383,6 +383,11 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
383
383
  display: none !important;
384
384
  }
385
385
 
386
+ :host([suppressed]) [part='overlay'],
387
+ :host([suppressed]) ::slotted(*) {
388
+ pointer-events: none !important;
389
+ }
390
+
386
391
  [part='overlay'] {
387
392
  color: var(--vaadin-overlay-text-color, var(--vaadin-text-color));
388
393
  background: var(--vaadin-overlay-background, var(--vaadin-background-color));
@@ -468,7 +473,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
468
473
  inset: auto 0 0 !important;
469
474
  }
470
475
  }
471
- `,wu=!1;function wd(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function wc(t){let e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;let i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}function wp(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function wf(t){return t.getRootNode().activeElement===t}window.addEventListener("keydown",()=>{wu=!0},{capture:!0}),window.addEventListener("mousedown",()=>{wu=!1},{capture:!0}),/Android/u.test(navigator.userAgent),/Chrome/u.test(navigator.userAgent)&&/Google Inc/u.test(navigator.vendor),/Firefox/u.test(navigator.userAgent);let wg=/^iPad/u.test(navigator.platform)||/^Mac/u.test(navigator.platform)&&navigator.maxTouchPoints>1,wm=/^iPhone/u.test(navigator.platform)||wg,w_=/^((?!chrome|android).)*safari/iu.test(navigator.userAgent),wv=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();class wy{saveFocus(t){this.focusNode=t||wd()}restoreFocus(t){let e=this.focusNode;if(!e)return;let i={preventScroll:!!t&&t.preventScroll,focusVisible:!!t&&t.focusVisible};wd()===document.body?setTimeout(()=>e.focus(i)):e.focus(i),this.focusNode=null}}let wb=[];class ww{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var t;let e;return t=this.__trapNode,!function t(e,i){if(e.nodeType!==Node.ELEMENT_NODE||wc(e))return!1;let n=wp(e)?Number(e.getAttribute("tabindex")||0):-1,r=n>0;n>=0&&i.push(e);return[..."slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children].forEach(e=>{r=t(e,i)||r}),r}(t,e=[])?e:function t(e){let i=e.length;if(i<2)return e;let n=Math.ceil(i/2),r=t(e.slice(0,n)),o=t(e.slice(n)),a=[];for(;r.length>0&&o.length>0;)!function(t,e){let i=Math.max(t.tabIndex,0),n=Math.max(e.tabIndex,0);return 0===i||0===n?n>i:i>n}(r[0],o[0])?a.push(r.shift()):a.push(o.shift());return a.concat(r,o)}(e)}get __focusedElementIndex(){let t=this.__focusableElements;return t.indexOf(t.filter(wf).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");wb.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:wu})}releaseFocus(){this.__trapNode=null,wb.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(wb).pop()&&"Tab"===t.key){if(t.defaultPrevented)return;t.preventDefault();let e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){let e=this.__focusableElements,i=this.__focusedElementIndex,n=(e.length+i+(t?-1:1))%e.length,r=e[n];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let wS=t=>class extends t{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new ww(this),this.__focusRestorationController=new wy}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let t=wu;this.__focusRestorationController.restoreFocus({preventScroll:!t,focusVisible:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){var t;!this.focusTrap||((t=this._focusTrapRoot).checkVisibility?!t.checkVisibility({visibilityProperty:!0}):null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||wc(t))||this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let t=wd();return t===document.body||this._deepContains(t)}_deepContains(t){if(this._contentRoot.contains(t))return!0;let e=t,i=t.ownerDocument;for(;e&&e!==i&&e!==this._contentRoot;)e=e.parentNode||e.host;return e===this._contentRoot}},wk=new Set,wC=()=>[...wk].filter(t=>!t.hasAttribute("closing")),wT=(t,e=t=>!0)=>t===wC().filter(e).pop(),wM=t=>class extends t{get _last(){return wT(this)}get _isAttached(){return wk.has(this)}bringToFront(){let t,e;if(wT(this))return;let i=-1===(e=(t=wC()).indexOf(this))?[]:t.slice(e+1),n=i.filter(t=>t._hasOverlayPositionMixin&&this._deepContains(t));n.length!==i.length&&[this,...n].forEach(t=>{t.matches(":popover-open")&&(t.hidePopover(),t.showPopover()),t._removeAttachedInstance(),t._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),wC().forEach(t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")})}_exitModalState(){let t;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let e=wC();for(;(t=e.pop())&&(t===this||(t.$.overlay.style.removeProperty("pointer-events"),t.modeless)););}_appendAttachedInstance(){wk.add(this)}_removeAttachedInstance(){this._isAttached&&wk.delete(this)}};function wD(t,e,i){let n=[t];t.owner&&n.push(t.owner),"string"==typeof i?n.forEach(t=>{t.setAttribute(e,i)}):i?n.forEach(t=>{t.setAttribute(e,"")}):n.forEach(t=>{t.removeAttribute(e)})}let wI=t=>class extends wS(wM(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),wm&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(t){let e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:t}});this.dispatchEvent(e),document.body.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}setBounds(t,e=!0){let i=this.$.overlay,n={...t};e&&"absolute"!==i.style.position&&(i.style.position="absolute"),Object.keys(n).forEach(t=>{null===n[t]||isNaN(n[t])||(n[t]=`${n[t]}px`)}),Object.assign(i.style,n)}_detectIosNavbar(){if(!this.opened)return;let t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;e>t&&i>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(t,e,i,n){let r=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;let o=this._oldRenderer!==t,a=void 0!==this._oldRenderer;this._oldRenderer=t;let s=this._oldOpened!==n;this._oldOpened=n,o&&a&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),n&&t&&(o||s||r)&&this.requestContentUpdate()}_modelessChanged(t){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),t?this._exitModalState():this.opened&&this._enterModalState(),wD(this,"modeless",t)}_withBackdropChanged(t){wD(this,"with-backdrop",t)}_openedChanged(t,e){if(t){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let t=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(t),document.body.dispatchEvent(t)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else e&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return"none"!==t.getPropertyValue("display")&&e&&"none"!==e}_enqueueAnimation(t,e){let i=`__${t}Handler`,n=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",n),delete this[i])};this[i]=n,this.addEventListener("animationend",n)}_flushAnimation(t){let e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),wD(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){wD(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.$.overlay.style.removeProperty("pointer-events"),wD(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),wD(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;let e=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&(this.close(t),this.opened||this.modeless||t.preventDefault())}_keydownListener(t){if(this._last&&!t.defaultPrevented&&(this._shouldAddGlobalListeners()||t.composedPath().includes(this._focusTrapRoot))&&"Escape"===t.key){let e=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}};function wA(t){return t?new Set(t.split(" ")):new Set}function wE(t){return t?[...t].join(" "):""}function wO(t,e,i){let n=wA(t.getAttribute(e));n.add(i),t.setAttribute(e,wE(n))}let wP={start:"top",end:"bottom"},wL={start:"left",end:"right"},wR=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),wN=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(t){if(super.updated(t),t.has("positionTarget")){let e=t.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&e||this.positionTarget&&!e&&this.__margins)&&this.__resetPosition()}(t.has("opened")||t.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(e=>t.has(e))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){let e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let i,n=null,r=document.documentElement;function o(){i&&clearTimeout(i),n?.disconnect(),n=null}return!function a(s=!1,l=1){o();let{left:h,top:u,width:d,height:c}=t.getBoundingClientRect();if(s||e(),!d||!c)return;let p=Math.floor(u),f=Math.floor(r.clientWidth-(h+d)),g=Math.floor(r.clientHeight-(u+c)),m=Math.floor(h),_=!0;(n=new IntersectionObserver(function(t){let e=t[0].intersectionRatio;if(e!==l){if(!_)return a();e?a(!1,e):i=setTimeout(()=>{a(!1,1e-7)},1e3)}_=!1},{rootMargin:`${-p}px ${-f}px ${-g}px ${-m}px`,threshold:Math.max(0,Math.min(1,l))||1})).observe(t)}(!0),o}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,wR.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,wR.observe(e))),t){let t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(t){t.target instanceof Node&&this._deepContains(t.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),wD(this,"bottom-aligned",!1),wD(this,"top-aligned",!1),wD(this,"end-aligned",!1),wD(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened){this.opened=!1;return}let e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";let i=this.__isRTL,n=this.__shouldAlignStartHorizontally(t,i),r=!i&&n||i&&!n;this.style.alignItems=r?"flex-start":"flex-end";let o=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(t,o,this.noVerticalOverlap,wP,this,e),s=this.__calculatePositionInOneDimension(t,o,this.noHorizontalOverlap,wL,this,n);Object.assign(this.style,a,s),wD(this,"bottom-aligned",!e),wD(this,"top-aligned",e),wD(this,"end-aligned",!r),wD(this,"start-aligned",r)}__shouldAlignStartHorizontally(t,e){let i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let n=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,i,n,this.__margins,r,this.noHorizontalOverlap,wL)}__shouldAlignStartVertically(t){let e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let i=Math.min(window.innerHeight,document.documentElement.clientHeight),n="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,i,this.__margins,n,this.noVerticalOverlap,wP)}__shouldAlignStart(t,e,i,n,r,o,a){let s=i-t[o?a.end:a.start]-n[a.end],l=t[o?a.start:a.end]-n[a.start],h=r?s:l;return r===(h>(r?l:s)||h>e)}__adjustBottomProperty(t,e,i){let n;if(t===e.end){if(e.end===wP.end){let t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(n=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===wL.end){let t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(n=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return n}__calculatePositionInOneDimension(t,e,i,n,r,o){let a=o?n.start:n.end,s=o?n.end:n.start,l=parseFloat(r.style[a]||getComputedStyle(r)[a]),h=this.__adjustBottomProperty(a,n,l),u=e[o?n.start:n.end]-t[i===o?n.end:n.start];return{[a]:h?`${h}px`:`${l+u*(o?-1:1)}px`,[s]:""}}},wz=t=>class extends wN(wI(t)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!wp(t.composedPath()[0])&&t.preventDefault()}};class wB extends wz(xH(wo(xK(wt(xx))))){static get is(){return"vaadin-date-picker-overlay"}static get styles(){return[wl,wh]}render(){return xr`
476
+ `,wu=!1;function wd(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function wc(t){let e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;let i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}function wp(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function wf(t){return t.getRootNode().activeElement===t}window.addEventListener("keydown",()=>{wu=!0},{capture:!0}),window.addEventListener("mousedown",()=>{wu=!1},{capture:!0}),/Android/u.test(navigator.userAgent),/Chrome/u.test(navigator.userAgent)&&/Google Inc/u.test(navigator.vendor),/Firefox/u.test(navigator.userAgent);let wg=/^iPad/u.test(navigator.platform)||/^Mac/u.test(navigator.platform)&&navigator.maxTouchPoints>1,w_=/^iPhone/u.test(navigator.platform)||wg,wm=/^((?!chrome|android).)*safari/iu.test(navigator.userAgent),wv=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();class wy{saveFocus(t){this.focusNode=t||wd()}restoreFocus(t){let e=this.focusNode;if(!e)return;let i={preventScroll:!!t&&t.preventScroll,focusVisible:!!t&&t.focusVisible};wd()===document.body?setTimeout(()=>e.focus(i)):e.focus(i),this.focusNode=null}}let wb=[];class ww{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){var t;let e;return t=this.__trapNode,!function t(e,i){if(e.nodeType!==Node.ELEMENT_NODE||wc(e))return!1;let n=wp(e)?Number(e.getAttribute("tabindex")||0):-1,r=n>0;n>=0&&i.push(e);return[..."slot"===e.localName?e.assignedNodes({flatten:!0}):(e.shadowRoot||e).children].forEach(e=>{r=t(e,i)||r}),r}(t,e=[])?e:function t(e){let i=e.length;if(i<2)return e;let n=Math.ceil(i/2),r=t(e.slice(0,n)),o=t(e.slice(n)),a=[];for(;r.length>0&&o.length>0;)!function(t,e){let i=Math.max(t.tabIndex,0),n=Math.max(e.tabIndex,0);return 0===i||0===n?n>i:i>n}(r[0],o[0])?a.push(r.shift()):a.push(o.shift());return a.concat(r,o)}(e)}get __focusedElementIndex(){let t=this.__focusableElements;return t.indexOf(t.filter(wf).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,Error("The trap node should have at least one focusable descendant or be focusable itself.");wb.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus({focusVisible:wu})}releaseFocus(){this.__trapNode=null,wb.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(wb).pop()&&"Tab"===t.key){if(t.defaultPrevented)return;t.preventDefault();let e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){let e=this.__focusableElements,i=this.__focusedElementIndex,n=(e.length+i+(t?-1:1))%e.length,r=e[n];r.focus({focusVisible:!0}),"input"===r.localName&&r.select()}}let wS=t=>class extends t{static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__focusTrapController=new ww(this),this.__focusRestorationController=new wy}get _contentRoot(){return this}ready(){super.ready(),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}get _focusTrapRoot(){return this.$.overlay}_resetFocus(){if(this.focusTrap&&this.__focusTrapController.releaseFocus(),this.restoreFocusOnClose&&this._shouldRestoreFocus()){let t=wu;this.__focusRestorationController.restoreFocus({preventScroll:!t,focusVisible:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){var t;!this.focusTrap||((t=this._focusTrapRoot).checkVisibility?!t.checkVisibility({visibilityProperty:!0}):null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||wc(t))||this.__focusTrapController.trapFocus(this._focusTrapRoot)}_shouldRestoreFocus(){let t=wd();return t===document.body||this._deepContains(t)}_deepContains(t){if(this._contentRoot.contains(t))return!0;let e=t,i=t.ownerDocument;for(;e&&e!==i&&e!==this._contentRoot;)e=e.parentNode||e.host;return e===this._contentRoot}},wk=new Set,wC=()=>[...wk].filter(t=>!t.hasAttribute("closing")),wT=(t,e=t=>!0)=>t===wC().filter(e).pop(),wM=t=>class extends t{get _last(){return wT(this)}get _isAttached(){return wk.has(this)}bringToFront(){let t,e;if(wT(this))return;let i=-1===(e=(t=wC()).indexOf(this))?[]:t.slice(e+1),n=i.filter(t=>t._hasOverlayPositionMixin&&this._deepContains(t));n.length!==i.length&&[this,...n].forEach(t=>{t.matches(":popover-open")&&(t.hidePopover(),t.showPopover()),t._removeAttachedInstance(),t._appendAttachedInstance()})}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),wC().forEach(t=>{t!==this&&t.toggleAttribute("suppressed",!0)})}_exitModalState(){let t;void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);let e=wC();for(;(t=e.pop())&&(t===this||(t.toggleAttribute("suppressed",!1),t.modeless)););}_appendAttachedInstance(){wk.add(this)}_removeAttachedInstance(){this._isAttached&&wk.delete(this)}};function wD(t,e,i){let n=[t];t.owner&&n.push(t.owner),"string"==typeof i?n.forEach(t=>{t.setAttribute(e,i)}):i?n.forEach(t=>{t.setAttribute(e,"")}):n.forEach(t=>{t.removeAttribute(e)})}let wI=t=>class extends wS(wM(t)){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0,sync:!0},owner:{type:Object,sync:!0},model:{type:Object,sync:!0},renderer:{type:Object,sync:!0},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged",sync:!0},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged",sync:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_withBackdropChanged",sync:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}get _rendererRoot(){return this}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),w_&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}firstUpdated(){super.firstUpdated(),this.popover="manual",this.addEventListener("click",()=>{}),this.$.backdrop&&this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}),this.addEventListener("animationcancel",()=>{this._flushAnimation("opening"),this._flushAnimation("closing")})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener)),this.opened&&this._attachOverlay()}disconnectedCallback(){super.disconnectedCallback(),this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this._rendererRoot,this.owner,this.model)}close(t){let e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{overlay:this,sourceEvent:t}});this.dispatchEvent(e),document.body.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}setBounds(t,e=!0){let i=this.$.overlay,n={...t};e&&"absolute"!==i.style.position&&(i.style.position="absolute"),Object.keys(n).forEach(t=>{null===n[t]||isNaN(n[t])||(n[t]=`${n[t]}px`)}),Object.assign(i.style,n)}_detectIosNavbar(){if(!this.opened)return;let t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;e>t&&i>t?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-t}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0px")}_shouldAddGlobalListeners(){return!this.modeless}_addGlobalListeners(){this.__hasGlobalListeners||(this.__hasGlobalListeners=!0,document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0))}_removeGlobalListeners(){this.__hasGlobalListeners&&(this.__hasGlobalListeners=!1,document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0))}_rendererOrDataChanged(t,e,i,n){let r=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;let o=this._oldRenderer!==t,a=void 0!==this._oldRenderer;this._oldRenderer=t;let s=this._oldOpened!==n;this._oldOpened=n,o&&a&&(this._rendererRoot.innerHTML="",delete this._rendererRoot._$litPart$),n&&t&&(o||s||r)&&this.requestContentUpdate()}_modelessChanged(t){this.opened&&(this._shouldAddGlobalListeners()?this._addGlobalListeners():this._removeGlobalListeners()),t?this._exitModalState():this.opened&&this._enterModalState(),wD(this,"modeless",t)}_withBackdropChanged(t){wD(this,"with-backdrop",t)}_openedChanged(t,e){if(t){if(!this.isConnected){this.opened=!1;return}this._saveFocus(),this._animatedOpening(),this.__scheduledOpen=requestAnimationFrame(()=>{setTimeout(()=>{this._trapFocus();let t=new CustomEvent("vaadin-overlay-open",{detail:{overlay:this},bubbles:!0});this.dispatchEvent(t),document.body.dispatchEvent(t)})}),document.addEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._addGlobalListeners()}else e&&(this.__scheduledOpen&&(cancelAnimationFrame(this.__scheduledOpen),this.__scheduledOpen=null),this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this._shouldAddGlobalListeners()&&this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){let t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return"none"!==t.getPropertyValue("display")&&e&&"none"!==e}_enqueueAnimation(t,e){let i=`__${t}Handler`,n=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",n),delete this[i])};this[i]=n,this.addEventListener("animationend",n)}_flushAnimation(t){let e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this._isAttached&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this._appendAttachedInstance(),this.bringToFront(),this.modeless||this._enterModalState(),wD(this,"opening",!0),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this.matches(":popover-open")||this.showPopover()}_finishOpening(){wD(this,"opening",!1)}_finishClosing(){this._detachOverlay(),this._removeAttachedInstance(),this.toggleAttribute("suppressed",!1),wD(this,"closing",!1),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._isAttached&&(this._exitModalState(),wD(this,"closing",!0),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this.hidePopover()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(t))return;let e=new CustomEvent("vaadin-overlay-outside-click",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&(this.close(t),this.opened||this.modeless||t.preventDefault())}_keydownListener(t){if(this._last&&!t.defaultPrevented&&(this._shouldAddGlobalListeners()||t.composedPath().includes(this._focusTrapRoot))&&"Escape"===t.key){let e=new CustomEvent("vaadin-overlay-escape-press",{cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}};function wA(t){return t?new Set(t.split(" ")):new Set}function wE(t){return t?[...t].join(" "):""}function wO(t,e,i){let n=wA(t.getAttribute(e));n.add(i),t.setAttribute(e,wE(n))}let wP={start:"top",end:"bottom"},wL={start:"left",end:"right"},wR=new ResizeObserver(t=>{setTimeout(()=>{t.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),wN=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}constructor(){super(),this._hasOverlayPositionMixin=!0,this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}updated(t){if(super.updated(t),t.has("positionTarget")){let e=t.get("positionTarget");this.__oldContentWidth=void 0,this.__oldContentHeight=void 0,(!this.positionTarget&&e||this.positionTarget&&!e&&this.__margins)&&this.__resetPosition()}(t.has("opened")||t.has("positionTarget"))&&this.__updatePositionSettings(this.opened,this.positionTarget),["horizontalAlign","verticalAlign","noHorizontalOverlap","noVerticalOverlap","requiredVerticalSpace"].some(e=>t.has(e))&&this._updatePosition()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=function(t){let e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t),t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(t=>{t.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=function(t,e){let i,n=null,r=document.documentElement;function o(){i&&clearTimeout(i),n?.disconnect(),n=null}return!function a(s=!1,l=1){o();let{left:h,top:u,width:d,height:c}=t.getBoundingClientRect();if(s||e(),!d||!c)return;let p=Math.floor(u),f=Math.floor(r.clientWidth-(h+d)),g=Math.floor(r.clientHeight-(u+c)),_=Math.floor(h),m=!0;(n=new IntersectionObserver(function(t){let e=t[0].intersectionRatio;if(e!==l){if(!m)return a();e?a(!1,e):i=setTimeout(()=>{a(!1,1e-7)},1e3)}m=!1},{rootMargin:`${-p}px ${-f}px ${-g}px ${-_}px`,threshold:Math.max(0,Math.min(1,l))||1})).observe(t)}(!0),o}(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(t=>{t.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__updatePositionSettings(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,wR.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,wR.observe(e))),t){let t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(e=>{this.__margins[e]=parseInt(t[e],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__onScroll(t){t.target instanceof Node&&this._deepContains(t.target)||this._updatePosition()}__resetPosition(){this.__margins=null,Object.assign(this.style,{justifyContent:"",alignItems:"",top:"",bottom:"",left:"",right:""}),wD(this,"bottom-aligned",!1),wD(this,"top-aligned",!1),wD(this,"end-aligned",!1),wD(this,"start-aligned",!1)}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;let t=this.positionTarget.getBoundingClientRect();if(0===t.width&&0===t.height&&this.opened){this.opened=!1;return}let e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";let i=this.__isRTL,n=this.__shouldAlignStartHorizontally(t,i),r=!i&&n||i&&!n;this.style.alignItems=r?"flex-start":"flex-end";let o=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(t,o,this.noVerticalOverlap,wP,this,e),s=this.__calculatePositionInOneDimension(t,o,this.noHorizontalOverlap,wL,this,n);Object.assign(this.style,a,s),wD(this,"bottom-aligned",!e),wD(this,"top-aligned",e),wD(this,"end-aligned",!r),wD(this,"start-aligned",r)}__shouldAlignStartHorizontally(t,e){let i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;let n=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign;return this.__shouldAlignStart(t,i,n,this.__margins,r,this.noHorizontalOverlap,wL)}__shouldAlignStartVertically(t){let e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;let i=Math.min(window.innerHeight,document.documentElement.clientHeight),n="top"===this.verticalAlign;return this.__shouldAlignStart(t,e,i,this.__margins,n,this.noVerticalOverlap,wP)}__shouldAlignStart(t,e,i,n,r,o,a){let s=i-t[o?a.end:a.start]-n[a.end],l=t[o?a.start:a.end]-n[a.start],h=r?s:l;return r===(h>(r?l:s)||h>e)}__adjustBottomProperty(t,e,i){let n;if(t===e.end){if(e.end===wP.end){let t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(n=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===wL.end){let t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(n=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return n}__calculatePositionInOneDimension(t,e,i,n,r,o){let a=o?n.start:n.end,s=o?n.end:n.start,l=parseFloat(r.style[a]||getComputedStyle(r)[a]),h=this.__adjustBottomProperty(a,n,l),u=e[o?n.start:n.end]-t[i===o?n.end:n.start];return{[a]:h?`${h}px`:`${l+u*(o?-1:1)}px`,[s]:""}}},wz=t=>class extends wN(wI(t)){_shouldCloseOnOutsideClick(t){return!t.composedPath().includes(this.positionTarget)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!wp(t.composedPath()[0])&&t.preventDefault()}};class wB extends wz(xH(wo(xK(wt(xx))))){static get is(){return"vaadin-date-picker-overlay"}static get styles(){return[wl,wh]}render(){return xr`
472
477
  <div id="backdrop" part="backdrop" ?hidden="${!this.withBackdrop}"></div>
473
478
  <div part="overlay" id="overlay">
474
479
  <div part="content" id="content">
@@ -572,8 +577,8 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
572
577
  opacity: 1;
573
578
  }
574
579
  }
575
- `,w9="string"==typeof document.head.style.touchAction,St="__polymerGestures",Se="__polymerGesturesHandled",Si="__polymerGesturesTouchAction",Sn=["mousedown","mousemove","mouseup","click"],Sr=[0,1,4,2],So=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Sa(t){return Sn.indexOf(t)>-1}let Ss=!1;try{let t=Object.defineProperty({},"passive",{get(){Ss=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}let Sl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Sh={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Su(t){let e=t.type;if(!Sa(e))return!1;if("mousemove"===e){let e=t.buttons??1;return t instanceof window.MouseEvent&&!So&&(e=Sr[t.which]||0),!!(1&e)}return 0===(t.button??0)}let Sd={x:0,y:0,id:-1,scrollDecided:!1};function Sc(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function Sp(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}let Sf=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Sg={},Sm=[];function S_(t){let e=Sf(t);return e.length>0?e[0]:t.target}function Sv(t){let e=t.type,i=t.currentTarget[St];if(!i)return;let n=i[e];if(!n)return;if(!t[Se]&&(t[Se]={},e.startsWith("touch"))){let i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Sd.id=i.identifier),Sd.id!==i.identifier)return;w9||"touchstart"!==e&&"touchmove"!==e||function(t){let e=t.changedTouches[0],i=t.type;if("touchstart"===i)Sd.x=e.clientX,Sd.y=e.clientY,Sd.scrollDecided=!1;else if("touchmove"===i){if(Sd.scrollDecided)return;Sd.scrollDecided=!0;let i=function(t){let e="auto",i=Sf(t);for(let t=0,n;t<i.length;t++)if((n=i[t])[Si]){e=n[Si];break}return e}(t),n=!1,r=Math.abs(Sd.x-e.clientX),o=Math.abs(Sd.y-e.clientY);t.cancelable&&("none"===i?n=!0:"pan-x"===i?n=o>r:"pan-y"===i&&(n=r>o)),n?t.preventDefault():Sw("track")}}(t)}let r=t[Se];if(!r.skip){for(let e=0,i;e<Sm.length;e++)n[(i=Sm[e]).name]&&!r[i.name]&&i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset&&i.reset();for(let i=0,o;i<Sm.length;i++)n[(o=Sm[i]).name]&&!r[o.name]&&(r[o.name]=!0,o[e](t))}}function Sy(t,e,i){return!!Sg[e]&&(function(t,e,i){var n,r;let o=Sg[e],a=o.deps,s=o.name,l=t[St];l||(t[St]=l={});for(let e=0,i,n;e<a.length;e++)(i=a[e],!(Sl&&Sa(i))||"click"===i)&&((n=l[i])||(l[i]=n={_count:0}),0===n._count&&t.addEventListener(i,Sv,void Sa(i)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,i),o.touchAction&&(n=t,r=o.touchAction,w9&&n instanceof HTMLElement&&wQ.run(()=>{n.style.touchAction=r}),n[Si]=r)}(t,e,i),!0)}function Sb(t){Sm.push(t),t.emits.forEach(e=>{Sg[e]=t})}function Sx(t,e,i){let n=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=i,t.dispatchEvent(n),n.defaultPrevented){let t=i.preventer||i.sourceEvent;t?.preventDefault&&t.preventDefault()}}function Sw(t){let e=function(t){for(let e=0,i;e<Sm.length;e++){i=Sm[e];for(let e=0;e<i.emits.length;e++)if(i.emits[e]===t)return i}return null}(t);e.info&&(e.info.prevent=!0)}function SS(t,e,i,n){e&&Sx(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:t=>Sw(t)})}function Sk(t,e,i){if(t.prevent)return!1;if(t.started)return!0;let n=Math.abs(t.x-e),r=Math.abs(t.y-i);return n>=5||r>=5}function SC(t,e,i){if(!e)return;let n=t.moves[t.moves.length-2],r=t.moves[t.moves.length-1],o=r.x-t.x,a=r.y-t.y,s,l=0;n&&(s=r.x-n.x,l=r.y-n.y),Sx(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:a,ddx:s,ddy:l,sourceEvent:i,hover:()=>(function(t,e){let i=document.elementFromPoint(t,e),n=i;for(;n?.shadowRoot&&!window.ShadyDOM&&n!==(n=n.shadowRoot.elementFromPoint(t,e));)n&&(i=n);return i})(i.clientX,i.clientY)})}function ST(t,e,i){let n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y),o=S_(i||e);!(!o||Sh[o.localName]&&o.hasAttribute("disabled"))&&(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;let e=S_(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let i=e.getBoundingClientRect(),n=t.pageX,r=t.pageY;return!(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom)}return!1}(e))&&!t.prevent&&Sx(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}Sb({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Sp(this.info)},mousedown(t){if(!Su(t))return;let e=S_(t),i=this;Sc(this.info,t=>{Su(t)||(SS("up",e,t),Sp(i.info))},t=>{Su(t)&&SS("up",e,t),Sp(i.info)}),SS("down",e,t)},touchstart(t){SS("down",S_(t),t.changedTouches[0],t)},touchend(t){SS("up",S_(t),t.changedTouches[0],t)}}),Sb({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Sp(this.info)},mousedown(t){if(!Su(t))return;let e=S_(t),i=this,n=t=>{let n=t.clientX,r=t.clientY;Sk(i.info,n,r)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&Sw("tap"),i.info.addMove({x:n,y:r}),Su(t)||(i.info.state="end",Sp(i.info)),e&&SC(i.info,e,t),i.info.started=!0)};Sc(this.info,n,t=>{i.info.started&&n(t),Sp(i.info)}),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){let e=S_(t),i=t.changedTouches[0],n=i.clientX,r=i.clientY;Sk(this.info,n,r)&&("start"===this.info.state&&Sw("tap"),this.info.addMove({x:n,y:r}),SC(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){let e=S_(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),SC(this.info,e,i))}}),Sb({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(t){Su(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Su(t)&&ST(this.info,t)},touchstart(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){ST(this.info,t.changedTouches[0],t)}});let SM=x$(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),SD=x$(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}),SI=t=>class extends SM(SD(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Sy(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),Sy(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}},SA=x$(t=>class extends t{get _keyboardActive(){return wu}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(t){super.focus(t),t?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}}),SE=t=>class extends SM(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged",sync:!0},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),!this.__shouldAllowFocusWhenDisabled()&&(t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.setAttribute("tabindex","-1")):e&&(void 0!==this._lastTabIndex?this.setAttribute("tabindex",this._lastTabIndex):this.tabindex=void 0))}_tabindexChanged(t){!this.__shouldAllowFocusWhenDisabled()&&this.disabled&&-1!==t&&(this._lastTabIndex=t,this.setAttribute("tabindex","-1"))}focus(t){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(t)}__shouldAllowFocusWhenDisabled(){return!1}},SO=["mousedown","mouseup","click","dblclick","keypress","keydown","keyup"],SP=t=>class extends SI(SE(SA(t))){constructor(){super(),this.__onInteractionEvent=this.__onInteractionEvent.bind(this),SO.forEach(t=>{this.addEventListener(t,this.__onInteractionEvent,!0)}),this.tabindex=0}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button"),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-button-disabled-pointer-events","auto")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}__onInteractionEvent(t){this.__shouldSuppressInteractionEvent(t)&&t.stopImmediatePropagation()}__shouldSuppressInteractionEvent(t){return this.disabled}};class SL extends SP(w5(wo(xK(wt(xx))))){static get is(){return"vaadin-button"}static get styles(){return w8}static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}render(){return xr`
576
- <div class="vaadin-button-container">
580
+ `,w9="string"==typeof document.head.style.touchAction,St="__polymerGestures",Se="__polymerGesturesHandled",Si="__polymerGesturesTouchAction",Sn=["mousedown","mousemove","mouseup","click"],Sr=[0,1,4,2],So=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Sa(t){return Sn.indexOf(t)>-1}let Ss=!1;try{let t=Object.defineProperty({},"passive",{get(){Ss=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}let Sl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Sh={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Su(t){let e=t.type;if(!Sa(e))return!1;if("mousemove"===e){let e=t.buttons??1;return t instanceof window.MouseEvent&&!So&&(e=Sr[t.which]||0),!!(1&e)}return 0===(t.button??0)}let Sd={x:0,y:0,id:-1,scrollDecided:!1};function Sc(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function Sp(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}let Sf=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Sg={},S_=[];function Sm(t){let e=Sf(t);return e.length>0?e[0]:t.target}function Sv(t){let e=t.type,i=t.currentTarget[St];if(!i)return;let n=i[e];if(!n)return;if(!t[Se]&&(t[Se]={},e.startsWith("touch"))){let i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Sd.id=i.identifier),Sd.id!==i.identifier)return;w9||"touchstart"!==e&&"touchmove"!==e||function(t){let e=t.changedTouches[0],i=t.type;if("touchstart"===i)Sd.x=e.clientX,Sd.y=e.clientY,Sd.scrollDecided=!1;else if("touchmove"===i){if(Sd.scrollDecided)return;Sd.scrollDecided=!0;let i=function(t){let e="auto",i=Sf(t);for(let t=0,n;t<i.length;t++)if((n=i[t])[Si]){e=n[Si];break}return e}(t),n=!1,r=Math.abs(Sd.x-e.clientX),o=Math.abs(Sd.y-e.clientY);t.cancelable&&("none"===i?n=!0:"pan-x"===i?n=o>r:"pan-y"===i&&(n=r>o)),n?t.preventDefault():Sw("track")}}(t)}let r=t[Se];if(!r.skip){for(let e=0,i;e<S_.length;e++)n[(i=S_[e]).name]&&!r[i.name]&&i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset&&i.reset();for(let i=0,o;i<S_.length;i++)n[(o=S_[i]).name]&&!r[o.name]&&(r[o.name]=!0,o[e](t))}}function Sy(t,e,i){return!!Sg[e]&&(function(t,e,i){var n,r;let o=Sg[e],a=o.deps,s=o.name,l=t[St];l||(t[St]=l={});for(let e=0,i,n;e<a.length;e++)(i=a[e],!(Sl&&Sa(i))||"click"===i)&&((n=l[i])||(l[i]=n={_count:0}),0===n._count&&t.addEventListener(i,Sv,void Sa(i)),n[s]=(n[s]||0)+1,n._count=(n._count||0)+1);t.addEventListener(e,i),o.touchAction&&(n=t,r=o.touchAction,w9&&n instanceof HTMLElement&&wQ.run(()=>{n.style.touchAction=r}),n[Si]=r)}(t,e,i),!0)}function Sb(t){S_.push(t),t.emits.forEach(e=>{Sg[e]=t})}function Sx(t,e,i){let n=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(n.detail=i,t.dispatchEvent(n),n.defaultPrevented){let t=i.preventer||i.sourceEvent;t?.preventDefault&&t.preventDefault()}}function Sw(t){let e=function(t){for(let e=0,i;e<S_.length;e++){i=S_[e];for(let e=0;e<i.emits.length;e++)if(i.emits[e]===t)return i}return null}(t);e.info&&(e.info.prevent=!0)}function SS(t,e,i,n){e&&Sx(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:n,prevent:t=>Sw(t)})}function Sk(t,e,i){if(t.prevent)return!1;if(t.started)return!0;let n=Math.abs(t.x-e),r=Math.abs(t.y-i);return n>=5||r>=5}function SC(t,e,i){if(!e)return;let n=t.moves[t.moves.length-2],r=t.moves[t.moves.length-1],o=r.x-t.x,a=r.y-t.y,s,l=0;n&&(s=r.x-n.x,l=r.y-n.y),Sx(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:a,ddx:s,ddy:l,sourceEvent:i,hover:()=>(function(t,e){let i=document.elementFromPoint(t,e),n=i;for(;n?.shadowRoot&&!window.ShadyDOM&&n!==(n=n.shadowRoot.elementFromPoint(t,e));)n&&(i=n);return i})(i.clientX,i.clientY)})}function ST(t,e,i){let n=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y),o=Sm(i||e);!(!o||Sh[o.localName]&&o.hasAttribute("disabled"))&&(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;let e=Sm(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;let i=e.getBoundingClientRect(),n=t.pageX,r=t.pageY;return!(n>=i.left&&n<=i.right&&r>=i.top&&r<=i.bottom)}return!1}(e))&&!t.prevent&&Sx(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}Sb({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Sp(this.info)},mousedown(t){if(!Su(t))return;let e=Sm(t),i=this;Sc(this.info,t=>{Su(t)||(SS("up",e,t),Sp(i.info))},t=>{Su(t)&&SS("up",e,t),Sp(i.info)}),SS("down",e,t)},touchstart(t){SS("down",Sm(t),t.changedTouches[0],t)},touchend(t){SS("up",Sm(t),t.changedTouches[0],t)}}),Sb({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Sp(this.info)},mousedown(t){if(!Su(t))return;let e=Sm(t),i=this,n=t=>{let n=t.clientX,r=t.clientY;Sk(i.info,n,r)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&Sw("tap"),i.info.addMove({x:n,y:r}),Su(t)||(i.info.state="end",Sp(i.info)),e&&SC(i.info,e,t),i.info.started=!0)};Sc(this.info,n,t=>{i.info.started&&n(t),Sp(i.info)}),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){let e=Sm(t),i=t.changedTouches[0],n=i.clientX,r=i.clientY;Sk(this.info,n,r)&&("start"===this.info.state&&Sw("tap"),this.info.addMove({x:n,y:r}),SC(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){let e=Sm(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),SC(this.info,e,i))}}),Sb({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:0/0,y:0/0,prevent:!1},reset(){this.info.x=0/0,this.info.y=0/0,this.info.prevent=!1},mousedown(t){Su(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Su(t)&&ST(this.info,t)},touchstart(t){let e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){ST(this.info,t.changedTouches[0],t)}});let SM=x$(t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}),SD=x$(t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",t=>{this._onKeyDown(t)}),this.addEventListener("keyup",t=>{this._onKeyUp(t)})}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}),SI=t=>class extends SM(SD(t)){get _activeKeys(){return[" "]}ready(){super.ready(),Sy(this,"down",t=>{this._shouldSetActive(t)&&this._setActive(!0)}),Sy(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}},SA=x$(t=>class extends t{get _keyboardActive(){return wu}ready(){this.addEventListener("focusin",t=>{this._shouldSetFocus(t)&&this._setFocused(!0)}),this.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}focus(t){super.focus(t),t?.focusVisible!==!1&&this.setAttribute("focus-ring","")}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}}),SE=t=>class extends SM(t){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged",sync:!0},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),!this.__shouldAllowFocusWhenDisabled()&&(t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.setAttribute("tabindex","-1")):e&&(void 0!==this._lastTabIndex?this.setAttribute("tabindex",this._lastTabIndex):this.tabindex=void 0))}_tabindexChanged(t){!this.__shouldAllowFocusWhenDisabled()&&this.disabled&&-1!==t&&(this._lastTabIndex=t,this.setAttribute("tabindex","-1"))}focus(t){(!this.disabled||this.__shouldAllowFocusWhenDisabled())&&super.focus(t)}__shouldAllowFocusWhenDisabled(){return!1}},SO=["mousedown","mouseup","click","dblclick","keypress","keydown","keyup"],SP=t=>class extends SI(SE(SA(t))){constructor(){super(),this.__onInteractionEvent=this.__onInteractionEvent.bind(this),SO.forEach(t=>{this.addEventListener(t,this.__onInteractionEvent,!0)}),this.tabindex=0}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button"),this.__shouldAllowFocusWhenDisabled()&&this.style.setProperty("--_vaadin-button-disabled-pointer-events","auto")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}__onInteractionEvent(t){this.__shouldSuppressInteractionEvent(t)&&t.stopImmediatePropagation()}__shouldSuppressInteractionEvent(t){return this.disabled}};class SL extends SP(w5(wo(xK(wt(xx))))){static get is(){return"vaadin-button"}static get styles(){return w8}static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}render(){return xr`
581
+ <div class="vaadin-button-container" role="presentation">
577
582
  <span part="prefix" aria-hidden="true">
578
583
  <slot name="prefix"></slot>
579
584
  </span>
@@ -687,6 +692,9 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
687
692
  :host {
688
693
  display: block;
689
694
  padding: var(--vaadin-date-picker-month-padding, var(--vaadin-padding-s));
695
+ -webkit-tap-highlight-color: transparent;
696
+ -webkit-user-select: none;
697
+ user-select: none;
690
698
  }
691
699
 
692
700
  [part='month-header'] {
@@ -999,7 +1007,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
999
1007
  --vaadin-input-field-value-color: var(--vaadin-input-field-autofill-color, black) !important;
1000
1008
  --vaadin-input-field-button-text-color: var(--vaadin-input-field-autofill-color, black) !important;
1001
1009
  }
1002
- `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=w0.debounce(this._preventInputDebouncer,wq.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){let e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){let e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}};class kg extends w6{constructor(t,e,i={}){const{uniqueIdPrefix:n}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:n})}}class km{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",t=>{this.__initLabel(t.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){let t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}let k_=bO`
1010
+ `]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&t.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=w0.debounce(this._preventInputDebouncer,wq.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){let e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){let e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}};class kg extends w6{constructor(t,e,i={}){const{uniqueIdPrefix:n}=i;super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0,uniqueIdPrefix:n})}}class k_{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",t=>{this.__initLabel(t.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){let t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}let km=bO`
1003
1011
  [part$='button'] {
1004
1012
  color: var(--vaadin-input-field-button-text-color, var(--vaadin-text-color-secondary));
1005
1013
  cursor: var(--vaadin-clickable-cursor);
@@ -1249,7 +1257,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1249
1257
  background: CanvasText;
1250
1258
  }
1251
1259
  }
1252
- `,k_],ky=bO`
1260
+ `,km],ky=bO`
1253
1261
  :host([opened]) {
1254
1262
  pointer-events: auto;
1255
1263
  }
@@ -1274,7 +1282,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1274
1282
  :host([readonly]) [part~='toggle-button'] {
1275
1283
  display: none;
1276
1284
  }
1277
- `,kb=new WeakMap,kx=new WeakMap,kw={},kS=0,kk=t=>t?.nodeType===Node.ELEMENT_NODE,kC=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};function kT(t,...e){let i=t=>t&&"object"==typeof t&&!Array.isArray(t),n=(t,e)=>{i(e)&&i(t)&&Object.keys(e).forEach(r=>{let o=e[r];i(o)?(t[r]||(t[r]={}),n(t[r],o)):Array.isArray(o)?t[r]=[...o]:null!=o&&(t[r]=o)})};return e.forEach(e=>{n(t,e)}),t}HTMLElement.prototype;let kM=t=>class extends t{static get properties(){return{i18n:{type:Object},__effectiveI18n:{type:Object,sync:!0}}}static get defaultI18n(){return{}}constructor(){super(),this.i18n=kT({},this.constructor.defaultI18n)}get i18n(){return this.__customI18n}set i18n(t){t!==this.__customI18n&&(this.__customI18n=t,this.__effectiveI18n=kT({},this.constructor.defaultI18n,this.__customI18n))}};class kD{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}let kI=Object.freeze({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){let e=String(t.year).replace(/\d+/u,t=>"0000".substr(t.length)+t);return[t.month+1,t.day,e].join("/")},parseDate(t){let e=t.split("/"),i=new Date,n,r=i.getMonth(),o=i.getFullYear();if(3===e.length?(r=parseInt(e[0])-1,n=parseInt(e[1]),o=parseInt(e[2]),e[2].length<3&&o>=0&&(o=function(t,e,i=0,n=1){if(e>99)throw Error("The provided year cannot have more than 2 digits.");if(e<0)throw Error("The provided year cannot be negative.");let r=e+100*Math.floor(t.getFullYear()/100);return t<new Date(r-50,i,n)?r-=100:t>new Date(r+50,i,n)&&(r+=100),r}(this.referenceDate?SY(this.referenceDate):new Date,o,r,n))):2===e.length?(r=parseInt(e[0])-1,n=parseInt(e[1])):1===e.length&&(n=parseInt(e[0])),void 0!==n)return{day:n,month:r,year:o}},formatTitle:(t,e)=>`${t} ${e}`}),kA=t=>class extends kM(S5(kp(SD(t)))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:{type:String},opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, __effectiveI18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:wm},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, __effectiveI18n)","_focusedDateChanged(_focusedDate, __effectiveI18n)","__updateOverlayContent(_overlayContent, __effectiveI18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get defaultI18n(){return kI}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}get i18n(){return super.i18n}set i18n(t){super.i18n=t}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t;let e=this.__parseDate(t);this.__setEnteredDate(e)}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!wu&&t.target.blur()}_onBlur(t){super._onBlur(t),!this.opened&&(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new S0(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new kD(this)),this._overlayElement=this.$.overlay}updated(t){super.updated(t),(t.has("showWeekNumbers")||t.has("__effectiveI18n"))&&this.toggleAttribute("week-numbers",this.showWeekNumbers&&1===this.__effectiveI18n.firstDayOfWeek)}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}focus(t){this._noInput&&!wu?this.open():super.focus(t)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}__ensureContent(){if(this._overlayContent)return;let t=document.createElement("vaadin-date-picker-overlay-content");t.setAttribute("slot","overlay"),this.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",t=>{this.__commitDate(t.detail.date),this._close()}),t.addEventListener("date-selected",t=>{this.__commitDate(t.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",t=>{this._focusedDate=t.detail.value}),t.addEventListener("click",t=>t.stopPropagation())}__parseDate(t){if(!this.__effectiveI18n.parseDate)return;let e=this.__effectiveI18n.parseDate(t);if(e&&(e=SY(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime()))return e}__formatDate(t){if(this.__effectiveI18n.formatDate)return this.__effectiveI18n.formatDate(SB(t))}checkValidity(){let t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||SV(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled),n=!0;return this.inputElement&&this.inputElement.checkValidity&&(n=this.inputElement.checkValidity()),e&&i&&n}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldKeepFocusOnClearMousedown(){return!!this.opened||super._shouldKeepFocusOnClearMousedown()}_shouldRemoveFocus(t){let{relatedTarget:e}=t;return!(!this.opened||null===e||e===document.body||this.contains(e)||this._overlayContent.contains(e))||!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){let t=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}_isNoInput(t,e,i,n,r,o){return!t||e&&(!o||r)||i&&r||!n.parseDate}_formatISO(t){return t instanceof Date?S$({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){t&&this.__ensureContent(),this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0!==t&&void 0!==e&&(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}_valueChanged(t,e){let i=SY(t);if(t&&!i){this.value=e;return}t?Sz(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,e,i,n,r,o,a,s,l,h){t&&(t.i18n=e,t.label=i,t.minDate=n,t.maxDate=r,t.focusedDate=o,t.selectedDate=a,t.showWeekNumbers=s,t.isDateDisabled=l,t.enteredDate=h)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(t){t.stopPropagation(),this._focusedDate=this._selectedDate,this._applyInputValue(this._selectedDate),this._close()}_onOverlayOpened(){let t=this._overlayContent;t.reset();let e=this._getInitialPosition();t.initialPosition=e;let i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();let n=this.inputElement;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());let r=this._noInput?t:this;this.__showOthers=((t,e=document.body,i="data-aria-hidden")=>{var n,r;let o,a,s,l,h,u,d,c=Array.from(Array.isArray(t)?t:[t]);return e&&c.push(...Array.from(e.querySelectorAll("[aria-live]"))),n="aria-hidden",r=Array.isArray(c)?c:[c],o=kk(e)?r.map(t=>{if(!kk(t))return kC(t,"is not a valid element"),null;let i=t;for(;i&&i!==e;){if(e.contains(i))return t;i=i.getRootNode().host}return kC(t,"is not contained inside",e),null}).filter(t=>!!t):(kC(e,"is not a valid element"),[]),kw[i]||(kw[i]=new WeakMap),a=kw[i],s=[],l=new Set,h=new Set(o),u=t=>{if(!t||l.has(t))return;l.add(t);let e=t.assignedSlot;e&&u(e),u(t.parentNode||t.host)},o.forEach(u),(d=t=>{if(!t||h.has(t))return;let e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach(t=>{if(!["template","script","style"].includes(t.localName))if(l.has(t))d(t);else{let e=t.getAttribute(n),r=null!==e&&"false"!==e,o=(kb.get(t)||0)+1,l=(a.get(t)||0)+1;kb.set(t,o),a.set(t,l),s.push(t),1===o&&r&&kx.set(t,!0),1===l&&t.setAttribute(i,"true"),r||t.setAttribute(n,"true")}})})(e),l.clear(),kS+=1,()=>{s.forEach(t=>{let e=kb.get(t)-1,r=a.get(t)-1;kb.set(t,e),a.set(t,r),e||(kx.has(t)?kx.delete(t):t.removeAttribute(n)),r||t.removeAttribute(i)}),(kS-=1)||(kb=new WeakMap,kb=new WeakMap,kx=new WeakMap,kw={})}})(r)}_getInitialPosition(){let t=SY(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||SV(e,this._minDate,this._maxDate,this.isDateDisabled)?e:this._minDate||this._maxDate?SF(e,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.__effectiveI18n.parseDate){let t=this._inputElementValue||"",e=this.__parseDate(t);e?this.__commitDate(e):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__commitParsedOrFocusedDate(),this.inputElement&&this.inputElement.selectionStart&&(this.inputElement.selectionStart=this.inputElement.selectionEnd),this.value||this._keyboardActive||this._requestValidation()}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this.inputElement&&this.inputElement.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){!t.composedPath().includes(this._overlayElement)&&(this._isClearButton(t)||this._onHostClick(t))}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===["Tab","Escape"].indexOf(t.key)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){t.composedPath().includes(this._overlayContent)||(this.opened?this.close():this.__commitParsedOrFocusedDate())}_onEscape(t){if(this.opened)return void this._onOverlayEscapePress(t);if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open();let t=this.__parseDate(this._inputElementValue||"");t&&(this._ignoreFocusedDateChange=!0,Sz(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(t)}__setEnteredDate(t){t?Sz(this.__enteredDate,t)||(this.__enteredDate=t):this.__enteredDate=null}__computeMinOrMaxDate(t){return SY(t)}};class kE extends kA(kf(wo(w5(xK(wt(xx)))))){static get is(){return"vaadin-date-picker"}static get styles(){return[kv,ky]}static get properties(){return{_positionTarget:{type:Object,sync:!0}}}get clearElement(){return this.$.clearButton}render(){return xr`
1285
+ `,kb=new WeakMap,kx=new WeakMap,kw={},kS=0,kk=t=>t?.nodeType===Node.ELEMENT_NODE,kC=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};HTMLElement.prototype;let kT=["__proto__","constructor","prototype"],kM=t=>{if(!t||"object"!=typeof t)return!1;let e=Object.getPrototypeOf(t);return e===Object.prototype||null===e};function kD(t,...e){return e.forEach(e=>(function t(e,i,n){return kM(e)&&kM(i)&&Object.keys(i).forEach(r=>{if(kT.includes(r))return;let o=i[r];if(kM(o)){if(!Object.hasOwn(e,r)||!kM(e[r])){if(n&&Object.hasOwn(e,r)&&e[r])return;e[r]={}}t(e[r],o,n)}else n&&Array.isArray(o)?e[r]=[...o]:n&&null==o||(e[r]=o)}),e})(t,e,!0)),t}let kI=t=>class extends t{static get properties(){return{i18n:{type:Object},__effectiveI18n:{type:Object,sync:!0}}}static get defaultI18n(){return{}}constructor(){super(),this.i18n=kD({},this.constructor.defaultI18n)}get i18n(){return this.__customI18n}set i18n(t){t!==this.__customI18n&&(this.__customI18n=t,this.__effectiveI18n=kD({},this.constructor.defaultI18n,this.__customI18n))}};class kA{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}let kE=Object.freeze({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){let e=String(t.year).replace(/\d+/u,t=>"0000".substr(t.length)+t);return[t.month+1,t.day,e].join("/")},parseDate(t){let e=t.split("/"),i=new Date,n,r=i.getMonth(),o=i.getFullYear();if(3===e.length?(r=parseInt(e[0])-1,n=parseInt(e[1]),o=parseInt(e[2]),e[2].length<3&&o>=0&&(o=function(t,e,i=0,n=1){if(e>99)throw Error("The provided year cannot have more than 2 digits.");if(e<0)throw Error("The provided year cannot be negative.");let r=e+100*Math.floor(t.getFullYear()/100);return t<new Date(r-50,i,n)?r-=100:t>new Date(r+50,i,n)&&(r+=100),r}(this.referenceDate?SY(this.referenceDate):new Date,o,r,n))):2===e.length?(r=parseInt(e[0])-1,n=parseInt(e[1])):1===e.length&&(n=parseInt(e[0])),void 0!==n)return{day:n,month:r,year:o}},formatTitle:(t,e)=>`${t} ${e}`}),kO=t=>class extends kI(S5(kp(SD(t)))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:{type:String},opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, __effectiveI18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:w_},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},__enteredDate:{type:Date,sync:!0}}}static get observers(){return["_selectedDateChanged(_selectedDate, __effectiveI18n)","_focusedDateChanged(_focusedDate, __effectiveI18n)","__updateOverlayContent(_overlayContent, __effectiveI18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled, __enteredDate)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get defaultI18n(){return kE}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this)}get i18n(){return super.i18n}set i18n(t){super.i18n=t}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t;let e=this.__parseDate(t);this.__setEnteredDate(e)}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(t){super._onFocus(t),this._noInput&&!wu&&(this.__ignoreInternalBlur=!0,t.target.blur(),this.__ignoreInternalBlur=!1)}_onBlur(t){super._onBlur(t),this.__ignoreInternalBlur||!this.opened&&(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this._requestValidation())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new S0(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new kA(this)),this._overlayElement=this.$.overlay}updated(t){super.updated(t),(t.has("showWeekNumbers")||t.has("__effectiveI18n"))&&this.toggleAttribute("week-numbers",this.showWeekNumbers&&1===this.__effectiveI18n.firstDayOfWeek)}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}focus(t){this._noInput&&!wu?this.open():super.focus(t)}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}__ensureContent(){if(this._overlayContent)return;let t=document.createElement("vaadin-date-picker-overlay-content");t.setAttribute("slot","overlay"),this.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",t=>{this.__commitDate(t.detail.date),this._close()}),t.addEventListener("date-selected",t=>{this.__commitDate(t.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",t=>{this._focusedDate=t.detail.value}),t.addEventListener("click",t=>t.stopPropagation())}__parseDate(t){if(!this.__effectiveI18n.parseDate)return;let e=this.__effectiveI18n.parseDate(t);if(e&&(e=SY(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime()))return e}__formatDate(t){if(this.__effectiveI18n.formatDate)return this.__effectiveI18n.formatDate(SB(t))}checkValidity(){let t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||SV(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled),n=!0;return this.inputElement&&this.inputElement.checkValidity&&(n=this.inputElement.checkValidity()),e&&i&&n}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldKeepFocusOnClearMousedown(){return!!this.opened||super._shouldKeepFocusOnClearMousedown()}_shouldRemoveFocus(t){let{relatedTarget:e}=t;return!(!this.opened||null===e||e===document.body||this.contains(e)||this._overlayContent.contains(e))||!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__commitValueChange(){let t=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__commitDate(t){this.__keepCommittedValue=!0,this._selectedDate=t,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}_isNoInput(t,e,i,n,r,o){return!t||e&&(!o||r)||i&&r||!n.parseDate}_formatISO(t){return t instanceof Date?S$({year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}):""}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){t&&this.__ensureContent(),this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0!==t&&void 0!==e&&(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}_valueChanged(t,e){let i=SY(t);if(t&&!i){this.value=e;return}t?Sz(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this._requestValidation()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(t,e,i,n,r,o,a,s,l,h){t&&(t.i18n=e,t.label=i,t.minDate=n,t.maxDate=r,t.focusedDate=o,t.selectedDate=a,t.showWeekNumbers=s,t.isDateDisabled=l,t.enteredDate=h)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(t){t.stopPropagation(),this._focusedDate=this._selectedDate,this._applyInputValue(this._selectedDate),this._close()}_onOverlayOpened(){let t=this._overlayContent;t.reset();let e=this._getInitialPosition();t.initialPosition=e;let i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();let n=this.inputElement;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());let r=this._noInput?t:this;this.__showOthers=((t,e=document.body,i="data-aria-hidden")=>{var n,r;let o,a,s,l,h,u,d,c=Array.from(Array.isArray(t)?t:[t]);return e&&c.push(...Array.from(e.querySelectorAll("[aria-live]"))),n="aria-hidden",r=Array.isArray(c)?c:[c],o=kk(e)?r.map(t=>{if(!kk(t))return kC(t,"is not a valid element"),null;let i=t;for(;i&&i!==e;){if(e.contains(i))return t;i=i.getRootNode().host}return kC(t,"is not contained inside",e),null}).filter(t=>!!t):(kC(e,"is not a valid element"),[]),kw[i]||(kw[i]=new WeakMap),a=kw[i],s=[],l=new Set,h=new Set(o),u=t=>{if(!t||l.has(t))return;l.add(t);let e=t.assignedSlot;e&&u(e),u(t.parentNode||t.host)},o.forEach(u),(d=t=>{if(!t||h.has(t))return;let e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach(t=>{if(!["template","script","style"].includes(t.localName))if(l.has(t))d(t);else{let e=t.getAttribute(n),r=null!==e&&"false"!==e,o=(kb.get(t)||0)+1,l=(a.get(t)||0)+1;kb.set(t,o),a.set(t,l),s.push(t),1===o&&r&&kx.set(t,!0),1===l&&t.setAttribute(i,"true"),r||t.setAttribute(n,"true")}})})(e),l.clear(),kS+=1,()=>{s.forEach(t=>{let e=kb.get(t)-1,r=a.get(t)-1;kb.set(t,e),a.set(t,r),e||(kx.has(t)?kx.delete(t):t.removeAttribute(n)),r||t.removeAttribute(i)}),(kS-=1)||(kb=new WeakMap,kb=new WeakMap,kx=new WeakMap,kw={})}})(r)}_getInitialPosition(){let t=SY(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||SV(e,this._minDate,this._maxDate,this.isDateDisabled)?e:this._minDate||this._maxDate?SF(e,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.__effectiveI18n.parseDate){let t=this._inputElementValue||"",e=this.__parseDate(t);e?this.__commitDate(e):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__commitParsedOrFocusedDate(),this.inputElement&&this.inputElement.selectionStart&&(this.inputElement.selectionStart=this.inputElement.selectionEnd),this.value||this._keyboardActive||this._requestValidation(),this.inputElement&&wf(this.inputElement)||this._setFocused(!1)}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this.inputElement&&this.inputElement.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){!t.composedPath().includes(this._overlayElement)&&(this._isClearButton(t)||this._onHostClick(t))}_onHostClick(t){(!this.autoOpenDisabled||this._noInput)&&(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this.__commitDate(null)}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===["Tab","Escape"].indexOf(t.key)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){t.composedPath().includes(this._overlayContent)||(this.opened?this.close():this.__commitParsedOrFocusedDate())}_onEscape(t){if(this.opened)return void this._onOverlayEscapePress(t);if(this.clearButtonVisible&&this.value&&!this.readonly){t.stopPropagation(),this._onClearButtonClick(t);return}""===this.inputElement.value?this.__commitDate(null):this._applyInputValue(this._selectedDate)}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open();let t=this.__parseDate(this._inputElementValue||"");t&&(this._ignoreFocusedDateChange=!0,Sz(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1),this.__setEnteredDate(t)}__setEnteredDate(t){t?Sz(this.__enteredDate,t)||(this.__enteredDate=t):this.__enteredDate=null}__computeMinOrMaxDate(t){return SY(t)}};class kP extends kO(kf(wo(w5(xK(wt(xx)))))){static get is(){return"vaadin-date-picker"}static get styles(){return[kv,ky]}static get properties(){return{_positionTarget:{type:Object,sync:!0}}}get clearElement(){return this.$.clearButton}render(){return xr`
1278
1286
  <div class="vaadin-date-picker-container">
1279
1287
  <div part="label">
1280
1288
  <slot name="label"></slot>
@@ -1323,12 +1331,12 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1323
1331
  >
1324
1332
  <slot name="overlay"></slot>
1325
1333
  </vaadin-date-picker-overlay>
1326
- `}ready(){super.ready(),this.addController(new kg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new km(this.inputElement,this._labelController)),this._tooltipController=new w7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.shadowRoot.querySelector('[part="field-button toggle-button"]').addEventListener("mousedown",t=>t.preventDefault())}_onOpenedChanged(t){this.opened=t.detail.value}_onVaadinOverlayClose(t){let e=t.detail.sourceEvent;e?.composedPath().includes(this)&&!e.composedPath().includes(this._overlayElement)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}}xz(kE);let kO=bO`
1334
+ `}ready(){super.ready(),this.addController(new kg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new k_(this.inputElement,this._labelController)),this._tooltipController=new w7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.shadowRoot.querySelector('[part="field-button toggle-button"]').addEventListener("mousedown",t=>t.preventDefault())}_onOpenedChanged(t){this.opened=t.detail.value}_onVaadinOverlayClose(t){let e=t.detail.sourceEvent;e?.composedPath().includes(this)&&!e.composedPath().includes(this._overlayElement)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}}xz(kP);let kL=bO`
1327
1335
  :host([focused]) {
1328
1336
  outline: var(--vaadin-focus-ring-width) solid var(--vaadin-focus-ring-color);
1329
1337
  outline-offset: calc(var(--vaadin-focus-ring-width) / -1);
1330
1338
  }
1331
- `,kP=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;let t=this._getHostDir();t&&this.setAttribute("dir",t)}_getHostDir(){return this._owner&&this._owner.$.overlay.getAttribute("dir")}requestContentUpdate(){if(!this.renderer||this.hidden)return;let t={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,t)}__rendererOrItemChanged(t,e,i){void 0!==i&&void 0!==e&&(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}},kL=bO`
1339
+ `,kR=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;let t=this._getHostDir();t&&this.setAttribute("dir",t)}_getHostDir(){return this._owner&&this._owner.$.overlay.getAttribute("dir")}requestContentUpdate(){if(!this.renderer||this.hidden)return;let t={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,t)}__rendererOrItemChanged(t,e,i){void 0!==i&&void 0!==e&&(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}},kN=bO`
1332
1340
  :host {
1333
1341
  align-items: center;
1334
1342
  border-radius: var(--vaadin-item-border-radius, var(--vaadin-radius-m));
@@ -1388,12 +1396,12 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1388
1396
  background: CanvasText;
1389
1397
  }
1390
1398
  }
1391
- `;class kR extends kP(wo(xH(xK(wt(xx))))){static get is(){return"vaadin-time-picker-item"}static get styles(){return[kL,kO]}render(){return xr`
1399
+ `;class kz extends kR(wo(xH(xK(wt(xx))))){static get is(){return"vaadin-time-picker-item"}static get styles(){return[kN,kL]}render(){return xr`
1392
1400
  <span part="checkmark" aria-hidden="true"></span>
1393
1401
  <div part="content">
1394
1402
  <slot></slot>
1395
1403
  </div>
1396
- `}}xz(kR);let kN=t=>class extends wN(t){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}_shouldCloseOnOutsideClick(t){let e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!wp(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){this.style.setProperty(`--_${this.localName}-default-width`,`${this.positionTarget.offsetWidth}px`)}_setOverlayWidth(t,e){t&&e&&(this._updateOverlayWidth(),this._updatePosition())}},kz=bO`
1404
+ `}}xz(kz);let kB=t=>class extends wN(t){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}_shouldCloseOnOutsideClick(t){let e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_mouseDownListener(t){super._mouseDownListener(t),this._shouldCloseOnOutsideClick(t)&&!wp(t.composedPath()[0])&&t.preventDefault()}_updateOverlayWidth(){this.style.setProperty(`--_${this.localName}-default-width`,`${this.positionTarget.offsetWidth}px`)}_setOverlayWidth(t,e){t&&e&&(this._updateOverlayWidth(),this._updatePosition())}},kV=bO`
1397
1405
  :host {
1398
1406
  --vaadin-item-checkmark-display: block;
1399
1407
  }
@@ -1407,13 +1415,13 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1407
1415
  flex-direction: column;
1408
1416
  height: 100%;
1409
1417
  }
1410
- `;class kB extends kN(wI(xH(wo(xK(wt(xx)))))){static get is(){return"vaadin-time-picker-overlay"}static get styles(){return[wl,kz]}render(){return xr`
1418
+ `;class kF extends kB(wI(xH(wo(xK(wt(xx)))))){static get is(){return"vaadin-time-picker-overlay"}static get styles(){return[wl,kV]}render(){return xr`
1411
1419
  <div part="overlay" id="overlay">
1412
1420
  <div part="content" id="content">
1413
1421
  <slot></slot>
1414
1422
  </div>
1415
1423
  </div>
1416
- `}}xz(kB);let kV=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),kF=kV&&kV[1]>=8;class kH{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:n,reorderElements:r,elementsContainer:o,__disableHeightPlaceholder:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=n,this.reorderElements=r,this.elementsContainer=o||n,this.__disableHeightPlaceholder=a??!1,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,PREVENT_OVERSCROLL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:t}])=>{let e=0===t.width&&0===t.height;!e&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=e}).observe(this.scrollTarget),this.scrollTarget.addEventListener("virtualizer-element-focused",t=>this.__onElementFocused(t)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",t=>{t.target===this.scrollTarget&&(this.__mouseDown=!0)}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);let e=this.__getVisibleElements().length,i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<1e3?(i=t,this._vidxOffset=0):(i=1e3,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),w1(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}hostConnected(){this.scrollTarget.offsetParent&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition)}update(t=0,e=this.size-1){let i=[];this.__getVisibleElements().forEach(n=>{n.__virtualIndex>=t&&n.__virtualIndex<=e&&(this.__updateElement(n,n.__virtualIndex,!0),i.push(n))}),this.__afterElementsUpdated(i)}_updateMetrics(t){w1();let e=0,i=0,n=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((t,n)=>{i+=this._physicalSizes[t];let r=this._physicalSizes[t];this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),this._physicalSizes[t]!==r&&(this.__resizeObserver.unobserve(this._physicalItems[t]),this.__resizeObserver.observe(this._physicalItems[t],{box:"border-box"})),e+=this._physicalSizes[t],this._physicalAverageCount+=+!!this._physicalSizes[t]},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((r*n+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){let e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){this.__disableHeightPlaceholder||t.forEach(t=>{let e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=w0.debounce(this.__placeholderClearDebouncer,wX,()=>this._resizeHandler());else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();let t=this.__elementHeightQueue.filter(t=>void 0!==t);this.__placeholderHeight=Math.round(t.reduce((t,e)=>t+e,0)/t.length)}}),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){let e=this.__getVisibleElements().find(e=>e.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}__restoreScrollOffset(t,e){let i=this.__getIndexScrollOffset(t);void 0!==e&&void 0!==i&&(this._scrollTop+=e-i)}get size(){return this.__size}set size(t){let e,i;if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel();let n=t>0&&this._scrollTop>0;n&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this.__preventElementUpdates=n,this._itemsChanged({path:"items"}),w1(),n&&(e=Math.min(e,t-1),this.scrollToIndex(e),this.__restoreScrollOffset(e,i)),this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._updateScrollerSize(!0),this._resizeHandler(),w1(),this._debounce("_update",this._update,wQ)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){let t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL="rtl"===t.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight}setAttribute(){}_createPool(t){let e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t,{box:"border-box"})}),this.elementsContainer.appendChild(i),e}_assignModels(t){let e=[];this._iterateItems((t,i)=>{let n=this._physicalItems[t];n.hidden=i>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),e.push(n))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,n){n.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;for(;e&&!t.includes(e);)e=e.assignedSlot||e.parentNode||e.host;return e}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return 0===e.indexOf(t)&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;let e=t.detail.element;if(!e)return;let i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();let n=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,n)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,n)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-this._scrollPosition);let t=this._scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){let e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=w0.debounce(this.__fixInvalidItemPositioningDebouncer,wq.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning()),this.__overscrollDebouncer?.isActive()||(this.scrollTarget.style.overscrollBehavior="none"),this.__overscrollDebouncer=w0.debounce(this.__overscrollDebouncer,wq.after(this.timeouts.PREVENT_OVERSCROLL),()=>{this.scrollTarget.style.overscrollBehavior=null})),this.reorderElements&&(this.__scrollReorderDebouncer=w0.debounce(this.__scrollReorderDebouncer,wq.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),0===this._scrollPosition&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}_resizeHandler(){super._resizeHandler();let t=this.adjustedLastVisibleIndex===this.size-1,e=this._physicalTop-this._scrollPosition;if(t&&e>0){let t=Math.ceil(e/this._physicalAverage);this._virtualStart=Math.max(0,this._virtualStart-t),this._physicalStart=Math.max(0,this._physicalStart-t),super.scrollToIndex(this._virtualCount-1),this.scrollTarget.scrollTop=this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight}}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;let t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=0===this.adjustedFirstVisibleIndex,n=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!n){let t=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=t}}_increasePoolIfNeeded(t){if(this._physicalCount>2&&this._physicalAverage>0&&t>0){let e=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,e)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){let t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;let t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;let t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;let n=i.__virtualIndex-t,r=e.indexOf(i)-n;if(r>0)for(let t=0;t<r;t++)this.elementsContainer.appendChild(e[t]);else if(r<0)for(let t=e.length+r;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(w_){let{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=t})}}_adjustVirtualIndexOffset(t){let e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){let t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(t*e)}else{let t,i,n=this._vidxOffset,r=()=>{t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)};0===this._scrollTop?0!==n&&(r(),this._vidxOffset=0,super.scrollToIndex(0)):this.firstVisibleIndex<1e3&&this._vidxOffset>0&&(r(),this._vidxOffset-=Math.min(this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex+(n-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?n!==e&&(r(),this._vidxOffset=e,super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-1e3&&this._vidxOffset<e&&(r(),this._vidxOffset+=Math.min(e-this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-n))),void 0!==t&&this.__restoreScrollOffset(t,i)}}}Object.setPrototypeOf(kH.prototype,{_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(val){val=this._clamp(val,0,this._maxVirtualStart),this._virtualStartVal=val},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(val){(val%=this._physicalCount)<0&&(val=this._physicalCount+val),this._physicalStartVal=val},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(val){this._physicalCountVal=val},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems((t,i)=>{if((e+=this._getPhysicalSizeIncrement(t))>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems((i,n)=>{e<this._scrollBottom&&(t=n),e+=this._getPhysicalSizeIncrement(i)}),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){let t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),e=t-this._scrollPosition,i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){let t=Math.round((e-=this._scrollOffset)/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){let t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),wQ)}},_getReusables(t){let e,i,n,r=[],o=this._hiddenContentSize*this._ratio,a=this._virtualStart,s=this._virtualEnd,l=this._physicalCount,h=this._physicalTop+this._scrollOffset,u=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,c=this._scrollBottom;for(t?(e=this._physicalStart,i=d-h):(e=this._physicalEnd,i=u-c);i-=n=this._getPhysicalSizeIncrement(e),!(r.length>=l)&&!(i<=o);)if(t){if(s+r.length+1>=this._virtualCount||h+n>=d-this._scrollOffset)break;r.push(e),h+=n,e=(e+1)%l}else{if(a-r.length<=0||h+this._physicalSize-n<=c)break;r.push(e),h-=n,e=0===e?l-1:e-1}return{indexes:r,physicalTop:h-this._scrollOffset}},_update(t,e){if((!t||0!==t.length)&&0!==this._physicalCount){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){let t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){let e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount,i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){let t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),wK):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),wQ))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){let t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,wX))},_iterateItems(t,e){let i,n,r,o;if(2==arguments.length&&e){for(o=0;o<e.length;o++)if(i=e[o],n=this._computeVidx(i),null!=(r=t.call(this,i,n)))return r}else{for(i=this._physicalStart,n=this._virtualStart;i<this._physicalCount;i++,n++)if(null!=(r=t.call(this,i,n)))return r;for(i=0;i<this._physicalStart;i++,n++)if(null!=(r=t.call(this,i,n)))return r}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){let t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;let e=this._scrollPosition;!kF&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){let e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1||(w1(),0===this._physicalCount))return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,n=0,r=this._hiddenContentSize;for(;i<t&&n<=r;)n+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+n),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},wX)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){var n;this._debouncers||(this._debouncers={}),this._debouncers[t]=w0.debounce(this._debouncers[t],i,e.bind(this)),n=this._debouncers[t],wJ.add(n)}});class kY{constructor(t){this.__adapter=new kH(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}hostConnected(){this.__adapter.hostConnected()}}let k$=class{toString(){return""}},kU=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){let t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,e)=>t+e)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${w4++}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t,e=!1){if(!this.__virtualizer||!(this.opened&&t>=0))return;let i=[...this.children].find(e=>!e.hidden&&e.index===t);if(!e&&i){let t=i.getBoundingClientRect(),e=this.getBoundingClientRect();if(t.top>=e.top&&t.bottom+this._viewportTotalPaddingBottom<=e.bottom)return}let n=t;if(!e){let e=this._visibleItemsCount();t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),n=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(n=this.__virtualizer.firstVisibleIndex)}this.__virtualizer.scrollToIndex(Math.max(0,n)),this.__virtualizer.flush();let r=[...this.children].find(e=>!e.hidden&&e.index===t);if(!r)return;if(e)return void r.scrollIntoView({block:"center"});let o=r.getBoundingClientRect(),a=this.getBoundingClientRect(),s=o.bottom+this._viewportTotalPaddingBottom;s>a.bottom?this.scrollTop+=s-a.bottom:o.top<a.top&&(this.scrollTop-=a.top-o.top)}_isItemSelected(t,e,i){return!(t instanceof k$)&&(i&&void 0!==t&&void 0!==e?xU(i,t)===xU(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new kY({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0,__disableHeightPlaceholder:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){if(t){this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate();return}let e=this.__virtualizer&&this.__virtualizer.__adapter;e&&e._scrollPosition>0&&(this.scrollTop=0,e._scrollPosition=0)}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{let t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(t,e){let i=this.items[e],n=this.focusedIndex,r=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:r,renderer:this.renderer,focused:!this.loading&&n===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",r.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof k$&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{let e=0===this.scrollTop,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;e&&t.deltaY<0?t.preventDefault():i&&t.deltaY>0&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}},kW=bO`
1424
+ `}}xz(kF);let kH=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),kY=kH&&kH[1]>=8;class k${constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:n,reorderElements:r,elementsContainer:o,__disableHeightPlaceholder:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=n,this.reorderElements=r,this.elementsContainer=o||n,this.__disableHeightPlaceholder=a??!1,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,PREVENT_OVERSCROLL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:t}])=>{let e=0===t.width&&0===t.height;!e&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=e}).observe(this.scrollTarget),this.scrollTarget.addEventListener("virtualizer-element-focused",t=>this.__onElementFocused(t)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",t=>{t.target===this.scrollTarget&&(this.__mouseDown=!0)}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);let e=this.__getVisibleElements().length,i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<1e3?(i=t,this._vidxOffset=0):(i=1e3,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t)}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),w1(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}hostConnected(){this.scrollTarget.offsetParent&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition)}update(t=0,e=this.size-1){let i=[];this.__getVisibleElements().forEach(n=>{n.__virtualIndex>=t&&n.__virtualIndex<=e&&(this.__updateElement(n,n.__virtualIndex,!0),i.push(n))}),this.__afterElementsUpdated(i)}_updateMetrics(t){w1();let e=0,i=0,n=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((t,n)=>{i+=this._physicalSizes[t];let r=this._physicalSizes[t];this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),this._physicalSizes[t]!==r&&(this.__resizeObserver.unobserve(this._physicalItems[t]),this.__resizeObserver.observe(this._physicalItems[t],{box:"border-box"})),e+=this._physicalSizes[t],this._physicalAverageCount+=+!!this._physicalSizes[t]},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((r*n+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){let e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){this.__disableHeightPlaceholder||t.forEach(t=>{let e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=w0.debounce(this.__placeholderClearDebouncer,wX,()=>this._resizeHandler());else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();let t=this.__elementHeightQueue.filter(t=>void 0!==t);this.__placeholderHeight=Math.round(t.reduce((t,e)=>t+e,0)/t.length)}}),void 0===this.__pendingScrollToIndex||this.__hasPlaceholders()||this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(t){let e=this.__getVisibleElements().find(e=>e.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}__restoreScrollOffset(t,e){let i=this.__getIndexScrollOffset(t);void 0!==e&&void 0!==i&&(this._scrollTop+=e-i)}get size(){return this.__size}set size(t){let e,i;if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel();let n=t>0&&this._scrollTop>0;n&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this.__preventElementUpdates=n,this._itemsChanged({path:"items"}),w1(),n&&(e=Math.min(e,t-1),this.scrollToIndex(e),this.__restoreScrollOffset(e,i)),this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._updateScrollerSize(!0),this._resizeHandler(),w1(),this._debounce("_update",this._update,wQ)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){let t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL="rtl"===t.direction,this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight}setAttribute(){}_createPool(t){let e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t,{box:"border-box"})}),this.elementsContainer.appendChild(i),e}_assignModels(t){let e=[];this._iterateItems((t,i)=>{let n=this._physicalItems[t];n.hidden=i>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),e.push(n))},t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,n){n.style.transform=`translateY(${e})`}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){let e=document.activeElement;for(;e?.shadowRoot?.activeElement;)e=e.shadowRoot.activeElement;for(;e&&!t.includes(e);)e=e.assignedSlot||e.parentNode||e.host;return e}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return 0===e.indexOf(t)&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;let e=t.detail.element;if(!e)return;let i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();let n=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,n)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,n)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-this._scrollPosition);let t=this._scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){let e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=w0.debounce(this.__fixInvalidItemPositioningDebouncer,wq.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning()),this.__overscrollDebouncer?.isActive()||(this.scrollTarget.style.overscrollBehavior="none"),this.__overscrollDebouncer=w0.debounce(this.__overscrollDebouncer,wq.after(this.timeouts.PREVENT_OVERSCROLL),()=>{this.scrollTarget.style.overscrollBehavior=null})),this.reorderElements&&(this.__scrollReorderDebouncer=w0.debounce(this.__scrollReorderDebouncer,wq.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),0===this._scrollPosition&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}_resizeHandler(){super._resizeHandler();let t=this.adjustedLastVisibleIndex===this.size-1,e=this._physicalTop-this._scrollPosition;if(t&&e>0){let t=Math.ceil(e/this._physicalAverage);this._virtualStart=Math.max(0,this._virtualStart-t),this._physicalStart=Math.max(0,this._physicalStart-t),super.scrollToIndex(this._virtualCount-1),this.scrollTarget.scrollTop=this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight}}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;let t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=0===this.adjustedFirstVisibleIndex,n=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!n){let t=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=t}}_increasePoolIfNeeded(t){if(this._physicalCount>2&&this._physicalAverage>0&&t>0){let e=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,e)))}else super._increasePoolIfNeeded(t)}get _optPhysicalSize(){let t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(0===this._physicalCount)return 0;let t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;let t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;let n=i.__virtualIndex-t,r=e.indexOf(i)-n;if(r>0)for(let t=0;t<r;t++)this.elementsContainer.appendChild(e[t]);else if(r<0)for(let t=e.length+r;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(wm){let{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=t})}}_adjustVirtualIndexOffset(t){let e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){let t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(t*e)}else{let t,i,n=this._vidxOffset,r=()=>{t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)};0===this._scrollTop?0!==n&&(r(),this._vidxOffset=0,super.scrollToIndex(0)):this.firstVisibleIndex<1e3&&this._vidxOffset>0&&(r(),this._vidxOffset-=Math.min(this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex+(n-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?n!==e&&(r(),this._vidxOffset=e,super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-1e3&&this._vidxOffset<e&&(r(),this._vidxOffset+=Math.min(e-this._vidxOffset,100),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-n))),void 0!==t&&this.__restoreScrollOffset(t,i)}}}Object.setPrototypeOf(k$.prototype,{_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(val){val=this._clamp(val,0,this._maxVirtualStart),this._virtualStartVal=val},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(val){(val%=this._physicalCount)<0&&(val=this._physicalCount+val),this._physicalStartVal=val},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(val){this._physicalCountVal=val},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems((t,i)=>{if((e+=this._getPhysicalSizeIncrement(t))>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems((i,n)=>{e<this._scrollBottom&&(t=n),e+=this._getPhysicalSizeIncrement(i)}),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){let t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),e=t-this._scrollPosition,i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){let t=Math.round((e-=this._scrollOffset)/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){let t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),wQ)}},_getReusables(t){let e,i,n,r=[],o=this._hiddenContentSize*this._ratio,a=this._virtualStart,s=this._virtualEnd,l=this._physicalCount,h=this._physicalTop+this._scrollOffset,u=this._physicalBottom+this._scrollOffset,d=this._scrollPosition,c=this._scrollBottom;for(t?(e=this._physicalStart,i=d-h):(e=this._physicalEnd,i=u-c);i-=n=this._getPhysicalSizeIncrement(e),!(r.length>=l)&&!(i<=o);)if(t){if(s+r.length+1>=this._virtualCount||h+n>=d-this._scrollOffset)break;r.push(e),h+=n,e=(e+1)%l}else{if(a-r.length<=0||h+this._physicalSize-n<=c)break;r.push(e),h-=n,e=0===e?l-1:e-1}return{indexes:r,physicalTop:h-this._scrollOffset}},_update(t,e){if((!t||0!==t.length)&&0!==this._physicalCount){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){let t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){let e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount,i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){let t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),wK):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),wQ))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){let t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,wX))},_iterateItems(t,e){let i,n,r,o;if(2==arguments.length&&e){for(o=0;o<e.length;o++)if(i=e[o],n=this._computeVidx(i),null!=(r=t.call(this,i,n)))return r}else{for(i=this._physicalStart,n=this._virtualStart;i<this._physicalCount;i++,n++)if(null!=(r=t.call(this,i,n)))return r;for(i=0;i<this._physicalStart;i++,n++)if(null!=(r=t.call(this,i,n)))return r}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){let t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;let e=this._scrollPosition;!kY&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){let e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1||(w1(),0===this._physicalCount))return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,n=0,r=this._hiddenContentSize;for(;i<t&&n<=r;)n+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+n),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},wX)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){var n;this._debouncers||(this._debouncers={}),this._debouncers[t]=w0.debounce(this._debouncers[t],i,e.bind(this)),n=this._debouncers[t],wJ.add(n)}});class kU{constructor(t){this.__adapter=new k$(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}hostConnected(){this.__adapter.hostConnected()}}let kW=class{toString(){return""}},kj=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){let t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,e)=>t+e)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${w4++}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",t=>t.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t,e=!1){if(!this.__virtualizer||!(this.opened&&t>=0))return;let i=[...this.children].find(e=>!e.hidden&&e.index===t);if(!e&&i){let t=i.getBoundingClientRect(),e=this.getBoundingClientRect();if(t.top>=e.top&&t.bottom+this._viewportTotalPaddingBottom<=e.bottom)return}let n=t;if(!e){let e=this._visibleItemsCount();t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),n=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(n=this.__virtualizer.firstVisibleIndex)}this.__virtualizer.scrollToIndex(Math.max(0,n)),this.__virtualizer.flush();let r=[...this.children].find(e=>!e.hidden&&e.index===t);if(!r)return;if(e)return void r.scrollIntoView({block:"center"});let o=r.getBoundingClientRect(),a=this.getBoundingClientRect(),s=o.bottom+this._viewportTotalPaddingBottom;s>a.bottom?this.scrollTop+=s-a.bottom:o.top<a.top&&(this.scrollTop-=a.top-o.top)}_isItemSelected(t,e,i){return!(t instanceof kW)&&(i&&void 0!==t&&void 0!==e?xU(i,t)===xU(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new kU({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0,__disableHeightPlaceholder:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){if(t){this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate();return}let e=this.__virtualizer&&this.__virtualizer.__adapter;e&&e._scrollPosition>0&&(this.scrollTop=0,e._scrollPosition=0)}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map(()=>{let t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(t,e){let i=this.items[e],n=this.focusedIndex,r=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:r,renderer:this.renderer,focused:!this.loading&&n===e}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",r.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof kW&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",t=>{let e=0===this.scrollTop,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;e&&t.deltaY<0?t.preventDefault():i&&t.deltaY>0&&t.preventDefault()})}__requestItemByIndex(t){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}},kG=bO`
1417
1425
  :host {
1418
1426
  /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */
1419
1427
  box-shadow: 0 0 0 white;
@@ -1435,11 +1443,11 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1435
1443
  #selector > * {
1436
1444
  forced-color-adjust: auto;
1437
1445
  }
1438
- `;class kj extends kU(xK(xx)){static get is(){return"vaadin-time-picker-scroller"}static get styles(){return kW}render(){return xr`
1446
+ `;class kZ extends kj(xK(xx)){static get is(){return"vaadin-time-picker-scroller"}static get styles(){return kG}render(){return xr`
1439
1447
  <div id="selector">
1440
1448
  <slot></slot>
1441
1449
  </div>
1442
- `}}xz(kj);let kG=bO`
1450
+ `}}xz(kZ);let kq=bO`
1443
1451
  :host([opened]) {
1444
1452
  pointer-events: auto;
1445
1453
  }
@@ -1461,7 +1469,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1461
1469
  direction: rtl;
1462
1470
  text-align: left;
1463
1471
  }
1464
- `,kZ=t=>class extends SD(S6(SM(SA(t)))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"}}}constructor(){super(),this._scroller,this._closeOnBlurIsPrevented,this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"))}firstUpdated(){super.firstUpdated(),this._initScroller()}ready(){super.ready(),this._initOverlay(),this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.close()}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_initOverlay(){let t=this.$.overlay;t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",t=>t.preventDefault()),t.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),t.addEventListener("vaadin-overlay-closed",()=>{this._scroller.items=[],this._onOverlayClosed()}),this._overlayElement=t}_initScroller(){let t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._renderScroller(t),this._scroller=t}_renderScroller(t){t.setAttribute("slot","overlay"),t.setAttribute("tabindex","-1"),this.appendChild(t)}get _hasDropdownItems(){return!!(this._dropdownItems&&this._dropdownItems.length)}_overlayOpenedChanged(t,e){t?this._onOpened():e&&this._hasDropdownItems&&this.close()}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&wf(this.inputElement)}_updateActiveDescendant(t){let e=this.inputElement;if(!e)return;let i=this._getItemElements().find(e=>e.index===t);i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?this._isInputFocused()||wv||!this.inputElement||this.inputElement.focus():(this.autoselect&&(this.__autoselectPending=!0),this._onClosed());let i=this.inputElement;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this.autoselect&&this.inputElement&&this.__autoselectPending&&this.inputElement.selectionStart===this.inputElement.selectionEnd&&this.inputElement.select(),this.__autoselectPending=!1,this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onTouchend(t){this.clearElement&&t.composedPath()[0]===this.clearElement&&(t.preventDefault(),this._onClearAction())}_onKeyDown(t){super._onKeyDown(t),"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){return t?t.toString():""}_onArrowDown(){if(this.opened){let t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{let t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){let t=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){let t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened?this.close():this._commitValue()}_onEnter(t){if(!this._hasValidInputValue()){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){return!0}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this._onEscapeCancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this._onEscapeCancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onEscapeCancel(){}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",t=>t.preventDefault()),t.addEventListener("click",()=>{wv&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){}_onOpened(){}_onClosed(){}_onOverlayClosed(){}_commitValue(){}_revertInputValue(){this._inputElementValue=this.value,this._clearSelectionRange()}_onInput(t){this.opened||this._isClearButton(t)||this.autoOpenDisabled||(this.opened=!0)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t,e=!1){this._scroller&&this._scroller.scrollIntoView(t,e)}_overlaySelectedItemChanged(t){t.stopPropagation(),this.hasAttribute("closing")||t.detail.item instanceof k$||this.opened&&(this._focusedIndex=this._dropdownItems.indexOf(t.detail.item),this.close())}_setFocused(t){super._setFocused(t),t||(this.__autoselectPending=!1),t||this.readonly||this._closeOnBlurIsPrevented||this._handleFocusOut()}_handleFocusOut(){wu?this._closeOrCommit():this.opened?this._overlayOpened||this.close():this._commitValue()}_shouldRemoveFocus(t){return(!t.relatedTarget||t.relatedTarget.localName!==`${this._tagNamePrefix}-item`)&&(t.relatedTarget!==this._overlayElement||(t.composedPath()[0].focus(),!1))}},kq=t=>class extends kp(t){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};function kX(t){if(!t)return"";let e=(t=0,e="00")=>(e+t).substr((e+t).length-e.length),i=`${e(t.hours)}:${e(t.minutes)}`;return void 0!==t.seconds&&(i+=`:${e(t.seconds)}`),void 0!==t.milliseconds&&(i+=`.${e(t.milliseconds,"000")}`),i}let kK="(\\d|[0-5]\\d)",kQ=RegExp(`^(\\d|[0-1]\\d|2[0-3])(?::${kK}(?::${kK}(?:\\.(\\d{1,3}))?)?)?$`,"u");function kJ(t){let e=kQ.exec(t);if(e){if(e[4])for(;e[4].length<3;)e[4]+="0";return{hours:e[1],minutes:e[2],seconds:e[3],milliseconds:e[4]}}}function k0(t,e){var i;let n;if(!t)return t;let r=(n=null==(i=e)?60:parseFloat(i))%3600==0?1:n%60!=0&&n?n%1==0?3:n<1?4:void 0:2;return{...t,hours:parseInt(t.hours),minutes:parseInt(t.minutes||0),seconds:r<3?void 0:parseInt(t.seconds||0),milliseconds:r<4?void 0:parseInt(t.milliseconds||0)}}let k1=Object.freeze({formatTime:kX,parseTime:kJ}),k2="00:00:00.000",k5="23:59:59.999",k3=t=>class extends kM(kq(kZ(kf(t)))){static get properties(){return{value:{type:String,notify:!0,value:"",sync:!0},min:{type:String,value:"",sync:!0},max:{type:String,value:"",sync:!0},step:{type:Number,sync:!0},_comboBoxValue:{type:String,sync:!0,observer:"__comboBoxValueChanged"},_inputContainer:{type:Object}}}static get observers(){return["_openedOrItemsChanged(opened, _dropdownItems)","_updateScroller(opened, _dropdownItems, _focusedIndex, _theme, _comboBoxValue)","__updateAriaAttributes(_dropdownItems, opened, inputElement)","__updateDropdownItems(__effectiveI18n, min, max, step)"]}static get defaultI18n(){return k1}static get constraints(){return[...super.constraints,"min","max"]}get _tagNamePrefix(){return"vaadin-time-picker"}get clearElement(){return this.$.clearButton}get i18n(){return super.i18n}set i18n(t){super.i18n=t}get __unparsableValue(){return this._inputElementValue&&!this.__effectiveI18n.parseTime(this._inputElementValue)?this._inputElementValue:""}ready(){super.ready(),this.addController(new kg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new km(this.inputElement,this._labelController)),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._toggleElement=this.$.toggleButton,this._tooltipController=new w7(this),this._tooltipController.setShouldShow(t=>!t.opened),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}checkValidity(){return!!(this.inputElement.checkValidity()&&(!this.value||this._timeAllowed(kJ(this.value)))&&(!this._comboBoxValue||this.__effectiveI18n.parseTime(this._comboBoxValue)))}_getItemLabel(t){return t?t.label:""}_updateScroller(t,e,i,n,r){t&&(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),this._scroller.setProperties({items:t?e:[],opened:t,focusedIndex:i,theme:n,selectedItem:e?.find(t=>t.value===r)})}_openedOrItemsChanged(t,e){this._overlayOpened=t&&!!e?.length}_onClosed(){this._commitValue()}_onEscapeCancel(){this._inputElementValue=this._comboBoxValue,this._closeOrCommit()}_onClearAction(){this._comboBoxValue="",this._inputElementValue="",this.__commitValueChange()}_commitValue(){if(this._focusedIndex>-1){let t=this._dropdownItems[this._focusedIndex],e=this._getItemLabel(t);this._inputElementValue=e,this._comboBoxValue=e,this._focusedIndex=-1}else""===this._inputElementValue||void 0===this._inputElementValue?this._comboBoxValue="":this._comboBoxValue=this._inputElementValue;this.__commitValueChange(),this._clearSelectionRange()}_closeOrCommit(){this.opened?this.close():this._commitValue()}_revertInputValue(){this._inputElementValue=this._comboBoxValue,this._clearSelectionRange()}_setFocused(t){super._setFocused(t),!t&&!this._closeOnBlurIsPrevented&&document.hasFocus()&&this._requestValidation()}__validDayDivisor(t){return!t||86400%t==0||t<1&&t%1*1e3%1==0}_onKeyDown(t){if(super._onKeyDown(t),this.readonly||this.disabled||this._dropdownItems.length)return;let e=this.__validDayDivisor(this.step)&&this.step||60;40===t.keyCode?this.__onArrowPressWithStep(-e):38===t.keyCode&&this.__onArrowPressWithStep(e)}__onArrowPressWithStep(t){let e=this.__addStep(this.__getMsec(this.__memoValue),t,!0);this.__memoValue=e,this.__useMemo=!0,this._comboBoxValue=this.__effectiveI18n.formatTime(e),this.__useMemo=!1,this.__commitValueChange()}__commitValueChange(){let t=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__getMsec(t){let e=60*(t?.hours||0)*6e4;return e+=60*(t?.minutes||0)*1e3,e+=1e3*(t?.seconds||0),e+=parseInt(t?.milliseconds)||0}__getSec(t){let e=60*(t?.hours||0)*60;return e+=60*(t?.minutes||0),e+=t?.seconds||0,e+=(t?.milliseconds||0)/1e3}__addStep(t,e,i){0===t&&e<0&&(t=864e5);let n=1e3*e,r=t%n;n<0&&r&&i?t-=r:n>0&&r&&i?t-=r-n:t+=n;let o=Math.floor(t/1e3/60/60),a=Math.floor((t-=1e3*o*3600)/1e3/60),s=Math.floor((t-=1e3*a*60)/1e3);return t-=1e3*s,{hours:o<24?o:0,minutes:a,seconds:s,milliseconds:t}}__updateDropdownItems(t,e,i,n){let r=k0(kJ(e||k2),n),o=this.__getSec(r),a=k0(kJ(i||k5),n),s=this.__getSec(a);this._dropdownItems=this.__generateDropdownList(o,s,n);let l=k0(kJ(this.value),n);n!==this.__oldStep&&(this.__oldStep=n,this.__updateValue(l)),this.value&&(this._comboBoxValue=t.formatTime(l))}__updateAriaAttributes(t,e,i){void 0!==t&&void 0!==i&&(0===t.length?(i.removeAttribute("role"),i.removeAttribute("aria-expanded")):(i.setAttribute("role","combobox"),i.setAttribute("aria-expanded",!!e)))}__generateDropdownList(t,e,i){if(i<900||!this.__validDayDivisor(i))return[];let n=[];i||(i=3600);let r=-i+t;for(;r+i>=t&&r+i<=e;){let t=k0(this.__addStep(1e3*r,i),i);r+=i;let e=this.__effectiveI18n.formatTime(t);n.push({label:e,value:e})}return n}_valueChanged(t,e){let i=this.__memoValue=kJ(t),n=kX(i)||"";this.__keepCommittedValue||(this.__committedValue=t,this.__committedUnparsableValue=""),""===t||null===t||i?t!==n?this.value=n:this.__keepInvalidInput?delete this.__keepInvalidInput:this.__updateInputValue(i):this.value=e??"",this._toggleHasValue(this._hasValue)}__comboBoxValueChanged(t,e){if(""===t&&void 0===e)return;let i=k0(this.__useMemo?this.__memoValue:this.__effectiveI18n.parseTime(t),this.step),n=this.__effectiveI18n.formatTime(i)||"";i?t!==n?this._comboBoxValue=n:(this.__keepCommittedValue=!0,this.__updateValue(i),this.__keepCommittedValue=!1):(""!==this.value&&""!==t&&(this.__keepInvalidInput=!0),this.__keepCommittedValue=!0,this.value="",this.__keepCommittedValue=!1)}__updateValue(t){let e=kX(k0(t,this.step))||"";this.value=e,this.__updateInputValue(t)}__updateInputValue(t){let e=this.__effectiveI18n.formatTime(k0(t,this.step))||"";this._inputElementValue=e,this._comboBoxValue=e}_timeAllowed(t){let e=kJ(this.min||k2),i=kJ(this.max||k5);return(!e||this.__getMsec(t)>=this.__getMsec(e))&&(!i||this.__getMsec(t)<=this.__getMsec(i))}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t),this.opened&&this._scroller.requestContentUpdate()}_onHostClick(t){let e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._inputContainer))&&super._onHostClick(t)}_onChange(t){t.stopPropagation()}};class k4 extends k3(wo(w5(xK(wt(xx))))){static get is(){return"vaadin-time-picker"}static get styles(){return[kv,kG]}render(){return xr`
1472
+ `,kX=t=>class extends SD(S6(SM(SA(t)))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"}}}constructor(){super(),this._scroller,this._closeOnBlurIsPrevented,this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"))}firstUpdated(){super.firstUpdated(),this._initScroller()}ready(){super.ready(),this._initOverlay(),this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown)}disconnectedCallback(){super.disconnectedCallback(),this.close()}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_initOverlay(){let t=this.$.overlay;t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",t=>t.preventDefault()),t.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),t.addEventListener("vaadin-overlay-closed",()=>{this._scroller.items=[],this._onOverlayClosed()}),this._overlayElement=t}_initScroller(){let t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._renderScroller(t),this._scroller=t}_renderScroller(t){t.setAttribute("slot","overlay"),t.setAttribute("tabindex","-1"),this.appendChild(t)}get _hasDropdownItems(){return!!(this._dropdownItems&&this._dropdownItems.length)}_overlayOpenedChanged(t,e){t?this._onOpened():e&&this._hasDropdownItems&&this.close()}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&wf(this.inputElement)}_updateActiveDescendant(t){let e=this.inputElement;if(!e)return;let i=this._getItemElements().find(e=>e.index===t);i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?this._isInputFocused()||wv||!this.inputElement||this.inputElement.focus():(this.autoselect&&(this.__autoselectPending=!0),this._onClosed());let i=this.inputElement;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this.autoselect&&this.inputElement&&this.__autoselectPending&&this.inputElement.selectionStart===this.inputElement.selectionEnd&&this.inputElement.select(),this.__autoselectPending=!1,this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onTouchend(t){this.clearElement&&t.composedPath()[0]===this.clearElement&&(t.preventDefault(),this._onClearAction())}_onKeyDown(t){super._onKeyDown(t),"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){return t?t.toString():""}_onArrowDown(){if(this.opened){let t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{let t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){let t=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(t),this._markAllSelectionRange()}}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){let t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened?this.close():this._commitValue()}_onEnter(t){if(!this._hasValidInputValue()){t.preventDefault(),t.stopPropagation();return}this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){return!0}_onEscape(t){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(t.stopPropagation(),this._focusedIndex=-1,this._onEscapeCancel()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this._onEscapeCancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onEscapeCancel(){}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",t=>t.preventDefault()),t.addEventListener("click",()=>{wv&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){}_onOpened(){}_onClosed(){}_onOverlayClosed(){}_commitValue(){}_revertInputValue(){this._inputElementValue=this.value,this._clearSelectionRange()}_onInput(t){this.opened||this._isClearButton(t)||this.autoOpenDisabled||(this.opened=!0)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t,e=!1){this._scroller&&this._scroller.scrollIntoView(t,e)}_overlaySelectedItemChanged(t){t.stopPropagation(),this.hasAttribute("closing")||t.detail.item instanceof kW||this.opened&&(this._focusedIndex=this._dropdownItems.indexOf(t.detail.item),this.close())}_setFocused(t){super._setFocused(t),t||(this.__autoselectPending=!1),t||this.readonly||this._closeOnBlurIsPrevented||this._handleFocusOut()}_handleFocusOut(){wu?this._closeOrCommit():this.opened?this._overlayOpened||this.close():this._commitValue()}_shouldRemoveFocus(t){return(!t.relatedTarget||t.relatedTarget.localName!==`${this._tagNamePrefix}-item`)&&(t.relatedTarget!==this._overlayElement||(t.composedPath()[0].focus(),!1))}},kK=t=>class extends kp(t){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};function kQ(t){if(!t)return"";let e=(t=0,e="00")=>(e+t).substr((e+t).length-e.length),i=`${e(t.hours)}:${e(t.minutes)}`;return void 0!==t.seconds&&(i+=`:${e(t.seconds)}`),void 0!==t.milliseconds&&(i+=`.${e(t.milliseconds,"000")}`),i}let kJ="(\\d|[0-5]\\d)",k0=RegExp(`^(\\d|[0-1]\\d|2[0-3])(?::${kJ}(?::${kJ}(?:\\.(\\d{1,3}))?)?)?$`,"u");function k1(t){let e=k0.exec(t);if(e){if(e[4])for(;e[4].length<3;)e[4]+="0";return{hours:e[1],minutes:e[2],seconds:e[3],milliseconds:e[4]}}}function k2(t,e){var i;let n;if(!t)return t;let r=(n=null==(i=e)?60:parseFloat(i))%3600==0?1:n%60!=0&&n?n%1==0?3:n<1?4:void 0:2;return{...t,hours:parseInt(t.hours),minutes:parseInt(t.minutes||0),seconds:r<3?void 0:parseInt(t.seconds||0),milliseconds:r<4?void 0:parseInt(t.milliseconds||0)}}let k5=Object.freeze({formatTime:kQ,parseTime:k1}),k3="00:00:00.000",k4="23:59:59.999",k6=t=>class extends kI(kK(kX(kf(t)))){static get properties(){return{value:{type:String,notify:!0,value:"",sync:!0},min:{type:String,value:"",sync:!0},max:{type:String,value:"",sync:!0},step:{type:Number,sync:!0},_comboBoxValue:{type:String,sync:!0,observer:"__comboBoxValueChanged"},_inputContainer:{type:Object}}}static get observers(){return["_openedOrItemsChanged(opened, _dropdownItems)","_updateScroller(opened, _dropdownItems, _focusedIndex, _theme, _comboBoxValue)","__updateAriaAttributes(_dropdownItems, opened, inputElement)"]}static get defaultI18n(){return k5}static get constraints(){return[...super.constraints,"min","max"]}get _tagNamePrefix(){return"vaadin-time-picker"}get clearElement(){return this.$.clearButton}get i18n(){return super.i18n}set i18n(t){super.i18n=t}get __unparsableValue(){return this._inputElementValue&&!this.__effectiveI18n.parseTime(this._inputElementValue)?this._inputElementValue:""}ready(){super.ready(),this.addController(new kg(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t},{uniqueIdPrefix:"search-input"})),this.addController(new k_(this.inputElement,this._labelController)),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._toggleElement=this.$.toggleButton,this._tooltipController=new w7(this),this._tooltipController.setShouldShow(t=>!t.opened),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}updated(t){super.updated(t),["__effectiveI18n","min","max","step"].some(e=>t.has(e))&&this.__updateDropdownItems(),t.has("step")&&this.__updateValue(this.__getTimeObject(this.value)),t.has("__effectiveI18n")&&this.value&&this.__updateInputValue(this.__getTimeObject(this.value))}checkValidity(){return!!(this.inputElement.checkValidity()&&(!this.value||this._timeAllowed(k1(this.value)))&&(!this._comboBoxValue||this.__effectiveI18n.parseTime(this._comboBoxValue)))}_getItemLabel(t){return t?t.label:""}_updateScroller(t,e,i,n,r){t&&(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),this._scroller.setProperties({items:t?e:[],opened:t,focusedIndex:i,theme:n,selectedItem:e?.find(t=>t.value===r)})}_openedOrItemsChanged(t,e){this._overlayOpened=t&&!!e?.length}_onClosed(){this._commitValue()}_onEscapeCancel(){this._inputElementValue=this._comboBoxValue,this._closeOrCommit()}_onClearAction(){this._comboBoxValue="",this._inputElementValue="",this.__commitValueChange()}_commitValue(){if(this._focusedIndex>-1){let t=this._dropdownItems[this._focusedIndex],e=this._getItemLabel(t);this._inputElementValue=e,this._comboBoxValue=e,this._focusedIndex=-1}else""===this._inputElementValue||void 0===this._inputElementValue?this._comboBoxValue="":this._comboBoxValue=this._inputElementValue;this.__commitValueChange(),this._clearSelectionRange()}_closeOrCommit(){this.opened?this.close():this._commitValue()}_revertInputValue(){this._inputElementValue=this._comboBoxValue,this._clearSelectionRange()}_setFocused(t){super._setFocused(t),!t&&!this._closeOnBlurIsPrevented&&document.hasFocus()&&this._requestValidation()}__validDayDivisor(t){return!t||86400%t==0||t<1&&t%1*1e3%1==0}_onKeyDown(t){if(super._onKeyDown(t),this.readonly||this.disabled||this._dropdownItems.length)return;let e=this.__validDayDivisor(this.step)&&this.step||60;40===t.keyCode?this.__onArrowPressWithStep(-e):38===t.keyCode&&this.__onArrowPressWithStep(e)}__onArrowPressWithStep(t){let e=this.__addStep(this.__getMsec(this.__memoValue),t,!0);this.__memoValue=e,this.__useMemo=!0,this._comboBoxValue=this.__effectiveI18n.formatTime(e),this.__useMemo=!1,this.__commitValueChange()}__commitValueChange(){let t=this.__unparsableValue;this.__committedValue!==this.value?(this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==t&&(this._requestValidation(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=t}__getMsec(t){let e=60*(t?.hours||0)*6e4;return e+=60*(t?.minutes||0)*1e3,e+=1e3*(t?.seconds||0),e+=parseInt(t?.milliseconds)||0}__getTimeObject(t){return k2(k1(t),this.step)}__getSec(t){let e=60*(t?.hours||0)*60;return e+=60*(t?.minutes||0),e+=t?.seconds||0,e+=(t?.milliseconds||0)/1e3}__addStep(t,e,i){0===t&&e<0&&(t=864e5);let n=1e3*e,r=t%n;n<0&&r&&i?t-=r:n>0&&r&&i?t-=r-n:t+=n;let o=Math.floor(t/1e3/60/60),a=Math.floor((t-=1e3*o*3600)/1e3/60),s=Math.floor((t-=1e3*a*60)/1e3);return t-=1e3*s,{hours:o<24?o:0,minutes:a,seconds:s,milliseconds:t}}__updateDropdownItems(){let t=this.__getSec(this.__getTimeObject(this.min||k3)),e=this.__getSec(this.__getTimeObject(this.max||k4));this._dropdownItems=this.__generateDropdownList(t,e,this.step)}__updateAriaAttributes(t,e,i){void 0!==t&&void 0!==i&&(0===t.length?(i.removeAttribute("role"),i.removeAttribute("aria-expanded")):(i.setAttribute("role","combobox"),i.setAttribute("aria-expanded",!!e)))}__generateDropdownList(t,e,i){if(i<900||!this.__validDayDivisor(i))return[];let n=[];i||(i=3600);let r=-i+t;for(;r+i>=t&&r+i<=e;){let t=k2(this.__addStep(1e3*r,i),i);r+=i;let e=this.__effectiveI18n.formatTime(t);n.push({label:e,value:e})}return n}_valueChanged(t,e){let i=this.__memoValue=this.__getTimeObject(t),n=kQ(i)||"";this.__keepCommittedValue||(this.__committedValue=t,this.__committedUnparsableValue=""),""===t||null===t||i?t!==n?this.value=n:this.__keepInvalidInput?delete this.__keepInvalidInput:this.__updateInputValue(i):this.value=e??"",this._toggleHasValue(this._hasValue)}__comboBoxValueChanged(t,e){if(""===t&&void 0===e)return;let i=k2(this.__useMemo?this.__memoValue:this.__effectiveI18n.parseTime(t),this.step),n=this.__effectiveI18n.formatTime(i)||"";i?t!==n?this._comboBoxValue=n:(this.__keepCommittedValue=!0,this.__updateValue(i),this.__keepCommittedValue=!1):(""!==this.value&&""!==t&&(this.__keepInvalidInput=!0),this.__keepCommittedValue=!0,this.value="",this.__keepCommittedValue=!1)}__updateValue(t){let e=kQ(k2(t,this.step))||"";this.value=e,this.__updateInputValue(t)}__updateInputValue(t){let e=this.__effectiveI18n.formatTime(k2(t,this.step))||"";this._inputElementValue=e,this._comboBoxValue=e}_timeAllowed(t){let e=k1(this.min||k3),i=k1(this.max||k4);return(!e||this.__getMsec(t)>=this.__getMsec(e))&&(!i||this.__getMsec(t)<=this.__getMsec(i))}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t),this.opened&&this._scroller.requestContentUpdate()}_onHostClick(t){let e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._inputContainer))&&super._onHostClick(t)}_onChange(t){t.stopPropagation()}};class k7 extends k6(wo(w5(xK(wt(xx))))){static get is(){return"vaadin-time-picker"}static get styles(){return[kv,kq]}render(){return xr`
1465
1473
  <div class="vaadin-time-picker-container">
1466
1474
  <div part="label">
1467
1475
  <slot name="label"></slot>
@@ -1504,7 +1512,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1504
1512
  >
1505
1513
  <slot name="overlay"></slot>
1506
1514
  </vaadin-time-picker-overlay>
1507
- `}}xz(k4);let k6=bO`
1515
+ `}}xz(k7);let k8=bO`
1508
1516
  .vaadin-date-time-picker-container {
1509
1517
  width: calc(var(--vaadin-field-default-width, 12em) * 2 + var(--vaadin-date-time-picker-gap, var(--vaadin-gap-s)));
1510
1518
  }
@@ -1523,7 +1531,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1523
1531
  min-width: 0;
1524
1532
  flex: 1 1.65 auto;
1525
1533
  }
1526
- `,k7=Object.keys(kI),k8=Object.keys(k1),k9={...kI,...k1};class Ct extends w6{constructor(t,e){super(t,`${e}-picker`,`vaadin-${e}-picker`,{initializer:(t,i)=>{i[`__${e}Picker`]=t}})}}let Ce=t=>class extends kM(kd(SA(SM(t)))){static get properties(){return{name:{type:String},value:{type:String,notify:!0,value:"",observer:"__valueChanged",sync:!0},min:{type:String,observer:"__minChanged",sync:!0},max:{type:String,observer:"__maxChanged",sync:!0},__minDateTime:{type:Date,value:"",sync:!0},__maxDateTime:{type:Date,value:"",sync:!0},datePlaceholder:{type:String,sync:!0},timePlaceholder:{type:String,sync:!0},step:{type:Number,sync:!0},initialPosition:{type:String,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},autofocus:{type:Boolean},__selectedDateTime:{type:Date,sync:!0},__datePicker:{type:Object,sync:!0,observer:"__datePickerChanged"},__timePicker:{type:Object,sync:!0,observer:"__timePickerChanged"}}}static get observers(){return["__selectedDateTimeChanged(__selectedDateTime)","__datePlaceholderChanged(datePlaceholder, __datePicker)","__timePlaceholderChanged(timePlaceholder, __timePicker)","__stepChanged(step, __timePicker)","__initialPositionChanged(initialPosition, __datePicker)","__showWeekNumbersChanged(showWeekNumbers, __datePicker)","__requiredChanged(required, __datePicker, __timePicker)","__invalidChanged(invalid, __datePicker, __timePicker)","__disabledChanged(disabled, __datePicker, __timePicker)","__readonlyChanged(readonly, __datePicker, __timePicker)","__i18nChanged(__effectiveI18n, __datePicker, __timePicker)","__autoOpenDisabledChanged(autoOpenDisabled, __datePicker, __timePicker)","__themeChanged(_theme, __datePicker, __timePicker)","__pickersChanged(__datePicker, __timePicker)","__labelOrAccessibleNameChanged(label, accessibleName, __effectiveI18n, __datePicker, __timePicker)"]}static get defaultI18n(){return k9}constructor(){super(),this.__defaultDateMinMaxValue=void 0,this.__defaultTimeMinValue="00:00:00.000",this.__defaultTimeMaxValue="23:59:59.999",this.__onGlobalClick=this.__onGlobalClick.bind(this),this.__changeEventHandler=this.__changeEventHandler.bind(this),this.__valueChangedEventHandler=this.__valueChangedEventHandler.bind(this),this.__openedChangedEventHandler=this.__openedChangedEventHandler.bind(this)}get i18n(){return super.i18n}set i18n(t){super.i18n=t}get __pickers(){return[this.__datePicker,this.__timePicker]}get __filledPickers(){return this.__pickers.filter(t=>t.value||t.__unparsableValue)}get __formattedValue(){let t=this.__pickers.map(t=>t.value);return t.every(Boolean)?t.join("T"):""}get __unparsableValue(){return this.__filledPickers.length>0&&!this.__pickers.every(t=>t.value)?this.__pickers.map(t=>t.value||t.__unparsableValue).join("T"):""}ready(){super.ready(),this._datePickerController=new Ct(this,"date"),this.addController(this._datePickerController),this._timePickerController=new Ct(this,"time"),this.addController(this._timePickerController),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>this.focus()),this.setAttribute("role","group"),this._tooltipController=new w7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setShouldShow(t=>t.__datePicker&&!t.__datePicker.opened&&t.__timePicker&&!t.__timePicker.opened),this.ariaTarget=this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onGlobalClick,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.__onGlobalClick,!0)}focus(t){this.__datePicker&&this.__datePicker.focus(t)}__onGlobalClick(t){!(this.__datePicker.opened||this.__timePicker.opened)||t.composedPath().every(t=>![this.__datePicker,this.__datePicker.$.overlay,this.__timePicker,this.__timePicker.$.overlay].includes(t))&&(this.__outsideClickInProgress=!0,setTimeout(()=>{this.__outsideClickInProgress=!1}))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.__commitPendingValueChange()}_shouldRemoveFocus(t){let e=t.relatedTarget;return!(this.__datePicker.opened||this.__timePicker.opened||this.__datePicker.contains(e)||this.__timePicker.contains(e))}__syncI18n(t,e,i){let n={};i.forEach(t=>{e?.hasOwnProperty(t)&&(n[t]=e[t])}),t.i18n=n}__changeEventHandler(t){t.stopPropagation();let e=this.invalid,i=this.__filledPickers;(!(1===i.length&&i[0].checkValidity())||e)&&this.__hasPendingValueChange&&this.__commitPendingValueChange()}__openedChangedEventHandler(){let t=this.__datePicker.opened||this.__timePicker.opened;this.style.pointerEvents=t?"auto":"",!t&&this.__outsideClickInProgress&&this.__commitPendingValueChange()}__addInputListeners(t){t.addEventListener("change",this.__changeEventHandler),t.addEventListener("unparsable-change",this.__changeEventHandler),t.addEventListener("value-changed",this.__valueChangedEventHandler),t.addEventListener("opened-changed",this.__openedChangedEventHandler)}__removeInputListeners(t){t.removeEventListener("change",this.__changeEventHandler),t.removeEventListener("unparsable-change",this.__changeEventHandler),t.removeEventListener("value-changed",this.__valueChangedEventHandler),t.removeEventListener("opened-changed",this.__openedChangedEventHandler)}__isDefaultPicker(t,e){let i=this[`_${e}PickerController`];return i&&t===i.defaultNode}__datePickerChanged(t,e){t&&(e&&(this.__removeInputListeners(e),e.remove()),this.__addInputListeners(t),this.__isDefaultPicker(t,"date")||(this.datePlaceholder=t.placeholder,this.initialPosition=t.initialPosition,this.showWeekNumbers=t.showWeekNumbers),t.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue),t.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue),t.manualValidation=!0)}__timePickerChanged(t,e){t&&(e&&(this.__removeInputListeners(e),e.remove()),this.__addInputListeners(t),this.__isDefaultPicker(t,"time")||(this.timePlaceholder=t.placeholder,this.step=t.step),this.__updateTimePickerMinMax(),t.manualValidation=!0)}__updateTimePickerMinMax(){if(this.__timePicker&&this.__datePicker){let t=this.__parseDate(this.__datePicker.value),e=Sz(this.__minDateTime,this.__maxDateTime,SN);this.__minDateTime&&Sz(t,this.__minDateTime,SN)||e?this.__timePicker.min=this.__dateToIsoTimeString(this.__minDateTime):this.__timePicker.min=this.__defaultTimeMinValue,this.__maxDateTime&&Sz(t,this.__maxDateTime,SN)||e?this.__timePicker.max=this.__dateToIsoTimeString(this.__maxDateTime):this.__timePicker.max=this.__defaultTimeMaxValue}}__i18nChanged(t,e,i){e&&this.__isDefaultPicker(e,"date")&&this.__syncI18n(e,t,k7),i&&this.__isDefaultPicker(i,"time")&&this.__syncI18n(i,t,k8)}__labelOrAccessibleNameChanged(t,e,i,n,r){let o=e||t||"";n&&(n.accessibleName=`${o} ${i.dateLabel||""}`.trim()),r&&(r.accessibleName=`${o} ${i.timeLabel||""}`.trim())}__datePlaceholderChanged(t,e){e&&(e.placeholder=t)}__timePlaceholderChanged(t,e){e&&(e.placeholder=t)}__stepChanged(t,e){e&&e.step!==t&&(e.step=t)}__initialPositionChanged(t,e){e&&(e.initialPosition=t)}__showWeekNumbersChanged(t,e){e&&(e.showWeekNumbers=t)}__invalidChanged(t,e,i){e&&(e.invalid=t),i&&(i.invalid=t)}__requiredChanged(t,e,i){e&&(e.required=t),i&&(i.required=t),this.__oldRequired&&!t&&this._requestValidation(),this.__oldRequired=t}__disabledChanged(t,e,i){e&&(e.disabled=t),i&&(i.disabled=t)}__readonlyChanged(t,e,i){e&&(e.readonly=t),i&&(i.readonly=t)}__parseDate(t){let e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;let i=new Date(Date.UTC(0,0));return i.setUTCFullYear(parseInt(e[1],10)),i.setUTCMonth(parseInt(e[2],10)-1),i.setUTCDate(parseInt(e[3],10)),i}__formatDateISO(t,e){return t?t instanceof Date?S$({year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate()}):"":e}__parseDateTime(t){let[e,i]=t.split("T");if(!(e&&i))return;let n=this.__parseDate(e);if(!n)return;let r=kJ(i);if(r)return n.setUTCHours(parseInt(r.hours)),n.setUTCMinutes(parseInt(r.minutes||0)),n.setUTCSeconds(parseInt(r.seconds||0)),n.setUTCMilliseconds(parseInt(r.milliseconds||0)),n}__formatDateTime(t){if(!t)return"";let e=this.__formatDateISO(t,""),i=this.__dateToIsoTimeString(t);return`${e}T${i}`}__dateToIsoTimeString(t){return kX(k0({hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds(),milliseconds:t.getUTCMilliseconds()},this.step))}checkValidity(){let t=this.__pickers.some(t=>!t.checkValidity()),e=1===this.__filledPickers.length,i=this.required&&this.__pickers.some(t=>!t.value);return!t&&!i&&!e}__commitPendingValueChange(){this._requestValidation(),this.__committedValue!==this.value?this.dispatchEvent(new CustomEvent("change",{bubbles:!0})):this.__committedUnparsableValue!==this.__unparsableValue&&this.dispatchEvent(new CustomEvent("unparsable-change")),this.__committedValue=this.value,this.__committedUnparsableValue=this.__unparsableValue}get __hasPendingValueChange(){return this.__committedValue!==this.value||this.__committedUnparsableValue!==this.__unparsableValue}__dateTimeEquals(t,e){return!!Sz(t,e,SN)&&t.getUTCHours()===e.getUTCHours()&&t.getUTCMinutes()===e.getUTCMinutes()&&t.getUTCSeconds()===e.getUTCSeconds()&&t.getUTCMilliseconds()===e.getUTCMilliseconds()}__handleDateTimeChange(t,e,i,n){if(!i){this[t]="",this[e]="";return}let r=this.__parseDateTime(i);if(!r){this[t]=n;return}this.__dateTimeEquals(this[e],r)||(this[e]=r)}__valueChanged(t,e){this.__handleDateTimeChange("value","__selectedDateTime",t,e),this.__keepCommittedValue||(this.__committedValue=t,this.__committedUnparsableValue=""),this.toggleAttribute("has-value",!!t),this.__updateTimePickerMinMax()}__dispatchChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__minChanged(t,e){this.__handleDateTimeChange("min","__minDateTime",t,e),this.__datePicker&&(this.__datePicker.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__maxChanged(t,e){this.__handleDateTimeChange("max","__maxDateTime",t,e),this.__datePicker&&(this.__datePicker.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__selectedDateTimeChanged(t){let e=this.__formatDateTime(t);if(this.value!==e&&(this.value=e),this.__datePicker&&this.__datePicker.$&&!this.__ignoreInputValueChange){this.__ignoreInputValueChange=!0;let[t,e]=this.value.split("T");this.__datePicker.value=t||"",this.__timePicker.value=e||"",this.__ignoreInputValueChange=!1}}__valueChangedEventHandler(){this.__ignoreInputValueChange||(this.__ignoreInputValueChange=!0,this.__keepCommittedValue=!0,this.__updateTimePickerMinMax(),this.value=this.__formattedValue,this.__keepCommittedValue=!1,this.__ignoreInputValueChange=!1)}__autoOpenDisabledChanged(t,e,i){e&&(e.autoOpenDisabled=t),i&&(i.autoOpenDisabled=t)}__themeChanged(t,e,i){e&&i&&[e,i].forEach(e=>{t?e.setAttribute("theme",t):e.removeAttribute("theme")})}__pickersChanged(t,e){!t||!e||this.__isDefaultPicker(t,"date")===this.__isDefaultPicker(e,"time")&&(t.value?this.__valueChangedEventHandler():this.value&&(this.__selectedDateTimeChanged(this.__selectedDateTime),(this.min&&this.__minDateTime||this.max&&this.__maxDateTime)&&this._requestValidation()))}};class Ci extends Ce(wo(w5(xK(wt(xx))))){static get is(){return"vaadin-date-time-picker"}static get styles(){return[kv,k6]}render(){return xr`
1534
+ `,k9=Object.keys(kE),Ct=Object.keys(k5),Ce={...kE,...k5};class Ci extends w6{constructor(t,e){super(t,`${e}-picker`,`vaadin-${e}-picker`,{initializer:(t,i)=>{i[`__${e}Picker`]=t}})}}let Cn=t=>class extends kI(kd(SA(SM(t)))){static get properties(){return{name:{type:String},value:{type:String,notify:!0,value:"",observer:"__valueChanged",sync:!0},min:{type:String,observer:"__minChanged",sync:!0},max:{type:String,observer:"__maxChanged",sync:!0},__minDateTime:{type:Date,value:"",sync:!0},__maxDateTime:{type:Date,value:"",sync:!0},datePlaceholder:{type:String,sync:!0},timePlaceholder:{type:String,sync:!0},step:{type:Number,sync:!0},initialPosition:{type:String,sync:!0},showWeekNumbers:{type:Boolean,value:!1,sync:!0},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},autofocus:{type:Boolean},__selectedDateTime:{type:Date,sync:!0},__datePicker:{type:Object,sync:!0,observer:"__datePickerChanged"},__timePicker:{type:Object,sync:!0,observer:"__timePickerChanged"}}}static get observers(){return["__selectedDateTimeChanged(__selectedDateTime)","__datePlaceholderChanged(datePlaceholder, __datePicker)","__timePlaceholderChanged(timePlaceholder, __timePicker)","__stepChanged(step, __timePicker)","__initialPositionChanged(initialPosition, __datePicker)","__showWeekNumbersChanged(showWeekNumbers, __datePicker)","__requiredChanged(required, __datePicker, __timePicker)","__invalidChanged(invalid, __datePicker, __timePicker)","__disabledChanged(disabled, __datePicker, __timePicker)","__readonlyChanged(readonly, __datePicker, __timePicker)","__i18nChanged(__effectiveI18n, __datePicker, __timePicker)","__autoOpenDisabledChanged(autoOpenDisabled, __datePicker, __timePicker)","__themeChanged(_theme, __datePicker, __timePicker)","__pickersChanged(__datePicker, __timePicker)","__labelOrAccessibleNameChanged(label, accessibleName, __effectiveI18n, __datePicker, __timePicker)"]}static get defaultI18n(){return Ce}constructor(){super(),this.__defaultDateMinMaxValue=void 0,this.__defaultTimeMinValue="00:00:00.000",this.__defaultTimeMaxValue="23:59:59.999",this.__onGlobalClick=this.__onGlobalClick.bind(this),this.__changeEventHandler=this.__changeEventHandler.bind(this),this.__valueChangedEventHandler=this.__valueChangedEventHandler.bind(this),this.__openedChangedEventHandler=this.__openedChangedEventHandler.bind(this)}get i18n(){return super.i18n}set i18n(t){super.i18n=t}get __pickers(){return[this.__datePicker,this.__timePicker]}get __filledPickers(){return this.__pickers.filter(t=>t.value||t.__unparsableValue)}get __formattedValue(){let t=this.__pickers.map(t=>t.value);return t.every(Boolean)?t.join("T"):""}get __unparsableValue(){return this.__filledPickers.length>0&&!this.__pickers.every(t=>t.value)?this.__pickers.map(t=>t.value||t.__unparsableValue).join("T"):""}ready(){super.ready(),this._datePickerController=new Ci(this,"date"),this.addController(this._datePickerController),this._timePickerController=new Ci(this,"time"),this.addController(this._timePickerController),this.autofocus&&!this.disabled&&window.requestAnimationFrame(()=>this.focus()),this.setAttribute("role","group"),this._tooltipController=new w7(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setShouldShow(t=>t.__datePicker&&!t.__datePicker.opened&&t.__timePicker&&!t.__timePicker.opened),this.ariaTarget=this}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.__onGlobalClick,!0)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.__onGlobalClick,!0)}focus(t){this.__datePicker&&this.__datePicker.focus(t)}__onGlobalClick(t){!(this.__datePicker.opened||this.__timePicker.opened)||t.composedPath().every(t=>![this.__datePicker,this.__datePicker.$.overlay,this.__timePicker,this.__timePicker.$.overlay].includes(t))&&(this.__outsideClickInProgress=!0,setTimeout(()=>{this.__outsideClickInProgress=!1}))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.__commitPendingValueChange()}_shouldRemoveFocus(t){let e=t.relatedTarget;return!(this.__datePicker.opened||this.__timePicker.opened||this.__datePicker.contains(e)||this.__timePicker.contains(e))}__syncI18n(t,e,i){let n={};i.forEach(t=>{e?.hasOwnProperty(t)&&(n[t]=e[t])}),t.i18n=n}__changeEventHandler(t){t.stopPropagation();let e=this.invalid,i=this.__filledPickers;(!(1===i.length&&i[0].checkValidity())||e)&&this.__hasPendingValueChange&&this.__commitPendingValueChange()}__openedChangedEventHandler(){let t=this.__datePicker.opened||this.__timePicker.opened;this.style.pointerEvents=t?"auto":"",!t&&this.__outsideClickInProgress&&this.__commitPendingValueChange(),t||this.contains(this.getRootNode().activeElement)||super._setFocused(!1)}__addInputListeners(t){t.addEventListener("change",this.__changeEventHandler),t.addEventListener("unparsable-change",this.__changeEventHandler),t.addEventListener("value-changed",this.__valueChangedEventHandler),t.addEventListener("opened-changed",this.__openedChangedEventHandler)}__removeInputListeners(t){t.removeEventListener("change",this.__changeEventHandler),t.removeEventListener("unparsable-change",this.__changeEventHandler),t.removeEventListener("value-changed",this.__valueChangedEventHandler),t.removeEventListener("opened-changed",this.__openedChangedEventHandler)}__isDefaultPicker(t,e){let i=this[`_${e}PickerController`];return i&&t===i.defaultNode}__datePickerChanged(t,e){t&&(e&&(this.__removeInputListeners(e),e.remove()),this.__addInputListeners(t),this.__isDefaultPicker(t,"date")||(this.datePlaceholder=t.placeholder,this.initialPosition=t.initialPosition,this.showWeekNumbers=t.showWeekNumbers),t.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue),t.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue),t.manualValidation=!0)}__timePickerChanged(t,e){t&&(e&&(this.__removeInputListeners(e),e.remove()),this.__addInputListeners(t),this.__isDefaultPicker(t,"time")||(this.timePlaceholder=t.placeholder,this.step=t.step),this.__updateTimePickerMinMax(),t.manualValidation=!0)}__updateTimePickerMinMax(){if(this.__timePicker&&this.__datePicker){let t=this.__parseDate(this.__datePicker.value),e=Sz(this.__minDateTime,this.__maxDateTime,SN);this.__minDateTime&&Sz(t,this.__minDateTime,SN)||e?this.__timePicker.min=this.__dateToIsoTimeString(this.__minDateTime):this.__timePicker.min=this.__defaultTimeMinValue,this.__maxDateTime&&Sz(t,this.__maxDateTime,SN)||e?this.__timePicker.max=this.__dateToIsoTimeString(this.__maxDateTime):this.__timePicker.max=this.__defaultTimeMaxValue}}__i18nChanged(t,e,i){e&&this.__isDefaultPicker(e,"date")&&this.__syncI18n(e,t,k9),i&&this.__isDefaultPicker(i,"time")&&this.__syncI18n(i,t,Ct)}__labelOrAccessibleNameChanged(t,e,i,n,r){let o=e||t||"";n&&(n.accessibleName=`${o} ${i.dateLabel||""}`.trim()),r&&(r.accessibleName=`${o} ${i.timeLabel||""}`.trim())}__datePlaceholderChanged(t,e){e&&(e.placeholder=t)}__timePlaceholderChanged(t,e){e&&(e.placeholder=t)}__stepChanged(t,e){e&&e.step!==t&&(e.step=t)}__initialPositionChanged(t,e){e&&(e.initialPosition=t)}__showWeekNumbersChanged(t,e){e&&(e.showWeekNumbers=t)}__invalidChanged(t,e,i){e&&(e.invalid=t),i&&(i.invalid=t)}__requiredChanged(t,e,i){e&&(e.required=t),i&&(i.required=t),this.__oldRequired&&!t&&this._requestValidation(),this.__oldRequired=t}__disabledChanged(t,e,i){e&&(e.disabled=t),i&&(i.disabled=t)}__readonlyChanged(t,e,i){e&&(e.readonly=t),i&&(i.readonly=t)}__parseDate(t){let e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;let i=new Date(Date.UTC(0,0));return i.setUTCFullYear(parseInt(e[1],10)),i.setUTCMonth(parseInt(e[2],10)-1),i.setUTCDate(parseInt(e[3],10)),i}__formatDateISO(t,e){return t?t instanceof Date?S$({year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate()}):"":e}__parseDateTime(t){let[e,i]=t.split("T");if(!(e&&i))return;let n=this.__parseDate(e);if(!n)return;let r=k1(i);if(r)return n.setUTCHours(parseInt(r.hours)),n.setUTCMinutes(parseInt(r.minutes||0)),n.setUTCSeconds(parseInt(r.seconds||0)),n.setUTCMilliseconds(parseInt(r.milliseconds||0)),n}__formatDateTime(t){if(!t)return"";let e=this.__formatDateISO(t,""),i=this.__dateToIsoTimeString(t);return`${e}T${i}`}__dateToIsoTimeString(t){return kQ(k2({hours:t.getUTCHours(),minutes:t.getUTCMinutes(),seconds:t.getUTCSeconds(),milliseconds:t.getUTCMilliseconds()},this.step))}checkValidity(){let t=this.__pickers.some(t=>!t.checkValidity()),e=1===this.__filledPickers.length,i=this.required&&this.__pickers.some(t=>!t.value);return!t&&!i&&!e}__commitPendingValueChange(){this._requestValidation(),this.__committedValue!==this.value?this.dispatchEvent(new CustomEvent("change",{bubbles:!0})):this.__committedUnparsableValue!==this.__unparsableValue&&this.dispatchEvent(new CustomEvent("unparsable-change")),this.__committedValue=this.value,this.__committedUnparsableValue=this.__unparsableValue}get __hasPendingValueChange(){return this.__committedValue!==this.value||this.__committedUnparsableValue!==this.__unparsableValue}__dateTimeEquals(t,e){return!!Sz(t,e,SN)&&t.getUTCHours()===e.getUTCHours()&&t.getUTCMinutes()===e.getUTCMinutes()&&t.getUTCSeconds()===e.getUTCSeconds()&&t.getUTCMilliseconds()===e.getUTCMilliseconds()}__handleDateTimeChange(t,e,i,n){if(!i){this[t]="",this[e]="";return}let r=this.__parseDateTime(i);if(!r){this[t]=n;return}this.__dateTimeEquals(this[e],r)||(this[e]=r)}__valueChanged(t,e){this.__handleDateTimeChange("value","__selectedDateTime",t,e),this.__keepCommittedValue||(this.__committedValue=t,this.__committedUnparsableValue=""),this.toggleAttribute("has-value",!!t),this.__updateTimePickerMinMax()}__dispatchChange(){this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__minChanged(t,e){this.__handleDateTimeChange("min","__minDateTime",t,e),this.__datePicker&&(this.__datePicker.min=this.__formatDateISO(this.__minDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__maxChanged(t,e){this.__handleDateTimeChange("max","__maxDateTime",t,e),this.__datePicker&&(this.__datePicker.max=this.__formatDateISO(this.__maxDateTime,this.__defaultDateMinMaxValue)),this.__updateTimePickerMinMax(),this.__datePicker&&this.__timePicker&&this.value&&this._requestValidation()}__selectedDateTimeChanged(t){let e=this.__formatDateTime(t);if(this.value!==e&&(this.value=e),this.__datePicker&&this.__datePicker.$&&!this.__ignoreInputValueChange){this.__ignoreInputValueChange=!0;let[t,e]=this.value.split("T");this.__datePicker.value=t||"",this.__timePicker.value=e||"",this.__ignoreInputValueChange=!1}}__valueChangedEventHandler(){this.__ignoreInputValueChange||(this.__ignoreInputValueChange=!0,this.__keepCommittedValue=!0,this.__updateTimePickerMinMax(),this.value=this.__formattedValue,this.__keepCommittedValue=!1,this.__ignoreInputValueChange=!1)}__autoOpenDisabledChanged(t,e,i){e&&(e.autoOpenDisabled=t),i&&(i.autoOpenDisabled=t)}__themeChanged(t,e,i){e&&i&&[e,i].forEach(e=>{t?e.setAttribute("theme",t):e.removeAttribute("theme")})}__pickersChanged(t,e){!t||!e||this.__isDefaultPicker(t,"date")===this.__isDefaultPicker(e,"time")&&(t.value?this.__valueChangedEventHandler():this.value&&(this.__selectedDateTimeChanged(this.__selectedDateTime),(this.min&&this.__minDateTime||this.max&&this.__maxDateTime)&&this._requestValidation()))}};class Cr extends Cn(wo(w5(xK(wt(xx))))){static get is(){return"vaadin-date-time-picker"}static get styles(){return[kv,k8]}render(){return xr`
1527
1535
  <div class="vaadin-date-time-picker-container">
1528
1536
  <div part="label" @click="${this.focus}">
1529
1537
  <slot name="label"></slot>
@@ -1545,7 +1553,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1545
1553
  </div>
1546
1554
 
1547
1555
  <slot name="tooltip"></slot>
1548
- `}}xz(Ci);let Cn=class extends Ci{static getLocalizedISOString(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(0,16)}};Cn=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}([xS("or-vaadin-date-time-picker")],Cn);class Cr{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Cr.version}static addUnaryOp(t){return Cr.max_unop_len=Math.max(t.length,Cr.max_unop_len),Cr.unary_ops[t]=1,Cr}static addBinaryOp(t,e,i){return Cr.max_binop_len=Math.max(t.length,Cr.max_binop_len),Cr.binary_ops[t]=e,i?Cr.right_associative.add(t):Cr.right_associative.delete(t),Cr}static addIdentifierChar(t){return Cr.additional_identifier_chars.add(t),Cr}static addLiteral(t,e){return Cr.literals[t]=e,Cr}static removeUnaryOp(t){return delete Cr.unary_ops[t],t.length===Cr.max_unop_len&&(Cr.max_unop_len=Cr.getMaxKeyLen(Cr.unary_ops)),Cr}static removeAllUnaryOps(){return Cr.unary_ops={},Cr.max_unop_len=0,Cr}static removeIdentifierChar(t){return Cr.additional_identifier_chars.delete(t),Cr}static removeBinaryOp(t){return delete Cr.binary_ops[t],t.length===Cr.max_binop_len&&(Cr.max_binop_len=Cr.getMaxKeyLen(Cr.binary_ops)),Cr.right_associative.delete(t),Cr}static removeAllBinaryOps(){return Cr.binary_ops={},Cr.max_binop_len=0,Cr}static removeLiteral(t){return delete Cr.literals[t],Cr}static removeAllLiterals(){return Cr.literals={},Cr}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(t){this.expr=t,this.index=0}static parse(t){return new Cr(t).parse()}static getMaxKeyLen(t){return Math.max(0,...Object.keys(t).map(t=>t.length))}static isDecimalDigit(t){return t>=48&&t<=57}static binaryPrecedence(t){return Cr.binary_ops[t]||0}static isIdentifierStart(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!Cr.binary_ops[String.fromCharCode(t)]||Cr.additional_identifier_chars.has(String.fromCharCode(t))}static isIdentifierPart(t){return Cr.isIdentifierStart(t)||Cr.isDecimalDigit(t)}throwError(t){let e=Error(t+" at character "+this.index);throw e.index=this.index,e.description=t,e}runHook(t,e){if(Cr.hooks[t]){let i={context:this,node:e};return Cr.hooks.run(t,i),i.node}return e}searchHook(t){if(Cr.hooks[t]){let e={context:this};return Cr.hooks[t].find(function(t){return t.call(e.context,e),e.node}),e.node}}gobbleSpaces(){let t=this.code;for(;t===Cr.SPACE_CODE||t===Cr.TAB_CODE||t===Cr.LF_CODE||t===Cr.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let t=this.gobbleExpressions(),e=1===t.length?t[0]:{type:Cr.COMPOUND,body:t};return this.runHook("after-all",e)}gobbleExpressions(t){let e=[],i,n;for(;this.index<this.expr.length;)if((i=this.code)===Cr.SEMCOL_CODE||i===Cr.COMMA_CODE)this.index++;else if(n=this.gobbleExpression())e.push(n);else if(this.index<this.expr.length){if(i===t)break;this.throwError('Unexpected "'+this.char+'"')}return e}gobbleExpression(){let t=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",t)}gobbleBinaryOp(){this.gobbleSpaces();let t=this.expr.substr(this.index,Cr.max_binop_len),e=t.length;for(;e>0;){if(Cr.binary_ops.hasOwnProperty(t)&&(!Cr.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!Cr.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=e,t;t=t.substr(0,--e)}return!1}gobbleBinaryExpression(){let t,e,i,n,r,o,a,s,l;if(!(o=this.gobbleToken())||!(e=this.gobbleBinaryOp()))return o;for(r={value:e,prec:Cr.binaryPrecedence(e),right_a:Cr.right_associative.has(e)},(a=this.gobbleToken())||this.throwError("Expected expression after "+e),n=[o,r,a];e=this.gobbleBinaryOp();){if(0===(i=Cr.binaryPrecedence(e))){this.index-=e.length;break}r={value:e,prec:i,right_a:Cr.right_associative.has(e)},l=e;let s=t=>r.right_a&&t.right_a?i>t.prec:i<=t.prec;for(;n.length>2&&s(n[n.length-2]);)a=n.pop(),e=n.pop().value,o=n.pop(),t={type:Cr.BINARY_EXP,operator:e,left:o,right:a},n.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+l),n.push(r,t)}for(s=n.length-1,t=n[s];s>1;)t={type:Cr.BINARY_EXP,operator:n[s-1].value,left:n[s-2],right:t},s-=2;return t}gobbleToken(){let t,e,i,n;if(this.gobbleSpaces(),n=this.searchHook("gobble-token"))return this.runHook("after-token",n);if(t=this.code,Cr.isDecimalDigit(t)||t===Cr.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===Cr.SQUOTE_CODE||t===Cr.DQUOTE_CODE)n=this.gobbleStringLiteral();else if(t===Cr.OBRACK_CODE)n=this.gobbleArray();else{for(i=(e=this.expr.substr(this.index,Cr.max_unop_len)).length;i>0;){if(Cr.unary_ops.hasOwnProperty(e)&&(!Cr.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!Cr.isIdentifierPart(this.expr.charCodeAt(this.index+e.length)))){this.index+=i;let t=this.gobbleToken();return t||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:Cr.UNARY_EXP,operator:e,argument:t,prefix:!0})}e=e.substr(0,--i)}Cr.isIdentifierStart(t)?(n=this.gobbleIdentifier(),Cr.literals.hasOwnProperty(n.name)?n={type:Cr.LITERAL,value:Cr.literals[n.name],raw:n.name}:n.name===Cr.this_str&&(n={type:Cr.THIS_EXP})):t===Cr.OPAREN_CODE&&(n=this.gobbleGroup())}return n?(n=this.gobbleTokenProperty(n),this.runHook("after-token",n)):this.runHook("after-token",!1)}gobbleTokenProperty(t){this.gobbleSpaces();let e=this.code;for(;e===Cr.PERIOD_CODE||e===Cr.OBRACK_CODE||e===Cr.OPAREN_CODE||e===Cr.QUMARK_CODE;){let i;if(e===Cr.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==Cr.PERIOD_CODE)break;i=!0,this.index+=2,this.gobbleSpaces(),e=this.code}this.index++,e===Cr.OBRACK_CODE?((t={type:Cr.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(e=this.code)!==Cr.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):e===Cr.OPAREN_CODE?t={type:Cr.CALL_EXP,arguments:this.gobbleArguments(Cr.CPAREN_CODE),callee:t}:(e===Cr.PERIOD_CODE||i)&&(i&&this.index--,this.gobbleSpaces(),t={type:Cr.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),i&&(t.optional=!0),this.gobbleSpaces(),e=this.code}return t}gobbleNumericLiteral(){let t="",e,i;for(;Cr.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(this.code===Cr.PERIOD_CODE)for(t+=this.expr.charAt(this.index++);Cr.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if("e"===(e=this.char)||"E"===e){for(t+=this.expr.charAt(this.index++),("+"===(e=this.char)||"-"===e)&&(t+=this.expr.charAt(this.index++));Cr.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);Cr.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+t+this.char+")")}return i=this.code,Cr.isIdentifierStart(i)?this.throwError("Variable names cannot start with a number ("+t+this.char+")"):(i===Cr.PERIOD_CODE||1===t.length&&t.charCodeAt(0)===Cr.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:Cr.LITERAL,value:parseFloat(t),raw:t}}gobbleStringLiteral(){let t="",e=this.index,i=this.expr.charAt(this.index++),n=!1;for(;this.index<this.expr.length;){let e=this.expr.charAt(this.index++);if(e===i){n=!0;break}if("\\"===e)switch(e=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=e}else t+=e}return n||this.throwError('Unclosed quote after "'+t+'"'),{type:Cr.LITERAL,value:t,raw:this.expr.substring(e,this.index)}}gobbleIdentifier(){let t=this.code,e=this.index;for(Cr.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,Cr.isIdentifierPart(t))this.index++;else break;return{type:Cr.IDENTIFIER,name:this.expr.slice(e,this.index)}}gobbleArguments(t){let e=[],i=!1,n=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let r=this.code;if(r===t){i=!0,this.index++,t===Cr.CPAREN_CODE&&n&&n>=e.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(r===Cr.COMMA_CODE){if(this.index++,++n!==e.length){if(t===Cr.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===Cr.CBRACK_CODE)for(let t=e.length;t<n;t++)e.push(null)}}else if(e.length!==n&&0!==n)this.throwError("Expected comma");else{let t=this.gobbleExpression();t&&t.type!==Cr.COMPOUND||this.throwError("Expected comma"),e.push(t)}}return i||this.throwError("Expected "+String.fromCharCode(t)),e}gobbleGroup(){this.index++;let t=this.gobbleExpressions(Cr.CPAREN_CODE);if(this.code===Cr.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:Cr.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:Cr.ARRAY_EXP,elements:this.gobbleArguments(Cr.CBRACK_CODE)}}}Object.assign(Cr,{hooks:new class{add(t,e,i){if("string"!=typeof arguments[0])for(let t in arguments[0])this.add(t,arguments[0][t],arguments[1]);else(Array.isArray(t)?t:[t]).forEach(function(t){this[t]=this[t]||[],e&&this[t][i?"unshift":"push"](e)},this)}run(t,e){this[t]=this[t]||[],this[t].forEach(function(t){t.call(e&&e.context?e.context:e,e)})}},plugins:new class{constructor(t){this.jsep=t,this.registered={}}register(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(t=>{if("object"!=typeof t||!t.name||!t.init)throw Error("Invalid JSEP plugin format");this.registered[t.name]||(t.init(this.jsep),this.registered[t.name]=t)})}}(Cr),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Cr.max_unop_len=Cr.getMaxKeyLen(Cr.unary_ops),Cr.max_binop_len=Cr.getMaxKeyLen(Cr.binary_ops);let Co=t=>new Cr(t).parse(),Ca=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Cr).filter(t=>!Ca.includes(t)&&void 0===Co[t]).forEach(t=>{Co[t]=Cr[t]}),Co.Jsep=Cr,Co.plugins.register({name:"ternary",init(t){t.hooks.add("after-expression",function(e){if(e.node&&this.code===t.QUMARK_CODE){this.index++;let i=e.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;let r=this.gobbleExpression();if(r||this.throwError("Expected expression"),e.node={type:"ConditionalExpression",test:i,consequent:n,alternate:r},i.operator&&t.binary_ops[i.operator]<=.9){let n=i;for(;n.right.operator&&t.binary_ops[n.right.operator]<=.9;)n=n.right;e.node.test=n.right,n.right=e.node,e.node=i}}else this.throwError("Expected :")}})}});let Cs={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){let e=[t.IDENTIFIER,t.MEMBER_EXP];Cs.assignmentOperators.forEach(e=>t.addBinaryOp(e,Cs.assignmentPrecedence,!0)),t.hooks.add("gobble-token",function(t){let i=this.code;Cs.updateOperators.some(t=>t===i&&t===this.expr.charCodeAt(this.index+1))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===i?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&e.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))}),t.hooks.add("after-token",function(t){if(t.node){let i=this.code;Cs.updateOperators.some(t=>t===i&&t===this.expr.charCodeAt(this.index+1))&&(e.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===i?"++":"--",argument:t.node,prefix:!1})}}),t.hooks.add("after-expression",function(t){t.node&&function t(e){Cs.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",t(e.left),t(e.right)):e.operator||Object.values(e).forEach(e=>{e&&"object"==typeof e&&t(e)})}(t.node)})}};Co.plugins.register({name:"regex",init(t){t.hooks.add("gobble-token",function(e){if(47===this.code){let i=++this.index,n=!1;for(;this.index<this.expr.length;){if(47===this.code&&!n){let n,r=this.expr.slice(i,this.index),o="";for(;++this.index<this.expr.length;){let t=this.code;if(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57)o+=this.char;else break}try{n=new RegExp(r,o)}catch(t){this.throwError(t.message)}return e.node={type:t.LITERAL,value:n,raw:this.expr.slice(i-1,this.index)},e.node=this.gobbleTokenProperty(e.node),e.node}this.code===t.OBRACK_CODE?n=!0:n&&this.code===t.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}},Cs),Co.addUnaryOp("typeof"),Co.addUnaryOp("void"),Co.addLiteral("null",null),Co.addLiteral("undefined",void 0);let Cl=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),Ch={evalAst(t,e){switch(t.type){case"BinaryExpression":case"LogicalExpression":return Ch.evalBinaryExpression(t,e);case"Compound":return Ch.evalCompound(t,e);case"ConditionalExpression":return Ch.evalConditionalExpression(t,e);case"Identifier":return Ch.evalIdentifier(t,e);case"Literal":return Ch.evalLiteral(t,e);case"MemberExpression":return Ch.evalMemberExpression(t,e);case"UnaryExpression":return Ch.evalUnaryExpression(t,e);case"ArrayExpression":return Ch.evalArrayExpression(t,e);case"CallExpression":return Ch.evalCallExpression(t,e);case"AssignmentExpression":return Ch.evalAssignmentExpression(t,e);default:throw SyntaxError("Unexpected expression",t)}},evalBinaryExpression:(t,e)=>({"||":(t,e)=>t||e(),"&&":(t,e)=>t&&e(),"|":(t,e)=>t|e(),"^":(t,e)=>t^e(),"&":(t,e)=>t&e(),"==":(t,e)=>t==e(),"!=":(t,e)=>t!=e(),"===":(t,e)=>t===e(),"!==":(t,e)=>t!==e(),"<":(t,e)=>t<e(),">":(t,e)=>t>e(),"<=":(t,e)=>t<=e(),">=":(t,e)=>t>=e(),"<<":(t,e)=>t<<e(),">>":(t,e)=>t>>e(),">>>":(t,e)=>t>>>e(),"+":(t,e)=>t+e(),"-":(t,e)=>t-e(),"*":(t,e)=>t*e(),"/":(t,e)=>t/e(),"%":(t,e)=>t%e()})[t.operator](Ch.evalAst(t.left,e),()=>Ch.evalAst(t.right,e)),evalCompound(t,e){let i;for(let n=0;n<t.body.length;n++){"Identifier"===t.body[n].type&&["var","let","const"].includes(t.body[n].name)&&t.body[n+1]&&"AssignmentExpression"===t.body[n+1].type&&(n+=1);let r=t.body[n];i=Ch.evalAst(r,e)}return i},evalConditionalExpression:(t,e)=>Ch.evalAst(t.test,e)?Ch.evalAst(t.consequent,e):Ch.evalAst(t.alternate,e),evalIdentifier(t,e){if(Object.hasOwn(e,t.name))return e[t.name];throw ReferenceError(`${t.name} is not defined`)},evalLiteral:t=>t.value,evalMemberExpression(t,e){let i=String(t.computed?Ch.evalAst(t.property):t.property.name),n=Ch.evalAst(t.object,e);if(null==n||!Object.hasOwn(n,i)&&Cl.has(i))throw TypeError(`Cannot read properties of ${n} (reading '${i}')`);let r=n[i];return"function"==typeof r?r.bind(n):r},evalUnaryExpression:(t,e)=>({"-":t=>-Ch.evalAst(t,e),"!":t=>!Ch.evalAst(t,e),"~":t=>~Ch.evalAst(t,e),"+":t=>+Ch.evalAst(t,e),typeof:t=>typeof Ch.evalAst(t,e),void:t=>void Ch.evalAst(t,e)})[t.operator](t.argument),evalArrayExpression:(t,e)=>t.elements.map(t=>Ch.evalAst(t,e)),evalCallExpression(t,e){let i=t.arguments.map(t=>Ch.evalAst(t,e)),n=Ch.evalAst(t.callee,e);if(n===Function)throw Error("Function constructor is disabled");return n(...i)},evalAssignmentExpression(t,e){if("Identifier"!==t.left.type)throw SyntaxError("Invalid left-hand side in assignment");let i=t.left.name,n=Ch.evalAst(t.right,e);return e[i]=n,e[i]}};function Cu(t,e){return(t=t.slice()).push(e),t}function Cd(t,e){return(e=e.slice()).unshift(t),e}class Cc extends Error{constructor(t){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=t,this.name="NewError"}}function Cp(t,e,i,n,r){if(!(this instanceof Cp))try{return new Cp(t,e,i,n,r)}catch(t){if(!t.avoidNew)throw t;return t.value}"string"==typeof t&&(r=n,n=i,i=e,e=t,t=null);let o=t&&"object"==typeof t;if(t=t||{},this.json=t.json||i,this.path=t.path||e,this.resultType=t.resultType||"value",this.flatten=t.flatten||!1,this.wrap=!Object.hasOwn(t,"wrap")||t.wrap,this.sandbox=t.sandbox||{},this.eval=void 0===t.eval?"safe":t.eval,this.ignoreEvalErrors=void 0!==t.ignoreEvalErrors&&t.ignoreEvalErrors,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||n||null,this.otherTypeCallback=t.otherTypeCallback||r||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==t.autostart){let n={path:o?t.path:e};o?"json"in t&&(n.json=t.json):n.json=i;let r=this.evaluate(n);if(!r||"object"!=typeof r)throw new Cc(r);return r}}Cp.prototype.evaluate=function(t,e,i,n){let r=this.parent,o=this.parentProperty,{flatten:a,wrap:s}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,i=i||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,e=e||this.json,(t=t||this.path)&&"object"==typeof t&&!Array.isArray(t)){if(!t.path&&""!==t.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(t,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:e}=t),a=Object.hasOwn(t,"flatten")?t.flatten:a,this.currResultType=Object.hasOwn(t,"resultType")?t.resultType:this.currResultType,this.currSandbox=Object.hasOwn(t,"sandbox")?t.sandbox:this.currSandbox,s=Object.hasOwn(t,"wrap")?t.wrap:s,this.currEval=Object.hasOwn(t,"eval")?t.eval:this.currEval,i=Object.hasOwn(t,"callback")?t.callback:i,this.currOtherTypeCallback=Object.hasOwn(t,"otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,r=Object.hasOwn(t,"parent")?t.parent:r,o=Object.hasOwn(t,"parentProperty")?t.parentProperty:o,t=t.path}if(r=r||null,o=o||null,Array.isArray(t)&&(t=Cp.toPathString(t)),!t&&""!==t||!e)return;let l=Cp.toPathArray(t);"$"===l[0]&&l.length>1&&l.shift(),this._hasParentSelector=null;let h=this._trace(l,e,["$"],r,o,i).filter(function(t){return t&&!t.isParentSelector});return h.length?s||1!==h.length||h[0].hasArrExpr?h.reduce((t,e)=>{let i=this._getPreferredOutput(e);return a&&Array.isArray(i)?t=t.concat(i):t.push(i),t},[]):this._getPreferredOutput(h[0]):s?[]:void 0},Cp.prototype._getPreferredOutput=function(t){let e=this.currResultType;switch(e){case"all":{let e=Array.isArray(t.path)?t.path:Cp.toPathArray(t.path);return t.pointer=Cp.toPointer(e),t.path="string"==typeof t.path?t.path:Cp.toPathString(t.path),t}case"value":case"parent":case"parentProperty":return t[e];case"path":return Cp.toPathString(t[e]);case"pointer":return Cp.toPointer(t.path);default:throw TypeError("Unknown result type")}},Cp.prototype._handleCallback=function(t,e,i){if(e){let n=this._getPreferredOutput(t);t.path="string"==typeof t.path?t.path:Cp.toPathString(t.path),e(n,i,t)}},Cp.prototype._trace=function(t,e,i,n,r,o,a,s){let l;if(!t.length)return l={path:i,value:e,parent:n,parentProperty:r,hasArrExpr:a},this._handleCallback(l,o,"value"),l;let h=t[0],u=t.slice(1),d=[];function c(t){Array.isArray(t)?t.forEach(t=>{d.push(t)}):d.push(t)}if(("string"!=typeof h||s)&&e&&Object.hasOwn(e,h))c(this._trace(u,e[h],Cu(i,h),e,h,o,a));else if("*"===h)this._walk(e,t=>{c(this._trace(u,e[t],Cu(i,t),e,t,o,!0,!0))});else if(".."===h)c(this._trace(u,e,i,n,r,o,a)),this._walk(e,n=>{"object"==typeof e[n]&&c(this._trace(t.slice(),e[n],Cu(i,n),e,n,o,!0))});else if("^"===h)return this._hasParentSelector=!0,{path:i.slice(0,-1),expr:u,isParentSelector:!0};else if("~"===h)return l={path:Cu(i,h),value:r,parent:n,parentProperty:null},this._handleCallback(l,o,"property"),l;else if("$"===h)c(this._trace(u,e,i,null,null,o,a));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(h))c(this._slice(h,u,e,i,n,r,o));else if(0===h.indexOf("?(")){if(!1===this.currEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");let t=h.replace(/^\?\((.*?)\)$/u,"$1"),a=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(t);a?this._walk(e,t=>{let s=[a[2]],l=a[1]?e[t][a[1]]:e[t];this._trace(s,l,i,n,r,o,!0).length>0&&c(this._trace(u,e[t],Cu(i,t),e,t,o,!0))}):this._walk(e,a=>{this._eval(t,e[a],a,i,n,r)&&c(this._trace(u,e[a],Cu(i,a),e,a,o,!0))})}else if("("===h[0]){if(!1===this.currEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");c(this._trace(Cd(this._eval(h,e,i.at(-1),i.slice(0,-1),n,r),u),e,i,n,r,o,a))}else if("@"===h[0]){let t=!1,a=h.slice(1,-2);switch(a){case"scalar":e&&["object","function"].includes(typeof e)||(t=!0);break;case"boolean":case"string":case"undefined":case"function":typeof e===a&&(t=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(t=!0);break;case"number":Number.isFinite(e)&&(t=!0);break;case"nonFinite":"number"!=typeof e||Number.isFinite(e)||(t=!0);break;case"object":e&&typeof e===a&&(t=!0);break;case"array":Array.isArray(e)&&(t=!0);break;case"other":t=this.currOtherTypeCallback(e,i,n,r);break;case"null":null===e&&(t=!0);break;default:throw TypeError("Unknown value type "+a)}if(t)return l={path:i,value:e,parent:n,parentProperty:r},this._handleCallback(l,o,"value"),l}else if("`"===h[0]&&e&&Object.hasOwn(e,h.slice(1))){let t=h.slice(1);c(this._trace(u,e[t],Cu(i,t),e,t,o,a,!0))}else if(h.includes(","))for(let t of h.split(","))c(this._trace(Cd(t,u),e,i,n,r,o,!0));else!s&&e&&Object.hasOwn(e,h)&&c(this._trace(u,e[h],Cu(i,h),e,h,o,a,!0));if(this._hasParentSelector)for(let t=0;t<d.length;t++){let i=d[t];if(i&&i.isParentSelector){let s=this._trace(i.expr,e,i.path,n,r,o,a);if(Array.isArray(s)){d[t]=s[0];let e=s.length;for(let i=1;i<e;i++)t++,d.splice(t,0,s[i])}else d[t]=s}}return d},Cp.prototype._walk=function(t,e){if(Array.isArray(t)){let i=t.length;for(let t=0;t<i;t++)e(t)}else t&&"object"==typeof t&&Object.keys(t).forEach(t=>{e(t)})},Cp.prototype._slice=function(t,e,i,n,r,o,a){if(!Array.isArray(i))return;let s=i.length,l=t.split(":"),h=l[2]&&Number.parseInt(l[2])||1,u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);let c=[];for(let t=u;t<d;t+=h)this._trace(Cd(t,e),i,n,r,o,a,!0).forEach(t=>{c.push(t)});return c},Cp.prototype._eval=function(t,e,i,n,r,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=r,this.currSandbox._$_property=i,this.currSandbox._$_root=this.json,this.currSandbox._$_v=e;let a=t.includes("@path");a&&(this.currSandbox._$_path=Cp.toPathString(n.concat([i])));let s=this.currEval+"Script:"+t;if(!Cp.cache[s]){let e=t.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(a&&(e=e.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)Cp.cache[s]=new this.safeVm.Script(e);else if("native"===this.currEval)Cp.cache[s]=new this.vm.Script(e);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){let t=this.currEval;Cp.cache[s]=new t(e)}else if("function"==typeof this.currEval)Cp.cache[s]={runInNewContext:t=>this.currEval(e,t)};else throw TypeError(`Unknown "eval" property "${this.currEval}"`)}try{return Cp.cache[s].runInNewContext(this.currSandbox)}catch(e){if(this.ignoreEvalErrors)return!1;throw Error("jsonPath: "+e.message+": "+t)}},Cp.cache={},Cp.toPathString=function(t){let e=t.length,i="$";for(let n=1;n<e;n++)/^(~|\^|@.*?\(\))$/u.test(t[n])||(i+=/^[0-9*]+$/u.test(t[n])?"["+t[n]+"]":"['"+t[n]+"']");return i},Cp.toPointer=function(t){let e=t.length,i="";for(let n=1;n<e;n++)/^(~|\^|@.*?\(\))$/u.test(t[n])||(i+="/"+t[n].toString().replaceAll("~","~0").replaceAll("/","~1"));return i},Cp.toPathArray=function(t){let{cache:e}=Cp;if(e[t])return e[t].concat();let i=[],n=t.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,function(t,e){return"[#"+(i.push(e)-1)+"]"}).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,function(t,e){return"['"+e.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"}).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,function(t,e){return";"+e.split("").join(";")+";"}).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,"").split(";").map(function(t){let e=t.match(/#(\d+)/u);return e&&e[1]?i[e[1]]:t});return e[t]=n,e[t].concat()},Cp.prototype.safeVm={Script:class{constructor(t){this.code=t,this.ast=Co(this.code)}runInNewContext(t){let e=Object.assign(Object.create(null),t);return Ch.evalAst(this.ast,e)}}};let Cf=function(t,e,i){let n=t.length;for(let r=0;r<n;r++)i(t[r])&&e.push(t.splice(r--,1)[0])};Cp.prototype.vm={Script:class{constructor(t){this.code=t}runInNewContext(t){let e=this.code,i=Object.keys(t),n=[];Cf(i,n,e=>"function"==typeof t[e]);let r=i.map(e=>t[e]);e=n.reduce((e,i)=>{let n=t[i].toString();return/function/u.test(n)||(n="function "+n),"var "+i+"="+n+";"+e},"")+e,/(['"])use strict\1/u.test(e)||i.includes("arguments")||(e="var arguments = undefined;"+e);let o=(e=e.replace(/;\s*$/u,"")).lastIndexOf(";");return Function(...i,-1!==o?e.slice(0,o+1)+" return "+e.slice(o+1):" return "+e)(...r)}}};var Cg=i(867),Cm=i.n(Cg),C_=i(207);class Cv{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}let Cy="important",Cb=" !"+Cy,Cx=(r=class extends Cv{constructor(t){if(super(t),1!==t.type||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{let n=t[i];return null==n?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(let t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?i.removeProperty(t):i[t]=null);for(let t in e){let n=e[t];if(null!=n){this.ft.add(t);let e="string"==typeof n&&n.endsWith(Cb);t.includes("-")||e?i.setProperty(t,e?n.slice(0,-11):n,e?Cy:""):i[t]=n}}return xo}},(...t)=>({_$litDirective$:r,values:t}));var Cw=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},CS=function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof i?e:new i(function(t){t(e)})).then(a,s)}l((n=n.apply(t,e||[])).next())})};f1([function(t){f1(_C),f1(_Q)},function(t){f1(_Q),t.registerComponentModel(_J),t.registerComponentView(vo),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},t7),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},t7)},function(t){f1(vG),f1(v1)},function(t){t.registerChartView(yN),t.registerSeriesModel(ys),t.registerLayout({seriesType:"line",plan:u0(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,r=!0;if(i){var o=tA(i.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),a=o.length,s=e.getCalculationInfo("stackResultDimension");gG(e,o[0])&&(o[0]=s),gG(e,o[1])&&(o[1]=s);var l=e.getStore(),h=e.getDimensionIndex(o[0]),u=e.getDimensionIndex(o[1]);return a&&{progress:function(t,e){for(var n=t.end-t.start,o=r&&yb(n*a),s=[],d=[],c=t.start,p=0;c<t.end;c++){var f=void 0;if(1===a){var g=l.get(h,c);f=i.dataToPoint(g,null,d)}else s[0]=l.get(h,c),s[1]=l.get(u,c),f=i.dataToPoint(s,null,d);r?(o[p++]=f[0],o[p++]=f[1]):e.setItemLayout(c,f.slice())}r&&(e.setLayout("points",o),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),h=s.getExtent(),u=i.getDevicePixelRatio(),d=Math.round(a/(Math.abs(h[1]-h[0])*(u||1)));if(isFinite(d)&&d>1){"lttb"===r?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/d));var c=void 0;tB(r)?c=yz[r]:tz(r)&&(c=r),c&&t.setData(n.downSample(n.mapDimension(l.dim),1/d,c,yB))}}}})},function(t){t.registerPainter("canvas",bS)},function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){tI(rF(i.seriesTransition),function(t){tI(rF(t.to),function(t){for(var e=i.updatedSeries,n=0;n<e.length;n++)(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)&&(e[n][uU]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(t,e,i){var n=y9(e);if(n.oldSeries&&i.updatedSeries&&i.optionChanged){var r=i.seriesTransition;if(r)tI(rF(r),function(t){var r,o;r=[],o=[],tI(rF(t.from),function(t){var e=bh(n.oldSeries,t);e>=0&&r.push({dataGroupId:n.oldDataGroupIds[e],data:n.oldData[e],divide:bl(n.oldData[e]),groupIdDim:t.dimension})}),tI(rF(t.to),function(t){var e=bh(i.updatedSeries,t);if(e>=0){var r=i.updatedSeries[e].getData();o.push({dataGroupId:n.oldDataGroupIds[e],data:r,divide:bl(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&bo(r,o,e)});else{var o,a,s,l=(o=t5(),a=t5(),s=t5(),tI(n.oldSeries,function(t,e){var i=n.oldDataGroupIds[e],r=n.oldData[e],o=ba(t),l=bs(o);a.set(l,{dataGroupId:i,data:r}),tN(o)&&tI(o,function(t){s.set(t,{key:l,dataGroupId:i,data:r})})}),tI(i.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),i=t.getData(),n=ba(t),r=bs(n),l=a.get(r);if(l)o.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:bl(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:bl(i),data:i}]});else if(tN(n)){var h=[];tI(n,function(t){var e=a.get(t);e.data&&h.push({dataGroupId:e.dataGroupId,divide:bl(e.data),data:e.data})}),h.length&&o.set(r,{oldSeries:h,newSeries:[{dataGroupId:e,data:i,divide:bl(i)}]})}else{var u=s.get(n);if(u){var d=o.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:bl(u.data)}],newSeries:[]},o.set(u.key,d)),d.newSeries.push({dataGroupId:e,data:i,divide:bl(i)})}}}}),o);tI(l.keys(),function(t){var i=l.get(t);bo(i.oldSeries,i.newSeries,e)})}tI(i.updatedSeries,function(t){t[uU]&&(t[uU]=!1)})}for(var h=t.getSeries(),u=n.oldSeries=[],d=n.oldDataGroupIds=[],c=n.oldData=[],p=0;p<h.length;p++){var f=h[p].getData();1e4>f.count()&&(u.push(h[p]),d.push(h[p].get("dataGroupId")),c.push(f))}})}]);class Ck extends CustomEvent{constructor(t,e){super(Ck.NAME,{detail:{value:t,previousValue:e},bubbles:!0,composed:!0})}}Ck.NAME="or-attribute-history-event";let CC=i(288),CT=bO`
1556
+ `}}xz(Cr);let Co=class extends Cr{static getLocalizedISOString(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset()).toISOString().slice(0,16)}};Co=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a}([xS("or-vaadin-date-time-picker")],Co);class Ca{static get version(){return"1.4.0"}static toString(){return"JavaScript Expression Parser (JSEP) v"+Ca.version}static addUnaryOp(t){return Ca.max_unop_len=Math.max(t.length,Ca.max_unop_len),Ca.unary_ops[t]=1,Ca}static addBinaryOp(t,e,i){return Ca.max_binop_len=Math.max(t.length,Ca.max_binop_len),Ca.binary_ops[t]=e,i?Ca.right_associative.add(t):Ca.right_associative.delete(t),Ca}static addIdentifierChar(t){return Ca.additional_identifier_chars.add(t),Ca}static addLiteral(t,e){return Ca.literals[t]=e,Ca}static removeUnaryOp(t){return delete Ca.unary_ops[t],t.length===Ca.max_unop_len&&(Ca.max_unop_len=Ca.getMaxKeyLen(Ca.unary_ops)),Ca}static removeAllUnaryOps(){return Ca.unary_ops={},Ca.max_unop_len=0,Ca}static removeIdentifierChar(t){return Ca.additional_identifier_chars.delete(t),Ca}static removeBinaryOp(t){return delete Ca.binary_ops[t],t.length===Ca.max_binop_len&&(Ca.max_binop_len=Ca.getMaxKeyLen(Ca.binary_ops)),Ca.right_associative.delete(t),Ca}static removeAllBinaryOps(){return Ca.binary_ops={},Ca.max_binop_len=0,Ca}static removeLiteral(t){return delete Ca.literals[t],Ca}static removeAllLiterals(){return Ca.literals={},Ca}get char(){return this.expr.charAt(this.index)}get code(){return this.expr.charCodeAt(this.index)}constructor(t){this.expr=t,this.index=0}static parse(t){return new Ca(t).parse()}static getMaxKeyLen(t){return Math.max(0,...Object.keys(t).map(t=>t.length))}static isDecimalDigit(t){return t>=48&&t<=57}static binaryPrecedence(t){return Ca.binary_ops[t]||0}static isIdentifierStart(t){return t>=65&&t<=90||t>=97&&t<=122||t>=128&&!Ca.binary_ops[String.fromCharCode(t)]||Ca.additional_identifier_chars.has(String.fromCharCode(t))}static isIdentifierPart(t){return Ca.isIdentifierStart(t)||Ca.isDecimalDigit(t)}throwError(t){let e=Error(t+" at character "+this.index);throw e.index=this.index,e.description=t,e}runHook(t,e){if(Ca.hooks[t]){let i={context:this,node:e};return Ca.hooks.run(t,i),i.node}return e}searchHook(t){if(Ca.hooks[t]){let e={context:this};return Ca.hooks[t].find(function(t){return t.call(e.context,e),e.node}),e.node}}gobbleSpaces(){let t=this.code;for(;t===Ca.SPACE_CODE||t===Ca.TAB_CODE||t===Ca.LF_CODE||t===Ca.CR_CODE;)t=this.expr.charCodeAt(++this.index);this.runHook("gobble-spaces")}parse(){this.runHook("before-all");let t=this.gobbleExpressions(),e=1===t.length?t[0]:{type:Ca.COMPOUND,body:t};return this.runHook("after-all",e)}gobbleExpressions(t){let e=[],i,n;for(;this.index<this.expr.length;)if((i=this.code)===Ca.SEMCOL_CODE||i===Ca.COMMA_CODE)this.index++;else if(n=this.gobbleExpression())e.push(n);else if(this.index<this.expr.length){if(i===t)break;this.throwError('Unexpected "'+this.char+'"')}return e}gobbleExpression(){let t=this.searchHook("gobble-expression")||this.gobbleBinaryExpression();return this.gobbleSpaces(),this.runHook("after-expression",t)}gobbleBinaryOp(){this.gobbleSpaces();let t=this.expr.substr(this.index,Ca.max_binop_len),e=t.length;for(;e>0;){if(Ca.binary_ops.hasOwnProperty(t)&&(!Ca.isIdentifierStart(this.code)||this.index+t.length<this.expr.length&&!Ca.isIdentifierPart(this.expr.charCodeAt(this.index+t.length))))return this.index+=e,t;t=t.substr(0,--e)}return!1}gobbleBinaryExpression(){let t,e,i,n,r,o,a,s,l;if(!(o=this.gobbleToken())||!(e=this.gobbleBinaryOp()))return o;for(r={value:e,prec:Ca.binaryPrecedence(e),right_a:Ca.right_associative.has(e)},(a=this.gobbleToken())||this.throwError("Expected expression after "+e),n=[o,r,a];e=this.gobbleBinaryOp();){if(0===(i=Ca.binaryPrecedence(e))){this.index-=e.length;break}r={value:e,prec:i,right_a:Ca.right_associative.has(e)},l=e;let s=t=>r.right_a&&t.right_a?i>t.prec:i<=t.prec;for(;n.length>2&&s(n[n.length-2]);)a=n.pop(),e=n.pop().value,o=n.pop(),t={type:Ca.BINARY_EXP,operator:e,left:o,right:a},n.push(t);(t=this.gobbleToken())||this.throwError("Expected expression after "+l),n.push(r,t)}for(s=n.length-1,t=n[s];s>1;)t={type:Ca.BINARY_EXP,operator:n[s-1].value,left:n[s-2],right:t},s-=2;return t}gobbleToken(){let t,e,i,n;if(this.gobbleSpaces(),n=this.searchHook("gobble-token"))return this.runHook("after-token",n);if(t=this.code,Ca.isDecimalDigit(t)||t===Ca.PERIOD_CODE)return this.gobbleNumericLiteral();if(t===Ca.SQUOTE_CODE||t===Ca.DQUOTE_CODE)n=this.gobbleStringLiteral();else if(t===Ca.OBRACK_CODE)n=this.gobbleArray();else{for(i=(e=this.expr.substr(this.index,Ca.max_unop_len)).length;i>0;){if(Ca.unary_ops.hasOwnProperty(e)&&(!Ca.isIdentifierStart(this.code)||this.index+e.length<this.expr.length&&!Ca.isIdentifierPart(this.expr.charCodeAt(this.index+e.length)))){this.index+=i;let t=this.gobbleToken();return t||this.throwError("missing unaryOp argument"),this.runHook("after-token",{type:Ca.UNARY_EXP,operator:e,argument:t,prefix:!0})}e=e.substr(0,--i)}Ca.isIdentifierStart(t)?(n=this.gobbleIdentifier(),Ca.literals.hasOwnProperty(n.name)?n={type:Ca.LITERAL,value:Ca.literals[n.name],raw:n.name}:n.name===Ca.this_str&&(n={type:Ca.THIS_EXP})):t===Ca.OPAREN_CODE&&(n=this.gobbleGroup())}return n?(n=this.gobbleTokenProperty(n),this.runHook("after-token",n)):this.runHook("after-token",!1)}gobbleTokenProperty(t){this.gobbleSpaces();let e=this.code;for(;e===Ca.PERIOD_CODE||e===Ca.OBRACK_CODE||e===Ca.OPAREN_CODE||e===Ca.QUMARK_CODE;){let i;if(e===Ca.QUMARK_CODE){if(this.expr.charCodeAt(this.index+1)!==Ca.PERIOD_CODE)break;i=!0,this.index+=2,this.gobbleSpaces(),e=this.code}this.index++,e===Ca.OBRACK_CODE?((t={type:Ca.MEMBER_EXP,computed:!0,object:t,property:this.gobbleExpression()}).property||this.throwError('Unexpected "'+this.char+'"'),this.gobbleSpaces(),(e=this.code)!==Ca.CBRACK_CODE&&this.throwError("Unclosed ["),this.index++):e===Ca.OPAREN_CODE?t={type:Ca.CALL_EXP,arguments:this.gobbleArguments(Ca.CPAREN_CODE),callee:t}:(e===Ca.PERIOD_CODE||i)&&(i&&this.index--,this.gobbleSpaces(),t={type:Ca.MEMBER_EXP,computed:!1,object:t,property:this.gobbleIdentifier()}),i&&(t.optional=!0),this.gobbleSpaces(),e=this.code}return t}gobbleNumericLiteral(){let t="",e,i;for(;Ca.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if(this.code===Ca.PERIOD_CODE)for(t+=this.expr.charAt(this.index++);Ca.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);if("e"===(e=this.char)||"E"===e){for(t+=this.expr.charAt(this.index++),("+"===(e=this.char)||"-"===e)&&(t+=this.expr.charAt(this.index++));Ca.isDecimalDigit(this.code);)t+=this.expr.charAt(this.index++);Ca.isDecimalDigit(this.expr.charCodeAt(this.index-1))||this.throwError("Expected exponent ("+t+this.char+")")}return i=this.code,Ca.isIdentifierStart(i)?this.throwError("Variable names cannot start with a number ("+t+this.char+")"):(i===Ca.PERIOD_CODE||1===t.length&&t.charCodeAt(0)===Ca.PERIOD_CODE)&&this.throwError("Unexpected period"),{type:Ca.LITERAL,value:parseFloat(t),raw:t}}gobbleStringLiteral(){let t="",e=this.index,i=this.expr.charAt(this.index++),n=!1;for(;this.index<this.expr.length;){let e=this.expr.charAt(this.index++);if(e===i){n=!0;break}if("\\"===e)switch(e=this.expr.charAt(this.index++)){case"n":t+="\n";break;case"r":t+="\r";break;case"t":t+=" ";break;case"b":t+="\b";break;case"f":t+="\f";break;case"v":t+="\v";break;default:t+=e}else t+=e}return n||this.throwError('Unclosed quote after "'+t+'"'),{type:Ca.LITERAL,value:t,raw:this.expr.substring(e,this.index)}}gobbleIdentifier(){let t=this.code,e=this.index;for(Ca.isIdentifierStart(t)?this.index++:this.throwError("Unexpected "+this.char);this.index<this.expr.length;)if(t=this.code,Ca.isIdentifierPart(t))this.index++;else break;return{type:Ca.IDENTIFIER,name:this.expr.slice(e,this.index)}}gobbleArguments(t){let e=[],i=!1,n=0;for(;this.index<this.expr.length;){this.gobbleSpaces();let r=this.code;if(r===t){i=!0,this.index++,t===Ca.CPAREN_CODE&&n&&n>=e.length&&this.throwError("Unexpected token "+String.fromCharCode(t));break}if(r===Ca.COMMA_CODE){if(this.index++,++n!==e.length){if(t===Ca.CPAREN_CODE)this.throwError("Unexpected token ,");else if(t===Ca.CBRACK_CODE)for(let t=e.length;t<n;t++)e.push(null)}}else if(e.length!==n&&0!==n)this.throwError("Expected comma");else{let t=this.gobbleExpression();t&&t.type!==Ca.COMPOUND||this.throwError("Expected comma"),e.push(t)}}return i||this.throwError("Expected "+String.fromCharCode(t)),e}gobbleGroup(){this.index++;let t=this.gobbleExpressions(Ca.CPAREN_CODE);if(this.code===Ca.CPAREN_CODE)return(this.index++,1===t.length)?t[0]:!!t.length&&{type:Ca.SEQUENCE_EXP,expressions:t};this.throwError("Unclosed (")}gobbleArray(){return this.index++,{type:Ca.ARRAY_EXP,elements:this.gobbleArguments(Ca.CBRACK_CODE)}}}Object.assign(Ca,{hooks:new class{add(t,e,i){if("string"!=typeof arguments[0])for(let t in arguments[0])this.add(t,arguments[0][t],arguments[1]);else(Array.isArray(t)?t:[t]).forEach(function(t){this[t]=this[t]||[],e&&this[t][i?"unshift":"push"](e)},this)}run(t,e){this[t]=this[t]||[],this[t].forEach(function(t){t.call(e&&e.context?e.context:e,e)})}},plugins:new class{constructor(t){this.jsep=t,this.registered={}}register(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach(t=>{if("object"!=typeof t||!t.name||!t.init)throw Error("Invalid JSEP plugin format");this.registered[t.name]||(t.init(this.jsep),this.registered[t.name]=t)})}}(Ca),COMPOUND:"Compound",SEQUENCE_EXP:"SequenceExpression",IDENTIFIER:"Identifier",MEMBER_EXP:"MemberExpression",LITERAL:"Literal",THIS_EXP:"ThisExpression",CALL_EXP:"CallExpression",UNARY_EXP:"UnaryExpression",BINARY_EXP:"BinaryExpression",ARRAY_EXP:"ArrayExpression",TAB_CODE:9,LF_CODE:10,CR_CODE:13,SPACE_CODE:32,PERIOD_CODE:46,COMMA_CODE:44,SQUOTE_CODE:39,DQUOTE_CODE:34,OPAREN_CODE:40,CPAREN_CODE:41,OBRACK_CODE:91,CBRACK_CODE:93,QUMARK_CODE:63,SEMCOL_CODE:59,COLON_CODE:58,unary_ops:{"-":1,"!":1,"~":1,"+":1},binary_ops:{"||":1,"??":1,"&&":2,"|":3,"^":4,"&":5,"==":6,"!=":6,"===":6,"!==":6,"<":7,">":7,"<=":7,">=":7,"<<":8,">>":8,">>>":8,"+":9,"-":9,"*":10,"/":10,"%":10,"**":11},right_associative:new Set(["**"]),additional_identifier_chars:new Set(["$","_"]),literals:{true:!0,false:!1,null:null},this_str:"this"}),Ca.max_unop_len=Ca.getMaxKeyLen(Ca.unary_ops),Ca.max_binop_len=Ca.getMaxKeyLen(Ca.binary_ops);let Cs=t=>new Ca(t).parse(),Cl=Object.getOwnPropertyNames(class{});Object.getOwnPropertyNames(Ca).filter(t=>!Cl.includes(t)&&void 0===Cs[t]).forEach(t=>{Cs[t]=Ca[t]}),Cs.Jsep=Ca,Cs.plugins.register({name:"ternary",init(t){t.hooks.add("after-expression",function(e){if(e.node&&this.code===t.QUMARK_CODE){this.index++;let i=e.node,n=this.gobbleExpression();if(n||this.throwError("Expected expression"),this.gobbleSpaces(),this.code===t.COLON_CODE){this.index++;let r=this.gobbleExpression();if(r||this.throwError("Expected expression"),e.node={type:"ConditionalExpression",test:i,consequent:n,alternate:r},i.operator&&t.binary_ops[i.operator]<=.9){let n=i;for(;n.right.operator&&t.binary_ops[n.right.operator]<=.9;)n=n.right;e.node.test=n.right,n.right=e.node,e.node=i}}else this.throwError("Expected :")}})}});let Ch={name:"assignment",assignmentOperators:new Set(["=","*=","**=","/=","%=","+=","-=","<<=",">>=",">>>=","&=","^=","|=","||=","&&=","??="]),updateOperators:[43,45],assignmentPrecedence:.9,init(t){let e=[t.IDENTIFIER,t.MEMBER_EXP];Ch.assignmentOperators.forEach(e=>t.addBinaryOp(e,Ch.assignmentPrecedence,!0)),t.hooks.add("gobble-token",function(t){let i=this.code;Ch.updateOperators.some(t=>t===i&&t===this.expr.charCodeAt(this.index+1))&&(this.index+=2,t.node={type:"UpdateExpression",operator:43===i?"++":"--",argument:this.gobbleTokenProperty(this.gobbleIdentifier()),prefix:!0},t.node.argument&&e.includes(t.node.argument.type)||this.throwError(`Unexpected ${t.node.operator}`))}),t.hooks.add("after-token",function(t){if(t.node){let i=this.code;Ch.updateOperators.some(t=>t===i&&t===this.expr.charCodeAt(this.index+1))&&(e.includes(t.node.type)||this.throwError(`Unexpected ${t.node.operator}`),this.index+=2,t.node={type:"UpdateExpression",operator:43===i?"++":"--",argument:t.node,prefix:!1})}}),t.hooks.add("after-expression",function(t){t.node&&function t(e){Ch.assignmentOperators.has(e.operator)?(e.type="AssignmentExpression",t(e.left),t(e.right)):e.operator||Object.values(e).forEach(e=>{e&&"object"==typeof e&&t(e)})}(t.node)})}};Cs.plugins.register({name:"regex",init(t){t.hooks.add("gobble-token",function(e){if(47===this.code){let i=++this.index,n=!1;for(;this.index<this.expr.length;){if(47===this.code&&!n){let n,r=this.expr.slice(i,this.index),o="";for(;++this.index<this.expr.length;){let t=this.code;if(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57)o+=this.char;else break}try{n=new RegExp(r,o)}catch(t){this.throwError(t.message)}return e.node={type:t.LITERAL,value:n,raw:this.expr.slice(i-1,this.index)},e.node=this.gobbleTokenProperty(e.node),e.node}this.code===t.OBRACK_CODE?n=!0:n&&this.code===t.CBRACK_CODE&&(n=!1),this.index+=92===this.code?2:1}this.throwError("Unclosed Regex")}})}},Ch),Cs.addUnaryOp("typeof"),Cs.addUnaryOp("void"),Cs.addLiteral("null",null),Cs.addLiteral("undefined",void 0);let Cu=new Set(["constructor","__proto__","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"]),Cd={evalAst(t,e){switch(t.type){case"BinaryExpression":case"LogicalExpression":return Cd.evalBinaryExpression(t,e);case"Compound":return Cd.evalCompound(t,e);case"ConditionalExpression":return Cd.evalConditionalExpression(t,e);case"Identifier":return Cd.evalIdentifier(t,e);case"Literal":return Cd.evalLiteral(t,e);case"MemberExpression":return Cd.evalMemberExpression(t,e);case"UnaryExpression":return Cd.evalUnaryExpression(t,e);case"ArrayExpression":return Cd.evalArrayExpression(t,e);case"CallExpression":return Cd.evalCallExpression(t,e);case"AssignmentExpression":return Cd.evalAssignmentExpression(t,e);default:throw SyntaxError("Unexpected expression",t)}},evalBinaryExpression:(t,e)=>({"||":(t,e)=>t||e(),"&&":(t,e)=>t&&e(),"|":(t,e)=>t|e(),"^":(t,e)=>t^e(),"&":(t,e)=>t&e(),"==":(t,e)=>t==e(),"!=":(t,e)=>t!=e(),"===":(t,e)=>t===e(),"!==":(t,e)=>t!==e(),"<":(t,e)=>t<e(),">":(t,e)=>t>e(),"<=":(t,e)=>t<=e(),">=":(t,e)=>t>=e(),"<<":(t,e)=>t<<e(),">>":(t,e)=>t>>e(),">>>":(t,e)=>t>>>e(),"+":(t,e)=>t+e(),"-":(t,e)=>t-e(),"*":(t,e)=>t*e(),"/":(t,e)=>t/e(),"%":(t,e)=>t%e()})[t.operator](Cd.evalAst(t.left,e),()=>Cd.evalAst(t.right,e)),evalCompound(t,e){let i;for(let n=0;n<t.body.length;n++){"Identifier"===t.body[n].type&&["var","let","const"].includes(t.body[n].name)&&t.body[n+1]&&"AssignmentExpression"===t.body[n+1].type&&(n+=1);let r=t.body[n];i=Cd.evalAst(r,e)}return i},evalConditionalExpression:(t,e)=>Cd.evalAst(t.test,e)?Cd.evalAst(t.consequent,e):Cd.evalAst(t.alternate,e),evalIdentifier(t,e){if(Object.hasOwn(e,t.name))return e[t.name];throw ReferenceError(`${t.name} is not defined`)},evalLiteral:t=>t.value,evalMemberExpression(t,e){let i=String(t.computed?Cd.evalAst(t.property):t.property.name),n=Cd.evalAst(t.object,e);if(null==n||!Object.hasOwn(n,i)&&Cu.has(i))throw TypeError(`Cannot read properties of ${n} (reading '${i}')`);let r=n[i];return"function"==typeof r?r.bind(n):r},evalUnaryExpression:(t,e)=>({"-":t=>-Cd.evalAst(t,e),"!":t=>!Cd.evalAst(t,e),"~":t=>~Cd.evalAst(t,e),"+":t=>+Cd.evalAst(t,e),typeof:t=>typeof Cd.evalAst(t,e),void:t=>void Cd.evalAst(t,e)})[t.operator](t.argument),evalArrayExpression:(t,e)=>t.elements.map(t=>Cd.evalAst(t,e)),evalCallExpression(t,e){let i=t.arguments.map(t=>Cd.evalAst(t,e)),n=Cd.evalAst(t.callee,e);if(n===Function)throw Error("Function constructor is disabled");return n(...i)},evalAssignmentExpression(t,e){if("Identifier"!==t.left.type)throw SyntaxError("Invalid left-hand side in assignment");let i=t.left.name,n=Cd.evalAst(t.right,e);return e[i]=n,e[i]}};function Cc(t,e){return(t=t.slice()).push(e),t}function Cp(t,e){return(e=e.slice()).unshift(t),e}class Cf extends Error{constructor(t){super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'),this.avoidNew=!0,this.value=t,this.name="NewError"}}function Cg(t,e,i,n,r){if(!(this instanceof Cg))try{return new Cg(t,e,i,n,r)}catch(t){if(!t.avoidNew)throw t;return t.value}"string"==typeof t&&(r=n,n=i,i=e,e=t,t=null);let o=t&&"object"==typeof t;if(t=t||{},this.json=t.json||i,this.path=t.path||e,this.resultType=t.resultType||"value",this.flatten=t.flatten||!1,this.wrap=!Object.hasOwn(t,"wrap")||t.wrap,this.sandbox=t.sandbox||{},this.eval=void 0===t.eval?"safe":t.eval,this.ignoreEvalErrors=void 0!==t.ignoreEvalErrors&&t.ignoreEvalErrors,this.parent=t.parent||null,this.parentProperty=t.parentProperty||null,this.callback=t.callback||n||null,this.otherTypeCallback=t.otherTypeCallback||r||function(){throw TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")},!1!==t.autostart){let n={path:o?t.path:e};o?"json"in t&&(n.json=t.json):n.json=i;let r=this.evaluate(n);if(!r||"object"!=typeof r)throw new Cf(r);return r}}Cg.prototype.evaluate=function(t,e,i,n){let r=this.parent,o=this.parentProperty,{flatten:a,wrap:s}=this;if(this.currResultType=this.resultType,this.currEval=this.eval,this.currSandbox=this.sandbox,i=i||this.callback,this.currOtherTypeCallback=n||this.otherTypeCallback,e=e||this.json,(t=t||this.path)&&"object"==typeof t&&!Array.isArray(t)){if(!t.path&&""!==t.path)throw TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');if(!Object.hasOwn(t,"json"))throw TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');({json:e}=t),a=Object.hasOwn(t,"flatten")?t.flatten:a,this.currResultType=Object.hasOwn(t,"resultType")?t.resultType:this.currResultType,this.currSandbox=Object.hasOwn(t,"sandbox")?t.sandbox:this.currSandbox,s=Object.hasOwn(t,"wrap")?t.wrap:s,this.currEval=Object.hasOwn(t,"eval")?t.eval:this.currEval,i=Object.hasOwn(t,"callback")?t.callback:i,this.currOtherTypeCallback=Object.hasOwn(t,"otherTypeCallback")?t.otherTypeCallback:this.currOtherTypeCallback,r=Object.hasOwn(t,"parent")?t.parent:r,o=Object.hasOwn(t,"parentProperty")?t.parentProperty:o,t=t.path}if(r=r||null,o=o||null,Array.isArray(t)&&(t=Cg.toPathString(t)),!t&&""!==t||!e)return;let l=Cg.toPathArray(t);"$"===l[0]&&l.length>1&&l.shift(),this._hasParentSelector=null;let h=this._trace(l,e,["$"],r,o,i).filter(function(t){return t&&!t.isParentSelector});return h.length?s||1!==h.length||h[0].hasArrExpr?h.reduce((t,e)=>{let i=this._getPreferredOutput(e);return a&&Array.isArray(i)?t=t.concat(i):t.push(i),t},[]):this._getPreferredOutput(h[0]):s?[]:void 0},Cg.prototype._getPreferredOutput=function(t){let e=this.currResultType;switch(e){case"all":{let e=Array.isArray(t.path)?t.path:Cg.toPathArray(t.path);return t.pointer=Cg.toPointer(e),t.path="string"==typeof t.path?t.path:Cg.toPathString(t.path),t}case"value":case"parent":case"parentProperty":return t[e];case"path":return Cg.toPathString(t[e]);case"pointer":return Cg.toPointer(t.path);default:throw TypeError("Unknown result type")}},Cg.prototype._handleCallback=function(t,e,i){if(e){let n=this._getPreferredOutput(t);t.path="string"==typeof t.path?t.path:Cg.toPathString(t.path),e(n,i,t)}},Cg.prototype._trace=function(t,e,i,n,r,o,a,s){let l;if(!t.length)return l={path:i,value:e,parent:n,parentProperty:r,hasArrExpr:a},this._handleCallback(l,o,"value"),l;let h=t[0],u=t.slice(1),d=[];function c(t){Array.isArray(t)?t.forEach(t=>{d.push(t)}):d.push(t)}if(("string"!=typeof h||s)&&e&&Object.hasOwn(e,h))c(this._trace(u,e[h],Cc(i,h),e,h,o,a));else if("*"===h)this._walk(e,t=>{c(this._trace(u,e[t],Cc(i,t),e,t,o,!0,!0))});else if(".."===h)c(this._trace(u,e,i,n,r,o,a)),this._walk(e,n=>{"object"==typeof e[n]&&c(this._trace(t.slice(),e[n],Cc(i,n),e,n,o,!0))});else if("^"===h)return this._hasParentSelector=!0,{path:i.slice(0,-1),expr:u,isParentSelector:!0};else if("~"===h)return l={path:Cc(i,h),value:r,parent:n,parentProperty:null},this._handleCallback(l,o,"property"),l;else if("$"===h)c(this._trace(u,e,i,null,null,o,a));else if(/^(-?\d*):(-?\d*):?(\d*)$/u.test(h))c(this._slice(h,u,e,i,n,r,o));else if(0===h.indexOf("?(")){if(!1===this.currEval)throw Error("Eval [?(expr)] prevented in JSONPath expression.");let t=h.replace(/^\?\((.*?)\)$/u,"$1"),a=/@.?([^?]*)[['](\??\(.*?\))(?!.\)\])[\]']/gu.exec(t);a?this._walk(e,t=>{let s=[a[2]],l=a[1]?e[t][a[1]]:e[t];this._trace(s,l,i,n,r,o,!0).length>0&&c(this._trace(u,e[t],Cc(i,t),e,t,o,!0))}):this._walk(e,a=>{this._eval(t,e[a],a,i,n,r)&&c(this._trace(u,e[a],Cc(i,a),e,a,o,!0))})}else if("("===h[0]){if(!1===this.currEval)throw Error("Eval [(expr)] prevented in JSONPath expression.");c(this._trace(Cp(this._eval(h,e,i.at(-1),i.slice(0,-1),n,r),u),e,i,n,r,o,a))}else if("@"===h[0]){let t=!1,a=h.slice(1,-2);switch(a){case"scalar":e&&["object","function"].includes(typeof e)||(t=!0);break;case"boolean":case"string":case"undefined":case"function":typeof e===a&&(t=!0);break;case"integer":Number.isFinite(e)&&!(e%1)&&(t=!0);break;case"number":Number.isFinite(e)&&(t=!0);break;case"nonFinite":"number"!=typeof e||Number.isFinite(e)||(t=!0);break;case"object":e&&typeof e===a&&(t=!0);break;case"array":Array.isArray(e)&&(t=!0);break;case"other":t=this.currOtherTypeCallback(e,i,n,r);break;case"null":null===e&&(t=!0);break;default:throw TypeError("Unknown value type "+a)}if(t)return l={path:i,value:e,parent:n,parentProperty:r},this._handleCallback(l,o,"value"),l}else if("`"===h[0]&&e&&Object.hasOwn(e,h.slice(1))){let t=h.slice(1);c(this._trace(u,e[t],Cc(i,t),e,t,o,a,!0))}else if(h.includes(","))for(let t of h.split(","))c(this._trace(Cp(t,u),e,i,n,r,o,!0));else!s&&e&&Object.hasOwn(e,h)&&c(this._trace(u,e[h],Cc(i,h),e,h,o,a,!0));if(this._hasParentSelector)for(let t=0;t<d.length;t++){let i=d[t];if(i&&i.isParentSelector){let s=this._trace(i.expr,e,i.path,n,r,o,a);if(Array.isArray(s)){d[t]=s[0];let e=s.length;for(let i=1;i<e;i++)t++,d.splice(t,0,s[i])}else d[t]=s}}return d},Cg.prototype._walk=function(t,e){if(Array.isArray(t)){let i=t.length;for(let t=0;t<i;t++)e(t)}else t&&"object"==typeof t&&Object.keys(t).forEach(t=>{e(t)})},Cg.prototype._slice=function(t,e,i,n,r,o,a){if(!Array.isArray(i))return;let s=i.length,l=t.split(":"),h=l[2]&&Number.parseInt(l[2])||1,u=l[0]&&Number.parseInt(l[0])||0,d=l[1]&&Number.parseInt(l[1])||s;u=u<0?Math.max(0,u+s):Math.min(s,u),d=d<0?Math.max(0,d+s):Math.min(s,d);let c=[];for(let t=u;t<d;t+=h)this._trace(Cp(t,e),i,n,r,o,a,!0).forEach(t=>{c.push(t)});return c},Cg.prototype._eval=function(t,e,i,n,r,o){this.currSandbox._$_parentProperty=o,this.currSandbox._$_parent=r,this.currSandbox._$_property=i,this.currSandbox._$_root=this.json,this.currSandbox._$_v=e;let a=t.includes("@path");a&&(this.currSandbox._$_path=Cg.toPathString(n.concat([i])));let s=this.currEval+"Script:"+t;if(!Cg.cache[s]){let e=t.replaceAll("@parentProperty","_$_parentProperty").replaceAll("@parent","_$_parent").replaceAll("@property","_$_property").replaceAll("@root","_$_root").replaceAll(/@([.\s)[])/gu,"_$_v$1");if(a&&(e=e.replaceAll("@path","_$_path")),"safe"===this.currEval||!0===this.currEval||void 0===this.currEval)Cg.cache[s]=new this.safeVm.Script(e);else if("native"===this.currEval)Cg.cache[s]=new this.vm.Script(e);else if("function"==typeof this.currEval&&this.currEval.prototype&&Object.hasOwn(this.currEval.prototype,"runInNewContext")){let t=this.currEval;Cg.cache[s]=new t(e)}else if("function"==typeof this.currEval)Cg.cache[s]={runInNewContext:t=>this.currEval(e,t)};else throw TypeError(`Unknown "eval" property "${this.currEval}"`)}try{return Cg.cache[s].runInNewContext(this.currSandbox)}catch(e){if(this.ignoreEvalErrors)return!1;throw Error("jsonPath: "+e.message+": "+t)}},Cg.cache={},Cg.toPathString=function(t){let e=t.length,i="$";for(let n=1;n<e;n++)/^(~|\^|@.*?\(\))$/u.test(t[n])||(i+=/^[0-9*]+$/u.test(t[n])?"["+t[n]+"]":"['"+t[n]+"']");return i},Cg.toPointer=function(t){let e=t.length,i="";for(let n=1;n<e;n++)/^(~|\^|@.*?\(\))$/u.test(t[n])||(i+="/"+t[n].toString().replaceAll("~","~0").replaceAll("/","~1"));return i},Cg.toPathArray=function(t){let{cache:e}=Cg;if(e[t])return e[t].concat();let i=[],n=t.replaceAll(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu,";$&;").replaceAll(/[['](\??\(.*?\))[\]'](?!.\])/gu,function(t,e){return"[#"+(i.push(e)-1)+"]"}).replaceAll(/\[['"]([^'\]]*)['"]\]/gu,function(t,e){return"['"+e.replaceAll(".","%@%").replaceAll("~","%%@@%%")+"']"}).replaceAll("~",";~;").replaceAll(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu,";").replaceAll("%@%",".").replaceAll("%%@@%%","~").replaceAll(/(?:;)?(\^+)(?:;)?/gu,function(t,e){return";"+e.split("").join(";")+";"}).replaceAll(/;;;|;;/gu,";..;").replaceAll(/;$|'?\]|'$/gu,"").split(";").map(function(t){let e=t.match(/#(\d+)/u);return e&&e[1]?i[e[1]]:t});return e[t]=n,e[t].concat()},Cg.prototype.safeVm={Script:class{constructor(t){this.code=t,this.ast=Cs(this.code)}runInNewContext(t){let e=Object.assign(Object.create(null),t);return Cd.evalAst(this.ast,e)}}};let C_=function(t,e,i){let n=t.length;for(let r=0;r<n;r++)i(t[r])&&e.push(t.splice(r--,1)[0])};Cg.prototype.vm={Script:class{constructor(t){this.code=t}runInNewContext(t){let e=this.code,i=Object.keys(t),n=[];C_(i,n,e=>"function"==typeof t[e]);let r=i.map(e=>t[e]);e=n.reduce((e,i)=>{let n=t[i].toString();return/function/u.test(n)||(n="function "+n),"var "+i+"="+n+";"+e},"")+e,/(['"])use strict\1/u.test(e)||i.includes("arguments")||(e="var arguments = undefined;"+e);let o=(e=e.replace(/;\s*$/u,"")).lastIndexOf(";");return Function(...i,-1!==o?e.slice(0,o+1)+" return "+e.slice(o+1):" return "+e)(...r)}}};var Cm=i(867),Cv=i.n(Cm),Cy=i(207);class Cb{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}let Cx="important",Cw=" !"+Cx,CS=(r=class extends Cb{constructor(t){if(super(t),1!==t.type||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,i)=>{let n=t[i];return null==n?e:e+`${i=i.includes("-")?i:i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:i}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(let t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?i.removeProperty(t):i[t]=null);for(let t in e){let n=e[t];if(null!=n){this.ft.add(t);let e="string"==typeof n&&n.endsWith(Cw);t.includes("-")||e?i.setProperty(t,e?n.slice(0,-11):n,e?Cx:""):i[t]=n}}return xo}},(...t)=>({_$litDirective$:r,values:t}));var Ck=function(t,e,i,n){var r,o=arguments.length,a=o<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,n);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,i,a):r(e,i))||a);return o>3&&a&&Object.defineProperty(e,i,a),a},CC=function(t,e,i,n){return new(i||(i=Promise))(function(r,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?r(t.value):((e=t.value)instanceof i?e:new i(function(t){t(e)})).then(a,s)}l((n=n.apply(t,e||[])).next())})};f1([function(t){f1(mC),f1(mQ)},function(t){f1(mQ),t.registerComponentModel(mJ),t.registerComponentView(vo),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},t7),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},t7)},function(t){f1(vG),f1(v1)},function(t){t.registerChartView(yN),t.registerSeriesModel(ys),t.registerLayout({seriesType:"line",plan:u0(),reset:function(t){var e=t.getData(),i=t.coordinateSystem,n=t.pipelineContext,r=!0;if(i){var o=tA(i.dimensions,function(t){return e.mapDimension(t)}).slice(0,2),a=o.length,s=e.getCalculationInfo("stackResultDimension");gG(e,o[0])&&(o[0]=s),gG(e,o[1])&&(o[1]=s);var l=e.getStore(),h=e.getDimensionIndex(o[0]),u=e.getDimensionIndex(o[1]);return a&&{progress:function(t,e){for(var n=t.end-t.start,o=r&&yb(n*a),s=[],d=[],c=t.start,p=0;c<t.end;c++){var f=void 0;if(1===a){var g=l.get(h,c);f=i.dataToPoint(g,null,d)}else s[0]=l.get(h,c),s[1]=l.get(u,c),f=i.dataToPoint(s,null,d);r?(o[p++]=f[0],o[p++]=f[1]):e.setItemLayout(c,f.slice())}r&&(e.setLayout("points",o),e.setLayout("pointsRange",{start:t.start,end:t.end}))}}}}}),t.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),i=t.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,{seriesType:"line",reset:function(t,e,i){var n=t.getData(),r=t.get("sampling"),o=t.coordinateSystem,a=n.count();if(a>10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),h=s.getExtent(),u=i.getDevicePixelRatio(),d=Math.round(a/(Math.abs(h[1]-h[0])*(u||1)));if(isFinite(d)&&d>1){"lttb"===r?t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/d)):"minmax"===r&&t.setData(n.minmaxDownSample(n.mapDimension(l.dim),1/d));var c=void 0;tB(r)?c=yz[r]:tz(r)&&(c=r),c&&t.setData(n.downSample(n.mapDimension(l.dim),1/d,c,yB))}}}})},function(t){t.registerPainter("canvas",bS)},function(t){t.registerUpdateLifecycle("series:beforeupdate",function(t,e,i){tI(rF(i.seriesTransition),function(t){tI(rF(t.to),function(t){for(var e=i.updatedSeries,n=0;n<e.length;n++)(null!=t.seriesIndex&&t.seriesIndex===e[n].seriesIndex||null!=t.seriesId&&t.seriesId===e[n].id)&&(e[n][uU]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(t,e,i){var n=y9(e);if(n.oldSeries&&i.updatedSeries&&i.optionChanged){var r=i.seriesTransition;if(r)tI(rF(r),function(t){var r,o;r=[],o=[],tI(rF(t.from),function(t){var e=bh(n.oldSeries,t);e>=0&&r.push({dataGroupId:n.oldDataGroupIds[e],data:n.oldData[e],divide:bl(n.oldData[e]),groupIdDim:t.dimension})}),tI(rF(t.to),function(t){var e=bh(i.updatedSeries,t);if(e>=0){var r=i.updatedSeries[e].getData();o.push({dataGroupId:n.oldDataGroupIds[e],data:r,divide:bl(r),groupIdDim:t.dimension})}}),r.length>0&&o.length>0&&bo(r,o,e)});else{var o,a,s,l=(o=t5(),a=t5(),s=t5(),tI(n.oldSeries,function(t,e){var i=n.oldDataGroupIds[e],r=n.oldData[e],o=ba(t),l=bs(o);a.set(l,{dataGroupId:i,data:r}),tN(o)&&tI(o,function(t){s.set(t,{key:l,dataGroupId:i,data:r})})}),tI(i.updatedSeries,function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),i=t.getData(),n=ba(t),r=bs(n),l=a.get(r);if(l)o.set(r,{oldSeries:[{dataGroupId:l.dataGroupId,divide:bl(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:bl(i),data:i}]});else if(tN(n)){var h=[];tI(n,function(t){var e=a.get(t);e.data&&h.push({dataGroupId:e.dataGroupId,divide:bl(e.data),data:e.data})}),h.length&&o.set(r,{oldSeries:h,newSeries:[{dataGroupId:e,data:i,divide:bl(i)}]})}else{var u=s.get(n);if(u){var d=o.get(u.key);d||(d={oldSeries:[{dataGroupId:u.dataGroupId,data:u.data,divide:bl(u.data)}],newSeries:[]},o.set(u.key,d)),d.newSeries.push({dataGroupId:e,data:i,divide:bl(i)})}}}}),o);tI(l.keys(),function(t){var i=l.get(t);bo(i.oldSeries,i.newSeries,e)})}tI(i.updatedSeries,function(t){t[uU]&&(t[uU]=!1)})}for(var h=t.getSeries(),u=n.oldSeries=[],d=n.oldDataGroupIds=[],c=n.oldData=[],p=0;p<h.length;p++){var f=h[p].getData();1e4>f.count()&&(u.push(h[p]),d.push(h[p].get("dataGroupId")),c.push(f))}})}]);class CT extends CustomEvent{constructor(t,e){super(CT.NAME,{detail:{value:t,previousValue:e},bubbles:!0,composed:!0})}}CT.NAME="or-attribute-history-event";let CM=i(288),CD=bO`
1549
1557
  :host {
1550
1558
  --internal-or-attribute-history-background-color: var(
1551
1559
  --or-attribute-history-background-color,
@@ -1686,9 +1694,9 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1686
1694
  white-space: nowrap;
1687
1695
  text-overflow: ellipsis;
1688
1696
  }
1689
- `,CM=J=class extends(0,xD.translate)(xD.i18next)(f2.OrElement){constructor(){super(...arguments),this.period="day",this._loading=!1,this._chartOptions={},this._zoomChanged=!1,this._zoomReset=!1,this._dataFirstLoaded=!1}static get styles(){return[bO`
1690
- ${bE(CC)}
1691
- `,CT]}connectedCallback(){super.connectedCallback(),this._style=window.getComputedStyle(this)}disconnectedCallback(){super.disconnectedCallback(),this._cleanup()}shouldUpdate(t){var e;let i=t.has("period")||t.has("toTimestamp")||t.has("attribute");return(!this._dataFirstLoaded||!!t.get("_loading")||!!i)&&(this.toTimestamp?(t.has("attribute")&&this._cleanup(),!this._type&&this.attribute&&(this._type=xI.AssetModelUtil.getValueDescriptor(this.attribute.type)||{}),i&&(this._type=void 0,this._data=void 0,this._loadData(),this._zoomReset=!0,null==(e=this._chart)||e.dispatchAction({type:"dataZoom",start:0,end:100})),super.shouldUpdate(t)):(this.toTimestamp=this._getDefaultDate(),!1))}render(){let t=this._type&&("number"===this._type.jsonType||"boolean"===this._type.jsonType),e=!this._type,i=this._getPeriodOptions().map(t=>({value:t,label:xD.i18next.t(t)}));return xr`
1697
+ `,CI=J=class extends(0,xD.translate)(xD.i18next)(f2.OrElement){constructor(){super(...arguments),this.period="day",this._loading=!1,this._chartOptions={},this._zoomChanged=!1,this._zoomReset=!1,this._dataFirstLoaded=!1}static get styles(){return[bO`
1698
+ ${bE(CM)}
1699
+ `,CD]}connectedCallback(){super.connectedCallback(),this._style=window.getComputedStyle(this)}disconnectedCallback(){super.disconnectedCallback(),this._cleanup()}shouldUpdate(t){var e;let i=t.has("period")||t.has("toTimestamp")||t.has("attribute");return(!this._dataFirstLoaded||!!t.get("_loading")||!!i)&&(this.toTimestamp?(t.has("attribute")&&this._cleanup(),!this._type&&this.attribute&&(this._type=xI.AssetModelUtil.getValueDescriptor(this.attribute.type)||{}),i&&(this._type=void 0,this._data=void 0,this._loadData(),this._zoomReset=!0,null==(e=this._chart)||e.dispatchAction({type:"dataZoom",start:0,end:100})),super.shouldUpdate(t)):(this.toTimestamp=this._getDefaultDate(),!1))}render(){let t=this._type&&("number"===this._type.jsonType||"boolean"===this._type.jsonType),e=!this._type,i=this._getPeriodOptions().map(t=>({value:t,label:xD.i18next.t(t)}));return xr`
1692
1700
  <div id="container">
1693
1701
  <div id="controls">
1694
1702
  <or-vaadin-select
@@ -1703,7 +1711,7 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1703
1711
  <div id="ending-controls">
1704
1712
  <or-vaadin-date-time-picker
1705
1713
  id="ending-date"
1706
- value=${Cn.getLocalizedISOString(this.toTimestamp)??xa}
1714
+ value=${Co.getLocalizedISOString(this.toTimestamp)??xa}
1707
1715
  @change=${t=>this._updateTimestamp(new Date(t.currentTarget.value))}
1708
1716
  >
1709
1717
  <or-translate slot="label" value="ending"></or-translate>
@@ -1754,23 +1762,23 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1754
1762
  </div>
1755
1763
  `)))}
1756
1764
  </div>
1757
- `}willUpdate(t){if(super.willUpdate(t),this._type&&this._data){if(this._type&&("number"===this._type.jsonType||"boolean"===this._type.jsonType)){let e=this._data.map(t=>[t.x,t.y]);if(this._chart)t.has("_data")&&this._updateChartData();else{let t=this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-color").trim(),i=Number(this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-opacity").trim());!isNaN(i)&&(t.startsWith("#")&&(4===t.length||7===t.length)?t+=4===t.length?Math.round(255*i).toString(16).substr(0,1):Math.round(255*i).toString(16):t.startsWith("rgb(")&&(t=t.substring(0,t.length-1)+i)),this._chartOptions={animation:!1,grid:{show:!0,backgroundColor:this._style.getPropertyValue("--internal-or-asset-viewer-panel-color"),borderColor:this._style.getPropertyValue("--internal-or-attribute-history-text-color"),left:4,right:4,top:10,containLabel:!0},backgroundColor:this._style.getPropertyValue("--internal-or-asset-viewer-panel-color"),tooltip:{trigger:"axis",appendTo:"body",confine:!0,extraCssText:"white-space: normal; word-wrap: break-word;",axisPointer:{type:"cross"},formatter:t=>{if(Array.isArray(t)&&t.length>0){let e=t[0].value[1];return void 0!==e?e.toString():""}return""}},xAxis:{type:"time",axisLine:{onZero:!1,lineStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-text-color")}},splitLine:{show:!0},min:this._startOfPeriod,max:this._endOfPeriod,axisLabel:{hideOverlap:!0,fontSize:10,formatter:{year:"1-{MMM}-{yyyy}",month:"1-{MMM}-'{yy}",day:"{d}-{MMM}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{d}-{MMM} {HH}:{mm}",none:"{MMM}-{dd} {HH}:{mm}"}}},yAxis:{type:"value",axisLine:{lineStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-text-color")}},boundaryGap:["10%","10%"],scale:!0},dataZoom:[{type:"inside",start:0,end:100},{type:"slider",start:0,end:100,showDataShadow:!1,backgroundColor:t,fillerColor:t,moveHandleStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-color")},emphasis:{moveHandleStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-color")},handleLabel:{show:!0}},handleLabel:{show:!1},showDetail:!1}],series:[{name:"timestamp value",type:"line",showSymbol:e.length<=30,data:e,sampling:"lttb",itemStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-graph-line-color")}}]},this._chart=function(t){1;var e=function(t){return fF[t.getAttribute?t.getAttribute(f$):t[f$]]}(t);if(e)return e;var i=new fI(t,void 0,void 0);return i.id="ec_"+fY++,fF[i.id]=i,r5(t,f$,i.id),H(i),pB.trigger("afterinit",i),i}(this._chartElem),this._chart.setOption(this._chartOptions),window.addEventListener("resize",()=>{var t;return null==(t=this._chart)?void 0:t.resize()}),new ResizeObserver(()=>{var t;return null==(t=this._chart)?void 0:t.resize()}).observe(this._chartElem),this._chart.on("datazoom",bC()(t=>{this._onZoomChange(t)},750))}}else(!this._tableTemplate||t.has("_data"))&&(this._tableTemplate=this._getTableTemplate());this.onCompleted().then(()=>{this.dispatchEvent(new Ck("rendered"))})}}onCompleted(){return CS(this,void 0,void 0,function*(){yield this.updateComplete})}_cleanup(){this._tableTemplate=void 0,this._chart&&(this._chart.dispose(),this._chart=void 0),this._table&&(this._table.destroy(),this._table=void 0)}_getTableTemplate(){let t=this.assetType,e=this.attribute?this.attribute.name:this.attributeRef?this.attributeRef.name:void 0,i=this.attribute?this.attribute.type:void 0;if(!this._data||!t||!e||!i)return xr``;let n={autoColumns:!0};if(this.config&&this.config.table&&(this.config.table.assetTypes&&this.config.table.assetTypes[t]&&(this.config.table.assetTypes[t].attributeNames&&this.config.table.assetTypes[t].attributeNames[e]||i&&this.config.table.assetTypes[t].attributeValueTypes&&this.config.table.assetTypes[t].attributeValueTypes[i])?n=this.config.table.assetTypes[t].attributeNames&&this.config.table.assetTypes[t].attributeNames[e]||this.config.table.assetTypes[t].attributeValueTypes[i]:this.config.table.attributeNames&&this.config.table.attributeNames[e]?n=this.config.table.attributeNames[e]:i&&this.config.table.attributeValueTypes&&this.config.table.attributeValueTypes[i]?n=this.config.table.attributeValueTypes[i]:this.config.table.default&&(n=this.config.table.default),n||(n={autoColumns:!0})),n.autoColumns){(n=Object.assign({},n)).columns=[];let t=this._data.find(t=>void 0!==t.y);t&&("object"!=typeof t.y||Array.isArray(t.y)?n.columns.push({type:"prop",header:"value",stringify:"object"==typeof t.y,numeric:"number"==typeof t.y}):n.columns=Object.entries(t.y).map(([t,e])=>({type:"prop",header:t,path:"$.['"+t+"']",stringify:"object"==typeof e,numeric:!isNaN(Number(e))}))),n.columns.length>0&&n.columns.push({header:"timestamp",type:"timestamp"})}return n.columns&&n.columns.length>0?xr`
1765
+ `}willUpdate(t){if(super.willUpdate(t),this._type&&this._data){if(this._type&&("number"===this._type.jsonType||"boolean"===this._type.jsonType)){let e=this._data.map(t=>[t.x,t.y]);if(this._chart)t.has("_data")&&this._updateChartData();else{let t=this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-color").trim(),i=Number(this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-opacity").trim());!isNaN(i)&&(t.startsWith("#")&&(4===t.length||7===t.length)?t+=4===t.length?Math.round(255*i).toString(16).substr(0,1):Math.round(255*i).toString(16):t.startsWith("rgb(")&&(t=t.substring(0,t.length-1)+i)),this._chartOptions={animation:!1,grid:{show:!0,backgroundColor:this._style.getPropertyValue("--internal-or-asset-viewer-panel-color"),borderColor:this._style.getPropertyValue("--internal-or-attribute-history-text-color"),left:4,right:4,top:10,containLabel:!0},backgroundColor:this._style.getPropertyValue("--internal-or-asset-viewer-panel-color"),tooltip:{trigger:"axis",appendTo:"body",confine:!0,extraCssText:"white-space: normal; word-wrap: break-word;",axisPointer:{type:"cross"},formatter:t=>{if(Array.isArray(t)&&t.length>0){let e=t[0].value[1];return void 0!==e?e.toString():""}return""}},xAxis:{type:"time",axisLine:{onZero:!1,lineStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-text-color")}},splitLine:{show:!0},min:this._startOfPeriod,max:this._endOfPeriod,axisLabel:{hideOverlap:!0,fontSize:10,formatter:{year:"1-{MMM}-{yyyy}",month:"1-{MMM}-'{yy}",day:"{d}-{MMM}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{d}-{MMM} {HH}:{mm}",none:"{MMM}-{dd} {HH}:{mm}"}}},yAxis:{type:"value",axisLine:{lineStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-text-color")}},boundaryGap:["10%","10%"],scale:!0},dataZoom:[{type:"inside",start:0,end:100},{type:"slider",start:0,end:100,showDataShadow:!1,backgroundColor:t,fillerColor:t,moveHandleStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-color")},emphasis:{moveHandleStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-graph-fill-color")},handleLabel:{show:!0}},handleLabel:{show:!1},showDetail:!1}],series:[{name:"timestamp value",type:"line",showSymbol:e.length<=30,data:e,sampling:"lttb",itemStyle:{color:this._style.getPropertyValue("--internal-or-attribute-history-graph-line-color")}}]},this._chart=function(t){1;var e=function(t){return fF[t.getAttribute?t.getAttribute(f$):t[f$]]}(t);if(e)return e;var i=new fI(t,void 0,void 0);return i.id="ec_"+fY++,fF[i.id]=i,r5(t,f$,i.id),H(i),pB.trigger("afterinit",i),i}(this._chartElem),this._chart.setOption(this._chartOptions),window.addEventListener("resize",()=>{var t;return null==(t=this._chart)?void 0:t.resize()}),new ResizeObserver(()=>{var t;return null==(t=this._chart)?void 0:t.resize()}).observe(this._chartElem),this._chart.on("datazoom",bC()(t=>{this._onZoomChange(t)},750))}}else(!this._tableTemplate||t.has("_data"))&&(this._tableTemplate=this._getTableTemplate());this.onCompleted().then(()=>{this.dispatchEvent(new CT("rendered"))})}}onCompleted(){return CC(this,void 0,void 0,function*(){yield this.updateComplete})}_cleanup(){this._tableTemplate=void 0,this._chart&&(this._chart.dispose(),this._chart=void 0),this._table&&(this._table.destroy(),this._table=void 0)}_getTableTemplate(){let t=this.assetType,e=this.attribute?this.attribute.name:this.attributeRef?this.attributeRef.name:void 0,i=this.attribute?this.attribute.type:void 0;if(!this._data||!t||!e||!i)return xr``;let n={autoColumns:!0};if(this.config&&this.config.table&&(this.config.table.assetTypes&&this.config.table.assetTypes[t]&&(this.config.table.assetTypes[t].attributeNames&&this.config.table.assetTypes[t].attributeNames[e]||i&&this.config.table.assetTypes[t].attributeValueTypes&&this.config.table.assetTypes[t].attributeValueTypes[i])?n=this.config.table.assetTypes[t].attributeNames&&this.config.table.assetTypes[t].attributeNames[e]||this.config.table.assetTypes[t].attributeValueTypes[i]:this.config.table.attributeNames&&this.config.table.attributeNames[e]?n=this.config.table.attributeNames[e]:i&&this.config.table.attributeValueTypes&&this.config.table.attributeValueTypes[i]?n=this.config.table.attributeValueTypes[i]:this.config.table.default&&(n=this.config.table.default),n||(n={autoColumns:!0})),n.autoColumns){(n=Object.assign({},n)).columns=[];let t=this._data.find(t=>void 0!==t.y);t&&("object"!=typeof t.y||Array.isArray(t.y)?n.columns.push({type:"prop",header:"value",stringify:"object"==typeof t.y,numeric:"number"==typeof t.y}):n.columns=Object.entries(t.y).map(([t,e])=>({type:"prop",header:t,path:"$.['"+t+"']",stringify:"object"==typeof e,numeric:!isNaN(Number(e))}))),n.columns.length>0&&n.columns.push({header:"timestamp",type:"timestamp"})}return n.columns&&n.columns.length>0?xr`
1758
1766
  <div id="table" class="mdc-data-table">
1759
1767
  <table
1760
- style="${n.styles?Cx(n.styles):""}"
1768
+ style="${n.styles?CS(n.styles):""}"
1761
1769
  class="mdc-data-table__table"
1762
1770
  aria-label="${e+" history"}"
1763
1771
  >
1764
1772
  <thead>
1765
1773
  <tr class="mdc-data-table__header-row">
1766
- ${n.columns.map(t=>xr`<th style="${t.headerStyles?Cx(t.headerStyles):""}" class="mdc-data-table__header-cell ${t.numeric?"mdc-data-table__header-cell--numeric":""}" role="columnheader" scope="col"><or-translate value="${t.header}"></or-translate></th>`)}
1774
+ ${n.columns.map(t=>xr`<th style="${t.headerStyles?CS(t.headerStyles):""}" class="mdc-data-table__header-cell ${t.numeric?"mdc-data-table__header-cell--numeric":""}" role="columnheader" scope="col"><or-translate value="${t.header}"></or-translate></th>`)}
1767
1775
  </tr>
1768
1776
  </thead>
1769
1777
  <tbody class="mdc-data-table__content">
1770
1778
  ${this._data.map(t=>xr`
1771
1779
  <tr class="mdc-data-table__row">
1772
1780
  ${n.columns.map(e=>{let i=this._getCellValue(t,e,n.timestampFormat);return xr`<td
1773
- style="${e.styles?Cx(e.styles):""}"
1781
+ style="${e.styles?CS(e.styles):""}"
1774
1782
  class="mdc-data-table__cell ${e.numeric?"mdc-data-table__cell--numeric":""}"
1775
1783
  title="${i}"
1776
1784
  >
@@ -1781,4 +1789,4 @@ var ORAttributeHistory;(()=>{var t={51(t,e,i){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a
1781
1789
  </tbody>
1782
1790
  </table>
1783
1791
  </div>
1784
- `:(console.warn("OrAttributeHistory: No columns configured so nothing to show"),xr``)}_getCellValue(t,e,i){switch(e.type){case"timestamp":let n=Cm()(t.x).format(i||J.DEFAULT_TIMESTAMP_FORMAT);if(e&&e.contentProvider){let i=e.contentProvider(t,n,e);if(i)return i}return n;case"prop":let r=t.y;if(e.path&&Array.isArray(r=Cp({path:e.path,json:t.y,wrap:!1}))&&1===r.length&&(r=r[0]),e&&e.contentProvider){let i=e.contentProvider(t,r,e);if(i)return i}if(e.stringify)return JSON.stringify(r);return r}}_getIntervalOptions(){return["HOUR","DAY","WEEK","MONTH","YEAR"].map(t=>[t,xD.i18next.t(t.toLowerCase())])}_getPeriodOptions(){return["hour","day","week","month","year"]}_loadData(){return CS(this,void 0,void 0,function*(){var t;if(this._data&&!this._zoomChanged||!this.assetType||!this.assetId||!this.attribute&&!this.attributeRef||!this.period||!this.toTimestamp)return;if(this._loading)if(!this._dataAbortController)return;else this._dataAbortController.abort("Data request overridden"),delete this._dataAbortController;this._error=void 0,this._loading=!0;let e=this.assetId,i=this.attribute?this.attribute.name:this.attributeRef.name;this._dataAbortController=new AbortController;try{let t;if(!this._type){let t=this.attribute;if(!t){let n=yield xE().rest.api.AssetResource.queryAssets({ids:[e],select:{attributes:[i]}},{signal:this._dataAbortController.signal});200===n.status&&n.data.length>0&&(t=n.data[0].attributes?n.data[0].attributes[i]:void 0)}t&&(this._type=xI.AssetModelUtil.getValueDescriptor(t.type)||{})}if(!this._type||!this._type.name){this._loading=!1;return}let n="HOUR";switch(this.period){case"hour":n="MINUTE";break;case"day":case"week":n="HOUR";break;case"month":n="DAY";break;case"year":n="MONTH"}let r=n.toLowerCase();this._zoomChanged||(this._startOfPeriod=Cm()(this.toTimestamp).subtract(1,this.period).startOf(r).add(1,r).toDate().getTime(),this._endOfPeriod=Cm()(this.toTimestamp).startOf(r).add(1,r).toDate().getTime(),this._queryStartOfPeriod=this._startOfPeriod,this._queryEndOfPeriod=this._endOfPeriod),t=this._type&&("number"===this._type.jsonType||"boolean"===this._type.jsonType)?yield xE().rest.api.AssetDatapointResource.getDatapoints(e,i,{type:"lttb",fromTimestamp:this._queryStartOfPeriod,toTimestamp:this._queryEndOfPeriod,amountOfPoints:100},{signal:this._dataAbortController.signal}):yield xE().rest.api.AssetDatapointResource.getDatapoints(e,i,{type:"all",fromTimestamp:this._startOfPeriod,toTimestamp:this._endOfPeriod},{signal:this._dataAbortController.signal}),this._loading=!1,this._zoomChanged=!1,200===t.status&&(this._data=t.data.filter(t=>null!==t.y&&void 0!==t.y).map(t=>({x:t.x,y:t.y})))}catch(e){if(console.error(e),(null==e?void 0:e.message)==="canceled")return;if(this._loading=!1,(0,C_.isAxiosError)(e)){if(e.message.includes("timeout")){this._error="noAttributeDataTimeout";return}else if((null==(t=e.response)?void 0:t.status)===413){this._error="datapointRequestTooLarge";return}}this._error="errorOccurred"}})}_updateTimestamp(t,e,i=300){this._updateTimestampTimer&&(window.clearTimeout(this._updateTimestampTimer),this._updateTimestampTimer=void 0),this._updateTimestampTimer=window.setTimeout(()=>{let i=Cm()(t);void 0!==e&&i.add(e?1:-1,this.period),this.toTimestamp=i.toDate()},i)}_onZoomChange(t){var e,i;if(!this._zoomReset){this._zoomChanged=!0;let{start:n,end:r}=null!=(i=null==(e=t.batch)?void 0:e[0])?i:t;this._queryStartOfPeriod=this._startOfPeriod+(this._endOfPeriod-this._startOfPeriod)*n/100,this._queryEndOfPeriod=this._startOfPeriod+(this._endOfPeriod-this._startOfPeriod)*r/100,this._loadData().then(()=>{this._updateChartData()})}this._zoomReset=!1}_updateChartData(){let t=this._data.map(t=>[t.x,t.y]);this._chart.setOption({xAxis:{min:this._startOfPeriod,max:this._endOfPeriod},series:[{data:t,showSymbol:t.length<=30}]})}_getDefaultDate(){let t=new Date;return t.setHours(t.getHours()+1,0,0,0),t}};CM.DEFAULT_TIMESTAMP_FORMAT="L HH:mm:ss",Cw([xC({type:String})],CM.prototype,"assetType",void 0),Cw([xC({type:String})],CM.prototype,"assetId",void 0),Cw([xC({type:Object})],CM.prototype,"attribute",void 0),Cw([xC({type:Object})],CM.prototype,"attributeRef",void 0),Cw([xC({type:String})],CM.prototype,"period",void 0),Cw([xC({type:Number})],CM.prototype,"toTimestamp",void 0),Cw([xC({type:Object})],CM.prototype,"config",void 0),Cw([xC()],CM.prototype,"_loading",void 0),Cw([xC()],CM.prototype,"_data",void 0),Cw([xC()],CM.prototype,"_tableTemplate",void 0),Cw([xM("#chart")],CM.prototype,"_chartElem",void 0),Cw([xM("#table")],CM.prototype,"_tableElem",void 0),CM=J=Cw([xS("or-attribute-history")],CM)})(),ORAttributeHistory=n})();
1792
+ `:(console.warn("OrAttributeHistory: No columns configured so nothing to show"),xr``)}_getCellValue(t,e,i){switch(e.type){case"timestamp":let n=Cv()(t.x).format(i||J.DEFAULT_TIMESTAMP_FORMAT);if(e&&e.contentProvider){let i=e.contentProvider(t,n,e);if(i)return i}return n;case"prop":let r=t.y;if(e.path&&Array.isArray(r=Cg({path:e.path,json:t.y,wrap:!1}))&&1===r.length&&(r=r[0]),e&&e.contentProvider){let i=e.contentProvider(t,r,e);if(i)return i}if(e.stringify)return JSON.stringify(r);return r}}_getIntervalOptions(){return["HOUR","DAY","WEEK","MONTH","YEAR"].map(t=>[t,xD.i18next.t(t.toLowerCase())])}_getPeriodOptions(){return["hour","day","week","month","year"]}_loadData(){return CC(this,void 0,void 0,function*(){var t;if(this._data&&!this._zoomChanged||!this.assetType||!this.assetId||!this.attribute&&!this.attributeRef||!this.period||!this.toTimestamp)return;if(this._loading)if(!this._dataAbortController)return;else this._dataAbortController.abort("Data request overridden"),delete this._dataAbortController;this._error=void 0,this._loading=!0;let e=this.assetId,i=this.attribute?this.attribute.name:this.attributeRef.name;this._dataAbortController=new AbortController;try{let t;if(!this._type){let t=this.attribute;if(!t){let n=yield xE().rest.api.AssetResource.queryAssets({ids:[e],select:{attributes:[i]}},{signal:this._dataAbortController.signal});200===n.status&&n.data.length>0&&(t=n.data[0].attributes?n.data[0].attributes[i]:void 0)}t&&(this._type=xI.AssetModelUtil.getValueDescriptor(t.type)||{})}if(!this._type||!this._type.name){this._loading=!1;return}let n="HOUR";switch(this.period){case"hour":n="MINUTE";break;case"day":case"week":n="HOUR";break;case"month":n="DAY";break;case"year":n="MONTH"}let r=n.toLowerCase();this._zoomChanged||(this._startOfPeriod=Cv()(this.toTimestamp).subtract(1,this.period).startOf(r).add(1,r).toDate().getTime(),this._endOfPeriod=Cv()(this.toTimestamp).startOf(r).add(1,r).toDate().getTime(),this._queryStartOfPeriod=this._startOfPeriod,this._queryEndOfPeriod=this._endOfPeriod),t=this._type&&("number"===this._type.jsonType||"boolean"===this._type.jsonType)?yield xE().rest.api.AssetDatapointResource.getDatapoints(e,i,{type:"lttb",fromTimestamp:this._queryStartOfPeriod,toTimestamp:this._queryEndOfPeriod,amountOfPoints:100},{signal:this._dataAbortController.signal}):yield xE().rest.api.AssetDatapointResource.getDatapoints(e,i,{type:"all",fromTimestamp:this._startOfPeriod,toTimestamp:this._endOfPeriod},{signal:this._dataAbortController.signal}),this._loading=!1,this._zoomChanged=!1,200===t.status&&(this._data=t.data.filter(t=>null!==t.y&&void 0!==t.y).map(t=>({x:t.x,y:t.y})))}catch(e){if(console.error(e),(null==e?void 0:e.message)==="canceled")return;if(this._loading=!1,(0,Cy.isAxiosError)(e)){if(e.message.includes("timeout")){this._error="noAttributeDataTimeout";return}else if((null==(t=e.response)?void 0:t.status)===413){this._error="datapointRequestTooLarge";return}}this._error="errorOccurred"}})}_updateTimestamp(t,e,i=300){this._updateTimestampTimer&&(window.clearTimeout(this._updateTimestampTimer),this._updateTimestampTimer=void 0),this._updateTimestampTimer=window.setTimeout(()=>{let i=Cv()(t);void 0!==e&&i.add(e?1:-1,this.period),this.toTimestamp=i.toDate()},i)}_onZoomChange(t){var e,i;if(!this._zoomReset){this._zoomChanged=!0;let{start:n,end:r}=null!=(i=null==(e=t.batch)?void 0:e[0])?i:t;this._queryStartOfPeriod=this._startOfPeriod+(this._endOfPeriod-this._startOfPeriod)*n/100,this._queryEndOfPeriod=this._startOfPeriod+(this._endOfPeriod-this._startOfPeriod)*r/100,this._loadData().then(()=>{this._updateChartData()})}this._zoomReset=!1}_updateChartData(){let t=this._data.map(t=>[t.x,t.y]);this._chart.setOption({xAxis:{min:this._startOfPeriod,max:this._endOfPeriod},series:[{data:t,showSymbol:t.length<=30}]})}_getDefaultDate(){let t=new Date;return t.setHours(t.getHours()+1,0,0,0),t}};CI.DEFAULT_TIMESTAMP_FORMAT="L HH:mm:ss",Ck([xC({type:String})],CI.prototype,"assetType",void 0),Ck([xC({type:String})],CI.prototype,"assetId",void 0),Ck([xC({type:Object})],CI.prototype,"attribute",void 0),Ck([xC({type:Object})],CI.prototype,"attributeRef",void 0),Ck([xC({type:String})],CI.prototype,"period",void 0),Ck([xC({type:Number})],CI.prototype,"toTimestamp",void 0),Ck([xC({type:Object})],CI.prototype,"config",void 0),Ck([xC()],CI.prototype,"_loading",void 0),Ck([xC()],CI.prototype,"_data",void 0),Ck([xC()],CI.prototype,"_tableTemplate",void 0),Ck([xM("#chart")],CI.prototype,"_chartElem",void 0),Ck([xM("#table")],CI.prototype,"_tableElem",void 0),CI=J=Ck([xS("or-attribute-history")],CI)})(),ORAttributeHistory=n})();