(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors"],{"010e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}});return t}))},"014b":function(e,t,n){"use strict";var i=n("e53d"),r=n("07e3"),o=n("8e60"),a=n("63b6"),s=n("9138"),l=n("ebfd").KEY,u=n("294c"),c=n("dbdb"),d=n("45f2"),h=n("62a0"),p=n("5168"),f=n("ccb9"),m=n("6718"),g=n("47ee"),v=n("9003"),y=n("e4ae"),_=n("f772"),b=n("241e"),x=n("36c3"),w=n("1bc3"),M=n("aebd"),S=n("a159"),k=n("0395"),C=n("bf0b"),T=n("9aa9"),D=n("d9f6"),L=n("c3a1"),O=C.f,I=D.f,A=k.f,E=i.Symbol,j=i.JSON,P=j&&j.stringify,Y="prototype",N=p("_hidden"),R=p("toPrimitive"),F={}.propertyIsEnumerable,H=c("symbol-registry"),z=c("symbols"),B=c("op-symbols"),V=Object[Y],$="function"==typeof E&&!!T.f,W=i.QObject,G=!W||!W[Y]||!W[Y].findChild,U=o&&u((function(){return 7!=S(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a}))?function(e,t,n){var i=O(V,t);i&&delete V[t],I(e,t,n),i&&e!==V&&I(V,t,i)}:I,q=function(e){var t=z[e]=S(E[Y]);return t._k=e,t},X=$&&"symbol"==typeof E.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof E},K=function(e,t,n){return e===V&&K(B,t,n),y(e),t=w(t,!0),y(n),r(z,t)?(n.enumerable?(r(e,N)&&e[N][t]&&(e[N][t]=!1),n=S(n,{enumerable:M(0,!1)})):(r(e,N)||I(e,N,M(1,{})),e[N][t]=!0),U(e,t,n)):I(e,t,n)},Z=function(e,t){y(e);var n,i=g(t=x(t)),r=0,o=i.length;while(o>r)K(e,n=i[r++],t[n]);return e},J=function(e,t){return void 0===t?S(e):Z(S(e),t)},Q=function(e){var t=F.call(this,e=w(e,!0));return!(this===V&&r(z,e)&&!r(B,e))&&(!(t||!r(this,e)||!r(z,e)||r(this,N)&&this[N][e])||t)},ee=function(e,t){if(e=x(e),t=w(t,!0),e!==V||!r(z,t)||r(B,t)){var n=O(e,t);return!n||!r(z,t)||r(e,N)&&e[N][t]||(n.enumerable=!0),n}},te=function(e){var t,n=A(x(e)),i=[],o=0;while(n.length>o)r(z,t=n[o++])||t==N||t==l||i.push(t);return i},ne=function(e){var t,n=e===V,i=A(n?B:x(e)),o=[],a=0;while(i.length>a)!r(z,t=i[a++])||n&&!r(V,t)||o.push(z[t]);return o};$||(E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===V&&t.call(B,n),r(this,N)&&r(this[N],e)&&(this[N][e]=!1),U(this,e,M(1,n))};return o&&G&&U(V,e,{configurable:!0,set:t}),q(e)},s(E[Y],"toString",(function(){return this._k})),C.f=ee,D.f=K,n("6abf").f=k.f=te,n("355d").f=Q,T.f=ne,o&&!n("b8e3")&&s(V,"propertyIsEnumerable",Q,!0),f.f=function(e){return q(p(e))}),a(a.G+a.W+a.F*!$,{Symbol:E});for(var ie="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),re=0;ie.length>re;)p(ie[re++]);for(var oe=L(p.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!$,"Symbol",{for:function(e){return r(H,e+="")?H[e]:H[e]=E(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in H)if(H[t]===e)return t},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!$,"Object",{create:J,defineProperty:K,defineProperties:Z,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=u((function(){T.f(1)}));a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return T.f(b(e))}}),j&&a(a.S+a.F*(!$||u((function(){var e=E();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))}))),"JSON",{stringify:function(e){var t,n,i=[e],r=1;while(arguments.length>r)i.push(arguments[r++]);if(n=t=i[1],(_(t)||void 0!==e)&&!X(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!X(t))return t}),i[1]=t,P.apply(j,i)}}),E[Y][R]||n("35e8")(E[Y],R,E[Y].valueOf),d(E,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},"01f9":function(e,t,n){"use strict";var i=n("2d00"),r=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),l=n("41a0"),u=n("7f20"),c=n("38fd"),d=n("2b4c")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,_,b){l(n,t,v);var x,w,M,S=function(e){if(!h&&e in D)return D[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=y==m,T=!1,D=e.prototype,L=D[d]||D[p]||y&&D[y],O=L||S(y),I=y?C?S("entries"):O:void 0,A="Array"==t&&D.entries||L;if(A&&(M=c(A.call(new e)),M!==Object.prototype&&M.next&&(u(M,k,!0),i||"function"==typeof M[d]||a(M,d,g))),C&&L&&L.name!==m&&(T=!0,O=function(){return L.call(this)}),i&&!b||!h&&!T&&D[d]||a(D,d,O),s[t]=O,s[k]=g,y)if(x={values:C?O:S(m),keys:_?O:S(f),entries:I},b)for(w in x)w in D||o(D,w,x[w]);else r(r.P+r.F*(h||T),t,x);return x}},"02fb":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}});return t}))},"0395":function(e,t,n){var i=n("36c3"),r=n("6abf").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return r(e)}catch(t){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):r(i(e))}},"03ec":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){var t=/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран";return e+t},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}});return t}))},"0558":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e){return e%100===11||e%10!==1}function n(e,n,i,r){var o=e+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||r?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||r?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||r?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(r?"daga":"dögum"):n?o+"dagur":o+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(r?"mánuði":"mánuðum"):n?o+"mánuður":o+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?o+(n||r?"ár":"árum"):o+(n||r?"ár":"ári")}}var i=e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return i}))},"0721":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"079e":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}});return t}))},"07e3":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"07f4":function(e,t,n){"use strict";var i=n("c532");function r(e){return i["a"].matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}function o(e){const t={},n=Object.keys(e);let i;const r=n.length;let o;for(i=0;i=e.length;if(s=!s&&i["a"].isArray(r)?r.length:s,u)return i["a"].hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!l;r[s]&&i["a"].isObject(r[s])||(r[s]=[]);const c=t(e,n,r[s],a);return c&&i["a"].isArray(r[s])&&(r[s]=o(r[s])),!l}if(i["a"].isFormData(e)&&i["a"].isFunction(e.entries)){const n={};return i["a"].forEachEntry(e,(e,i)=>{t(r(e),i,n,0)}),n}return null}t["a"]=a},"08dc":function(e,t,n){!function(t,n){e.exports=n()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=1)}([function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,i,r,o=e[1]||"",a=e[3];if(!a)return o;if(t&&"function"==typeof btoa){var s=(n=a,i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),"/*# ".concat(r," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[o].concat(l).concat([s]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var o=0;oe.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:32,n=e.querySelector("colgroup"),r=i(n.querySelectorAll("col"));r.forEach((function(n){var r,o,a,s=n.getAttribute("name"),l=[].concat(i(e.querySelectorAll("td.".concat(s))),i(e.querySelectorAll("th.".concat(s))));if(!(null===(r=l[0])||void 0===r||null===(o=r.classList)||void 0===o||null===(a=o.contains)||void 0===a?void 0:a.call(o,"leave-alone"))){var u=l.map((function(e){var t;return(null===(t=e.querySelector(".cell"))||void 0===t?void 0:t.scrollWidth)||0})),c=Math.max.apply(Math,i(u));e.querySelectorAll("col[name=".concat(s,"]")).forEach((function(e){e.setAttribute("width",c+t)}))}}))}n.r(t),n(2),t.default={install:function(e){e.directive("fit-columns",{update:function(){},bind:function(){},inserted:function(e,t){setTimeout((function(){o(e,t.value)}),300)},componentUpdated:function(e,t){e.classList.add("r-table"),setTimeout((function(){o(e,t.value)}),300)},unbind:function(){}})}}},function(e,t,n){var i=n(3),r=n(4);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={insert:"head",singleton:!1};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}});return n}))},"0d58":function(e,t,n){var i=n("ce10"),r=n("e11e");e.exports=Object.keys||function(e){return i(e,r)}},"0e15":function(e,t,n){var i=n("597f");e.exports=function(e,t,n){return void 0===n?i(e,t,!1):i(e,n,!1!==t)}},"0e49":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}});return t}))},"0e6b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10,n=1===~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n},week:{dow:0,doy:4}});return t}))},"0e81":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"},n=e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10,r=e%100-i,o=e>=100?100:null;return e+(t[i]||t[r]||t[o])}},week:{dow:1,doy:7}});return n}))},"0f14":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return t}))},"0f38":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"0fae":function(e,t,n){},"0fc9":function(e,t,n){var i=n("3a38"),r=Math.max,o=Math.min;e.exports=function(e,t){return e=i(e),e<0?r(e+t,0):o(e,t)}},"0ff2":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return t}))},1098:function(e,t,n){"use strict";t.__esModule=!0;var i=n("17ed"),r=l(i),o=n("f893"),a=l(o),s="function"===typeof a.default&&"symbol"===typeof r.default?function(e){return typeof e}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":typeof e};function l(e){return e&&e.__esModule?e:{default:e}}t.default="function"===typeof a.default&&"symbol"===s(r.default)?function(e){return"undefined"===typeof e?"undefined":s(e)}:function(e){return e&&"function"===typeof a.default&&e.constructor===a.default&&e!==a.default.prototype?"symbol":"undefined"===typeof e?"undefined":s(e)}},"10e8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}});return t}))},"12f2":function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){return{methods:{focus:function(){this.$refs[e].focus()}}}}},"13e9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10===1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var o,a=t.words[i];return 1===i.length?"y"===i&&n?"једна година":r||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===i&&n&&"годину"===o?e+" година":e+" "+o)}},n=e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){var e=["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},1495:function(e,t,n){var i=n("86cc"),r=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){r(e);var n,a=o(t),s=a.length,l=0;while(s>l)i.f(e,n=a[l++],t[n]);return e}},"14e9":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=131)}({131:function(e,t,n){"use strict";n.r(t);var i=n(16),r=n(38),o=n.n(r),a=n(3),s=n(2),l={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}};function u(e){var t=e.move,n=e.size,i=e.bar,r={},o="translate"+i.axis+"("+t+"%)";return r[i.size]=n,r.transform=o,r.msTransform=o,r.webkitTransform=o,r}var c={name:"Bar",props:{vertical:Boolean,size:String,move:Number},computed:{bar:function(){return l[this.vertical?"vertical":"horizontal"]},wrap:function(){return this.$parent.wrap}},render:function(e){var t=this.size,n=this.move,i=this.bar;return e("div",{class:["el-scrollbar__bar","is-"+i.key],on:{mousedown:this.clickTrackHandler}},[e("div",{ref:"thumb",class:"el-scrollbar__thumb",on:{mousedown:this.clickThumbHandler},style:u({size:t,move:n,bar:i})})])},methods:{clickThumbHandler:function(e){e.ctrlKey||2===e.button||(this.startDrag(e),this[this.bar.axis]=e.currentTarget[this.bar.offset]-(e[this.bar.client]-e.currentTarget.getBoundingClientRect()[this.bar.direction]))},clickTrackHandler:function(e){var t=Math.abs(e.target.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),n=this.$refs.thumb[this.bar.offset]/2,i=100*(t-n)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=i*this.wrap[this.bar.scrollSize]/100},startDrag:function(e){e.stopImmediatePropagation(),this.cursorDown=!0,Object(s["on"])(document,"mousemove",this.mouseMoveDocumentHandler),Object(s["on"])(document,"mouseup",this.mouseUpDocumentHandler),document.onselectstart=function(){return!1}},mouseMoveDocumentHandler:function(e){if(!1!==this.cursorDown){var t=this[this.bar.axis];if(t){var n=-1*(this.$el.getBoundingClientRect()[this.bar.direction]-e[this.bar.client]),i=this.$refs.thumb[this.bar.offset]-t,r=100*(n-i)/this.$el[this.bar.offset];this.wrap[this.bar.scroll]=r*this.wrap[this.bar.scrollSize]/100}}},mouseUpDocumentHandler:function(e){this.cursorDown=!1,this[this.bar.axis]=0,Object(s["off"])(document,"mousemove",this.mouseMoveDocumentHandler),document.onselectstart=null}},destroyed:function(){Object(s["off"])(document,"mouseup",this.mouseUpDocumentHandler)}},d={name:"ElScrollbar",components:{Bar:c},props:{native:Boolean,wrapStyle:{},wrapClass:{},viewClass:{},viewStyle:{},noresize:Boolean,tag:{type:String,default:"div"}},data:function(){return{sizeWidth:"0",sizeHeight:"0",moveX:0,moveY:0}},computed:{wrap:function(){return this.$refs.wrap}},render:function(e){var t=o()(),n=this.wrapStyle;if(t){var i="-"+t+"px",r="margin-bottom: "+i+"; margin-right: "+i+";";Array.isArray(this.wrapStyle)?(n=Object(a["toObject"])(this.wrapStyle),n.marginRight=n.marginBottom=i):"string"===typeof this.wrapStyle?n+=r:n=r}var s=e(this.tag,{class:["el-scrollbar__view",this.viewClass],style:this.viewStyle,ref:"resize"},this.$slots.default),l=e("div",{ref:"wrap",style:n,on:{scroll:this.handleScroll},class:[this.wrapClass,"el-scrollbar__wrap",t?"":"el-scrollbar__wrap--hidden-default"]},[[s]]),u=void 0;return u=this.native?[e("div",{ref:"wrap",class:[this.wrapClass,"el-scrollbar__wrap"],style:n},[[s]])]:[l,e(c,{attrs:{move:this.moveX,size:this.sizeWidth}}),e(c,{attrs:{vertical:!0,move:this.moveY,size:this.sizeHeight}})],e("div",{class:"el-scrollbar"},u)},methods:{handleScroll:function(){var e=this.wrap;this.moveY=100*e.scrollTop/e.clientHeight,this.moveX=100*e.scrollLeft/e.clientWidth},update:function(){var e=void 0,t=void 0,n=this.wrap;n&&(e=100*n.clientHeight/n.scrollHeight,t=100*n.clientWidth/n.scrollWidth,this.sizeHeight=e<100?e+"%":"",this.sizeWidth=t<100?t+"%":"")}},mounted:function(){this.native||(this.$nextTick(this.update),!this.noresize&&Object(i["addResizeListener"])(this.$refs.resize,this.update))},beforeDestroy:function(){this.native||!this.noresize&&Object(i["removeResizeListener"])(this.$refs.resize,this.update)},install:function(e){e.component(d.name,d)}};t["default"]=d},16:function(e,t){e.exports=n("4010")},2:function(e,t){e.exports=n("5924")},3:function(e,t){e.exports=n("8122")},38:function(e,t){e.exports=n("e62d")}})},1654:function(e,t,n){"use strict";var i=n("71c1")(!0);n("30f1")(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})}))},"167b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}});return t}))},1691:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"17ed":function(e,t,n){e.exports={default:n("d8d6"),__esModule:!0}},1991:function(e,t,n){var i,r,o,a=n("9b43"),s=n("31f4"),l=n("fab2"),u=n("230e"),c=n("7726"),d=c.process,h=c.setImmediate,p=c.clearImmediate,f=c.MessageChannel,m=c.Dispatch,g=0,v={},y="onreadystatechange",_=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},b=function(e){_.call(e.data)};h&&p||(h=function(e){var t=[],n=1;while(arguments.length>n)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},p=function(e){delete v[e]},"process"==n("2d95")(d)?i=function(e){d.nextTick(a(_,e,1))}:m&&m.now?i=function(e){m.now(a(_,e,1))}:f?(r=new f,o=r.port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(e){c.postMessage(e+"","*")},c.addEventListener("message",b,!1)):i=y in u("script")?function(e){l.appendChild(u("script"))[y]=function(){l.removeChild(this),_.call(e)}}:function(e){setTimeout(a(_,e,1),0)}),e.exports={set:h,clear:p}},"1b45":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}});return t}))},"1b8d":function(e,t){function n(e){return e.replace(/\n\r?\s*/g,"")}e.exports=function(e){for(var t="",i=0;i=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,o,a){var s=n(t),l=i[e][n(t)];return 2===s&&(l=l[r?0:1]),l.replace(/%d/i,t)}},o=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"],a=e.defineLocale("ar-ly",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return a}))},"1d2b":function(e,t,n){"use strict";function i(e,t){return function(){return e.apply(t,arguments)}}n.d(t,"a",(function(){return i}))},"1ec9":function(e,t,n){var i=n("f772"),r=n("e53d").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"1fa8":function(e,t,n){var i=n("cb7c");e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(a){var o=e["return"];throw void 0!==o&&i(o.call(e)),a}}},"1fb5":function(e,t,n){"use strict";t.byteLength=c,t.toByteArray=h,t.fromByteArray=m;for(var i=[],r=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var i=n===t?0:4-n%4;return[n,i]}function c(e){var t=u(e),n=t[0],i=t[1];return 3*(n+i)/4-i}function d(e,t,n){return 3*(t+n)/4-n}function h(e){var t,n,i=u(e),a=i[0],s=i[1],l=new o(d(e,a,s)),c=0,h=s>0?a-4:a;for(n=0;n>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l}function p(e){return i[e>>18&63]+i[e>>12&63]+i[e>>6&63]+i[63&e]}function f(e,t,n){for(var i,r=[],o=t;ol?l:s+a));return 1===r?(t=e[n-1],o.push(i[t>>2]+i[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],o.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},"1fc1":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t){var n=e.split("_");return t%10===1&&t%100!==11?n[0]:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?n[1]:n[2]}function n(e,n,i){var r={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===i?n?"хвіліна":"хвіліну":"h"===i?n?"гадзіна":"гадзіну":e+" "+t(r[i],+e)}var i=e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:n,mm:n,h:n,hh:n,d:"дзень",dd:n,M:"месяц",MM:n,y:"год",yy:n},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!==2&&e%10!==3||e%100===12||e%100===13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}});return i}))},"201b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20===0||e%100===0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}});return t}))},"22d1":function(e,t,n){"use strict";var i=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r=function(){function e(){this.browser=new i,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!==typeof window}return e}(),o=new r;function a(e,t){var n=t.browser,i=e.match(/Firefox\/([\d.]+)/),r=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},"22f8":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}});return t}))},"230e":function(e,t,n){var i=n("d3f4"),r=n("7726").document,o=i(r)&&i(r.createElement);e.exports=function(e){return o?r.createElement(e):{}}},"23c6":function(e,t,n){var i=n("2d95"),r=n("2b4c")("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(e,t){try{return e[t]}catch(n){}};e.exports=function(e){var t,n,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=a(t=Object(e),r))?n:o?i(t):"Object"==(s=i(t))&&"function"==typeof t.callee?"Arguments":s}},"241e":function(e,t,n){var i=n("25eb");e.exports=function(e){return Object(i(e))}},2421:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],r=e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}});return r}))},2554:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",i;case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",i;case"h":return t?"jedan sat":"jednog sata";case"hh":return i+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",i;case"dd":return i+=1===e?"dan":"dana",i;case"MM":return i+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",i;case"yy":return i+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",i}}var n=e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"25eb":function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"26f9":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"}function i(e,t,n,i){return t?o(n)[0]:i?o(n)[1]:o(n)[2]}function r(e){return e%10===0||e>10&&e<20}function o(e){return t[e].split("_")}function a(e,t,n,a){var s=e+" ";return 1===e?s+i(e,t,n[0],a):t?s+(r(e)?o(n)[1]:o(n)[0]):a?s+o(n)[1]:s+(r(e)?o(n)[1]:o(n)[2])}var s=e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:n,ss:a,m:i,mm:a,h:i,hh:a,d:i,dd:a,M:i,MM:a,y:i,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},"27ee":function(e,t,n){var i=n("23c6"),r=n("2b4c")("iterator"),o=n("84f2");e.exports=n("8378").getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||o[i(e)]}},2877:function(e,t,n){"use strict";function i(e,t,n,i,r,o,a,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}n.d(t,"a",(function(){return i}))},2921:function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}});return t}))},"293c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}},n=e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){var e=["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"];return e[this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return n}))},"294c":function(e,t){e.exports=function(e){try{return!!e()}catch(t){return!0}}},"299c":function(e,t,n){e.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist/",n(n.s=136)}({136:function(e,t,n){"use strict";n.r(t);var i=n(5),r=n.n(i),o=n(19),a=n.n(o),s=n(2),l=n(3),u=n(7),c=n.n(u),d={name:"ElTooltip",mixins:[r.a],props:{openDelay:{type:Number,default:0},disabled:Boolean,manual:Boolean,effect:{type:String,default:"dark"},arrowOffset:{type:Number,default:0},popperClass:String,content:String,visibleArrow:{default:!0},transition:{type:String,default:"el-fade-in-linear"},popperOptions:{default:function(){return{boundariesPadding:10,gpuAcceleration:!1}}},enterable:{type:Boolean,default:!0},hideAfter:{type:Number,default:0},tabindex:{type:Number,default:0}},data:function(){return{tooltipId:"el-tooltip-"+Object(l["generateId"])(),timeoutPending:null,focusing:!1}},beforeCreate:function(){var e=this;this.$isServer||(this.popperVM=new c.a({data:{node:""},render:function(e){return this.node}}).$mount(),this.debounceClose=a()(200,(function(){return e.handleClosePopper()})))},render:function(e){var t=this;this.popperVM&&(this.popperVM.node=e("transition",{attrs:{name:this.transition},on:{afterLeave:this.doDestroy}},[e("div",{on:{mouseleave:function(){t.setExpectedState(!1),t.debounceClose()},mouseenter:function(){t.setExpectedState(!0)}},ref:"popper",attrs:{role:"tooltip",id:this.tooltipId,"aria-hidden":this.disabled||!this.showPopper?"true":"false"},directives:[{name:"show",value:!this.disabled&&this.showPopper}],class:["el-tooltip__popper","is-"+this.effect,this.popperClass]},[this.$slots.content||this.content])]));var n=this.getFirstElement();if(!n)return null;var i=n.data=n.data||{};return i.staticClass=this.addTooltipClass(i.staticClass),n},mounted:function(){var e=this;this.referenceElm=this.$el,1===this.$el.nodeType&&(this.$el.setAttribute("aria-describedby",this.tooltipId),this.$el.setAttribute("tabindex",this.tabindex),Object(s["on"])(this.referenceElm,"mouseenter",this.show),Object(s["on"])(this.referenceElm,"mouseleave",this.hide),Object(s["on"])(this.referenceElm,"focus",(function(){if(e.$slots.default&&e.$slots.default.length){var t=e.$slots.default[0].componentInstance;t&&t.focus?t.focus():e.handleFocus()}else e.handleFocus()})),Object(s["on"])(this.referenceElm,"blur",this.handleBlur),Object(s["on"])(this.referenceElm,"click",this.removeFocusing)),this.value&&this.popperVM&&this.popperVM.$nextTick((function(){e.value&&e.updatePopper()}))},watch:{focusing:function(e){e?Object(s["addClass"])(this.referenceElm,"focusing"):Object(s["removeClass"])(this.referenceElm,"focusing")}},methods:{show:function(){this.setExpectedState(!0),this.handleShowPopper()},hide:function(){this.setExpectedState(!1),this.debounceClose()},handleFocus:function(){this.focusing=!0,this.show()},handleBlur:function(){this.focusing=!1,this.hide()},removeFocusing:function(){this.focusing=!1},addTooltipClass:function(e){return e?"el-tooltip "+e.replace("el-tooltip",""):"el-tooltip"},handleShowPopper:function(){var e=this;this.expectedState&&!this.manual&&(clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.showPopper=!0}),this.openDelay),this.hideAfter>0&&(this.timeoutPending=setTimeout((function(){e.showPopper=!1}),this.hideAfter)))},handleClosePopper:function(){this.enterable&&this.expectedState||this.manual||(clearTimeout(this.timeout),this.timeoutPending&&clearTimeout(this.timeoutPending),this.showPopper=!1,this.disabled&&this.doDestroy())},setExpectedState:function(e){!1===e&&clearTimeout(this.timeoutPending),this.expectedState=e},getFirstElement:function(){var e=this.$slots.default;if(!Array.isArray(e))return null;for(var t=null,n=0;nl&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}},"2aba":function(e,t,n){var i=n("7726"),r=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s=n("fa5b"),l="toString",u=(""+s).split(l);n("8378").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||r(n,a,e[t]?""+e[t]:u.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,l,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},"2aeb":function(e,t,n){var i=n("cb7c"),r=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},l="prototype",u=function(){var e,t=n("230e")("iframe"),i=o.length,r="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(r+"script"+a+"document.F=Object"+r+"/script"+a),e.close(),u=e.F;while(i--)delete u[l][o[i]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=i(e),n=new s,s[l]=null,n[a]=e):n=u(),void 0===t?n:r(n,t)}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EffectScope",(function(){return Lt})),n.d(t,"computed",(function(){return vt})),n.d(t,"customRef",(function(){return lt})),n.d(t,"default",(function(){return ro})),n.d(t,"defineAsyncComponent",(function(){return ni})),n.d(t,"defineComponent",(function(){return _i})),n.d(t,"del",(function(){return Ze})),n.d(t,"effectScope",(function(){return Ot})),n.d(t,"getCurrentInstance",(function(){return ge})),n.d(t,"getCurrentScope",(function(){return At})),n.d(t,"h",(function(){return Fn})),n.d(t,"inject",(function(){return Yt})),n.d(t,"isProxy",(function(){return Fe})),n.d(t,"isReactive",(function(){return Ye})),n.d(t,"isReadonly",(function(){return Re})),n.d(t,"isRef",(function(){return et})),n.d(t,"isShallow",(function(){return Ne})),n.d(t,"markRaw",(function(){return ze})),n.d(t,"mergeDefaults",(function(){return kn})),n.d(t,"nextTick",(function(){return Qn})),n.d(t,"onActivated",(function(){return di})),n.d(t,"onBeforeMount",(function(){return oi})),n.d(t,"onBeforeUnmount",(function(){return ui})),n.d(t,"onBeforeUpdate",(function(){return si})),n.d(t,"onDeactivated",(function(){return hi})),n.d(t,"onErrorCaptured",(function(){return vi})),n.d(t,"onMounted",(function(){return ai})),n.d(t,"onRenderTracked",(function(){return fi})),n.d(t,"onRenderTriggered",(function(){return mi})),n.d(t,"onScopeDispose",(function(){return Et})),n.d(t,"onServerPrefetch",(function(){return pi})),n.d(t,"onUnmounted",(function(){return ci})),n.d(t,"onUpdated",(function(){return li})),n.d(t,"provide",(function(){return jt})),n.d(t,"proxyRefs",(function(){return at})),n.d(t,"reactive",(function(){return Ee})),n.d(t,"readonly",(function(){return pt})),n.d(t,"ref",(function(){return tt})),n.d(t,"set",(function(){return Ke})),n.d(t,"shallowReactive",(function(){return je})),n.d(t,"shallowReadonly",(function(){return gt})),n.d(t,"shallowRef",(function(){return nt})),n.d(t,"toRaw",(function(){return He})),n.d(t,"toRef",(function(){return ct})),n.d(t,"toRefs",(function(){return ut})),n.d(t,"triggerRef",(function(){return rt})),n.d(t,"unref",(function(){return ot})),n.d(t,"useAttrs",(function(){return wn})),n.d(t,"useCssModule",(function(){return ei})),n.d(t,"useCssVars",(function(){return ti})),n.d(t,"useListeners",(function(){return Mn})),n.d(t,"useSlots",(function(){return xn})),n.d(t,"version",(function(){return yi})),n.d(t,"watch",(function(){return Tt})),n.d(t,"watchEffect",(function(){return wt})),n.d(t,"watchPostEffect",(function(){return Mt})),n.d(t,"watchSyncEffect",(function(){return St})); /*! * Vue.js v2.7.13 * (c) 2014-2022 Evan You * Released under the MIT License. */ var i=Object.freeze({}),r=Array.isArray;function o(e){return void 0===e||null===e}function a(e){return void 0!==e&&null!==e}function s(e){return!0===e}function l(e){return!1===e}function u(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return"function"===typeof e}function d(e){return null!==e&&"object"===typeof e}var h=Object.prototype.toString;function p(e){return"[object Object]"===h.call(e)}function f(e){return"[object RegExp]"===h.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return a(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===h?JSON.stringify(e,null,2):String(e)}function y(e){var t=parseFloat(e);return isNaN(t)?e:t}function _(e,t){for(var n=Object.create(null),i=e.split(","),r=0;r-1)return e.splice(i,1)}}var w=Object.prototype.hasOwnProperty;function M(e,t){return w.call(e,t)}function S(e){var t=Object.create(null);return function(n){var i=t[n];return i||(t[n]=e(n))}}var k=/-(\w)/g,C=S((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))})),T=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,L=S((function(e){return e.replace(D,"-$1").toLowerCase()}));function O(e,t){function n(n){var i=arguments.length;return i?i>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function I(e,t){return e.bind(t)}var A=Function.prototype.bind?I:O;function E(e,t){t=t||0;var n=e.length-t,i=new Array(n);while(n--)i[n]=e[n+t];return i}function j(e,t){for(var n in t)e[n]=t[n];return e}function P(e){for(var t={},n=0;n0,ie=ee&&ee.indexOf("edge/")>0;ee&&ee.indexOf("android");var re=ee&&/iphone|ipad|ipod|ios/.test(ee);ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee);var oe,ae=ee&&ee.match(/firefox\/(\d+)/),se={}.watch,le=!1;if(Q)try{var ue={};Object.defineProperty(ue,"passive",{get:function(){le=!0}}),window.addEventListener("test-passive",null,ue)}catch(ol){}var ce=function(){return void 0===oe&&(oe=!Q&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),oe},de=Q&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function he(e){return"function"===typeof e&&/native code/.test(e.toString())}var pe,fe="undefined"!==typeof Symbol&&he(Symbol)&&"undefined"!==typeof Reflect&&he(Reflect.ownKeys);pe="undefined"!==typeof Set&&he(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var me=null;function ge(){return me&&{proxy:me}}function ve(e){void 0===e&&(e=null),e||me&&me._scope.off(),me=e,e&&e._scope.on()}var ye=function(){function e(e,t,n,i,r,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=i,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(e.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),e}(),_e=function(e){void 0===e&&(e="");var t=new ye;return t.text=e,t.isComment=!0,t};function be(e){return new ye(void 0,void 0,void 0,String(e))}function xe(e){var t=new ye(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var we=0,Me=[],Se=function(){for(var e=0;e1)return n&&c(t)?t.call(i):t}else 0}var Nt=S((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var n="~"===e.charAt(0);e=n?e.slice(1):e;var i="!"===e.charAt(0);return e=i?e.slice(1):e,{name:e,once:n,capture:i,passive:t}}));function Rt(e,t){function n(){var e=n.fns;if(!r(e))return zn(e,null,arguments,t,"v-on handler");for(var i=e.slice(),o=0;o0&&(i=Gt(i,"".concat(t||"","_").concat(n)),Wt(i[0])&&Wt(c)&&(d[l]=be(c.text+i[0].text),i.shift()),d.push.apply(d,i)):u(i)?Wt(c)?d[l]=be(c.text+i):""!==i&&d.push(be(i)):Wt(i)&&Wt(c)?d[l]=be(c.text+i.text):(s(e._isVList)&&a(i.tag)&&o(i.key)&&a(t)&&(i.key="__vlist".concat(t,"_").concat(n,"__")),d.push(i)));return d}function Ut(e,t){var n,i,o,s,l=null;if(r(e)||"string"===typeof e)for(l=new Array(e.length),n=0,i=e.length;n0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&r&&r!==i&&l===r.$key&&!a&&!r.$hasNormal)return r;for(var u in o={},t)t[u]&&"$"!==u[0]&&(o[u]=pn(e,n,u,t[u]))}else o={};for(var c in n)c in o||(o[c]=fn(n,c));return t&&Object.isExtensible(t)&&(t._normalized=o),X(o,"$stable",s),X(o,"$key",l),X(o,"$hasNormal",a),o}function pn(e,t,n,i){var o=function(){var t=me;ve(e);var n=arguments.length?i.apply(null,arguments):i({});n=n&&"object"===typeof n&&!r(n)?[n]:$t(n);var o=n&&n[0];return ve(t),n&&(!o||1===n.length&&o.isComment&&!dn(o))?void 0:n};return i.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function fn(e,t){return function(){return e[t]}}function mn(e){var t=e.$options,n=t.setup;if(n){var i=e._setupContext=gn(e);ve(e),Te();var r=zn(n,null,[e._props||je({}),i],e,"setup");if(De(),ve(),c(r))t.render=r;else if(d(r))if(e._setupState=r,r.__sfc){var o=e._setupProxy={};for(var a in r)"__sfc"!==a&&st(o,r,a)}else for(var a in r)q(a)||st(e,r,a);else 0}}function gn(e){return{get attrs(){if(!e._attrsProxy){var t=e._attrsProxy={};X(t,"_v_attr_proxy",!0),vn(t,e.$attrs,i,e,"$attrs")}return e._attrsProxy},get listeners(){if(!e._listenersProxy){var t=e._listenersProxy={};vn(t,e.$listeners,i,e,"$listeners")}return e._listenersProxy},get slots(){return _n(e)},emit:A(e.$emit,e),expose:function(t){t&&Object.keys(t).forEach((function(n){return st(e,t,n)}))}}}function vn(e,t,n,i,r){var o=!1;for(var a in t)a in e?t[a]!==n[a]&&(o=!0):(o=!0,yn(e,a,i,r));for(var a in e)a in t||(o=!0,delete e[a]);return o}function yn(e,t,n,i){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){return n[i][t]}})}function _n(e){return e._slotsProxy||bn(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}function bn(e,t){for(var n in t)e[n]=t[n];for(var n in e)n in t||delete e[n]}function xn(){return Sn().slots}function wn(){return Sn().attrs}function Mn(){return Sn().listeners}function Sn(){var e=me;return e._setupContext||(e._setupContext=gn(e))}function kn(e,t){var n=r(e)?e.reduce((function(e,t){return e[t]={},e}),{}):e;for(var i in t){var o=n[i];o?r(o)||c(o)?n[i]={type:o,default:t[i]}:o.default=t[i]:null===o&&(n[i]={default:t[i]})}return n}function Cn(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,r=n&&n.context;e.$slots=un(t._renderChildren,r),e.$scopedSlots=n?hn(e.$parent,n.data.scopedSlots,e.$slots):i,e._c=function(t,n,i,r){return Pn(e,t,n,i,r,!1)},e.$createElement=function(t,n,i,r){return Pn(e,t,n,i,r,!0)};var o=n&&n.data;Xe(e,"$attrs",o&&o.attrs||i,null,!0),Xe(e,"$listeners",t._parentListeners||i,null,!0)}var Tn=null;function Dn(e){ln(e.prototype),e.prototype.$nextTick=function(e){return Qn(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,i=n.render,o=n._parentVnode;o&&t._isMounted&&(t.$scopedSlots=hn(t.$parent,o.data.scopedSlots,t.$slots,t.$scopedSlots),t._slotsProxy&&bn(t._slotsProxy,t.$scopedSlots)),t.$vnode=o;try{ve(t),Tn=t,e=i.call(t._renderProxy,t.$createElement)}catch(ol){Hn(ol,t,"render"),e=t._vnode}finally{Tn=null,ve()}return r(e)&&1===e.length&&(e=e[0]),e instanceof ye||(e=_e()),e.parent=o,e}}function Ln(e,t){return(e.__esModule||fe&&"Module"===e[Symbol.toStringTag])&&(e=e.default),d(e)?t.extend(e):e}function On(e,t,n,i,r){var o=_e();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:i,tag:r},o}function In(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;var n=Tn;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){var i=e.owners=[n],r=!0,l=null,u=null;n.$on("hook:destroyed",(function(){return x(i,n)}));var c=function(e){for(var t=0,n=i.length;t1?E(n):n;for(var i=E(arguments,1),r='event handler for "'.concat(e,'"'),o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Ki=function(){return Zi.now()})}var Ji=function(e,t){if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Qi(){var e,t;for(Xi=Ki(),Gi=!0,Bi.sort(Ji),Ui=0;UiUi&&Bi[n].id>e.id)n--;Bi.splice(n+1,0,e)}else Bi.push(e);Wi||(Wi=!0,Qn(Qi))}}function rr(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!d(n))return;for(var i=Pt(e),r=fe?Reflect.ownKeys(n):Object.keys(n),o=0;o-1)if(o&&!M(r,"default"))a=!1;else if(""===a||a===L(e)){var l=Nr(String,r.type);(l<0||s-1)return this;var n=E(arguments,1);return n.unshift(this),c(e.install)?e.install.apply(e,n):c(e)&&e.apply(null,n),t.push(e),this}}function ao(e){e.mixin=function(e){return this.options=Or(this.options,e),this}}function so(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,i=n.cid,r=e._Ctor||(e._Ctor={});if(r[i])return r[i];var o=dr(e)||dr(n.options);var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=Or(n.options,e),a["super"]=n,a.options.props&&lo(a),a.options.computed&&uo(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,$.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=j({},a.options),r[i]=a,a}}function lo(e){var t=e.options.props;for(var n in t)Fr(e.prototype,"_props",n)}function uo(e){var t=e.options.computed;for(var n in t)Gr(e.prototype,n,t[n])}function co(e){$.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&c(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}function ho(e){return e&&(dr(e.Ctor.options)||e.tag)}function po(e,t){return r(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!f(e)&&e.test(t)}function fo(e,t){var n=e.cache,i=e.keys,r=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&mo(n,o,i,r)}}}function mo(e,t,n,i){var r=e[t];!r||i&&r.tag===i.tag||r.componentInstance.$destroy(),e[t]=null,x(n,t)}eo(ro),Jr(ro),Ii(ro),Pi(ro),Dn(ro);var go=[String,RegExp,Array],vo={name:"keep-alive",abstract:!0,props:{include:go,exclude:go,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,i=e.vnodeToCache,r=e.keyToCache;if(i){var o=i.tag,a=i.componentInstance,s=i.componentOptions;t[r]={name:ho(s),tag:o,componentInstance:a},n.push(r),this.max&&n.length>parseInt(this.max)&&mo(t,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)mo(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){fo(e,(function(e){return po(t,e)}))})),this.$watch("exclude",(function(t){fo(e,(function(e){return!po(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=An(e),n=t&&t.componentOptions;if(n){var i=ho(n),r=this,o=r.include,a=r.exclude;if(o&&(!i||!po(o,i))||a&&i&&po(a,i))return t;var s=this,l=s.cache,u=s.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):t.key;l[c]?(t.componentInstance=l[c].componentInstance,x(u,c),u.push(c)):(this.vnodeToCache=t,this.keyToCache=c),t.data.keepAlive=!0}return t||e&&e[0]}},yo={KeepAlive:vo};function _o(e){var t={get:function(){return G}};Object.defineProperty(e,"config",t),e.util={warn:_r,extend:j,mergeOptions:Or,defineReactive:Xe},e.set=Ke,e.delete=Ze,e.nextTick=Qn,e.observable=function(e){return qe(e),e},e.options=Object.create(null),$.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,j(e.options.components,yo),oo(e),ao(e),so(e),co(e)}_o(ro),Object.defineProperty(ro.prototype,"$isServer",{get:ce}),Object.defineProperty(ro.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(ro,"FunctionalRenderContext",{value:sr}),ro.version=yi;var bo=_("style,class"),xo=_("input,textarea,option,select,progress"),wo=function(e,t,n){return"value"===n&&xo(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Mo=_("contenteditable,draggable,spellcheck"),So=_("events,caret,typing,plaintext-only"),ko=function(e,t){return Oo(t)||"false"===t?"false":"contenteditable"===e&&So(t)?t:"true"},Co=_("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),To="http://www.w3.org/1999/xlink",Do=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Lo=function(e){return Do(e)?e.slice(6,e.length):""},Oo=function(e){return null==e||!1===e};function Io(e){var t=e.data,n=e,i=e;while(a(i.componentInstance))i=i.componentInstance._vnode,i&&i.data&&(t=Ao(i.data,t));while(a(n=n.parent))n&&n.data&&(t=Ao(t,n.data));return Eo(t.staticClass,t.class)}function Ao(e,t){return{staticClass:jo(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Eo(e,t){return a(e)||a(t)?jo(e,Po(t)):""}function jo(e,t){return e?t?e+" "+t:e:t||""}function Po(e){return Array.isArray(e)?Yo(e):d(e)?No(e):"string"===typeof e?e:""}function Yo(e){for(var t,n="",i=0,r=e.length;i-1?Vo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Vo[e]=/HTMLUnknownElement/.test(t.toString())}var Wo=_("text,number,password,search,email,tel,url");function Go(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Uo(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function qo(e,t){return document.createElementNS(Ro[e],t)}function Xo(e){return document.createTextNode(e)}function Ko(e){return document.createComment(e)}function Zo(e,t,n){e.insertBefore(t,n)}function Jo(e,t){e.removeChild(t)}function Qo(e,t){e.appendChild(t)}function ea(e){return e.parentNode}function ta(e){return e.nextSibling}function na(e){return e.tagName}function ia(e,t){e.textContent=t}function ra(e,t){e.setAttribute(t,"")}var oa=Object.freeze({__proto__:null,createElement:Uo,createElementNS:qo,createTextNode:Xo,createComment:Ko,insertBefore:Zo,removeChild:Jo,appendChild:Qo,parentNode:ea,nextSibling:ta,tagName:na,setTextContent:ia,setStyleScope:ra}),aa={create:function(e,t){sa(t)},update:function(e,t){e.data.ref!==t.data.ref&&(sa(e,!0),sa(t))},destroy:function(e){sa(e,!0)}};function sa(e,t){var n=e.data.ref;if(a(n)){var i=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(c(n))zn(n,i,[s],i,"template ref function");else{var u=e.data.refInFor,d="string"===typeof n||"number"===typeof n,h=et(n),p=i.$refs;if(d||h)if(u){var f=d?p[n]:n.value;t?r(f)&&x(f,o):r(f)?f.includes(o)||f.push(o):d?(p[n]=[o],la(i,n,p[n])):n.value=[o]}else if(d){if(t&&p[n]!==o)return;p[n]=l,la(i,n,s)}else if(h){if(t&&n.value!==o)return;n.value=s}else 0}}}function la(e,t,n){var i=e._setupState;i&&M(i,t)&&(et(i[t])?i[t].value=n:i[t]=n)}var ua=new ye("",{},[]),ca=["create","activate","update","remove","destroy"];function da(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&ha(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function ha(e,t){if("input"!==e.tag)return!0;var n,i=a(n=e.data)&&a(n=n.attrs)&&n.type,r=a(n=t.data)&&a(n=n.attrs)&&n.type;return i===r||Wo(i)&&Wo(r)}function pa(e,t,n){var i,r,o={};for(i=t;i<=n;++i)r=e[i].key,a(r)&&(o[r]=i);return o}function fa(e){var t,n,i={},l=e.modules,c=e.nodeOps;for(t=0;tm?(d=o(n[y+1])?null:n[y+1].elm,S(e,d,n,p,y,i)):p>y&&C(t,h,m)}function L(e,t,n,i){for(var r=n;r-1?ka(e,t,n):Co(t)?Oo(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Mo(t)?e.setAttribute(t,ko(t,n)):Do(t)?Oo(n)?e.removeAttributeNS(To,Lo(t)):e.setAttributeNS(To,t,n):ka(e,t,n)}function ka(e,t,n){if(Oo(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var i=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(t,n)}}var Ca={create:Ma,update:Ma};function Ta(e,t){var n=t.elm,i=t.data,r=e.data;if(!(o(i.staticClass)&&o(i.class)&&(o(r)||o(r.staticClass)&&o(r.class)))){var s=Io(t),l=n._transitionClasses;a(l)&&(s=jo(s,Po(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var Da,La={create:Ta,update:Ta},Oa="__r",Ia="__c";function Aa(e){if(a(e[Oa])){var t=te?"change":"input";e[t]=[].concat(e[Oa],e[t]||[]),delete e[Oa]}a(e[Ia])&&(e.change=[].concat(e[Ia],e.change||[]),delete e[Ia])}function Ea(e,t,n){var i=Da;return function r(){var o=t.apply(null,arguments);null!==o&&Ya(e,r,n,i)}}var ja=Wn&&!(ae&&Number(ae[1])<=53);function Pa(e,t,n,i){if(ja){var r=Xi,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=r||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Da.addEventListener(e,t,le?{capture:n,passive:i}:n)}function Ya(e,t,n,i){(i||Da).removeEventListener(e,t._wrapper||t,n)}function Na(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},i=e.data.on||{};Da=t.elm||e.elm,Aa(n),Ft(n,i,Pa,Ya,Ea,t.context),Da=void 0}}var Ra,Fa={create:Na,update:Na,destroy:function(e){return Na(e,ua)}};function Ha(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,i,r=t.elm,l=e.data.domProps||{},u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=j({},u)),l)n in u||(r[n]="");for(n in u){if(i=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),i===l[n])continue;1===r.childNodes.length&&r.removeChild(r.childNodes[0])}if("value"===n&&"PROGRESS"!==r.tagName){r._value=i;var c=o(i)?"":String(i);za(r,c)&&(r.value=c)}else if("innerHTML"===n&&Ho(r.tagName)&&o(r.innerHTML)){Ra=Ra||document.createElement("div"),Ra.innerHTML="".concat(i,"");var d=Ra.firstChild;while(r.firstChild)r.removeChild(r.firstChild);while(d.firstChild)r.appendChild(d.firstChild)}else if(i!==l[n])try{r[n]=i}catch(ol){}}}}function za(e,t){return!e.composing&&("OPTION"===e.tagName||Ba(e,t)||Va(e,t))}function Ba(e,t){var n=!0;try{n=document.activeElement!==e}catch(ol){}return n&&e.value!==t}function Va(e,t){var n=e.value,i=e._vModifiers;if(a(i)){if(i.number)return y(n)!==y(t);if(i.trim)return n.trim()!==t.trim()}return n!==t}var $a={create:Ha,update:Ha},Wa=S((function(e){var t={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Ga(e){var t=Ua(e.style);return e.staticStyle?j(e.staticStyle,t):t}function Ua(e){return Array.isArray(e)?P(e):"string"===typeof e?Wa(e):e}function qa(e,t){var n,i={};if(t){var r=e;while(r.componentInstance)r=r.componentInstance._vnode,r&&r.data&&(n=Ga(r.data))&&j(i,n)}(n=Ga(e.data))&&j(i,n);var o=e;while(o=o.parent)o.data&&(n=Ga(o.data))&&j(i,n);return i}var Xa,Ka=/^--/,Za=/\s*!important$/,Ja=function(e,t,n){if(Ka.test(t))e.style.setProperty(t,n);else if(Za.test(n))e.style.setProperty(L(t),n.replace(Za,""),"important");else{var i=es(t);if(Array.isArray(n))for(var r=0,o=n.length;r-1?t.split(is).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var n=" ".concat(e.getAttribute("class")||""," ");n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function os(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(is).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{var n=" ".concat(e.getAttribute("class")||""," "),i=" "+t+" ";while(n.indexOf(i)>=0)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function as(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&j(t,ss(e.name||"v")),j(t,e),t}return"string"===typeof e?ss(e):void 0}}var ss=S((function(e){return{enterClass:"".concat(e,"-enter"),enterToClass:"".concat(e,"-enter-to"),enterActiveClass:"".concat(e,"-enter-active"),leaveClass:"".concat(e,"-leave"),leaveToClass:"".concat(e,"-leave-to"),leaveActiveClass:"".concat(e,"-leave-active")}})),ls=Q&&!ne,us="transition",cs="animation",ds="transition",hs="transitionend",ps="animation",fs="animationend";ls&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ds="WebkitTransition",hs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ps="WebkitAnimation",fs="webkitAnimationEnd"));var ms=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function gs(e){ms((function(){ms(e)}))}function vs(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),rs(e,t))}function ys(e,t){e._transitionClasses&&x(e._transitionClasses,t),os(e,t)}function _s(e,t,n){var i=xs(e,t),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===us?hs:fs,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n=us,c=a,d=o.length):t===cs?u>0&&(n=cs,c=u,d=l.length):(c=Math.max(a,u),n=c>0?a>u?us:cs:null,d=n?n===us?o.length:l.length:0);var h=n===us&&bs.test(i[ds+"Property"]);return{type:n,timeout:c,propCount:d,hasTransform:h}}function ws(e,t){while(e.length1}function Ds(e,t){!0!==t.data.show&&Ss(t)}var Ls=Q?{create:Ds,activate:Ds,remove:function(e,t){!0!==e.data.show?ks(e,t):t()}}:{},Os=[Ca,La,Fa,$a,ns,Ls],Is=Os.concat(wa),As=fa({nodeOps:oa,modules:Is});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Hs(e,"input")}));var Es={inserted:function(e,t,n,i){"select"===n.tag?(i.elm&&!i.elm._vOptions?Ht(n,"postpatch",(function(){Es.componentUpdated(e,t,n)})):js(e,t,n.context),e._vOptions=[].map.call(e.options,Ns)):("textarea"===n.tag||Wo(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Rs),e.addEventListener("compositionend",Fs),e.addEventListener("change",Fs),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){js(e,t,n.context);var i=e._vOptions,r=e._vOptions=[].map.call(e.options,Ns);if(r.some((function(e,t){return!F(e,i[t])}))){var o=e.multiple?t.value.some((function(e){return Ys(e,r)})):t.value!==t.oldValue&&Ys(t.value,r);o&&Hs(e,"change")}}}};function js(e,t,n){Ps(e,t,n),(te||ie)&&setTimeout((function(){Ps(e,t,n)}),0)}function Ps(e,t,n){var i=t.value,r=e.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(F(Ns(a),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));r||(e.selectedIndex=-1)}}function Ys(e,t){return t.every((function(t){return!F(t,e)}))}function Ns(e){return"_value"in e?e._value:e.value}function Rs(e){e.target.composing=!0}function Fs(e){e.target.composing&&(e.target.composing=!1,Hs(e.target,"input"))}function Hs(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function zs(e){return!e.componentInstance||e.data&&e.data.transition?e:zs(e.componentInstance._vnode)}var Bs={bind:function(e,t,n){var i=t.value;n=zs(n);var r=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;i&&r?(n.data.show=!0,Ss(n,(function(){e.style.display=o}))):e.style.display=i?o:"none"},update:function(e,t,n){var i=t.value,r=t.oldValue;if(!i!==!r){n=zs(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,i?Ss(n,(function(){e.style.display=e.__vOriginalDisplay})):ks(n,(function(){e.style.display="none"}))):e.style.display=i?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,i,r){r||(e.style.display=e.__vOriginalDisplay)}},Vs={model:Es,show:Bs},$s={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ws(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ws(An(t.children)):e}function Gs(e){var t={},n=e.$options;for(var i in n.propsData)t[i]=e[i];var r=n._parentListeners;for(var i in r)t[C(i)]=r[i];return t}function Us(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function qs(e){while(e=e.parent)if(e.data.transition)return!0}function Xs(e,t){return t.key===e.key&&t.tag===e.tag}var Ks=function(e){return e.tag||dn(e)},Zs=function(e){return"show"===e.name},Js={name:"transition",props:$s,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Ks),n.length)){0;var i=this.mode;0;var r=n[0];if(qs(this.$vnode))return r;var o=Ws(r);if(!o)return r;if(this._leaving)return Us(e,r);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:u(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Gs(this),l=this._vnode,c=Ws(l);if(o.data.directives&&o.data.directives.some(Zs)&&(o.data.show=!0),c&&c.data&&!Xs(o,c)&&!dn(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=j({},s);if("out-in"===i)return this._leaving=!0,Ht(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Us(e,r);if("in-out"===i){if(dn(o))return l;var h,p=function(){h()};Ht(s,"afterEnter",p),Ht(s,"enterCancelled",p),Ht(d,"delayLeave",(function(e){h=e}))}}return r}}},Qs=j({tag:String,moveClass:String},$s);delete Qs.mode;var el={props:Qs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,i){var r=Ei(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,r(),t.call(e,n,i)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),i=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],a=Gs(this),s=0;s=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2e8c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}});return t}))},"2f62":function(e,t,n){"use strict";(function(e){ /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function n(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[i].concat(e.init):i,n.call(this,e)}}function i(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},r=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=s(e[n],t)})),i}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function u(e){return null!==e&&"object"===typeof e}function c(e){return e&&"function"===typeof e.then}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var f=function(e){this.register([],e,!1)};function m(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return void 0;m(e.concat(i),t.getChild(i),n.modules[i])}}f.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},f.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},f.prototype.update=function(e){m([],this.root,e)},f.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var r=new h(t,n);if(0===e.length)this.root=r;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],r)}t.modules&&l(t.modules,(function(t,r){i.register(e.concat(r),t,n)}))},f.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},f.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var g;var v=function(e){var t=this;void 0===e&&(e={}),!g&&"undefined"!==typeof window&&window.Vue&&I(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new f(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new g,this._makeLocalGettersCache=Object.create(null);var r=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(r,e,t)},this.commit=function(e,t,n){return l.call(r,e,t,n)},this.strict=i;var u=this._modules.root.state;w(this,u,[],this._modules.root),x(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:g.config.devtools;c&&o(this)},y={state:{configurable:!0}};function _(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function b(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;w(e,n,[],e._modules.root,!0),x(e,n,t)}function x(e,t,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};l(r,(function(t,n){o[n]=d(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var a=g.config.silent;g.config.silent=!0,e._vm=new g({data:{$$state:t},computed:o}),g.config.silent=a,e.strict&&D(e),i&&(n&&e._withCommit((function(){i._data.$$state=null})),g.nextTick((function(){return i.$destroy()})))}function w(e,t,n,i,r){var o=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!o&&!r){var s=L(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){g.set(s,l,i.state)}))}var u=i.context=M(e,a,n);i.forEachMutation((function(t,n){var i=a+n;k(e,i,t,u)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,r=t.handler||t;C(e,i,r,u)})),i.forEachGetter((function(t,n){var i=a+n;T(e,i,t,u)})),i.forEachChild((function(i,o){w(e,t,n.concat(o),i,r)}))}function M(e,t,n){var i=""===t,r={dispatch:i?e.dispatch:function(n,i,r){var o=O(n,i,r),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,r){var o=O(n,i,r),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return S(e,t)}},state:{get:function(){return L(e.state,n)}}}),r}function S(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(r){if(r.slice(0,i)===t){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,i){var r=e._mutations[t]||(e._mutations[t]=[]);r.push((function(t){n.call(e,i.state,t)}))}function C(e,t,n,i){var r=e._actions[t]||(e._actions[t]=[]);r.push((function(t){var r=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return c(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}function T(e,t,n,i){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)})}function D(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function L(e,t){return t.reduce((function(e,t){return e[t]}),e)}function O(e,t,n){return u(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function I(e){g&&e===g||(g=e,n(g))}y.state.get=function(){return this._vm._data.$$state},y.state.set=function(e){0},v.prototype.commit=function(e,t,n){var i=this,r=O(e,t,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,i.state)})))},v.prototype.dispatch=function(e,t){var n=this,i=O(e,t),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var l=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return _(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return _(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var i=this;return this._watcherVM.$watch((function(){return e(i.state,i.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),w(this,this.state,e,this._modules.get(e),n.preserveState),x(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=L(t.state,e.slice(0,-1));g.delete(n,e[e.length-1])})),b(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),b(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,y);var A=F((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=H(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"===typeof r?r.call(this,t,n):t[r]},n[i].vuex=!0})),n})),E=F((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.commit;if(e){var o=H(this.$store,"mapMutations",e);if(!o)return;i=o.context.commit}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),j=F((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;r=e+r,n[i]=function(){if(!e||H(this.$store,"mapGetters",e))return this.$store.getters[r]},n[i].vuex=!0})),n})),P=F((function(e,t){var n={};return N(t).forEach((function(t){var i=t.key,r=t.val;n[i]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var o=H(this.$store,"mapActions",e);if(!o)return;i=o.context.dispatch}return"function"===typeof r?r.apply(this,[i].concat(t)):i.apply(this.$store,[r].concat(t))}})),n})),Y=function(e){return{mapState:A.bind(null,e),mapGetters:j.bind(null,e),mapMutations:E.bind(null,e),mapActions:P.bind(null,e)}};function N(e){return R(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function R(e){return Array.isArray(e)||u(e)}function F(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function H(e,t,n){var i=e._modulesNamespaceMap[n];return i}function z(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var i=e.transformer;void 0===i&&(i=function(e){return e});var r=e.mutationTransformer;void 0===r&&(r=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var l=e.logMutations;void 0===l&&(l=!0);var u=e.logActions;void 0===u&&(u=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var d=s(e.state);"undefined"!==typeof c&&(l&&e.subscribe((function(e,o){var a=s(o);if(n(e,d,a)){var l=$(),u=r(e),h="mutation "+e.type+l;B(c,h,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",i(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",i(a)),V(c)}d=a})),u&&e.subscribeAction((function(e,n){if(o(e,n)){var i=$(),r=a(e),s="action "+e.type+i;B(c,s,t),c.log("%c action","color: #03A9F4; font-weight: bold",r),V(c)}})))}}function B(e,t,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,t)}catch(r){e.log(t)}}function V(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function $(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function G(e,t){return W("0",t-e.toString().length)+e}var U={Store:v,install:I,version:"3.6.2",mapState:A,mapMutations:E,mapGetters:j,mapActions:P,createNamespacedHelpers:Y,createLogger:z};t["a"]=U}).call(this,n("c8ba"))},"2fdb":function(e,t,n){"use strict";var i=n("5ca1"),r=n("d2c8"),o="includes";i(i.P+i.F*n("5147")(o),"String",{includes:function(e){return!!~r(this,e,o).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"30b5":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var i=n("c532"),r=n("b922");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function a(e,t,n){if(!t)return e;const a=n&&n.encode||o,s=n&&n.serialize;let l;if(l=s?s(t,n):i["a"].isURLSearchParams(t)?t.toString():new r["a"](t,n).toString(a),l){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+l}return e}},"30f1":function(e,t,n){"use strict";var i=n("b8e3"),r=n("63b6"),o=n("9138"),a=n("35e8"),s=n("481b"),l=n("8f60"),u=n("45f2"),c=n("53e2"),d=n("5168")("iterator"),h=!([].keys&&"next"in[].keys()),p="@@iterator",f="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,_,b){l(n,t,v);var x,w,M,S=function(e){if(!h&&e in D)return D[e];switch(e){case f:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},k=t+" Iterator",C=y==m,T=!1,D=e.prototype,L=D[d]||D[p]||y&&D[y],O=L||S(y),I=y?C?S("entries"):O:void 0,A="Array"==t&&D.entries||L;if(A&&(M=c(A.call(new e)),M!==Object.prototype&&M.next&&(u(M,k,!0),i||"function"==typeof M[d]||a(M,d,g))),C&&L&&L.name!==m&&(T=!0,O=function(){return L.call(this)}),i&&!b||!h&&!T&&D[d]||a(D,d,O),s[t]=O,s[k]=g,y)if(x={values:C?O:S(m),keys:_?O:S(f),entries:I},b)for(w in x)w in D||o(D,w,x[w]);else r(r.P+r.F*(h||T),t,x);return x}},"313e":function(e,t,n){"use strict";n.r(t),n.d(t,"version",(function(){return D_})),n.d(t,"dependencies",(function(){return L_})),n.d(t,"PRIORITY",(function(){return G_})),n.d(t,"init",(function(){return Hb})),n.d(t,"connect",(function(){return zb})),n.d(t,"disConnect",(function(){return Bb})),n.d(t,"disconnect",(function(){return Vb})),n.d(t,"dispose",(function(){return $b})),n.d(t,"getInstanceByDom",(function(){return Wb})),n.d(t,"getInstanceById",(function(){return Gb})),n.d(t,"registerTheme",(function(){return Ub})),n.d(t,"registerPreprocessor",(function(){return qb})),n.d(t,"registerProcessor",(function(){return Xb})),n.d(t,"registerPostInit",(function(){return Kb})),n.d(t,"registerPostUpdate",(function(){return Zb})),n.d(t,"registerUpdateLifecycle",(function(){return Jb})),n.d(t,"registerAction",(function(){return Qb})),n.d(t,"registerCoordinateSystem",(function(){return ex})),n.d(t,"getCoordinateSystemDimensions",(function(){return tx})),n.d(t,"registerLocale",(function(){return oc})),n.d(t,"registerLayout",(function(){return nx})),n.d(t,"registerVisual",(function(){return ix})),n.d(t,"registerLoading",(function(){return ax})),n.d(t,"setCanvasCreator",(function(){return sx})),n.d(t,"registerMap",(function(){return lx})),n.d(t,"getMap",(function(){return ux})),n.d(t,"registerTransform",(function(){return cx})),n.d(t,"dataTool",(function(){return dx})),n.d(t,"zrender",(function(){return o})),n.d(t,"matrix",(function(){return r})),n.d(t,"vector",(function(){return i})),n.d(t,"zrUtil",(function(){return g})),n.d(t,"color",(function(){return Jt})),n.d(t,"throttle",(function(){return vv})),n.d(t,"helper",(function(){return s})),n.d(t,"use",(function(){return fx})),n.d(t,"setPlatformAPI",(function(){return hi["e"]})),n.d(t,"parseGeoJSON",(function(){return oS})),n.d(t,"parseGeoJson",(function(){return oS})),n.d(t,"number",(function(){return l})),n.d(t,"time",(function(){return u})),n.d(t,"graphic",(function(){return c})),n.d(t,"format",(function(){return d})),n.d(t,"util",(function(){return h})),n.d(t,"env",(function(){return m["a"]})),n.d(t,"List",(function(){return qx})),n.d(t,"Model",(function(){return Wu})),n.d(t,"Axis",(function(){return CS})),n.d(t,"ComponentModel",(function(){return gd})),n.d(t,"ComponentView",(function(){return Gf})),n.d(t,"SeriesModel",(function(){return $f})),n.d(t,"ChartView",(function(){return pv})),n.d(t,"innerDrawElementOnCanvas",(function(){return u_})),n.d(t,"extendComponentModel",(function(){return TS})),n.d(t,"extendComponentView",(function(){return DS})),n.d(t,"extendSeriesModel",(function(){return LS})),n.d(t,"extendChartView",(function(){return OS}));var i={};n.r(i),n.d(i,"create",(function(){return v})),n.d(i,"copy",(function(){return y})),n.d(i,"clone",(function(){return _})),n.d(i,"set",(function(){return b})),n.d(i,"add",(function(){return x})),n.d(i,"scaleAndAdd",(function(){return w})),n.d(i,"sub",(function(){return M})),n.d(i,"len",(function(){return S})),n.d(i,"length",(function(){return k})),n.d(i,"lenSquare",(function(){return C})),n.d(i,"lengthSquare",(function(){return T})),n.d(i,"mul",(function(){return D})),n.d(i,"div",(function(){return L})),n.d(i,"dot",(function(){return O})),n.d(i,"scale",(function(){return I})),n.d(i,"normalize",(function(){return A})),n.d(i,"distance",(function(){return E})),n.d(i,"dist",(function(){return j})),n.d(i,"distanceSquare",(function(){return P})),n.d(i,"distSquare",(function(){return Y})),n.d(i,"negate",(function(){return N})),n.d(i,"lerp",(function(){return R})),n.d(i,"applyTransform",(function(){return F})),n.d(i,"min",(function(){return H})),n.d(i,"max",(function(){return z}));var r={};n.r(r),n.d(r,"create",(function(){return we})),n.d(r,"identity",(function(){return Me})),n.d(r,"copy",(function(){return Se})),n.d(r,"mul",(function(){return ke})),n.d(r,"translate",(function(){return Ce})),n.d(r,"rotate",(function(){return Te})),n.d(r,"scale",(function(){return De})),n.d(r,"invert",(function(){return Le})),n.d(r,"clone",(function(){return Oe}));var o={};n.r(o),n.d(o,"init",(function(){return Vi})),n.d(o,"dispose",(function(){return $i})),n.d(o,"disposeAll",(function(){return Wi})),n.d(o,"getInstance",(function(){return Gi})),n.d(o,"registerPainter",(function(){return Ui})),n.d(o,"version",(function(){return qi}));var a={};n.r(a),n.d(a,"updateProps",(function(){return lu})),n.d(a,"initProps",(function(){return uu})),n.d(a,"removeElement",(function(){return du})),n.d(a,"removeElementWithFadeOut",(function(){return pu})),n.d(a,"isElementRemoved",(function(){return cu})),n.d(a,"extendShape",(function(){return Og})),n.d(a,"extendPath",(function(){return Ag})),n.d(a,"registerShape",(function(){return Eg})),n.d(a,"getShapeClass",(function(){return jg})),n.d(a,"makePath",(function(){return Pg})),n.d(a,"makeImage",(function(){return Yg})),n.d(a,"mergePath",(function(){return Rg})),n.d(a,"resizePath",(function(){return Fg})),n.d(a,"subPixelOptimizeLine",(function(){return Hg})),n.d(a,"subPixelOptimizeRect",(function(){return zg})),n.d(a,"subPixelOptimize",(function(){return Bg})),n.d(a,"getTransform",(function(){return Vg})),n.d(a,"applyTransform",(function(){return $g})),n.d(a,"transformDirection",(function(){return Wg})),n.d(a,"groupTransition",(function(){return qg})),n.d(a,"clipPointsByRect",(function(){return Xg})),n.d(a,"clipRectByRect",(function(){return Kg})),n.d(a,"createIcon",(function(){return Zg})),n.d(a,"linePolygonIntersect",(function(){return Jg})),n.d(a,"lineLineIntersect",(function(){return Qg})),n.d(a,"setTooltipConfig",(function(){return nv})),n.d(a,"traverseElements",(function(){return rv})),n.d(a,"Group",(function(){return Ni})),n.d(a,"Image",(function(){return ms})),n.d(a,"Text",(function(){return Bs})),n.d(a,"Circle",(function(){return _m})),n.d(a,"Ellipse",(function(){return wm})),n.d(a,"Sector",(function(){return Hm})),n.d(a,"Ring",(function(){return Vm})),n.d(a,"Polygon",(function(){return qm})),n.d(a,"Polyline",(function(){return Zm})),n.d(a,"Rect",(function(){return Ss})),n.d(a,"Line",(function(){return tg})),n.d(a,"BezierCurve",(function(){return ag})),n.d(a,"Arc",(function(){return ug})),n.d(a,"IncrementalDisplayable",(function(){return Cg})),n.d(a,"CompoundPath",(function(){return dg})),n.d(a,"LinearGradient",(function(){return mg})),n.d(a,"RadialGradient",(function(){return vg})),n.d(a,"BoundingRect",(function(){return Be})),n.d(a,"OrientedBoundingRect",(function(){return Mg})),n.d(a,"Point",(function(){return Ae})),n.d(a,"Path",(function(){return ss}));var s={};n.r(s),n.d(s,"createList",(function(){return FM})),n.d(s,"getLayoutRect",(function(){return ad})),n.d(s,"createDimensions",(function(){return Xx})),n.d(s,"dataStack",(function(){return HM})),n.d(s,"createSymbol",(function(){return Cy})),n.d(s,"createScale",(function(){return zM})),n.d(s,"mixinAxisModelCommonMethods",(function(){return BM})),n.d(s,"getECData",(function(){return Vs})),n.d(s,"enableHoverEmphasis",(function(){return Wl})),n.d(s,"createTextStyle",(function(){return VM}));var l={};n.r(l),n.d(l,"linearMap",(function(){return Ji})),n.d(l,"round",(function(){return er})),n.d(l,"asc",(function(){return tr})),n.d(l,"getPrecision",(function(){return nr})),n.d(l,"getPrecisionSafe",(function(){return ir})),n.d(l,"getPixelPrecision",(function(){return rr})),n.d(l,"getPercentWithPrecision",(function(){return or})),n.d(l,"MAX_SAFE_INTEGER",(function(){return lr})),n.d(l,"remRadian",(function(){return ur})),n.d(l,"isRadianAroundZero",(function(){return cr})),n.d(l,"parseDate",(function(){return hr})),n.d(l,"quantity",(function(){return pr})),n.d(l,"quantityExponent",(function(){return fr})),n.d(l,"nice",(function(){return mr})),n.d(l,"quantile",(function(){return gr})),n.d(l,"reformIntervals",(function(){return vr})),n.d(l,"isNumeric",(function(){return _r})),n.d(l,"numericToNumber",(function(){return yr}));var u={};n.r(u),n.d(u,"parse",(function(){return hr})),n.d(u,"format",(function(){return Mc}));var c={};n.r(c),n.d(c,"extendShape",(function(){return Og})),n.d(c,"extendPath",(function(){return Ag})),n.d(c,"makePath",(function(){return Pg})),n.d(c,"makeImage",(function(){return Yg})),n.d(c,"mergePath",(function(){return Rg})),n.d(c,"resizePath",(function(){return Fg})),n.d(c,"createIcon",(function(){return Zg})),n.d(c,"updateProps",(function(){return lu})),n.d(c,"initProps",(function(){return uu})),n.d(c,"getTransform",(function(){return Vg})),n.d(c,"clipPointsByRect",(function(){return Xg})),n.d(c,"clipRectByRect",(function(){return Kg})),n.d(c,"registerShape",(function(){return Eg})),n.d(c,"getShapeClass",(function(){return jg})),n.d(c,"Group",(function(){return Ni})),n.d(c,"Image",(function(){return ms})),n.d(c,"Text",(function(){return Bs})),n.d(c,"Circle",(function(){return _m})),n.d(c,"Ellipse",(function(){return wm})),n.d(c,"Sector",(function(){return Hm})),n.d(c,"Ring",(function(){return Vm})),n.d(c,"Polygon",(function(){return qm})),n.d(c,"Polyline",(function(){return Zm})),n.d(c,"Rect",(function(){return Ss})),n.d(c,"Line",(function(){return tg})),n.d(c,"BezierCurve",(function(){return ag})),n.d(c,"Arc",(function(){return ug})),n.d(c,"IncrementalDisplayable",(function(){return Cg})),n.d(c,"CompoundPath",(function(){return dg})),n.d(c,"LinearGradient",(function(){return mg})),n.d(c,"RadialGradient",(function(){return vg})),n.d(c,"BoundingRect",(function(){return Be}));var d={};n.r(d),n.d(d,"addCommas",(function(){return zc})),n.d(d,"toCamelCase",(function(){return Bc})),n.d(d,"normalizeCssArray",(function(){return Vc})),n.d(d,"encodeHTML",(function(){return oe})),n.d(d,"formatTpl",(function(){return Uc})),n.d(d,"getTooltipMarker",(function(){return Xc})),n.d(d,"formatTime",(function(){return Kc})),n.d(d,"capitalFirst",(function(){return Zc})),n.d(d,"truncateText",(function(){return Io})),n.d(d,"getTextRect",(function(){return aS}));var h={};n.r(h),n.d(h,"map",(function(){return g["map"]})),n.d(h,"each",(function(){return g["each"]})),n.d(h,"indexOf",(function(){return g["indexOf"]})),n.d(h,"inherits",(function(){return g["inherits"]})),n.d(h,"reduce",(function(){return g["reduce"]})),n.d(h,"filter",(function(){return g["filter"]})),n.d(h,"bind",(function(){return g["bind"]})),n.d(h,"curry",(function(){return g["curry"]})),n.d(h,"isArray",(function(){return g["isArray"]})),n.d(h,"isString",(function(){return g["isString"]})),n.d(h,"isObject",(function(){return g["isObject"]})),n.d(h,"isFunction",(function(){return g["isFunction"]})),n.d(h,"extend",(function(){return g["extend"]})),n.d(h,"defaults",(function(){return g["defaults"]})),n.d(h,"clone",(function(){return g["clone"]})),n.d(h,"merge",(function(){return g["merge"]})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var p=function(e,t){return p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},p(e,t)};function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}Object.create;Object.create;var m=n("22d1"),g=n("6d8b");function v(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function y(e,t){return e[0]=t[0],e[1]=t[1],e}function _(e){return[e[0],e[1]]}function b(e,t,n){return e[0]=t,e[1]=n,e}function x(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function w(e,t,n,i){return e[0]=t[0]+n[0]*i,e[1]=t[1]+n[1]*i,e}function M(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function S(e){return Math.sqrt(C(e))}var k=S;function C(e){return e[0]*e[0]+e[1]*e[1]}var T=C;function D(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e}function L(e,t,n){return e[0]=t[0]/n[0],e[1]=t[1]/n[1],e}function O(e,t){return e[0]*t[0]+e[1]*t[1]}function I(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function A(e,t){var n=S(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function E(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var j=E;function P(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Y=P;function N(e,t){return e[0]=-t[0],e[1]=-t[1],e}function R(e,t,n,i){return e[0]=t[0]+i*(n[0]-t[0]),e[1]=t[1]+i*(n[1]-t[1]),e}function F(e,t,n){var i=t[0],r=t[1];return e[0]=n[0]*i+n[2]*r+n[4],e[1]=n[1]*i+n[3]*r+n[5],e}function H(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function z(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var B=function(){function e(e,t){this.target=e,this.topTarget=t&&t.topTarget}return e}(),V=function(){function e(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(e){var t=e.target;while(t&&!t.draggable)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new B(t,e),"dragstart",e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,i=e.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,t.drift(r,o,e),this.handler.dispatchToElement(new B(t,e),"drag",e.event);var a=this.handler.findHover(n,i,t).target,s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.handler.dispatchToElement(new B(s,e),"dragleave",e.event),a&&a!==s&&this.handler.dispatchToElement(new B(a,e),"dragenter",e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new B(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new B(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},e}(),$=V,W=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"===typeof t&&(i=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),r[e]||(r[e]=[]);for(var a=0;a>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function te(e,t,n){for(var i=n?"invTrans":"trans",r=t[i],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,h=c.left,p=c.top;a.push(h,p),l=l&&o&&h===o[d]&&p===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&r?r:(t.srcCoords=a,t[i]=n?X(s,a):X(a,s))}function ne(e){return"CANVAS"===e.nodeName.toUpperCase()}var ie=/([&<>"'])/g,re={"&":"&","<":"<",">":">",'"':""","'":"'"};function oe(e){return null==e?"":(e+"").replace(ie,(function(e,t){return re[t]}))}var ae=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,se=[],le=m["a"].browser.firefox&&+m["a"].browser.version.split(".")[0]<39;function ue(e,t,n,i){return n=n||{},i?ce(e,t,n):le&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):ce(e,t,n),n}function ce(e,t,n){if(m["a"].domSupported&&e.getBoundingClientRect){var i=t.clientX,r=t.clientY;if(ne(e)){var o=e.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(Q(se,e,i,r))return n.zrX=se[0],void(n.zrY=se[1])}n.zrX=n.zrY=0}function de(e){return e||window.event}function he(e,t,n){if(t=de(t),null!=t.zrX)return t;var i=t.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?t.targetTouches[0]:t.changedTouches[0];o&&ue(e,o,t,n)}else{ue(e,t,t,n);var a=pe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&ae.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function pe(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,i=e.deltaY;if(null==n||null==i)return t;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function fe(e,t,n,i){e.addEventListener(t,n,i)}function me(e,t,n,i){e.removeEventListener(t,n,i)}var ge=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function ve(e){return 2===e.which||3===e.which}var ye=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var i=e.touches;if(i){for(var r={points:[],touches:[],target:t,event:e},o=0,a=i.length;o1&&i&&i.length>1){var o=_e(i)/_e(r);!isFinite(o)&&(o=1),t.pinchScale=o;var a=be(i);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function we(){return[1,0,0,1,0,0]}function Me(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Se(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ke(e,t,n){var i=t[0]*n[0]+t[2]*n[1],r=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=i,e[1]=r,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function Ce(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function Te(e,t,n){var i=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],u=Math.sin(n),c=Math.cos(n);return e[0]=i*c+a*u,e[1]=-i*u+a*c,e[2]=r*c+s*u,e[3]=-r*u+c*s,e[4]=c*o+u*l,e[5]=c*l-u*o,e}function De(e,t,n){var i=n[0],r=n[1];return e[0]=t[0]*i,e[1]=t[1]*r,e[2]=t[2]*i,e[3]=t[3]*r,e[4]=t[4]*i,e[5]=t[5]*r,e}function Le(e,t){var n=t[0],i=t[2],r=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*i;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-i*l,e[3]=n*l,e[4]=(i*s-a*r)*l,e[5]=(o*r-n*s)*l,e):null}function Oe(e){var t=we();return Se(t,e),t}var Ie=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,i){e.x=t.x+n.x*i,e.y=t.y+n.y*i},e.lerp=function(e,t,n,i){var r=1-i;e.x=r*t.x+i*n.x,e.y=r*t.y+i*n.y},e}(),Ae=Ie,Ee=Math.min,je=Math.max,Pe=new Ae,Ye=new Ae,Ne=new Ae,Re=new Ae,Fe=new Ae,He=new Ae,ze=function(){function e(e,t,n,i){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i),this.x=e,this.y=t,this.width=n,this.height=i}return e.prototype.union=function(e){var t=Ee(e.x,this.x),n=Ee(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=je(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=je(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,r=we();return Ce(r,r,[-t.x,-t.y]),De(r,r,[n,i]),Ce(r,r,[e.x,e.y]),r},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,h=!(of&&(f=_,mf&&(f=b,v=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return t.x=n.x*r+a,t.y=n.y*o+s,t.width=n.width*r,t.height=n.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}Pe.x=Ne.x=n.x,Pe.y=Re.y=n.y,Ye.x=Re.x=n.x+n.width,Ye.y=Ne.y=n.y+n.height,Pe.transform(i),Re.transform(i),Ye.transform(i),Ne.transform(i),t.x=Ee(Pe.x,Ye.x,Ne.x,Re.x),t.y=Ee(Pe.y,Ye.y,Ne.y,Re.y);var l=je(Pe.x,Ye.x,Ne.x,Re.x),u=je(Pe.y,Ye.y,Ne.y,Re.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Be=ze,Ve="silent";function $e(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:We}}function We(){ge(this.event)}var Ge=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return f(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(G),Ue=function(){function e(e,t){this.x=e,this.y=t}return e}(),qe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xe=new Be(0,0,0,0),Ke=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a._hovered=new Ue(0,0),a.storage=t,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new Ge,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new $(a),a}return f(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(g["each"](qe,(function(t){e.on&&e.on(t,this[t],this)}),this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,i=Qe(this,t,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Ue(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ue(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var i=e.target;if(!i||!i.silent){var r="on"+t,o=$e(t,e,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(t,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[r]&&e[r].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var i=this.storage.getDisplayList(),r=new Ue(e,t);if(Je(i,r,e,t,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Be(e-s,t-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Xe.copy(c.getBoundingRect()),c.transform&&Xe.applyTransform(c.transform),Xe.intersect(l)&&o.push(c))}if(o.length)for(var d=4,h=Math.PI/12,p=2*Math.PI,f=0;f=0;o--){var a=e[o],s=void 0;if(a!==r&&!a.ignore&&(s=Ze(a,n,i))&&(!t.topTarget&&(t.topTarget=a),s!==Ve)){t.target=a;break}}}function Qe(e,t,n){var i=e.painter;return t<0||t>i.getWidth()||n<0||n>i.getHeight()}g["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Ke.prototype[e]=function(t){var n,i,r=t.zrX,o=t.zrY,a=Qe(this,r,o);if("mouseup"===e&&a||(n=this.findHover(r,o),i=n.target),"mousedown"===e)this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if("mouseup"===e)this._upEl=i;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||j(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var et=Ke,tt=32,nt=7;function it(e){var t=0;while(e>=tt)t|=1&e,e>>=1;return e+t}function rt(e,t,n,i){var r=t+1;if(r===n)return 1;if(i(e[r++],e[t])<0){while(r=0)r++;return r-t}function ot(e,t,n){n--;while(t>>1,r(a,e[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(u>0)e[s+u]=e[s+u-1],u--}e[s]=a}}function st(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])>0){s=i-r;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function lt(e,t,n,i,r,o){var a=0,s=0,l=1;if(o(e,t[n+r])<0){s=r+1;while(ls&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function ut(e,t){var n,i,r=nt,o=0,a=0;o=e.length;var s=[];function l(e,t){n[a]=e,i[a]=t,a+=1}function u(){while(a>1){var e=a-2;if(e>=1&&i[e-1]<=i[e]+i[e+1]||e>=2&&i[e-2]<=i[e]+i[e-1])i[e-1]i[e+1])break;d(e)}}function c(){while(a>1){var e=a-2;e>0&&i[e-1]=nt||p>=nt);if(f)break;m<0&&(m=0),m+=2}if(r=m,r<1&&(r=1),1===i){for(l=0;l=0;l--)e[p+l]=e[h+l];if(0===i){v=!0;break}}if(e[d--]=s[c--],1===--a){v=!0;break}if(g=a-st(e[u],s,0,a,a-1,t),0!==g){for(d-=g,c-=g,a-=g,p=d+1,h=c+1,l=0;l=nt||g>=nt);if(v)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(d-=i,u-=i,p=d+1,h=u+1,l=i-1;l>=0;l--)e[p+l]=e[h+l];e[d]=s[c]}else{if(0===a)throw new Error;for(h=d-(a-1),l=0;l=0;l--)e[p+l]=e[h+l];e[d]=s[c]}else for(h=d-(a-1),l=0;ls&&(l=s),at(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}var dt=1,ht=2,pt=4,ft=!1;function mt(){ft||(ft=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var vt,yt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gt}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(mt(),u.z=0),isNaN(u.z2)&&(mt(),u.z2=0),isNaN(u.zlevel)&&(mt(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=e.getDecalElement&&e.getDecalElement();c&&this._updateAndAddDisplayable(c,t,n);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,t,n);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(i,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),_t=yt;vt=m["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var bt=vt,xt={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i))},elasticOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,n=.1,i=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=i/4):t=i*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-xt.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*xt.bounceIn(2*e):.5*xt.bounceOut(2*e-1)+.5}},wt=xt,Mt=Math.pow,St=Math.sqrt,kt=1e-8,Ct=1e-4,Tt=St(3),Dt=1/3,Lt=v(),Ot=v(),It=v();function At(e){return e>-kt&&ekt||e<-kt}function jt(e,t,n,i,r){var o=1-r;return o*o*(o*e+3*r*t)+r*r*(r*i+3*o*n)}function Pt(e,t,n,i,r){var o=1-r;return 3*(((t-e)*o+2*(n-t)*r)*o+(i-n)*r*r)}function Yt(e,t,n,i,r,o){var a=i+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-r,c=s*s-3*a*l,d=s*l-9*a*u,h=l*l-3*s*u,p=0;if(At(c)&&At(d))if(At(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[p++]=f)}else{var m=d*d-4*c*h;if(At(m)){var g=d/c,v=(f=-s/a+g,-g/2);f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v)}else if(m>0){var y=St(m),_=c*s+1.5*a*(-d+y),b=c*s+1.5*a*(-d-y);_=_<0?-Mt(-_,Dt):Mt(_,Dt),b=b<0?-Mt(-b,Dt):Mt(b,Dt);f=(-s-(_+b))/(3*a);f>=0&&f<=1&&(o[p++]=f)}else{var x=(2*c*s-3*a*d)/(2*St(c*c*c)),w=Math.acos(x)/3,M=St(c),S=Math.cos(w),k=(f=(-s-2*M*S)/(3*a),v=(-s+M*(S+Tt*Math.sin(w)))/(3*a),(-s+M*(S-Tt*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[p++]=f),v>=0&&v<=1&&(o[p++]=v),k>=0&&k<=1&&(o[p++]=k)}}return p}function Nt(e,t,n,i,r){var o=6*n-12*t+6*e,a=9*t+3*i-3*e-9*n,s=3*t-3*e,l=0;if(At(a)){if(Et(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(At(c))r[0]=-o/(2*a);else if(c>0){var d=St(c),h=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function Rt(e,t,n,i,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,d=(c-u)*r+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=i}function Ft(e,t,n,i,r,o,a,s,l,u,c){var d,h,p,f,m,g=.005,v=1/0;Lt[0]=l,Lt[1]=u;for(var y=0;y<1;y+=.05)Ot[0]=jt(e,n,r,a,y),Ot[1]=jt(t,i,o,s,y),f=Y(Lt,Ot),f=0&&f=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(At(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var d=St(c),h=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(r[l++]=u),h>=0&&h<=1&&(r[l++]=h)}}return l}function $t(e,t,n){var i=e+n-2*t;return 0===i?.5:(e-t)/i}function Wt(e,t,n,i,r){var o=(t-e)*i+e,a=(n-t)*i+t,s=(a-o)*i+o;r[0]=e,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function Gt(e,t,n,i,r,o,a,s,l){var u,c=.005,d=1/0;Lt[0]=a,Lt[1]=s;for(var h=0;h<1;h+=.05){Ot[0]=zt(e,n,r,h),Ot[1]=zt(t,i,o,h);var p=Y(Lt,Ot);p=0&&p=1?1:Yt(0,i,o,1,e,s)&&jt(0,r,a,1,s[0])}}}var Kt=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||g["noop"],this.ondestroy=e.ondestroy||g["noop"],this.onrestart=e.onrestart||g["noop"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,i=e-this._startTime-this._pausedTime,r=i/n;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;var s=i%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(g["isFunction"])(e)?e:wt[e]||Xt(e)},e}(),Zt=Kt,Jt=n("41ef"),Qt=n("7a29"),en=Array.prototype.slice;function tn(e,t,n){return(t-e)*n+e}function nn(e,t,n,i){for(var r=t.length,o=0;oi?t:e,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)i.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=yn,s=t;if(Object(g["isArrayLike"])(t)){var l=dn(t);a=l,(1===l&&!Object(g["isNumber"])(t[0])||2===l&&!Object(g["isNumber"])(t[0][0]))&&(o=!0)}else if(Object(g["isNumber"])(t)&&!Object(g["eqNaN"])(t))a=hn;else if(Object(g["isString"])(t))if(isNaN(+t)){var u=Jt["parse"](t);u&&(s=u,a=mn)}else a=hn;else if(Object(g["isGradientObject"])(t)){var c=Object(g["extend"])({},s);c.colorStops=Object(g["map"])(t.colorStops,(function(e){return{offset:e.offset,color:Jt["parse"](e.color)}})),Object(Qt["m"])(t)?a=gn:Object(Qt["o"])(t)&&(a=vn),s=c}0===r?this.valType=a:a===this.valType&&a!==yn||(o=!0),this.discrete=this.discrete||o;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=Object(g["isFunction"])(n)?n:wt[n]||Xt(n)),i.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort((function(e,t){return e.time-t.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=bn(i),l=_n(i),u=0;u=0;n--)if(l[n].percent<=t)break;n=p(n,u-2)}else{for(n=h;nt)break;n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=t;var m=r.percent-i.percent,v=0===m?1:p((t-i.percent)/m,1);r.easingFunc&&(v=r.easingFunc(v));var y=o?this._additiveValue:d?xn:e[c];if(!bn(s)&&!d||y||(y=this._additiveValue=[]),this.discrete)e[c]=v<1?i.rawValue:r.rawValue;else if(bn(s))s===pn?nn(y,i[a],r[a],v):rn(y,i[a],r[a],v);else if(_n(s)){var _=i[a],b=r[a],x=s===gn;e[c]={type:x?"linear":"radial",x:tn(_.x,b.x,v),y:tn(_.y,b.y,v),colorStops:Object(g["map"])(_.colorStops,(function(e,t){var n=b.colorStops[t];return{offset:tn(e.offset,n.offset,v),color:cn(nn([],e.color,n.color,v))}})),global:b.global},x?(e[c].x2=tn(_.x2,b.x2,v),e[c].y2=tn(_.y2,b.y2,v)):e[c].r=tn(_.r,b.r,v)}else if(d)nn(y,i[a],r[a],v),o||(e[c]=cn(y));else{var w=tn(i[a],r[a],v);o?this._additiveValue=w:e[c]=w}o&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,i=this._additiveValue;t===hn?e[n]=e[n]+i:t===mn?(Jt["parse"](e[n],xn),on(xn,xn,i,1),e[n]=cn(xn)):t===pn?on(e[n],e[n],i,1):t===fn&&an(e[n],e[n],i,1)},e}(),Mn=function(){function e(e,t,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&i?Object(g["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(g["keys"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,i){for(var r=this._tracks,o=0;o0&&s.addKeyframe(0,un(l),i),this._trackKeys.push(a)}s.addKeyframe(e,un(t[a]),i)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,e[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},e}(),Sn=Mn;function kn(){return(new Date).getTime()}var Cn=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return f(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=kn()-this._pausedTime,n=t-this._time,i=this._head;while(i){var r=i.next,o=i.step(t,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(bt(t),!e._paused&&e.update())}this._running=!0,bt(t)},t.prototype.start=function(){this._running||(this._time=kn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kn()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new Sn(e,t.loop);return this.addAnimator(n),n},t}(G),Tn=Cn,Dn=300,Ln=m["a"].domSupported,On=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=g["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:i}}(),In={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},An=!1;function En(e){var t=e.pointerType;return"pen"===t||"touch"===t}function jn(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout((function(){e.touching=!1,e.touchTimer=null}),700)}function Pn(e){e&&(e.zrByTouch=!0)}function Yn(e,t){return he(e.dom,new Rn(e,t),!0)}function Nn(e,t){var n=t,i=!1;while(n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return i}var Rn=function(){function e(e,t){this.stopPropagation=g["noop"],this.stopImmediatePropagation=g["noop"],this.preventDefault=g["noop"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),Fn={mousedown:function(e){e=he(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=he(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=he(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=he(this.dom,e);var t=e.toElement||e.relatedTarget;Nn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){An=!0,e=he(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){An||(e=he(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=he(this.dom,e),Pn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Fn.mousemove.call(this,e),Fn.mousedown.call(this,e)},touchmove:function(e){e=he(this.dom,e),Pn(e),this.handler.processGesture(e,"change"),Fn.mousemove.call(this,e)},touchend:function(e){e=he(this.dom,e),Pn(e),this.handler.processGesture(e,"end"),Fn.mouseup.call(this,e),+new Date-+this.__lastTouchMomentti||e<-ti}var ii=[],ri=[],oi=we(),ai=Math.abs,si=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ni(this.rotation)||ni(this.x)||ni(this.y)||ni(this.scaleX-1)||ni(this.scaleY-1)||ni(this.skewX)||ni(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||we(),t?this.getLocalTransform(n):ei(n),e&&(t?ke(n,e,n):Se(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&ei(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(ii);var n=ii[0]<0?-1:1,i=ii[1]<0?-1:1,r=((ii[0]-n)*t+n)/ii[0]||0,o=((ii[1]-i)*t+i)/ii[1]||0;e[0]*=r,e[1]*=r,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||we(),Le(this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),r=Math.PI/2+i-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(r),t=Math.sqrt(t),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(ke(ri,e.invTransform,t),t=ri);var n=this.originX,i=this.originY;(n||i)&&(oi[4]=n,oi[5]=i,ke(ri,t,oi),ri[4]-=n,ri[5]-=i,t=ri),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],i=this.invTransform;return i&&F(n,n,i),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],i=this.transform;return i&&F(n,n,i),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ai(e[0]-1)>1e-10&&ai(e[3]-1)>1e-10?Math.sqrt(ai(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){ui(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,r=e.scaleX,o=e.scaleY,a=e.anchorX,s=e.anchorY,l=e.rotation||0,u=e.x,c=e.y,d=e.skewX?Math.tan(e.skewX):0,h=e.skewY?Math.tan(-e.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;t[4]=-p*r-d*f*o,t[5]=-f*o-h*p*r}else t[4]=t[5]=0;return t[0]=r,t[3]=o,t[1]=h*r,t[2]=d*o,l&&Te(t,t,l),t[4]+=n+u,t[5]+=i+c,t},e.initDefaultProps=function(){var t=e.prototype;t.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}(),li=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ui(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function xi(e,t,n){var i=t.position||"inside",r=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",d="top";if(i instanceof Array)l+=bi(i[0],n.width),u+=bi(i[1],n.height),c=null,d=null;else switch(i){case"left":l-=r,u+=s,c="right",d="middle";break;case"right":l+=r+a,u+=s,d="middle";break;case"top":l+=a/2,u-=r,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=r,u+=s,d="middle";break;case"insideRight":l+=a-r,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",d="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,d="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var wi="__zr_normal__",Mi=li.concat(["ignore"]),Si=Object(g["reduce"])(li,(function(e,t){return e[t]=!0,e}),{ignore:!1}),ki={},Ci=new Be(0,0,0,0),Ti=function(){function e(e){this.id=Object(g["guid"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=t.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(t),null!=n.position){var u=Ci;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ki,n,u):xi(ki,n,u),r.x=ki.x,r.y=ki.y,o=ki.align,a=ki.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,h=void 0;"center"===c?(d=.5*u.width,h=.5*u.height):(d=bi(c[0],u.width),h=bi(c[1],u.height)),l=!0,r.originX=-r.x+d+(i?0:u.x),r.originY=-r.y+h+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),g=void 0,v=void 0,y=void 0;f&&this.canBeInsideText()?(g=n.insideFill,v=n.insideStroke,null!=g&&"auto"!==g||(g=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(g),y=!0)):(g=n.outsideFill,v=n.outsideStroke,null!=g&&"auto"!==g||(g=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(g),y=!0)),g=g||"#000",g===m.fill&&v===m.stroke&&y===m.autoStroke&&o===m.align&&a===m.verticalAlign||(s=!0,m.fill=g,m.stroke=v,m.autoStroke=y,m.align=o,m.verticalAlign=a,t.setDefaultTextStyle(m)),t.__dirty|=dt,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Jn:Zn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(Jt["parse"])(t);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Object(Jt["stringify"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(g["extend"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(g["isObject"])(e))for(var n=e,i=Object(g["keys"])(n),r=0;r0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(wi,!1,e)},e.prototype.useState=function(e,t,n,i){var r=e===wi,o=this.hasState();if(o||!r){var a=this.currentStates,s=this.stateTransition;if(!(Object(g["indexOf"])(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!r&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||r){r||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||i);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var c=this._textContent,d=this._textGuide;return c&&c.useState(e,t,n,u),d&&d.useState(e,t,n,u),r?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~dt),l}Object(g["logError"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var i=[],r=this.currentStates,o=e.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,m=this._textGuide;f&&f.useStates(e,t,d),m&&m.useStates(e,t,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~dt)}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var i=this.currentStates.slice(),r=Object(g["indexOf"])(i,e),o=Object(g["indexOf"])(i,t)>=0;r>=0?o?i.splice(r,1):i[r]=t:n&&!o&&i.push(t),this.useStates(i)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},i=0;i=0&&t.splice(n,1)})),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var h=0;h0||r.force&&!a.length){var k=void 0,C=void 0,T=void 0;if(s){C={},h&&(k={});for(x=0;x=0&&(n.splice(i,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=g["indexOf"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,i=n[t];if(e&&e!==this&&e.parent!==this&&e!==i){n[t]=e,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,i=g["indexOf"](n,e);return i<0||(n.splice(i,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t0){if(e<=r)return a;if(e>=o)return s}else{if(e>=r)return a;if(e<=o)return s}else{if(e===r)return a;if(e===o)return s}return(e-r)/l*u+a}function Qi(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return g["isString"](e)?Zi(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function er(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),Ki),e=(+e).toFixed(t),n?e:+e}function tr(e){return e.sort((function(e,t){return e-t})),e}function nr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14)for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n;return ir(e)}function ir(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),i=n>0?+t.slice(n+1):0,r=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function rr(e,t){var n=Math.log,i=Math.LN10,r=Math.floor(n(e[1]-e[0])/i),o=Math.round(n(Math.abs(t[1]-t[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function or(e,t,n){if(!e[t])return 0;var i=ar(e,n);return i[t]||0}function ar(e,t){var n=g["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var i=Math.pow(10,t),r=g["map"](e,(function(e){return(isNaN(e)?0:e)/n*i*100})),o=100*i,a=g["map"](r,(function(e){return Math.floor(e)})),s=g["reduce"](a,(function(e,t){return e+t}),0),l=g["map"](r,(function(e,t){return e-a[t]}));while(su&&(u=l[d],c=d);++a[c],l[c]=0,++s}return g["map"](a,(function(e){return e/i}))}function sr(e,t){var n=Math.max(nr(e),nr(t)),i=e+t;return n>Ki?i:er(i,n)}var lr=9007199254740991;function ur(e){var t=2*Math.PI;return(e%t+t)%t}function cr(e){return e>-Xi&&e=10&&t++,t}function mr(e,t){var n,i=fr(e),r=Math.pow(10,i),o=e/r;return n=t?o<1.5?1:o<2.5?2:o<4?3:o<7?5:10:o<1?1:o<2?2:o<3?3:o<5?5:10,e=n*r,i>=-20?+e.toFixed(i<0?-i:0):e}function gr(e,t){var n=(e.length-1)*t+1,i=Math.floor(n),r=+e[i-1],o=n-i;return o?r+o*(e[i]-r):r}function vr(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,i=0;i=0||r&&g["indexOf"](r,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var wo=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Mo=xo(wo),So=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Mo(this,e,t)},e}(),ko=new di["a"](50);function Co(e){if("string"===typeof e){var t=ko.get(e);return t&&t.image}return e}function To(e,t,n,i,r){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=ko.get(e),a={hostEl:n,cb:i,cbPayload:r};return o?(t=o.image,!Lo(t)&&o.pending.push(a)):(t=hi["d"].loadImage(e,Do,Do),t.__zrImageSrc=e,ko.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function Do(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var u=fi(n,t);return u>s&&(n="",u=0),s=e-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=e,r}function Eo(e,t){var n=t.containerWidth,i=t.font,r=t.contentWidth;if(!n)return"";var o=fi(e,i);if(o<=n)return e;for(var a=0;;a++){if(o<=r||a>=t.maxIterations){e+=t.ellipsis;break}var s=0===a?jo(e,r,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*r/o):0;e=e.substr(0,s),o=fi(e,i)}return""===e&&(e=t.placeholder),e}function jo(e,t,n,i){for(var r=0,o=0,a=e.length;op&&c){var f=Math.floor(p/l);n=n.slice(0,f)}if(e&&a&&null!=d)for(var m=Ao(d,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),v=0;vl&&Ho(n,e.substring(l,u),t,s),Ho(n,i[2],t,s,i[1]),l=Oo.lastIndex}lo){w>0?(_.tokens=_.tokens.slice(0,w),v(_,x,b),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var L=S.width,O=null==L||"auto"===L;if("string"===typeof L&&"%"===L.charAt(L.length-1))M.percentWidth=L,c.push(M),M.contentWidth=fi(M.text,T);else{if(O){var I=S.backgroundColor,A=I&&I.image;A&&(A=Co(A),Lo(A)&&(M.width=Math.max(M.width,A.width*D/A.height)))}var E=f&&null!=r?r-x:null;null!=E&&E0&&f+i.accumWidth>i.width&&(o=t.split("\n"),d=!0),i.accumWidth=f}else{var m=$o(t,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+p,a=m.linesWidths,o=m.lines}}else o=t.split("\n");for(var g=0;g=33&&t<=383}var Bo=Object(g["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Vo(e){return!zo(e)||!!Bo[e]}function $o(e,t,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;dn:r+c+p>n)?c?(s||l)&&(f?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=h,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=h,c=p)):f?(o.push(l),a.push(u),l=h,u=p):(o.push(h),a.push(p)):(c+=p,f?(l+=h,u+=p):(l&&(s+=l,l="",u=0),s+=h))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Wo="__zr_style_"+Math.round(10*Math.random()),Go={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Uo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Go[Wo]=!0;var qo=["z","z2","invisible"],Xo=["invisible"],Ko=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype._init=function(t){for(var n=Object(g["keys"])(t),i=0;i1e-4)return s[0]=e-n,s[1]=t-i,l[0]=e+n,void(l[1]=t+i);if(aa[0]=ra(r)*n+e,aa[1]=ia(r)*i+t,sa[0]=ra(o)*n+e,sa[1]=ia(o)*i+t,u(s,aa,sa),c(l,aa,sa),r%=oa,r<0&&(r+=oa),o%=oa,o<0&&(o+=oa),r>o&&!a?o+=oa:rr&&(la[0]=ra(p)*n+e,la[1]=ia(p)*i+t,u(s,la,s),c(l,la,l))}var ga={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},va=[],ya=[],_a=[],ba=[],xa=[],wa=[],Ma=Math.min,Sa=Math.max,ka=Math.cos,Ca=Math.sin,Ta=Math.abs,Da=Math.PI,La=2*Da,Oa="undefined"!==typeof Float32Array,Ia=[];function Aa(e){var t=Math.round(e/Da*1e8)/1e8;return t%2*Da}function Ea(e,t){var n=Aa(e[0]);n<0&&(n+=La);var i=n-e[0],r=e[1];r+=i,!t&&r-n>=La?r=n+La:t&&n-r>=La?r=n-La:!t&&n>r?r=n+(La-Aa(n-r)):t&&n0&&(this._ux=Ta(n/Xn/e)||0,this._uy=Ta(n/Xn/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(ga.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=Ta(e-this._xi),i=Ta(t-this._yi),r=n>this._ux||i>this._uy;if(this.addData(ga.L,e,t),this._ctx&&r&&this._ctx.lineTo(e,t),r)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,i,r,o){return this._drawPendingPt(),this.addData(ga.C,e,t,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,i,r,o),this._xi=r,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,i){return this._drawPendingPt(),this.addData(ga.Q,e,t,n,i),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(e,t,n,i,r,o){this._drawPendingPt(),Ia[0]=i,Ia[1]=r,Ea(Ia,o),i=Ia[0],r=Ia[1];var a=r-i;return this.addData(ga.A,e,t,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,i,r,o),this._xi=ka(r)*n+e,this._yi=Ca(r)*n+t,this},e.prototype.arcTo=function(e,t,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,i,r),this},e.prototype.rect=function(e,t,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,i),this.addData(ga.R,e,t,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ga.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!Oa||(this.data=new Float32Array(t));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){_a[0]=_a[1]=xa[0]=xa[1]=Number.MAX_VALUE,ba[0]=ba[1]=wa[0]=wa[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,i=0,r=0,o=0;for(e=0;en||Ta(y)>i||d===t-1)&&(f=Math.sqrt(v*v+y*y),r=m,o=g);break;case ga.C:var _=e[d++],b=e[d++],x=(m=e[d++],g=e[d++],e[d++]),w=e[d++];f=Ht(r,o,_,b,m,g,x,w,10),r=x,o=w;break;case ga.Q:_=e[d++],b=e[d++],m=e[d++],g=e[d++];f=Ut(r,o,_,b,m,g,10),r=m,o=g;break;case ga.A:var M=e[d++],S=e[d++],k=e[d++],C=e[d++],T=e[d++],D=e[d++],L=D+T;d+=1;e[d++];p&&(a=ka(T)*k+M,s=Ca(T)*C+S),f=Sa(k,C)*Ma(La,Math.abs(D)),r=ka(L)*k+M,o=Ca(L)*C+S;break;case ga.R:a=r=e[d++],s=o=e[d++];var O=e[d++],I=e[d++];f=2*O+2*I;break;case ga.Z:v=a-r,y=s-o;f=Math.sqrt(v*v+y*y),r=a,o=s;break}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,i,r,o,a,s,l,u,c,d,h,p=this.data,f=this._ux,m=this._uy,g=this._len,v=t<1,y=0,_=0,b=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=this._pathLen,c=t*u,c))e:for(var x=0;x0&&(e.lineTo(d,h),b=0),w){case ga.M:n=r=p[x++],i=o=p[x++],e.moveTo(r,o);break;case ga.L:a=p[x++],s=p[x++];var S=Ta(a-r),k=Ta(s-o);if(S>f||k>m){if(v){var C=l[_++];if(y+C>c){var T=(c-y)/C;e.lineTo(r*(1-T)+a*T,o*(1-T)+s*T);break e}y+=C}e.lineTo(a,s),r=a,o=s,b=0}else{var D=S*S+k*k;D>b&&(d=a,h=s,b=D)}break;case ga.C:var L=p[x++],O=p[x++],I=p[x++],A=p[x++],E=p[x++],j=p[x++];if(v){C=l[_++];if(y+C>c){T=(c-y)/C;Rt(r,L,I,E,T,va),Rt(o,O,A,j,T,ya),e.bezierCurveTo(va[1],ya[1],va[2],ya[2],va[3],ya[3]);break e}y+=C}e.bezierCurveTo(L,O,I,A,E,j),r=E,o=j;break;case ga.Q:L=p[x++],O=p[x++],I=p[x++],A=p[x++];if(v){C=l[_++];if(y+C>c){T=(c-y)/C;Wt(r,L,I,T,va),Wt(o,O,A,T,ya),e.quadraticCurveTo(va[1],ya[1],va[2],ya[2]);break e}y+=C}e.quadraticCurveTo(L,O,I,A),r=I,o=A;break;case ga.A:var P=p[x++],Y=p[x++],N=p[x++],R=p[x++],F=p[x++],H=p[x++],z=p[x++],B=!p[x++],V=N>R?N:R,$=Ta(N-R)>.001,W=F+H,G=!1;if(v){C=l[_++];y+C>c&&(W=F+H*(c-y)/C,G=!0),y+=C}if($&&e.ellipse?e.ellipse(P,Y,N,R,z,F,W,B):e.arc(P,Y,V,F,W,B),G)break e;M&&(n=ka(F)*N+P,i=Ca(F)*R+Y),r=ka(W)*N+P,o=Ca(W)*R+Y;break;case ga.R:n=r=p[x],i=o=p[x+1],a=p[x++],s=p[x++];var U=p[x++],q=p[x++];if(v){C=l[_++];if(y+C>c){var X=c-y;e.moveTo(a,s),e.lineTo(a+Ma(X,U),s),X-=U,X>0&&e.lineTo(a+U,s+Ma(X,q)),X-=q,X>0&&e.lineTo(a+Sa(U-X,0),s+q),X-=U,X>0&&e.lineTo(a,s+Sa(q-X,0));break e}y+=C}e.rect(a,s,U,q);break;case ga.Z:if(v){C=l[_++];if(y+C>c){T=(c-y)/C;e.lineTo(r*(1-T)+n*T,o*(1-T)+i*T);break e}y+=C}e.closePath(),r=n,o=i}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=ga,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Pa=ja;function Ya(e,t,n,i,r,o,a){if(0===r)return!1;var s=r,l=0,u=e;if(a>t+s&&a>i+s||ae+s&&o>n+s||ot+d&&c>i+d&&c>o+d&&c>s+d||ce+d&&u>n+d&&u>r+d&&u>a+d||ut+u&&l>i+u&&l>o+u||le+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=za);var h=Math.atan2(l,s);return h<0&&(h+=za),h>=i&&h<=r||h+za>=i&&h+za<=r}function Va(e,t,n,i,r,o){if(o>t&&o>i||or?s:0}var $a=Pa.CMD,Wa=2*Math.PI,Ga=1e-4;function Ua(e,t){return Math.abs(e-t)t&&u>i&&u>o&&u>s||u1&&Ka(),p=jt(t,i,o,s,Xa[0]),h>1&&(f=jt(t,i,o,s,Xa[1]))),2===h?gt&&s>i&&s>o||s=0&&u<=1){for(var c=0,d=zt(t,i,o,u),h=0;hn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);qa[0]=-l,qa[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Wa-1e-4){i=0,r=Wa;var c=o?1:-1;return a>=qa[0]+e&&a<=qa[1]+e?c:0}if(i>r){var d=i;i=r,r=d}i<0&&(i+=Wa,r+=Wa);for(var h=0,p=0;p<2;p++){var f=qa[p];if(f+e>a){var m=Math.atan2(s,f);c=o?1:-1;m<0&&(m=Wa+m),(m>=i&&m<=r||m+Wa>=i&&m+Wa<=r)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),h+=c)}}return h}function es(e,t,n,i,r){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,h=0,p=0,f=0;f1&&(n||(u+=Va(c,d,h,p,i,r))),g&&(c=s[f],d=s[f+1],h=c,p=d),m){case $a.M:h=s[f++],p=s[f++],c=h,d=p;break;case $a.L:if(n){if(Ya(c,d,s[f],s[f+1],t,i,r))return!0}else u+=Va(c,d,s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case $a.C:if(n){if(Na(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Za(c,d,s[f++],s[f++],s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case $a.Q:if(n){if(Ra(c,d,s[f++],s[f++],s[f],s[f+1],t,i,r))return!0}else u+=Ja(c,d,s[f++],s[f++],s[f],s[f+1],i,r)||0;c=s[f++],d=s[f++];break;case $a.A:var v=s[f++],y=s[f++],_=s[f++],b=s[f++],x=s[f++],w=s[f++];f+=1;var M=!!(1-s[f++]);o=Math.cos(x)*_+v,a=Math.sin(x)*b+y,g?(h=o,p=a):u+=Va(c,d,o,a,i,r);var S=(i-v)*b/_+v;if(n){if(Ba(v,y,b,x,x+w,M,t,S,r))return!0}else u+=Qa(v,y,b,x,x+w,M,S,r);c=Math.cos(x+w)*_+v,d=Math.sin(x+w)*b+y;break;case $a.R:h=c=s[f++],p=d=s[f++];var k=s[f++],C=s[f++];if(o=h+k,a=p+C,n){if(Ya(h,p,o,p,t,i,r)||Ya(o,p,o,a,t,i,r)||Ya(o,a,h,a,t,i,r)||Ya(h,a,h,p,t,i,r))return!0}else u+=Va(o,p,o,a,i,r),u+=Va(h,a,h,p,i,r);break;case $a.Z:if(n){if(Ya(c,d,h,p,t,i,r))return!0}else u+=Va(c,d,h,p,i,r);c=h,d=p;break}}return n||Ua(d,p)||(u+=Va(c,d,h,p,i,r)||0),0!==u}function ts(e,t,n){return es(e,0,!1,t,n)}function ns(e,t,n,i){return es(e,t,!0,n,i)}var is=Object(g["defaults"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Go),rs={style:Object(g["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Uo.style)},os=li.concat(["invisible","culling","z","z2","zlevel","parent"]),as=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new t;r.buildPath===t.prototype.buildPath&&(r.buildPath=function(e){n.buildPath(e,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Zn:t>.2?Qn:Jn}if(e)return Jn}return Zn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(g["isString"])(t)){var n=this.__zr,i=!(!n||!n.isDarkMode()),r=Object(Jt["lum"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&pt)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),e=r.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.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 e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),r=this.style;if(e=n[0],t=n[1],i.contain(e,t)){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)),ns(o,a/s,e,t)))return!0}if(this.hasFill())return ts(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=pt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(g["extend"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&pt)},t.prototype.createStyle=function(e){return Object(g["createObject"])(is,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(g["extend"])({},this.shape))},t.prototype._applyStateObj=function(t,n,i,r,o,a){e.prototype._applyStateObj.call(this,t,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Object(g["extend"])({},i.shape),Object(g["extend"])(s,n.shape)):(s=Object(g["extend"])({},r?this.shape:i.shape),Object(g["extend"])(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Object(g["extend"])({},this.shape);for(var u={},c=Object(g["keys"])(s),d=0;d0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(g["createObject"])(ls,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=gi(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var i=e.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(ea);us.prototype.type="tspan";var cs=us,ds=Object(g["defaults"])({x:0,y:0},Go),hs={style:Object(g["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Uo.style)};function ps(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.createStyle=function(e){return Object(g["createObject"])(ds,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var i=ps(t.image)?t.image:this.__image;if(!i)return 0;var r="width"===e?"height":"width",o=t[r];return null==o?i[e]:i[e]/i[r]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hs},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Be(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ea);fs.prototype.type="image";var ms=fs;function gs(e,t){var n,i,r,o,a,s=t.x,l=t.y,u=t.width,c=t.height,d=t.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"===typeof d?n=i=r=o=d:d instanceof Array?1===d.length?n=i=r=o=d[0]:2===d.length?(n=r=d[0],i=o=d[1]):3===d.length?(n=d[0],i=o=d[1],r=d[2]):(n=d[0],i=d[1],r=d[2],o=d[3]):n=i=r=o=0,n+i>u&&(a=n+i,n*=u/a,i*=u/a),r+o>u&&(a=r+o,r*=u/a,o*=u/a),i+r>c&&(a=i+r,i*=c/a,r*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-i,l),0!==i&&e.arc(s+u-i,l+i,i,-Math.PI/2,0),e.lineTo(s+u,l+c-r),0!==r&&e.arc(s+u-r,l+c-r,r,0,Math.PI/2),e.lineTo(s+o,l+c),0!==o&&e.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var vs=Math.round;function ys(e,t,n){if(t){var i=t.x1,r=t.x2,o=t.y1,a=t.y2;e.x1=i,e.x2=r,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(vs(2*i)===vs(2*r)&&(e.x1=e.x2=bs(i,s,!0)),vs(2*o)===vs(2*a)&&(e.y1=e.y2=bs(o,s,!0)),e):e}}function _s(e,t,n){if(t){var i=t.x,r=t.y,o=t.width,a=t.height;e.x=i,e.y=r,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=bs(i,s,!0),e.y=bs(r,s,!0),e.width=Math.max(bs(i+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(bs(r+a,s,!1)-e.y,0===a?0:1),e):e}}function bs(e,t,n){if(!t)return e;var i=vs(2*e);return(i+vs(t))%2===0?i/2:(i+(n?1:-1))/2}var xs=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),ws={},Ms=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype.getDefaultShape=function(){return new xs},t.prototype.buildPath=function(e,t){var n,i,r,o;if(this.subPixelOptimize){var a=_s(ws,t,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,i=t.y,r=t.width,o=t.height;t.r?gs(e,t):e.rect(n,i,r,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ss);Ms.prototype.type="rect";var Ss=Ms,ks={fill:"#000"},Cs=2,Ts={style:Object(g["defaults"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Uo.style)},Ds=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=ks,n.attr(t),n}return f(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,C=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=r.calculatedLineHeight,D=0;D=0&&(D=b[T],"right"===D.align))this._placeToken(D,e,w,m,C,"right",v),M-=D.width,C-=D.width,T--;k+=(i-(k-f)-(g-C)-M)/2;while(S<=T)D=b[S],this._placeToken(D,e,w,m,k+D.width/2,"center",v),k+=D.width,S++;m+=w}},t.prototype._placeToken=function(e,t,n,i,r,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=i+n/2;"top"===l?u=i+e.height/2:"bottom"===l&&(u=i+n-e.height/2);var c=!e.isLineHolder&&zs(s);c&&this._renderBackground(s,t,"right"===o?r-e.width:"center"===o?r-e.width/2:r,u-e.height/2,e.width,e.height);var d=!!s.backgroundColor,h=e.textPadding;h&&(r=Fs(r,o,h),u-=e.height/2-h[0]-e.innerHeight/2);var p=this._getOrCreateChild(cs),f=p.createStyle();p.useStyle(f);var m=this._defaultStyle,v=!1,y=0,_=Rs("fill"in s?s.fill:"fill"in t?t.fill:(v=!0,m.fill)),b=Ns("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||a||m.autoStroke&&!v?null:(y=Cs,m.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;f.text=e.text,f.x=r,f.y=u,x&&(f.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,f.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=e.font||hi["a"],f.opacity=Object(g["retrieve3"])(s.opacity,t.opacity,1),Es(f,s),b&&(f.lineWidth=Object(g["retrieve3"])(s.lineWidth,t.lineWidth,y),f.lineDash=Object(g["retrieve2"])(s.lineDash,t.lineDash),f.lineDashOffset=t.lineDashOffset||0,f.stroke=b),_&&(f.fill=_);var w=e.contentWidth,M=e.contentHeight;p.setBoundingRect(new Be(vi(f.x,w,f.textAlign),yi(f.y,M,f.textBaseline),w,M))},t.prototype._renderBackground=function(e,t,n,i,r,o){var a,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,h=l&&!d,p=e.borderRadius,f=this;if(h||e.lineHeight||u&&c){a=this._getOrCreateChild(Ss),a.useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=p,a.dirtyShape()}if(h){var v=a.style;v.fill=l||null,v.fillOpacity=Object(g["retrieve2"])(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(ms),s.onload=function(){f.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=i,y.width=r,y.height=o}if(u&&c){v=a.style;v.lineWidth=u,v.stroke=c,v.strokeOpacity=Object(g["retrieve2"])(e.strokeOpacity,1),v.lineDash=e.borderDash,v.lineDashOffset=e.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(v.strokeFirst=!0,v.lineWidth*=2)}var _=(a||s).style;_.shadowBlur=e.shadowBlur||0,_.shadowColor=e.shadowColor||"transparent",_.shadowOffsetX=e.shadowOffsetX||0,_.shadowOffsetY=e.shadowOffsetY||0,_.opacity=Object(g["retrieve3"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return js(e)&&(t=[e.fontStyle,e.fontWeight,As(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(g["trim"])(t)||e.textFont||e.font},t}(ea),Ls={left:!0,right:1,center:1},Os={top:1,bottom:1,middle:1},Is=["fontStyle","fontWeight","fontSize","fontFamily"];function As(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?hi["c"]+"px":e+"px":e}function Es(e,t){for(var n=0;n=0,o=!1;if(e instanceof ss){var a=Us(e),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(sl(s)||sl(l)){i=i||{};var u=i.style||{};"inherit"===u.fill?(o=!0,i=Object(g["extend"])({},i),u=Object(g["extend"])({},u),u.fill=s):!sl(u.fill)&&sl(s)?(o=!0,i=Object(g["extend"])({},i),u=Object(g["extend"])({},u),u.fill=ul(s)):!sl(u.stroke)&&sl(l)&&(o||(i=Object(g["extend"])({},i),u=Object(g["extend"])({},u)),u.stroke=ul(l)),i.style=u}}if(i&&null==i.z2){o||(i=Object(g["extend"])({},i));var c=e.z2EmphasisLift;i.z2=e.z2+(null!=c?c:el)}return i}function wl(e,t,n){if(n&&null==n.z2){n=Object(g["extend"])({},n);var i=e.z2SelectLift;n.z2=e.z2+(null!=i?i:tl)}return n}function Ml(e,t,n){var i=Object(g["indexOf"])(e.currentStates,t)>=0,r=e.style.opacity,o=i?null:bl(e,["opacity"],t,{opacity:1});n=n||{};var a=n.style||{};return null==a.opacity&&(n=Object(g["extend"])({},n),a=Object(g["extend"])({opacity:i?r:.1*o.opacity},a),n.style=a),n}function Sl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return xl(this,e,t,n);if("blur"===e)return Ml(this,e,n);if("select"===e)return wl(this,e,n)}return n}function kl(e){e.stateProxy=Sl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Sl),n&&(n.stateProxy=Sl)}function Cl(e,t){!jl(e,t)&&!e.__highByOuter&&yl(e,dl)}function Tl(e,t){!jl(e,t)&&!e.__highByOuter&&yl(e,hl)}function Dl(e,t){e.__highByOuter|=1<<(t||0),yl(e,dl)}function Ll(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&yl(e,hl)}function Ol(e){yl(e,pl)}function Il(e){yl(e,fl)}function Al(e){yl(e,ml)}function El(e){yl(e,gl)}function jl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Pl(e){var t=e.getModel(),n=[],i=[];t.eachComponent((function(t,r){var o=qs(r),a="series"===t,s=a?e.getViewOfSeriesModel(r):e.getViewOfComponentModel(r);!a&&i.push(s),o.isBlured&&(s.group.traverse((function(e){fl(e)})),a&&n.push(r)),o.isBlured=!1})),Object(g["each"])(i,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function Yl(e,t,n,i){var r=i.getModel();function o(e,t){for(var n=0;n0){var o={dataIndex:r,seriesIndex:e.seriesIndex};null!=i&&(o.dataType=i),t.push(o)}}))})),t}function Wl(e,t,n){Jl(e,!0),yl(e,kl),ql(e,t,n)}function Gl(e){Jl(e,!1)}function Ul(e,t,n,i){i?Gl(e):Wl(e,t,n)}function ql(e,t,n){var i=Vs(e);null!=t?(i.focus=t,i.blurScope=n):i.focus&&(i.focus=null)}var Xl=["emphasis","blur","select"],Kl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zl(e,t,n,i){n=n||"itemStyle";for(var r=0;r0){var d=c.duration,h=c.delay,p=c.easing,f={duration:d,delay:h||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,f):t.animateTo(n,f)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function lu(e,t,n,i,r,o){su("update",e,t,n,i,r,o)}function uu(e,t,n,i,r,o){su("enter",e,t,n,i,r,o)}function cu(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,i,r){if(e.length){var o=n(t),a=o.graph,s=o.noEntryList,l={};g["each"](e,(function(e){l[e]=!0}));while(s.length){var u=s.pop(),c=a[u],d=!!l[u];d&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),g["each"](c.successor,d?p:h)}g["each"](l,(function(){var e="";throw new Error(e)}))}function h(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function p(e){l[e]=!0,h(e)}}}function Ku(e,t){return g["merge"](g["merge"]({},e,!0),t,!0)}var Zu={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"}},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:". "}}}},Ju={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:"旭日图"}},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:""}}}},Qu="ZH",ec="EN",tc=ec,nc={},ic={},rc=m["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return e.indexOf(Qu)>-1?Qu:tc}():tc;function oc(e,t){e=e.toUpperCase(),ic[e]=new Wu(t),nc[e]=t}function ac(e){if(Object(g["isString"])(e)){var t=nc[e.toUpperCase()]||{};return e===Qu||e===ec?Object(g["clone"])(t):Object(g["merge"])(Object(g["clone"])(t),Object(g["clone"])(nc[tc]),!1)}return Object(g["merge"])(Object(g["clone"])(e),Object(g["clone"])(nc[tc]),!1)}function sc(e){return ic[e]}function lc(){return ic[tc]}oc(ec,Zu),oc(Qu,Ju);var uc=1e3,cc=60*uc,dc=60*cc,hc=24*dc,pc=365*hc,fc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},mc="{yyyy}-{MM}-{dd}",gc={year:"{yyyy}",month:"{yyyy}-{MM}",day:mc,hour:mc+" "+fc.hour,minute:mc+" "+fc.minute,second:mc+" "+fc.second,millisecond:fc.none},vc=["year","month","day","hour","minute","second","millisecond"],yc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function _c(e,t){return e+="","0000".substr(0,t-e.length)+e}function bc(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function xc(e){return e===bc(e)}function wc(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Mc(e,t,n,i){var r=hr(e),o=r[Tc(n)](),a=r[Dc(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[Lc(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Oc(n)](),d=(c-1)%12+1,h=r[Ic(n)](),p=r[Ac(n)](),f=r[Ec(n)](),m=i instanceof Wu?i:sc(i||rc)||lc(),g=m.getModel("time"),v=g.get("month"),y=g.get("monthAbbr"),_=g.get("dayOfWeek"),b=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,_c(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,_c(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,b[u]).replace(/{e}/g,u+"").replace(/{HH}/g,_c(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,_c(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,_c(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,_c(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,_c(f,3)).replace(/{S}/g,f+"")}function Sc(e,t,n,i,r){var o=null;if(g["isString"](n))o=n;else if(g["isFunction"](n))o=n(e.value,t,{level:e.level});else{var a=g["extend"]({},fc);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(g["isArray"](o)){var d=null==e.level?0:e.level>=0?e.level:o.length+e.level;d=Math.min(d,o.length-1),o=o[d]}}return Mc(new Date(e.value),o,r,i)}function kc(e,t){var n=hr(e),i=n[Dc(t)]()+1,r=n[Lc(t)](),o=n[Oc(t)](),a=n[Ic(t)](),s=n[Ac(t)](),l=n[Ec(t)](),u=0===l,c=u&&0===s,d=c&&0===a,h=d&&0===o,p=h&&1===r,f=p&&1===i;return f?"year":p?"month":h?"day":d?"hour":c?"minute":u?"second":"millisecond"}function Cc(e,t,n){var i=g["isNumber"](e)?hr(e):e;switch(t=t||kc(e,n),t){case"year":return i[Tc(n)]();case"half-year":return i[Dc(n)]()>=6?1:0;case"quarter":return Math.floor((i[Dc(n)]()+1)/4);case"month":return i[Dc(n)]();case"day":return i[Lc(n)]();case"half-day":return i[Oc(n)]()/24;case"hour":return i[Oc(n)]();case"minute":return i[Ic(n)]();case"second":return i[Ac(n)]();case"millisecond":return i[Ec(n)]()}}function Tc(e){return e?"getUTCFullYear":"getFullYear"}function Dc(e){return e?"getUTCMonth":"getMonth"}function Lc(e){return e?"getUTCDate":"getDate"}function Oc(e){return e?"getUTCHours":"getHours"}function Ic(e){return e?"getUTCMinutes":"getMinutes"}function Ac(e){return e?"getUTCSeconds":"getSeconds"}function Ec(e){return e?"getUTCMilliseconds":"getMilliseconds"}function jc(e){return e?"setUTCFullYear":"setFullYear"}function Pc(e){return e?"setUTCMonth":"setMonth"}function Yc(e){return e?"setUTCDate":"setDate"}function Nc(e){return e?"setUTCHours":"setHours"}function Rc(e){return e?"setUTCMinutes":"setMinutes"}function Fc(e){return e?"setUTCSeconds":"setSeconds"}function Hc(e){return e?"setUTCMilliseconds":"setMilliseconds"}function zc(e){if(!_r(e))return g["isString"](e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Bc(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,(function(e,t){return t.toUpperCase()})),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var Vc=g["normalizeCssArray"];function $c(e,t,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function r(e){return e&&g["trim"](e)?e:"-"}function o(e){return!(null==e||isNaN(e)||!isFinite(e))}var a="time"===t,s=e instanceof Date;if(a||s){var l=a?hr(e):e;if(!isNaN(+l))return Mc(l,i,n);if(s)return"-"}if("ordinal"===t)return g["isStringSafe"](e)?r(e):g["isNumber"](e)&&o(e)?e+"":"-";var u=yr(e);return o(u)?zc(u):g["isStringSafe"](e)?r(e):"boolean"===typeof e?e+"":"-"}var Wc=["a","b","c","d","e","f","g"],Gc=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Uc(e,t,n){g["isArray"](t)||(t=[t]);var i=t.length;if(!i)return"";for(var r=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function Kc(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var i=hr(t),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),c=i[r+"Seconds"](),d=i[r+"Milliseconds"]();return e=e.replace("MM",_c(a,2)).replace("M",a).replace("yyyy",o).replace("yy",_c(o%100+"",2)).replace("dd",_c(s,2)).replace("d",s).replace("hh",_c(l,2)).replace("h",l).replace("mm",_c(u,2)).replace("m",u).replace("ss",_c(c,2)).replace("s",c).replace("SSS",_c(d,3)),e}function Zc(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function Jc(e,t){return t=t||"transparent",g["isString"](e)?e:g["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Qc(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var ed=g["each"],td=["left","right","top","bottom","width","height"],nd=[["width","left","right"],["height","top","bottom"]];function id(e,t,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;t.eachChild((function(l,u){var c,d,h=l.getBoundingRect(),p=t.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===e){var m=h.width+(f?-f.x+h.x:0);c=o+m,c>i||l.newline?(o=0,c=m,a+=s+n,s=h.height):s=Math.max(s,h.height)}else{var g=h.height+(f?-f.y+h.y:0);d=a+g,d>r||l.newline?(o+=s+n,a=0,d=g,s=h.width):s=Math.max(s,h.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var rd=id;g["curry"](id,"vertical"),g["curry"](id,"horizontal");function od(e,t,n){var i=t.width,r=t.height,o=Qi(e.left,i),a=Qi(e.top,r),s=Qi(e.right,i),l=Qi(e.bottom,r);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=i),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=r),n=Vc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function ad(e,t,n){n=Vc(n||0);var i=t.width,r=t.height,o=Qi(e.left,i),a=Qi(e.top,r),s=Qi(e.right,i),l=Qi(e.bottom,r),u=Qi(e.width,i),c=Qi(e.height,r),d=n[2]+n[0],h=n[1]+n[3],p=e.aspect;switch(isNaN(u)&&(u=i-s-h-o),isNaN(c)&&(c=r-l-d-a),null!=p&&(isNaN(u)&&isNaN(c)&&(p>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=i-s-u-h),isNaN(a)&&(a=r-l-c-d),e.left||e.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-h;break}switch(e.top||e.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-d;break}o=o||0,a=a||0,isNaN(u)&&(u=i-h-o-(s||0)),isNaN(c)&&(c=r-d-a-(l||0));var f=new Be(o+n[3],a+n[0],u,c);return f.margin=n,f}function sd(e,t,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if(o=o||e,o.x=e.x,o.y=e.y,!s&&!l)return!1;if("raw"===u)a="group"===e.type?new Be(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(a=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();a=a.clone(),a.applyTransform(c)}var d=ad(g["defaults"]({width:a.width,height:a.height},t),n,i),h=s?d.x-a.x:0,p=l?d.y-a.y:0;return"raw"===u?(o.x=h,o.y=p):(o.x+=h,o.y+=p),o===e&&e.markRedraw(),!0}function ld(e,t){return null!=e[nd[t][0]]||null!=e[nd[t][1]]&&null!=e[nd[t][2]]}function ud(e){var t=e.layoutMode||e.constructor.layoutMode;return g["isObject"](t)?t:t?{type:t}:null}function cd(e,t,n){var i=n&&n.ignoreSize;!g["isArray"](i)&&(i=[i,i]);var r=a(nd[0],0),o=a(nd[1],1);function a(n,r){var o={},a=0,u={},c=0,d=2;if(ed(n,(function(t){u[t]=e[t]})),ed(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),i[r])return l(t,n[1])?u[n[2]]=null:l(t,n[2])&&(u[n[1]]=null),u;if(c!==d&&a){if(a>=d)return o;for(var h=0;h=0;a--)o=g["merge"](o,n[a],!0);t.defaultOption=o}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+"Index",i=e+"Id";return eo(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},t)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(Wu);function md(e){var t=[];return g["each"](fd.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=g["map"](t,(function(e){return uo(e).main})),"dataset"!==e&&g["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}mo(fd,Wu),bo(fd),qu(fd),Xu(fd,md);var gd=fd,vd="";"undefined"!==typeof navigator&&(vd=navigator.platform||"");var yd="rgba(0, 0, 0, 0.2)",_d={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vd.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},bd=Object(g["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),xd="original",wd="arrayRows",Md="objectRows",Sd="keyedColumns",kd="typedArray",Cd="unknown",Td="column",Dd="row",Ld={Must:1,Might:2,Not:3},Od=qr();function Id(e){Od(e).datasetMap=Object(g["createHashMap"])()}function Ad(e,t,n){var i={},r=jd(t);if(!r||!e)return i;var o,a,s=[],l=[],u=t.ecModel,c=Od(u).datasetMap,d=r.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(g["each"])(e,(function(t,n){var r=Object(g["isObject"])(t)?t:e[n]={name:t};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var h=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function p(e,t,n){for(var i=0;it)return e[i];return e[n-1]}function Gd(e,t,n,i,r,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(r))return u[r];var c=null!=a&&i?Wd(i,a):n;if(c=c||n,c&&c.length){var d=c[l];return r&&(u[r]=d),s.paletteIdx=(l+1)%c.length,d}}function Ud(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var qd,Xd,Kd;"undefined"!==typeof console&&console.warn&&console.log;function Zd(e){0}function Jd(e){throw new Error(e)}var Qd="\0_ec_inner",eh=1;var th=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.init=function(e,t,n,i,r,o){i=i||{},this.option=null,this._theme=new Wu(i),this._locale=new Wu(r),this._optionManager=o},t.prototype.setOption=function(e,t,n){var i=ah(t);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,t){return this._resetOption(e,ah(t))},t.prototype._resetOption=function(e,t){var n=!1,i=this._optionManager;if(!e||"recreate"===e){var r=i.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(r,t)):Kd(this,r),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=i.getMediaOption(this);a.length&&Object(g["each"])(a,(function(e){n=!0,this._mergeOption(e,t)}),this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Object(g["createHashMap"])(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=Hd(this,t,Cr(e[t])),a=i.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=Ir(a,o,l);$r(u,t,gd),n[t]=null,i.set(t,null),r.set(t,0);var c,d=[],h=[],p=0;Object(g["each"])(u,(function(e,n){var i=e.existing,r=e.newOption;if(r){var o="series"===t,a=gd.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(i&&i.constructor===a)i.name=e.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Object(g["extend"])({componentIndex:n},e.keyInfo);i=new a(r,this,this,s),Object(g["extend"])(i,s),e.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(d.push(i.option),h.push(i),p++):(d.push(void 0),h.push(void 0))}),this),n[t]=d,i.set(t,h),r.set(t,p),"series"===t&&qd(this)}Id(this),Object(g["each"])(e,(function(e,t){null!=e&&(gd.hasClass(t)?t&&(o.push(t),a.set(t,!0)):n[t]=null==n[t]?Object(g["clone"])(e):Object(g["merge"])(n[t],e,!0))})),s&&s.each((function(e,t){gd.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),gd.topologicalTravel(o,gd.getAllClassMainTypes(),l,this),this._seriesIndices||qd(this)},t.prototype.getOption=function(){var e=Object(g["clone"])(this.option);return Object(g["each"])(e,(function(t,n){if(gd.hasClass(n)){for(var i=Cr(t),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Br(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,e[n]=i}})),delete e[Qd],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var i=n[t||0];if(i)return i;if(null==t)for(var r=0;r=t:"max"===n?e<=t:e===t}function _h(e,t){return e.join(",")===t.join(",")}var bh=mh,xh=g["each"],wh=g["isObject"],Mh=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sh(e){var t=e&&e.itemStyle;if(t)for(var n=0,i=Mh.length;n=0;m--){var g=e[m];if(s||(h=g.data.rawIndexOf(g.stackedByDimension,d)),h>=0){var v=g.data.getByRawIndex(g.stackResultDimension,h);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=sr(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var Uh,qh,Xh,Kh,Zh,Jh=function(){function e(e){this.data=e.data||(e.sourceFormat===Sd?{}:[]),this.sourceFormat=e.sourceFormat||Cd,this.seriesLayoutBy=e.seriesLayoutBy||Td,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;nu&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(e){for(var t=0;t=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return bp(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Mp(e){var t,n;return g["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Sp(e){return new kp(e)}var kp=function(){function e(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,i=e&&e.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(t=this._plan(this.context));var o,a=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;function c(e){return!(e>=1)&&(e=1),e}a===l&&s===u||(t="reset"),(this._dirty||"reset"===t)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,p=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!i&&(o||h1&&i>0?s:a}};return o;function a(){return t=e?null:ot},gte:function(e,t){return e>=t}},Ip=function(){function e(e,t){if(!Object(g["isNumber"])(t)){var n="";0,Jd(n)}this._opFn=Op[e],this._rvalFloat=yr(t)}return e.prototype.evaluate=function(e){return Object(g["isNumber"])(e)?this._opFn(e,this._rvalFloat):this._opFn(yr(e),this._rvalFloat)},e}(),Ap=function(){function e(e,t){var n="desc"===e;this._resultLT=n?1:-1,null==t&&(t=n?"min":"max"),this._incomparable="min"===t?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=Object(g["isNumber"])(e)?e:yr(e),i=Object(g["isNumber"])(t)?t:yr(t),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=Object(g["isString"])(e),s=Object(g["isString"])(t);a&&(n=s?e:0),s&&(i=a?t:0)}return ni?-this._resultLT:0},e}(),Ep=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=yr(t)}return e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(t=yr(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function jp(e,t){return"eq"===e||"ne"===e?new Ep("eq"===e,t):Object(g["hasOwn"])(Op,e)?new Ip(e,t):null}var Pp=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(e){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Tp(e,t)},e}();function Yp(e,t){var n=new Pp,i=e.data,r=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Td&&Jd(a);var s=[],l={},u=e.dimensionsDefine;if(u)Object(g["each"])(u,(function(e,t){var n=e.name,i={index:t,name:n,displayName:e.displayName};if(s.push(i),null!=n){var r="";Object(g["hasOwn"])(l,n)&&Jd(r),l[n]=i}}));else for(var c=0;c65535?qp:Xp}function ef(){return[1/0,-1/0]}function tf(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function nf(e,t,n,i,r){var o=Jp[n||"float"];if(r){var a=e[t],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;um[1]&&(m[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=Object(g["map"])(o,(function(e){return e.property})),u=0;uv[1]&&(v[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t=0&&t=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(null!=n&&ne))return o;r=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var i=this._chunks,r=i[e],o=[];if(!r)return o;null==n&&(n=1/0);for(var a=1/0,s=-1,l=0,u=0,c=this.count();u=0&&s<0)&&(a=p,s=h,l=0),h===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,i=this._count;if(n===Array){e=new n(i);for(var r=0;r=c&&y<=d||isNaN(y))&&(s[l++]=f),f++}p=!0}else if(2===r){m=h[i[0]];var _=h[i[1]],b=e[i[1]][0],x=e[i[1]][1];for(v=0;v=c&&y<=d||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(s[l++]=f),f++}p=!0}}if(!p)if(1===r)for(v=0;v=c&&y<=d||isNaN(y))&&(s[l++]=M)}else for(v=0;ve[C][1])&&(S=!1)}S&&(s[l++]=t.getRawIndex(v))}return lg[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,i,r,o=this.clone([e],!0),a=o._chunks,s=a[e],l=this.count(),u=0,c=Math.floor(1/t),d=this.getRawIndex(0),h=new(Qp(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));h[u++]=d;for(var p=1;pn&&(n=i,r=_))}C>0&&Cu-p&&(s=u-p,a.length=s);for(var f=0;fc[1]&&(c[1]=g),d[h++]=v}return r._count=h,r._indices=d,r._updateGetRawIdx(),r},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,i=this._chunks,r=0,o=this.count();rs&&(s=c)}return i=[a,s],this._extent[e]=i,i},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],i=this._chunks,r=0;r=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,i){return Tp(e[i],this._dimensions[i])}Gp={arrayRows:e,objectRows:function(e,t,n,i){return Tp(e[t],this._dimensions[i])},keyedColumns:e,original:function(e,t,n,i){var r=e&&(null==e.value?e:e.value);return Tp(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(e,t,n,i){return e[i]}}}(),e}(),of=rf,af=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(lf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),l=u.getSource(),a=l.data,s=l.sourceFormat,t=[u._getVersionSign()]}else a=o.get("data",!0),s=Object(g["isTypedArray"])(a)?kd:xd,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},h=Object(g["retrieve2"])(c.seriesLayoutBy,d.seriesLayoutBy)||null,p=Object(g["retrieve2"])(c.sourceHeader,d.sourceHeader),f=Object(g["retrieve2"])(c.dimensions,d.dimensions),m=h!==d.seriesLayoutBy||!!p!==!!d.sourceHeader||f;e=m?[ep(a,{seriesLayoutBy:h,sourceHeader:p,dimensions:f},s)]:[]}else{var v=n;if(r){var y=this._applyTransform(i);e=y.sourceList,t=y.upstreamSignList}else{var _=v.get("source",!0);e=[ep(_,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);if(null!=r){var o="";1!==e.length&&uf(o)}var a=[],s=[];return Object(g["each"])(e,(function(e){e.prepareSource();var t=e.getSource(r||0),n="";null==r||t||uf(n),a.push(t),s.push(e._getVersionSign())})),i?t=Vp(i,a,{datasetIndex:n.componentIndex}):null!=r&&(t=[np(a[0])]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t1||n>0&&!e.noHeader;return Object(g["each"])(e.blocks,(function(e){var n=vf(e);n>=t&&(t=n+ +(i&&(!n||mf(e)&&!e.noHeader)))})),t}return 0}function yf(e,t,n,i){var r=t.noHeader,o=xf(vf(t)),a=[],s=t.blocks||[];Object(g["assert"])(!s||Object(g["isArray"])(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Object(g["hasOwn"])(u,l)){var c=new Ap(u[l],null);s.sort((function(e,t){return c.evaluate(e.sortParam,t.sortParam)}))}else"seriesDesc"===l&&s.reverse()}Object(g["each"])(s,(function(n,r){var s=t.valueFormatter,l=gf(n)(s?Object(g["extend"])(Object(g["extend"])({},e),{valueFormatter:s}):e,n,r>0?o.html:0,i);null!=l&&a.push(l)}));var d="richText"===e.renderMode?a.join(o.richText):wf(a.join(""),r?n:o.html);if(r)return d;var h=$c(t.header,"ordinal",e.useUTC),p=df(i,e.renderMode).nameStyle;return"richText"===e.renderMode?kf(e,h,p)+o.richText+d:wf('
'+oe(h)+"
"+d,n)}function _f(e,t,n,i){var r=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(e){return e=Object(g["isArray"])(e)?e:[e],Object(g["map"])(e,(function(e,t){return $c(e,Object(g["isArray"])(p)?p[t]:p,u)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",r),h=o?"":$c(l,"ordinal",u),p=t.valueType,f=a?[]:c(t.value),m=!s||!o,v=!s&&o,y=df(i,r),_=y.nameStyle,b=y.valueStyle;return"richText"===r?(s?"":d)+(o?"":kf(e,h,_))+(a?"":Cf(e,f,m,v,b)):wf((s?"":d)+(o?"":Mf(h,!s,_))+(a?"":Sf(f,m,v,b)),n)}}function bf(e,t,n,i,r,o){if(e){var a=gf(e),s={useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function xf(e){return{html:hf[e],richText:pf[e]}}function wf(e,t){var n='
',i="margin: "+t+"px 0 0";return'
'+e+n+"
"}function Mf(e,t,n){var i=t?"margin-left:2px":"";return''+oe(e)+""}function Sf(e,t,n,i){var r=n?"10px":"20px",o=t?"float:right;margin-left:"+r:"";return e=Object(g["isArray"])(e)?e:[e],''+Object(g["map"])(e,(function(e){return oe(e)})).join("  ")+""}function kf(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Cf(e,t,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Object(g["isArray"])(t)?t.join(" "):t,o)}function Tf(e,t){var n=e.getData().getItemVisual(t,"style"),i=n[e.visualDrawType];return Jc(i)}function Df(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Lf=function(){function e(){this.richTextStyles={},this._nextStyleNameId=br()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var i="richText"===n?this._generateStyleName():null,r=Xc({color:t,type:e,renderMode:n,markerId:i});return Object(g["isString"])(r)?r:(this.richTextStyles[i]=r.style,r.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};Object(g["isArray"])(t)?Object(g["each"])(t,(function(e){return Object(g["extend"])(n,e)})):Object(g["extend"])(n,t);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+e+"}"},e}();function Of(e){var t,n,i,r,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),h=Object(g["isArray"])(d),p=Tf(o,a);if(c>1||h&&!c){var f=If(d,o,a,u,p);t=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(c){var m=l.getDimensionInfo(u[0]);r=t=bp(l,a,u[0]),n=m.type}else r=t=h?d[0]:d;var v=zr(o),y=v&&o.name||"",_=l.getName(a),b=s?y:_;return ff("section",{header:y,noHeader:s||!v,sortParam:r,blocks:[ff("nameValue",{markerType:"item",markerColor:p,name:b,noName:!Object(g["trim"])(b),value:t,valueType:n})].concat(i||[])})}function If(e,t,n,i,r){var o=t.getData(),a=Object(g["reduce"])(e,(function(e,t,n){var i=o.getDimensionInfo(n);return e||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(ff("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return i.length?Object(g["each"])(i,(function(e){c(bp(o,n,e),e)})):Object(g["each"])(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Af=qr();function Ef(e,t){return e.getName(t)||e.getId(t)}var jf="__universalTransitionEnabled",Pf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return f(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Sp({count:Rf,reset:Ff}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Af(this).sourceManager=new af(this);i.prepareSource();var r=this.getInitialData(e,n);zf(r,this),this.dataTask.context.data=r,Af(this).dataBeforeProcessed=r,Yf(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=ud(this),i=n?dd(e):{},r=this.subType;gd.hasClass(r)&&(r+="Series"),g["merge"](e,t.getTheme().get(this.subType)),g["merge"](e,this.getDefaultOption()),Tr(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&cd(e,i,n)},t.prototype.mergeOption=function(e,t){e=g["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=ud(this);n&&cd(this.option,e,n);var i=Af(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(e,t);zf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Af(this).dataBeforeProcessed=r,Yf(this),this._initSelectedMapFromData(r)},t.prototype.fillDataTextStyle=function(e){if(e&&!g["isTypedArray"](e))for(var t=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var i=this.ecModel,r=Vd.prototype.getColorFromPalette.call(this,e,t,n);return r||(r=i.getColorFromPalette(e,t,n)),r},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(t);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(t);return("all"===n||n[Ef(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[jf])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,i,r=this.option,o=r.selectedMode,a=t.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){g["isObject"](r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return gd.registerClass(e)},t.protoInitialize=function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"}(),t}(gd);function Yf(e){var t=e.name;zr(e)||(e.name=Nf(e)||t)}function Nf(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),i=[];return g["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&i.push(n.displayName)})),i.join(" ")}function Rf(e){return e.model.getRawData().count()}function Ff(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Hf}function Hf(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function zf(e,t){g["each"](g["concatArray"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,g["curry"](Bf,t))}))}function Bf(e,t){var n=Vf(e);return n&&n.setOutputEnd((t||this).count()),t}function Vf(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(e.uid))}return i}}g["mixin"](Pf,wp),g["mixin"](Pf,Vd),mo(Pf,gd);var $f=Pf,Wf=function(){function e(){this.group=new Ni,this.uid=Uu("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,i){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,i){},e.prototype.updateLayout=function(e,t,n,i){},e.prototype.updateVisual=function(e,t,n,i){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();po(Wf),bo(Wf);var Gf=Wf;function Uf(){var e=qr();return function(t){var n=e(t),i=t.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var qf=Pa.CMD,Xf=[[],[],[]],Kf=Math.sqrt,Zf=Math.atan2;function Jf(e,t){if(t){var n,i,r,o,a,s,l=e.data,u=e.len(),c=qf.M,d=qf.C,h=qf.L,p=qf.R,f=qf.A,m=qf.Q;for(r=0,o=0;r1&&(a*=Qf(f),s*=Qf(f));var m=(r===o?-1:1)*Qf((a*a*(s*s)-a*a*(p*p)-s*s*(h*h))/(a*a*(p*p)+s*s*(h*h)))||0,g=m*a*p/s,v=m*-s*h/a,y=(e+n)/2+tm(d)*g-em(d)*v,_=(t+i)/2+em(d)*g+tm(d)*v,b=om([1,0],[(h-g)/a,(p-v)/s]),x=[(h-g)/a,(p-v)/s],w=[(-1*h-g)/a,(-1*p-v)/s],M=om(x,w);if(rm(x,w)<=-1&&(M=nm),rm(x,w)>=1&&(M=0),M<0){var S=Math.round(M/nm*1e6)/1e6;M=2*nm+S%2*nm}c.addData(u,y,_,a,s,b,M,d,o)}var sm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,lm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function um(e){var t=new Pa;if(!e)return t;var n,i=0,r=0,o=i,a=r,s=Pa.CMD,l=e.match(sm);if(!l)return t;for(var u=0;uO*O+I*I&&(S=C,k=T),{cx:S,cy:k,x0:-c,y0:-d,x1:S*(r/x-1),y1:k*(r/x-1)}}function Ym(e){var t;if(Object(g["isArray"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function Nm(e,t){var n,i=Im(t.r,0),r=Im(t.r0||0,0),o=i>0,a=r>0;if(o||a){if(o||(i=r,r=0),r>i){var s=i;i=r,r=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,h=!!t.clockwise,p=Lm(u-l),f=p>Sm&&p%Sm;if(f>Em&&(p=f),i>Em)if(p>Sm-Em)e.moveTo(c+i*Cm(l),d+i*km(l)),e.arc(c,d,i,l,u,!h),r>Em&&(e.moveTo(c+r*Cm(u),d+r*km(u)),e.arc(c,d,r,u,l,h));else{var m=void 0,g=void 0,v=void 0,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0,M=void 0,S=void 0,k=void 0,C=void 0,T=void 0,D=void 0,L=void 0,O=void 0,I=i*Cm(l),A=i*km(l),E=r*Cm(u),j=r*km(u),P=p>Em;if(P){var Y=t.cornerRadius;Y&&(n=Ym(Y),m=n[0],g=n[1],v=n[2],y=n[3]);var N=Lm(i-r)/2;if(_=Am(N,v),b=Am(N,y),x=Am(N,m),w=Am(N,g),k=M=Im(_,b),C=S=Im(x,w),(M>Em||S>Em)&&(T=i*Cm(u),D=i*km(u),L=r*Cm(l),O=r*km(l),pEm){var W=Am(v,k),G=Am(y,k),U=Pm(L,O,I,A,i,W,h),q=Pm(T,D,E,j,i,G,h);e.moveTo(c+U.cx+U.x0,d+U.cy+U.y0),k0&&e.arc(c+U.cx,d+U.cy,W,Dm(U.y0,U.x0),Dm(U.y1,U.x1),!h),e.arc(c,d,i,Dm(U.cy+U.y1,U.cx+U.x1),Dm(q.cy+q.y1,q.cx+q.x1),!h),G>0&&e.arc(c+q.cx,d+q.cy,G,Dm(q.y1,q.x1),Dm(q.y0,q.x0),!h))}else e.moveTo(c+I,d+A),e.arc(c,d,i,l,u,!h);else e.moveTo(c+I,d+A);if(r>Em&&P)if(C>Em){W=Am(m,C),G=Am(g,C),U=Pm(E,j,T,D,r,-G,h),q=Pm(I,A,L,O,r,-W,h);e.lineTo(c+U.cx+U.x0,d+U.cy+U.y0),C0&&e.arc(c+U.cx,d+U.cy,G,Dm(U.y0,U.x0),Dm(U.y1,U.x1),!h),e.arc(c,d,r,Dm(U.cy+U.y1,U.cx+U.x1),Dm(q.cy+q.y1,q.cx+q.x1),h),W>0&&e.arc(c+q.cx,d+q.cy,W,Dm(q.y1,q.x1),Dm(q.y0,q.x0),!h))}else e.lineTo(c+E,d+j),e.arc(c,d,r,u,l,h);else e.lineTo(c+E,d+j)}else e.moveTo(c,d);e.closePath()}}}var Rm=function(){function e(){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}return e}(),Fm=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype.getDefaultShape=function(){return new Rm},t.prototype.buildPath=function(e,t){Nm(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ss);Fm.prototype.type="sector";var Hm=Fm,zm=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Bm=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype.getDefaultShape=function(){return new zm},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=2*Math.PI;e.moveTo(n+t.r,i),e.arc(n,i,t.r,0,r,!1),e.moveTo(n+t.r0,i),e.arc(n,i,t.r0,0,r,!0)},t}(ss);Bm.prototype.type="ring";var Vm=Bm;function $m(e,t,n,i){var r,o,a,s,l=[],u=[],c=[],d=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var h=0,p=e.length;h=2){if(i){var o=$m(r,i,n,t.smoothConstraint);e.moveTo(r[0][0],r[0][1]);for(var a=r.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=r[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(r[0][0],r[0][1]);s=1;for(var d=r.length;s_g[1]){if(a=!1,r)return a;var u=Math.abs(_g[0]-yg[1]),c=Math.abs(yg[0]-_g[1]);Math.min(u,c)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Gg(e){return!e.isGroup}function Ug(e){return null!=e.shape}function qg(e,t,n){if(e&&t){var i=r(e);t.traverse((function(e){if(Gg(e)&&e.anid){var t=i[e.anid];if(t){var r=o(e);e.attr(o(t)),lu(e,r,n,Vs(e).dataIndex)}}}))}function r(e){var t={};return e.traverse((function(e){Gg(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Ug(e)&&(t.shape=Object(g["extend"])({},e.shape)),t}}function Xg(e,t){return Object(g["map"])(e,(function(e){var n=e[0];n=Tg(n,t.x),n=Dg(n,t.x+t.width);var i=e[1];return i=Tg(i,t.y),i=Dg(i,t.y+t.height),[n,i]}))}function Kg(e,t){var n=Tg(e.x,t.x),i=Dg(e.x+e.width,t.x+t.width),r=Tg(e.y,t.y),o=Dg(e.y+e.height,t.y+t.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Zg(e,t,n){var i=Object(g["extend"])({rectHover:!0},t),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(r.image=e.slice(8),Object(g["defaults"])(r,n),new ms(i)):Pg(e.replace("path://",""),i,n,"center")}function Jg(e,t,n,i,r){for(var o=0,a=r[r.length-1];o1)return!1;var g=ev(p,f,c,d)/h;return!(g<0||g>1)}function ev(e,t,n,i){return e*i-n*t}function tv(e){return e<=1e-6&&e>=-1e-6}function nv(e){var t=e.itemTooltipOption,n=e.componentModel,i=e.itemName,r=Object(g["isString"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&Object(g["each"])(Object(g["keys"])(l),(function(e){Object(g["hasOwn"])(s,e)||(s[e]=l[e],s.$vars.push(e))}));var u=Vs(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:Object(g["defaults"])({content:i,formatterParams:s},r)}}function iv(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function rv(e,t){if(e)if(Object(g["isArray"])(e))for(var n=0;n=0?d():c=setTimeout(d,-r),l=i};return h.clear=function(){c&&(clearTimeout(c),c=null)},h.debounceNextCall=function(e){s=e},h}function yv(e,t,n,i){var r=e[t];if(r){var o=r[fv]||r,a=r[gv],s=r[mv];if(s!==n||a!==i){if(null==n||!i)return e[t]=o;r=e[t]=vv(o,n,"debounce"===i),r[fv]=o,r[gv]=i,r[mv]=n}return r}}function _v(e,t){var n=e[t];n&&n[fv]&&(n.clear&&n.clear(),e[t]=n[fv])}var bv=qr(),xv={itemStyle:xo(zu,!0),lineStyle:xo(Ru,!0)},wv={lineStyle:"stroke",itemStyle:"fill"};function Mv(e,t){var n=e.visualStyleMapper||xv[t];return n||(console.warn("Unkown style type '"+t+"'."),xv.itemStyle)}function Sv(e,t){var n=e.visualDrawType||wv[t];return n||(console.warn("Unkown style type '"+t+"'."),"fill")}var kv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=e.getModel(i),o=Mv(e,i),a=o(r),s=r.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Sv(e,i),u=a[l],c=Object(g["isFunction"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||d){var h=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=h,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(g["isFunction"])(a.fill)?h:a.fill,a.stroke="auto"===a.stroke||Object(g["isFunction"])(a.stroke)?h:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(t,n){var i=e.getDataParams(n),r=Object(g["extend"])({},a);r[l]=c(i),t.setItemVisual(n,"style",r)}}}},Cv=new Wu,Tv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),i=e.visualStyleAccessPath||"itemStyle",r=Mv(e,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[i]){Cv.option=n[i];var a=r(Cv),s=e.ensureUniqueItemVisual(t,"style");Object(g["extend"])(s,a),Cv.option.decal&&(e.setItemVisual(t,"decal",Cv.option.decal),Cv.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},Dv={performRawSeries:!0,overallReset:function(e){var t=Object(g["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var i=e.type+"-"+n,r=t.get(i);r||(r={},t.set(i,r)),bv(e).scope=r}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),i={},r=t.getData(),o=bv(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Sv(t,a);r.each((function(e){var t=r.getRawIndex(e);i[t]=e})),n.each((function(e){var a=i[e],l=r.getItemVisual(a,"colorFromPalette");if(l){var u=r.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},Lv=Math.PI;function Ov(e,t){t=t||{},g["defaults"](t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Ni,i=new Ss({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(i);var r,o=new Bs({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ss({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(r=new ug({shape:{startAngle:-Lv/2,endAngle:-Lv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),r.animateShape(!0).when(1e3,{endAngle:3*Lv/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*Lv/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,l=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),u=e.getHeight()/2;t.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Iv=function(){function e(e,t,n,i){this._stageTaskMap=Object(g["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each((function(e){var t=e.overallTask;t&&t.dirty()}))},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),i=n.context,r=!t&&n.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=r?n.step:null,a=i&&i.modDataCount,s=null!=a?Math.ceil(a/o):null;return{step:o,modBy:s,modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid),i=e.getData(),r=i.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,a=e.get("large")&&r>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?r:null;e.pipelineContext=n.context={progressiveRender:o,modDataCount:s,large:a}},e.prototype.restorePipelines=function(e){var t=this,n=t._pipelineMap=Object(g["createHashMap"])();e.eachSeries((function(e){var i=e.getProgressive(),r=e.uid;n.set(r,{id:r,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:i&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),t._pipe(e,e.dataTask)}))},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;Object(g["each"])(this._allHandlers,(function(i){var r=e.get(i.uid)||e.set(i.uid,{}),o="";Object(g["assert"])(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,r,t,n),i.overallReset&&this._createOverallStageTask(i,r,t,n)}),this)},e.prototype.prepareView=function(e,t,n,i){var r=e.renderTask,o=r.context;o.model=t,o.ecModel=n,o.api=i,r.__block=!e.incrementalPrepareRender,this._pipe(t,r)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,i){i=i||{};var r=!1,o=this;function a(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}Object(g["each"])(e,(function(e,s){if(!i.visualType||i.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,h=c.agentStubMap;h.each((function(e){a(i,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var p=o.getPerformArgs(c,i.block);h.each((function(e){e.perform(p)})),c.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries((function(e){t=e.dataTask.perform()||t})),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each((function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)}))},e.prototype.updatePayload=function(e,t){"remain"!==t&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,i){var r=this,o=t.seriesTaskMap,a=t.seriesTaskMap=Object(g["createHashMap"])(),s=e.seriesType,l=e.getTargetSeries;function u(t){var s=t.uid,l=a.set(s,o&&o.get(s)||Sp({plan:Yv,reset:Nv,count:Hv}));l.context={model:t,ecModel:n,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:r},r._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},e.prototype._createOverallStageTask=function(e,t,n,i){var r=this,o=t.overallTask=t.overallTask||Sp({reset:Av});o.context={ecModel:n,api:i,overallReset:e.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Object(g["createHashMap"])(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1,h="";function p(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,Sp({reset:Ev,onDirty:Pv})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,r._pipe(e,n)}Object(g["assert"])(!e.createOnAllSeries,h),l?n.eachRawSeriesByType(l,p):u?u(n,i).each(p):(c=!1,Object(g["each"])(n.getSeries(),p)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=t),i.tail&&i.tail.pipe(t),i.tail=t,t.__idxInPipeline=i.count++,t.__pipeline=i},e.wrapStageHandler=function(e,t){return Object(g["isFunction"])(e)&&(e={overallReset:e,seriesType:zv(e)}),e.uid=Uu("stageHandler"),t&&(e.visualType=t),e},e}();function Av(e){e.overallReset(e.ecModel,e.api,e.payload)}function Ev(e){return e.overallProgress&&jv}function jv(){this.agent.dirty(),this.getDownstream().dirty()}function Pv(){this.agent&&this.agent.dirty()}function Yv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Nv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Cr(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(g["map"])(t,(function(e,t){return Fv(t)})):Rv}var Rv=Fv(0);function Fv(e){return function(t,n){var i=n.data,r=n.resetDefines[e];if(r&&r.dataEach)for(var o=t.start;o0&&c===r.length-u.length){var d=r.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(r)&&(n[r]=e,s=!0),s||(i[r]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:i}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=t.cptQuery,l=t.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,i,r));function u(e,t,n,i){return null==e[n]||t[i||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ny=["symbol","symbolSize","symbolRotate","symbolOffset"],iy=ny.concat(["symbolKeepAspect"]),ry={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&Ly(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function Ay(e,t,n){for(var i="radial"===t.type?Iy(e,t,n):Oy(e,t,n),r=t.colorStops,o=0;o0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(g["isNumber"])(e)?[e]:Object(g["isArray"])(e)?e:null:null}function Ny(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Yy(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(n){var r=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;r&&1!==r&&(n=Object(g["map"])(n,(function(e){return e/r})),i/=r)}return[n,i]}var Ry=new Pa(!0);function Fy(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Hy(e){return"string"===typeof e&&"none"!==e}function zy(e){var t=e.fill;return null!=t&&"none"!==t}function By(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function Vy(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function $y(e,t,n){var i=To(t.image,t.__image,n);if(Lo(i)){var r=e.createPattern(i,t.repeat||"repeat");if("function"===typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*g["RADIAN_TO_DEGREE"]),o.scaleSelf(t.scaleX||1,t.scaleY||1),r.setTransform(o)}return r}}function Wy(e,t,n,i){var r,o=Fy(n),a=zy(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||Ry,d=t.__dirty;if(!i){var h=n.fill,p=n.stroke,f=a&&!!h.colorStops,m=o&&!!p.colorStops,g=a&&!!h.image,v=o&&!!p.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(f||m)&&(w=t.getBoundingRect()),f&&(y=d?Ay(e,h,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=d?Ay(e,p,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=d||!t.__canvasFillPattern?$y(e,h,t):t.__canvasFillPattern,t.__canvasFillPattern=b),v&&(x=d||!t.__canvasStrokePattern?$y(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),f?e.fillStyle=y:g&&(b?e.fillStyle=b:a=!1),m?e.strokeStyle=_:v&&(x?e.strokeStyle=x:o=!1)}var M,S,k=t.getGlobalScale();c.setScale(k[0],k[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(r=Ny(t),M=r[0],S=r[1]);var C=!0;(u||d&pt)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),C=!1),c.reset(),t.buildPath(c,t.shape,i),c.toStatic(),t.pathUpdated()),C&&c.rebuildPath(e,l?s:1),M&&(e.setLineDash(M),e.lineDashOffset=S),i||(n.strokeFirst?(o&&Vy(e,n),a&&By(e,n)):(a&&By(e,n),o&&Vy(e,n))),M&&e.setLineDash([])}function Gy(e,t,n){var i=t.__image=To(n.image,t.__image,t,t.onload);if(i&&Lo(i)){var r=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(i,u,c,n.sWidth,n.sHeight,r,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=a-u,h=s-c;e.drawImage(i,u,c,d,h,r,o,a,s)}else e.drawImage(i,r,o,a,s)}}function Uy(e,t,n){var i,r=n.text;if(null!=r&&(r+=""),r){e.font=n.font||hi["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(i=Ny(t),o=i[0],a=i[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Fy(n)&&e.strokeText(r,n.x,n.y),zy(n)&&e.fillText(r,n.x,n.y)):(zy(n)&&e.fillText(r,n.x,n.y),Fy(n)&&e.strokeText(r,n.x,n.y)),o&&e.setLineDash([])}}var qy=["shadowBlur","shadowOffsetX","shadowOffsetY"],Xy=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Ky(e,t,n,i,r){var o=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){s_(e,r),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Go.opacity:a}(i||t.blend!==n.blend)&&(o||(s_(e,r),o=!0),e.globalCompositeOperation=t.blend||Go.blend);for(var s=0;s0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[U_])if(this._disposed)Tb(this.id);else{var i,r,o;if(Object(g["isObject"])(t)&&(n=t.lazyUpdate,i=t.silent,r=t.replaceMerge,o=t.transition,t=t.notMerge),this[U_]=!0,!this._model||t){var a=new bh(this._api),s=this._theme,l=this._model=new sh;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:r},Ib);var u={seriesTransition:o,optionChanged:!0};if(n)this[q_]={silent:i,updateParams:u},this[U_]=!1,this.getZr().wakeUp();else{try{rb(this),sb.update.call(this,null,u)}catch(c){throw this[q_]=null,this[U_]=!1,c}this._ssr||this._zr.flush(),this[q_]=null,this[U_]=!1,db.call(this,i),hb.call(this,i)}}},t.prototype.setTheme=function(){Zd("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||T_&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var t=this._zr.painter;return t.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var t=this._zr.painter;return t.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){if(m["a"].svgSupported){var e=this._zr,t=e.storage.getDisplayList();return Object(g["each"])(t,(function(e){e.stopAnimation(null,!0)})),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){e=e||{};var t=e.excludeComponents,n=this._model,i=[],r=this;Object(g["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=r._componentsMap[e.__viewId];t.group.ignore||(i.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(g["each"])(i,(function(e){e.group.ignore=!1})),o}Tb(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(Yb[n]){var a=o,s=o,l=-o,u=-o,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(g["each"])(Pb,(function(o,d){if(o.group===n){var h=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(g["clone"])(e)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),c.push({dom:h,left:p.left,top:p.top})}})),a*=d,s*=d,l*=d,u*=d;var h=l-a,p=u-s,f=hi["d"].createCanvas(),m=Vi(f,{renderer:t?"svg":"canvas"});if(m.resize({width:h,height:p}),t){var v="";return Object(g["each"])(c,(function(e){var t=e.left-a,n=e.top-s;v+=''+e.dom+""})),m.painter.getSvgRoot().innerHTML=v,e.connectedBackgroundColor&&m.painter.setBackgroundColor(e.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}return e.connectedBackgroundColor&&m.add(new Ss({shape:{x:0,y:0,width:h,height:p},style:{fill:e.connectedBackgroundColor}})),Object(g["each"])(c,(function(e){var t=new ms({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),f.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Tb(this.id)},t.prototype.convertToPixel=function(e,t){return lb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return lb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,i=this._model,r=Kr(i,e);return Object(g["each"])(r,(function(e,i){i.indexOf("Models")>=0&&Object(g["each"])(e,(function(e){var r=e.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(t);else if("seriesModels"===i){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}Tb(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,i=Kr(n,e,{defaultMainType:"series"}),r=i.seriesModel;var o=r.getData(),a=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?o.indexOfRawIndex(i.dataIndex):null;return null!=a?ay(o,a,t):sy(o,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;Object(g["each"])(Cb,(function(t){var n=function(n){var i,r=e.getModel(),o=n.target,a="globalout"===t;if(a?i={}:o&&hy(o,(function(e){var t=Vs(e);if(t&&null!=t.dataIndex){var n=t.dataModel||r.getSeriesByIndex(t.seriesIndex);return i=n&&n.getDataParams(t.dataIndex,t.dataType)||{},!0}if(t.eventData)return i=Object(g["extend"])({},t.eventData),!0}),!0),i){var s=i.componentType,l=i.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=i.seriesIndex);var u=s&&null!=l&&r.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,i.event=n,i.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:u,view:c},e.trigger(t,i)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(g["each"])(Lb,(function(t,n){e._messageCenter.on(n,(function(e){this.trigger(n,e)}),e)})),Object(g["each"])(["selectchanged"],(function(t){e._messageCenter.on(t,(function(e){this.trigger(t,e)}),e)})),dy(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Tb(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Tb(this.id);else{this._disposed=!0;var e=this.getDom();e&&to(this.getDom(),Fb,"");var t=this,n=t._api,i=t._model;Object(g["each"])(t._componentsViews,(function(e){e.dispose(i,n)})),Object(g["each"])(t._chartsViews,(function(e){e.dispose(i,n)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete Pb[t.id]}},t.prototype.resize=function(e){if(!this[U_])if(this._disposed)Tb(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),i=e&&e.silent;this[q_]&&(null==i&&(i=this[q_].silent),n=!0,this[q_]=null),this[U_]=!0;try{n&&rb(this),sb.update.call(this,{type:"resize",animation:Object(g["extend"])({duration:0},e&&e.animation)})}catch(r){throw this[U_]=!1,r}this[U_]=!1,db.call(this,i),hb.call(this,i)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Tb(this.id);else if(Object(g["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),jb[e]){var n=jb[e](this._api,t),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){this._disposed?Tb(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=Object(g["extend"])({},e);return t.type=Lb[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Tb(this.id);else if(Object(g["isObject"])(t)||(t={silent:!!t}),Db[e.type]&&this._model)if(this[U_])this._pendingActions.push(e);else{var n=t.silent;cb.call(this,e,n);var i=t.flush;i?this._zr.flush():!1!==i&&m["a"].browser.weChat&&this._throttledZrFlush(),db.call(this,n),hb.call(this,n)}},t.prototype.updateLabelLayout=function(){M_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Tb(this.id);else{var t=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(t);0,i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries((function(e){e.clearColorPalette()}))}function t(e){var t=[],n=[],i=!1;if(e.eachComponent((function(e,r){var o=r.get("zlevel")||0,a=r.get("z")||0,s=r.getZLevelKey();i=i||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:r.componentIndex,type:e,key:s})})),i){var r,o,a=t.concat(n);ct(a,(function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel})),Object(g["each"])(a,(function(t){var n=e.getComponent(t.type,t.idx),i=t.zlevel,a=t.key;null!=r&&(i=Math.max(r,i)),a?(i===r&&a!==o&&i++,o=a):o&&(i===r&&i++,o=""),r=i,n.setZLevel(i)}))}}function n(e){for(var t=[],n=e.currentStates,i=0;it.get("hoverLayerThreshold")&&!m["a"].node&&!m["a"].worker&&t.eachSeries((function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered((function(e){e.states.emphasis&&(e.states.emphasis.hoverLayer=!0)}))}}))}function r(e,t){var n=e.get("blendMode")||null;t.eachRendered((function(e){e.isGroup||(e.style.blend=n)}))}function o(e,t){if(!e.preventAutoZ){var n=e.get("z")||0,i=e.get("zlevel")||0;t.eachRendered((function(e){return a(e,n,i,-1/0),!0}))}}function a(e,t,n,i){var r=e.getTextContent(),o=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(cu(e))return;if(e instanceof ss&&ru(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}rb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),ob(e,!0),ob(e,!1),t.plan()},ob=function(e,t){for(var n=e._model,i=e._scheduler,r=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){rx.push(n);var o=Gv.wrapStageHandler(n,r);o.__prio=t,o.__raw=n,e.push(o)}}function ax(e,t){jb[e]=t}function sx(e){Object(hi["e"])({createCanvas:e})}function lx(e,t,n){var i=C_("registerMap");i&&i(e,t,n)}function ux(e){var t=C_("getMap");return t&&t(e)}var cx=Bp;ix(R_,kv),ix(z_,Tv),ix(z_,Dv),ix(R_,ry),ix(z_,oy),ix(W_,x_),qb($h),Xb(A_,Wh),ax("default",Ov),Qb({type:nl,event:nl,update:nl},g["noop"]),Qb({type:il,event:il,update:il},g["noop"]),Qb({type:rl,event:rl,update:rl},g["noop"]),Qb({type:ol,event:ol,update:ol},g["noop"]),Qb({type:al,event:al,update:al},g["noop"]),Ub("light",qv),Ub("dark",ey);var dx={},hx=[],px={registerPreprocessor:qb,registerProcessor:Xb,registerPostInit:Kb,registerPostUpdate:Zb,registerUpdateLifecycle:Jb,registerAction:Qb,registerCoordinateSystem:ex,registerLayout:nx,registerVisual:ix,registerTransform:cx,registerLoading:ax,registerMap:lx,registerImpl:k_,PRIORITY:G_,ComponentModel:gd,ComponentView:Gf,SeriesModel:$f,ChartView:pv,registerComponentModel:function(e){gd.registerClass(e)},registerComponentView:function(e){Gf.registerClass(e)},registerSeriesModel:function(e){$f.registerClass(e)},registerChartView:function(e){pv.registerClass(e)},registerSubTypeDefaulter:function(e,t){gd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Ui(e,t)}};function fx(e){Object(g["isArray"])(e)?Object(g["each"])(e,(function(e){fx(e)})):Object(g["indexOf"])(hx,e)>=0||(hx.push(e),Object(g["isFunction"])(e)&&(e={install:e}),e.install(px))}function mx(e){return null==e?0:e.length||1}function gx(e){return e}var vx=function(){function e(e,t,n,i,r,o){this._old=e,this._new=t,this._oldKeyGetter=n||gx,this._newKeyGetter=i||gx,this.context=r,this._diffModeMultiple="multiple"===o}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},i=new Array(e.length),r=new Array(t.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},i={},r=[],o=[];this._initIndexMap(e,n,r,"_oldKeyGetter"),this._initIndexMap(t,i,o,"_newKeyGetter");for(var a=0;a1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),i[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(c>1)for(var h=0;h1)for(var a=0;a30}var Ex,jx,Px,Yx,Nx,Rx,Fx,Hx=g["isObject"],zx=g["map"],Bx="undefined"===typeof Int32Array?Array:Int32Array,Vx="e\0\0",$x=-1,Wx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Gx=["_approximateExtent"],Ux=function(){function e(e,t){var n;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var i=!1;Lx(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,n=e),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=t)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var r=this._nameList,o=this._idList,a=i.getSource().sourceFormat,s=a===xd;if(s&&!i.pure)for(var l=[],u=e;u0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,i=n[e];i||(i=n[e]={});var r=i[t];return null==r&&(r=this.getVisual(t),g["isArray"](r)?r=r.slice():Hx(r)&&(r=g["extend"]({},r)),i[t]=r),r},e.prototype.setItemVisual=function(e,t,n){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Hx(t)?g["extend"](i,t):i[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Hx(e)?g["extend"](this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?g["extend"](this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;$s(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){g["each"](this._graphicEls,(function(n,i){n&&e&&e.call(t,n,i)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:zx(this.dimensions,this._getDimInfo,this),this.hostModel)),Nx(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];g["isFunction"](n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(g["slice"](arguments)))})},e.internalField=function(){Ex=function(e){var t=e._invertedIndicesMap;g["each"](t,(function(n,i){var r=e._dimInfos[i],o=r.ordinalMeta,a=e._store;if(o){n=t[i]=new Bx(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[t]=s}}}(),e}(),qx=Ux;function Xx(e,t){return Kx(e,t).dimensions}function Kx(e,t){Qh(e)||(e=tp(e)),t=t||{};var n=t.coordDimensions||[],i=t.dimensionsDefine||e.dimensionsDefine||[],r=Object(g["createHashMap"])(),o=[],a=Jx(e,n,i,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Ax(a),l=i===e.dimensionsDefine,u=l?Ix(e):Ox(i),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=Object(g["createHashMap"])(c),h=new Kp(a),p=0;p0&&(i.name=r+(o-1)),o++,t.set(r,o)}}function Jx(e,t,n,i){var r=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,i||0);return Object(g["each"])(t,(function(e){var t;Object(g["isObject"])(e)&&(t=e.dimsDef)&&(r=Math.max(r,t.length))})),r}function Qx(e,t,n){var i=t.data;if(n||i.hasOwnProperty(e)){var r=0;while(i.hasOwnProperty(e+r))r++;e+=r}return t.set(e,!0),e}var ew=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(g["createHashMap"])(),this.categoryAxisMap=Object(g["createHashMap"])(),this.coordSysName=e}return e}();function tw(e){var t=e.get("coordinateSystem"),n=new ew(t),i=nw[t];if(i)return i(e,n,n.axisMap,n.categoryAxisMap),n}var nw={cartesian2d:function(e,t,n,i){var r=e.getReferringComponents("xAxis",Jr).models[0],o=e.getReferringComponents("yAxis",Jr).models[0];t.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),iw(r)&&(i.set("x",r),t.firstCategoryDimIndex=0),iw(o)&&(i.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,i){var r=e.getReferringComponents("singleAxis",Jr).models[0];t.coordSysDims=["single"],n.set("single",r),iw(r)&&(i.set("single",r),t.firstCategoryDimIndex=0)},polar:function(e,t,n,i){var r=e.getReferringComponents("polar",Jr).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),iw(o)&&(i.set("radius",o),t.firstCategoryDimIndex=0),iw(a)&&(i.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,i){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,i){var r=e.ecModel,o=r.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(g["each"])(o.parallelAxisIndex,(function(e,o){var s=r.getComponent("parallelAxis",e),l=a[o];n.set(l,s),iw(s)&&(i.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function iw(e){return"category"===e.get("type")}function rw(e,t,n){n=n||{};var i,r,o,a=n.byIndex,s=n.stackedCoordDimension;ow(t)?i=t:(r=t.schema,i=r.dimensions,o=t.store);var l,u,c,d,h=!(!e||!e.get("stack"));if(Object(g["each"])(i,(function(e,t){Object(g["isString"])(e)&&(i[t]=e={name:e}),h&&!e.isExtraCoord&&(a||l||!e.ordinalMeta||(l=e),u||"ordinal"===e.type||"time"===e.type||s&&s!==e.coordDim||(u=e))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,m=0;Object(g["each"])(i,(function(e){e.coordDim===p&&m++}));var v={name:c,coordDim:p,coordDimIndex:m,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,f),y.storeDimIndex=o.ensureCalculationDimension(c,f)),r.appendCalculationDimension(v),r.appendCalculationDimension(y)):(i.push(v),i.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function ow(e){return!Lx(e.schema)}function aw(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function sw(e,t){return aw(e,t)?e.getCalculationInfo("stackResultDimension"):t}function lw(e,t){var n,i=e.get("coordinateSystem"),r=ph.get(i);return t&&t.coordSysDims&&(n=g["map"](t.coordSysDims,(function(e){var n={name:e},i=t.axisMap.get(e);if(i){var r=i.get("type");n.type=wx(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}function uw(e,t,n){var i,r;return n&&g["each"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(r=!0)})),r||null==i||(e[i].otherDims.itemName=0),i}function cw(e,t,n){n=n||{};var i,r=t.getSourceManager(),o=!1;e?(o=!0,i=tp(e)):(i=r.getSource(),o=i.sourceFormat===xd);var a=tw(t),s=lw(t,a),l=n.useEncodeDefaulter,u=g["isFunction"](l)?l:l?g["curry"](Ad,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=Kx(i,c),h=uw(d.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(d),f=rw(t,{schema:d,store:p}),m=new qx(d,t);m.setCalculationInfo(f);var v=null!=h&&dw(i)?function(e,t,n,i){return i===h?n:this.defaultDimValueGetter(e,t,n,i)}:null;return m.hasItemOption=!1,m.initData(o?i:p,null,v),m}function dw(e){if(e.sourceFormat===xd){var t=hw(e.data||[]);return!g["isArray"](Lr(t))}}function hw(e){var t=0;while(tt[1]&&(t[1]=e[1])},e.prototype.unionExtentFromData=function(e,t){this.unionExtent(e.getApproximateExtent(t))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=e),isNaN(t)||(n[1]=t)},e.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();bo(fw);var mw=fw,gw=0,vw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++gw}return e.createByAxisModel=function(t){var n=t.option,i=n.data,r=i&&Object(g["map"])(i,yw);return new e({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!Object(g["isString"])(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,t;var i=this._getOrCreateMap();return t=i.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,i.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(g["createHashMap"])(this.categories))},e}();function yw(e){return Object(g["isObject"])(e)&&null!=e.value?e.value:e+""}var _w=vw;function bw(e){return"interval"===e.type||"log"===e.type}function xw(e,t,n,i){var r={},o=e[1]-e[0],a=r.interval=mr(o/t,!0);null!=n&&ai&&(a=r.interval=i);var s=r.intervalPrecision=Mw(a),l=r.niceTickExtent=[er(Math.ceil(e[0]/a)*a,s),er(Math.floor(e[1]/a)*a,s)];return kw(l,e),r}function ww(e){var t=Math.pow(10,fr(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,er(n*t)}function Mw(e){return nr(e)+2}function Sw(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function kw(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Sw(e,0,t),Sw(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Cw(e,t){return e>=t[0]&&e<=t[1]}function Tw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Dw(e,t){return e*(t[1]-t[0])+t[0]}var Lw=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new _w({})),Object(g["isArray"])(i)&&(i=new _w({categories:Object(g["map"])(i,(function(e){return Object(g["isObject"])(e)?e.value:e}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return f(t,e),t.prototype.parse=function(e){return null==e?NaN:Object(g["isString"])(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return e=this.parse(e),Cw(e,this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return e=this._getTickNumber(this.parse(e)),Tw(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Dw(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){var e=[],t=this._extent,n=t[0];while(n<=t[1])e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);r=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(mw);mw.registerClass(Lw);var Ow=Lw,Iw=er,Aw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="interval",t._interval=0,t._intervalPrecision=2,t}return f(t,e),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return Cw(e,this._extent)},t.prototype.normalize=function(e){return Tw(e,this._extent)},t.prototype.scale=function(e){return Dw(e,this._extent)},t.prototype.setExtent=function(e,t){var n=this._extent;isNaN(e)||(n[0]=parseFloat(e)),isNaN(t)||(n[1]=parseFloat(t))},t.prototype.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),this.setExtent(t[0],t[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Mw(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:i[1];return n[1]>l&&(e?o.push({value:Iw(l+t,r)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&d0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}function Vw(e){var t=Bw(e),n=[];return Object(g["each"])(e,(function(e){var i,r=e.coordinateSystem,o=r.getBaseAxis(),a=o.getExtent();if("category"===o.type)i=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);i=l?u/d*l:u}else{var h=e.getData();i=Math.abs(a[1]-a[0])/h.count()}var p=Qi(e.get("barWidth"),i),f=Qi(e.get("barMaxWidth"),i),m=Qi(e.get("barMinWidth")||(Xw(e)?.5:1),i),g=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:i,barWidth:p,barMaxWidth:f,barMinWidth:m,barGap:g,barCategoryGap:v,axisKey:Fw(o),stackId:Rw(e)})})),$w(n)}function $w(e){var t={};Object(g["each"])(e,(function(e,n){var i=e.axisKey,r=e.bandWidth,o=t[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[i]=o;var s=e.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=e.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=e.barMaxWidth;u&&(a[s].maxWidth=u);var c=e.barMinWidth;c&&(a[s].minWidth=c);var d=e.barGap;null!=d&&(o.gap=d);var h=e.barCategoryGap;null!=h&&(o.categoryGap=h)}));var n={};return Object(g["each"])(t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(g["keys"])(i).length;o=Math.max(35-4*a,15)+"%"}var s=Qi(o,r),l=Qi(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),Object(g["each"])(i,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){i=e.width;t&&(i=Math.min(i,t)),n&&(i=Math.max(i,n)),e.width=i,u-=i+l*i,c--}else{var i=d;t&&ti&&(i=n),i!==d&&(e.width=i,u-=i+l*i,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var h,p=0;Object(g["each"])(i,(function(e,t){e.width||(e.width=d),h=e,p+=e.width*(1+l)})),h&&(p-=h.width*l);var f=-p/2;Object(g["each"])(i,(function(e,i){n[t][i]=n[t][i]||{bandWidth:r,offset:f,width:e.width},f+=e.width*(1+l)}))})),n}function Ww(e,t,n){if(e&&t){var i=e[Fw(t)];return null!=i&&null!=n?i[Rw(n)]:i}}function Gw(e,t){var n=zw(e,t),i=Vw(n);Object(g["each"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),o=Rw(e),a=i[Fw(r)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function Uw(e){return{seriesType:e,plan:Uf(),reset:function(e){if(qw(e)){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=t.getDimensionIndex(t.mapDimension(r.dim)),a=t.getDimensionIndex(t.mapDimension(i.dim)),s=e.get("showBackground",!0),l=t.mapDimension(r.dim),u=t.getCalculationInfo("stackResultDimension"),c=aw(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=r.isHorizontal(),h=Kw(i,r),p=Xw(e),f=e.get("barMinHeight")||0,m=u&&t.getDimensionIndex(u),g=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var i,r=e.count,l=p&&Yw(3*r),u=p&&s&&Yw(3*r),y=p&&Yw(r),_=n.master.getRect(),b=d?_.width:_.height,x=t.getStore(),w=0;while(null!=(i=e.next())){var M=x.get(c?m:o,i),S=x.get(a,i),k=h,C=void 0;c&&(C=+M-x.get(o,i));var T=void 0,D=void 0,L=void 0,O=void 0;if(d){var I=n.dataToPoint([M,S]);if(c){var A=n.dataToPoint([C,S]);k=A[0]}T=k,D=I[1]+v,L=I[0]-k,O=g,Math.abs(L)>>1;e[r][1]n&&(this._approxInterval=n);var o=Qw.length,a=Math.min(Zw(Qw,this._approxInterval,0,o),o-1);this._interval=Qw[a][1],this._minLevelUnit=Qw[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(g["isNumber"])(e)?e:+hr(e)},t.prototype.contain=function(e){return Cw(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Tw(this.parse(e),this._extent)},t.prototype.scale=function(e){return Dw(e,this._extent)},t.type="time",t}(Ew),Qw=[["second",uc],["minute",cc],["hour",dc],["quarter-day",6*dc],["half-day",12*dc],["day",1.2*hc],["half-week",3.5*hc],["week",7*hc],["month",31*hc],["quarter",95*hc],["half-year",pc/2],["year",pc]];function eM(e,t,n,i){var r=hr(t),o=hr(n),a=function(e){return Cc(r,e,i)===Cc(o,e,i)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},d=function(){return c()&&a("minute")},h=function(){return d()&&a("second")},p=function(){return h()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return d();case"second":return h();case"millisecond":return p()}}function tM(e,t){return e/=hc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function nM(e){var t=30*hc;return e/=t,e>6?6:e>3?3:e>2?2:1}function iM(e){return e/=dc,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function rM(e,t){return e/=t?cc:uc,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function oM(e){return mr(e,!0)}function aM(e,t,n){var i=new Date(e);switch(bc(t)){case"year":case"month":i[Pc(n)](0);case"day":i[Yc(n)](1);case"hour":i[Nc(n)](0);case"minute":i[Rc(n)](0);case"second":i[Fc(n)](0),i[Hc(n)](0)}return i.getTime()}function sM(e,t,n,i){var r=1e4,o=yc,a=0;function s(e,t,n,r,o,a,s){var l=new Date(t),u=t,c=l[r]();while(u1&&0===u&&o.unshift({value:o[0].value-h})}}for(u=0;u=i[0]&&_<=i[1]&&d++)}var b=(i[1]-i[0])/t;if(d>1.5*b&&h>b/1.5)break;if(u.push(v),d>b||e===o[p])break}c=[]}}}var x=Object(g["filter"])(Object(g["map"])(u,(function(e){return Object(g["filter"])(e,(function(e){return e.value>=i[0]&&e.value<=i[1]&&!e.notAdd}))})),(function(e){return e.length>0})),w=[],M=x.length-1;for(p=0;p0)i*=10;var o=[er(pM(t[0]/i)*i),er(hM(t[1]/i)*i)];this._interval=i,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){cM.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return e=mM(e)/mM(this.base),Cw(e,this._extent)},t.prototype.normalize=function(e){return e=mM(e)/mM(this.base),Tw(e,this._extent)},t.prototype.scale=function(e){return e=Dw(e,this._extent),fM(this.base,e)},t.type="log",t}(mw),vM=gM.prototype;function yM(e,t){return dM(e,nr(t))}vM.getMinorTicks=cM.getMinorTicks,vM.getLabel=cM.getLabel,mw.registerClass(gM);var _M=gM,bM=function(){function e(e,t,n){this._prepareParams(e,t,n)}return e.prototype._prepareParams=function(e,t,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var d=this._determinedMin,h=this._determinedMax;return null!=d&&(a=d,l=!0),null!=h&&(s=h,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[wM[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=xM[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),xM={min:"_determinedMin",max:"_determinedMax"},wM={min:"_dataMin",max:"_dataMax"};function MM(e,t,n){var i=e.rawExtentInfo;return i||(i=new bM(e,t,n),e.rawExtentInfo=i,i)}function SM(e,t){return null==t?null:Object(g["eqNaN"])(t)?NaN:e.parse(t)}function kM(e,t){var n=e.type,i=MM(e,t,e.getExtent()).calculate();e.setBlank(i.isBlank);var r=i.min,o=i.max,a=t.ecModel;if(a&&"time"===n){var s=zw("bar",a),l=!1;if(g["each"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=Vw(s),c=CM(r,o,t,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function CM(e,t,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=Ww(i,n.axis);if(void 0===a)return{min:e,max:t};var s=1/0;g["each"](a,(function(e){s=Math.min(e.offset,s)}));var l=-1/0;g["each"](a,(function(e){l=Math.max(e.offset+e.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,d=1-(s+l)/o,h=c/d-c;return t+=h*(l/u),e-=h*(s/u),{min:e,max:t}}function TM(e,t){var n=t,i=kM(e,n),r=i.extent,o=n.get("splitNumber");e instanceof _M&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(r[0],r[1]),e.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function DM(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ow({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new lM({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(mw.getClass(t)||Ew)}}function LM(e){var t=e.scale.getExtent(),n=t[0],i=t[1];return!(n>0&&i>0||n<0&&i<0)}function OM(e){var t=e.getLabelModel().get("formatter"),n="category"===e.type?e.scale.getExtent()[0]:null;return"time"===e.scale.type?function(t){return function(n,i){return e.scale.getFormattedLabel(n,i,t)}}(t):g["isString"](t)?function(t){return function(n){var i=e.scale.getLabel(n),r=t.replace("{value}",null!=i?i:"");return r}}(t):g["isFunction"](t)?function(t){return function(i,r){return null!=n&&(r=i.value-n),t(IM(e,i),r,null!=i.level?{level:i.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function IM(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function AM(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();n instanceof Ow?r=n.count():(i=n.getTicks(),r=i.length);var a,s=e.getLabelModel(),l=OM(e),u=1;r>40&&(u=Math.ceil(r/40));for(var c=0;ce[1]&&(e[1]=i[1])}))}var RM=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}();function FM(e){return pw(null,e)}var HM={isDimensionStacked:aw,enableDataStack:rw,getStackedDimension:sw};function zM(e,t){var n=t;t instanceof Wu||(n=new Wu(t));var i=DM(n);return i.setExtent(e[0],e[1]),TM(i,n),i}function BM(e){g["mixin"](e,RM)}function VM(e,t){return t=t||{},xu(e,null,null,"normal"!==t.state)}var $M=1e-8;function WM(e,t){return Math.abs(e-t)<$M}function GM(e,t,n){var i=0,r=e[0];if(!r)return!1;for(var o=1;on&&(e=r,n=a)}if(e)return KM(e.exterior);var s=this.getBoundingRect();return[s.x+s.width/2,s.y+s.height/2]},t.prototype.getBoundingRect=function(e){var t=this._rect;if(t&&!e)return t;var n=[1/0,1/0],i=[-1/0,-1/0],r=this.geometries;return Object(g["each"])(r,(function(t){"polygon"===t.type?XM(t.exterior,n,i,e):Object(g["each"])(t.points,(function(t){XM(t,n,i,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])||(n[0]=n[1]=i[0]=i[1]=0),t=new Be(n[0],n[1],i[0]-n[0],i[1]-n[1]),e||(this._rect=t),t},t.prototype.contain=function(e){var t=this.getBoundingRect(),n=this.geometries;if(!t.contain(e[0],e[1]))return!1;e:for(var i=0,r=n.length;i>1^-(1&s),l=l>>1^-(1&l),s+=r,l+=o,r=s,o=l,i.push([s/n,l/n])}return i}function oS(e,t){return e=nS(e),g["map"](g["filter"](e.features,(function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0})),(function(e){var n=e.properties,i=e.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new JM(o[0],o.slice(1)));break;case"MultiPolygon":g["each"](i.coordinates,(function(e){e[0]&&r.push(new JM(e[0],e.slice(1)))}));break;case"LineString":r.push(new QM([i.coordinates]));break;case"MultiLineString":r.push(new QM(i.coordinates))}var a=new eS(n[t||"name"],r,n.cp);return a.properties=n,a}))}function aS(e,t,n,i,r,o,a,s){var l=new Bs({style:{text:e,font:t,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var sS=qr();function lS(e){return"category"===e.type?cS(e):pS(e)}function uS(e,t){return"category"===e.type?hS(e,t):{ticks:g["map"](e.scale.getTicks(),(function(e){return e.value}))}}function cS(e){var t=e.getLabelModel(),n=dS(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function dS(e,t){var n,i,r=fS(e,"labels"),o=jM(t),a=mS(r,o);return a||(g["isFunction"](o)?n=xS(e,o):(i="auto"===o?vS(e):o,n=bS(e,i)),gS(r,o,{labels:n,labelCategoryInterval:i}))}function hS(e,t){var n,i,r=fS(e,"ticks"),o=jM(t),a=mS(r,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),g["isFunction"](o))n=xS(e,o,!0);else if("auto"===o){var s=dS(e,e.getLabelModel());i=s.labelCategoryInterval,n=g["map"](s.labels,(function(e){return e.tickValue}))}else i=o,n=bS(e,i,!0);return gS(r,o,{ticks:n,tickCategoryInterval:i})}function pS(e){var t=e.scale.getTicks(),n=OM(e);return{labels:g["map"](t,(function(t,i){return{level:t.level,formattedLabel:n(t,i),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function fS(e,t){return sS(e)[t]||(sS(e)[t]=[])}function mS(e,t){for(var n=0;n40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(i)),d=Math.abs(u*Math.sin(i)),h=0,p=0;l<=o[1];l+=s){var f=0,m=0,g=gi(n({value:l}),t.font,"center","top");f=1.3*g.width,m=1.3*g.height,h=Math.max(h,f,7),p=Math.max(p,m,7)}var v=h/c,y=p/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(v,y))),b=sS(e.model),x=e.getExtent(),w=b.lastAutoInterval,M=b.lastTickCount;return null!=w&&null!=M&&Math.abs(w-_)<=1&&Math.abs(M-a)<=1&&w>_&&b.axisExtent0===x[0]&&b.axisExtent1===x[1]?_=w:(b.lastTickCount=a,b.lastAutoInterval=_,b.axisExtent0=x[0],b.axisExtent1=x[1]),_}function _S(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function bS(e,t,n){var i=OM(e),r=e.scale,o=r.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=r.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=PM(e),h=a.get("showMinLabel")||d,p=a.get("showMaxLabel")||d;h&&u!==o[0]&&m(o[0]);for(var f=u;f<=o[1];f+=l)m(f);function m(e){var t={value:e};s.push(n?e:{formattedLabel:i(t),rawLabel:r.getLabel(t),tickValue:e})}return p&&f-l!==o[1]&&m(o[1]),s}function xS(e,t,n){var i=e.scale,r=OM(e),o=[];return g["each"](i.getTicks(),(function(e){var a=i.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:r(e),rawLabel:a,tickValue:s})})),o}var wS=[0,1],MS=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),i=Math.max(t[0],t[1]);return e>=n&&e<=i},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return rr(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&"ordinal"===i.type&&(n=n.slice(),SS(n,i.count())),Ji(e,wS,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&(n=n.slice(),SS(n,i.count()));var r=Ji(e,n,wS,t);return this.scale.scale(r)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=uS(this,t),i=n.ticks,r=Object(g["map"])(i,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return kS(this,r,o,e.clamp),r},e.prototype.getMinorTicksCoords=function(){if("ordinal"===this.scale.type)return[];var e=this.model.getModel("minorTick"),t=e.get("splitNumber");t>0&&t<100||(t=5);var n=this.scale.getMinorTicks(t),i=Object(g["map"])(n,(function(e){return Object(g["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return i},e.prototype.getViewLabels=function(){return lS(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return yS(this)},e}();function SS(e,t){var n=e[1]-e[0],i=t,r=n/i/2;e[0]+=r,e[1]-=r}function kS(e,t,n,i){var r=t.length;if(e.onBand&&!n&&r){var o,a,s=e.getExtent();if(1===r)t[0].coord=s[0],o=t[1]={coord:s[0]};else{var l=t[r-1].tickValue-t[0].tickValue,u=(t[r-1].coord-t[0].coord)/l;Object(g["each"])(t,(function(e){e.coord-=u/2}));var c=e.scale.getExtent();a=1+c[1]-t[r-1].tickValue,o={coord:t[r-1].coord+u*a},t.push(o)}var d=s[0]>s[1];h(t[0].coord,s[0])&&(i?t[0].coord=s[0]:t.shift()),i&&h(s[0],t[0].coord)&&t.unshift({coord:s[0]}),h(s[1],o.coord)&&(i?o.coord=s[1]:t.pop()),i&&h(o.coord,s[1])&&t.push({coord:s[1]})}function h(e,t){return e=er(e),t=er(t),d?e>t:er&&(r+=IS);var p=Math.atan2(s,a);if(p<0&&(p+=IS),p>=i&&p<=r||p+IS>=i&&p+IS<=r)return l[0]=c,l[1]=d,u-n;var f=n*Math.cos(i)+e,m=n*Math.sin(i)+t,g=n*Math.cos(r)+e,v=n*Math.sin(r)+t,y=(f-a)*(f-a)+(m-s)*(m-s),_=(g-a)*(g-a)+(v-s)*(v-s);return y<_?(l[0]=f,l[1]=m,Math.sqrt(y)):(l[0]=g,l[1]=v,Math.sqrt(_))}function YS(e,t,n,i,r,o,a,s){var l=r-e,u=o-t,c=n-e,d=i-t,h=Math.sqrt(c*c+d*d);c/=h,d/=h;var p=l*c+u*d,f=p/h;s&&(f=Math.min(Math.max(f,0),1)),f*=h;var m=a[0]=e+f*c,g=a[1]=t+f*d;return Math.sqrt((m-r)*(m-r)+(g-o)*(g-o))}function NS(e,t,n,i,r,o,a){n<0&&(e+=n,n=-n),i<0&&(t+=i,i=-i);var s=e+n,l=t+i,u=a[0]=Math.min(Math.max(r,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var RS=[];function FS(e,t,n){var i=NS(t.x,t.y,t.width,t.height,e.x,e.y,RS);return n.set(RS[0],RS[1]),i}function HS(e,t,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=t.data,d=e.x,h=e.y,p=0;p0){t=t/180*Math.PI,zS.fromArray(e[0]),BS.fromArray(e[1]),VS.fromArray(e[2]),Ae.sub($S,zS,BS),Ae.sub(WS,VS,BS);var n=$S.len(),i=WS.len();if(!(n<.001||i<.001)){$S.scale(1/n),WS.scale(1/i);var r=$S.dot(WS),o=Math.cos(t);if(o1&&Ae.copy(qS,VS),qS.toArray(e[1])}}}}function KS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,zS.fromArray(e[0]),BS.fromArray(e[1]),VS.fromArray(e[2]),Ae.sub($S,BS,zS),Ae.sub(WS,VS,BS);var i=$S.len(),r=WS.len();if(!(i<.001||r<.001)){$S.scale(1/i),WS.scale(1/r);var o=$S.dot(t),a=Math.cos(n);if(o=l)Ae.copy(qS,VS);else{qS.scaleAndAdd(WS,s/Math.tan(Math.PI/2-c));var d=VS.x!==BS.x?(qS.x-BS.x)/(VS.x-BS.x):(qS.y-BS.y)/(VS.y-BS.y);if(isNaN(d))return;d<0?Ae.copy(qS,BS):d>1&&Ae.copy(qS,VS)}qS.toArray(e[1])}}}}function ZS(e,t,n,i){var r="normal"===n,o=r?e:e.ensureState(n);o.ignore=t;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?e.useStyle(s):o.style=s}function JS(e,t){var n=t.smooth,i=t.points;if(i)if(e.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=j(i[0],i[1]),o=j(i[1],i[2]);if(!r||!o)return e.lineTo(i[1][0],i[1][1]),void e.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=R([],i[1],i[0],a/r),l=R([],i[1],i[2],a/o),u=R([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&w(-d/a,0,a);var g,v,y=e[0],_=e[a-1];return b(),g<0&&M(-g,.8),v<0&&M(v,.8),b(),x(g,v,1),x(v,g,-1),b(),g<0&&S(-g),v<0&&S(v),u}function b(){g=y.rect[t]-i,v=r-_.rect[t]-_.rect[n]}function x(e,t,n){if(e<0){var i=Math.min(t,-e);if(i>0){w(i*n,0,a);var r=i+e;r<0&&M(-r*n,1)}else M(-e*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--){h=o[l-1]*d;w(-h,l,a)}}}function S(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),e-=n,e<=0)return}}function ik(e,t,n,i){return nk(e,"x","width",t,n,i)}function rk(e,t,n,i){return nk(e,"y","height",t,n,i)}function ok(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Be(0,0,0,0);function i(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var r=0;r=0&&n.attr(r.oldLayoutSelect),Object(g["indexOf"])(c,"emphasis")>=0&&n.attr(r.oldLayoutEmphasis)),lu(n,l,t,s)}else if(n.attr(l),!Ou(n).valueAnimation){var d=Object(g["retrieve2"])(n.style.opacity,1);n.style.opacity=0,uu(n,{style:{opacity:d}},t,s)}if(r.oldLayout=l,n.states.select){var h=r.oldLayoutSelect={};hk(h,l,pk),hk(h,n.states.select,pk)}if(n.states.emphasis){var p=r.oldLayoutEmphasis={};hk(p,l,pk),hk(p,n.states.emphasis,pk)}Au(n,s,u,t,t)}if(i&&!i.ignore&&!i.invisible){r=dk(i),o=r.oldLayout;var f={points:i.shape.points};o?(i.attr({shape:o}),lu(i,{shape:f},t)):(i.setShape(f),i.style.strokePercent=0,uu(i,{style:{strokePercent:1}},t)),r.oldLayout=f}},e}(),mk=fk,gk=qr();function vk(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var i=gk(t).labelManager;i||(i=gk(t).labelManager=new mk),i.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var i=gk(t).labelManager;n.updatedSeries.forEach((function(e){i.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),i.updateLayoutConfig(t),i.layout(t),i.processLabelsOverall()}))}function yk(e,t,n){var i=hi["d"].createCanvas(),r=t.getWidth(),o=t.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",e)),i.width=r*n,i.height=o*n,i}fx(vk);var _k=function(e){function t(t,n,i){var r,o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Xn,"string"===typeof t?r=yk(t,n,i):g["isObject"](t)&&(r=t,t=r.id),o.id=t,o.dom=r;var a=r.style;return a&&(g["disableUserSelect"](r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}return f(t,e),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=yk("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,t,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Be(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new Be(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&d.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var b=h.dpr,x=0;x0&&e>i[0]){for(s=0;se)break;a=n[i[s]]}if(i.splice(s+1,0,e),n[e]=t,!t.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(t.dom,l.nextSibling):o.appendChild(t.dom)}else o.firstChild?o.insertBefore(t.dom,o.firstChild):o.appendChild(t.dom);t.__painter=this}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,i=0;i0?Mk:0),this._needsManuallyCompositing),u.__builtin__||g["logError"]("ZLevel "+l+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==o&&(u.__dirty=!0),u.__startIndex=o,u.incremental?u.__drawIndex=-1:u.__drawIndex=o,t(o),a=u),i.__dirty&dt&&!i.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=o))}t(o),this.eachBuiltinLayer((function(e,t){!e.__used&&e.getElementCount()>0&&(e.__dirty=!0,e.__startIndex=e.__endIndex=e.__drawIndex=0),e.__dirty&&e.__drawIndex<0&&(e.__drawIndex=e.__startIndex)}))},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(e){e.clear()},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e,g["each"](this._layers,(function(e){e.setUnpainted()}))},e.prototype.configLayer=function(e,t){if(t){var n=this._layerConfig;n[e]?g["merge"](n[e],t,!0):n[e]=t;for(var i=0;i=Ek:-l>=Ek),h=l>0?l%Ek:l%Ek+Ek,p=!1;p=!!d||!Object(Qt["j"])(c)&&h>=Ak===!!u;var f=e+n*Ik(o),m=t+i*Ok(o);this._start&&this._add("M",f,m);var g=Math.round(r*jk);if(d){var v=1/this._p,y=(u?1:-1)*(Ek-v);this._add("A",n,i,g,1,+u,e+n*Ik(o+y),t+i*Ok(o+y)),v>.01&&this._add("A",n,i,g,0,+u,f,m)}else{var _=e+n*Ik(a),b=t+i*Ok(a);this._add("A",n,i,g,+p,+u,_,b)}},e.prototype.rect=function(e,t,n,i){this._add("M",e,t),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,i,r,o,a,s,l){for(var u=[],c=this._p,d=1;d"}function Zk(e){return""}function Jk(e,t){t=t||{};var n=t.newline?"\n":"";function i(e){var t=e.children,r=e.tag,o=e.attrs;return Kk(r,o)+oe(e.text)+(t?""+n+Object(g["map"])(t,(function(e){return i(e)})).join(n)+n:"")+Zk(r)}return i(e)}function Qk(e,t,n){n=n||{};var i=n.newline?"\n":"",r=" {"+i,o=i+"}",a=Object(g["map"])(Object(g["keys"])(e),(function(t){return t+r+Object(g["map"])(Object(g["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(i)+o})).join(i),s=Object(g["map"])(Object(g["keys"])(t),(function(e){return"@keyframes "+e+r+Object(g["map"])(Object(g["keys"])(t[e]),(function(n){return n+r+Object(g["map"])(Object(g["keys"])(t[e][n]),(function(i){var r=t[e][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}function eC(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function tC(e,t,n,i){return Xk("svg","root",{width:e,height:t,xmlns:$k,"xmlns:xlink":Wk,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+e+" "+t},n)}var nC={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},iC="transform-origin";function rC(e,t,n){var i=Object(g["extend"])({},e.shape);Object(g["extend"])(i,t),e.buildPath(n,i);var r=new Yk;return r.reset(Object(Qt["f"])(e)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function oC(e,t){var n=t.originX,i=t.originY;(n||i)&&(e[iC]=n+"px "+i+"px")}var aC={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function sC(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function lC(e,t,n){var i,r,o=e.shape.paths,a={};if(Object(g["each"])(o,(function(e){var t=eC(n.zrId);t.animation=!0,cC(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(g["keys"])(o),u=l.length;if(u){r=l[u-1];var c=o[r];for(var d in c){var h=c[d];a[d]=a[d]||{d:""},a[d].d+=h.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){t.d=!1;var s=sC(a,n);return i.replace(r,s)}}function uC(e){return Object(g["isString"])(e)?nC[e]?"cubic-bezier("+nC[e]+")":Xt(e)?e:"":""}function cC(e,t,n,i){var r=e.animators,o=r.length,a=[];if(e instanceof dg){var s=lC(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length){var O=sC(c,n);return O+" "+r[0]+" both"}}for(var v in l){s=m(l[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}var dC=Math.round;function hC(e){return e&&Object(g["isString"])(e.src)}function pC(e){return e&&Object(g["isFunction"])(e.toDataURL)}function fC(e,t,n,i){Vk((function(r,o){var a="fill"===r||"stroke"===r;a&&Object(Qt["k"])(o)?DC(t,e,r,i):a&&Object(Qt["n"])(o)?LC(n,e,r,i):e[r]=o}),t,n,!1),TC(n,e,i)}function mC(e){return Object(Qt["j"])(e[0]-1)&&Object(Qt["j"])(e[1])&&Object(Qt["j"])(e[2])&&Object(Qt["j"])(e[3]-1)}function gC(e){return Object(Qt["j"])(e[4])&&Object(Qt["j"])(e[5])}function vC(e,t,n){if(t&&(!gC(t)||!mC(t))){var i=n?10:1e4;e.transform=mC(t)?"translate("+dC(t[4]*i)/i+" "+dC(t[5]*i)/i+")":Object(Qt["e"])(t)}}function yC(e,t,n){for(var i=e.points,r=[],o=0;ou?(a=null==n[h+1]?null:n[h+1].elm,GC(e,a,n,l,h)):UC(e,t,s,u))}function KC(e,t){var n=t.elm=e.elm,i=e.children,r=t.children;e!==t&&(qC(e,t),zC(t.text)?BC(i)&&BC(r)?i!==r&&XC(n,i,r):BC(r)?(BC(e.text)&&NC(n,""),GC(n,null,r,0,r.length-1)):BC(i)?UC(n,i,0,i.length-1):BC(e.text)&&NC(n,""):e.text!==t.text&&(BC(i)&&UC(n,i,0,i.length-1),NC(n,t.text)))}function ZC(e,t){if($C(e,t))KC(e,t);else{var n=e.elm,i=PC(n);WC(t),null!==i&&(AC(i,t.elm,YC(n)),UC(i,[e],0,0))}return t}var JC=0,QC=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=eT("refreshHover"),this.configLayer=eT("configLayer"),this.storage=t,this._opts=n=Object(g["extend"])({},n),this.root=e,this._id="zr"+JC++,this._oldVNode=tC(n.width,n.height),e&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=qk("svg");qC(null,this._oldVNode),i.appendChild(r),e.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",ZC(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return CC(e,eC(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,r=this._height,o=eC(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress;var a=[];if(n&&"none"!==n){var s=Object(Qt["p"])(n),l=s.color,u=s.opacity;this._bgVNode=Xk("rect","bg",{width:i,height:r,x:"0",y:"0",id:"0",fill:l,"fill-opacity":u}),a.push(this._bgVNode)}else this._bgVNode=null;var c=e.compress?null:this._mainVNode=Xk("g","main",{},[]);this._paintList(t,o,c?c.children:a),c&&a.push(c);var d=Object(g["map"])(Object(g["keys"])(o.defs),(function(e){return o.defs[e]}));if(d.length&&a.push(Xk("defs","defs",{},d)),e.animation){var h=Qk(o.cssNodes,o.cssAnims,{newline:!0});if(h){var p=Xk("style","stl",{},[],h);a.push(p)}}return tC(i,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},Jk(this.renderToVNode({animation:Object(g["retrieve2"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(g["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(Qt["p"])(e),i=n.color,r=n.opacity;t.elm.setAttribute("fill",i),r<1&&t.elm.setAttribute("fill-opacity",r)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var i,r,o=e.length,a=[],s=0,l=0,u=0;u=0;f--)if(d&&r&&d[f]===r[f])break;for(var m=p-1;m>f;m--)s--,i=a[s-1];for(var g=f+1;g-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),t},t.type="series.line",t.dependencies=["grid","polar"],t.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:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}($f),rT=iT;function oT(e,t){var n=e.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=bp(e,t,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(t[o])}return i.join(" ")}var sT=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.updateData(t,n,i,r),o}return f(t,e),t.prototype._createSymbol=function(e,t,n,i,r){this.removeAll();var o=Cy(e,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=lT,this._symbolType=e,this.add(o)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Dl(this.childAt(0))},t.prototype.downplay=function(){Ll(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?"move":n.cursor},t.prototype.updateData=function(e,n,i,r){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var c=e.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,e,n,s,c)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(h):lu(d,h,a,n),fu(d)}if(this._updateCommon(e,n,s,i,r),l){d=this.childAt(0);if(!u){h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,uu(d,h,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,i,r){var o,a,s,l,u,c,d,h,p,f=this.childAt(0),m=e.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,d=i.labelStatesModels,h=i.hoverScale,p=i.cursorStyle,c=i.emphasisDisabled),!i||e.hasItemOption){var v=i&&i.itemModel?i.itemModel:e.getItemModel(t),y=v.getModel("emphasis");o=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),d=bu(v),h=y.getShallow("scale"),p=v.getShallow("cursor")}var _=e.getItemVisual(t,"symbolRotate");f.attr("rotation",(_||0)*Math.PI/180||0);var b=Dy(e.getItemVisual(t,"symbolOffset"),n);b&&(f.x=b[0],f.y=b[1]),p&&f.attr("cursor",p);var x=e.getItemVisual(t,"style"),w=x.fill;if(f instanceof ms){var M=f.style;f.useStyle(Object(g["extend"])({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},x))}else f.__isEmptyBrush?f.useStyle(Object(g["extend"])({},x)):f.useStyle(x),f.style.decal=null,f.setColor(w,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=e.getItemVisual(t,"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;function T(t){return C?e.getName(t):oT(e,t)}_u(f,d,{labelFetcher:m,labelDataIndex:t,defaultText:T,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=f.ensureState("emphasis");D.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var L=null==h||!0===h?Math.max(1.1,3/this._sizeY):isFinite(h)&&h>0?+h:1;D.scaleX=this._sizeX*L,D.scaleY=this._sizeY*L,this.setSymbolScale(1),Ul(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var i=this.childAt(0),r=Vs(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&du(a,{style:{opacity:0}},t,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();du(i,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:r,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Ty(e.getItemVisual(t,"symbolSize"))},t}(Ni);function lT(e,t){this.parent.drift(e,t)}var uT=sT;function cT(e,t,n,i){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function dT(e){return null==e||Object(g["isObject"])(e)||(e={isIgnore:e}),e||{}}function hT(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:bu(t),cursorStyle:t.get("cursor")}}var pT=function(){function e(e){this.group=new Ni,this._SymbolCtor=e||uT}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=dT(t);var n=this.group,i=e.hostModel,r=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=hT(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};r||n.removeAll(),e.diff(r).add((function(i){var r=u(i);if(cT(e,r,i,t)){var a=new o(e,i,s,l);a.setPosition(r),e.setItemGraphicEl(i,a),n.add(a)}})).update((function(c,d){var h=r.getItemGraphicEl(d),p=u(c);if(cT(e,p,c,t)){var f=e.getItemVisual(c,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==f)n.remove(h),h=new o(e,c,s,l),h.setPosition(p);else{h.updateData(e,c,s,l);var g={x:p[0],y:p[1]};a?h.attr(g):lu(h,g,i)}n.add(h),e.setItemGraphicEl(c,h)}else n.remove(h)})).remove((function(e){var t=r.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),i)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var i=e._getSymbolPoint(n);t.setPosition(i),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=hT(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function i(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=dT(n);for(var r=e.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}function vT(e,t,n,i){var r=NaN;e.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,i),a[1-o]=r,t.dataToPoint(a)}function yT(e,t){var n=[];return t.diff(e).add((function(e){n.push({cmd:"+",idx:e})})).update((function(e,t){n.push({cmd:"=",idx:t,idx1:e})})).remove((function(e){n.push({cmd:"-",idx:e})})).execute(),n}function _T(e,t,n,i,r,o,a,s){for(var l=yT(e,t),u=[],c=[],d=[],h=[],p=[],f=[],m=[],g=mT(r,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=r||m<0)break;if(wT(v,y)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](v,y),d=v,h=y;else{var _=v-u,b=y-c;if(_*_+b*b<.5){m+=o;continue}if(a>0){var x=m+o,w=t[2*x],M=t[2*x+1];while(w===v&&M===y&&g=i||wT(w,M))p=v,f=y;else{C=w-u,T=M-c;var O=v-u,I=w-v,A=y-c,E=M-y,j=void 0,P=void 0;if("x"===s){j=Math.abs(O),P=Math.abs(I);var Y=C>0?1:-1;p=v-Y*j*a,f=y,D=v+Y*P*a,L=y}else if("y"===s){j=Math.abs(A),P=Math.abs(E);var N=T>0?1:-1;p=v,f=y-N*j*a,D=v,L=y+N*P*a}else j=Math.sqrt(O*O+A*A),P=Math.sqrt(I*I+E*E),k=P/(P+j),p=v-C*a*(1-k),f=y-T*a*(1-k),D=v+C*a*k,L=y+T*a*k,D=bT(D,xT(w,v)),L=bT(L,xT(M,y)),D=xT(D,bT(w,v)),L=xT(L,bT(M,y)),C=D-v,T=L-y,p=v-C*j/P,f=y-T*j/P,p=bT(p,xT(u,v)),f=bT(f,xT(c,y)),p=xT(p,bT(u,v)),f=xT(f,bT(c,y)),C=v-p,T=y-f,D=v+C*P/j,L=y+T*P/j}e.bezierCurveTo(d,h,p,f,v,y),d=D,h=L}else e.lineTo(v,y)}u=v,c=y,m+=o}return g}var ST=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),kT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return f(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ST},t.prototype.buildPath=function(e,t){var n=t.points,i=0,r=n.length/2;if(t.connectNulls){for(;r>0;r--)if(!wT(n[2*r-2],n[2*r-1]))break;for(;i=0){var y=s?(h-i)*v+i:(d-n)*v+n;return s?[e,y]:[y,e]}n=d,i=h;break;case a.C:d=o[u++],h=o[u++],p=o[u++],f=o[u++],m=o[u++],g=o[u++];var _=s?Yt(n,d,p,m,e,l):Yt(i,h,f,g,e,l);if(_>0)for(var b=0;b<_;b++){var x=l[b];if(x<=1&&x>=0){y=s?jt(i,h,f,g,x):jt(n,d,p,m,x);return s?[e,y]:[y,e]}}n=m,i=g;break}}},t}(ss),CT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t}(ST),TT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return f(t,e),t.prototype.getDefaultShape=function(){return new CT},t.prototype.buildPath=function(e,t){var n=t.points,i=t.stackedOnPoints,r=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!wT(n[2*o-2],n[2*o-1]))break;for(;rt){i?r.push(a(i,l,t)):n&&r.push(a(n,l,0),a(n,l,t));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}function FT(e,t,n){var i=e.getVisual("visualMeta");if(i&&i.length&&e.count()&&"cartesian2d"===t.type){for(var r,o,a=i.length-1;a>=0;a--){var s=e.getDimensionInfo(i[a].dimension);if(r=s&&s.coordDim,"x"===r||"y"===r){o=i[a];break}}if(o){var l=t.getAxis(r),u=g["map"](o.stops,(function(e){return{coord:l.toGlobalCoord(l.dataToCoord(e.value)),color:e.color}})),c=u.length,d=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),d.reverse());var h=RT(u,"x"===r?n.getWidth():n.getHeight()),p=h.length;if(!p&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var f=10,m=h[0].coord-f,v=h[p-1].coord+f,y=v-m;if(y<.001)return"transparent";g["each"](h,(function(e){e.offset=(e.coord-m)/y})),h.push({offset:p?h[p-1].offset:.5,color:d[1]||"transparent"}),h.unshift({offset:p?h[0].offset:.5,color:d[0]||"transparent"});var _=new mg(0,0,0,0,h,!0);return _[r]=m,_[r+"2"]=v,_}}}function HT(e,t,n){var i=e.get("showAllSymbol"),r="auto"===i;if(!i||r){var o=n.getAxesByScale("ordinal")[0];if(o&&(!r||!zT(o,t))){var a=t.mapDimension(o.dim),s={};return g["each"](o.getViewLabels(),(function(e){var t=o.scale.getRawOrdinalNumber(e.tickValue);s[t]=1})),function(e){return!s.hasOwnProperty(t.get(a,e))}}}}function zT(e,t){var n=e.getExtent(),i=Math.abs(n[1]-n[0])/e.scale.count();isNaN(i)&&(i=0);for(var r=t.count(),o=Math.max(1,Math.round(r/5)),a=0;ai)return!1;return!0}function BT(e,t){return isNaN(e)||isNaN(t)}function VT(e){for(var t=e.length/2;t>0;t--)if(!BT(e[2*t-2],e[2*t-1]))break;return t-1}function $T(e,t){return[e[2*t],e[2*t+1]]}function WT(e,t,n){for(var i,r,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=t||i>=t&&r<=t){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(t-i)/(r-i)}}function GT(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var P=p.getState("emphasis").style;P.lineWidth=+p.style.lineWidth+1}Vs(p).seriesIndex=e.seriesIndex,Ul(p,A,E,j);var Y=PT(e.get("smooth")),N=e.get("smoothMonotone");if(p.setShape({smooth:Y,smoothMonotone:N,connectNulls:M}),f){var R=a.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(g["defaults"](l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(F=PT(R.get("smooth"))),f.setShape({smooth:Y,stackedOnSmooth:F,smoothMonotone:N,connectNulls:M}),Zl(f,e,"areaStyle"),Vs(f).seriesIndex=e.seriesIndex,Ul(f,A,E,j)}var H=function(e){i._changePolyState(e)};a.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=H)})),this._polyline.onHoverStateChange=H,this._data=a,this._coordSys=r,this._stackedOnPoints=x,this._points=u,this._step=T,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,p),f&&this.packEventData(e,f))},t.prototype.packEventData=function(e,t){Vs(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,i){var r=e.getData(),o=Ur(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=e.get("zlevel")||0,d=e.get("z")||0;s=new uT(r,o),s.x=l,s.y=u,s.setZ(c,d);var h=s.getSymbolPath().getTextContent();h&&(h.zlevel=c,h.z=d,h.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else pv.prototype.highlight.call(this,e,t,n,i)},t.prototype.downplay=function(e,t,n,i){var r=e.getData(),o=Ur(r,i);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 pv.prototype.downplay.call(this,e,t,n,i)},t.prototype._changePolyState=function(e){var t=this._polygon;_l(this._polyline,e),t&&_l(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new kT({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new TT({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var i,r,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(i=o.isHorizontal(),r=!1):"polar"===t.type&&(i="angle"===o.dim,r=!0);var s=e.hostModel,l=s.get("animationDuration");g["isFunction"](l)&&(l=l(null));var u=s.get("animationDelay")||0,c=g["isFunction"](u)?u(null):u;e.eachItemGraphicEl((function(e,o){var s=e;if(s){var d=[e.x,e.y],h=void 0,p=void 0,f=void 0;if(n)if(r){var m=n,v=t.pointToCoord(d);i?(h=m.startAngle,p=m.endAngle,f=-v[1]/180*Math.PI):(h=m.r0,p=m.r,f=v[0])}else{var y=n;i?(h=y.x,p=y.x+y.width,f=e.x):(h=y.y+y.height,p=y.y,f=e.y)}var _=p===h?0:(f-h)/(p-h);a&&(_=1-_);var b=g["isFunction"](u)?u(o):l*_+c,x=s.getSymbolPath(),w=x.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),w&&w.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}}))},t.prototype._initOrUpdateEndLabel=function(e,t,n){var i=e.getModel("endLabel");if(GT(e)){var r=e.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new Bs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=VT(a);l>=0&&(_u(o,bu(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?aT(r,n):oT(r,e)},enableTextSetter:!0},qT(i,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),h=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),m=f.isHorizontal(),g=f.inverse,v=t.shape,y=g?m?v.x:v.y+v.height:m?v.x+v.width:v.y,_=(m?p:0)*(g?-1:1),b=(m?0:-p)*(g?-1:1),x=m?"x":"y",w=WT(u,y,x),M=w.range,S=M[1]-M[0],k=void 0;if(S>=1){if(S>1&&!d){var C=$T(u,M[0]);s.attr({x:C[0]+_,y:C[1]+b}),r&&(k=c.getRawValue(M[0]))}else{C=l.getPointOn(y,x);C&&s.attr({x:C[0]+_,y:C[1]+b});var T=c.getRawValue(M[0]),D=c.getRawValue(M[1]);r&&(k=oo(n,h,T,D,w.t))}i.lastFrameIndex=M[0]}else{var L=1===e||i.lastFrameIndex>0?M[0]:0;C=$T(u,L);r&&(k=c.getRawValue(L)),s.attr({x:C[0]+_,y:C[1]+b})}r&&Ou(s).setLabelText(k)}},t.prototype._doUpdateAnimation=function(e,t,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=_T(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=c.current,h=c.stackedOnCurrent,p=c.next,f=c.stackedOnNext;if(r&&(d=NT(c.current,n,r,a),h=NT(c.stackedOnCurrent,n,r,a),p=NT(c.next,n,r,a),f=NT(c.stackedOnNext,n,r,a)),jT(d,p)>3e3||l&&jT(h,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=d;var m={shape:{points:p}};c.current!==d&&(m.shape.__points=c.next),s.stopAnimation(),lu(s,m,u),l&&(l.setShape({points:d,stackedOnPoints:h}),l.stopAnimation(),lu(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var g=[],v=c.status,y=0;yt&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),h=Math.round(a/d);if(isFinite(h)&&h>1){"lttb"===r&&e.setData(i.lttbDownSample(i.mapDimension(l.dim),1/h));var p=void 0;Object(g["isString"])(r)?p=JT[r]:Object(g["isFunction"])(r)&&(p=r),p&&e.setData(i.downSample(i.mapDimension(l.dim),1/h,p,QT))}}}}}function tD(e){e.registerChartView(KT),e.registerSeriesModel(rT),e.registerLayout(ZT("line",!0)),e.registerVisual({seriesType:"line",reset:function(e){var t=e.getData(),n=e.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual("style").fill),t.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,eD("line"))}var nD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.getInitialData=function(e,t){return pw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var t=this.coordinateSystem;if(t&&t.clampData){var n=t.dataToPoint(t.clampData(e)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return n[a]+=r+o/2,n}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}($f);$f.registerClass(nD);var iD=nD,rD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.getInitialData=function(){return pw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),t=this.get("largeThreshold");return t>e&&(e=t),e},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Ku(iD.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(iD),oD=rD,aD=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),sD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return f(t,e),t.prototype.getDefaultShape=function(){return new aD},t.prototype.buildPath=function(e,t){var n=t.cx,i=t.cy,r=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-r),s=r+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,h=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function dD(e,t,n){return t*Math.sin(e)*(n?-1:1)}function hD(e,t,n){return t*Math.cos(e)*(n?1:-1)}var pD=Math.max,fD=Math.min;function mD(e,t){var n=e.getArea&&e.getArea();if(IT(e,"cartesian2d")){var i=e.getBaseAxis();if("category"!==i.type||!i.onBand){var r=t.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}var gD=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return f(t,e),t.prototype.render=function(e,t,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var r=e.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,i){var r,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=_D(e,l);d&&this._enableRealtimeSort(d,a,n);var h=e.get("clip",!0)||d,p=mD(l,a);o.removeClipPath();var f=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("borderRadius")||0,y=[],_=this._backgroundEls,b=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(e){var t=kD[l.type](a,e),n=YD(l,r,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),i=kD[l.type](a,t,n);if(m&&w(t),a.hasValue(t)&&SD[l.type](i)){var s=!1;h&&(s=vD[l.type](p,i));var g=yD[l.type](e,a,t,i,r,c,u.model,!1,f);d&&(g.forceLabelAnimation=!0),DD(g,a,t,n,i,e,r,"polar"===l.type),b?g.attr({shape:i}):d?bD(d,c,g,i,t,r,!1,!1):uu(g,{shape:i},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}})).update((function(t,n){var i=a.getItemModel(t),M=kD[l.type](a,t,i);if(m){var S=void 0;0===_.length?S=w(n):(S=_[n],S.useStyle(g.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",v),y[t]=S);var k=kD[l.type](a,t),C=PD(r,k,l);lu(S,{shape:C},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&SD[l.type](M)){var D=!1;if(h&&(D=vD[l.type](p,M),D&&o.remove(T)),T?fu(T):T=yD[l.type](e,a,t,M,r,c,u.model,!!T,f),d&&(T.forceLabelAnimation=!0),x){var L=T.getTextContent();if(L){var O=Ou(L);null!=O.prevValue&&(O.prevValue=O.value)}}else DD(T,a,t,i,M,e,r,"polar"===l.type);b?T.attr({shape:M}):d?bD(d,c,T,M,t,r,!0,x):lu(T,{shape:M},e,t,null),a.setItemGraphicEl(t,T),T.ignore=D,o.add(T)}else o.remove(T)})).remove((function(t){var n=s.getItemGraphicEl(t);n&&pu(n,e,t)})).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Ni);M.removeAll();for(var S=0;So)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(e.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,i){if(this._isOrderChangedWithinSameData(e,t,n)){var r=this._dataSort(e,n,t);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},t.prototype._dispatchInitSort=function(e,t,n){var i=t.baseAxis,r=this._dataSort(e,i,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(t){pu(t,e,Vs(t).dataIndex)}))):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(pv),vD={cartesian2d:function(e,t){var n=t.width<0?-1:1,i=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height);var r=e.x+e.width,o=e.y+e.height,a=pD(t.x,e.x),s=fD(t.x+t.width,r),l=pD(t.y,e.y),u=fD(t.y+t.height,o),c=sr?s:a,t.y=d&&l>o?u:l,t.width=c?0:s-a,t.height=d?0:u-l,n<0&&(t.x+=t.width,t.width=-t.width),i<0&&(t.y+=t.height,t.height=-t.height),c||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var i=t.r;t.r=t.r0,t.r0=i}var r=fD(t.r,e.r),o=pD(t.r0,e.r0);t.r=r,t.r0=o;var a=r-o<0;if(n<0){i=t.r;t.r=t.r0,t.r0=i}return a}},yD={cartesian2d:function(e,t,n,i,r,o,a,s,l){var u=new Ss({shape:Object(g["extend"])({},i),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=r?"height":"width";c[d]=0}return u},polar:function(e,t,n,i,r,o,a,s,l){var u=!r&&l?lD:Hm,c=new u({shape:i,z2:1});c.name="item";var d=TD(r);if(c.calculateTextPosition=uD(d,{isRoundCap:u===lD}),o){var h=c.shape,p=r?"r":"endAngle",f={};h[p]=r?0:i.startAngle,f[p]=i[p],(s?lu:uu)(c,{shape:f},o)}return c}};function _D(e,t){var n=e.get("realtimeSort",!0),i=t.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===t.type)return{baseAxis:i,otherAxis:t.getOtherAxis(i)}}function bD(e,t,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?lu:uu)(n,{shape:l},t,r,null);var c=t?e.baseAxis.model:null;(a?lu:uu)(n,{shape:u},c,r)}function xD(e,t){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(e,t,n){var i=e.getItemLayout(t);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function CD(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function TD(e){return function(e){var t=e?"Arc":"Angle";return function(e){switch(e){case"start":case"insideStart":case"end":case"insideEnd":return e+t;default:return e}}}(e)}function DD(e,t,n,i,r,o,a,s){var l=t.getItemVisual(n,"style");s||e.setShape("r",i.get(["itemStyle","borderRadius"])||0),e.useStyle(l);var u=i.getShallow("cursor");u&&e.attr("cursor",u);var c=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",d=bu(i);_u(e,d,{labelFetcher:o,labelDataIndex:n,defaultText:oT(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var h=e.getTextContent();if(s&&h){var p=i.get(["label","position"]);e.textConfig.inside="middle"===p||null,cD(e,"outside"===p?c:p,TD(a),i.get(["label","rotate"]))}Iu(h,d,o.getRawValue(n),(function(e){return aT(t,e)}));var f=i.getModel(["emphasis"]);Ul(e,f.get("focus"),f.get("blurScope"),f.get("disabled")),Zl(e,i),CD(r)&&(e.style.fill="none",e.style.stroke="none",Object(g["each"])(e.states,(function(e){e.style&&(e.style.fill=e.style.stroke="none")})))}function LD(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var i=e.get(["itemStyle","borderWidth"])||0,r=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(i,r,o)}var OD=function(){function e(){}return e}(),ID=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return f(t,e),t.prototype.getDefaultShape=function(){return new OD},t.prototype.buildPath=function(e,t){for(var n=t.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function jD(e,t,n){for(var i=e.baseDimIdx,r=1-i,o=e.shape.points,a=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,d=o.length/3;c=s[0]&&t<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function PD(e,t,n){if(IT(n,"cartesian2d")){var i=t,r=n.getArea();return{x:e?i.x:r.x,y:e?r.y:i.y,width:e?i.width:r.width,height:e?r.height:i.height}}r=n.getArea();var o=t;return{cx:r.cx,cy:r.cy,r0:e?r.r0:o.r0,r:e?r.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function YD(e,t,n){var i="polar"===e.type?Hm:Ss;return new i({shape:PD(t,n,e),silent:!0,z2:0})}var ND=gD;function RD(e){e.registerChartView(ND),e.registerSeriesModel(oD),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,g["curry"](Gw,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Uw("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,eD("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},(function(e,t){var n=e.componentType||"series";t.eachComponent({mainType:n,query:e},(function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)}))}))}var FD=2*Math.PI,HD=Math.PI/180;function zD(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function BD(e,t){var n=zD(e,t),i=e.get("center"),r=e.get("radius");g["isArray"](r)||(r=[0,r]),g["isArray"](i)||(i=[i,i]);var o,a,s=Qi(n.width,t.getWidth()),l=Qi(n.height,t.getHeight()),u=Math.min(s,l),c=Qi(r[0],u/2),d=Qi(r[1],u/2),h=e.coordinateSystem;if(h){var p=h.dataToPoint(i);o=p[0]||0,a=p[1]||0}else o=Qi(i[0],s)+n.x,a=Qi(i[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function VD(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),i=t.mapDimension("value"),r=zD(e,n),o=BD(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*HD,d=e.get("minAngle")*HD,h=0;t.each(i,(function(e){!isNaN(e)&&h++}));var p=t.getSum(i),f=Math.PI/(p||h)*2,m=e.get("clockwise"),g=e.get("roseType"),v=e.get("stillShowZeroSum"),y=t.getDataExtent(i);y[0]=0;var _=FD,b=0,x=c,w=m?1:-1;if(t.setLayout({viewRect:r,r:l}),t.each(i,(function(e,n){var i;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:m,cx:a,cy:s,r0:u,r:g?NaN:l});else{i="area"!==g?0===p&&v?f:e*f:FD/h,in?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*r,h=i+l.len,f=Math.abs(d)e.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var m=i.getBoundingRect();o.width=m.width;var g=(i.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-d)/2}}}function XD(e){return"center"===e.position}function KD(e){var t,n,i=e.getData(),r=[],o=!1,a=(e.get("minShowLabelAngle")||0)*WD,s=i.getLayout("viewRect"),l=i.getLayout("r"),u=s.width,c=s.x,d=s.y,h=s.height;function p(e){e.ignore=!0}function f(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}i.each((function(e){var s=i.getItemGraphicEl(e),d=s.shape,h=s.getTextContent(),m=s.getTextGuideLine(),v=i.getItemModel(e),y=v.getModel("label"),_=y.get("position")||v.get(["emphasis","label","position"]),b=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=Qi(y.get("edgeDistance"),u),M=y.get("bleedMargin"),S=v.getModel("labelLine"),k=S.get("length");k=Qi(k,u);var C=S.get("length2");if(C=Qi(C,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":A>0?"left":"right"}var z=Math.PI,B=0,V=y.get("rotate");if(Object(g["isNumber"])(V))B=V*(z/180);else if("center"===_)B=0;else if("radial"===V||!0===V){var $=A<0?-I+z:-I;B=$}else if("tangential"===V&&"outside"!==_&&"outer"!==_){var W=Math.atan2(A,E);W<0&&(W=2*z+W);var G=E>0;G&&(W=z+W),B=W-z}if(o=!!B,h.x=T,h.y=D,h.rotation=B,h.setStyle({verticalAlign:"middle"}),j){h.setStyle({align:O});var U=h.states.select;U&&(U.x+=h.x,U.y+=h.y)}else{var q=h.getBoundingRect().clone();q.applyTransform(h.getComputedTransform());var X=(h.style.margin||0)+2.1;q.y-=X/2,q.height+=X,r.push({label:h,labelLine:m,position:_,len:k,len2:C,minTurnAngle:S.get("minTurnAngle"),maxSurfaceAngle:S.get("maxSurfaceAngle"),surfaceNormal:new Ae(A,E),linePoints:L,textAlign:O,labelDistance:b,labelAlignTo:x,edgeDistance:w,bleedMargin:M,rect:q,unconstrainedWidth:q.width,labelStyleWidth:h.style.width})}s.setTextConfig({inside:j})}})),!o&&e.get("avoidLabelOverlap")&&UD(r,t,n,l,u,h,c,d);for(var m=0;m0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=i.r0}},t.type="pie",t}(pv),eL=QD;function tL(e,t,n){t=Object(g["isArray"])(t)&&{coordDimensions:t}||Object(g["extend"])({encodeDefine:e.getEncode()},t);var i=e.getSource(),r=Kx(i,t).dimensions,o=new qx(r,e);return o.initData(i,n),o}var nL=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){var t=this._getRawData();return t.indexOfName(e)>=0},e.prototype.indexOfName=function(e){var t=this._getDataWithEncodedVisual();return t.indexOfName(e)},e.prototype.getItemVisual=function(e,t){var n=this._getDataWithEncodedVisual();return n.getItemVisual(e,t)},e}(),iL=nL,rL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iL(g["bind"](this.getData,this),g["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){var e=tL(this,{coordDimensions:["value"],encodeDefaulter:g["curry"](Ed,this)}),t=[];return e.each(e.mapDimension("value"),(function(e){t.push(e)})),this.seats=ar(t,e.hostModel.get("percentPrecision")),e},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.call(this,t);return n.percent=this.seats[t],n.$vars.push("percent"),n},t.prototype._defaultLabelLine=function(e){Tr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}($f),oL=rL;function aL(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),i=n.get(t,e);return!(Object(g["isNumber"])(i)&&!isNaN(i)&&i<0)}))}}}function sL(e){e.registerChartView(eL),e.registerSeriesModel(oL),uy("pie",e.registerAction),e.registerLayout(Object(g["curry"])(VD,"pie")),e.registerProcessor($D("pie")),e.registerProcessor(aL("pie"))}var lL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return f(t,e),t.prototype.getInitialData=function(e,t){return pw(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,t,n){return n.point(t.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}($f),uL=lL,cL=4,dL=function(){function e(){}return e}(),hL=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return f(t,e),t.prototype.getDefaultShape=function(){return new dL},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,i=t.points,r=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&r[0]=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(e>=u&&t>=c&&e<=u+o&&t<=c+a)return s}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,i=t.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=n+(e.startIndex||0))}))},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),fL=pL,mL=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.updateData(i,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateSymbolDraw(i,e);r.incrementalPrepareUpdate(i),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._symbolDraw.incrementalUpdate(e,t.getData(),{clipShape:this._getClipShape(t)}),this._finished=e.end===t.getData().count()},t.prototype.updateTransform=function(e,t,n){var i=e.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=ZT("").reset(e,t,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var t=e.coordinateSystem,n=t&&t.getArea&&t.getArea();return e.get("clip",!0)?n:null},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,i=t.pipelineContext,r=i.large;return n&&r===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=r?new fL:new fT,this._isLargeDraw=r,this.group.removeAll()),this.group.add(n.group),n},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(pv),gL=mL,vL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(gd),yL=vL,_L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Jr).models[0]},t.type="cartesian2dAxis",t}(gd);g["mixin"](_L,RM);var bL={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},xL=g["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},bL),wL=g["merge"]({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},bL),ML=g["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},wL),SL=g["defaults"]({logBase:10},wL),kL={category:xL,value:wL,time:ML,log:SL},CL={value:1,category:1,time:1,log:1};function TL(e,t,n,i){Object(g["each"])(CL,(function(r,o){var a=Object(g["merge"])(Object(g["merge"])({},kL[o],!0),i,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return f(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=ud(this),i=n?dd(e):{},r=t.getTheme();Object(g["merge"])(e,r.get(o+"Axis")),Object(g["merge"])(e,this.getDefaultOption()),e.type=DL(e),n&&cd(e,i,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=_w.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if("category"===t.type)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=t+"Axis."+o,n.defaultOption=a,n}(n);e.registerComponentModel(s)})),e.registerSubTypeDefaulter(t+"Axis",DL)}function DL(e){return e.type||(e.data?"category":"value")}var LL=function(){function e(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return g["map"](this._dimList,(function(e){return this._axes[e]}),this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),g["filter"](this.getAxes(),(function(t){return t.scale.type===e}))},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),OL=LL,IL=["x","y"];function AL(e){return"interval"===e.type||"time"===e.type}var EL=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=IL,t}return f(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if(AL(e)&&AL(t)){var n=e.getExtent(),i=t.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,c=r[0]-n[0]*l,d=r[1]-i[0]*u,h=this._transform=[l,0,0,u,c,d];this._invTransform=Le([],h)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var t=this.getAxis("x"),n=this.getAxis("y");return t.contain(t.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,t){var n=this.dataToPoint(e),i=this.dataToPoint(t),r=this.getArea(),o=new Be(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var i=e[0],r=e[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return F(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,t)),n[1]=a.toGlobalCoord(a.dataToCoord(r,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(e[0]),s=i.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),t[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),t},t.prototype.pointToData=function(e,t){var n=[];if(this._invTransform)return F(n,e,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),t),n[1]=r.coordToData(r.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),t=this.getAxis("y").getGlobalExtent(),n=Math.min(e[0],e[1]),i=Math.min(t[0],t[1]),r=Math.max(e[0],e[1])-n,o=Math.max(t[0],t[1])-i;return new Be(n,i,r,o)},t}(OL),jL=EL,PL=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"bottom",a}return f(t,e),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(CS),YL=PL;function NL(e,t,n){n=n||{};var i=e.coordinateSystem,r=t.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],h={left:0,right:1,top:0,bottom:1,onZero:2},p=t.get("offset")||0,f="x"===u?[d[2]-p,d[3]+p]:[d[0]-p,d[1]+p];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));f[h.onZero]=Math.max(Math.min(m,f[1]),f[0])}o.position=["y"===u?f[h[l]]:d[0],"x"===u?f[h[l]]:d[3]],o.rotation=Math.PI/2*("x"===u?0:1);var v={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=v[s],o.labelOffset=a?f[h[s]]-f[h.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),g["retrieve"](n.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function RL(e){return"cartesian2d"===e.get("coordinateSystem")}function FL(e){var t={xAxisModel:null,yAxisModel:null};return g["each"](t,(function(n,i){var r=i.replace(/Model$/,""),o=e.getReferringComponents(r,Jr).models[0];t[i]=o})),t}var HL=Math.log;function zL(e,t,n){var i=Ew.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=kM(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var h=HL(e.base);u=[HL(u[0])/h,HL(u[1])/h]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var p=i.getExtent.call(e);c&&(u[0]=p[0]),d&&(u[1]=p[1]);var f=i.getInterval.call(e),m=u[0],g=u[1];if(c&&d)f=(g-m)/a;else if(c){g=u[0]+f*a;while(gu[0]&&isFinite(m)&&isFinite(u[0]))f=ww(f),m=u[1]-f*a}else{var v=e.getTicks().length-1;v>a&&(f=ww(f));var y=f*a;g=Math.ceil(u[1]/f)*f,m=er(g-y),m<0&&u[0]>=0?(m=0,g=er(y)):g>0&&u[1]<=0&&(g=0,m=-er(y))}var _=(r[0].value-o[0].value)/s,b=(r[a].value-o[a].value)/s;i.setExtent.call(e,m+f*_,g+f*b),i.setInterval.call(e,f),(_||b)&&i.setNiceExtent.call(e,m+f,g-f)}var BL=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=IL,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function i(e){var t,n=Object(g["keys"])(e),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;bw(u)&&l.get("alignTicks")&&null==l.get("interval")?r.push(s):(TM(u,l),bw(u)&&(t=s))}r.length&&(t||(t=r.pop(),TM(t.scale,t.model)),Object(g["each"])(r,(function(e){zL(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),i(n.x),i(n.y);var r={};Object(g["each"])(n.x,(function(e){$L(n,"y",e,r)})),Object(g["each"])(n.y,(function(e){$L(n,"x",e,r)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var i=e.getBoxLayoutParams(),r=!n&&e.get("containLabel"),o=ad(i,{width:t.getWidth(),height:t.getHeight()});this._rect=o;var a=this._axesList;function s(){Object(g["each"])(a,(function(e){var t=e.isHorizontal(),n=t?[0,o.width]:[0,o.height],i=e.inverse?1:0;e.setExtent(n[i],n[1-i]),GL(e,t?o.x:o.y)}))}s(),r&&(Object(g["each"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=AM(e);if(t){var n=e.isHorizontal()?"height":"width",i=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+i,"top"===e.position?o.y+=t.height+i:"left"===e.position&&(o.x+=t.width+i)}}})),s()),Object(g["each"])(this._coordsList,(function(e){e.calcAffineTransform()}))},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(null!=n)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(null!=e&&null!=t){var n="x"+e+"y"+t;return this._coordsMap[n]}Object(g["isObject"])(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,r=this._coordsList;i0?"top":"bottom",i="center"):cr(o-qL)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+"Index"]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)},e}(),KL={axisLine:function(e,t,n,i){var r=t.get(["axisLine","show"]);if("auto"===r&&e.handleAutoShown&&(r=e.handleAutoShown("axisLine")),r){var o=t.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(F(s,s,a),F(l,l,a));var c=Object(g["extend"])({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),d=new tg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Hg(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var h=t.get(["axisLine","symbol"]);if(null!=h){var p=t.get(["axisLine","symbolSize"]);Object(g["isString"])(h)&&(h=[h,h]),(Object(g["isString"])(p)||Object(g["isNumber"])(p))&&(p=[p,p]);var f=Dy(t.get(["axisLine","symbolOffset"])||0,p),m=p[0],v=p[1];Object(g["each"])([{rotate:e.rotation+Math.PI/2,offset:f[0],r:0},{rotate:e.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,i){if("none"!==h[i]&&null!=h[i]){var r=Cy(h[i],-m/2,-v/2,m,v,c.stroke,!0),o=t.r+t.offset,a=u?l:s;r.attr({rotation:t.rotate,x:a[0]+o*Math.cos(e.rotation),y:a[1]-o*Math.sin(e.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(e,t,n,i){var r=iO(n,i,t,e),o=oO(n,i,t,e);if(JL(t,o,r),rO(n,i,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=tk(Object(g["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));ok(a)}},axisName:function(e,t,n,i){var r=Object(g["retrieve"])(e.axisName,t.get("name"));if(r){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=["start"===s?d[0]-h*c:"end"===s?d[1]+h*c:(d[0]+d[1])/2,tO(s)?e.labelOffset+l*c:0],f=t.get("nameRotate");null!=f&&(f=f*qL/180),tO(s)?o=XL.innerTextLayout(e.rotation,null!=f?f:e.rotation,l):(o=ZL(e.rotation,s,f||0,d),a=e.axisNameAvailableWidth,null!=a&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var m=u.getFont(),v=t.get("nameTruncate",!0)||{},y=v.ellipsis,_=Object(g["retrieve"])(e.nameTruncateMaxWidth,v.maxWidth,a),b=new Bs({x:p[0],y:p[1],rotation:o.rotation,silent:XL.isLabelSilent(t),style:xu(u,{text:r,font:m,overflow:"truncate",width:_,ellipsis:y,fill:u.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(nv({el:b,componentModel:t,itemName:r}),b.__fullText=r,b.anid="name",t.get("triggerEvent")){var x=XL.makeAxisEventDataBase(t);x.targetType="axisName",x.name=r,Vs(b).eventData=x}i.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function ZL(e,t,n,i){var r,o,a=ur(n-e),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return cr(a-qL/2)?(o=l?"bottom":"top",r="center"):cr(a-1.5*qL)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*qL&&a>qL/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}function JL(e,t,n){if(!PM(e.axis)){var i=e.get(["axisLabel","showMinLabel"]),r=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],u=n[0],c=n[1],d=n[n.length-1],h=n[n.length-2];!1===i?(QL(o),QL(u)):eO(o,a)&&(i?(QL(a),QL(c)):(QL(o),QL(u))),!1===r?(QL(s),QL(d)):eO(l,s)&&(r?(QL(l),QL(h)):(QL(s),QL(d)))}}function QL(e){e&&(e.ignore=!0)}function eO(e,t){var n=e&&e.getBoundingRect().clone(),i=t&&t.getBoundingRect().clone();if(n&&i){var r=Me([]);return Te(r,r,-e.rotation),n.applyTransform(ke([],r,e.getLocalTransform())),i.applyTransform(ke([],r,t.getLocalTransform())),n.intersect(i)}}function tO(e){return"middle"===e||"center"===e}function nO(e,t,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||e===t}function pO(e){var t=fO(e);if(t){var n=t.axisPointerModel,i=t.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=gO(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!d.min?d.min=0:null!=d.min&&d.min<0&&!d.max&&(d.max=0);var h=a;null!=d.color&&(h=g["defaults"]({color:d.color},a));var p=g["merge"](g["clone"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:h,triggerEvent:c},!1);if(g["isString"](l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else g["isFunction"](l)&&(p.name=l(p.name,p));var m=new Wu(p,null,this.ecModel);return g["mixin"](m,RM.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m}),this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:g["merge"]({lineStyle:{color:"#bbb"}},BO.axisLine),axisLabel:VO(BO.axisLabel,!1),axisTick:VO(BO.axisTick,!1),splitLine:VO(BO.splitLine,!0),splitArea:VO(BO.splitArea,!0),indicator:[]},t}(gd),WO=$O,GO=["axisLine","axisTickLabel","axisName"],UO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),i=g["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",i=new aO(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return i}));g["each"](i,(function(e){g["each"](GO,e.add,e),this.group.add(e.getGroup())}),this)},t.prototype._buildSplitLineAndArea=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes();if(n.length){var i=e.get("shape"),r=e.getModel("splitLine"),o=e.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),h=g["isArray"](c)?c:[c],p=g["isArray"](d)?d:[d],f=[],m=[];if("circle"===i)for(var v=n[0].getTicksCoords(),y=t.cx,_=t.cy,b=0;b3?1.4:r>1?1.2:1.1,l=i>0?s:1/s;sI(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(i),c=(i>0?1:-1)*(u>3?.4:u>1?.15:.05);sI(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!rI(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;sI(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(G);function sI(e,t,n,i,r){e.pointerChecker&&e.pointerChecker(i,r.originX,r.originY)&&(ge(i.event),lI(e,t,n,i,r))}function lI(e,t,n,i,r){r.isAvailableBehavior=Object(g["bind"])(uI,null,n,i),e.trigger(t,r)}function uI(e,t,n){var i=n[e];return!e||i&&(!Object(g["isString"])(i)||t.event[i+"Key"])}var cI=aI;function dI(e,t,n){var i=e.target;i.x+=t,i.y+=n,i.dirty()}function hI(e,t,n,i){var r=e.target,o=e.zoomLimit,a=e.zoom=e.zoom||1;if(a*=t,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/e.zoom;e.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var pI,fI={axisPointer:1,tooltip:1,brush:1};function mI(e,t,n){var i=t.getComponentByElement(e.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!fI.hasOwnProperty(i.mainType)&&r&&r.model!==n}function gI(e){if(Object(g["isString"])(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var n=e;9===n.nodeType&&(n=n.firstChild);while("svg"!==n.nodeName.toLowerCase()||1!==n.nodeType)n=n.nextSibling;return n}var vI={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},yI=Object(g["keys"])(vI),_I={"alignment-baseline":"textBaseline","stop-color":"stopColor"},bI=Object(g["keys"])(_I),xI=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=gI(e);this._defsUsePending=[];var i=new Ni;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||t.width),s=parseFloat(n.getAttribute("height")||t.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),TI(n,i,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,i,r,null,!1,!1),c=c.nextSibling;if(II(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=EI(o);d.length>=4&&(l={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(l&&null!=a&&null!=s&&(u=HI(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var h=i;i=new Ni,i.add(h),h.scaleX=h.scaleY=u.scale,h.x=u.x,h.y=u.y}return t.ignoreRootClip||null==a||null==s||i.setClipPath(new Ss({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},e.prototype._parseNode=function(e,t,n,i,r,o){var a,s=e.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!r){var u=pI[s];if(u&&Object(g["hasOwn"])(pI,s)){a=u.call(this,e,t);var c=e.getAttribute("name");if(c){var d={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(d),"g"===s&&(l=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});t.add(a)}}var h=wI[s];if(h&&Object(g["hasOwn"])(wI,s)){var p=h.call(this,e),f=e.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,n,l,r,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},e.prototype._parseText=function(e,t){var n=new cs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});kI(t,n),TI(e,n,this._defsUsePending,!1,!1),DI(n,t);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){pI={g:function(e,t){var n=new Ni;return kI(t,n),TI(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Ss;return kI(t,n),TI(e,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(e,t){var n=new _m;return kI(t,n),TI(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),n.silent=!0,n},line:function(e,t){var n=new tg;return kI(t,n),TI(e,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(e,t){var n=new wm;return kI(t,n),TI(e,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(e,t){var n,i=e.getAttribute("points");i&&(n=CI(i));var r=new qm({shape:{points:n||[]},silent:!0});return kI(t,r),TI(e,r,this._defsUsePending,!1,!1),r},polyline:function(e,t){var n,i=e.getAttribute("points");i&&(n=CI(i));var r=new Zm({shape:{points:n||[]},silent:!0});return kI(t,r),TI(e,r,this._defsUsePending,!1,!1),r},image:function(e,t){var n=new ms;return kI(t,n),TI(e,n,this._defsUsePending,!1,!1),n.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),n.silent=!0,n},text:function(e,t){var n=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new Ni;return kI(t,a),TI(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),i=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Ni;return kI(t,a),TI(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",i=pm(n);return kI(t,i),TI(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),wI={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),i=parseInt(e.getAttribute("x2")||"10",10),r=parseInt(e.getAttribute("y2")||"0",10),o=new mg(t,n,i,r);return MI(e,o),SI(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),i=parseInt(e.getAttribute("r")||"0",10),r=new vg(t,n,i);return MI(e,r),SI(e,r),r}};function MI(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function SI(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i=n.getAttribute("offset"),r=void 0;r=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var o={};RI(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:r,color:a})}n=n.nextSibling}}function kI(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(g["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function CI(e){for(var t=EI(e),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=EI(a);switch(r=r||we(),s){case"translate":Ce(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":De(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Te(r,r,-parseFloat(l[0])*PI);break;case"skewX":var u=Math.tan(parseFloat(l[0])*PI);ke(r,[1,0,u,1,0,0],r);break;case"skewY":var c=Math.tan(parseFloat(l[0])*PI);ke(r,[1,c,0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5]);break}}t.setLocalTransform(r)}}var NI=/([^\s:;]+)\s*:\s*([^:;]+)/g;function RI(e,t,n){var i=e.getAttribute("style");if(i){var r;NI.lastIndex=0;while(null!=(r=NI.exec(i))){var o=r[1],a=Object(g["hasOwn"])(vI,o)?vI[o]:null;a&&(t[a]=r[2]);var s=Object(g["hasOwn"])(_I,o)?_I[o]:null;s&&(n[s]=r[2])}}}function FI(e,t,n){for(var i=0;i0,m={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:d};"geoJSON"===s.resourceType?this._buildGeoJSON(m):"geoSVG"===s.resourceType&&this._buildSVG(m),this._updateController(e,t,n),this._updateMapSelectHandler(e,l,n,i)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=g["createHashMap"](),n=g["createHashMap"](),i=this._regionsGroup,r=e.transformInfoRaw,o=e.mapOrGeoModel,a=e.data,s=e.geo.projection,l=s&&s.stream;function u(e,t){return t&&(e=t(e)),e&&[e[0]*r.scaleX+r.x,e[1]*r.scaleY+r.y]}function c(e){for(var t=[],n=!l&&s&&s.project,i=0;i=0)&&(h=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;_u(t,bu(i),{labelFetcher:h,labelDataIndex:d,defaultText:n},p);var f=t.getTextContent();if(f&&(hA(f).ignore=f.ignore,t.textConfig&&a)){var m=t.getBoundingRect().clone();t.textConfig.layoutRect=m,t.textConfig.position=[(a[0]-m.x)/m.width*100+"%",(a[1]-m.y)/m.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function yA(e,t,n,i,r,o){e.data?e.data.setItemGraphicEl(o,t):Vs(t).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function _A(e,t,n,i,r){e.data||nv({el:t,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function bA(e,t,n,i,r){t.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ul(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&eu(t,r,n),a}function xA(e,t,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&i.push([e,t])},sphere:function(){}});return!n&&s.polygonStart(),g["each"](e,(function(e){s.lineStart();for(var t=0;t-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}($f),CA=kA;function TA(e,t){var n={};return g["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,i){var r="ec-"+e.getName(i);n[r]=n[r]||[],isNaN(t)||n[r].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(i,r){for(var o,a="ec-"+e[0].getName(r),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d1?(p.width=h,p.height=h/_):(p.height=h,p.width=h*_),p.y=d[1]-p.height/2,p.x=d[0]-p.width/2;else{var x=e.getBoxLayoutParams();x.aspect=_,p=ad(x,{width:v,height:y})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function HA(e,t){g["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var zA=function(){function e(){this.dimensions=PA}return e.prototype.create=function(e,t){var n=[];function i(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,r){var o=e.get("map"),a=new RA(o+r,o,g["extend"]({nameMap:e.get("nameMap")},i(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=FA,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=n[i]}}));var r={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();r[t]=r[t]||[],r[t].push(e)}})),g["each"](r,(function(e,r){var o=g["map"](e,(function(e){return e.get("nameMap")})),a=new RA(r,r,g["extend"]({nameMap:g["mergeAll"](o)},i(e[0])));a.zoomLimit=g["retrieve"].apply(null,g["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=FA,a.resize(e[0],t),g["each"](e,(function(e){e.coordinateSystem=a,HA(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,i){for(var r=(e||[]).slice(),o=g["createHashMap"](),a=0;a=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},r.push(s)}}function eE(e,t){var n=e.isExpand?e.children:[],i=e.parentNode.children,r=e.hierNode.i?i[e.hierNode.i-1]:null;if(n.length){oE(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(e.hierNode.prelim=r.hierNode.prelim+t(e,r),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else r&&(e.hierNode.prelim=r.hierNode.prelim+t(e,r));e.parentNode.hierNode.defaultAncestor=aE(e,r,e.parentNode.hierNode.defaultAncestor||i[0],t)}function tE(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function nE(e){return arguments.length?e:dE}function iE(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function rE(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function oE(e){var t=e.children,n=t.length,i=0,r=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}function aE(e,t,n,i){if(t){var r=e,o=e,a=o.parentNode.children[0],s=t,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=sE(s),o=lE(o),s&&o){r=sE(r),a=lE(a),r.hierNode.ancestor=e;var h=s.hierNode.prelim+d-o.hierNode.prelim-u+i(s,o);h>0&&(cE(uE(s,e,n),e,h),u+=h,l+=h),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!sE(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=d-l),o&&!lE(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function sE(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function lE(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function uE(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function cE(e,t,n){var i=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=i,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=i}function dE(e,t){return e.parentNode===t.parentNode?1:2}var hE=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),pE=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hE},t.prototype.buildPath=function(e,t){var n=t.childPoints,i=n.length,r=t.parentPoint,o=n[0],a=n[i-1];if(1===i)return e.moveTo(r[0],r[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Qi(t.forkPosition,1),d=[];d[l]=r[l],d[u]=r[u]+(a[u]-r[u])*c,e.moveTo(r[0],r[1]),e.lineTo(d[0],d[1]),e.moveTo(o[0],o[1]),d[l]=o[l],e.lineTo(d[0],d[1]),d[l]=a[l],e.lineTo(d[0],d[1]),e.lineTo(a[0],a[1]);for(var h=1;h_.x,w||(x-=Math.PI));var S=w?"left":"right",k=s.getModel("label"),C=k.get("rotate"),T=C*(Math.PI/180),D=v.getTextContent();D&&(v.setTextConfig({position:k.get("position")||S,rotation:null==C?-x:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),O="relative"===L?g["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===L?a.getAncestorsIndices():"descendant"===L?a.getDescendantIndices():null;O&&(Vs(n).focus=O),vE(r,a,c,n,f,p,m,i),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var i=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);i&&i.hoverState===Ks||_l(n.__edge,t)}})}function vE(e,t,n,i,r,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),h=e.get(["lineStyle","curveness"]),p=e.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),m=i.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(m||(m=i.__edge=new ag({shape:xE(c,d,h,r,r)})),lu(m,{shape:xE(c,d,h,o,a)},e));else if("polyline"===u)if("orthogonal"===c){if(t!==n&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var v=t.children,y=[],_=0;_t&&(t=i.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,i=n.length;t=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(e){if(!(this.dataIndex<0)){var t=this.hostTree,n=t.data.getItemModel(this.dataIndex);return n.getModel(e)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},e.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,t=0;t=0){var i=n.getData().tree.root,r=e.targetNode;if(g["isString"](r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=e.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function FE(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function HE(e,t){var n=FE(e);return g["indexOf"](n,t)>=0}function zE(e,t){var n=[];while(e){var i=e.dataIndex;n.push({name:e.name,dataIndex:i,value:t.getRawValue(i)}),e=e.parentNode}return n.reverse(),n}var BE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return f(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},i=new Wu(n,this,this.ecModel),r=NE.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=i),e}))}var a=0;r.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return r.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),r.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,t,n){var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==r)s=o.parentNode.name+"."+s,o=o.parentNode;return ff("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=zE(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}($f),VE=BE;function $E(e,t,n){var i,r=[e],o=[];while(i=r.pop())if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;s=0;o--)i.push(r[o])}}function GE(e,t){e.eachSeriesByType("tree",(function(e){UE(e,t)}))}function UE(e,t){var n=rE(e,t);e.layoutInfo=n;var i=e.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=nE((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(r=n.width,o=n.height,a=nE());var s=e.getData().tree.root,l=s.children[0];if(l){QA(s),$E(l,eE,a),s.hierNode.modifier=-l.hierNode.prelim,WE(l,tE);var u=l,c=l,d=l;WE(l,(function(e){var t=e.getLayout().x;tc.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var h=u===c?1:a(u,c)/2,p=h-u.getLayout().x,f=0,m=0,g=0,v=0;if("radial"===i)f=r/(c.getLayout().x+h+p),m=o/(d.depth-1||1),WE(l,(function(e){g=(e.getLayout().x+p)*f,v=(e.depth-1)*m;var t=iE(g,v);e.setLayout({x:t.x,y:t.y,rawX:g,rawY:v},!0)}));else{var y=e.getOrient();"RL"===y||"LR"===y?(m=o/(c.getLayout().x+h+p),f=r/(d.depth-1||1),WE(l,(function(e){v=(e.getLayout().x+p)*m,g="LR"===y?(e.depth-1)*f:r-(e.depth-1)*f,e.setLayout({x:g,y:v},!0)}))):"TB"!==y&&"BT"!==y||(f=r/(c.getLayout().x+h+p),m=o/(d.depth-1||1),WE(l,(function(e){g=(e.getLayout().x+p)*f,v="TB"===y?(e.depth-1)*m:o-(e.depth-1)*m,e.setLayout({x:g,y:v},!0)})))}}}function qE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),i=n.getModel("itemStyle").getItemStyle(),r=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(g["extend"])(r,i)}))}))}function XE(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var n=e.dataIndex,i=t.getData().tree,r=i.getNodeByDataIndex(n);r.isExpand=!r.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var i=t.coordinateSystem,r=UA(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}function KE(e){e.registerChartView(wE),e.registerSeriesModel(VE),e.registerLayout(GE),e.registerVisual(qE),XE(e)}var ZE=["treemapZoomToNode","treemapRender","treemapMove"];function JE(e){for(var t=0;t1)n=n.parentNode;var r=$d(e.ecModel,n.name||n.dataIndex+"",i);t.setVisual("decal",r)}))}var ej=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return f(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};tj(n);var i=e.levels||[],r=this.designatedVisualItemStyle={},o=new Wu({itemStyle:r},this,t);i=e.levels=nj(i,t);var a=g["map"](i||[],(function(e){return new Wu(e,o,t)}),this),s=NE.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),i=n?a[n.depth]:null;return e.parentModel=i||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var i=this.getData(),r=this.getRawValue(e),o=i.getName(e);return ff("nameValue",{name:o,value:r})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=zE(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},g["extend"](this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var t=this._idIndexMap;t||(t=this._idIndexMap=g["createHashMap"](),this._idIndexMapCount=0);var n=t.get(e);return null==n&&t.set(e,n=this._idIndexMapCount++),n},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){QE(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}($f);function tj(e){var t=0;g["each"](e.children,(function(e){tj(e);var n=e.value;g["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;g["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),g["isArray"](e.value)?e.value[0]=n:e.value=n}function nj(e,t){var n=Cr(t.get("color")),i=Cr(t.get(["aria","decal","decals"]));if(n){var r,o;e=e||[],g["each"](e,(function(e){var t=new Wu(e),n=t.get("color"),i=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(r=!0),(t.get(["itemStyle","decal"])||i&&"none"!==i)&&(o=!0)}));var a=e[0]||(e[0]={});return r||(a.color=n.slice()),!o&&i&&(a.decal=i.slice()),e}}var ij=ej,rj=8,oj=8,aj=5,sj=function(){function e(e){this.group=new Ni,e.add(this.group)}return e.prototype.render=function(e,t,n,i){var r=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,i),sd(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var i=e;i;i=i.parentNode){var r=Hr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+2*rj,t.emptyItemWidth);t.totalWidth+=a+oj,t.renderList.push({node:i,text:r,width:a})}},e.prototype._renderContent=function(e,t,n,i,r,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=od(t.pos,t.box),d=t.totalWidth,h=t.renderList,p=i.getModel("itemStyle").getItemStyle(),f=h.length-1;f>=0;f--){var m=h[f],v=m.node,y=m.width,_=m.text;d>c.width&&(d-=y-l,y=l,_=null);var b=new qm({shape:{points:lj(s,0,y,u,f===h.length-1,0===f)},style:Object(g["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Bs({style:xu(r,{text:_})}),textConfig:{position:"inside"},z2:1e4*el,onclick:Object(g["curry"])(a,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=xu(o,{text:_}),b.ensureState("emphasis").style=p,Ul(b,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(b),uj(b,e,v),s+=y+oj}},e.prototype.remove=function(){this.group.removeAll()},e}();function lj(e,t,n,i,r,o){var a=[[r?e:e-aj,t],[e+n,t],[e+n,t+i],[r?e:e-aj,t+i]];return!o&&a.splice(2,0,[e+n+aj,t+i/2]),!r&&a.push([e,t+i/2]),a}function uj(e,t,n){Vs(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&zE(n,t)}}var cj=sj,dj=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,i,r){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:i,easing:r}),!0)},e.prototype.finished=function(e){return this._finishedCallback=e,this},e.prototype.start=function(){for(var e=this,t=this._storage.length,n=function(){t--,t<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,r=this._storage.length;imj||Math.abs(e.dy)>mj)){var t=this.seriesModel.getData().tree.root;if(!t)return;var n=t.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+e.dx,y:n.y+e.dy,width:n.width,height:n.height}})}},t.prototype._onZoom=function(e){var t=e.originX,n=e.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Be(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;t-=a.x,n-=a.y;var s=we();Ce(s,s,[-t,-n]),De(s,s,[e.scale,e.scale]),Ce(s,s,[t,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},t.prototype._initEvents=function(e){var t=this;e.on("click",(function(e){if("ready"===t._state){var n=t.seriesModel.get("nodeClick",!0);if(n){var i=t.findTarget(e.offsetX,e.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)t._rootToNode(i);else if("zoomToNode"===n)t._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Qc(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var i=this;n||(n=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(t.getWidth()/2,t.getHeight()/2),n||(n={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new cj(this.group))).render(e,t,n.node,(function(t){"animating"!==i._state&&(HE(e.getViewRoot(),t)?i._rootToNode({node:t}):i._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=kj(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,t){var n,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(e,t),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(pv);function kj(){return{nodeGroup:[],background:[],content:[]}}function Cj(e,t,n,i,r,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),h=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var p=c.width,f=c.height,m=c.borderWidth,v=c.invisible,y=a.getRawIndex(),_=s&&s.getRawIndex(),b=a.viewChildren,x=c.upperHeight,w=b&&b.length,M=h.getModel("itemStyle"),S=h.getModel(["emphasis","itemStyle"]),k=h.getModel(["blur","itemStyle"]),C=h.getModel(["select","itemStyle"]),T=M.get("borderRadius")||0,D=z("nodeGroup",pj);if(D){if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),Mj(D).nodeWidth=p,Mj(D).nodeHeight=f,c.isAboveViewRoot)return D;var L=z("background",fj,u,_j);L&&Y(D,L,w&&c.upperLabelHeight);var O=h.getModel("emphasis"),I=O.get("focus"),A=O.get("blurScope"),E=O.get("disabled"),j="ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():I;if(w)Ql(D)&&Jl(D,!1),L&&(Jl(L,!E),d.setItemGraphicEl(a.dataIndex,L),ql(L,j,A));else{var P=z("content",fj,u,bj);P&&N(D,P),L.disableMorphing=!0,L&&Ql(L)&&Jl(L,!1),Jl(D,!E),d.setItemGraphicEl(a.dataIndex,D),ql(D,j,A)}return D}}}function Y(t,n,i){var r=Vs(n);if(r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:p,height:f,r:T}),v)R(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=wj(M);l.fill=s;var u=xj(S);u.fill=S.get("borderColor");var c=xj(k);c.fill=k.get("borderColor");var d=xj(C);if(d.fill=C.get("borderColor"),i){var h=p-2*m;F(n,s,o.opacity,{x:m,y:0,width:h,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,kl(n)}t.add(n)}function N(t,n){var i=Vs(n);i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex;var r=Math.max(p-2*m,0),o=Math.max(f-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:r,height:o,r:T}),v)R(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=wj(M);u.fill=l,u.decal=s.decal;var c=xj(S),d=xj(k),h=xj(C);F(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=h,kl(n)}t.add(n)}function R(e){!e.invisible&&o.push(e)}function F(t,n,i,r){var o=h.getModel(r?vj:gj),s=Hr(h.get("name"),null),l=o.getShallow("show");_u(t,bu(h,r?vj:gj),{defaultText:l?s:null,inheritColor:n,defaultOpacity:i,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,p=Object(g["normalizeCssArray"])(d.padding||0);r&&(t.setTextConfig({layoutRect:r}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((r?r.width:t.shape.width)-p[1]-p[3],0),n=Math.max((r?r.height:t.shape.height)-p[0]-p[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",H(d,r,c);var f=u.getState("emphasis");H(f?f.style:null,r,c)}}function H(t,n,i){var r=t?t.text:null;if(!n&&i.isLeafRoot&&null!=r){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+r:r}}function z(e,i,o,a){var s=null!=_&&n[e][_],l=r[e];return s?(n[e][_]=null,B(l,s)):v||(s=new i,s instanceof ea&&(s.z2=Tj(o,a)),V(l,s)),t[e][y]=s}function B(e,t){var n=e[y]={};t instanceof pj?(n.oldX=t.x,n.oldY=t.y):n.oldShape=Object(g["extend"])({},t.shape)}function V(e,t){var n=e[y]={},o=a.parentNode,s=t instanceof Ni;if(o&&(!i||"drillDown"===i.direction)){var l=0,u=0,c=r.background[o.getRawIndex()];!i&&c&&c.oldShape&&(l=c.oldShape.width,u=c.oldShape.height),s?(n.oldX=0,n.oldY=u):n.oldShape={x:l,y:u,width:0,height:0}}n.fadein=!s}}function Tj(e,t){return e*yj+t}var Dj=Sj,Lj=g["each"],Oj=g["isObject"],Ij=-1,Aj=function(){function e(t){var n=t.mappingMethod,i=t.type,r=this.option=g["clone"](t);this.type=i,this.mappingMethod=n,this._normalizeData=$j[n];var o=e.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(Pj(r),Ej(r)):"category"===n?r.categories?jj(r):Pj(r,!0):(g["assert"]("linear"!==n||r.dataExtent),Pj(r))}return e.prototype.mapValueToVisual=function(e){var t=this._normalizeData(e);return this._normalizedToVisual(t,e)},e.prototype.getNormalizer=function(){return g["bind"](this._normalizeData,this)},e.listVisualTypes=function(){return g["keys"](e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(e,t,n){g["isObject"](e)?g["each"](e,t,n):t.call(n,e)},e.mapVisual=function(t,n,i){var r,o=g["isArray"](t)?[]:g["isObject"](t)?{}:(r=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(i,e,t);r?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,i={};return t&&Lj(e.visualHandlers,(function(e,r){t.hasOwnProperty(r)&&(i[r]=t[r],n=!0)})),n?i:null},e.prepareVisualTypes=function(e){if(g["isArray"](e))e=e.slice();else{if(!Oj(e))return[];var t=[];Lj(e,(function(e,n){t.push(n)})),e=t}return e.sort((function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1})),e},e.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},e.findPieceIndex=function(e,t,n){for(var i,r=1/0,o=0,a=t.length;o=0;o--)null==i[o]&&(delete n[t[o]],t.pop())}function Pj(e,t){var n=e.visual,i=[];g["isObject"](n)?Lj(n,(function(e){i.push(e)})):null!=n&&i.push(n);var r={color:1,symbol:1};t||1!==i.length||r.hasOwnProperty(e.type)||(i[1]=i[0]),Vj(e,i)}function Yj(e){return{applyVisual:function(t,n,i){var r=this.mapValueToVisual(t);i("color",e(n("color"),r))},_normalizedToVisual:zj([0,1])}}function Nj(e){var t=this.option.visual;return t[Math.round(Ji(e,[0,1],[0,t.length-1],!0))]||{}}function Rj(e){return function(t,n,i){i(e,this.mapValueToVisual(t))}}function Fj(e){var t=this.option.visual;return t[this.option.loop&&e!==Ij?e%t.length:e]}function Hj(){return this.option.visual[0]}function zj(e){return{linear:function(t){return Ji(t,e,this.option.visual,!0)},category:Fj,piecewise:function(t,n){var i=Bj.call(this,n);return null==i&&(i=Ji(t,e,this.option.visual,!0)),i},fixed:Hj}}function Bj(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var i=Aj.findPieceIndex(e,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function Vj(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=g["map"](t,(function(e){var t=Jt["parse"](e);return t||[0,0,0,1]}))),t}var $j={linear:function(e){return Ji(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=Aj.findPieceIndex(e,t,!0);if(null!=n)return Ji(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?Ij:t},fixed:g["noop"]};function Wj(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=iP(r,u,e,t,f,i);Kj(e,o,n,i)}}))}else s=Jj(u),c.fill=s}}function Zj(e,t,n){var i=Object(g["extend"])({},t),r=n.designatedVisualItemStyle;return Object(g["each"])(["color","colorAlpha","colorSaturation"],(function(n){r[n]=t[n];var o=e.get(n);r[n]=null,null!=o&&(i[n]=o)})),i}function Jj(e){var t=eP(e,"color");if(t){var n=eP(e,"colorAlpha"),i=eP(e,"colorSaturation");return i&&(t=Object(Jt["modifyHSL"])(t,null,null,i)),n&&(t=Object(Jt["modifyAlpha"])(t,n)),t}}function Qj(e,t){return null!=t?Object(Jt["modifyHSL"])(t,null,null,e):null}function eP(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function tP(e,t,n,i,r,o){if(o&&o.length){var a=nP(t,"color")||null!=r.color&&"none"!==r.color&&(nP(t,"colorAlpha")||nP(t,"colorSaturation"));if(a){var s=t.get("visualMin"),l=t.get("visualMax"),u=n.dataExtent.slice();null!=s&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),d={type:a.name,dataExtent:u,visual:a.range};"color"!==d.type||"index"!==c&&"id"!==c?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var h=new Gj(d);return qj(h).drColorMappingBy=c,h}}}function nP(e,t){var n=e.get(t);return Object(g["isArray"])(n)&&n.length?{name:t,range:n}:null}function iP(e,t,n,i,r,o){var a=Object(g["extend"])({},t);if(r){var s=r.type,l="color"===s&&qj(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var rP=Math.max,oP=Math.min,aP=g["retrieve"],sP=g["each"],lP=["itemStyle","borderWidth"],uP=["itemStyle","gapWidth"],cP=["upperLabel","show"],dP=["upperLabel","height"],hP={seriesType:"treemap",reset:function(e,t,n,i){var r=n.getWidth(),o=n.getHeight(),a=e.option,s=ad(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Qi(aP(s.width,l[0]),r),c=Qi(aP(s.height,l[1]),o),d=i&&i.type,h=["treemapZoomToNode","treemapRootToNode"],p=RE(i,h,e),f="treemapRender"===d||"treemapMove"===d?i.rootRect:null,m=e.getViewRoot(),v=FE(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?bP(e,p,m,u,c):f?[f.width,f.height]:[u,c],_=a.sort;_&&"asc"!==_&&"desc"!==_&&(_="desc");var b={squareRatio:a.squareRatio,sort:_,leafDepth:a.leafDepth};m.hostTree.clearLayouts();var x={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};m.setLayout(x),pP(m,b,!1,0),x=m.getLayout(),sP(v,(function(e,t){var n=(v[t+1]||m).getValue();e.setLayout(g["extend"]({dataExtent:[n,n],borderWidth:0,upperHeight:0},x))}))}var w=e.getData().tree.root;w.setLayout(xP(s,f,p),!0),e.setLayoutInfo(s),wP(w,new Be(-s.x,-s.y,r,o),v,m,0)}};function pP(e,t,n,i){var r,o;if(!e.isRemoved()){var a=e.getLayout();r=a.width,o=a.height;var s=e.getModel(),l=s.get(lP),u=s.get(uP)/2,c=MP(s),d=Math.max(l,c),h=l-u,p=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),r=rP(r-2*h,0),o=rP(o-h-p,0);var f=r*o,m=fP(e,s,f,t,n,i);if(m.length){var g={x:h,y:p,width:r,height:o},v=oP(r,o),y=1/0,_=[];_.area=0;for(var b=0,x=m.length;b=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}function yP(e,t,n){for(var i=0,r=1/0,o=0,a=void 0,s=e.length;oi&&(i=a));var l=e.area*e.area,u=t*t*n;return l?rP(u*i/l,l/(u*r)):1/0}function _P(e,t,n,i,r){var o=t===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=t?e.area/t:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,h=e.length;dlr&&(u=lr),a=o}ui&&(i=t);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var x=-Math.atan2(v[1],v[0]);u[0].8?"left":c[0]<-.8?"right":"center",h=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*f+l[0],i.y=-c[1]*m+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",h=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*b+l[0],i.y=l[1]+w,d=v[0]<0?"right":"left",i.originX=-f*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,d="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*b+u[0],i.y=u[1]+w,d=v[0]>=0?"right":"left",i.originX=f*b,i.originY=-w;break}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||h,align:i.__align||d})}}}function S(e,t){var n=e.__specifiedRotation;if(null==n){var i=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else e.attr("rotation",n)}},t}(Ni),fY=pY,mY=function(){function e(e){this.group=new Ni,this._LineCtor=e||fY}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=e,r||i.removeAll();var o=vY(e);e.diff(r).add((function(n){t._doAdd(e,n,o)})).update((function(n,i){t._doUpdate(r,e,i,n,o)})).remove((function(e){i.remove(r.getItemGraphicEl(e))})).execute()},e.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl((function(t,n){t.updateLayout(e,n)}),this)},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=vY(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||gY(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var i=e.start;i0}function vY(e){var t=e.hostModel,n=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:bu(t)}}function yY(e){return isNaN(e[0])||isNaN(e[1])}function _Y(e){return e&&!yY(e[0])&&!yY(e[1])}var bY=mY,xY=[],wY=[],MY=[],SY=zt,kY=Y,CY=Math.abs;function TY(e,t,n){for(var i,r=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){xY[0]=SY(r[0],o[0],a[0],c),xY[1]=SY(r[1],o[1],a[1],c);var d=CY(kY(xY,t)-l);d=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function DY(e,t){var n=[],i=Wt,r=[[],[],[]],o=[[],[]],a=[];t/=2,e.eachEdge((function(e,s){var l=e.getLayout(),u=e.getVisual("fromSymbol"),c=e.getVisual("toSymbol");l.__original||(l.__original=[_(l[0]),_(l[1])],l[2]&&l.__original.push(_(l[2])));var d=l.__original;if(null!=l[2]){if(y(r[0],d[0]),y(r[1],d[2]),y(r[2],d[1]),u&&"none"!==u){var h=$P(e.node1),p=TY(r,d[0],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}if(c&&"none"!==c){h=$P(e.node2),p=TY(r,d[1],h*t);i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]}y(l[0],r[0]),y(l[1],r[2]),y(l[2],r[1])}else{if(y(o[0],d[0]),y(o[1],d[1]),M(a,o[1],o[0]),A(a,a),u&&"none"!==u){h=$P(e.node1);w(o[0],o[0],a,h*t)}if(c&&"none"!==c){h=$P(e.node2);w(o[1],o[1],a,-h*t)}y(l[0],o[0]),y(l[1],o[1])}}))}function LY(e){return"view"===e.type}var OY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(e,t){var n=new fT,i=new bY,r=this.group;this._controller=new cI(t.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},t.prototype.render=function(e,t,n){var i=this,r=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(LY(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):lu(s,l,e)}DY(e.getGraph(),VP(e));var u=e.getData();o.updateData(u);var c=e.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(e,t,n),clearTimeout(this._layoutTimeout);var d=e.forceLayout,h=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,h);var p=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,r=t.getGraphicEl(),o=t.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":d.warmUp(),!i._layouting&&i._startForceLayoutIteration(d,h),d.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),t.setLayout({fixed:!0},!0),UP(e,"symbolSize",t,[o.offsetX,o.offsetY]),i.updateLayout(e);break;case"none":default:u.setItemLayout(n,[r.x,r.y]),zP(e.getGraph(),e),i.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),r.setDraggable(a&&!!d,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Vs(r).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Vs(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var f="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=u.getLayout("cx"),g=u.getLayout("cy");u.graph.eachNode((function(e){XP(e,f,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function i(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(i,16):i())}))})()},t.prototype._updateController=function(e,t,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(t,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!mI(t,n,e)})),LY(e.coordinateSystem)?(r.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(t){dI(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){hI(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),i._updateNodeAndLinkScale(),DY(e.getGraph(),VP(e)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=VP(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){DY(e.getGraph(),VP(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(e,t){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(pv),IY=OY;function AY(e){return"_EC_"+e}var EY=function(){function e(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(e,t){e=null==e?""+t:""+e;var n=this._nodesMap;if(!n[AY(e)]){var i=new jY(e,t);return i.hostGraph=this,this.nodes.push(i),n[AY(e)]=i,i}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[AY(e)]},e.prototype.addEdge=function(e,t,n){var i=this._nodesMap,r=this._edgesMap;if(g["isNumber"](e)&&(e=this.nodes[e]),g["isNumber"](t)&&(t=this.nodes[t]),e instanceof jY||(e=i[AY(e)]),t instanceof jY||(t=i[AY(t)]),e&&t){var o=e.id+"-"+t.id,a=new PY(e,t,n);return a.hostGraph=this,this._directed&&(e.outEdges.push(a),t.inEdges.push(a)),e.edges.push(a),e!==t&&t.edges.push(a),this.edges.push(a),r[o]=a,a}},e.prototype.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},e.prototype.getEdge=function(e,t){e instanceof jY&&(e=e.id),t instanceof jY&&(t=t.id);var n=this._edgesMap;return this._directed?n[e+"-"+t]:n[e+"-"+t]||n[t+"-"+e]},e.prototype.eachNode=function(e,t){for(var n=this.nodes,i=n.length,r=0;r=0&&e.call(t,n[r],r)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&e.call(t,n[r],r)},e.prototype.breadthFirstTraverse=function(e,t,n,i){if(t instanceof jY||(t=this._nodesMap[AY(t)]),t){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(r=0,o=i.length;r=0&&this[e][t].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}g["mixin"](jY,YY("hostGraph","data")),g["mixin"](PY,YY("hostGraph","edgeData"));var NY=EY;function RY(e,t,n,i,r){for(var o=new NY(i),a=0;a "+h)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=pw(e,n);else{var m=ph.get(f),v=m&&m.dimensions||[];g["indexOf"](v,"value")<0&&v.concat(["value"]);var y=Kx(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;p=new qx(y,n),p.initData(e)}var _=new qx(["value"],n);return _.initData(l,s),r&&r(p,_),EE({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var FY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return f(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new iL(i,i),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(t){e.prototype.mergeDefaultAndTheme.apply(this,arguments),Tr(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],i=e.data||e.nodes||[],r=this;if(i&&n){NP(this);var o=RY(i,n,this,!0,a);return g["each"](o.edges,(function(e){RP(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=r._categoriesModels,n=e.getShallow("category"),i=t[n];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e}));var n=Wu.prototype.getModel;function i(e,t){var i=n.call(this,e,t);return i.resolveParentPath=o,i}function o(e){if(e&&("label"===e[0]||"label"===e[1])){var t=e.slice();return"label"===e[0]?t[0]="edgeLabel":"label"===e[1]&&(t[1]="edgeLabel"),t}return e}t.wrapMethod("getItemModel",(function(e){return e.resolveParentPath=o,e.getModel=i,e}))}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,t,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(e,n),o=i.graph.getEdgeByIndex(e),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),ff("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}var u=Of({series:this,dataIndex:e,multipleSeries:t});return u},t.prototype._updateCategoriesData=function(){var e=g["map"](this.option.categories||[],(function(e){return null!=e.value?e:g["extend"]({value:0},e)})),t=new qx(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray((function(e){return t.getItemModel(e)}))},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($f),HY=FY,zY={type:"graphRoam",event:"graphRoam",update:"none"};function BY(e){e.registerChartView(IY),e.registerSeriesModel(HY),e.registerProcessor(kP),e.registerVisual(CP),e.registerVisual(DP),e.registerLayout(BP),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,KP),e.registerLayout(QP),e.registerCoordinateSystem("graphView",{dimensions:EA.dimensions,create:tY}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},g["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},g["noop"]),e.registerAction(zY,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var i=t.coordinateSystem,r=UA(i,e,void 0,n);t.setCenter&&t.setCenter(r.center),t.setZoom&&t.setZoom(r.zoom)}))}))}var VY=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),$Y=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return f(t,e),t.prototype.getDefaultShape=function(){return new VY},t.prototype.buildPath=function(e,t){var n=Math.cos,i=Math.sin,r=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=r/3?1:2),l=t.y-i(a)*o*(o>=r/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+i(a)*o),e.lineTo(t.x+n(t.angle)*r,t.y+i(t.angle)*r),e.lineTo(t.x-n(a)*o,t.y-i(a)*o),e.lineTo(s,l)},t}(ss),WY=$Y;function GY(e,t){var n=e.get("center"),i=t.getWidth(),r=t.getHeight(),o=Math.min(i,r),a=Qi(n[0],t.getWidth()),s=Qi(n[1],t.getHeight()),l=Qi(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function UY(e,t){var n=null==e?"":e+"";return t&&(Object(g["isString"])(t)?n=t.replace("{value}",n):Object(g["isFunction"])(t)&&(n=t(e))),n}var qY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var i=e.get(["axisLine","lineStyle","color"]),r=GY(e,n);this._renderMain(e,t,n,i,r),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,i,r){var o=this.group,a=e.get("clockwise"),s=-e.get("startAngle")/180*Math.PI,l=-e.get("endAngle")/180*Math.PI,u=e.getModel("axisLine"),c=u.get("roundCap"),d=c?lD:Hm,h=u.get("show"),p=u.getModel("lineStyle"),f=p.get("width"),m=[s,l];Ea(m,!a),s=m[0],l=m[1];for(var g=l-s,v=s,y=0;h&&y=e&&(0===t?0:i[t-1][0])Math.PI/2&&(F+=Math.PI)):"tangential"===R?F=-k-Math.PI/2:Object(g["isNumber"])(R)&&(F=R*Math.PI/180),0===F?d.add(new Bs({style:xu(b,{text:j,x:Y,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:P}),silent:!0})):d.add(new Bs({style:xu(b,{text:j,x:Y,y:N,verticalAlign:"middle",align:"center"},{inheritColor:P}),silent:!0,originX:Y,originY:N,rotation:F}))}if(_.get("show")&&I!==x){A=_.get("distance");A=A?A+l:l;for(var H=0;H<=w;H++){u=Math.cos(k),c=Math.sin(k);var z=new tg({shape:{x1:u*(f-A)+h,y1:c*(f-A)+p,x2:u*(f-S-A)+h,y2:c*(f-S-A)+p},silent:!0,style:L});"auto"===L.stroke&&z.setStyle({stroke:i((I+H/w)/x)}),d.add(z),k+=T}k-=T}else k+=C}},t.prototype._renderPointer=function(e,t,n,i,r,o,a,s,l){var u=this.group,c=this._data,d=this._progressEls,h=[],p=e.get(["pointer","show"]),f=e.getModel("progress"),m=f.get("show"),v=e.getData(),y=v.mapDimension("value"),_=+e.get("min"),b=+e.get("max"),x=[_,b],w=[o,a];function M(t,n){var i,o=v.getItemModel(t),a=o.getModel("pointer"),s=Qi(a.get("width"),r.r),l=Qi(a.get("length"),r.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=Qi(c[0],r.r),h=Qi(c[1],r.r),p=a.get("keepAspect");return i=u?Cy(u,d-s/2,h-l,s,l,null,p):new WY({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:h}}),i.rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(e,t){var n=f.get("roundCap"),i=n?lD:Hm,a=f.get("overlap"),u=a?f.get("width"):l/v.count(),c=a?r.r-u:r.r-(e+1)*u,d=a?r.r:r.r-e*u,h=new i({shape:{startAngle:o,endAngle:t,cx:r.cx,cy:r.cy,clockwise:s,r0:c,r:d}});return a&&(h.z2=b-v.get(y,e)%b),h}(m||p)&&(v.diff(c).add((function(t){var n=v.get(y,t);if(p){var i=M(t,o);uu(i,{rotation:-((isNaN(+n)?w[0]:Ji(n,x,w,!0))+Math.PI/2)},e),u.add(i),v.setItemGraphicEl(t,i)}if(m){var r=S(t,o),a=f.get("clip");uu(r,{shape:{endAngle:Ji(n,x,w,a)}},e),u.add(r),$s(e.seriesIndex,v.dataType,t,r),h[t]=r}})).update((function(t,n){var i=v.get(y,t);if(p){var r=c.getItemGraphicEl(n),a=r?r.rotation:o,s=M(t,a);s.rotation=a,lu(s,{rotation:-((isNaN(+i)?w[0]:Ji(i,x,w,!0))+Math.PI/2)},e),u.add(s),v.setItemGraphicEl(t,s)}if(m){var l=d[n],g=l?l.shape.endAngle:o,_=S(t,g),b=f.get("clip");lu(_,{shape:{endAngle:Ji(i,x,w,b)}},e),u.add(_),$s(e.seriesIndex,v.dataType,t,_),h[t]=_}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof ms){var c=s.style;s.useStyle(Object(g["extend"])({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(t.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",i(Ji(v.get(y,e),x,[0,1],!0))),s.z2EmphasisLift=0,Zl(s,t),Ul(s,r,o,a)}if(m){var d=h[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,Zl(d,t),Ul(d,r,o,a)}})),this._progressEls=h)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),i=n.get("show");if(i){var r=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Cy(o,t.cx-r/2+Qi(a[0],t.r),t.cy-r/2+Qi(a[1],t.r),r,r,null,s);l.z2=n.get("showAbove")?1:0,l.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(l)}},t.prototype._renderTitleAndDetail=function(e,t,n,i,r){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Ni,d=[],h=[],p=e.isAnimationEnabled(),f=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new Bs({silent:!0}),h[e]=new Bs({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],h[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),m=new Ni,g=i(Ji(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=r.cx+Qi(y[0],r.r),b=r.cy+Qi(y[1],r.r),x=d[t];x.attr({z2:f?0:2,style:xu(v,{x:_,y:b,text:a.getName(t),align:"center",verticalAlign:"middle"},{inheritColor:g})}),m.add(x)}var w=n.getModel("detail");if(w.get("show")){var M=w.get("offsetCenter"),S=r.cx+Qi(M[0],r.r),k=r.cy+Qi(M[1],r.r),C=Qi(w.get("width"),r.r),T=Qi(w.get("height"),r.r),D=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,L=(x=h[t],w.get("formatter"));x.attr({z2:f?0:2,style:xu(w,{x:S,y:k,text:UY(o,L),width:isNaN(C)?null:C,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Iu(x,{normal:w},o,(function(e){return UY(e,L)})),p&&Au(x,t,a,e,{getFormattedLabel:function(e,t,n,i,r,a){return UY(a?a.interpolatedValue:o,L)}}),m.add(x)}c.add(m)})),this.group.add(c),this._titleEls=d,this._detailEls=h},t.type="gauge",t}(pv),XY=qY,KY=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return f(t,e),t.prototype.getInitialData=function(e,t){return tL(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}($f),ZY=KY;function JY(e){e.registerChartView(XY),e.registerSeriesModel(ZY)}var QY=["itemStyle","opacity"],eN=function(e){function t(t,n){var i=e.call(this)||this,r=i,o=new Zm,a=new Bs;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(t,n,!0),i}return f(t,e),t.prototype.updateData=function(e,t,n){var i=this,r=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(QY);l=null==l?1:l,n||fu(i),i.useStyle(e.getItemVisual(t,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,uu(i,{style:{opacity:l}},r,t)):lu(i,{style:{opacity:l},shape:{points:a.points}},r,t),Zl(i,o),this._updateLabel(e,t),Ul(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;_u(r,bu(a),{labelFetcher:e.hostModel,labelDataIndex:t,defaultOpacity:u.opacity,defaultText:e.getName(t)},{normal:{align:l.textAlign,verticalAlign:l.verticalAlign}}),n.setTextConfig({local:!0,inside:!!l.inside,insideStroke:c,outsideFill:c});var d=l.linePoints;i.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ae(d[0][0],d[0][1]):null},lu(r,{style:{x:l.x,y:l.y}},o,t),r.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),QS(n,ek(a),{stroke:c})},t}(qm),tN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return f(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this._data,o=this.group;i.diff(r).add((function(e){var t=new eN(i,e);i.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=r.getItemGraphicEl(t);n.updateData(i,e),o.add(n),i.setItemGraphicEl(e,n)})).remove((function(t){var n=r.getItemGraphicEl(t);pu(n,e,t)})).execute(),this._data=i},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(pv),nN=tN,iN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new iL(g["bind"](this.getData,this),g["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return tL(this,{coordDimensions:["value"],encodeDefaulter:g["curry"](Ed,this)})},t.prototype._defaultLabelLine=function(e){Tr(e,"labelLine",["show"]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.prototype.getDataParams=function(t){var n=this.getData(),i=e.prototype.getDataParams.call(this,t),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,t)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}($f),rN=iN;function oN(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aN(e,t){for(var n=e.mapDimension("value"),i=e.mapArray(n,(function(e){return e})),r=[],o="ascending"===t,a=0,s=e.count();aLN)return;var r=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==r.behavior&&this._dispatchExpand({axisExpandWindow:r.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&AN(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function AN(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var EN=ON,jN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){var t=this.option;e&&g["merge"](t,e,!0),this._initDimensions()},t.prototype.contains=function(e,t){var n=e.get("parallelIndex");return null!=n&&t.getComponent("parallel",n)===this},t.prototype.setAxisExpand=function(e){g["each"](["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])}),this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],n=g["filter"](this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(e){return(e.get("parallelIndex")||0)===this.componentIndex}),this);g["each"](n,(function(n){e.push("dim"+n.get("dim")),t.push(n.componentIndex)}))},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(gd),PN=jN,YN=function(e){function t(t,n,i,r,o){var a=e.call(this,t,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return f(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(CS),NN=YN;function RN(e,t,n,i,r,o){e=e||0;var a=n[1]-n[0];if(null!=r&&(r=HN(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(t[1]-t[0]);s=HN(s,[0,a]),r=o=HN(s,[r,o]),i=0}t[0]=HN(t[0],n),t[1]=HN(t[1],n);var l=FN(t,i);t[i]+=e;var u,c=r||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[i]=HN(t[i],d),u=FN(t,i),null!=r&&(u.sign!==l.sign||u.spano&&(t[1-i]=t[i]+u.sign*o),t}function FN(e,t){var n=e[t]-e[1-t];return{span:Math.abs(n),sign:n>0?-1:n<0?1:t?-1:1}}function HN(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var zN=g["each"],BN=Math.min,VN=Math.max,$N=Math.floor,WN=Math.ceil,GN=er,UN=Math.PI,qN=function(){function e(e,t,n){this.type="parallel",this._axesMap=g["createHashMap"](),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,n)}return e.prototype._init=function(e,t,n){var i=e.dimensions,r=e.parallelAxisIndex;zN(i,(function(e,n){var i=r[n],o=t.getComponent("parallelAxis",i),a=this._axesMap.set(e,new NN(e,DM(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},e.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},e.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),n=t.axisBase,i=t.layoutBase,r=t.pixelDimIndex,o=e[1-r],a=e[r];return o>=n&&o<=n+t.axisLength&&a>=i&&a<=i+t.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(e,t){t.eachSeries((function(n){if(e.contains(n,t)){var i=n.getData();zN(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(i,i.mapDimension(e)),TM(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var e,t=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=XN(t.get("axisExpandWidth"),l),d=XN(t.get("axisExpandCount")||0,[0,u]),h=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,p=t.get("axisExpandWindow");if(p)e=XN(p[1]-p[0],l),p[1]=p[0]+e;else{e=XN(c*(d-1),l);var f=t.get("axisExpandCenter")||$N(u/2);p=[c*f-e/2],p[1]=p[0]+e}var m=(s-e)/(u-d);m<3&&(m=0);var g=[$N(GN(p[0]/c,1))+1,WN(GN(p[1]/c,1))-1],v=m/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:h,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;t.each((function(e){var t=[0,i.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),zN(n,(function(t,n){var o=(i.axisExpandable?ZN:KN)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:UN/2,vertical:0},l=[a[r].x+e.x,a[r].y+e.y],u=s[r],c=we();Te(c,c,u),Ce(c,c,l),this._axesLayout[t]={position:l,rotation:u,transform:c,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},e.prototype.getAxis=function(e){return this._axesMap.get(e)},e.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},e.prototype.eachActiveState=function(e,t,n,i){null==n&&(n=0),null==i&&(i=e.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];g["each"](o,(function(t){a.push(e.mapDimension(t)),s.push(r.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?RN(a,i,o,"all"):l="none";else{var h=i[1]-i[0],p=o[1]*s/h;i=[VN(0,p-h/2)],i[1]=BN(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:l}},e}();function XN(e,t){return BN(VN(e,t[0]),t[1])}function KN(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function ZN(e,t){var n,i,r=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e=0;n--)tr(t[n])},t.prototype.getActiveState=function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===t.length){var n=t[0];if(n[0]<=e&&e<=n[1])return"active"}else for(var i=0,r=t.length;iuR}function DR(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function LR(e,t,n,i){var r=new Ni;return r.add(new Ss({name:"main",style:ER(n),silent:!0,draggable:!0,cursor:"move",drift:Object(g["curry"])(RR,e,t,r,["n","s","w","e"]),ondragend:Object(g["curry"])(CR,t,{isEnd:!0})})),Object(g["each"])(i,(function(n){r.add(new Ss({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(g["curry"])(RR,e,t,r,n),ondragend:Object(g["curry"])(CR,t,{isEnd:!0})}))})),r}function OR(e,t,n,i){var r=i.brushStyle.lineWidth||0,o=aR(r,cR),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],d=n[1][1],h=c-o+r/2,p=d-o+r/2,f=c-a,m=d-s,g=f+r,v=m+r;AR(e,t,"main",a,s,f,m),i.transformable&&(AR(e,t,"w",l,u,o,v),AR(e,t,"e",h,u,o,v),AR(e,t,"n",l,u,g,o),AR(e,t,"s",l,p,g,o),AR(e,t,"nw",l,u,o,o),AR(e,t,"ne",h,u,o,o),AR(e,t,"sw",l,p,o,o),AR(e,t,"se",h,p,o,o))}function IR(e,t){var n=t.__brushOption,i=n.transformable,r=t.childAt(0);r.useStyle(ER(n)),r.attr({silent:!i,cursor:i?"move":"default"}),Object(g["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var r=t.childOfName(n.join("")),o=1===n.length?YR(e,n[0]):NR(e,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?pR[o]+"-resize":null})}))}function AR(e,t,n,i,r,o,a){var s=t.childOfName(n);s&&s.setShape(BR(zR(e,t,[[i,r],[i+o,r+a]])))}function ER(e){return Object(g["defaults"])({strokeNoScale:!0},e.brushStyle)}function jR(e,t,n,i){var r=[oR(e,n),oR(t,i)],o=[aR(e,n),aR(t,i)];return[[r[0],o[0]],[r[1],o[1]]]}function PR(e){return Vg(e.group)}function YR(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},i={left:"w",right:"e",top:"n",bottom:"s"},r=Wg(n[t],PR(e));return i[r]}function NR(e,t){var n=[YR(e,t[0]),YR(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function RR(e,t,n,i,r,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=HR(t,r,o);Object(g["each"])(i,(function(e){var t=hR[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(jR(s[0][0],s[1][0],s[0][1],s[1][1])),xR(t,n),CR(t,{isEnd:!1})}function FR(e,t,n,i){var r=t.__brushOption.range,o=HR(e,n,i);Object(g["each"])(r,(function(e){e[0]+=o[0],e[1]+=o[1]})),xR(e,t),CR(e,{isEnd:!1})}function HR(e,t,n){var i=e.group,r=i.transformCoordToLocal(t,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function zR(e,t,n){var i=SR(e,t);return i&&i!==rR?i.clipPath(n,e._transform):Object(g["clone"])(n)}function BR(e){var t=oR(e[0][0],e[1][0]),n=oR(e[0][1],e[1][1]),i=aR(e[0][0],e[1][0]),r=aR(e[0][1],e[1][1]);return{x:t,y:n,width:i-t,height:r-n}}function VR(e,t,n){if(e._brushType&&!KR(e,t.offsetX,t.offsetY)){var i=e._zr,r=e._covers,o=MR(e,t,n);if(!e._dragging)for(var a=0;ai.getWidth()||n<0||n>i.getHeight()}var ZR={lineX:JR(0),lineY:JR(1),rect:{createCover:function(e,t){function n(e){return e}return LR({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=DR(e);return jR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,i){OR(e,t,n,i)},updateCommon:IR,contain:WR},polygon:{createCover:function(e,t){var n=new Ni;return n.add(new Zm({name:"main",style:ER(t),silent:!0})),n},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new qm({name:"main",draggable:!0,drift:Object(g["curry"])(FR,e,t),ondragend:Object(g["curry"])(CR,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,i){t.childAt(0).setShape({points:zR(e,t,n)})},updateCommon:IR,contain:WR}};function JR(e){return{createCover:function(t,n){return LR({toRectRange:function(t){var n=[t,[0,100]];return e&&n.reverse(),n},fromRectRange:function(t){return t[e]}},t,n,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var n=DR(t),i=oR(n[0][e],n[1][e]),r=aR(n[0][e],n[1][e]);return[i,r]},updateCoverShape:function(t,n,i,r){var o,a=SR(t,n);if(a!==rR&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[i,o];e&&l.reverse(),OR(t,n,l,r)},updateCommon:IR,contain:WR}}var QR=gR;function eF(e){return e=iF(e),function(t){return Xg(t,e)}}function tF(e,t){return e=iF(e),function(n){var i=null!=t?t:n,r=i?e.width:e.height,o=i?e.x:e.y;return[o,o+(r||0)]}}function nF(e,t,n){var i=iF(e);return function(e,r){return i.contain(r[0],r[1])&&!mI(e,t,n)}}function iF(e){return Be.create(e)}var rF=["axisLine","axisTickLabel","axisName"],oF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new QR(n.getZr())).on("brush",g["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,i){if(!aF(e,t,i)){this.axisModel=e,this.api=n,this.group.removeAll();var r=this._axisGroup;if(this._axisGroup=new Ni,this.group.add(this._axisGroup),e.get("show")){var o=lF(e,t),a=o.coordinateSystem,s=e.getAreaSelectStyle(),l=s.width,u=e.axis.dim,c=a.getAxisLayout(u),d=g["extend"]({strokeContainThreshold:l},c),h=new aO(e,d);g["each"](rF,h.add,h),this._axisGroup.add(h.getGroup()),this._refreshBrushController(d,s,e,o,l,n),qg(r,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,i,r,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Be.create({x:a[0],y:-r/2,width:s,height:r});u.x-=l,u.width+=2*l,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,x:e.position[0],y:e.position[1]}).setPanels([{panelId:"pl",clipPath:eF(u),isTargetByCursor:nF(u,o,i),getLinearBrushOtherExtent:tF(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(sF(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,i=n.axis,r=g["map"](t,(function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:r})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Gf);function aF(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function sF(e){var t=e.axis;return g["map"](e.activeIntervals,(function(e){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(e[0],!0),t.dataToCoord(e[1],!0)]}}))}function lF(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var uF=oF,cF={type:"axisAreaSelect",event:"axisAreaSelected"};function dF(e){e.registerAction(cF,(function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},(function(t){t.axis.model.setActiveIntervals(e.intervals)}))})),e.registerAction("parallelAxisExpand",(function(e,t){t.eachComponent({mainType:"parallel",query:e},(function(t){t.setAxisExpand(e)}))}))}var hF={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function pF(e){e.registerComponentView(EN),e.registerComponentModel(PN),e.registerCoordinateSystem("parallel",tR),e.registerPreprocessor(CN),e.registerComponentModel(iR),e.registerComponentView(uF),TL(e,"parallel",iR,hF),dF(e)}function fF(e){fx(pF),e.registerChartView(yN),e.registerSeriesModel(wN),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,kN)}var mF=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),gF=function(e){function t(t){return e.call(this,t)||this}return f(t,e),t.prototype.getDefaultShape=function(){return new mF},t.prototype.buildPath=function(e,t){var n=t.extent;e.moveTo(t.x1,t.y1),e.bezierCurveTo(t.cpx1,t.cpy1,t.cpx2,t.cpy2,t.x2,t.y2),"vertical"===t.orient?(e.lineTo(t.x2+n,t.y2),e.bezierCurveTo(t.cpx2+n,t.cpy2,t.cpx1+n,t.cpy1,t.x1+n,t.y1)):(e.lineTo(t.x2,t.y2+n),e.bezierCurveTo(t.cpx2,t.cpy2+n,t.cpx1,t.cpy1+n,t.x1,t.y1+n)),e.closePath()},t.prototype.highlight=function(){Dl(this)},t.prototype.downplay=function(){Ll(this)},t}(ss),vF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return f(t,e),t.prototype.render=function(e,t,n){var i=this,r=e.getGraph(),o=this.group,a=e.layoutInfo,s=a.width,l=a.height,u=e.getData(),c=e.getData("edge"),d=e.get("orient");this._model=e,o.removeAll(),o.x=a.x,o.y=a.y,r.eachEdge((function(t){var n=new gF,i=Vs(n);i.dataIndex=t.dataIndex,i.seriesIndex=e.seriesIndex,i.dataType="edge";var r,a,u,h,p,f,m,v,y=t.getModel(),_=y.getModel("lineStyle"),b=_.get("curveness"),x=t.node1.getLayout(),w=t.node1.getModel(),M=w.get("localX"),S=w.get("localY"),k=t.node2.getLayout(),C=t.node2.getModel(),T=C.get("localX"),D=C.get("localY"),L=t.getLayout();switch(n.shape.extent=Math.max(1,L.dy),n.shape.orient=d,"vertical"===d?(r=(null!=M?M*s:x.x)+L.sy,a=(null!=S?S*l:x.y)+x.dy,u=(null!=T?T*s:k.x)+L.ty,h=null!=D?D*l:k.y,p=r,f=a*(1-b)+h*b,m=u,v=a*b+h*(1-b)):(r=(null!=M?M*s:x.x)+x.dx,a=(null!=S?S*l:x.y)+L.sy,u=null!=T?T*s:k.x,h=(null!=D?D*l:k.y)+L.ty,p=r*(1-b)+u*b,f=a,m=r*b+u*(1-b),v=h),n.setShape({x1:r,y1:a,x2:u,y2:h,cpx1:p,cpy1:f,cpx2:m,cpy2:v}),n.useStyle(_.getItemStyle()),n.style.fill){case"source":n.style.fill=t.node1.getVisual("color"),n.style.decal=t.node1.getVisual("style").decal;break;case"target":n.style.fill=t.node2.getVisual("color"),n.style.decal=t.node2.getVisual("style").decal;break;case"gradient":var O=t.node1.getVisual("color"),I=t.node2.getVisual("color");Object(g["isString"])(O)&&Object(g["isString"])(I)&&(n.style.fill=new mg(0,0,+("horizontal"===d),+("vertical"===d),[{color:O,offset:0},{color:I,offset:1}]))}var A=y.getModel("emphasis");Zl(n,y,"lineStyle",(function(e){return e.getItemStyle()})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var E=A.get("focus");Ul(n,"adjacency"===E?t.getAdjacentDataIndices():E,A.get("blurScope"),A.get("disabled")),Vs(n).dataType="edge"})),r.eachNode((function(t){var n=t.getLayout(),i=t.getModel(),r=i.get("localX"),a=i.get("localY"),c=i.getModel("emphasis"),d=new Ss({shape:{x:null!=r?r*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy},style:i.getModel("itemStyle").getItemStyle(),z2:10});_u(d,bu(i),{labelFetcher:e,labelDataIndex:t.dataIndex,defaultText:t.id}),d.disableLabelAnimation=!0,d.setStyle("fill",t.getVisual("color")),d.setStyle("decal",t.getVisual("style").decal),Zl(d,i),o.add(d),u.setItemGraphicEl(t.dataIndex,d),Vs(d).dataType="node";var h=c.get("focus");Ul(d,"adjacency"===h?t.getAdjacentDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,r){var o=u.getItemModel(r);o.get("draggable")&&(t.drift=function(t,o){i._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(r),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){i._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(yF(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(pv);function yF(e,t,n){var i=new Ss({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return uu(i,{shape:{width:e.width+20}},t,n),i}var _F=vF,bF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links,i=e.data||e.nodes,r=e.levels;this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[r[a].depth]=new Wu(r[a],this,t));if(i&&n){var s=RY(i,n,this,!0,l);return s.data}function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getData().getItemLayout(t);if(i){var r=i.depth,o=n.levelModels[r];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,i=n.getGraph().getEdgeByIndex(t),r=i.node1.getLayout();if(r){var o=r.depth,a=n.levelModels[o];a&&(e.parentModel=a)}return e}))}},t.prototype.setNodePosition=function(e,t){var n=this.option.data||this.option.nodes,i=n[e];i.localX=t[0],i.localY=t[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,t,n){function i(e){return isNaN(e)||null==e}if("edge"===n){var r=this.getDataParams(e,n),o=r.data,a=r.value,s=o.source+" -- "+o.target;return ff("nameValue",{name:s,value:a,noValue:i(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return ff("nameValue",{name:null!=c?c+"":null,value:u,noValue:i(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var i=e.prototype.getDataParams.call(this,t,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(t),o=r.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}($f),xF=bF;function wF(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),i=e.get("nodeGap"),r=MF(e,t);e.layoutInfo=r;var o=r.width,a=r.height,s=e.getGraph(),l=s.nodes,u=s.edges;kF(l);var c=g["filter"](l,(function(e){return 0===e.getLayout().value})),d=0!==c.length?0:e.get("layoutIterations"),h=e.get("orient"),p=e.get("nodeAlign");SF(l,u,n,i,o,a,d,h,p)}))}function MF(e,t){return ad(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function SF(e,t,n,i,r,o,a,s,l){CF(e,t,n,r,o,s,l),IF(e,t,o,r,i,a,s),$F(e,s)}function kF(e){g["each"](e,(function(e){var t=BF(e.outEdges,zF),n=BF(e.inEdges,zF),i=e.getValue()||0,r=Math.max(t,n,i);e.setLayout({value:r},!0)}))}function CF(e,t,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],d=0,h=0;h=0;v&&g.depth>p&&(p=g.depth),m.setLayout({depth:v?g.depth:d},!0),"vertical"===o?m.setLayout({dy:n},!0):m.setLayout({dx:n},!0);for(var y=0;yd-1?p:d-1;a&&"left"!==a&&DF(e,a,o,M);var S="vertical"===o?(r-n)/M:(i-n)/M;OF(e,S,o)}function TF(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function DF(e,t,n,i){if("right"===t){var r=[],o=e,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,PF(s,l,a),jF(s,r,n,i,a),VF(s,l,a),jF(s,r,n,i,a)}function AF(e,t){var n=[],i="vertical"===t?"y":"x",r=ro(e,(function(e){return e.getLayout()[i]}));return r.keys.sort((function(e,t){return e-t})),g["each"](r.keys,(function(e){n.push(r.buckets.get(e))})),n}function EF(e,t,n,i,r,o){var a=1/0;g["each"](e,(function(e){var t=e.length,s=0;g["each"](e,(function(e){s+=e.getLayout().value}));var l="vertical"===o?(i-(t-1)*r)/s:(n-(t-1)*r)/s;l0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;var p="vertical"===r?i:n;if(l=u-t-p,l>0){a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(h=c-2;h>=0;--h)s=e[h],l=s.getLayout()[o]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function PF(e,t,n){g["each"](e.slice().reverse(),(function(e){g["each"](e,(function(e){if(e.outEdges.length){var i=BF(e.outEdges,YF,n)/BF(e.outEdges,zF);if(isNaN(i)){var r=e.outEdges.length;i=r?BF(e.outEdges,NF,n)/r:0}if("vertical"===n){var o=e.getLayout().x+(i-HF(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(i-HF(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function YF(e,t){return HF(e.node2,t)*e.getValue()}function NF(e,t){return HF(e.node2,t)}function RF(e,t){return HF(e.node1,t)*e.getValue()}function FF(e,t){return HF(e.node1,t)}function HF(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function zF(e){return e.getValue()}function BF(e,t,n){var i=0,r=e.length,o=-1;while(++or&&(r=t)})),g["each"](n,(function(t){var n=new Gj({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:e.get("color")}),o=n.mapValueToVisual(t.getLayout().value),a=t.getModel().get(["itemStyle","color"]);null!=a?(t.setVisual("color",a),t.setVisual("style",{fill:a})):(t.setVisual("color",o),t.setVisual("style",{fill:o}))}))}}))}function GF(e){e.registerChartView(_F),e.registerSeriesModel(xF),e.registerLayout(wF),e.registerVisual(WF),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},(function(e,t){t.eachComponent({mainType:"series",subType:"sankey",query:e},(function(t){t.setNodePosition(e.dataIndex,[e.localX,e.localY])}))}))}var UF=function(){function e(){}return e.prototype.getInitialData=function(e,t){var n,i,r=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),i=!0):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],h=[r,o],p=h[u].get("type"),f=h[1-u].get("type"),m=e.data;if(m&&i){var v=[];g["each"](m,(function(e,t){var n;g["isArray"](e)?(n=e.slice(),e.unshift(t)):g["isArray"](e.value)?(n=g["extend"]({},e),n.value=n.value.slice(),e.value.unshift(t)):n=e,v.push(n)})),e.data=v}var y=this.defaultValueDimensions,_=[{name:c,type:wx(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:wx(f),dimsDef:y.slice()}];return tL(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:g["curry"](Ad,_,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),qF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return f(t,e),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}($f);Object(g["mixin"])(qF,UF,!0);var XF=qF,KF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===e.get("layout")?1:0;i.diff(o).add((function(e){if(i.hasValue(e)){var t=i.getItemLayout(e),n=QF(t,i,e,a,!0);i.setItemGraphicEl(e,n),r.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var s=i.getItemLayout(e);n?(fu(n),eH(s,n,i,e)):n=QF(s,i,e,a),r.add(n),i.setItemGraphicEl(e,n)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=i},t.prototype.remove=function(e){var t=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(e){e&&t.remove(e)}))},t.type="boxplot",t}(pv),ZF=function(){function e(){}return e}(),JF=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return f(t,e),t.prototype.getDefaultShape=function(){return new ZF},t.prototype.buildPath=function(e,t){var n=t.points,i=0;for(e.moveTo(n[i][0],n[i][1]),i++;i<4;i++)e.lineTo(n[i][0],n[i][1]);for(e.closePath();im){var x=[y,b];i.push(x)}}}return{boxData:n,outliers:i}}var cH={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==wd){var n="";0,Jd(n)}var i=uH(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function dH(e){e.registerSeriesModel(XF),e.registerChartView(nH),e.registerVisual(iH),e.registerLayout(oH),e.registerTransform(cH)}var hH=["color","borderColor"],pH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,t,n){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,t,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;null!=this._isLargeDraw&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e){var t=e.getData(),n=this._data,i=this.group,r=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&vH(s,a))return;var l=gH(a,n,!0);uu(l,{shape:{points:a.ends}},e,n),yH(l,t,n,r),i.add(l),t.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(t.hasValue(a)){var c=t.getItemLayout(a);o&&vH(s,c)?i.remove(u):(u?(lu(u,{shape:{points:c.ends}},e,a),fu(u)):u=gH(c,a),yH(u,t,a,r),i.add(u),t.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),wH(e,this.group);var t=e.get("clip",!0)?OT(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,i=t.getData(),r=i.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=i.getItemLayout(n),a=gH(o,n);yH(a,i,n,r),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){wH(t,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(pv),fH=function(){function e(){}return e}(),mH=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return f(t,e),t.prototype.getDefaultShape=function(){return new fH},t.prototype.buildPath=function(e,t){var n=t.points;this.__simpleBox?(e.moveTo(n[4][0],n[4][1]),e.lineTo(n[6][0],n[6][1])):(e.moveTo(n[0][0],n[0][1]),e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]),e.lineTo(n[3][0],n[3][1]),e.closePath(),e.moveTo(n[4][0],n[4][1]),e.lineTo(n[5][0],n[5][1]),e.moveTo(n[6][0],n[6][1]),e.lineTo(n[7][0],n[7][1]))},t}(ss);function gH(e,t,n){var i=e.ends;return new mH({shape:{points:n?_H(i,e):i},z2:100})}function vH(e,t){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",e>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(hH);t.useStyle(o),t.style.fill=null,t.style.stroke=r}var SH=pH,kH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return f(t,e),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,t,n){var i=t.getItemLayout(e);return i&&n.rect(i.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}($f);Object(g["mixin"])(kH,UF,!0);var CH=kH;function TH(e){e&&g["isArray"](e.series)&&g["each"](e.series,(function(e){g["isObject"](e)&&"k"===e.type&&(e.type="candlestick")}))}var DH=["itemStyle","borderColor"],LH=["itemStyle","borderColor0"],OH=["itemStyle","color"],IH=["itemStyle","color0"],AH={seriesType:"candlestick",plan:Uf(),performRawSeries:!0,reset:function(e,t){function n(e,t){return t.get(e>0?OH:IH)}function i(e,t){return t.get(e>0?DH:LH)}if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(e,t){var r;while(null!=(r=e.next())){var o=t.getItemModel(r),a=t.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill;var l=t.ensureUniqueItemVisual(r,"style");Object(g["extend"])(l,s)}}}}}},EH=AH,jH={seriesType:"candlestick",plan:Uf(),reset:function(e){var t=e.coordinateSystem,n=e.getData(),i=YH(e,n),r=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[r])),l=Object(g["map"])(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],d=l[2],h=l[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(s<0||l.length<4))return{progress:e.pipelineContext.large?f:p};function p(e,n){var a,l=n.getStore();while(null!=(a=e.next())){var p=l.get(s,a),f=l.get(u,a),m=l.get(c,a),g=l.get(d,a),v=l.get(h,a),y=Math.min(f,m),_=Math.max(f,m),b=k(y,p),x=k(_,p),w=k(g,p),M=k(v,p),S=[];C(S,x,0),C(S,b,1),S.push(D(M),D(x),D(w),D(b)),n.setItemLayout(a,{sign:PH(l,a,f,m,c),initBaseline:f>m?x[o]:b[o],ends:S,brushRect:T(g,v,p)})}function k(e,n){var i=[];return i[r]=n,i[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(i)}function C(e,t,n){var o=t.slice(),a=t.slice();o[r]=Bg(o[r]+i/2,1,!1),a[r]=Bg(a[r]-i/2,1,!0),n?e.push(o,a):e.push(a,o)}function T(e,t,n){var a=k(e,n),s=k(t,n);return a[r]-=i/2,s[r]-=i/2,{x:a[0],y:a[1],width:o?i:s[0]-a[0],height:o?s[1]-a[1]:i}}function D(e){return e[r]=Bg(e[r],1),e}}function f(e,n){var i,a,l=Yw(4*e.count),p=0,f=[],m=[],g=n.getStore();while(null!=(a=e.next())){var v=g.get(s,a),y=g.get(u,a),_=g.get(c,a),b=g.get(d,a),x=g.get(h,a);isNaN(v)||isNaN(b)||isNaN(x)?(l[p++]=NaN,p+=3):(l[p++]=PH(g,a,y,_,c),f[r]=v,f[o]=b,i=t.dataToPoint(f,null,m),l[p++]=i?i[0]:NaN,l[p++]=i?i[1]:NaN,f[o]=x,i=t.dataToPoint(f,null,m),l[p++]=i?i[1]:NaN)}n.setLayout("largePoints",l)}}};function PH(e,t,n,i,r){var o;return o=n>i?-1:n0?e.get(r,t-1)<=i?1:-1:1,o}function YH(e,t){var n,i=e.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=Qi(Object(g["retrieve2"])(e.get("barMaxWidth"),r),r),a=Qi(Object(g["retrieve2"])(e.get("barMinWidth"),1),r),s=e.get("barWidth");return null!=s?Qi(s,r):Math.max(Math.min(r/2,o),a)}var NH=jH;function RH(e){e.registerChartView(SH),e.registerSeriesModel(CH),e.registerPreprocessor(TH),e.registerVisual(EH),e.registerLayout(NH)}function FH(e,t){var n=t.rippleEffectColor||t.color;e.eachChild((function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?n:null,fill:"fill"===t.brushType?n:null}})}))}var HH=function(e){function t(t,n){var i=e.call(this)||this,r=new uT(t,n),o=new Ni;return i.add(r),i.add(o),i.updateData(t,n),i}return f(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,i=e.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var c=void 0;c=g["isFunction"](u)?u(n):u,i.__t>0&&(c=-o*i.__t),this._animateSymbol(i,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,i,r){if(t>0){e.__t=0;var o=this,a=e.animate("",i).when(r?2*t:t,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));i||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return j(e.__p1,e.__cp1)+j(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},t.prototype.updateData=function(e,t,n){this.childAt(0).updateData(e,t,n),this._updateEffectSymbol(e,t)},t.prototype._updateSymbolPosition=function(e){var t=e.__p1,n=e.__p2,i=e.__cp1,r=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=zt,l=Bt;o[0]=s(t[0],i[0],n[0],r),o[1]=s(t[1],i[1],n[1],r);var u=e.__t<1?l(t[0],i[0],n[0],r):l(n[0],i[0],t[0],1-r),c=e.__t<1?l(t[1],i[1],n[1],r):l(n[1],i[1],t[1],1-r);e.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==e.__lastT&&e.__lastT=0;o--)if(i[o]<=t)break;o=Math.min(o,r-2)}else{for(o=a;ot)break;o=Math.min(o-1,r-2)}var l=(t-i[o])/(i[o+1]-i[o]),u=n[o],c=n[o+1];e.x=u[0]*(1-l)+l*c[0],e.y=u[1]*(1-l)+l*c[1];var d=e.__t<1?c[0]-u[0]:u[0]-c[0],h=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(h,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(qH),JH=ZH,QH=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),ez=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return f(t,e),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QH},t.prototype.buildPath=function(e,t){var n,i=t.segs,r=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(i[n++],i[n++]);for(var a=1;a0){var d=(s+u)/2-(l-c)*r,h=(l+c)/2-(u-s)*r;e.quadraticCurveTo(d,h,u,c)}else e.lineTo(u,c)}this.incremental&&(this._off=n,this.notClear=!0)},t.prototype.findDataIndex=function(e,t){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],d=1;d0){var f=(u+h)/2-(c-p)*r,m=(c+p)/2-(h-u)*r;if(Ra(u,c,f,m,h,p,o,e,t))return a}else if(Ya(u,c,h,p,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),i=this.getBoundingRect();if(e=n[0],t=n[1],i.contain(e,t)){var r=this.hoverDataIdx=this.findDataIndex(e,t);return r>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,i=1/0,r=1/0,o=-1/0,a=-1/0,s=0;s0&&(o.dataIndex=n+e.__startIndex)}))},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),nz=tz,iz={seriesType:"lines",plan:Uf(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),i=e.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=e.get("clip",!0)&&OT(e.coordinateSystem,!1,e);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var i=e.getData(),r=this._updateLineDraw(i,e);r.incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},t.prototype.incrementalRender=function(e,t,n){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,t,n){var i=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=rz.reset(e,t,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,i=this._showEffect(t),r=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&i===this._hasEffet&&r===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new nz:new bY(r?i?JH:KH:i?qH:fY),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=a),this.group.add(n.group),n},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var t=e.getZr(),n="svg"===t.painter.getType();n||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},t.prototype.dispose=function(e,t){this.remove(e,t)},t.type="lines",t}(pv),az=oz,sz="undefined"===typeof Uint32Array?Array:Uint32Array,lz="undefined"===typeof Float64Array?Array:Float64Array;function uz(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Object(g["map"])(t,(function(e){var t=[e[0].coord,e[1].coord],n={coords:t};return e[0].name&&(n.fromName=e[0].name),e[1].name&&(n.toName=e[1].name),Object(g["mergeAll"])([n,e[0],e[1]])})))}var cz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return f(t,e),t.prototype.init=function(t){t.data=t.data||[],uz(t);var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(t){if(uz(t),t.data){var n=this._processFlatCoordsArray(t.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(t.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=Object(g["concatArray"])(this._flatCoords,t.flatCoords),this._flatCoordsOffset=Object(g["concatArray"])(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var t=this.getData().getItemModel(e),n=t.option instanceof Array?t.option:t.getShallow("coords");return n},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,t){if(this._flatCoordsOffset){for(var n=this._flatCoordsOffset[2*e],i=this._flatCoordsOffset[2*e+1],r=0;r ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),t=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&t>0?t+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}($f),dz=cz;function hz(e){return e instanceof Array||(e=[e,e]),e}var pz={seriesType:"lines",reset:function(e){var t=hz(e.get("symbol")),n=hz(e.get("symbolSize")),i=e.getData();function r(e,t){var n=e.getItemModel(t),i=hz(n.getShallow("symbol",!0)),r=hz(n.getShallow("symbolSize",!0));i[0]&&e.setItemVisual(t,"fromSymbol",i[0]),i[1]&&e.setItemVisual(t,"toSymbol",i[1]),r[0]&&e.setItemVisual(t,"fromSymbolSize",r[0]),r[1]&&e.setItemVisual(t,"toSymbolSize",r[1])}return i.setVisual("fromSymbol",t&&t[0]),i.setVisual("toSymbol",t&&t[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?r:null}}},fz=pz;function mz(e){e.registerChartView(az),e.registerSeriesModel(dz),e.registerLayout(rz),e.registerVisual(fz)}var gz=256,vz=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=hi["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),h=e.length;c.width=t,c.height=n;for(var p=0;p0){var T=o(y)?s:l;y>0&&(y=y*k+M),b[x++]=T[C],b[x++]=T[C+1],b[x++]=T[C+2],b[x++]=T[C+3]*y*256}else x+=4}return d.putImageData(_,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=hi["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var i=e.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,i=n[t]||(n[t]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},e}(),yz=vz;function _z(e,t,n){var i=e[1]-e[0];t=g["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}}));var r=t.length,o=0;return function(e){var i;for(i=o;i=0;i--){a=t[i].interval;if(a[0]<=e&&e<=a[1]){o=i;break}}return i>=0&&i=t[0]&&e<=t[1]}}function xz(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var wz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(i=t)}))})),this._progressiveEls=null,this.group.removeAll();var r=e.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):xz(r)&&this._renderOnGeo(r,e,i,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,i){var r=t.coordinateSystem;r&&(xz(r)?this.render(t,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){rv(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,i,r){var o,a,s,l,u=e.coordinateSystem,c=IT(u,"cartesian2d");if(c){var d=u.getAxis("x"),h=u.getAxis("y");0,o=d.getBandWidth()+.5,a=h.getBandWidth()+.5,s=d.scale.getExtent(),l=h.scale.getExtent()}for(var p=this.group,f=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),g=e.getModel(["blur","itemStyle"]).getItemStyle(),v=e.getModel(["select","itemStyle"]).getItemStyle(),y=e.get(["itemStyle","borderRadius"]),_=bu(e),b=e.getModel("emphasis"),x=b.get("focus"),w=b.get("blurScope"),M=b.get("disabled"),S=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],k=n;ks[1]||Ll[1])continue;var O=u.dataToPoint([D,L]);C=new Ss({shape:{x:O[0]-o/2,y:O[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(S[1],k)))continue;C=new Ss({z2:1,shape:u.dataToRect([f.get(S[0],k)]).contentShape,style:T})}if(f.hasItemOption){var I=f.getItemModel(k),A=I.getModel("emphasis");m=A.getModel("itemStyle").getItemStyle(),g=I.getModel(["blur","itemStyle"]).getItemStyle(),v=I.getModel(["select","itemStyle"]).getItemStyle(),y=I.get(["itemStyle","borderRadius"]),x=A.get("focus"),w=A.get("blurScope"),M=A.get("disabled"),_=bu(I)}C.shape.r=y;var E=e.getRawValue(k),j="-";E&&null!=E[2]&&(j=E[2]+""),_u(C,_,{labelFetcher:e,labelDataIndex:k,defaultOpacity:T.opacity,defaultText:j}),C.ensureState("emphasis").style=m,C.ensureState("blur").style=g,C.ensureState("select").style=v,Ul(C,x,w,M),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),p.add(C),f.setItemGraphicEl(k,C),this._progressiveEls&&this._progressiveEls.push(C)}},t.prototype._renderOnGeo=function(e,t,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new yz;s.blurSize=t.get("blurSize"),s.pointSize=t.get("pointSize"),s.minOpacity=t.get("minOpacity"),s.maxOpacity=t.get("maxOpacity");var l=e.getViewRect().clone(),u=e.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),d=Math.max(l.y,0),h=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=h-c,m=p-d,g=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(g,(function(t,n,i){var r=e.dataToPoint([t,n]);return r[0]-=c,r[1]-=d,r.push(i),r})),y=n.getExtent(),_="visualMap.continuous"===n.type?bz(y,n.option.range):_z(y,n.getPieceList(),n.option.selected);s.update(v,f,m,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var b=new ms({style:{width:f,height:m,x:c,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(pv),Mz=wz,Sz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.getInitialData=function(e,t){return pw(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=ph.get(this.get("coordinateSystem"));if(e&&e.dimensions)return"lng"===e.dimensions[0]&&"lat"===e.dimensions[1]},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}($f),kz=Sz;function Cz(e){e.registerChartView(Mz),e.registerSeriesModel(kz)}var Tz=["itemStyle","borderWidth"],Dz=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Lz=new _m,Oz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i=this.group,r=e.getData(),o=this._data,a=e.coordinateSystem,s=a.getBaseAxis(),l=s.isHorizontal(),u=a.master.getRect(),c={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:e,coordSys:a,coordSysExtent:[[u.x,u.x+u.width],[u.y,u.y+u.height]],isHorizontal:l,valueDim:Dz[+l],categoryDim:Dz[1-+l]};return r.diff(o).add((function(e){if(r.hasValue(e)){var t=Bz(r,e),n=Iz(r,e,t,c),o=Wz(r,c,n);r.setItemGraphicEl(e,o),i.add(o),Zz(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var a=Bz(r,e),s=Iz(r,e,a,c),l=qz(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(e,null),n=null),n?Gz(n,c,s):n=Wz(r,c,s,!0),r.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,i.add(n),Zz(n,c,s)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&Uz(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute(),this._data=r,this.group},t.prototype.remove=function(e,t){var n=this.group,i=this._data;e.get("animation")?i&&i.eachItemGraphicEl((function(t){Uz(i,Vs(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(pv);function Iz(e,t,n,i){var r=e.getItemLayout(t),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,d=n.isAnimationEnabled(),h={dataIndex:t,layout:r,itemModel:n,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:d?n:null,hoverScale:d&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};Az(n,o,r,i,h),jz(e,t,r,o,a,h.boundingLength,h.pxSign,c,i,h),Pz(n,h.symbolScale,u,i,h);var p=h.symbolSize,f=Dy(n.get("symbolOffset"),p);return Yz(n,p,r,o,a,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function Az(e,t,n,i,r){var o,a=i.valueDim,s=e.get("symbolBoundingData"),l=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(g["isArray"](s)){var d=[Ez(l,s[0])-u,Ez(l,s[1])-u];d[1]0?1:-1}function Ez(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function jz(e,t,n,i,r,o,a,s,l,u){var c,d=l.valueDim,h=l.categoryDim,p=Math.abs(n[h.wh]),f=e.getItemVisual(t,"symbolSize");c=g["isArray"](f)?f.slice():null==f?["100%","100%"]:[f,f],c[h.index]=Qi(c[h.index],p),c[d.index]=Qi(c[d.index],i?p:Math.abs(o)),u.symbolSize=c;var m=u.symbolScale=[c[0]/s,c[1]/s];m[d.index]*=(l.isHorizontal?-1:1)*a}function Pz(e,t,n,i,r){var o=e.get(Tz)||0;o&&(Lz.attr({scaleX:t[0],scaleY:t[1],rotation:n}),Lz.updateTransform(),o/=Lz.getLineScale(),o*=t[i.valueDim.index]),r.valueLineWidth=o||0}function Yz(e,t,n,i,r,o,a,s,l,u,c,d){var h=c.categoryDim,p=c.valueDim,f=d.pxSign,m=Math.max(t[p.index]+s,0),v=m;if(i){var y=Math.abs(l),_=g["retrieve"](e.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var x=Qi(_,t[p.index]),w=Math.max(m+2*x,0),M=b?0:2*x,S=_r(i),k=S?i:Jz((y+M)/w),C=y-k*m;x=C/2/(b?k:Math.max(k-1,1)),w=m+2*x,M=b?0:2*x,S||"fixed"===i||(k=u?Jz((Math.abs(u)+M)/w):0),v=k*w-M,d.repeatTimes=k,d.symbolMargin=x}var T=f*(v/2),D=d.pathPosition=[];D[h.index]=n[h.wh]/2,D[p.index]="start"===a?T:"end"===a?l-T:l/2,o&&(D[0]+=o[0],D[1]+=o[1]);var L=d.bundlePosition=[];L[h.index]=n[h.xy],L[p.index]=n[p.xy];var O=d.barRectShape=g["extend"]({},n);O[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(D[p.index]+T)),O[h.wh]=n[h.wh];var I=d.clipShape={};I[h.xy]=-n[h.xy],I[h.wh]=c.ecSize[h.wh],I[p.xy]=0,I[p.wh]=n[p.wh]}function Nz(e){var t=e.symbolPatternSize,n=Cy(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function Rz(e,t,n,i){var r=e.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=t.valueDim,u=n.repeatTimes||0,c=0,d=o[t.valueDim.index]+a+2*n.symbolMargin;for(Xz(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c0:i<0)&&(r=u-1-e),t[l.index]=d*(r-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Fz(e,t,n,i){var r=e.__pictorialBundle,o=e.__pictorialMainPath;o?Kz(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=e.__pictorialMainPath=Nz(n),r.add(o),Kz(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function Hz(e,t,n){var i=g["extend"]({},t.barRectShape),r=e.__pictorialBarRect;r?Kz(r,null,{shape:i},t,n):(r=e.__pictorialBarRect=new Ss({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),r.disableMorphing=!0,e.add(r))}function zz(e,t,n,i){if(n.symbolClip){var r=e.__pictorialClipPath,o=g["extend"]({},n.clipShape),s=t.valueDim,l=n.animationModel,u=n.dataIndex;if(r)lu(r,{shape:o},l,u);else{o[s.wh]=0,r=new Ss({shape:o}),e.__pictorialBundle.setClipPath(r),e.__pictorialClipPath=r;var c={};c[s.wh]=n.clipShape[s.wh],a[i?"updateProps":"initProps"](r,{shape:c},l,u)}}}function Bz(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=Vz,n.isAnimationEnabled=$z,n}function Vz(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function $z(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Wz(e,t,n,i){var r=new Ni,o=new Ni;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Rz(r,t,n):Fz(r,t,n),Hz(r,n,i),zz(r,t,n,i),r.__pictorialShapeStr=qz(e,n),r.__pictorialSymbolMeta=n,r}function Gz(e,t,n){var i=n.animationModel,r=n.dataIndex,o=e.__pictorialBundle;lu(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?Rz(e,t,n,!0):Fz(e,t,n,!0),Hz(e,n,!0),zz(e,t,n,!0)}function Uz(e,t,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];Xz(i,(function(e){o.push(e)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),g["each"](o,(function(e){du(e,{scaleX:0,scaleY:0},n,t,(function(){i.parent&&i.parent.remove(i)}))})),e.setItemGraphicEl(t,null)}function qz(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function Xz(e,t,n){g["each"](e.__pictorialBundle.children(),(function(i){i!==e.__pictorialBarRect&&t.call(n,i)}))}function Kz(e,t,n,i,r,o){t&&e.attr(t),i.symbolClip&&!r?n&&e.attr(n):n&&a[r?"updateProps":"initProps"](e,n,i.animationModel,i.dataIndex,o)}function Zz(e,t,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),d=o.get("blurScope"),h=o.get("scale");Xz(e,(function(e){if(e instanceof ms){var t=e.style;e.useStyle(g["extend"]({image:t.image,x:t.x,y:t.y,width:t.width,height:t.height},n.style))}else e.useStyle(n.style);var i=e.ensureState("emphasis");i.style=a,h&&(i.scaleX=1.1*e.scaleX,i.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var p=t.valueDim.posDesc[+(n.boundingLength>0)],f=e.__pictorialBarRect;_u(f,bu(r),{labelFetcher:t.seriesModel,labelDataIndex:i,defaultText:oT(t.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Ul(e,c,d,o.get("disabled"))}function Jz(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var Qz=Oz,eB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return f(t,e),t.prototype.getInitialData=function(t){return t.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Ku(iD.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(iD),tB=eB;function nB(e){e.registerChartView(Qz),e.registerSeriesModel(tB),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(g["curry"])(Gw,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Uw("pictorialBar"))}var iB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return f(t,e),t.prototype.render=function(e,t,n){var i=e.getData(),r=this,o=this.group,a=e.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(e){return e.name}o.x=0,o.y=l.y+u[0];var d=new yx(this._layersSeries||[],a,c,c),h=[];function p(t,n,s){var l=r._layers;if("remove"!==t){for(var u,c,d=[],p=[],f=a[n].indices,m=0;mo&&(o=s),i.push(s)}for(var u=0;uo&&(o=d)}return{y0:r,max:o}}function hB(e){e.registerChartView(oB),e.registerSeriesModel(lB),e.registerLayout(uB),e.registerProcessor($D("themeRiver"))}var pB=2,fB=4,mB=function(e){function t(t,n,i,r){var o=e.call(this)||this;o.z2=pB,o.textConfig={inside:!0},Vs(o).seriesIndex=n.seriesIndex;var a=new Bs({z2:fB,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,i,r),o}return f(t,e),t.prototype.updateData=function(e,t,n,i,r){this.node=t,t.piece=this,n=n||this._seriesModel,i=i||this._ecModel;var o=this;Vs(o).dataIndex=t.dataIndex;var a=t.getModel(),s=a.getModel("emphasis"),l=t.getLayout(),u=g["extend"]({},l);u.label=null;var c=t.getVisual("style");c.lineJoin="bevel";var d=t.getVisual("decal");d&&(c.decal=m_(d,r));var h=ZD(a.getModel("itemStyle"),u,!0);g["extend"](u,h),g["each"](Js,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var i=ZD(n,u);i&&(t.shape=i)})),e?(o.setShape(u),o.shape.r=l.r0,lu(o,{shape:{r:l.r}},n,t.dataIndex)):(lu(o,{shape:u},n),fu(o)),o.useStyle(c),this._updateLabel(n);var p=a.getShallow("cursor");p&&o.attr("cursor",p),this._seriesModel=n||this._seriesModel,this._ecModel=i||this._ecModel;var f=s.get("focus"),m="ancestor"===f?t.getAncestorsIndices():"descendant"===f?t.getDescendantIndices():f;Ul(this,m,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),i=n.getModel("label"),r=this.node.getLayout(),o=r.endAngle-r.startAngle,a=(r.startAngle+r.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,h=i.get("minAngle")/180*Math.PI,p=i.get("show")&&!(null!=h&&Math.abs(o)Math.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(_=r.r0+M,a>Math.PI/2&&(S="right")):"right"===S&&(_=r.r-M,a>Math.PI/2&&(S="left")):(_=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),m.style.align=S,m.style.verticalAlign=f(h,"verticalAlign")||"middle",m.x=_*s+r.cx,m.y=_*l+r.cy;var k=f(h,"rotate"),C=0;"radial"===k?(C=-a,C<-Math.PI/2&&(C+=Math.PI)):"tangential"===k?(C=Math.PI/2-a,C>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI)):g["isNumber"](k)&&(C=k*Math.PI/180),m.rotation=C})),c.dirtyStyle()},t}(Hm),gB=mB,vB="sunburstRootToNode",yB="sunburstHighlight",_B="sunburstUnhighlight";function bB(e){e.registerAction({type:vB,update:"updateView"},(function(e,t){function n(t,n){var i=RE(e,[vB],t);if(i){var r=t.getViewRoot();r&&(e.direction=HE(r,i.node)?"rollUp":"drillDown"),t.resetViewRoot(i.node)}}t.eachComponent({mainType:"series",subType:"sunburst",query:e},n)})),e.registerAction({type:yB,update:"none"},(function(e,t,n){function i(t){var n=RE(e,[yB],t);n&&(e.dataIndex=n.node.dataIndex)}e=Object(g["extend"])({},e),t.eachComponent({mainType:"series",subType:"sunburst",query:e},i),n.dispatchAction(Object(g["extend"])(e,{type:"highlight"}))})),e.registerAction({type:_B,update:"updateView"},(function(e,t,n){e=Object(g["extend"])({},e),n.dispatchAction(Object(g["extend"])(e,{type:"downplay"}))}))}var xB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n,i){var r=this;this.seriesModel=e,this.api=n,this.ecModel=t;var o=e.getData(),a=o.tree.root,s=e.getViewRoot(),l=this.group,u=e.get("renderLabelForZeroData"),c=[];s.eachNode((function(e){c.push(e)}));var d=this._oldChildren||[];function h(e,t){function n(e){return e.getId()}function i(n,i){var r=null==n?null:e[n],o=null==i?null:t[i];p(r,o)}0===e.length&&0===t.length||new yx(t,e,n,n).add(i).update(i).remove(g["curry"](i,null)).execute()}function p(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,e,t,n),o.setItemGraphicEl(i.dataIndex,r.piece)):f(r);else if(i){var s=new gB(i,e,t,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}}function f(e){e&&e.piece&&(l.remove(e.piece),e.piece=null)}function m(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,e,t,n):(r.virtualPiece=new gB(i,e,t,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(e){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}h(c,d),m(a,s),this._initEvents(),this._oldChildren=c},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",(function(t){var n=!1,i=e.seriesModel.getViewRoot();i.eachNode((function(i){if(!n&&i.piece&&i.piece===t.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)e._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";Qc(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:vB,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),i=n.getItemLayout(0);if(i){var r=e[0]-i.cx,o=e[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}},t.type="sunburst",t}(pv),wB=xB,MB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return f(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};SB(n);var i=this._levelModels=g["map"](e.levels||[],(function(e){return new Wu(e,this,t)}),this),r=NE.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=r.getNodeByDataIndex(t),o=i[n.depth];return o&&(e.parentModel=o),e}))}return r.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=zE(i,this),n},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getRawData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)},t.prototype.enableAriaDecal=function(){QE(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}($f);function SB(e){var t=0;g["each"](e.children,(function(e){SB(e);var n=e.value;g["isArray"](n)&&(n=n[0]),t+=n}));var n=e.value;g["isArray"](n)&&(n=n[0]),(null==n||isNaN(n))&&(n=t),n<0&&(n=0),g["isArray"](e.value)?e.value[0]=n:e.value=n}var kB=MB,CB=Math.PI/180;function TB(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),i=e.get("radius");g["isArray"](i)||(i=[0,i]),g["isArray"](t)||(t=[t,t]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Qi(t[0],r),l=Qi(t[1],o),u=Qi(i[0],a/2),c=Qi(i[1],a/2),d=-e.get("startAngle")*CB,h=e.get("minAngle")*CB,p=e.getData().tree.root,f=e.getViewRoot(),m=f.depth,v=e.get("sort");null!=v&&DB(f,v);var y=0;g["each"](f.children,(function(e){!isNaN(e.getValue())&&y++}));var _=f.getValue(),b=Math.PI/(_||y)*2,x=f.depth>0,w=f.height-(x?-1:1),M=(c-u)/(w||1),S=e.get("clockwise"),k=e.get("stillShowZeroSum"),C=S?1:-1,T=function(t,n){if(t){var i=n;if(t!==p){var r=t.getValue(),o=0===_&&k?b:r*b;o1)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",t);return e.depth>1&&Object(g["isString"])(o)&&(o=Object(Jt["lift"])(o,(e.depth-1)/(i-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),i=t.tree;i.eachNode((function(r){var o=r.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(r,e,i.root.height));var s=t.ensureUniqueItemVisual(r.dataIndex,"style");Object(g["extend"])(s,a)}))}))}function IB(e){e.registerChartView(wB),e.registerSeriesModel(kB),e.registerLayout(Object(g["curry"])(TB,"sunburst")),e.registerProcessor(Object(g["curry"])($D,"sunburst")),e.registerVisual(OB),bB(e)}var AB={color:"fill",borderColor:"stroke"},EB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},jB=qr(),PB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,t){return pw(null,this)},t.prototype.getDataParams=function(t,n,i){var r=e.prototype.getDataParams.call(this,t,n);return i&&(r.info=jB(i).info),r},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}($f),YB=PB;function NB(e,t){return t=t||[0,0],g["map"](["x","y"],(function(n,i){var r=this.getAxis(n),o=t[i],a=e[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function RB(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:g["bind"](NB,e)}}}function FB(e,t){return t=t||[0,0],g["map"]([0,1],(function(n){var i=t[n],r=e[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function HB(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(t){return e.dataToPoint(t)},size:g["bind"](FB,e)}}}function zB(e,t){var n=this.getAxis(),i=t instanceof Array?t[0]:t,r=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function BB(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(t){return e.dataToPoint(t)},size:Object(g["bind"])(zB,e)}}}function VB(e,t){return t=t||[0,0],g["map"](["Radius","Angle"],(function(n,i){var r="get"+n+"Axis",o=this[r](),a=t[i],s=e[i]/2,l="category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return"Angle"===n&&(l=l*Math.PI/180),l}),this)}function $B(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),i=t.getExtent();return i[0]>i[1]&&i.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=t.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=e.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:g["bind"](VB,e)}}}function WB(e){var t=e.getRect(),n=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(t,n){return e.dataToPoint(t,n)}}}}function GB(e,t,n,i){return e&&(e.legacy||!1!==e.legacy&&!n&&!i&&"tspan"!==t&&("text"===t||Object(g["hasOwn"])(e,"text")))}function UB(e,t,n){var i,r,o,a=e;if("text"===t)o=a;else{o={},Object(g["hasOwn"])(a,"text")&&(o.text=a.text),Object(g["hasOwn"])(a,"rich")&&(o.rich=a.rich),Object(g["hasOwn"])(a,"textFill")&&(o.fill=a.textFill),Object(g["hasOwn"])(a,"textStroke")&&(o.stroke=a.textStroke),Object(g["hasOwn"])(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Object(g["hasOwn"])(a,"fontSize")&&(o.fontSize=a.fontSize),Object(g["hasOwn"])(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Object(g["hasOwn"])(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Object(g["hasOwn"])(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Object(g["hasOwn"])(a,"textPosition")&&(i.position=a.textPosition),Object(g["hasOwn"])(a,"textOffset")&&(i.offset=a.textOffset),Object(g["hasOwn"])(a,"textRotation")&&(i.rotation=a.textRotation),Object(g["hasOwn"])(a,"textDistance")&&(i.distance=a.textDistance)}return qB(o,e),Object(g["each"])(o.rich,(function(e){qB(e,e)})),{textConfig:i,textContent:r}}function qB(e,t){t&&(t.font=t.textFont||t.font,Object(g["hasOwn"])(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Object(g["hasOwn"])(t,"textAlign")&&(e.align=t.textAlign),Object(g["hasOwn"])(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Object(g["hasOwn"])(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Object(g["hasOwn"])(t,"textWidth")&&(e.width=t.textWidth),Object(g["hasOwn"])(t,"textHeight")&&(e.height=t.textHeight),Object(g["hasOwn"])(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Object(g["hasOwn"])(t,"textPadding")&&(e.padding=t.textPadding),Object(g["hasOwn"])(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Object(g["hasOwn"])(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Object(g["hasOwn"])(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Object(g["hasOwn"])(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Object(g["hasOwn"])(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Object(g["hasOwn"])(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Object(g["hasOwn"])(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function XB(e,t,n){var i=e;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=e.fill||"#000";KB(i,t);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=e.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=t.text,i.rich=t.rich,Object(g["each"])(t.rich,(function(e){KB(e,e)})),i}function KB(e,t){t&&(Object(g["hasOwn"])(t,"fill")&&(e.textFill=t.fill),Object(g["hasOwn"])(t,"stroke")&&(e.textStroke=t.fill),Object(g["hasOwn"])(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Object(g["hasOwn"])(t,"font")&&(e.font=t.font),Object(g["hasOwn"])(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Object(g["hasOwn"])(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Object(g["hasOwn"])(t,"fontSize")&&(e.fontSize=t.fontSize),Object(g["hasOwn"])(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Object(g["hasOwn"])(t,"align")&&(e.textAlign=t.align),Object(g["hasOwn"])(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Object(g["hasOwn"])(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Object(g["hasOwn"])(t,"width")&&(e.textWidth=t.width),Object(g["hasOwn"])(t,"height")&&(e.textHeight=t.height),Object(g["hasOwn"])(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Object(g["hasOwn"])(t,"padding")&&(e.textPadding=t.padding),Object(g["hasOwn"])(t,"borderColor")&&(e.textBorderColor=t.borderColor),Object(g["hasOwn"])(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Object(g["hasOwn"])(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Object(g["hasOwn"])(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Object(g["hasOwn"])(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Object(g["hasOwn"])(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Object(g["hasOwn"])(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Object(g["hasOwn"])(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Object(g["hasOwn"])(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Object(g["hasOwn"])(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Object(g["hasOwn"])(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var ZB={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},JB=Object(g["keys"])(ZB),QB=(Object(g["reduce"])(li,(function(e,t){return e[t]=1,e}),{}),li.join(", "),["","style","shape","extra"]),eV=qr();function tV(e,t,n,i,r){var o=e+"Animation",a=au(e,i,r)||{},s=eV(t).userDuring;return a.duration>0&&(a.during=s?Object(g["bind"])(dV,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(g["extend"])(a,n[o]),a}function nV(e,t,n,i){i=i||{};var r=i.dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=eV(e),u=t.style;l.userDuring=t.during;var c={},d={};if(mV(e,t,d),pV("shape",t,d),pV("extra",t,d),!o&&s&&(fV(e,t,c),hV("shape",e,t,c),hV("extra",e,t,c),gV(e,t,u,c)),d.style=u,aV(e,d,a),lV(e,t),s)if(o){var h={};Object(g["each"])(QB,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),Object(g["extend"])(e?h[e]:h,n.enterFrom))}));var p=tV("enter",e,t,n,r);p.duration>0&&e.animateFrom(h,p)}else sV(e,t,r||0,n,c);iV(e,t),u?e.dirty():e.markRedraw()}function iV(e,t){for(var n=eV(e).leaveToProps,i=0;i0&&e.animateFrom(r,o)}}function lV(e,t){Object(g["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(g["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof ea&&Object(g["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof ss&&Object(g["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var uV={},cV={setTransform:function(e,t){return uV.el[e]=t,this},getTransform:function(e){return uV.el[e]},setShape:function(e,t){var n=uV.el,i=n.shape||(n.shape={});return i[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=uV.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=uV.el,i=n.style;return i&&(i[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=uV.el.style;if(t)return t[e]},setExtra:function(e,t){var n=uV.el.extra||(uV.el.extra={});return n[e]=t,this},getExtra:function(e){var t=uV.el.extra;if(t)return t[e]}};function dV(){var e=this,t=e.el;if(t){var n=eV(t).userDuring,i=e.userDuring;n===i?(uV.el=t,i(cV)):e.el=e.userDuring=null}}function hV(e,t,n,i){var r=n[e];if(r){var o,a=t[e];if(a){var s=n.transition,l=r.transition;if(l)if(!o&&(o=i[e]={}),oV(l))Object(g["extend"])(o,a);else for(var u=Cr(l),c=0;c=0){!o&&(o=i[e]={});var p=Object(g["keys"])(a);for(c=0;c=0)){var h=e.getAnimationStyleProps(),p=h?h.style:null;if(p){!r&&(r=i.style={});var f=Object(g["keys"])(n);for(u=0;u=0?t.getStore().get(r,n):void 0}var o=t.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o}function M(n,i){null==i&&(i=s);var r=t.getItemVisual(i,"style"),o=r&&r.fill,a=r&&r.opacity,l=_(i,MV).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(g["isString"])(o)?o:"#000"},c=b(i,MV),d=xu(c,null,u,!1,!0);d.text=c.getShallow("show")?Object(g["retrieve2"])(e.getFormattedLabel(i,MV),oT(t,i)):null;var h=wu(c,u,!1);return C(n,l),l=XB(l,d,h),n&&k(l,n),l.legacy=!0,l}function S(n,i){null==i&&(i=s);var r=_(i,wV).getItemStyle(),o=b(i,wV),a=xu(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(g["retrieve3"])(e.getFormattedLabel(i,wV),e.getFormattedLabel(i,MV),oT(t,i)):null;var l=wu(o,null,!0);return C(n,r),r=XB(r,a,l),n&&k(r,n),r.legacy=!0,r}function k(e,t){for(var n in t)Object(g["hasOwn"])(t,n)&&(e[n]=t[n])}function C(e,t){e&&(e.textFill&&(t.textFill=e.textFill),e.textPosition&&(t.textPosition=e.textPosition))}function T(e,n){if(null==n&&(n=s),Object(g["hasOwn"])(AB,e)){var i=t.getItemVisual(n,"style");return i?i[AB[e]]:null}if(Object(g["hasOwn"])(EB,e))return t.getItemVisual(n,e)}function D(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Hw(Object(g["defaults"])({axis:t},e))}}function L(){return n.getCurrentSeriesIndices()}function O(e){return Lu(e,n)}}function $V(e){var t={};return Object(g["each"])(e.dimensions,(function(n){var i=e.getDimensionInfo(n);if(!i.isExtraCoord){var r=i.coordDim,o=t[r]=t[r]||[];o[i.coordDimIndex]=e.getDimensionIndex(n)}})),t}function WV(e,t,n,i,r,o,a){if(i){var s=GV(e,t,n,i,r,o);return s&&a.setItemGraphicEl(n,s),s&&Ul(s,i.focus,i.blurScope,i.emphasisDisabled),s}o.remove(t)}function GV(e,t,n,i,r,o){var a=-1,s=t;t&&UV(t,i,r)&&(a=Object(g["indexOf"])(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=RV(i),s&&PV(s,u)),!1===i.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),IV.normal.cfg=IV.normal.conOpt=IV.emphasis.cfg=IV.emphasis.conOpt=IV.blur.cfg=IV.blur.conOpt=IV.select.cfg=IV.select.conOpt=null,IV.isLegacy=!1,XV(u,n,i,r,l,IV),qV(u,n,i,r,l),FV(e,u,n,i,IV,r,l),Object(g["hasOwn"])(i,"info")&&(jB(u).info=i.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function UV(e,t,n){var i=jB(e),r=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&a$(o)&&o$(o)!==i.customPathData||"image"===r&&Object(g["hasOwn"])(a,"image")&&a.image!==i.customImagePath}function qV(e,t,n,i,r){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&UV(a,o,i)&&(a=null),a||(a=RV(o),e.setClipPath(a)),FV(null,a,t,o,null,i,r)}}function XV(e,t,n,i,r,o){if(!e.isGroup){KV(n,null,o),KV(n,wV,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(null!=a||null!=s||null!=u||null!=l){var c=e.getTextContent();if(!1===a)c&&e.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=RV(a),e.setTextContent(c)),FV(null,c,t,a,null,i,r);for(var d=a&&a.style,h=0;h=c;p--){var f=t.childAt(p);e$(t,f,r)}}}function e$(e,t,n){t&&rV(t,jB(e).option,n)}function t$(e){new yx(e.oldChildren,e.newChildren,n$,n$,e).add(i$).update(i$).remove(r$).execute()}function n$(e,t){var n=e&&e.name;return null!=n?n:OV+t}function i$(e,t){var n=this.context,i=null!=e?n.newChildren[e]:null,r=null!=t?n.oldChildren[t]:null;GV(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function r$(e){var t=this.context,n=t.oldChildren[e];n&&rV(n,jB(n).option,t.seriesModel)}function o$(e){return e&&(e.pathData||e.d)}function a$(e){return e&&(Object(g["hasOwn"])(e,"pathData")||Object(g["hasOwn"])(e,"d"))}function s$(e){e.registerChartView(NV),e.registerSeriesModel(YB)}var l$=qr(),u$=g["clone"],c$=g["bind"],d$=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,i){var r=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,e,t,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(e,t);if(a){var d=g["curry"](h$,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Ni,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);g$(a,t,!0),this._renderHandle(r)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get("animation"),i=e.axis,r="category"===i.type,o=t.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=fO(e).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,i,r){},e.prototype.createPointerEl=function(e,t,n,i){var r=t.pointer;if(r){var o=l$(e).pointerEl=new a[r.type](u$(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,i){if(t.label){var r=l$(e).labelEl=new Bs(u$(t.label));e.add(r),f$(r,i)}},e.prototype.updatePointerEl=function(e,t,n){var i=l$(e).pointerEl;i&&t.pointer&&(i.setStyle(t.pointer.style),n(i,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,i){var r=l$(e).labelEl;r&&(r.setStyle(t.label.style),n(r,{x:t.label.x,y:t.label.y}),f$(r,i))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(t=!0,r=this._handle=Zg(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ge(e.event)},onmousedown:c$(this._onHandleDragMove,this,0,0),drift:c$(this._onHandleDragMove,this),ondragend:c$(this._onHandleDragEnd,this)}),i.add(r)),g$(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");g["isArray"](s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,yv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){h$(this._axisPointerModel,!t&&this._moveAnimation,this._handle,m$(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(m$(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(m$(i)),l$(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){var t=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,i=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),i&&t.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),_v(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}},e}();function h$(e,t,n,i){p$(l$(n).lastProp,i)||(l$(n).lastProp=i,t?lu(n,i,e):(n.stopAnimation(),n.attr(i)))}function p$(e,t){if(g["isObject"](e)&&g["isObject"](t)){var n=!0;return g["each"](t,(function(t,i){n=n&&p$(e[i],t)})),!!n}return e===t}function f$(e,t){e[t.get(["label","show"])?"show":"hide"]()}function m$(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function g$(e,t,n){var i=t.get("z"),r=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=i&&(e.z=i),null!=r&&(e.zlevel=r),e.silent=n)}))}var v$=d$;function y$(e){var t,n=e.get("type"),i=e.getModel(n+"Style");return"line"===n?(t=i.getLineStyle(),t.fill=null):"shadow"===n&&(t=i.getAreaStyle(),t.stroke=null),t}function _$(e,t,n,i,r){var o=n.get("value"),a=x$(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Vc(s.get("padding")||0),u=s.getFont(),c=gi(a,u),d=r.position,h=c.width+l[1]+l[3],p=c.height+l[0]+l[2],f=r.align;"right"===f&&(d[0]-=h),"center"===f&&(d[0]-=h/2);var m=r.verticalAlign;"bottom"===m&&(d[1]-=p),"middle"===m&&(d[1]-=p/2),b$(d,h,p,i);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:xu(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function b$(e,t,n,i){var r=i.getWidth(),o=i.getHeight();e[0]=Math.min(e[0]+t,r)-t,e[1]=Math.min(e[1]+n,o)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function x$(e,t,n,i,r){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:r.precision}),a=r.formatter;if(a){var s={value:IM(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};g["each"](i,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),i=e.dataIndexInside,r=t&&t.getDataParams(i);r&&s.seriesData.push(r)})),g["isString"](a)?o=a.replace("{value}",o):g["isFunction"](a)&&(o=a(s))}return o}function w$(e,t,n){var i=we();return Te(i,i,n.rotation),Ce(i,i,n.position),$g([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function M$(e,t,n,i,r,o){var a=aO.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),_$(t,i,r,o,{position:w$(i.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function S$(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function k$(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function C$(e,t,n,i,r,o){return{cx:e,cy:t,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var T$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=D$(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=y$(i),d=L$[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=NL(a.model,n);M$(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=NL(t.axis.grid.model,t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=w$(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=D$(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[e.x,e.y];u[l]+=t[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,d=[c,c];d[l]=u[l];var h=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:h[l]}},t}(v$);function D$(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var L$={line:function(e,t,n){var i=S$([t,n[0]],[t,n[1]],O$(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=Math.max(1,e.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:k$([t-i/2,n[0]],[i,r],O$(e))}}};function O$(e){return"x"===e.dim?0:1}var I$=T$,A$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",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:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(gd),E$=A$,j$=qr(),P$=g["each"];function Y$(e,t,n){if(!m["a"].node){var i=t.getZr();j$(i).records||(j$(i).records={}),N$(i,t);var r=j$(i).records[e]||(j$(i).records[e]={});r.handler=n}}function N$(e,t){function n(n,i){e.on(n,(function(n){var r=z$(t);P$(j$(e).records,(function(e){e&&i(e,n,r.dispatchAction)})),R$(r.pendings,t)}))}j$(e).initialized||(j$(e).initialized=!0,n("click",g["curry"](H$,"click")),n("mousemove",g["curry"](H$,"mousemove")),n("globalout",F$))}function R$(e,t){var n,i=e.showTip.length,r=e.hideTip.length;i?n=e.showTip[i-1]:r&&(n=e.hideTip[r-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function F$(e,t,n){e.handler("leave",null,n)}function H$(e,t,n,i){t.handler(e,n,i)}function z$(e){var t={showTip:[],hideTip:[]},n=function(i){var r=t[i.type];r?r.push(i):(i.dispatchAction=n,e.dispatchAction(i))};return{dispatchAction:n,pendings:t}}function B$(e,t){if(!m["a"].node){var n=t.getZr(),i=(j$(n).records||{})[e];i&&(j$(n).records[e]=null)}}var V$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i=t.getComponent("tooltip"),r=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Y$("axisPointer",n,(function(e,t,n){"none"!==r&&("leave"===e||r.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){B$("axisPointer",t)},t.prototype.dispose=function(e,t){B$("axisPointer",t)},t.type="axisPointer",t}(Gf),$$=V$;function W$(e,t){var n,i=[],r=e.seriesIndex;if(null==r||!(n=t.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Ur(o,e);if(null==a||a<0||g["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,h=u.dim,p="x"===d||"radius"===d?1:0,f=o.mapDimension(h),m=[];m[p]=o.get(f,a),m[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(m)||[]}else i=l.dataToPoint(o.getValues(g["map"](l.dimensions,(function(e){return o.mapDimension(e)})),a))||[];else if(s){var v=s.getBoundingRect().clone();v.applyTransform(s.transform),i=[v.x+v.width/2,v.y+v.height/2]}return{point:i,el:s}}var G$=qr();function U$(e,t,n){var i=e.currTrigger,r=[e.x,e.y],o=e,a=e.dispatchAction||Object(g["bind"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){iW(r)&&(r=W$({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=iW(r),u=o.axesInfo,c=s.axesInfo,d="leave"===i||iW(r),h={},p={},f={list:[],map:{}},m={showPointer:Object(g["curry"])(K$,p),showTooltip:Object(g["curry"])(Z$,f)};Object(g["each"])(s.coordSysMap,(function(e,t){var n=l||e.containPoint(r);Object(g["each"])(s.coordSysAxesInfo[t],(function(e,t){var i=e.axis,o=tW(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&q$(e,a,m,!1,h)}}))}));var v={};return Object(g["each"])(c,(function(e,t){var n=e.linkGroup;n&&!p[t]&&Object(g["each"])(n.axesInfo,(function(t,i){var r=p[i];if(t!==e&&r){var o=r.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,nW(t),nW(e)))),v[e.key]=o}}))})),Object(g["each"])(v,(function(e,t){q$(c[t],e,m,!0,h)})),J$(p,c,h),Q$(f,r,e,a),eW(c,a,n),h}}function q$(e,t,n,i,r){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=X$(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Object(g["extend"])(r,s[0]),!i&&e.snap&&o.containData(l)&&null!=l&&(t=l),n.showPointer(e,t,s),n.showTooltip(e,a,l)}else n.showPointer(e,t)}function X$(e,t){var n=t.axis,i=n.dim,r=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(g["each"])(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(i);if(t.getAxisTooltipData){var h=t.getAxisTooltipData(d,e,n);c=h.dataIndices,u=h.nestestValue}else{if(c=t.getData().indicesOfNearest(d[0],e,"category"===n.type?.5:null),!c.length)return;u=t.getData().get(d[0],c[0])}if(null!=u&&isFinite(u)){var p=e-u,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,r=u,o.length=0),Object(g["each"])(c,(function(e){o.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})})))}})),{payloadBatch:o,snapToValue:r}}function K$(e,t,n,i){e[t.key]={value:n,payloadBatch:i}}function Z$(e,t,n,i){var r=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&r.length){var l=t.coordSys.model,u=vO(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function J$(e,t,n){var i=n.axesInfo=[];Object(g["each"])(t,(function(t,n){var r=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:r.value})}))}function Q$(e,t,n,i){if(!iW(t)&&e.list.length){var r=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:e.list})}else i({type:"hideTip"})}function eW(e,t,n){var i=n.getZr(),r="axisPointerLastHighlights",o=G$(i)[r]||{},a=G$(i)[r]={};Object(g["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&Object(g["each"])(n.seriesDataIndices,(function(e){var t=e.seriesIndex+" | "+e.dataIndex;a[t]=e}))}));var s=[],l=[];Object(g["each"])(o,(function(e,t){!a[t]&&l.push(e)})),Object(g["each"])(a,(function(e,t){!o[t]&&s.push(e)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function tW(e,t){for(var n=0;n<(e||[]).length;n++){var i=e[n];if(t.axis.dim===i.axisDim&&t.axis.model.componentIndex===i.axisIndex)return i}}function nW(e){var t=e.axis.model,n={},i=n.axisDim=e.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=t.componentIndex,n.axisName=n[i+"AxisName"]=t.name,n.axisId=n[i+"AxisId"]=t.id,n}function iW(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function rW(e){bO.registerAxisPointerClass("CartesianAxisPointer",I$),e.registerComponentModel(E$),e.registerComponentView($$),e.registerPreprocessor((function(e){if(e){(!e.axisPointer||0===e.axisPointer.length)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!Object(g["isArray"])(t)&&(e.axisPointer.link=[t])}})),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,(function(e,t){e.getComponent("axisPointer").coordSysAxesInfo=sO(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},U$)}function oW(e){fx(AO),fx(rW)}var aW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis;"angle"===o.dim&&(this.animationThreshold=Math.PI/18);var a=o.polar,s=a.getOtherAxis(o),l=s.getExtent(),u=o.dataToCoord(t),c=i.get("type");if(c&&"none"!==c){var d=y$(i),h=lW[c](o,a,u,l);h.style=d,e.graphicKey=h.type,e.pointer=h}var p=i.get(["label","margin"]),f=sW(t,n,i,a,p);_$(e,n,i,r,f)},t}(v$);function sW(e,t,n,i,r){var o=t.axis,a=o.dataToCoord(e),s=i.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=i.getRadiusAxis().getExtent();if("radius"===o.dim){var h=we();Te(h,h,s),Ce(h,h,[i.cx,i.cy]),l=$g([a,-r],h);var p=t.getModel("axisLabel").get("rotate")||0,f=aO.innerTextLayout(s,p*Math.PI/180,-1);u=f.textAlign,c=f.textVerticalAlign}else{var m=d[1];l=i.coordToPoint([m+r,a]);var g=i.cx,v=i.cy;u=Math.abs(l[0]-g)/m<.3?"center":l[0]>g?"left":"right",c=Math.abs(l[1]-v)/m<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}var lW={line:function(e,t,n,i){return"angle"===e.dim?{type:"Line",shape:S$(t.coordToPoint([i[0],n]),t.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,i){var r=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:C$(t.cx,t.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:C$(t.cx,t.cy,n-r/2,n+r/2,0,2*Math.PI)}}},uW=aW,cW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.findAxisModel=function(e){var t,n=this.ecModel;return n.eachComponent(e,(function(e){e.getCoordSysModel()===this&&(t=e)}),this),t},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(gd),dW=cW,hW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Jr).models[0]},t.type="polarAxis",t}(gd);g["mixin"](hW,RM);var pW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="angleAxis",t}(hW),fW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="radiusAxis",t}(hW),mW=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return f(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(CS);mW.prototype.dataToRadius=CS.prototype.dataToCoord,mW.prototype.radiusToData=CS.prototype.coordToData;var gW=mW,vW=qr(),yW=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return f(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,t=e.getLabelModel(),n=e.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=gi(null==o?"":o+"",t.getFont(),"center","top"),u=Math.max(l.height,7),c=u/s;isNaN(c)&&(c=1/0);var d=Math.max(0,Math.floor(c)),h=vW(e.model),p=h.lastAutoInterval,f=h.lastTickCount;return null!=p&&null!=f&&Math.abs(p-d)<=1&&Math.abs(f-r)<=1&&p>d?d=p:(h.lastTickCount=r,h.lastAutoInterval=d),d},t}(CS);yW.prototype.dataToAngle=CS.prototype.dataToCoord,yW.prototype.angleToData=CS.prototype.coordToData;var _W=yW,bW=["radius","angle"],xW=function(){function e(e){this.dimensions=bW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new gW,this._angleAxis=new _W,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},e.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},e.prototype.getAxis=function(e){var t="_"+e+"Axis";return this[t]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(e){var t=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===e&&t.push(n),i.scale.type===e&&t.push(i),t},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(e){var t=null!=e&&"auto"!==e?this.getAxis(e):this.getBaseAxis();return{baseAxes:[t],otherAxes:[this.getOtherAxis(t)]}},e.prototype.dataToPoint=function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},e.prototype.pointToData=function(e,t){var n=this.pointToCoord(e);return[this._radiusAxis.radiusToData(n[0],t),this._angleAxis.angleToData(n[1],t)]},e.prototype.pointToCoord=function(e){var t=e[0]-this.cx,n=e[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(t*t+n*n);t/=s,n/=s;var l=Math.atan2(-n,t)/Math.PI*180,u=la)l+=360*u;return[s,l]},e.prototype.coordToPoint=function(e){var t=e[0],n=e[1]/180*Math.PI,i=Math.cos(n)*t+this.cx,r=-Math.sin(n)*t+this.cy;return[i,r]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var i=e.getExtent(),r=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*r,endAngle:-i[1]*r,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,i=t-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},e.prototype.convertToPixel=function(e,t,n){var i=wW(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=wW(t);return i===this?this.pointToData(n):null},e}();function wW(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var MW=xW;function SW(e,t,n){var i=t.get("center"),r=n.getWidth(),o=n.getHeight();e.cx=Qi(i[0],r),e.cy=Qi(i[1],o);var a=e.getRadiusAxis(),s=Math.min(r,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:g["isArray"](l)||(l=[0,l]);var u=[Qi(l[0],s),Qi(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function kW(e,t){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();g["each"](YM(t,"radius"),(function(e){r.scale.unionExtentFromData(t,e)})),g["each"](YM(t,"angle"),(function(e){i.scale.unionExtentFromData(t,e)}))}})),TM(i.scale,i.model),TM(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function CW(e){return"angleAxis"===e.mainType}function TW(e,t){if(e.type=t.get("type"),e.scale=DM(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),CW(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle");e.setExtent(n,n+(e.inverse?-360:360))}t.axis=e,e.model=t}var DW={dimensions:bW,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,i){var r=new MW(i+"");r.update=kW;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");TW(o,s),TW(a,l),SW(r,e,t),n.push(r),e.coordinateSystem=r,r.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",Jr).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},LW=DW,OW=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function IW(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var i=e.coordToPoint([t[0],n]),r=e.coordToPoint([t[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function AW(e){var t=e.getRadiusAxis();return t.inverse?0:1}function EW(e){var t=e[0],n=e[e.length-1];t&&n&&Math.abs(Math.abs(t.coord-n.coord)-360)<1e-4&&e.pop()}var jW=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return f(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=g["map"](n.getViewLabels(),(function(e){e=g["clone"](e);var t=n.scale,i="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(i),e}));EW(s),EW(o),g["each"](OW,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||PW[t](this.group,e,i,o,a,r,s)}),this)}},t.type="angleAxis",t}(bO),PW={axisLine:function(e,t,n,i,r,o){var a,s=t.getModel(["axisLine","lineStyle"]),l=AW(n),u=l?0:1;a=0===o[u]?new _m({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Vm({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0}),a.style.fill=null,e.add(a)},axisTick:function(e,t,n,i,r,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[AW(n)],u=g["map"](i,(function(e){return new tg({shape:IW(n,[l,l+s],e.coord)})}));e.add(Rg(u,{style:g["defaults"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,i,r,o){if(r.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[AW(n)],c=[],d=0;df?"left":"right",y=Math.abs(p[1]-m)/h<.3?"middle":p[1]>m?"top":"bottom";if(s&&s[d]){var _=s[d];g["isObject"](_)&&_.textStyle&&(a=new Wu(_.textStyle,l,l.ecModel))}var b=new Bs({silent:aO.isLabelSilent(t),style:xu(a,{x:p[0],y:p[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:v,verticalAlign:y})});if(e.add(b),c){var x=aO.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=i.rawLabel,Vs(b).eventData=x}}),this)},splitLine:function(e,t,n,i,r,o){var a=t.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],d=0;d=0?"p":"n",C=b;y&&(i[s][S]||(i[s][S]={p:b,n:b}),C=i[s][S][k]);var T=void 0,D=void 0,L=void 0,O=void 0;if("radius"===d.dim){var I=d.dataToCoord(M)-b,A=o.dataToCoord(S);Math.abs(I)=O})}}}))}function GW(e){var t={};g["each"](e,(function(e,n){var i=e.getData(),r=e.coordinateSystem,o=r.getBaseAxis(),a=$W(r,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/i.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=VW(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=Qi(e.get("barWidth"),l),p=Qi(e.get("barMaxWidth"),l),f=e.get("barGap"),m=e.get("barCategoryGap");h&&!c[d].width&&(h=Math.min(u.remainedWidth,h),c[d].width=h,u.remainedWidth-=h),p&&(c[d].maxWidth=p),null!=f&&(u.gap=f),null!=m&&(u.categoryGap=m)}));var n={};return g["each"](t,(function(e,t){n[t]={};var i=e.stacks,r=e.bandWidth,o=Qi(e.categoryGap,r),a=Qi(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),g["each"](i,(function(e,t){var n=e.maxWidth;n&&n=t.y&&e[1]<=t.y+t.height:n.contain(n.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},e.prototype.pointToData=function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},e.prototype.dataToPoint=function(e){var t=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),i[r]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(e,t,n){var i=cG(t);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var i=cG(t);return i===this?this.pointToData(n):null},e}();function cG(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var dG=uG;function hG(e,t){var n=[];return e.eachComponent("singleAxis",(function(i,r){var o=new dG(i,e,t);o.name="single_"+r,o.resize(i,t),i.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",Jr).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var pG={create:hG,dimensions:lG},fG=pG,mG=["x","y"],gG=["width","height"],vG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.makeElOption=function(e,t,n,i,r){var o=n.axis,a=o.coordinateSystem,s=bG(a,1-_G(o)),l=a.dataToPoint(t)[0],u=i.get("type");if(u&&"none"!==u){var c=y$(i),d=yG[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var h=JW(n);M$(t,e,h,n,i,r)},t.prototype.getHandleTransform=function(e,t,n){var i=JW(t,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=w$(t.axis,e,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,i){var r=n.axis,o=r.coordinateSystem,a=_G(r),s=bG(o,a),l=[e.x,e.y];l[a]+=t[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=bG(o,1-a),c=(u[1]+u[0])/2,d=[c,c];return d[a]=l[a],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:{verticalAlign:"middle"}}},t}(v$),yG={line:function(e,t,n){var i=S$([t,n[0]],[t,n[1]],_G(e));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(e,t,n){var i=e.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:k$([t-i/2,n[0]],[i,r],_G(e))}}};function _G(e){return e.isHorizontal()?0:1}function bG(e,t){var n=e.getRect();return[n[mG[t]],n[mG[t]]+n[gG[t]]]}var xG=vG,wG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="single",t}(Gf);function MG(e){fx(rW),bO.registerAxisPointerClass("SingleAxisPointer",xG),e.registerComponentView(wG),e.registerComponentView(iG),e.registerComponentModel(oG),TL(e,"single",oG,oG.defaultOption),e.registerCoordinateSystem("single",fG)}var SG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(t,n,i){var r=dd(t);e.prototype.init.apply(this,arguments),kG(t,r)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),kG(this.option,t)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(gd);function kG(e,t){var n,i=e.cellSize;n=g["isArray"](i)?i:e.cellSize=[i,i],1===n.length&&(n[1]=n[0]);var r=g["map"]([0,1],(function(e){return ld(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));cd(e,t,{type:"box",ignoreSize:r})}var CG=SG,TG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){var i=this.group;i.removeAll();var r=e.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,i),this._renderLines(e,o,a,i),this._renderYearText(e,o,a,i),this._renderMonthText(e,s,a,i),this._renderWeekText(e,s,o,a,i)},t.prototype._renderDayRect=function(e,t,n){for(var i=e.coordinateSystem,r=e.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=t.start.time;s<=t.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Ss({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},t.prototype._renderLines=function(e,t,n,i){var r=this,o=e.coordinateSystem,a=e.getModel(["splitLine","lineStyle"]).getLineStyle(),s=e.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=t.start,c=0;u.time<=t.end.time;c++){h(u.formatedDate),0===c&&(u=o.getDateInfo(t.start.y+"-"+t.start.m));var d=u.date;d.setMonth(d.getMonth()+1),u=o.getDateInfo(d)}function h(t){r._firstDayOfMonth.push(o.getDateInfo(t)),r._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=r._getLinePointsOfOneWeek(e,t,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}h(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},t.prototype._getEdgesPoints=function(e,t,n){var i=[e[0].slice(),e[e.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-t/2,i[1][r]=i[1][r]+t/2,i},t.prototype._drawSplitline=function(e,t,n){var i=new Zm({z2:20,shape:{points:e},style:t});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var i=e.coordinateSystem,r=i.getDateInfo(t),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},t.prototype._formatterLabel=function(e,t){return Object(g["isString"])(e)&&e?qc(e,t):Object(g["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,i,r){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,i){var r=e.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,d={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},h=t.start.y;+t.end.y>+t.start.y&&(h=h+"-"+t.end.y);var p=r.get("formatter"),f={start:t.start.y,end:t.end.y,nameMap:h},m=this._formatterLabel(p,f),g=new Bs({z2:30,style:xu(r,{text:m})});g.attr(this._yearTextPositionControl(g,d[a],n,a,o)),i.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,i,r){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=r,t&&(o="center"),"start"===i&&(a="bottom")):(s+=r,t&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,i){var r=e.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(g["isString"])(o)||(o&&(t=sc(o)||t),o=t.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,d="horizontal"===n?0:1;a="start"===s?-a:a;for(var h="center"===l,p=0;p=i.start.time&&n.timea.end.time&&e.reverse(),e},e.prototype._getRangeInfo=function(e){var t,n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])];n[0].time>n[1].time&&(t=!0,n.reverse());var i=Math.floor(n[1].time/LG)-Math.floor(n[0].time/LG)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a){var l=r.getTime()-n[1].time>0?1:-1;while((s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0)i-=l,r.setDate(s-l)}var u=Math.floor((i+n[0].day+6)/7),c=t?1-u:u-1;return t&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var i=this._getRangeInfo(n);if(e>i.weeks||0===e&&ti.lweek)return null;var r=7*(e-1)-i.fweek+t,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},e.create=function(t,n){var i=[];return t.eachComponent("calendar",(function(r){var o=new e(r,t,n);i.push(o),r.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=i[e.get("calendarIndex")||0])})),i},e.dimensions=["time","value"],e}();function IG(e){var t=e.calendarModel,n=e.seriesModel,i=t?t.coordinateSystem:n?n.coordinateSystem:null;return i}var AG=OG;function EG(e){e.registerComponentModel(CG),e.registerComponentView(DG),e.registerCoordinateSystem("calendar",AG)}function jG(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var i=t.parentOption;i?t.parentId=i.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function PG(e,t){var n;return g["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function YG(e,t,n){var i=g["extend"]({},n),r=e[t],o=n.$action||"merge";"merge"===o?r?(g["merge"](r,i,!0),cd(r,i,{ignoreSize:!0}),hd(n,r),FG(n,r),FG(n,r,"shape"),FG(n,r,"style"),FG(n,r,"extra"),n.clipPath=r.clipPath):e[t]=i:"replace"===o?e[t]=i:"remove"===o&&r&&(e[t]=null)}var NG=["transition","enterFrom","leaveTo"],RG=NG.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function FG(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var i=n?NG:RG,r=0;r=0;l--){u=n[l],c=Hr(u.id,null),d=null!=c?r.get(c):null;if(d){h=d.parent,m=VG(h);var v=h===i?{width:o,height:a}:{width:m.width,height:m.height},y={},_=sd(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!VG(d).isNew&&_){for(var b=u.transition,x={},w=0;w=0)?x[M]=S:d[M]=S}lu(d,x,e,0)}else d.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){UG(n,VG(n).option,t,e._lastGraphicModel)})),this._elMap=g["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Gf);function WG(e){var t=g["hasOwn"](BG,e)?BG[e]:jg(e);var n=new t({});return VG(n).type=e,n}function GG(e,t,n,i){var r=WG(n);return t.add(r),i.set(e,r),VG(r).id=e,VG(r).isNew=!0,r}function UG(e,t,n,i){var r=e&&e.parent;r&&("group"===e.type&&e.traverse((function(e){UG(e,t,n,i)})),rV(e,t,i),n.removeKey(VG(e).id))}function qG(e,t,n,i){e.isGroup||g["each"]([["cursor",ea.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];g["hasOwn"](t,i)?e[i]=g["retrieve2"](t[i],n[1]):null==e[i]&&(e[i]=n[1])})),g["each"](g["keys"](t),(function(n){if(0===n.indexOf("on")){var i=t[n];e[n]=g["isFunction"](i)?i:null}})),g["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function XG(e){return e=g["extend"]({},e),g["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(td),(function(t){delete e[t]})),e}function KG(e,t,n){var i=Vs(e).eventData;e.silent||e.ignore||i||(i=Vs(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),i&&(i.info=n.info)}function ZG(e){e.registerComponentModel(zG),e.registerComponentView($G),e.registerPreprocessor((function(e){var t=e.graphic;Object(g["isArray"])(t)?t[0]&&t[0].elements?e.graphic=[e.graphic[0]]:e.graphic=[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])}))}var JG=["x","y","radius","angle","single"],QG=["cartesian2d","polar","singleAxis"];function eU(e){var t=e.get("coordinateSystem");return Object(g["indexOf"])(QG,t)>=0}function tU(e){return e+"Axis"}function nU(e,t){var n,i=Object(g["createHashMap"])(),r=[],o=Object(g["createHashMap"])();e.eachComponent({mainType:"dataZoom",query:t},(function(e){o.get(e.uid)||s(e)}));do{n=!1,e.eachComponent("dataZoom",a)}while(n);function a(e){!o.get(e.uid)&&l(e)&&(s(e),n=!0)}function s(e){o.set(e.uid,!0),r.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var r=i.get(e);r&&r[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(i.get(e)||i.set(e,[]))[t]=!0}))}return r}function iU(e){var t=e.ecModel,n={infoList:[],infoMap:Object(g["createHashMap"])()};return e.eachTargetAxis((function(e,i){var r=t.getComponent(tU(e),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var rU=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},e}(),oU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return f(t,e),t.prototype.init=function(e,t,n){var i=aU(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var t=aU(e);Object(g["merge"])(this.option,e,!0),Object(g["merge"])(this.settledOption,t,!0),this._doInit(t)},t.prototype._doInit=function(e){var t=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;Object(g["each"])([["start","startValue"],["end","endValue"]],(function(e,i){"value"===this._rangePropMode[i]&&(t[e[0]]=n[e[0]]=null)}),this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),t=this._targetAxisInfoMap=Object(g["createHashMap"])(),n=this._fillSpecifiedTargetAxis(t);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(t,this._orient)),this._noTarget=!0,t.each((function(e){e.indexList.length&&(this._noTarget=!1)}),this)},t.prototype._fillSpecifiedTargetAxis=function(e){var t=!1;return Object(g["each"])(JG,(function(n){var i=this.getReferringComponents(tU(n),Qr);if(i.specified){t=!0;var r=new rU;Object(g["each"])(i.models,(function(e){r.add(e.componentIndex)})),e.set(n,r)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,i=!0;if(i){var r="vertical"===t?"y":"x",o=n.findComponents({mainType:r+"Axis"});a(o,r)}if(i){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var r=t[0];if(r){var o=new rU;if(o.add(r.componentIndex),e.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",Jr).models[0];a&&Object(g["each"])(t,(function(e){r.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",Jr).models[0]&&o.add(e.componentIndex)}))}}}i&&Object(g["each"])(JG,(function(t){if(i){var r=n.findComponents({mainType:tU(t),filter:function(e){return"category"===e.get("type",!0)}});if(r[0]){var o=new rU;o.add(r[0].componentIndex),e.set(t,o),i=!1}}}),this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis((function(t){!e&&(e=t)}),this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var t=this._rangePropMode,n=this.get("rangeMode");Object(g["each"])([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=e[i[0]],a=null!=e[i[1]];o&&!a?t[r]="percent":!o&&a?t[r]="value":n?t[r]=n[r]:o&&(t[r]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(tU(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,i){Object(g["each"])(n.indexList,(function(n){e.call(t,i,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(tU(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(g["each"])([["start","startValue"],["end","endValue"]],(function(i){null==e[i[0]]&&null==e[i[1]]||(t[i[0]]=n[i[0]]=e[i[0]],t[i[1]]=n[i[1]]=e[i[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(g["each"])(["start","startValue","end","endValue"],(function(n){t[n]=e[n]}))},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var t,n=this._targetAxisInfoMap.keys(),i=0;io[1];if(c&&!d&&!h)return!0;c&&(r=!0),d&&(t=!0),h&&(n=!0)}return r&&t&&n}))}else fU(i,(function(n){if("empty"===r)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var i={};i[n]=o,t.selectRange(i)}}));fU(i,(function(e){t.setApproximateExtent(o,e)}))}}))}function a(e){return e>=o[0]&&e<=o[1]}},e.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},t=this._dataZoomModel,n=this._dataExtent;fU(["min","max"],(function(i){var r=t.get(i+"Span"),o=t.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ji(n[0]+o,n,[0,100],!0):null!=r&&(o=Ji(r,[0,100],n,!0)-n[0]),e[i+"Span"]=r,e[i+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var i=rr(n,[0,500]);i=Math.min(i,20);var r=e.axis.scale.rawExtentInfo;0!==t[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==t[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},e}();function vU(e,t,n){var i=[1/0,-1/0];fU(n,(function(e){NM(i,e.getData(),t)}));var r=e.getAxisModel(),o=MM(r.axis.scale,r,i).calculate();return[o.min,o.max]}var yU=gU,_U={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=e.getComponent(tU(i),r);t(i,r,o,n)}))}))}t((function(e,t,n,i){n.__dzAxisProxy=null}));var n=[];t((function(t,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new yU(t,i,o,e),n.push(r.__dzAxisProxy))}));var i=Object(g["createHashMap"])();return Object(g["each"])(n,(function(e){Object(g["each"])(e.getTargetSeriesModels(),(function(e){i.set(e.uid,e)}))})),i},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,i){e.getAxisProxy(n,i).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}},bU=_U;function xU(e){e.registerAction("dataZoom",(function(e,t){var n=nU(t,e);Object(g["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var wU=!1;function MU(e){wU||(wU=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,bU),xU(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function SU(e){e.registerComponentModel(uU),e.registerComponentView(pU),MU(e)}var kU=function(){function e(){}return e}(),CU={};function TU(e,t){CU[e]=t}function DU(e){return CU[e]}var LU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var t=this.ecModel;g["each"](this.option.feature,(function(e,n){var i=DU(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(t)),g["merge"](e,i.defaultOption))}))},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(gd),OU=LU;function IU(e,t,n){var i=t.getBoxLayoutParams(),r=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ad(i,o,r);rd(t.get("orient"),e,t.get("itemGap"),a.width,a.height),sd(e,i,o,r)}function AU(e,t){var n=Vc(t.get("padding")),i=t.getItemStyle(["color","opacity"]);return i.fill=t.get("backgroundColor"),e=new Ss({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:i,silent:!0,z2:-1}),e}var EU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(e,t,n,i){var r=this.group;if(r.removeAll(),e.get("show")){var o=+e.get("itemSize"),a="vertical"===e.get("orient"),s=e.get("feature")||{},l=this._features||(this._features={}),u=[];g["each"](s,(function(e,t){u.push(t)})),new yx(this._featureNames||[],u).add(c).update(c).remove(g["curry"](c,null)).execute(),this._featureNames=u,IU(r,e,n),r.add(AU(r.getBoundingRect(),e)),a||r.eachChild((function(e){var t=e.__title,i=e.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!g["isFunction"](l)&&t){var u=l.style||(l.style={}),c=gi(t,Bs.makeFont(u)),d=e.x+r.x,h=e.y+r.y+o,p=!1;h+c.height>n.getHeight()&&(a.position="top",p=!0);var f=p?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):d-c.width/2<0&&(a.position=[0,f],u.align="left")}}))}function c(r,o){var a,c=u[r],h=u[o],p=s[c],f=new Wu(p,e,e.ecModel);if(i&&null!=i.newTitle&&i.featureName===c&&(p.title=i.newTitle),c&&!h){if(jU(c))a={onclick:f.option.onclick,featureName:c};else{var m=DU(c);if(!m)return;a=new m}l[c]=a}else if(a=l[h],!a)return;a.uid=Uu("toolbox-feature"),a.model=f,a.ecModel=t,a.api=n;var g=a instanceof kU;c||!h?!f.get("show")||g&&a.unusable?g&&a.remove&&a.remove(t,n):(d(f,a,c),f.setIconStatus=function(e,t){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,i[e]&&("emphasis"===t?Dl:Ll)(i[e])},a instanceof kU&&a.render&&a.render(f,t,n,i)):g&&a.dispose&&a.dispose(t,n)}function d(i,s,l){var u,c,d=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),p=s instanceof kU&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};g["isString"](p)?(u={},u[l]=p):u=p,g["isString"](f)?(c={},c[l]=f):c=f;var m=i.iconPaths={};g["each"](u,(function(l,u){var p=Zg(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(d.getItemStyle());var f=p.ensureState("emphasis");f.style=h.getItemStyle();var v=new Bs({style:{text:c[u],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});p.setTextContent(v),nv({el:p,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),p.__title=c[u],p.on("mouseover",(function(){var t=h.getItemStyle(),i=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:h.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),p.setTextConfig({position:h.get("textPosition")||i}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===i.get(["iconStatus",u])?Dl:Ll)(p),r.add(p),p.on("click",g["bind"](s.onclick,s,t,n,u)),m[u]=p}))}},t.prototype.updateView=function(e,t,n,i){g["each"](this._features,(function(e){e instanceof kU&&e.updateView&&e.updateView(e.model,t,n,i)}))},t.prototype.remove=function(e,t){g["each"](this._features,(function(n){n instanceof kU&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){g["each"](this._features,(function(n){n instanceof kU&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Gf);function jU(e){return 0===e.indexOf("my")}var PU=EU,YU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.onclick=function(e,t){var n=this.model,i=n.get("name")||e.get("title.0.text")||"echarts",r="svg"===t.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=t.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=m["a"].browser;if(Object(g["isFunction"])(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||r){var c=a.split(","),d=c[0].indexOf("base64")>-1,h=r?decodeURIComponent(c[1]):c[1];d&&(h=window.atob(h));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){var f=h.length,v=new Uint8Array(f);while(f--)v[f]=h.charCodeAt(f);var y=new Blob([v]);window.navigator.msSaveOrOpenBlob(y,p)}else{var _=document.createElement("iframe");document.body.appendChild(_);var b=_.contentWindow,x=b.document;x.open("image/svg+xml","replace"),x.write(h),x.close(),b.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(_)}}else{var w=n.get("lang"),M='',S=window.open();S.document.write(M),S.document.title=i}},t.getDefaultOption=function(e){var t={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return t},t}(kU),NU=YU,RU="__ec_magicType_stack__",FU=[["line","bar"],["stack"]],HU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.getIcons=function(){var e=this.model,t=e.get("icon"),n={};return g["each"](e.get("type"),(function(e){t[e]&&(n[e]=t[e])})),n},t.getDefaultOption=function(e){var t={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return t},t.prototype.onclick=function(e,t,n){var i=this.model,r=i.get(["seriesIndex",n]);if(zU[n]){var o,a={series:[]},s=function(e){var t=e.subType,r=e.id,o=zU[n](t,r,e,i);o&&(g["defaults"](o,e.option),a.series.push(o));var s=e.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim,c=u+"Axis",d=e.getReferringComponents(c,Jr).models[0],h=d.componentIndex;a[c]=a[c]||[];for(var p=0;p<=h;p++)a[c][h]=a[c][h]||{};a[c][h].boundaryGap="bar"===n}}};g["each"](FU,(function(e){g["indexOf"](e,n)>=0&&g["each"](e,(function(e){i.setIconStatus(e,"normal")}))})),i.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},s);var l=n;"stack"===n&&(o=g["merge"]({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(kU),zU={line:function(e,t,n,i){if("bar"===e)return g["merge"]({id:t,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(e,t,n,i){if("line"===e)return g["merge"]({id:t,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(e,t,n,i){var r=n.get("stack")===RU;if("line"===e||"bar"===e)return i.setIconStatus("stack",r?"normal":"emphasis"),g["merge"]({id:t,stack:r?"":RU},i.get(["option","stack"])||{},!0)}};Qb({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var BU=HU,VU=new Array(60).join("-"),$U="\t";function WU(e){var t={},n=[],i=[];return e.eachRawSeries((function(e){var r=e.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(e);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:i}}function GU(e){var t=[];return g["each"](e,(function(e,n){var i=e.categoryAxis,r=e.valueAxis,o=r.dim,a=[" "].concat(g["map"](e.series,(function(e){return e.name}))),s=[i.model.getCategories()];g["each"](e.series,(function(e){var t=e.getRawData();s.push(e.getRawData().mapArray(t.mapDimension(o),(function(e){return e})))}));for(var l=[a.join($U)],u=0;u=0)return!0}var ZU=new RegExp("["+$U+"]+","g");function JU(e){for(var t=e.split(/\n+/g),n=XU(t.shift()).split(ZU),i=[],r=g["map"](n,(function(e){return{name:e,data:[]}})),o=0;o=0;r--){var o=n[r];if(o[i])break}if(r<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();n[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}})),n.push(t)}function sq(e){var t=cq(e),n=t[t.length-1];t.length>1&&t.pop();var i={};return rq(n,(function(e,n){for(var r=t.length-1;r>=0;r--)if(e=t[r][n],e){i[n]=e;break}})),i}function lq(e){oq(e).snapshots=null}function uq(e){return cq(e).length}function cq(e){var t=oq(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var dq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.onclick=function(e,t){lq(e),t.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(e){var t={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:e.getLocaleModel().get(["toolbox","restore","title"])};return t},t}(kU);Qb({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var hq=dq,pq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],fq=function(){function e(e,t,n){var i=this;this._targetInfoList=[];var r=gq(t,e);Object(g["each"])(vq,(function(e,t){(!n||!n.include||Object(g["indexOf"])(n.include,t)>=0)&&e(r,i._targetInfoList)}))}return e.prototype.setOutputRanges=function(e,t){return this.matchOutputRanges(e,t,(function(e,t,n){if((e.coordRanges||(e.coordRanges=[])).push(t),!e.coordRange){e.coordRange=t;var i=bq[e.brushType](0,n,t);e.__rangeOffset={offset:wq[e.brushType](i.values,e.range,[1,1]),xyMinMax:i.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(g["each"])(e,(function(e){var i=this.findTargetInfo(e,t);i&&!0!==i&&Object(g["each"])(i.coordSyses,(function(i){var r=bq[e.brushType](1,i,e.range,!0);n(e,r.values,i,t)}))}),this)},e.prototype.setInputRanges=function(e,t){Object(g["each"])(e,(function(e){var n=this.findTargetInfo(e,t);if(e.range=e.range||[],n&&!0!==n){e.panelId=n.panelId;var i=bq[e.brushType](0,n.coordSys,e.coordRange),r=e.__rangeOffset;e.range=r?wq[e.brushType](i.values,r.offset,Sq(i.xyMinMax,r.xyMinMax)):i.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(g["map"])(this._targetInfoList,(function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:eF(i),isTargetByCursor:nF(i,e,n.coordSysModel),getLinearBrushOtherExtent:tF(i)}}))},e.prototype.controlSeries=function(e,t,n){var i=this.findTargetInfo(e,n);return!0===i||i&&Object(g["indexOf"])(i.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,i=gq(t,e),r=0;re[1]&&e.reverse(),e}function gq(e,t){return Kr(e,t,{includeMainTypes:pq})}var vq={grid:function(e,t){var n=e.xAxisModels,i=e.yAxisModels,r=e.gridModels,o=Object(g["createHashMap"])(),a={},s={};(n||i||r)&&(Object(g["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(g["each"])(i,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(g["each"])(r,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var r=e.coordinateSystem,o=[];Object(g["each"])(r.getCartesians(),(function(e,t){(Object(g["indexOf"])(n,e.getAxis("x").model)>=0||Object(g["indexOf"])(i,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:_q.grid,xAxisDeclared:a[e.id],yAxisDeclared:s[e.id]})})))},geo:function(e,t){Object(g["each"])(e.geoModels,(function(e){var n=e.coordinateSystem;t.push({panelId:"geo--"+e.id,geoModel:e,coordSysModel:e,coordSys:n,coordSyses:[n],getPanelRect:_q.geo})}))}},yq=[function(e,t){var n=e.xAxisModel,i=e.yAxisModel,r=e.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],_q={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Vg(e)),t}},bq={lineX:Object(g["curry"])(xq,0),lineY:Object(g["curry"])(xq,1),rect:function(e,t,n,i){var r=e?t.pointToData([n[0][0],n[1][0]],i):t.dataToPoint([n[0][0],n[1][0]],i),o=e?t.pointToData([n[0][1],n[1][1]],i):t.dataToPoint([n[0][1],n[1][1]],i),a=[mq([r[0],o[0]]),mq([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,i){var r=[[1/0,-1/0],[1/0,-1/0]],o=Object(g["map"])(n,(function(n){var o=e?t.pointToData(n,i):t.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}));return{values:o,xyMinMax:r}}};function xq(e,t,n,i){var r=n.getAxis(["x","y"][e]),o=mq(Object(g["map"])([0,1],(function(e){return t?r.coordToData(r.toLocalCoord(i[e]),!0):r.toGlobalCoord(r.dataToCoord(i[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var wq={lineX:Object(g["curry"])(Mq,0),lineY:Object(g["curry"])(Mq,1),rect:function(e,t,n){return[[e[0][0]-n[0]*t[0][0],e[0][1]-n[0]*t[0][1]],[e[1][0]-n[1]*t[1][0],e[1][1]-n[1]*t[1][1]]]},polygon:function(e,t,n){return Object(g["map"])(e,(function(e,i){return[e[0]-n[0]*t[i][0],e[1]-n[1]*t[i][1]]}))}};function Mq(e,t,n,i){return[t[0]-i[e]*n[0],t[1]-i[e]*n[1]]}function Sq(e,t){var n=kq(e),i=kq(t),r=[n[0]/i[0],n[1]/i[1]];return isNaN(r[0])&&(r[0]=1),isNaN(r[1])&&(r[1]=1),r}function kq(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Cq=fq,Tq=g["each"],Dq=Vr("toolbox-dataZoom_"),Lq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(e,t,n,i){this._brushController||(this._brushController=new QR(n.getZr()),this._brushController.on("brush",g["bind"](this._onBrush,this)).mount()),Eq(e,t,this,i,n),Aq(e,t)},t.prototype.onclick=function(e,t,n){Oq[n].call(this)},t.prototype.remove=function(e,t){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,t){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var t=e.areas;if(e.isEnd&&t.length){var n={},i=this.ecModel;this._brushController.updateCovers([]);var r=new Cq(Iq(this.model),i,{include:["grid"]});r.matchOutputRanges(t,i,(function(e,t,n){if("cartesian2d"===n.type){var i=e.brushType;"rect"===i?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[i],n,t)}})),aq(i,n),this._dispatchZoomAction(n)}function o(e,t,r){var o=t.getAxis(e),s=o.model,l=a(e,s,i),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(r=RN(0,r.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:r[0],endValue:r[1]})}function a(e,t,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var r=n.getAxisModel(e,t.componentIndex);r&&(i=n)})),i}},t.prototype._dispatchZoomAction=function(e){var t=[];Tq(e,(function(e,n){t.push(g["clone"](e))})),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},t.getDefaultOption=function(e){var t={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return t},t}(kU),Oq={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(sq(this.ecModel))}};function Iq(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}function Aq(e,t){e.setIconStatus("back",uq(t)>1?"emphasis":"normal")}function Eq(e,t,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new Cq(Iq(e),t,{include:["grid"]}),s=a.makePanelOpts(r,(function(e){return e.xAxisDeclared&&!e.yAxisDeclared?"lineX":!e.xAxisDeclared&&e.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(s).enableBrush(!(!o||!s.length)&&{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()})}Fd("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var i=t.getModel(n),r=[],o=Iq(i),a=Kr(e,o);return Tq(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),Tq(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),r}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:Dq+t+o};a[n]=o,r.push(a)}}));var jq=Lq;function Pq(e){e.registerComponentModel(OU),e.registerComponentView(PU),TU("saveAsImage",NU),TU("magicType",BU),TU("dataView",iq),TU("dataZoom",jq),TU("restore",hq),fx(SU)}var Yq=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(gd),Nq=Yq;function Rq(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function Fq(e){if(m["a"].domSupported)for(var t=document.documentElement.style,n=0,i=e.length;n-1?(l+="top:50%",u+="translateY(-50%) rotate("+(o="left"===a?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(o="top"===a?225:45)+"deg)");var c=o*Math.PI/180,d=s+r,h=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),p=Math.round(100*((h-Math.SQRT2*r)/2+Math.SQRT2*r-(h-d)/2))/100;l+=";"+a+":-"+p+"px";var f=t+" solid "+r+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;",l+";"+u+";","border-bottom:"+f,"border-right:"+f,"background-color:"+i+";"];return'
'}function Xq(e,t){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+e/2+"s "+n,r="opacity"+i+",visibility"+i;return t||(i=" "+e+"s "+n,r+=m["a"].transformSupported?","+Wq+i:",left"+i+",top"+i),$q+":"+r}function Kq(e,t,n){var i=e.toFixed(0)+"px",r=t.toFixed(0)+"px";if(!m["a"].transformSupported)return n?"top:"+r+";left:"+i+";":[["top",r],["left",i]];var o=m["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+i+","+r+(o?",0":"")+")";return n?"top:0;left:0;"+Wq+":"+a+";":[["top",0],["left",0],[Hq,a]]}function Zq(e){var t=[],n=e.get("fontSize"),i=e.getTextColor();i&&t.push("color:"+i),t.push("font:"+e.getFont()),n&&t.push("line-height:"+Math.round(3*n/2)+"px");var r=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return r&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+r),Object(g["each"])(["decoration","align"],(function(n){var i=e.get(n);i&&t.push("text-"+n+":"+i)})),t.join(";")}function Jq(e,t,n){var i=[],r=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),d=Df(e,"html"),h=l+"px "+u+"px "+a+"px "+s;return i.push("box-shadow:"+h),t&&r&&i.push(Xq(r,n)),o&&i.push("background-color:"+o),Object(g["each"])(["width","color","radius"],(function(t){var n="border-"+t,r=Bc(n),o=e.get(r);null!=o&&i.push(n+":"+o+("color"===t?"":"px"))})),i.push(Zq(c)),null!=d&&i.push("padding:"+Vc(d).join("px ")+"px"),i.join(";")+";"}function Qq(e,t,n,i,r){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&J(e,a,document.body,i,r)}else{e[0]=i,e[1]=r;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var eX=function(){function e(e,t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,m["a"].wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var r=this._zr=t.getZr(),o=this._appendToBody=n&&n.appendToBody;Qq(this._styleCoord,r,o,t.getWidth()/2,t.getHeight()/2),o?document.body.appendChild(i):e.appendChild(i),this._container=e;var a=this;i.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},i.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();he(n,e,!0),t.dispatch("mousemove",e)}},i.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){var t=this._container,n=Vq(t,"position"),i=t.style;"absolute"!==i.position&&"absolute"!==n&&(i.position="relative");var r=e.get("alwaysShowContent");r&&this._moveIfResized(),this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,r=this._styleCoord;n.innerHTML?i.cssText=Gq+Jq(e,!this._firstShow,this._longHide)+Kq(r[0],r[1],!0)+"border-color:"+Jc(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,i,r){var o=this.el;if(null!=e){var a="";if(Object(g["isString"])(r)&&"item"===n.get("trigger")&&!Rq(n)&&(a=qq(n,i,r)),Object(g["isString"])(e))o.innerHTML=e+a;else if(e){o.innerHTML="",Object(g["isArray"])(e)||(e=[e]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,i=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(e,t,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,i){if(i.from!==this.uid&&!m["a"].node&&n.getDom()){var r=cX(i,n);this._ticket="";var o=i.dataByCoordSys,a=mX(i,t,n);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:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=sX;l.x=i.x,l.y=i.y,l.update(),Vs(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,i))return;var u=W$(i,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},t.prototype.manuallyHideTip=function(e,t,n,i){var r=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(cX(i,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,i){var r=i.seriesIndex,o=i.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=t.getSeriesByIndex(r);if(s){var l=s.getData(),u=uX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){var o,a;this._lastDataByCoordSys=null,hy(n,(function(e){return null!=Vs(e).dataIndex?(o=e,!0):null!=Vs(e).tooltipConfig?(a=e,!0):void 0}),!0),o?this._showSeriesItemTooltip(e,o,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get("showDelay");t=Object(g["bind"])(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,i=this._tooltipModel,r=[t.offsetX,t.offsetY],o=uX([t.tooltipOption],i),a=this._renderMode,s=[],l=ff("section",{blocks:[],noHeader:!0}),u=[],c=new Lf;Object(g["each"])(e,(function(e){Object(g["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),r=e.value;if(t&&null!=r){var o=x$(r,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=ff("section",{header:o,noHeader:!Object(g["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(g["each"])(e.seriesDataIndices,(function(l){var h=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=h.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=e.axisDim,f.axisIndex=e.axisIndex,f.axisType=e.axisType,f.axisId=e.axisId,f.axisValue=IM(t.axis,{value:r}),f.axisValueLabel=o,f.marker=c.makeTooltipMarker("item",Jc(f.color),a);var m=Mp(h.formatTooltip(p,!0,null)),v=m.frag;if(v){var y=uX([h],i).get("valueFormatter");d.blocks.push(y?Object(g["extend"])({valueFormatter:y},v):v)}m.text&&u.push(m.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,h=o.get("order"),p=bf(l,c,a,h,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"
",m=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,m,s,Math.random()+"",r[0],r[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var i=this._ecModel,r=Vs(t),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),d=this._renderMode,h=e.positionDefault,p=uX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,h?{position:h}:null),f=p.get("trigger");if(null==f||"item"===f){var m=s.getDataParams(l,u),v=new Lf;m.marker=v.makeTooltipMarker("item",Jc(m.color),d);var y=Mp(s.formatTooltip(l,!1,u)),_=p.get("order"),b=p.get("valueFormatter"),x=y.frag,w=x?bf(b?Object(g["extend"])({valueFormatter:b},x):x,v,d,_,i.get("useUTC"),p.get("textStyle")):y.text,M="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,w,m,M,e.offsetX,e.offsetY,e.position,e.target,v)})),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var i=Vs(t),r=i.tooltipConfig,o=r.option||{};if(Object(g["isString"])(o)){var a=o;o={content:a,formatter:a}}var s=[o],l=this._ecModel.getComponent(i.componentMainType,i.componentIndex);l&&s.push(l),s.push({formatter:o.content});var u=e.positionDefault,c=uX(s,this._tooltipModel,u?{position:u}:null),d=c.get("content"),h=Math.random()+"",p=new Lf;this._showOrMove(c,(function(){var n=Object(g["clone"])(c.get("formatterParams")||{});this._showTooltipContent(c,d,n,h,e.offsetX,e.offsetY,e.position,t,p)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,i,r,o,a,s,l){if(this._ticket="",e.get("showContent")&&e.get("show")){var u=this._tooltipContent;u.setEnterable(e.get("enterable"));var c=e.get("formatter");a=a||e.get("position");var d=t,h=this._getNearestPoint([r,o],n,e.get("trigger"),e.get("borderColor")),p=h.color;if(c)if(Object(g["isString"])(c)){var f=e.ecModel.get("useUTC"),m=Object(g["isArray"])(n)?n[0]:n,v=m&&m.axisType&&m.axisType.indexOf("time")>=0;d=c,v&&(d=Mc(m.axisValue,d,f)),d=Uc(d,n,!0)}else if(Object(g["isFunction"])(c)){var y=Object(g["bind"])((function(t,i){t===this._ticket&&(u.setContent(i,l,e,p,a),this._updatePosition(e,a,r,o,u,n,s))}),this);this._ticket=i,d=c(n,i,y)}else d=c;u.setContent(d,l,e,p,a),u.show(e,p),this._updatePosition(e,a,r,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,i){return"axis"===n||Object(g["isArray"])(t)?{color:i||("html"===this._renderMode?"#fff":"none")}:Object(g["isArray"])(t)?void 0:{color:i||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=r.getSize(),c=e.get("align"),d=e.get("verticalAlign"),h=a&&a.getBoundingRect().clone();if(a&&h.applyTransform(a.transform),Object(g["isFunction"])(t)&&(t=t([n,i],o,r.el,h,{viewSize:[s,l],contentSize:u.slice()})),Object(g["isArray"])(t))n=Qi(t[0],s),i=Qi(t[1],l);else if(Object(g["isObject"])(t)){var p=t;p.width=u[0],p.height=u[1];var f=ad(p,{width:s,height:l});n=f.x,i=f.y,c=null,d=null}else if(Object(g["isString"])(t)&&a){var m=pX(t,h,u,e.get("borderWidth"));n=m[0],i=m[1]}else{m=dX(n,i,r,s,l,c?null:20,d?null:20);n=m[0],i=m[1]}if(c&&(n-=fX(c)?u[0]/2:"right"===c?u[0]:0),d&&(i-=fX(d)?u[1]/2:"bottom"===d?u[1]:0),Rq(e)){m=hX(n,i,r,s,l);n=m[0],i=m[1]}r.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===e.length;return r&&Object(g["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];r=r&&a.length===l.length,r&&Object(g["each"])(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];r=r&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,r&&Object(g["each"])(a,(function(e,t){var n=s[t];r=r&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),i&&Object(g["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!r},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,t){!m["a"].node&&t.getDom()&&(_v(this,"_updatePosition"),this._tooltipContent.dispose(),B$("itemTooltip",t))},t.type="tooltip",t}(Gf);function uX(e,t,n){var i,r=t.ecModel;n?(i=new Wu(n,r,r),i=new Wu(t.option,i,r)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Wu&&(a=a.get("tooltip",!0)),Object(g["isString"])(a)&&(a={formatter:a}),a&&(i=new Wu(a,i,r)))}return i}function cX(e,t){return e.dispatchAction||Object(g["bind"])(t.dispatchAction,t)}function dX(e,t,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>i?e-=l+o:e+=o),null!=a&&(t+u+a>r?t-=u+a:t+=a),[e,t]}function hX(e,t,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,i)-a,t=Math.min(t+s,r)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function pX(e,t,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-r/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-r/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-r/2,l=t.y+c+a;break;case"left":s=t.x-r-a,l=t.y+c/2-o/2;break;case"right":s=t.x+u+a,l=t.y+c/2-o/2}return[s,l]}function fX(e){return"center"===e||"middle"===e}function mX(e,t,n){var i=Zr(e).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o=eo(t,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s,l=n.getViewOfComponentModel(a);return l.group.traverse((function(t){var n=Vs(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:r,componentIndex:a.componentIndex,el:s}:void 0}}}var gX=lX;function vX(e){fx(rW),e.registerComponentModel(Nq),e.registerComponentView(gX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},g["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},g["noop"])}var yX=["rect","polygon","keep","clear"];function _X(e,t){var n=Cr(e?e.brush:[]);if(n.length){var i=[];g["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(i=i.concat(t))}));var r=e&&e.toolbox;g["isArray"](r)&&(r=r[0]),r||(r={feature:{}},e.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),bX(s),t&&!s.length&&s.push.apply(s,yX)}}function bX(e){var t={};g["each"](e,(function(e){t[e]=1})),e.length=0,g["each"](t,(function(t,n){e.push(n)}))}var xX=g["each"];function wX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function MX(e,t,n){var i={};return xX(t,(function(t){var o=i[t]=r();xX(e[t],(function(e,i){if(Gj.isValidType(i)){var r={type:i,visual:e};n&&n(r,t),o[i]=new Gj(r),"opacity"===i&&(r=g["clone"](r),r.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gj(r))}}))})),i;function r(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function SX(e,t,n){var i;g["each"](n,(function(e){t.hasOwnProperty(e)&&wX(t[e])&&(i=!0)})),i&&g["each"](n,(function(n){t.hasOwnProperty(n)&&wX(t[n])?e[n]=g["clone"](t[n]):delete e[n]}))}function kX(e,t,n,i,r,o){var a,s={};function l(e){return ay(n,a,e)}function u(e,t){ly(n,a,e,t)}function c(e,c){a=null==o?e:c;var d=n.getRawDataItem(a);if(!d||!1!==d.visualMap)for(var h=i.call(r,e),p=t[h],f=s[h],m=0,g=f.length;mt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&zX(t)}};function zX(e){return new Be(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var BX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new QR(t.getZr())).on("brush",g["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,i){this.model=e,this._updateController(e,t,n,i)},t.prototype.updateTransform=function(e,t,n,i){jX(t),this._updateController(e,t,n,i)},t.prototype.updateVisual=function(e,t,n,i){this.updateTransform(e,t,n,i)},t.prototype.updateView=function(e,t,n,i){this._updateController(e,t,n,i)},t.prototype._updateController=function(e,t,n,i){(!i||i.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(n)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var t=this.model.id,n=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:t,areas:g["clone"](n),$from:t}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:t,areas:g["clone"](n),$from:t})},t.type="brush",t}(Gf),VX=BX,$X="#ddd",WX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return f(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&SX(n,e,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:$X},i.hasOwnProperty("liftZ")||(i.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=g["map"](e,(function(e){return GX(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=GX(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(gd);function GX(e,t){return g["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Wu(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var UX=WX,qX=["rect","polygon","lineX","lineY","keep","clear"],XX=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.prototype.render=function(e,t,n){var i,r,o;t.eachComponent({mainType:"brush"},(function(e){i=e.brushType,r=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=i,this._brushMode=r,g["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===r:"clear"===t?o:t===i)?"emphasis":"normal")}))},t.prototype.updateView=function(e,t,n){this.render(e,t,n)},t.prototype.getIcons=function(){var e=this.model,t=e.get("icon",!0),n={};return g["each"](e.get("type",!0),(function(e){t[e]&&(n[e]=t[e])})),n},t.prototype.onclick=function(e,t,n){var i=this._brushType,r=this._brushMode;"clear"===n?(t.dispatchAction({type:"axisAreaSelect",intervals:[]}),t.dispatchAction({type:"brush",command:"clear",areas:[]})):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},t.getDefaultOption=function(e){var t={show:!0,type:qX.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:e.getLocaleModel().get(["toolbox","brush","title"])};return t},t}(kU),KX=XX;function ZX(e){e.registerComponentView(VX),e.registerComponentModel(UX),e.registerPreprocessor(_X),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,PX),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},(function(e,t){t.eachComponent({mainType:"brush",query:e},(function(t){t.setAreas(e.areas)}))})),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},g["noop"]),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},g["noop"]),TU("brush",KX)}var JX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return f(t,e),t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(gd),QX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var i=this.group,r=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=g["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new Bs({style:xu(r,{text:e.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new Bs({style:xu(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),h=e.get("link"),p=e.get("sublink"),f=e.get("triggerEvent",!0);l.silent=!h&&!f,d.silent=!p&&!f,h&&l.on("click",(function(){Qc(h,"_"+e.get("target"))})),p&&d.on("click",(function(){Qc(p,"_"+e.get("subtarget"))})),Vs(l).eventData=Vs(d).eventData=f?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(l),c&&i.add(d);var m=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=ad(v,{width:n.getWidth(),height:n.getHeight()},e.get("padding"));a||(a=e.get("left")||e.get("right"),"middle"===a&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||(s=e.get("top")||e.get("bottom"),"center"===s&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),i.x=y.x,i.y=y.y,i.markRedraw();var _={align:a,verticalAlign:s};l.setStyle(_),d.setStyle(_),m=i.getBoundingRect();var b=y.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new Ss({shape:{x:m.x-b[3],y:m.y-b[0],width:m.width+b[1]+b[3],height:m.height+b[0]+b[2],r:e.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});i.add(w)}},t.type="title",t}(Gf);function eK(e){e.registerComponentModel(JX),e.registerComponentView(QX)}var tK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return f(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),this._initData()},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var e,t=this.option,n=t.data||[],i=t.axisType,r=this._names=[];"category"===i?(e=[],Object(g["each"])(n,(function(t,n){var i,o=Hr(Lr(t),"");Object(g["isObject"])(t)?(i=Object(g["clone"])(t),i.value=n):i=n,e.push(i),r.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number",a=this._data=new qx([{name:"value",type:o}],this);a.initData(e,r)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(gd),nK=tK,iK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="timeline.slider",t.defaultOption=Ku(nK.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(nK);Object(g["mixin"])(iK,wp.prototype);var rK=iK,oK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="timeline",t}(Gf),aK=oK,sK=function(e){function t(t,n,i,r){var o=e.call(this,t,n,i)||this;return o.type=r||"value",o}return f(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(CS),lK=sK,uK=Math.PI,cK=qr(),dK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(e,t){this.api=t},t.prototype.render=function(e,t,n){if(this.model=e,this.api=n,this.ecModel=t,this.group.removeAll(),e.get("show",!0)){var i=this._layout(e,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return ff("nameValue",{noName:!0,value:t})},Object(g["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](i,r,a,e)}),this),this._renderAxisLabel(i,o,a,e),this._position(i,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,t){var n,i=e.get(["label","position"]),r=e.get("orient"),o=pK(e,t);n=null==i||"auto"===i?"horizontal"===r?o.y+o.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:uK/2},h="vertical"===r?o.height:o.width,p=e.getModel("controlStyle"),f=p.get("show",!0),m=f?p.get("itemSize"):0,v=f?p.get("itemGap"):0,y=m+v,_=e.get(["label","rotate"])||0;_=_*uK/180;var b=p.get("position",!0),x=f&&p.get("showPlayBtn",!0),w=f&&p.get("showPrevBtn",!0),M=f&&p.get("showNextBtn",!0),S=0,k=h;"left"===b||"bottom"===b?(x&&(a=[0,0],S+=y),w&&(s=[S,0],S+=y),M&&(l=[k-m,0],k-=y)):(x&&(a=[k-m,0],k-=y),w&&(s=[0,0],S+=y),M&&(l=[k-m,0],k-=y));var C=[S,k];return e.get("inverse")&&C.reverse(),{viewRect:o,mainLength:h,orient:r,rotation:d[r],labelRotation:_,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[r],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[r],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:C,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,i=this._labelGroup,r=e.viewRect;if("vertical"===e.orient){var o=we(),a=r.x,s=r.y+r.height;Ce(o,o,[-a,-s]),Te(o,o,-uK/2),Ce(o,o,[a,s]),r=r.clone(),r.applyTransform(o)}var l=v(r),u=v(n.getBoundingRect()),c=v(i.getBoundingRect()),d=[n.x,n.y],h=[i.x,i.y];h[0]=d[0]=l[0][0];var p=e.labelPosOpt;if(null==p||Object(g["isString"])(p)){var f="+"===p?0:1;y(d,u,l,1,f),y(h,c,l,1,1-f)}else{f=p>=0?0:1;y(d,u,l,1,f),h[1]=d[1]+p}function m(e){e.originX=l[0][0]-e.x,e.originY=l[1][0]-e.y}function v(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function y(e,t,n,i,r){e[i]+=n[i][r]-t[i][r]}n.setPosition(d),i.setPosition(h),n.rotation=i.rotation=e.rotation,m(n),m(i)},t.prototype._createAxis=function(e,t){var n=t.getData(),i=t.get("axisType"),r=hK(t,i);r.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new lK("value",r,e.axisExtent,i);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Ni;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new tg({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Object(g["extend"])({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new tg({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:Object(g["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],Object(g["each"])(a,(function(e){var a=n.dataToCoord(e.value),s=o.getItemModel(e.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),d={x:a,y:0,onclick:Object(g["bind"])(r._changeTimeline,r,e.value)},h=mK(s,l,t,d);h.ensureState("emphasis").style=u.getItemStyle(),h.ensureState("progress").style=c.getItemStyle(),Wl(h);var p=Vs(h);s.get("tooltip")?(p.dataIndex=e.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(h)}))},t.prototype._renderAxisLabel=function(e,t,n,i){var r=this,o=n.getLabelModel();if(o.get("show")){var a=i.getData(),s=n.getViewLabels();this._tickLabels=[],Object(g["each"])(s,(function(i){var o=i.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(i.tickValue),h=new Bs({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(g["bind"])(r._changeTimeline,r,o),silent:!1,style:xu(l,{text:i.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});h.ensureState("emphasis").style=xu(u),h.ensureState("progress").style=xu(c),t.add(h),Wl(h),cK(h).dataIndex=o,r._tickLabels.push(h)}))}},t.prototype._renderControl=function(e,t,n,i){var r=e.controlSize,o=e.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(e,n,l,u){if(e){var c=bi(Object(g["retrieve2"])(i.get(["controlStyle",n+"BtnSize"]),r),r),d=[0,-c/2,c,c],h=fK(i,n+"Icon",d,{x:e[0],y:e[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,t.add(h),Wl(h)}}c(e.nextBtnPosition,"next",Object(g["bind"])(this._changeTimeline,this,u?"-":"+")),c(e.prevBtnPosition,"prev",Object(g["bind"])(this._changeTimeline,this,u?"+":"-")),c(e.playPosition,l?"stop":"play",Object(g["bind"])(this._handlePlayClick,this,!l),!0)},t.prototype._renderCurrentPointer=function(e,t,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(e){e.draggable=!0,e.drift=Object(g["bind"])(s._handlePointerDrag,s),e.ondragend=Object(g["bind"])(s._handlePointerDragend,s),gK(e,s._progressLine,o,n,i,!0)},onUpdate:function(e){gK(e,s._progressLine,o,n,i)}};this._currentPointer=mK(a,a,this._mainGroup,{},this._currentPointer,l)},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,t,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,t){var n=this._toAxisCoord(e)[0],i=this._axis,r=tr(i.getExtent().slice());n>r[1]&&(n=r[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,d]}var jK={min:Object(g["curry"])(EK,"min"),max:Object(g["curry"])(EK,"max"),average:Object(g["curry"])(EK,"average"),median:Object(g["curry"])(EK,"median")};function PK(e,t){var n=e.getData(),i=e.coordinateSystem;if(t&&!AK(t)&&!Object(g["isArray"])(t.coord)&&i){var r=i.dimensions,o=YK(t,n,i,e);if(t=Object(g["clone"])(t),t.type&&jK[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(g["indexOf"])(r,o.baseAxis.dim),s=Object(g["indexOf"])(r,o.valueAxis.dim),l=jK[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else{for(var u=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],c=0;c<2;c++)jK[u[c]]&&(u[c]=zK(n,n.mapDimension(r[c]),u[c]));t.coord=u}}return t}function YK(e,t,n,i){var r={};return null!=e.valueIndex||null!=e.valueDim?(r.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,r.valueAxis=n.getAxis(NK(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=t.mapDimension(r.baseAxis.dim),r.valueDataDim=t.mapDimension(r.valueAxis.dim)),r}function NK(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function RK(e,t){return!(e&&e.containData&&t.coord&&!IK(t))||e.containData(t.coord)}function FK(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!IK(t)&&!IK(n))||e.containZone(t.coord,n.coord)}function HK(e,t){return e?function(e,n,i,r){var o=r<2?e.coord&&e.coord[r]:e.value;return Tp(o,t[r])}:function(e,n,i,r){return Tp(e.value,t[r])}}function zK(e,t,n){if("average"===n){var i=0,r=0;return e.each(t,(function(e,t){isNaN(e)||(i+=e,r++)})),i/r}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var BK=qr(),VK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.init=function(){this.markerGroupMap=Object(g["createHashMap"])()},t.prototype.render=function(e,t,n){var i=this,r=this.markerGroupMap;r.each((function(e){BK(e).keep=!1})),t.eachSeries((function(e){var r=DK.getMarkerModelFromSeries(e,i.type);r&&i.renderSeries(e,r,t,n)})),r.each((function(e){!BK(e).keep&&i.group.remove(e.group)}))},t.prototype.markKeep=function(e){BK(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(g["each"])(e,(function(e){var i=DK.getMarkerModelFromSeries(e,n.type);if(i){var r=i.getData();r.eachItemGraphicEl((function(e){e&&(t?Ol(e):Il(e))}))}}))},t.type="marker",t}(Gf),$K=VK;function WK(e,t,n){var i=t.coordinateSystem;e.each((function(r){var o,a=e.getItemModel(r),s=Qi(a.get("x"),n.getWidth()),l=Qi(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,r));else if(i){var u=e.get(i.dimensions[0],r),c=e.get(i.dimensions[1],r);o=i.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(r,o)}))}var GK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=DK.getMarkerModelFromSeries(e,"markPoint");t&&(WK(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new fT),u=UK(r,e,t);t.setData(u),WK(t.getData(),e,i),u.each((function(e){var n=u.getItemModel(e),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(g["isFunction"])(i)||Object(g["isFunction"])(r)||Object(g["isFunction"])(o)||Object(g["isFunction"])(s)){var c=t.getRawValue(e),d=t.getDataParams(e);Object(g["isFunction"])(i)&&(i=i(c,d)),Object(g["isFunction"])(r)&&(r=r(c,d)),Object(g["isFunction"])(o)&&(o=o(c,d)),Object(g["isFunction"])(s)&&(s=s(c,d))}var h=n.getModel("itemStyle").getItemStyle(),p=sy(a,"color");h.fill||(h.fill=p),u.setItemVisual(e,{symbol:i,symbolSize:r,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:h})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Vs(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}($K);function UK(e,t,n){var i;i=e?Object(g["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(g["extend"])(Object(g["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new qx(i,n),o=Object(g["map"])(n.get("data"),Object(g["curry"])(PK,t));e&&(o=Object(g["filter"])(o,Object(g["curry"])(RK,e)));var a=HK(!!e,i);return r.initData(o,null,a),r}var qK=GK;function XK(e){e.registerComponentModel(OK),e.registerComponentView(qK),e.registerPreprocessor((function(e){SK(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var KK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(DK),ZK=KK,JK=qr(),QK=function(e,t,n,i){var r,o=e.getData();if(Object(g["isArray"])(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=t.getAxis(null!=i.yAxis?"y":"x"),l=Object(g["retrieve"])(i.yAxis,i.xAxis);else{var u=YK(i,o,t,e);s=u.valueAxis;var c=sw(o,u.valueDataDim);l=zK(o,c,a)}var d="x"===s.dim?0:1,h=1-d,p=Object(g["clone"])(i),f={coord:[]};p.type=null,p.coord=[],p.coord[h]=-1/0,f.coord[h]=1/0;var m=n.get("precision");m>=0&&Object(g["isNumber"])(l)&&(l=+l.toFixed(Math.min(m,20))),p.coord[d]=f.coord[d]=l,r=[p,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var v=[PK(e,r[0]),PK(e,r[1]),Object(g["extend"])({},r[2])];return v[2].type=v[2].type||null,Object(g["merge"])(v[2],v[0]),Object(g["merge"])(v[2],v[1]),v};function eZ(e){return!isNaN(e)&&!isFinite(e)}function tZ(e,t,n,i){var r=1-e,o=i.dimensions[e];return eZ(t[r])&&eZ(n[r])&&t[e]===n[e]&&i.getAxis(o).containData(t[e])}function nZ(e,t){if("cartesian2d"===e.type){var n=t[0].coord,i=t[1].coord;if(n&&i&&(tZ(1,n,i,e)||tZ(0,n,i,e)))return!0}return RK(e,t[0])&&RK(e,t[1])}function iZ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Qi(s.get("x"),r.getWidth()),u=Qi(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),h=e.get(c[1],t);o=a.dataToPoint([d,h])}if(IT(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions;eZ(e.get(c[0],t))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):eZ(e.get(c[1],t))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var rZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=DK.getMarkerModelFromSeries(e,"markLine");if(t){var i=t.getData(),r=JK(t).from,o=JK(t).to;r.each((function(t){iZ(r,t,!0,e,n),iZ(o,t,!1,e,n)})),i.each((function(e){i.setItemLayout(e,[r.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new bY);this.group.add(l.group);var u=oZ(r,e,t),c=u.from,d=u.to,h=u.line;JK(t).from=c,JK(t).to=d,t.setData(h);var p=t.get("symbol"),f=t.get("symbolSize"),m=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,r){var o=t.getItemModel(n);iZ(t,n,r,e,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=sy(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(g["retrieve2"])(o.get("symbolOffset",!0),v[r?0:1]),symbolRotate:Object(g["retrieve2"])(o.get("symbolRotate",!0),m[r?0:1]),symbolSize:Object(g["retrieve2"])(o.get("symbolSize"),f[r?0:1]),symbol:Object(g["retrieve2"])(o.get("symbol",!0),p[r?0:1]),style:s})}Object(g["isArray"])(p)||(p=[p,p]),Object(g["isArray"])(f)||(f=[f,f]),Object(g["isArray"])(m)||(m=[m,m]),Object(g["isArray"])(v)||(v=[v,v]),u.from.each((function(e){y(c,e,!0),y(d,e,!1)})),h.each((function(e){var t=h.getItemModel(e).getModel("lineStyle").getLineStyle();h.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),h.setItemVisual(e,{fromSymbolKeepAspect:c.getItemVisual(e,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(e,"symbolOffset"),fromSymbolRotate:c.getItemVisual(e,"symbolRotate"),fromSymbolSize:c.getItemVisual(e,"symbolSize"),fromSymbol:c.getItemVisual(e,"symbol"),toSymbolKeepAspect:d.getItemVisual(e,"symbolKeepAspect"),toSymbolOffset:d.getItemVisual(e,"symbolOffset"),toSymbolRotate:d.getItemVisual(e,"symbolRotate"),toSymbolSize:d.getItemVisual(e,"symbolSize"),toSymbol:d.getItemVisual(e,"symbol"),style:t})})),l.updateData(h),u.line.eachItemGraphicEl((function(e){Vs(e).dataModel=t,e.traverse((function(e){Vs(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}($K);function oZ(e,t,n){var i;i=e?Object(g["map"])(e&&e.dimensions,(function(e){var n=t.getData().getDimensionInfo(t.getData().mapDimension(e))||{};return Object(g["extend"])(Object(g["extend"])({},n),{name:e,ordinalMeta:null})})):[{name:"value",type:"float"}];var r=new qx(i,n),o=new qx(i,n),a=new qx([],n),s=Object(g["map"])(n.get("data"),Object(g["curry"])(QK,t,e,n));e&&(s=Object(g["filter"])(s,Object(g["curry"])(nZ,e)));var l=HK(!!e,i);return r.initData(Object(g["map"])(s,(function(e){return e[0]})),null,l),o.initData(Object(g["map"])(s,(function(e){return e[1]})),null,l),a.initData(Object(g["map"])(s,(function(e){return e[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}var aZ=rZ;function sZ(e){e.registerComponentModel(ZK),e.registerComponentView(aZ),e.registerPreprocessor((function(e){SK(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var lZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,i){return new t(e,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(DK),uZ=lZ,cZ=qr(),dZ=function(e,t,n,i){var r=PK(e,i[0]),o=PK(e,i[1]),a=r.coord,s=o.coord;a[0]=Object(g["retrieve"])(a[0],-1/0),a[1]=Object(g["retrieve"])(a[1],-1/0),s[0]=Object(g["retrieve"])(s[0],1/0),s[1]=Object(g["retrieve"])(s[1],1/0);var l=Object(g["mergeAll"])([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function hZ(e){return!isNaN(e)&&!isFinite(e)}function pZ(e,t,n,i){var r=1-e;return hZ(t[r])&&hZ(n[r])}function fZ(e,t){var n=t.coord[0],i=t.coord[1],r={coord:n,x:t.x0,y:t.y0},o={coord:i,x:t.x1,y:t.y1};return IT(e,"cartesian2d")?!(!n||!i||!pZ(1,n,i,e)&&!pZ(0,n,i,e))||FK(e,r,o):RK(e,r)||RK(e,o)}function mZ(e,t,n,i,r){var o,a=i.coordinateSystem,s=e.getItemModel(t),l=Qi(s.get(n[0]),r.getWidth()),u=Qi(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(e.getValues(n,t));else{var c=e.get(n[0],t),d=e.get(n[1],t),h=[c,d];a.clampData&&a.clampData(h,h),o=a.dataToPoint(h,!0)}if(IT(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");c=e.get(n[0],t),d=e.get(n[1],t);hZ(c)?o[0]=p.toGlobalCoord(p.getExtent()["x0"===n[0]?0:1]):hZ(d)&&(o[1]=f.toGlobalCoord(f.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var gZ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=DK.getMarkerModelFromSeries(e,"markArea");if(t){var i=t.getData();i.each((function(t){var r=Object(g["map"])(gZ,(function(r){return mZ(i,t,r,e,n)}));i.setItemLayout(t,r);var o=i.getItemGraphicEl(t);o.setShape("points",r)}))}}),this)},t.prototype.renderSeries=function(e,t,n,i){var r=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Ni});this.group.add(l.group),this.markKeep(l);var u=yZ(r,e,t);t.setData(u),u.each((function(t){var n=Object(g["map"])(gZ,(function(n){return mZ(u,t,n,e,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],h=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];tr(d),tr(h);var p=!(l[0]>d[1]||l[1]h[1]||c[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(gd),MZ=wZ,SZ=g["curry"],kZ=g["each"],CZ=Ni,TZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return f(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new CZ),this.group.add(this._selectorGroup=new CZ),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var r=e.get("align"),o=e.get("orient");r&&"auto"!==r||(r="right"===e.get("left")&&"vertical"===o?"right":"left");var a=e.get("selector",!0),s=e.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=ad(l,u,c),h=this.layoutInner(e,r,d,i,a,s),p=ad(g["defaults"]({width:h.width,height:h.height},l),u,c);this.group.x=p.x-h.x,this.group.y=p.y-h.y,this.group.markRedraw(),this.group.add(this._backgroundEl=AU(h,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,i,r,o,a){var s=this.getContentGroup(),l=g["createHashMap"](),u=t.get("selectedMode"),c=[];n.eachRawSeries((function(e){!e.get("legendHoverLink")&&c.push(e.id)})),kZ(t.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new CZ;return d.newline=!0,void s.add(d)}var h=n.getSeriesByName(a)[0];if(!l.get(a)){if(h){var p=h.getData(),f=p.getVisual("legendLineStyle")||{},m=p.getVisual("legendIcon"),v=p.getVisual("style"),y=this._createItem(h,a,o,r,t,e,f,v,m,u,i);y.on("click",SZ(OZ,a,null,i,c)).on("mouseover",SZ(AZ,h.name,null,i,c)).on("mouseout",SZ(EZ,h.name,null,i,c)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var d=s.indexOfName(a),h=s.getItemVisual(d,"style"),p=s.getItemVisual(d,"legendIcon"),f=Object(Jt["parse"])(h.fill);f&&0===f[3]&&(f[3]=.2,h=g["extend"](g["extend"]({},h),{fill:Object(Jt["stringify"])(f,"rgba")}));var m=this._createItem(n,a,o,r,t,e,{},h,p,u,i);m.on("click",SZ(OZ,null,a,i,c)).on("mouseover",SZ(AZ,null,a,i,c)).on("mouseout",SZ(EZ,null,a,i,c)),l.set(a,!0)}}),this);0}}),this),r&&this._createSelector(r,t,i,o,a)},t.prototype._createSelector=function(e,t,n,i,r){var o=this.getSelectorGroup();kZ(e,(function(e){var i=e.type,r=new Bs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);_u(r,{normal:a,emphasis:s},{defaultText:e.title}),Wl(r)}))},t.prototype._createItem=function(e,t,n,i,r,o,a,s,l,u,c){var d=e.visualDrawType,h=r.get("itemWidth"),p=r.get("itemHeight"),f=r.isSelected(t),m=i.get("symbolRotate"),v=i.get("symbolKeepAspect"),y=i.get("icon");l=y||l||"roundRect";var _=DZ(l,i,a,s,d,f,c),b=new CZ,x=i.getModel("textStyle");if(!g["isFunction"](e.getLegendIcon)||y&&"inherit"!==y){var w="inherit"===y&&e.getData().getVisual("symbol")?"inherit"===m?e.getData().getVisual("symbolRotate"):m:0;b.add(LZ({itemWidth:h,itemHeight:p,icon:l,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}))}else b.add(e.getLegendIcon({itemWidth:h,itemHeight:p,icon:l,iconRotate:m,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}));var M="left"===o?h+5:-5,S=o,k=r.get("formatter"),C=t;g["isString"](k)&&k?C=k.replace("{name}",null!=t?t:""):g["isFunction"](k)&&(C=k(t));var T=i.get("inactiveColor");b.add(new Bs({style:xu(x,{text:C,x:M,y:p/2,fill:f?x.getTextColor():T,align:S,verticalAlign:"middle"})}));var D=new Ss({shape:b.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&nv({el:D,componentModel:r,itemName:t,itemTooltipOption:L.option}),b.add(D),b.eachChild((function(e){e.silent=!0})),D.silent=!u,this.getContentGroup().add(b),Wl(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();rd(e.get("orient"),a,e.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){rd("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],h=e.get("selectorButtonGap",!0),p=e.getOrient().index,f=0===p?"width":"height",m=0===p?"height":"width",g=0===p?"y":"x";"end"===o?d[p]+=l[f]+h:u[p]+=c[f]+h,d[1-p]+=l[m]/2-c[m]/2,s.x=d[0],s.y=d[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+h+c[f],v[m]=Math.max(l[m],c[m]),v[g]=Math.min(0,c[g]+d[1-p]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Gf);function DZ(e,t,n,i,r,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),kZ(e,(function(n,i){"inherit"===e[i]&&(e[i]=t[i])}))}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=0===e.lastIndexOf("empty",0)?"fill":"stroke",d=l.getShallow("decal");u.decal=d&&"inherit"!==d?m_(d,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[c]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var h=t.getModel("lineStyle"),p=h.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===f?i.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),p.stroke=h.get("inactiveColor"),p.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function LZ(e){var t=e.icon||"roundRect",n=Cy(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function OZ(e,t,n,i){EZ(e,t,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),AZ(e,t,n,i)}function IZ(e){var t,n=e.getZr().storage.getDisplayList(),i=0,r=n.length;while(in[r],f=[-d.x,-d.y];t||(f[i]=l[s]);var m=[0,0],v=[-h.x,-h.y],y=g["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var _=e.get("pageButtonPosition",!0);"end"===_?v[i]+=n[r]-h[r]:m[i]+=h[r]+y}v[1-i]+=d[o]/2-h[o]/2,l.setPosition(f),u.setPosition(m),c.setPosition(v);var b={x:0,y:0};if(b[r]=p?n[r]:d[r],b[o]=Math.max(d[o],h[o]),b[a]=Math.min(0,h[a]+v[1-i]),u.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-h[r]-y,0),x[o]=b[o],u.setClipPath(new Ss({shape:x})),u.__rectSize=x[r]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&lu(l,{x:w.contentPosition[0],y:w.contentPosition[1]},p?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,t,n){var i=this._getPageInfo(t)[e];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;g["each"](["pagePrev","pageNext"],(function(i){var r=i+"DataIndex",o=null!=t[r],a=n.childOfName(i);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var i=n.childOfName("pageText"),r=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;i&&r&&i.setStyle("text",g["isString"](r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=e.getOrient().index,o=VZ[r],a=$Z[r],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,h={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return h;var p=y(u);h.contentPosition[r]=-p.s;for(var f=s+1,m=p,g=p,v=null;f<=c;++f)v=y(l[f]),(!v&&g.e>m.s+i||v&&!_(v,m.s))&&(m=g.i>m.i?g:v,m&&(null==h.pageNextDataIndex&&(h.pageNextDataIndex=m.i),++h.pageCount)),g=v;for(f=s-1,m=p,g=p,v=null;f>=-1;--f)v=y(l[f]),v&&_(g,v.s)||!(m.i=t&&e.s<=t+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,i=this.getContentGroup();return i.eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===e&&(t=r)})),null!=t?t:n},t.type="legend.scroll",t}(jZ),GZ=WZ;function UZ(e){e.registerAction("legendScroll","legendscroll",(function(e,t){var n=e.scrollDataIndex;null!=n&&t.eachComponent({mainType:"legend",subType:"scroll",query:e},(function(e){e.setScrollDataIndex(n)}))}))}function qZ(e){fx(RZ),e.registerComponentModel(zZ),e.registerComponentView(GZ),UZ(e)}function XZ(e){fx(RZ),fx(qZ)}var KZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="dataZoom.inside",t.defaultOption=Ku(sU.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(sU),ZZ=KZ,JZ=qr();function QZ(e,t,n){JZ(e).coordSysRecordMap.each((function(e){var i=e.dataZoomInfoMap.get(t.uid);i&&(i.getRange=n)}))}function eJ(e,t){for(var n=JZ(e).coordSysRecordMap,i=n.keys(),r=0;ri[n+t]&&(t=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}function aJ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=JZ(t),i=n.coordSysRecordMap||(n.coordSysRecordMap=Object(g["createHashMap"])());i.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=iU(e);Object(g["each"])(n.infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,nJ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(g["createHashMap"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),i.each((function(e){var t,n=e.controller,r=e.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(t=r.get(o))}if(t){var a=oJ(r);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),yv(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else tJ(i,e)}))}))}var sJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return f(t,e),t.prototype.render=function(t,n,i){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),QZ(i,t,{pan:Object(g["bind"])(lJ.pan,this),zoom:Object(g["bind"])(lJ.zoom,this),scrollMove:Object(g["bind"])(lJ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){eJ(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(dU),lJ={zoom:function(e,t,n,i){var r=this.range,o=r.slice(),a=e.axisModels[0];if(a){var s=cJ[t](null,[i.originX,i.originY],a,n,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return RN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:uJ((function(e,t,n,i,r,o){var a=cJ[i]([o.oldX,o.oldY],[o.newX,o.newY],t,r,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:uJ((function(e,t,n,i,r,o){var a=cJ[i]([0,0],[o.scrollDelta,o.scrollDelta],t,r,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function uJ(e){return function(t,n,i,r){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,i,r);return RN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var cJ={grid:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return e=e||[0,0],"x"===o.dim?(a.pixel=t[0]-e[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(e,t,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),"radiusAxis"===n.mainType?(a.pixel=t[0]-e[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=t[1]-e[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(e,t,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return e=e||[0,0],"horizontal"===o.orient?(s.pixel=t[0]-e[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},dJ=sJ;function hJ(e){MU(e),e.registerComponentModel(ZZ),e.registerComponentView(dJ),aJ(e)}var pJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Ku(sU.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},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:"#fff",borderColor:"#ACB8D1"},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:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(sU),fJ=pJ,mJ=Ss,gJ=7,vJ=1,yJ=30,_J=7,bJ="horizontal",xJ="vertical",wJ=5,MJ=["line","bar","candlestick","scatter"],SJ={easing:"cubicOut",duration:100,delay:0},kJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return f(t,e),t.prototype.init=function(e,t){this.api=t,this._onBrush=Object(g["bind"])(this._onBrush,this),this._onBrushEnd=Object(g["bind"])(this._onBrushEnd,this)},t.prototype.render=function(t,n,i,r){if(e.prototype.render.apply(this,arguments),yv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_v(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var t=this._displayables.sliderGroup=new Ni;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,t=this.api,n=e.get("brushSelect"),i=n?_J:0,r=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===bJ?{right:o.width-r.x-r.width,top:o.height-yJ-gJ-i,width:r.width,height:yJ}:{right:gJ,top:r.y,width:yJ,height:r.height},s=dd(e.option);Object(g["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=ad(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===xJ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==bJ||r?n===bJ&&r?{scaleY:a?1:-1,scaleX:-1}:n!==xJ||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=e.getBoundingRect([o]);e.x=t.x-s.x,e.y=t.y-s.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,t=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new mJ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var r=new mJ({shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:"transparent"},z2:0,onclick:Object(g["bind"])(this._onClickPanel,this)}),o=this.api.getZr();i?(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)),n.add(r)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],i=e.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=r.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,h=[0,t[1]],p=[0,t[0]],f=[[t[0],0],[0,0]],m=[],g=p[1]/(r.count()-1),v=0,y=Math.round(r.count()/t[0]);r.each([a],(function(e,t){if(y>0&&t%y)v+=g;else{var n=null==e||isNaN(e)||""===e,i=n?0:Ji(e,u,h,!0);n&&!d&&t?(f.push([f[f.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&d&&(f.push([v,0]),m.push([v,0])),f.push([v,i]),m.push([v,i]),v+=g,d=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=m}this._shadowData=r,this._shadowDim=a,this._shadowSize=[t[0],t[1]];for(var _=this.dataZoomModel,b=0;b<3;b++){var x=w(1===b);this._displayables.sliderGroup.add(x),this._displayables.dataShadowSegs.push(x)}}}function w(e){var t=_.getModel(e?"selectedDataBackground":"dataBackground"),n=new Ni,i=new qm({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Zm({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,i=this.ecModel;return e.eachTargetAxis((function(r,o){var a=e.getAxisProxy(r,o).getTargetSeriesModels();Object(g["each"])(a,(function(e){if(!n&&!(!0!==t&&Object(g["indexOf"])(MJ,e.get("type"))<0)){var a,s=i.getComponent(tU(r),o).axis,l=CJ(r),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],i=t.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=t.filler=new mJ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new mJ({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:vJ,fill:"rgba(0,0,0,0)"}})),Object(g["each"])([0,1],(function(t){var o=a.get("handleIcon");!My[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Cy(o,-1,0,2,2,null,!0);s.attr({cursor:TJ(this._orient),draggable:!0,drift:Object(g["bind"])(this._onDragMove,this,t),ondragend:Object(g["bind"])(this._onDragEnd,this),onmouseover:Object(g["bind"])(this._showDataInfo,this,!0),onmouseout:Object(g["bind"])(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Qi(u,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(),Wl(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[t]=s);var d=a.getModel("textStyle");e.add(i[t]=new Bs({silent:!0,invisible:!0,style:xu(d,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:d.getTextColor(),font:d.getFont()}),z2:10}))}),this);var d=c;if(u){var h=Qi(a.get("moveHandleSize"),o[1]),p=t.moveHandle=new Ss({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:h}}),f=.8*h,m=t.moveHandleIcon=Cy(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);m.silent=!0,m.y=o[1]+h/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(h,10));d=t.moveZone=new Ss({invisible:!0,shape:{y:o[1]-v,height:h+v}}),d.on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(m),r.add(d)}d.attr({draggable:!0,cursor:TJ(this._orient),drift:Object(g["bind"])(this._onDragMove,this,"all"),ondragstart:Object(g["bind"])(this._showDataInfo,this,!0),ondragend:Object(g["bind"])(this._onDragEnd,this),onmouseover:Object(g["bind"])(this._showDataInfo,this,!0),onmouseout:Object(g["bind"])(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[Ji(e[0],[0,100],t,!0),Ji(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];RN(t,i,r,n.get("zoomLock")?"all":e,null!=o.minSpan?Ji(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ji(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=tr([Ji(i[0],r,a,!0),Ji(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,i=tr(n.slice()),r=this._size;Object(g["each"])([0,1],(function(e){var i=t.handles[e],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:r[1]/2-o/2})}),this),t.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};t.moveHandle&&(t.moveHandle.setShape(o),t.moveZone.setShape(o),t.moveZone.getBoundingRect(),t.moveHandleIcon&&t.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=t.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;lt[0]||n[1]<0||n[1]>t[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Ae(t,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var t=this._displayables.brushRect;if(this._brushing=!1,t){t.attr("ignore",!0);var n=t.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var r=this._getViewExtent(),o=[0,100];this._range=tr([Ji(n.x,r,o,!0),Ji(n.x+n.width,r,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ge(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new mJ({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(e,t),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},t.prototype._dispatchZoomAction=function(e){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?SJ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=iU(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),r=this.api.getHeight();e={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return e},t.type="dataZoom.slider",t}(dU);function CJ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function TJ(e){return"vertical"===e?"ns-resize":"ew-resize"}var DJ=kJ;function LJ(e){e.registerComponentModel(fJ),e.registerComponentView(DJ),MU(e)}function OJ(e){fx(hJ),fx(LJ)}var IJ={get:function(e,t,n){var i=g["clone"]((AJ[e]||{})[t]);return n&&g["isArray"](i)?i[i.length-1]:i}},AJ={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},EJ=IJ,jJ=Gj.mapVisual,PJ=Gj.eachVisual,YJ=g["isArray"],NJ=g["each"],RJ=tr,FJ=Ji,HJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return f(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&SX(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var t=this.stateList;e=g["bind"](e,this),this.controllerVisuals=MX(this.option.controller,t,e),this.targetVisuals=MX(this.option.target,t,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,t=[];return null==e||"all"===e?this.ecModel.eachSeries((function(e,n){t.push(n)})):t=Cr(e),t},t.prototype.eachTargetSeries=function(e,t){g["each"](this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(t,i)}),this)},t.prototype.isTargetSeries=function(e){var t=!1;return this.eachTargetSeries((function(n){n===e&&(t=!0)})),t},t.prototype.formatValueText=function(e,t,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],g["isArray"](e)&&(e=e.slice(),i=!0);var l=t?e:i?[u(e[0]),u(e[1])]:u(e);return g["isString"](s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):g["isFunction"](s)?i?s(e[0],e[1]):s(e):i?e[0]===a[0]?n[0]+" "+l[1]:e[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(e){return e===a[0]?"min":e===a[1]?"max":(+e).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,t=RJ([e.min,e.max]);this._dataExtent=t},t.prototype.getDataDimensionIndex=function(e){var t=this.option.dimension;if(null!=t)return e.getDimensionIndex(t);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=e.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,t=this.option,n={inRange:t.inRange,outOfRange:t.outOfRange},i=t.target||(t.target={}),r=t.controller||(t.controller={});g["merge"](i,n),g["merge"](r,n);var o=this.isCategory();function a(n){YJ(t.color)&&!n.inRange&&(n.inRange={color:t.color.slice().reverse()}),n.inRange=n.inRange||{color:e.get("gradientColor")}}function s(e,t,n){var i=e[t],r=e[n];i&&!r&&(r=e[n]={},NJ(i,(function(e,t){if(Gj.isValidType(t)){var n=EJ.get(t,"inactive",o);null!=n&&(r[t]=n,"color"!==t||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol(),a=r||"roundRect";NJ(this.stateList,(function(r){var s=this.itemSize,l=e[r];l||(l=e[r]={color:o?i:[i]}),null==l.symbol&&(l.symbol=t&&g["clone"](t)||(o?a:[a])),null==l.symbolSize&&(l.symbolSize=n&&g["clone"](n)||(o?s[0]:[s[0],s[0]])),l.symbol=jJ(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;PJ(u,(function(e){e>c&&(c=e)})),l.symbolSize=jJ(u,(function(e){return FJ(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,i),a.call(this,r),s.call(this,i,"inRange","outOfRange"),l.call(this,r)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(gd),zJ=HJ,BJ=[20,140],VJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(e){e.mappingMethod="linear",e.dataExtent=this.getExtent()})),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var t=this.itemSize;(null==t[0]||isNaN(t[0]))&&(t[0]=BJ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=BJ[1])},t.prototype._resetRange=function(){var e=this.getExtent(),t=this.option.range;!t||t.auto?(e.auto=1,this.option.range=e):g["isArray"](t)&&(t[0]>t[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),g["each"](this.stateList,(function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=t[1]/3)}),this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),t=tr((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=n[1]||e<=t[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(t,n){e[0]<=t&&t<=e[1]&&i.push(n)}),this),t.push({seriesId:n.id,dataIndex:i})}),this),t},t.prototype.getVisualMeta=function(e){var t=$J(this,"outOfRange",this.getExtent()),n=$J(this,"inRange",this.option.range.slice()),i=[];function r(t,n){i.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;ae[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},t.prototype._createBarPoints=function(e,t){var n=this.visualMapModel.itemSize;return[[n[0]-t[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-t[1],e[1]]]},t.prototype._createBarGroup=function(e){var t=this._orient,n=this.visualMapModel.get("inverse");return new Ni("horizontal"!==t||n?"horizontal"===t&&n?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==t||n?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,t){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();JJ([0,1],(function(l){var u=r[l];u.setStyle("fill",t.handlesColor[l]),u.y=e[l];var c=ZJ(e[l],[0,a[1]],s,!0),d=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=d/a[0],u.x=a[0]-d/2;var h=$g(n.handleLabelPoints[l],Vg(u,this.group));o[l].setStyle({x:h[0],y:h[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c={convertOpacityToAlpha:!0},d=this.getControllerVisual(e,"color",c),h=this.getControllerVisual(e,"symbolSize"),p=ZJ(e,o,s,!0),f=a[0]-h/2,m={x:u.x,y:u.y};u.y=p,u.x=f;var g=$g(l.indicatorLabelPoint,Vg(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),_=this._orient,b="horizontal"===_;v.setStyle({text:(n||"")+r.formatValueText(t),verticalAlign:b?y:"middle",align:b?"center":y});var x={x:f,y:p,style:{fill:d}},w={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var M={duration:100,easing:"cubicInOut",additive:!0};u.x=m.x,u.y=m.y,u.animateTo(x,M),v.animateTo(w,M)}else u.attr(x),v.attr(w);this._firstShowIndicator=!1;var S=this._shapes.handleLabels;if(S)for(var k=0;kr[1]&&(u[1]=1/0),t&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,d=[];(t||aQ(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var h=Gr(c,d);this._dispatchHighDown("downplay",KJ(h[0],n)),this._dispatchHighDown("highlight",KJ(h[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(hy(e.target,(function(e){var n=Vs(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var r=n.getData(t.dataType),o=r.getStore().get(i.getDataDimensionIndex(r),t.dataIndex);isNaN(o)||this._showIndicator(o,o)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var t=this._shapes.handleLabels;if(t)for(var n=0;n=0&&(r.dimension=o,i.push(r))}})),e.getData().setVisual("visualMeta",i)}}];function hQ(e,t,n,i){for(var r=t.targetVisuals[i],o=Gj.prepareVisualTypes(r),a={color:sy(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(uQ,cQ),Object(g["each"])(dQ,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(fQ))}function yQ(e){e.registerComponentModel(WJ),e.registerComponentView(lQ),vQ(e)}var _Q=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return f(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],bQ[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var r=this.option.categories;this.resetVisual((function(e,t){"categories"===i?(e.mappingMethod="category",e.categories=g["clone"](r)):(e.dataExtent=this.getExtent(),e.mappingMethod="piecewise",e.pieceList=g["map"](this._pieceList,(function(e){return e=g["clone"](e),"inRange"!==t&&(e.visual=null),e})))}))},t.prototype.completeVisualOption=function(){var t=this.option,n={},i=Gj.listVisualTypes(),r=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}g["each"](t.pieces,(function(e){g["each"](i,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),g["each"](n,(function(e,n){var i=!1;g["each"](this.stateList,(function(e){i=i||o(t,e,n)||o(t.target,e,n)}),this),!i&&g["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=EJ.get(n,"inRange"===e?"active":"inactive",r)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,i=this._pieceList,r=(t?n:e).selected||{};if(n.selected=r,g["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;g["each"](i,(function(e,t){var n=this.getSelectedMapKey(e);r[n]&&(o?r[n]=!1:o=!0)}),this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=g["clone"](e)},t.prototype.getValueState=function(e){var t=Gj.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var t=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(t,i){var o=Gj.findPieceIndex(t,n);o===e&&r.push(i)}),this),t.push({seriesId:i.id,dataIndex:r})}),this),t},t.prototype.getRepresentValue=function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var n=e.interval||[];t=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return t},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var t=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),o=r[r.length-1].interval[1],o!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return g["each"](r,(function(e){var t=e.interval;t&&(t[0]>a&&s([a,t[0]],"outOfRange"),s(t.slice()),a=t[1])}),this),{stops:t,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=e(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:t.push({value:r[0],color:s},{value:r[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=Ku(zJ.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(zJ),bQ={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;var o=(i[1]-i[0])/r;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function xQ(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var wQ=_Q,MQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return f(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),i=t.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=g["retrieve"](t.get("showLabel",!0),!u);u&&this._renderEndsText(e,u[0],s,c,a),g["each"](l.viewPieceList,(function(i){var l=i.piece,u=new Ni;u.onclick=g["bind"](this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var d=t.getRepresentValue(l);if(this._createItemSymbol(u,d,[0,0,s[0],s[1]]),c){var h=this.visualMapModel.getValueState(d);u.add(new Bs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===h?.5:1}}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),rd(t.get("orient"),e,t.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,t){var n=this;e.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(e){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:e,batch:KJ(i.findTargetDataIndices(t),i)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return XJ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,i,r){if(t){var o=new Ni,a=this.visualMapModel.textStyleModel;o.add(new Bs({style:xu(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:t})})),e.add(o)}},t.prototype._getViewData=function(){var e=this.visualMapModel,t=g["map"](e.getPieceList(),(function(e,t){return{piece:e,indexInModelPieceList:t}})),n=e.get("text"),i=e.get("orient"),r=e.get("inverse");return("horizontal"===i?r:!r)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n){e.add(Cy(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color")))},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,i=n.selectedMode;if(i){var r=g["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===i||!0===i?(r[o]=!0,g["each"](r,(function(e,t){r[t]=t===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},t.type="visualMap.piecewise",t}(UJ),SQ=MQ;function kQ(e){e.registerComponentModel(wQ),e.registerComponentView(SQ),vQ(e)}function CQ(e){fx(yQ),fx(kQ)}var TQ={label:{enabled:!0},decal:{show:!1}},DQ=qr(),LQ={};function OQ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var i=g["clone"](TQ);g["merge"](i.label,e.getLocaleModel().get("aria"),!1),g["merge"](n.option,i,!1),r(),o()}function r(){var t=n.getModel("decal"),i=t.get("show");if(i){var r=g["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=r.get(e.type);t||(t={},r.set(e.type,t)),DQ(e).scope=t}})),e.eachRawSeries((function(t){if(!e.isSeriesFiltered(t))if(g["isFunction"](t.enableAriaDecal))t.enableAriaDecal();else{var n=t.getData();if(t.isColorBySeries()){var i=$d(t.ecModel,t.name,LQ,e.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=t.getRawData(),a={},s=DQ(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var i=a[e],r=o.getName(e)||e+"",c=$d(t.ecModel,r,s,l),d=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(d,c))}))}}function u(e,t){var n=e?g["extend"](g["extend"]({},t),e):t;return n.dirty=!0,n}}))}}function o(){var i=e.getLocaleModel().get("aria"),r=n.getModel("label");if(r.option=g["defaults"](r.option,i),r.get("enabled")){var o=t.getZr().dom;if(r.get("description"))o.setAttribute("aria-label",r.get("description"));else{var u,c=e.getSeriesCount(),d=r.get(["data","maxCount"])||10,h=r.get(["series","maxCount"])||10,p=Math.min(c,h);if(!(c<1)){var f=s();if(f){var m=r.get(["general","withTitle"]);u=a(m,{title:f})}else u=r.get(["general","withoutTitle"]);var v=[],y=c>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),e.eachSeries((function(e,t){if(t1?r.get(["series","multiple",o]):r.get(["series","single",o]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var u=r.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=r.get(["data","allData"]);for(var h=r.get(["data","separator","middle"]),f=r.get(["data","separator","end"]),m=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},jQ=function(){function e(e){var t=this._condVal=Object(g["isString"])(e)?new RegExp(e):Object(g["isRegExp"])(e)?e:null;if(null==t){var n="";0,Jd(n)}}return e.prototype.evaluate=function(e){var t=typeof e;return Object(g["isString"])(t)?this._condVal.test(e):!!Object(g["isNumber"])(t)&&this._condVal.test(e+"")},e}(),PQ=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),YQ=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function f(e,n,i,r){e0(e,i)&&e0(n,r)||t.push(e,n,i,r,i,r)}function m(e,n,i,r,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=nS:T2&&l.push(t),l}function n0(e,t,n,i,r,o,a,s,l,u){if(e0(e,n)&&e0(t,i)&&e0(r,a)&&e0(o,s))l.push(a,s);else{var c=2/u,d=c*c,h=a-e,p=s-t,f=Math.sqrt(h*h+p*p);h/=f,p/=f;var m=n-e,g=i-t,v=r-a,y=o-s,_=m*m+g*g,b=v*v+y*y;if(_=0&&S=0)l.push(a,s);else{var k=[],C=[];Rt(e,n,r,a,.5,k),Rt(t,i,o,s,.5,C),n0(k[0],C[0],k[1],C[1],k[2],C[2],k[3],C[3],l,u),n0(k[4],C[4],k[5],C[5],k[6],C[6],k[7],C[7],l,u)}}}}function i0(e,t){var n=t0(e),i=[];t=t||1;for(var r=0;r0)for(u=0;uMath.abs(u),d=r0([l,u],c?0:1,t),h=(c?s:u)/d.length,p=0;pr,a=r0([i,r],o?0:1,t),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",d=e[s]/a.length,h=0;h1?null:new Ae(m*l+e,m*u+t)}function u0(e,t,n){var i=new Ae;Ae.sub(i,n,t),i.normalize();var r=new Ae;Ae.sub(r,e,t);var o=r.dot(i);return o}function c0(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function d0(e,t,n){for(var i=e.length,r=[],o=0;oa?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),d0(t,u,c)}function p0(e,t,n,i){if(1===n)i.push(t);else{var r=Math.floor(n/2),o=e(t);p0(e,o[0],r,i),p0(e,o[1],n-r,i)}return i}function f0(e,t){for(var n=[],i=0;i0)for(var x=i/n,w=-i/2;w<=i/2;w+=x){var M=Math.sin(w),S=Math.cos(w),k=0;for(_=0;_0;u/=2){var c=0,d=0;(e&u)>0&&(c=1),(t&u)>0&&(d=1),l+=u*u*(3*c^d),0===d&&(1===c&&(e=u-1-e,t=u-1-t),s=e,e=t,t=s)}return l}function E0(e){var t=1/0,n=1/0,i=-1/0,r=-1/0,o=Object(g["map"])(e,(function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]})),a=Object(g["map"])(o,(function(o,a){return{cp:o,z:A0(o[0],o[1],t,n,i,r),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function j0(e){return v0(e.path,e.count)}function P0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Y0(e,t,n){var i=[];function r(e){for(var t=0;t=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var H0={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);R0(e)&&(s=e,l=t),R0(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,h=s?F0(l,s):F0(d?t:e,[d?e:t]),p=0,f=0;fV0))for(var i=n.getIndices(),r=W0(n),o=0;o0&&r.group.traverse((function(e){e instanceof ss&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function Q0(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function e1(e){return Object(g["isArray"])(e)?e.sort().join(","):e}function t1(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function n1(e,t){var n=Object(g["createHashMap"])(),i=Object(g["createHashMap"])(),r=Object(g["createHashMap"])();return Object(g["each"])(e.oldSeries,(function(t,n){var o=e.oldData[n],a=Q0(t),s=e1(a);i.set(s,o),Object(g["isArray"])(a)&&Object(g["each"])(a,(function(e){r.set(e,{data:o,key:s})}))})),Object(g["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.getData(),o=Q0(e),a=e1(o),s=i.get(a);if(s)n.set(a,{oldSeries:[{divide:t1(s),data:s}],newSeries:[{divide:t1(t),data:t}]});else if(Object(g["isArray"])(o)){0;var l=[];Object(g["each"])(o,(function(e){var t=i.get(e);t&&l.push({divide:t1(t),data:t})})),l.length&&n.set(a,{oldSeries:l,newSeries:[{data:t,divide:t1(t)}]})}else{var u=r.get(o);if(u){var c=n.get(u.key);c||(c={oldSeries:[{data:u.data,divide:t1(u.data)}],newSeries:[]},n.set(u.key,c)),c.newSeries.push({data:t,divide:t1(t)})}}}})),n}function i1(e,t){for(var n=0;n=0&&r.push({data:t.oldData[n],divide:t1(t.oldData[n]),dim:e.dimension})})),Object(g["each"])(Cr(e.to),(function(e){var t=i1(n.updatedSeries,e);if(t>=0){var i=n.updatedSeries[t].getData();o.push({data:i,divide:t1(i),dim:e.dimension})}})),r.length>0&&o.length>0&&J0(r,o,i)}function o1(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(g["each"])(Cr(n.seriesTransition),(function(e){Object(g["each"])(Cr(e.to),(function(e){for(var t=n.updatedSeries,i=0;i=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}});return r}))},"3a38":function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},"3a39":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}});return i}))},"3a6c":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t=e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}});return t}))},"3b1b":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"},n=e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){var n=e%10,i=e>=100?100:null;return e+(t[e]||t[n]||t[i])},week:{dow:1,doy:7}});return n}))},"3c0d":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function o(e){return e>1&&e<5&&1!==~~(e/10)}function a(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?r+(o(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(o(e)?"dny":"dní"):r+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?r+(o(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(o(e)?"roky":"let"):r+"lety"}}var s=e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:a,ss:a,m:a,mm:a,h:a,hh:a,d:a,dd:a,M:a,MM:a,y:a,yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return s}))},"3c4e":function(e,t,n){"use strict";var i=function(e){return r(e)&&!o(e)};function r(e){return!!e&&"object"===typeof e}function o(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||l(e)}var a="function"===typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103;function l(e){return e.$$typeof===s}function u(e){return Array.isArray(e)?[]:{}}function c(e,t){var n=t&&!0===t.clone;return n&&i(e)?p(u(e),e,t):e}function d(e,t,n){var r=e.slice();return t.forEach((function(t,o){"undefined"===typeof r[o]?r[o]=c(t,n):i(t)?r[o]=p(e[o],t,n):-1===e.indexOf(t)&&r.push(c(t,n))})),r}function h(e,t,n){var r={};return i(e)&&Object.keys(e).forEach((function(t){r[t]=c(e[t],n)})),Object.keys(t).forEach((function(o){i(t[o])&&e[o]?r[o]=p(e[o],t[o],n):r[o]=c(t[o],n)})),r}function p(e,t,n){var i=Array.isArray(t),r=Array.isArray(e),o=n||{arrayMerge:d},a=i===r;if(a){if(i){var s=o.arrayMerge||d;return s(e,t,n)}return h(e,t,n)}return c(t,n)}p.all=function(e,t){if(!Array.isArray(e)||e.length<2)throw new Error("first argument should be an array with at least two elements");return e.reduce((function(e,n){return p(e,n,t)}))};var f=p;e.exports=f},"3d33":function(e,t,n){ /** * @license * Video.js 6.13.0 * Copyright Brightcove, Inc. * Available under Apache License Version 2.0 * * * Includes vtt.js * Available under Apache License Version 2.0 * */ function i(e){return e&&"object"===typeof e&&"default"in e?e["default"]:e}var r=i(n("be09")),o=i(n("ef34")),a=i(n("1b8d")),s=i(n("8c10")),l=i(n("eec7")),u=i(n("2b8c")),c="6.13.0",d=r.navigator&&r.navigator.userAgent||"",h=/AppleWebKit\/([\d.]+)/i.exec(d),p=h?parseFloat(h.pop()):null,f=/iPad/i.test(d),m=/iPhone/i.test(d)&&!f,g=/iPod/i.test(d),v=m||f||g,y=function(){var e=d.match(/OS (\d+)_/i);return e&&e[1]?e[1]:null}(),_=/Android/i.test(d),b=function(){var e=d.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),x=_&&/webkit/i.test(d)&&b<2.3,w=_&&b<5&&p<537,M=/Firefox/i.test(d),S=/Edge/i.test(d),k=!S&&(/Chrome/i.test(d)||/CriOS/i.test(d)),C=function(){var e=d.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),T=/MSIE\s8\.0/.test(d),D=function(){var e=/MSIE\s(\d+)\.\d/.exec(d),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(d)&&/rv:11.0/.test(d)&&(t=11),t}(),L=/Safari/i.test(d)&&!k&&!_&&!S,O=(L||v)&&!k,I=ne()&&("ontouchstart"in r||r.navigator.maxTouchPoints||r.DocumentTouch&&r.document instanceof r.DocumentTouch),A=ne()&&"backgroundSize"in r.document.createElement("video").style,E=(Object.freeze||Object)({IS_IPAD:f,IS_IPHONE:m,IS_IPOD:g,IS_IOS:v,IOS_VERSION:y,IS_ANDROID:_,ANDROID_VERSION:b,IS_OLD_ANDROID:x,IS_NATIVE_ANDROID:w,IS_FIREFOX:M,IS_EDGE:S,IS_CHROME:k,CHROME_VERSION:C,IS_IE8:T,IE_VERSION:D,IS_SAFARI:L,IS_ANY_SAFARI:O,TOUCH_ENABLED:I,BACKGROUND_SIZE_SUPPORTED:A}),j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Y=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},N=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},R=function(e,t){return e.raw=t,e},F=Object.prototype.toString,H=function(e){return $(e)?Object.keys(e):[]};function z(e,t){H(e).forEach((function(n){return t(e[n],n)}))}function B(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return H(e).reduce((function(n,i){return t(n,e[i],i)}),n)}function V(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3],r=o.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(X.warn(a(J,e,n)),r.setAttribute(e,n)):"textContent"===e?se(r,n):r[e]=n})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Ce(r,i),r}function se(e,t){return"undefined"===typeof e.textContent?e.innerText=t:e.textContent=t,e}function le(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function ue(e,t){return ee(t),e.classList?e.classList.contains(t):te(t).test(e.className)}function ce(e,t){return e.classList?e.classList.add(t):ue(e,t)||(e.className=(e.className+" "+t).trim()),e}function de(e,t){return e.classList?e.classList.remove(t):(ee(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function he(e,t,n){var i=ue(e,t);if("function"===typeof n&&(n=n(e,t)),"boolean"!==typeof n&&(n=!i),n!==i)return n?ce(e,t):de(e,t),e}function pe(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null===i||"undefined"===typeof i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function fe(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var o=i[r].name,a=i[r].value;"boolean"!==typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function me(e,t){return e.getAttribute(t)}function ge(e,t,n){e.setAttribute(t,n)}function ve(e,t){e.removeAttribute(t)}function ye(){o.body.focus(),o.onselectstart=function(){return!1}}function _e(){o.onselectstart=function(){return!0}}function be(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(Z(e,"height"))),n.width||(n.width=parseFloat(Z(e,"width"))),n}}function xe(e){var t=void 0;if(e.getBoundingClientRect&&e.parentNode&&(t=e.getBoundingClientRect()),!t)return{left:0,top:0};var n=o.documentElement,i=o.body,a=n.clientLeft||i.clientLeft||0,s=r.pageXOffset||i.scrollLeft,l=t.left+s-a,u=n.clientTop||i.clientTop||0,c=r.pageYOffset||i.scrollTop,d=t.top+c-u;return{left:Math.round(l),top:Math.round(d)}}function we(e,t){var n={},i=xe(e),r=e.offsetWidth,o=e.offsetHeight,a=i.top,s=i.left,l=t.pageY,u=t.pageX;return t.changedTouches&&(u=t.changedTouches[0].pageX,l=t.changedTouches[0].pageY),n.y=Math.max(0,Math.min(1,(a-l+o)/o)),n.x=Math.max(0,Math.min(1,(u-s)/r)),n}function Me(e){return $(e)&&3===e.nodeType}function Se(e){while(e.firstChild)e.removeChild(e.firstChild);return e}function ke(e){return"function"===typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"===typeof e&&(e=e()),ie(e)||Me(e)?e:"string"===typeof e&&/\S/.test(e)?o.createTextNode(e):void 0})).filter((function(e){return e}))}function Ce(e,t){return ke(t).forEach((function(t){return e.appendChild(t)})),e}function Te(e,t){return Ce(Se(e),t)}function De(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||(9===D||0===e.button&&1===e.buttons))}var Le=oe("querySelector"),Oe=oe("querySelectorAll"),Ie=(Object.freeze||Object)({isReal:ne,isEl:ie,isInFrame:re,createEl:ae,textContent:se,prependTo:le,hasClass:ue,addClass:ce,removeClass:de,toggleClass:he,setAttributes:pe,getAttributes:fe,getAttribute:me,setAttribute:ge,removeAttribute:ve,blockTextSelection:ye,unblockTextSelection:_e,getBoundingClientRect:be,findPosition:xe,getPointerPosition:we,isTextNode:Me,emptyEl:Se,normalizeContent:ke,appendContent:Ce,insertContent:Te,isSingleLeftClick:De,$:Le,$$:Oe}),Ae=1;function Ee(){return Ae++}var je={},Pe="vdata"+(new Date).getTime();function Ye(e){var t=e[Pe];return t||(t=e[Pe]=Ee()),je[t]||(je[t]={}),je[t]}function Ne(e){var t=e[Pe];return!!t&&!!Object.getOwnPropertyNames(je[t]).length}function Re(e){var t=e[Pe];if(t){delete je[t];try{delete e[Pe]}catch(n){e.removeAttribute?e.removeAttribute(Pe):e[Pe]=null}}}function Fe(e,t){var n=Ye(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Re(e)}function He(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function ze(e){function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var i=e||r.event;for(var a in e={},i)"layerX"!==a&&"layerY"!==a&&"keyLocation"!==a&&"webkitMovementX"!==a&&"webkitMovementY"!==a&&("returnValue"===a&&i.preventDefault||(e[a]=i[a]));if(e.target||(e.target=e.srcElement||o),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=o.documentElement,l=o.body;e.pageX=e.clientX+(s&&s.scrollLeft||l&&l.scrollLeft||0)-(s&&s.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||l&&l.scrollTop||0)-(s&&s.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e}var Be=!1;(function(){try{var e=Object.defineProperty({},"passive",{get:function(){Be=!0}});r.addEventListener("test",null,e),r.removeEventListener("test",null,e)}catch(t){}})();var Ve=["touchstart","touchmove"];function $e(e,t,n){if(Array.isArray(t))return He($e,e,t,n);var i=Ye(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=Ee()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=ze(t);var r=i.handlers[t.type];if(r)for(var o=r.slice(0),a=0,s=o.length;a-1&&(r={passive:!0}),e.addEventListener(t,i.dispatcher,r)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function We(e,t,n){if(Ne(e)){var i=Ye(e);if(i.handlers){if(Array.isArray(t))return He(We,e,t,n);var r=function(e,t){i.handlers[t]=[],Fe(e,t)};if(void 0!==t){var o=i.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a0)for(var r=0,a=e.length;r0)for(var s=0,l=t.length;s0)for(var u=0,c=n.length;u0)for(var d=0,h=i.length;d=t&&(e.apply(void 0,arguments),n=i)};return i},it=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:r,o=void 0,a=function(){i.clearTimeout(o),o=null},s=function(){var r=this,a=arguments,s=function(){o=null,s=null,n||e.apply(r,a)};!o&&n&&e.apply(r,a),i.clearTimeout(o),o=i.setTimeout(s,t)};return s.cancel=a,s},rt=function(){};rt.prototype.allowedEvents_={},rt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},$e(this,e,t),this.addEventListener=n},rt.prototype.addEventListener=rt.prototype.on,rt.prototype.off=function(e,t){We(this,e,t)},rt.prototype.removeEventListener=rt.prototype.off,rt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ue(this,e,t),this.addEventListener=n},rt.prototype.trigger=function(e){var t=e.type||e;"string"===typeof e&&(e={type:t}),e=ze(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),Ge(this,e)},rt.prototype.dispatchEvent=rt.prototype.trigger;var ot=function(e){return e instanceof rt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"===typeof e[t]}))},at=function(e){return"string"===typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},st=function(e){if(!e.nodeName&&!ot(e))throw new Error("Invalid target; must be a DOM node or evented object.")},lt=function(e){if(!at(e))throw new Error("Invalid event type; must be a non-empty string or array.")},ut=function(e){if("function"!==typeof e)throw new Error("Invalid listener; must be a function.")},ct=function(e,t){var n=t.length<3||t[0]===e||t[0]===e.eventBusEl_,i=void 0,r=void 0,o=void 0;return n?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],o=t[1]):(i=t[0],r=t[1],o=t[2]),st(i),lt(r),ut(o),o=tt(e,o),{isTargetingSelf:n,target:i,type:r,listener:o}},dt=function(e,t,n,i){st(e),e.nodeName?qe[t](e,n,i):e[t](n,i)},ht={on:function(){for(var e=this,t=arguments.length,n=Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=ae("span",{className:"vjs-event-bus"});return V(e,ht),e.on("dispose",(function(){e.off(),r.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var ft={state:{},setState:function(e){var t=this;"function"===typeof e&&(e=e());var n=void 0;return z(e,(function(e,i){t.state[i]!==e&&(n=n||{},n[i]={from:t.state[i],to:e}),t.state[i]=e})),n&&ot(this)&&this.trigger({changes:n,type:"statechanged"}),n}};function mt(e,t){return V(e,ft),e.state=V({},e.state,t),"function"===typeof e.handleStateChanged&&ot(e)&&e.on("statechanged",e.handleStateChanged),e}function gt(e){return"string"!==typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}function vt(e,t){return gt(e)===gt(t)}function yt(){for(var e={},t=arguments.length,n=Array(t),i=0;i=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Re(this.el_),this.el_=null),this.player_=null},e.prototype.player=function(){return this.player_},e.prototype.options=function(e){return X.warn("this.options() has been deprecated and will be moved to the constructor in 6.0"),e?(this.options_=yt(this.options_,e),this.options_):this.options_},e.prototype.el=function(){return this.el_},e.prototype.createEl=function(e,t,n){return ae(e,t,n)},e.prototype.localize=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),o=r&&r[i],a=i&&i.split("-")[0],s=r&&r[a],l=n;return o&&o[e]?l=o[e]:s&&s[e]&&(l=s[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return"undefined"===typeof i&&(r=e),r}))),l},e.prototype.contentEl=function(){return this.contentEl_||this.el_},e.prototype.id=function(){return this.id_},e.prototype.name=function(){return this.name_},e.prototype.children=function(){return this.children_},e.prototype.getChildById=function(e){return this.childIndex_[e]},e.prototype.getChild=function(e){if(e)return e=gt(e),this.childNameIndex_[e]},e.prototype.addChild=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.children_.length,r=void 0,o=void 0;if("string"===typeof t){o=gt(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!==typeof s)return null;r=new s(this.player_||this,n)}else r=t;if(this.children_.splice(i,0,r),"function"===typeof r.id&&(this.childIndex_[r.id()]=r),o=o||r.name&>(r.name()),o&&(this.childNameIndex_[o]=r),"function"===typeof r.el&&r.el()){var l=this.contentEl().children,u=l[i]||null;this.contentEl().insertBefore(r.el(),u)}return r},e.prototype.removeChild=function(e){if("string"===typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},e.prototype.initChildren=function(){var t=this,n=this.options_.children;if(n){var i=this.options_,r=function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}},o=void 0,a=e.getComponent("Tech");o=Array.isArray(n)?n:Object.keys(n),o.concat(Object.keys(this.options_).filter((function(e){return!o.some((function(t){return"string"===typeof t?e===t:e===t.name}))}))).map((function(e){var i=void 0,r=void 0;return"string"===typeof e?(i=e,r=n[i]||t.options_[i]||{}):(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||gt(t.name));return n&&!a.isTech(n)})).forEach(r)}},e.prototype.buildCSSClass=function(){return""},e.prototype.ready=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.prototype.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},e.prototype.$=function(e,t){return Le(e,t||this.contentEl())},e.prototype.$$=function(e,t){return Oe(e,t||this.contentEl())},e.prototype.hasClass=function(e){return ue(this.el_,e)},e.prototype.addClass=function(e){ce(this.el_,e)},e.prototype.removeClass=function(e){de(this.el_,e)},e.prototype.toggleClass=function(e,t){he(this.el_,e,t)},e.prototype.show=function(){this.removeClass("vjs-hidden")},e.prototype.hide=function(){this.addClass("vjs-hidden")},e.prototype.lockShowing=function(){this.addClass("vjs-lock-showing")},e.prototype.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.prototype.getAttribute=function(e){return me(this.el_,e)},e.prototype.setAttribute=function(e,t){ge(this.el_,e,t)},e.prototype.removeAttribute=function(e){ve(this.el_,e)},e.prototype.width=function(e,t){return this.dimension("width",e,t)},e.prototype.height=function(e,t){return this.dimension("height",e,t)},e.prototype.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.prototype.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t===t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+gt(e)],10)},e.prototype.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if("function"===typeof r.getComputedStyle){var n=r.getComputedStyle(this.el_);t=n.getPropertyValue(e)||n[e]}if(t=parseFloat(t),0===t){var i="offset"+gt(e);t=this.el_[i]}return t},e.prototype.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.prototype.currentWidth=function(){return this.currentDimension("width")},e.prototype.currentHeight=function(){return this.currentDimension("height")},e.prototype.focus=function(){this.el_.focus()},e.prototype.blur=function(){this.el_.blur()},e.prototype.emitTapEvents=function(){var e=0,t=null,n=10,i=200,r=void 0;this.on("touchstart",(function(n){1===n.touches.length&&(t={pageX:n.touches[0].pageX,pageY:n.touches[0].pageY},e=(new Date).getTime(),r=!0)})),this.on("touchmove",(function(e){if(e.touches.length>1)r=!1;else if(t){var i=e.touches[0].pageX-t.pageX,o=e.touches[0].pageY-t.pageY,a=Math.sqrt(i*i+o*o);a>n&&(r=!1)}}));var o=function(){r=!1};this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",(function(n){if(t=null,!0===r){var o=(new Date).getTime()-e;o0&&u.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,n},e.getComponent=function(t){if(t)return t=gt(t),e.components_&&e.components_[t]?e.components_[t]:void 0},e}();function bt(e,t,n){if("number"!==typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}function xt(e,t,n,i){return bt(e,i,n.length-1),n[i][t]}function wt(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:xt.bind(null,"start",0,e),end:xt.bind(null,"end",1,e)}}function Mt(e,t){return Array.isArray(e)?wt(e):void 0===e||void 0===t?wt():wt([[e,t]])}function St(e,t){var n=0,i=void 0,r=void 0;if(!t)return 0;e&&e.length||(e=Mt(0,0));for(var o=0;ot&&(r=t),n+=r-i;return n/t}_t.prototype.supportsRaf_="function"===typeof r.requestAnimationFrame&&"function"===typeof r.cancelAnimationFrame,_t.registerComponent("Component",_t);for(var kt={},Ct=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],Tt=Ct[0],Dt=void 0,Lt=0;Lt0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;P(this,t);var a=N(this,e.call(this));if(!r&&(r=a,T))for(var s in r=o.createElement("custom"),t.prototype)"constructor"!==s&&(r[s]=t.prototype[s]);r.tracks_=[],Object.defineProperty(r,"length",{get:function(){return this.tracks_.length}});for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);for(var a=void 0,s=r.length-1;s>=0;s--)if(r[s].enabled){$t(r,r[s]);break}if(T){for(var l in a=o.createElement("custom"),Bt.prototype)"constructor"!==l&&(a[l]=Bt.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(a[u]=t.prototype[u])}return n=N(this,e.call(this,r,a)),a=n,a.changing_=!1,i=a,N(n,i)}return Y(t,e),t.prototype.addTrack=function(t){var n=this;t.enabled&&$t(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&t.addEventListener("enabledchange",(function(){n.changing_||(n.changing_=!0,$t(n,t),n.changing_=!1,n.trigger("change"))}))},t}(Bt),Gt=function(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);for(var a=void 0,s=r.length-1;s>=0;s--)if(r[s].selected){Gt(r,r[s]);break}if(T){for(var l in a=o.createElement("custom"),Bt.prototype)"constructor"!==l&&(a[l]=Bt.prototype[l]);for(var u in t.prototype)"constructor"!==u&&(a[u]=t.prototype[u])}return n=N(this,e.call(this,r,a)),a=n,a.changing_=!1,Object.defineProperty(a,"selectedIndex",{get:function(){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:[];P(this,t);var a=void 0;if(T){for(var s in a=o.createElement("custom"),Bt.prototype)"constructor"!==s&&(a[s]=Bt.prototype[s]);for(var l in t.prototype)"constructor"!==l&&(a[l]=t.prototype[l])}return n=N(this,e.call(this,r,a)),a=n,i=a,N(n,i)}return Y(t,e),t.prototype.addTrack=function(t){e.prototype.addTrack.call(this,t),t.addEventListener("modechange",tt(this,(function(){this.trigger("change")})));var n=["metadata","chapters"];-1===n.indexOf(t.kind)&&t.addEventListener("modechange",tt(this,(function(){this.trigger("selectedlanguagechange")})))},t}(Bt),Xt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];P(this,e);var n=this;if(T)for(var i in n=o.createElement("custom"),e.prototype)"constructor"!==i&&(n[i]=e.prototype[i]);n.trackElements_=[],Object.defineProperty(n,"length",{get:function(){return this.trackElements_.length}});for(var r=0,a=t.length;r0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var r=N(this,e.call(this)),a=r;if(T)for(var s in a=o.createElement("custom"),t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);var l={id:i.id||"vjs_track_"+Ee(),kind:i.kind||"",label:i.label||"",language:i.language||""},u=function(e){Object.defineProperty(a,e,{get:function(){return l[e]},set:function(){}})};for(var c in l)u(c);return n=a,N(r,n)}return Y(t,e),t}(rt),nn=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=o.createElement("a");n.href=e;var i=""===n.host&&"file:"!==n.protocol,a=void 0;i&&(a=o.createElement("div"),a.innerHTML='',n=a.firstChild,a.setAttribute("style","display:none; position:absolute;"),o.body.appendChild(a));for(var s={},l=0;lx',e=t.firstChild.href}return e},on=function(e){if("string"===typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/i,n=t.exec(e);if(n)return n.pop().toLowerCase()}return""},an=function(e){var t=r.location,n=nn(e),i=":"===n.protocol?t.protocol:n.protocol,o=i+n.host!==t.protocol+t.host;return o},sn=(Object.freeze||Object)({parseUrl:nn,getAbsoluteURL:rn,getFileExtension:on,isCrossOrigin:an}),ln=function(e,t){var n=new r.WebVTT.Parser(r,r.vttjs,r.WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(r.console&&r.console.groupCollapsed&&r.console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return X.error(e)})),r.console&&r.console.groupEnd&&r.console.groupEnd()),n.flush()},un=function(e,t){var n={uri:e},i=an(e);i&&(n.cors=i),l(n,tt(this,(function(e,n,i){if(e)return X.error(e,n);if(t.loaded_=!0,"function"!==typeof r.WebVTT){if(t.tech_){var o=function(){return ln(i,t)};t.tech_.on("vttjsloaded",o),t.tech_.on("vttjserror",(function(){X.error("vttjs failed to load, stopping trying to process "+t.src),t.tech_.off("vttjsloaded",o)}))}}else ln(i,t)})))},cn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(P(this,t),!r.tech)throw new Error("A tech was not provided.");var o=yt(r,{kind:Qt[r.kind]||"subtitles",language:r.language||r.srclang||""}),a=en[o.mode]||"disabled",s=o["default"];"metadata"!==o.kind&&"chapters"!==o.kind||(a="hidden");var l=(n=N(this,e.call(this,o)),n);if(l.tech_=o.tech,T)for(var u in t.prototype)"constructor"!==u&&(l[u]=t.prototype[u]);l.cues_=[],l.activeCues_=[];var c=new Kt(l.cues_),d=new Kt(l.activeCues_),h=!1,p=tt(l,(function(){this.activeCues=this.activeCues,h&&(this.trigger("cuechange"),h=!1)}));return"disabled"!==a&&l.tech_.ready((function(){l.tech_.on("timeupdate",p)}),!0),Object.defineProperty(l,"default",{get:function(){return s},set:function(){}}),Object.defineProperty(l,"mode",{get:function(){return a},set:function(e){var t=this;en[e]&&(a=e,"disabled"!==a?this.tech_.ready((function(){t.tech_.on("timeupdate",p)}),!0):this.tech_.off("timeupdate",p),this.trigger("modechange"))}}),Object.defineProperty(l,"cues",{get:function(){return this.loaded_?c:null},set:function(){}}),Object.defineProperty(l,"activeCues",{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return d;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(h=!1,t.length!==this.activeCues_.length)h=!0;else for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var o=yt(r,{kind:Jt[r.kind]||""}),a=(n=N(this,e.call(this,o)),n),s=!1;if(T)for(var l in t.prototype)"constructor"!==l&&(a[l]=t.prototype[l]);return Object.defineProperty(a,"enabled",{get:function(){return s},set:function(e){"boolean"===typeof e&&e!==s&&(s=e,this.trigger("enabledchange"))}}),o.enabled&&(a.enabled=o.enabled),a.loaded_=!0,i=a,N(n,i)}return Y(t,e),t}(tn),hn=function(e){function t(){var n,i,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var o=yt(r,{kind:Zt[r.kind]||""}),a=(n=N(this,e.call(this,o)),n),s=!1;if(T)for(var l in t.prototype)"constructor"!==l&&(a[l]=t.prototype[l]);return Object.defineProperty(a,"selected",{get:function(){return s},set:function(e){"boolean"===typeof e&&e!==s&&(s=e,this.trigger("selectedchange"))}}),o.selected&&(a.selected=o.selected),i=a,N(n,i)}return Y(t,e),t}(tn),pn=0,fn=1,mn=2,gn=3,vn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};P(this,t);var i=N(this,e.call(this)),r=void 0,a=i;if(T)for(var s in a=o.createElement("custom"),t.prototype)"constructor"!==s&&(a[s]=t.prototype[s]);var l,u=new cn(n);return a.kind=u.kind,a.src=u.src,a.srclang=u.language,a.label=u.label,a["default"]=u["default"],Object.defineProperty(a,"readyState",{get:function(){return r}}),Object.defineProperty(a,"track",{get:function(){return u}}),r=pn,u.addEventListener("loadeddata",(function(){r=mn,a.trigger({type:"load",target:a})})),T?(l=a,N(i,l)):i}return Y(t,e),t}(rt);vn.prototype.allowedEvents_={load:"load"},vn.NONE=pn,vn.LOADING=fn,vn.LOADED=mn,vn.ERROR=gn;var yn={audio:{ListClass:Wt,TrackClass:dn,capitalName:"Audio"},video:{ListClass:Ut,TrackClass:hn,capitalName:"Video"},text:{ListClass:qt,TrackClass:cn,capitalName:"Text"}};Object.keys(yn).forEach((function(e){yn[e].getterName=e+"Tracks",yn[e].privateName=e+"Tracks_"}));var _n={remoteText:{ListClass:qt,TrackClass:cn,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:Xt,TrackClass:vn,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},bn=yt(yn,_n);function xn(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var a=new bn.text.TrackClass(r);return o.addTrack(a),a}_n.names=Object.keys(_n),yn.names=Object.keys(yn),bn.names=[].concat(_n.names).concat(yn.names);var wn=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};P(this,t),n.reportTouchActivity=!1;var r=N(this,e.call(this,null,n,i));return r.hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),bn.names.forEach((function(e){var t=bn[e];n&&n[t.getterName]&&(r[t.privateName]=n[t.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===n["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===n.nativeCaptions||!1===n.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==n.nativeCaptions&&!0!==n.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.autoRemoteTextTracks_=new bn.text.ListClass,r.initTrackListeners(),n.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}return Y(t,e),t.prototype.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},t.prototype.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},t.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},t.prototype.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(tt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},t.prototype.onDurationChange=function(e){this.duration_=this.duration()},t.prototype.buffered=function(){return Mt(0,0)},t.prototype.bufferedPercent=function(){return St(this.buffered(),this.duration_)},t.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},t.prototype.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},t.prototype.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},t.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},t.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.dispose=function(){this.clearTracks(yn.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},t.prototype.clearTracks=function(e){var t=this;e=[].concat(e),e.forEach((function(e){var n=t[e+"Tracks"]()||[],i=n.length;while(i--){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},t.prototype.cleanupAutoTextTracks=function(){var e=this.autoRemoteTextTracks_||[],t=e.length;while(t--){var n=e[t];this.removeRemoteTextTrack(n)}},t.prototype.reset=function(){},t.prototype.error=function(e){return void 0!==e&&(this.error_=new It(e),this.trigger("error")),this.error_},t.prototype.played=function(){return this.hasStarted_?Mt(0,0):Mt()},t.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},t.prototype.initTrackListeners=function(){var e=this;yn.names.forEach((function(t){var n=yn[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},t.prototype.addWebVttScript_=function(){var e=this;if(!r.WebVTT)if(o.body.contains(this.el())){if(!this.options_["vtt.js"]&&W(u)&&Object.keys(u).length>0)return void this.trigger("vttjsloaded");var t=o.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.12.4/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},t.prototype.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:{},n=arguments[1],i=this.createRemoteTextTrack(t);return!0!==n&&!1!==n&&(X.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),n=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==n&&this.ready((function(){return e.autoRemoteTextTracks_.addTrack(i.track)})),i},t.prototype.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},t.prototype.getVideoPlaybackQuality=function(){return{}},t.prototype.setPoster=function(){},t.prototype.playsinline=function(){},t.prototype.setPlaysinline=function(){},t.prototype.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=gt(e),t.techs_[e]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return e=gt(e),t.techs_&&t.techs_[e]?t.techs_[e]:r&&r.videojs&&r.videojs[e]?(X.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r.videojs[e]):void 0},t}(_t);bn.names.forEach((function(e){var t=bn[e];wn.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),wn.prototype.featuresVolumeControl=!0,wn.prototype.featuresMuteControl=!0,wn.prototype.featuresFullscreenResize=!1,wn.prototype.featuresPlaybackRate=!1,wn.prototype.featuresProgressEvents=!1,wn.prototype.featuresSourceset=!1,wn.prototype.featuresTimeupdateEvents=!1,wn.prototype.featuresNativeTextTracks=!1,wn.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n=e.sourceHandlers||[],i=void 0,r=0;r3&&void 0!==arguments[3]?arguments[3]:null,r="call"+gt(n),o=e.reduce(Pn(r),i),a=o===kn,s=a?null:t[n](o);return Yn(e,n,s,a),s}var An={buffered:1,currentTime:1,duration:1,seekable:1,played:1,paused:1},En={setCurrentTime:1},jn={play:1,pause:1};function Pn(e){return function(t,n){return t===kn?kn:n[e]?n[e](t):t}}function Yn(e,t,n,i){for(var r=e.length-1;r>=0;r--){var o=e[r];o[t]&&o[t](i,n)}}function Nn(e){Sn[e.id()]=null}function Rn(e,t){var n=Sn[e.id()],i=null;if(void 0===n||null===n)return i=t(e),Sn[e.id()]=[[t,i]],i;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments[2],i=arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=t[0],s=t.slice(1);if("string"===typeof a)Fn(e,Mn[a],n,i,r,o);else if(a){var l=Rn(i,a);if(!l.setSource)return r.push(l),Fn(e,s,n,i,r,o);l.setSource(V({},e),(function(t,a){if(t)return Fn(e,s,n,i,r,o);r.push(l),Fn(a,e.type===a.type?s:Mn[a.type],n,i,r,o)}))}else s.length?Fn(e,s,n,i,r,o):o?n(e,r):Fn(e,Mn["*"],n,i,r,!0)}var Hn={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",mp3:"audio/mpeg",aac:"audio/aac",oga:"audio/ogg",m3u8:"application/x-mpegURL"},zn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=on(e),n=Hn[t.toLowerCase()];return n||""},Bn=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n=V({innerHTML:'',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&X.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),i=V({role:"button"},i),this.tabIndex_=n.tabIndex;var r=e.prototype.createEl.call(this,t,n,i);return this.createControlTextEl(r),r},t.prototype.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},t.prototype.createControlTextEl=function(e){return this.controlTextEl_=ae("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.prototype.controlText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();if(void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,se(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},t.prototype.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},t.prototype.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!==typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur))},t.prototype.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!==typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off(["tap","click"],this.handleClick),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur)},t.prototype.handleClick=function(e){},t.prototype.handleFocus=function(e){$e(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.trigger("click")):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t.prototype.handleBlur=function(e){We(o,"keydown",tt(this,this.handleKeyPress))},t}(_t);_t.registerComponent("ClickableComponent",Gn);var Un=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.update(),n.on("posterchange",tt(r,r.update)),r}return Y(t,e),t.prototype.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},t.prototype.createEl=function(){var e=ae("div",{className:"vjs-poster",tabIndex:-1});return A||(this.fallbackImg_=ae("img"),e.appendChild(this.fallbackImg_)),e},t.prototype.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.prototype.setSrc=function(e){if(this.fallbackImg_)this.fallbackImg_.src=e;else{var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t}},t.prototype.handleClick=function(e){this.player_.controls()&&(this.player_.paused()?jt(this.player_.play()):this.player_.pause())},t}(Gn);_t.registerComponent("PosterImage",Un);var qn="#222",Xn="#ccc",Kn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Zn(e,t){var n=void 0;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Jn(e,t,n){try{e.style[t]=n}catch(i){return}}var Qn=function(e){function t(n,i,o){P(this,t);var a=N(this,e.call(this,n,i,o)),s=tt(a,a.updateDisplay);return n.on("loadstart",tt(a,a.toggleDisplay)),n.on("texttrackchange",s),n.on("loadstart",tt(a,a.preselectTrack)),n.ready(tt(a,(function(){if(n.tech_&&n.tech_.featuresNativeTextTracks)this.hide();else{n.on("fullscreenchange",s),n.on("playerresize",s),r.addEventListener&&r.addEventListener("orientationchange",s),n.on("dispose",(function(){return r.removeEventListener("orientationchange",s)}));for(var e=this.options_.playerOptions.tracks||[],t=0;t1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e="button",t=V({innerHTML:'',className:this.buildCSSClass()},t),n=V({type:"button"},n);var i=_t.prototype.createEl.call(this,e,t,n);return this.createControlTextEl(i),i},t.prototype.addChild=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.constructor.name;return X.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),_t.prototype.addChild.call(this,e,t)},t.prototype.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},t.prototype.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},t.prototype.handleKeyPress=function(t){32!==t.which&&13!==t.which&&e.prototype.handleKeyPress.call(this,t)},t}(Gn);_t.registerComponent("Button",ti);var ni=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-big-play-button"},t.prototype.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY)jt(t);else{var n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(i){var r=function(){return i.focus()};Et(t)?t.then(r,(function(){})):this.setTimeout(r,1)}else this.player_.focus()}},t.prototype.handleKeyPress=function(t){this.mouseused_=!1,e.prototype.handleKeyPress.call(this,t)},t.prototype.handleMouseDown=function(e){this.mouseused_=!0},t}(ti);ni.prototype.controlText_="Play Video",_t.registerComponent("BigPlayButton",ni);var ii=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.controlText(i&&i.controlText||r.localize("Close")),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t}(ti);_t.registerComponent("CloseButton",ii);var ri=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"play",r.handlePlay),r.on(n,"pause",r.handlePause),r.on(n,"ended",r.handleEnded),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.prototype.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.prototype.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.prototype.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(ti);ri.prototype.controlText_="Play",_t.registerComponent("PlayToggle",ri);var oi=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||a>0?r+":":"",i=((r||o>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n},ai=oi;function si(e){ai=e}function li(){ai=oi}var ui=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return ai(e,t)},ci=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.throttledUpdateContent=nt(tt(r,r.updateContent),25),r.on(n,"timeupdate",r.throttledUpdateContent),r}return Y(t,e),t.prototype.createEl=function(t){var n=this.buildCSSClass(),i=e.prototype.createEl.call(this,"div",{className:n+" vjs-time-control vjs-control",innerHTML:''+this.localize(this.labelText_)+" "});return this.contentEl_=ae("span",{className:n+"-display"},{"aria-live":"off"}),this.updateTextNode_(),i.appendChild(this.contentEl_),i},t.prototype.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},t.prototype.updateTextNode_=function(){if(this.contentEl_){while(this.contentEl_.firstChild)this.contentEl_.removeChild(this.contentEl_.firstChild);this.textNode_=o.createTextNode(this.formattedTime_||this.formatTime_(0)),this.contentEl_.appendChild(this.textNode_)}},t.prototype.formatTime_=function(e){return ui(e)},t.prototype.updateFormattedTime_=function(e){var t=this.formatTime_(e);t!==this.formattedTime_&&(this.formattedTime_=t,this.requestAnimationFrame(this.updateTextNode_))},t.prototype.updateContent=function(e){},t}(_t);ci.prototype.labelText_="Time",ci.prototype.controlText_="Time",_t.registerComponent("TimeDisplay",ci);var di=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"ended",r.handleEnded),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-current-time"},t.prototype.updateContent=function(e){var t=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateFormattedTime_(t)},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(this.player_.duration())},t}(ci);di.prototype.labelText_="Current Time",di.prototype.controlText_="Current Time",_t.registerComponent("CurrentTimeDisplay",di);var hi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.updateContent),r.on(n,"loadedmetadata",r.throttledUpdateContent),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-duration"},t.prototype.updateContent=function(e){var t=this.player_.duration();t&&this.duration_!==t&&(this.duration_=t,this.updateFormattedTime_(t))},t}(ci);hi.prototype.labelText_="Duration",hi.prototype.controlText_="Duration",_t.registerComponent("DurationDisplay",hi);var pi=function(e){function t(){return P(this,t),N(this,e.apply(this,arguments))}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"
/
"})},t}(_t);_t.registerComponent("TimeDivider",pi);var fi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"durationchange",r.throttledUpdateContent),r.on(n,"ended",r.handleEnded),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-remaining-time"},t.prototype.formatTime_=function(t){return"-"+e.prototype.formatTime_.call(this,t)},t.prototype.updateContent=function(e){this.player_.duration()&&(this.player_.remainingTimeDisplay?this.updateFormattedTime_(this.player_.remainingTimeDisplay()):this.updateFormattedTime_(this.player_.remainingTime()))},t.prototype.handleEnded=function(e){this.player_.duration()&&this.updateFormattedTime_(0)},t}(ci);fi.prototype.labelText_="Remaining Time",fi.prototype.controlText_="Remaining Time",_t.registerComponent("RemainingTimeDisplay",fi);var mi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}return Y(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=ae("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+" "+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(_t);_t.registerComponent("LiveDisplay",mi);var gi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}return Y(t,e),t.prototype.enabled=function(){return this.enabled_},t.prototype.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("focus",this.handleFocus),this.on("blur",this.handleBlur),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.prototype.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("focus",this.handleFocus),this.off("blur",this.handleBlur),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},t.prototype.createEl=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.className=n.className+" vjs-slider",n=V({tabIndex:0},n),i=V({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},t.prototype.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||k||e.preventDefault(),ye(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},t.prototype.handleMouseMove=function(e){},t.prototype.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;_e(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},t.prototype.update=function(){if(this.el_){var e=this.getPercent(),t=this.bar;if(t){("number"!==typeof e||e!==e||e<0||e===1/0)&&(e=0);var n=(100*e).toFixed(2)+"%",i=t.el().style;return this.vertical()?i.height=n:i.width=n,e}}},t.prototype.calculateDistance=function(e){var t=we(this.el_,e);return this.vertical()?t.y:t.x},t.prototype.handleFocus=function(){this.on(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepBack()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepForward())},t.prototype.handleBlur=function(){this.off(this.bar.el_.ownerDocument,"keydown",this.handleKeyPress)},t.prototype.handleClick=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(_t);_t.registerComponent("Slider",gi);var vi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.partEls_=[],r.on(n,"progress",r.update),r}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},t.prototype.dispose=function(){this.partEls_=null,e.prototype.dispose.call(this)},t.prototype.update=function(e){var t=this.player_.buffered(),n=this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,o=function(e,t){var n=e/t||0;return 100*(n>=1?1:n)+"%"};this.el_.style.width=o(i,n);for(var a=0;at.length;c--)this.el_.removeChild(r[c-1]);r.length=t.length},t}(_t);_t.registerComponent("LoadProgressBar",vi);var yi=function(e){function t(){return P(this,t),N(this,e.apply(this,arguments))}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"})},t.prototype.update=function(e,t,n){var i=be(this.el_),r=be(this.player_.el()),o=e.width*t;if(r&&i){var a=e.left-r.left+o,s=e.width-o+(r.right-e.right),l=i.width/2;ai.width&&(l=i.width),this.el_.style.right="-"+l+"px",se(this.el_,n)}},t}(_t);_t.registerComponent("TimeTooltip",yi);var _i=function(e){function t(){return P(this,t),N(this,e.apply(this,arguments))}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar",innerHTML:''+this.localize("Progress")+": 0%"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.scrubbing()?n.player_.getCache().currentTime:n.player_.currentTime(),r=ui(i,n.player_.duration()),o=n.getChild("timeTooltip");o&&o.update(e,t,r)}))},t}(_t);_i.prototype.options_={children:[]},D&&!(D>8)||v||_||_i.prototype.options_.children.push("timeTooltip"),_t.registerComponent("PlayProgressBar",_i);var bi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.update=nt(tt(r,r.update),25),r}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.prototype.update=function(e,t){var n=this;this.rafId_&&this.cancelAnimationFrame(this.rafId_),this.rafId_=this.requestAnimationFrame((function(){var i=n.player_.duration(),r=ui(t*i,i);n.el_.style.left=e.width*t+"px",n.getChild("timeTooltip").update(e,t,r)}))},t}(_t);bi.prototype.options_={children:["timeTooltip"]},_t.registerComponent("MouseTimeDisplay",bi);var xi=5,wi=30,Mi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.setEventHandlers_(),r}return Y(t,e),t.prototype.setEventHandlers_=function(){var e=this;this.update=nt(tt(this,this.update),wi),this.on(this.player_,"timeupdate",this.update),this.on(this.player_,"ended",this.handleEnded),this.updateInterval=null,this.on(this.player_,["playing"],(function(){e.clearInterval(e.updateInterval),e.updateInterval=e.setInterval((function(){e.requestAnimationFrame((function(){e.update()}))}),wi)})),this.on(this.player_,["ended","pause","waiting"],(function(){e.clearInterval(e.updateInterval)})),this.on(this.player_,["timeupdate","ended"],this.update)},t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.prototype.update_=function(e,t){var n=this.player_.duration();this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[ui(e,n),ui(n,n)],"{1} of {2}")),this.bar.update(be(this.el_),t)},t.prototype.update=function(t){var n=e.prototype.update.call(this);return this.update_(this.getCurrentTime_(),n),n},t.prototype.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.prototype.handleEnded=function(e){this.update_(this.player_.duration(),1)},t.prototype.getPercent=function(){var e=this.getCurrentTime_()/this.player_.duration();return e>=1?1:e},t.prototype.handleMouseDown=function(t){De(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},t.prototype.handleMouseMove=function(e){if(De(e)){var t=this.calculateDistance(e)*this.player_.duration();t===this.player_.duration()&&(t-=.1),this.player_.currentTime(t)}},t.prototype.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},t.prototype.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},t.prototype.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying&&jt(this.player_.play())},t.prototype.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+xi)},t.prototype.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-xi)},t.prototype.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.prototype.handleKeyPress=function(t){32===t.which||13===t.which?(t.preventDefault(),this.handleAction(t)):e.prototype.handleKeyPress&&e.prototype.handleKeyPress.call(this,t)},t}(gi);Mi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},D&&!(D>8)||v||_||Mi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Mi.prototype.playerEvent="timeupdate",_t.registerComponent("SeekBar",Mi);var Si=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.handleMouseMove=nt(tt(r,r.handleMouseMove),25),r.throttledHandleMouseSeek=nt(tt(r,r.handleMouseSeek),25),r.enable(),r}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.prototype.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("mouseTimeDisplay"),i=t.el(),r=be(i),o=we(i,e).x;o>1?o=1:o<0&&(o=0),n&&n.update(r,o)}},t.prototype.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.prototype.enabled=function(){return this.enabled_},t.prototype.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},t.prototype.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(_t);Si.prototype.options_={children:["seekBar"]},_t.registerComponent("ProgressControl",Si);var ki=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.on(n,"fullscreenchange",r.handleFullscreenChange),!1===o[kt.fullscreenEnabled]&&r.disable(),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.prototype.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(ti);ki.prototype.controlText_="Fullscreen",_t.registerComponent("FullscreenToggle",ki);var Ci=function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Ti=function(e){function t(){return P(this,t),N(this,e.apply(this,arguments))}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},t}(_t);_t.registerComponent("VolumeLevel",Ti);var Di=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.on("slideractive",r.updateLastVolume_),r.on(n,"volumechange",r.updateARIAAttributes),n.ready((function(){return r.updateARIAAttributes()})),r}return Y(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.prototype.handleMouseDown=function(t){De(t)&&e.prototype.handleMouseDown.call(this,t)},t.prototype.handleMouseMove=function(e){De(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.prototype.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.prototype.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.prototype.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.prototype.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.prototype.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.prototype.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(gi);Di.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Di.prototype.playerEvent="volumechange",_t.registerComponent("VolumeBar",Di);var Li=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),i.vertical=i.vertical||!1,("undefined"===typeof i.volumeBar||W(i.volumeBar))&&(i.volumeBar=i.volumeBar||{},i.volumeBar.vertical=i.vertical);var r=N(this,e.call(this,n,i));return Ci(r,n),r.throttledHandleMouseMove=nt(tt(r,r.handleMouseMove),25),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}return Y(t,e),t.prototype.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},t.prototype.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t.prototype.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(_t);Li.prototype.options_={children:["volumeBar"]},_t.registerComponent("VolumeControl",Li);var Oi=function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))},Ii=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return Oi(r,n),r.on(n,["loadstart","volumechange"],r.update),r}return Y(t,e),t.prototype.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},t.prototype.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},t.prototype.update=function(e){this.updateIcon_(),this.updateControlText_()},t.prototype.updateIcon_=function(){var e=this.player_.volume(),t=3;v&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)de(this.el_,"vjs-vol-"+n);ce(this.el_,"vjs-vol-"+t)},t.prototype.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume(),t=e?"Unmute":"Mute";this.controlText()!==t&&this.controlText(t)},t}(ti);Ii.prototype.controlText_="Mute",_t.registerComponent("MuteToggle",Ii);var Ai=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t),"undefined"!==typeof i.inline?i.inline=i.inline:i.inline=!0,("undefined"===typeof i.volumeControl||W(i.volumeControl))&&(i.volumeControl=i.volumeControl||{},i.volumeControl.vertical=!i.inline);var r=N(this,e.call(this,n,i));return r.on(n,["loadstart"],r.volumePanelState_),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}return Y(t,e),t.prototype.sliderActive_=function(){this.addClass("vjs-slider-active")},t.prototype.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.prototype.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.prototype.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},t}(_t);Ai.prototype.options_={children:["muteToggle","volumeControl"]},_t.registerComponent("VolumePanel",Ai);var Ei=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return i&&(r.menuButton_=i.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyPress),r}return Y(t,e),t.prototype.addItem=function(e){this.addChild(e),e.on("click",tt(this,(function(t){this.menuButton_&&(this.menuButton_.unpressButton(),"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())})))},t.prototype.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=ae(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),$e(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},t.prototype.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},t.prototype.handleKeyPress=function(e){37===e.which||40===e.which?(e.preventDefault(),this.stepForward()):38!==e.which&&39!==e.which||(e.preventDefault(),this.stepBack())},t.prototype.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.prototype.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.prototype.focus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this.children().slice(),n=t.length&&t[0].className&&/vjs-menu-title/.test(t[0].className);n&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(_t);_t.registerComponent("Menu",Ei);var ji=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};P(this,t);var r=N(this,e.call(this,n,i));r.menuButton_=new ti(n,i),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var o=ti.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+o,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"focus",r.handleFocus),r.on(r.menuButton_,"blur",r.handleBlur),r.on("keydown",r.handleSubmenuKeyPress),r}return Y(t,e),t.prototype.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.prototype.createMenu=function(){var e=new Ei(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=ae("li",{className:"vjs-menu-title",innerHTML:gt(this.options_.title),tabIndex:-1});this.hideThreshold_+=1,e.children_.unshift(t),le(t,e.contentEl())}if(this.items=this.createItems(),this.items)for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:this.menuButton_.el();return this.menuButton_.controlText(e,t)},t.prototype.handleClick=function(e){this.one(this.menu.contentEl(),"mouseleave",tt(this,(function(e){this.unpressButton(),this.el_.blur()}))),this.buttonPressed_?this.unpressButton():this.pressButton()},t.prototype.focus=function(){this.menuButton_.focus()},t.prototype.blur=function(){this.menuButton_.blur()},t.prototype.handleFocus=function(){$e(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleBlur=function(){We(o,"keydown",tt(this,this.handleKeyPress))},t.prototype.handleKeyPress=function(e){27===e.which||9===e.which?(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus())):38!==e.which&&40!==e.which||this.buttonPressed_||(this.pressButton(),e.preventDefault())},t.prototype.handleSubmenuKeyPress=function(e){27!==e.which&&9!==e.which||(this.buttonPressed_&&this.unpressButton(),9!==e.which&&(e.preventDefault(),this.menuButton_.el_.focus()))},t.prototype.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),v&&re())return;this.menu.focus()}},t.prototype.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.prototype.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.prototype.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(_t);_t.registerComponent("MenuButton",ji);var Pi=function(e){function t(n,i){P(this,t);var r=i.tracks,o=N(this,e.call(this,n,i));if(o.items.length<=1&&o.hide(),!r)return N(o);var a=tt(o,o.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),o.player_.on("ready",a),o.player_.on("dispose",(function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a)})),o}return Y(t,e),t}(ji);_t.registerComponent("TrackButton",Pi);var Yi=function(e){function t(n,i){P(this,t);var r=N(this,e.call(this,n,i));return r.selectable=i.selectable,r.isSelected_=i.selected||!1,r.multiSelectable=i.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}return Y(t,e),t.prototype.createEl=function(t,n,i){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",V({className:"vjs-menu-item",innerHTML:''+this.localize(this.options_.label)+"",tabIndex:-1},n),i)},t.prototype.handleClick=function(e){this.selected(!0)},t.prototype.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(Gn);_t.registerComponent("MenuItem",Yi);var Ni=function(e){function t(n,i){P(this,t);var a=i.track,s=n.textTracks();i.label=a.label||a.language||"Unknown",i.selected="showing"===a.mode;var l=N(this,e.call(this,n,i));l.track=a;var u=function(){for(var e=arguments.length,t=Array(e),n=0;n-1?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled")}},t.prototype.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.prototype.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},t.prototype.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Yi);_t.registerComponent("TextTrackMenuItem",Ni);var Ri=function(e){function t(n,i){return P(this,t),i.track={player:n,kind:i.kind,kinds:i.kinds,default:!1,mode:"disabled"},i.kinds||(i.kinds=[i.kind]),i.label?i.track.label=i.label:i.track.label=i.kinds.join(" and ")+" off",i.selectable=!0,i.multiSelectable=!1,N(this,e.call(this,n,i))}return Y(t,e),t.prototype.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},t.prototype.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ni);_t.registerComponent("OffTextTrackMenuItem",Ri);var Fi=function(e){function t(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return P(this,t),i.tracks=n.textTracks(),N(this,e.call(this,n,i))}return Y(t,e),t.prototype.createItems=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ni,n=void 0;this.label_&&(n=this.label_+" off"),e.push(new Ri(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r-1){var a=new t(this.player_,{track:o,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Pi);_t.registerComponent("TextTrackButton",Fi);var Hi=function(e){function t(n,i){P(this,t);var r=i.track,o=i.cue,a=n.currentTime();i.selectable=!0,i.multiSelectable=!1,i.label=o.text,i.selected=o.startTime<=a&&a=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},t.prototype.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(gt(this.kind_))},t.prototype.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},t.prototype.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n