(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-libs"],{"004f":function(e,t,n){"use strict";var r=n("c42f"),i=n("4912"),o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not a constructor")}},"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}))},"0244":function(e,t,n){"use strict";var r=n("6b1d"),i=n("881c"),o=n("f297").CONSTRUCTOR;r({target:"Promise",stat:!0,forced:o},{reject:function(e){var t=i.f(this),n=t.reject;return n(e),t.promise}})},"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}))},"032a":function(e,t){var n=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=n)},"032e":function(e,t,n){"use strict";var r=n("3f48"),i=n("4a86"),o=n("4367"),a=n("7868"),s=n("d335"),l=n("a505");e.exports=function(e){return new Promise((function(t,u){var c=e.data,d=e.headers;r.isFormData(c)&&delete d["Content-Type"];var f=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",p=e.auth.password||"";d.Authorization="Basic "+btoa(h+":"+p)}if(f.open(e.method.toUpperCase(),o(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?a(f.getAllResponseHeaders()):null,r=e.responseType&&"text"!==e.responseType?f.response:f.responseText,o={data:r,status:f.status,statusText:f.statusText,headers:n,config:e,request:f};i(t,u,o),f=null}},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var m=n("ca6e"),g=(e.withCredentials||s(e.url))&&e.xsrfCookieName?m.read(e.xsrfCookieName):void 0;g&&(d[e.xsrfHeaderName]=g)}if("setRequestHeader"in f&&r.forEach(d,(function(e,t){"undefined"===typeof c&&"content-type"===t.toLowerCase()?delete d[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(v){if("json"!==e.responseType)throw v}"function"===typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),u(e),f=null)})),void 0===c&&(c=null),f.send(c)}))}},"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}))},"0446":function(e,t,n){"use strict";var r=n("da06"),i=n("60de"),o=n("6566"),a=n("5bb7"),s=n("7d53"),l=s("iterator");e.exports=function(e){if(!o(e))return i(e,l)||i(e,"@@iterator")||a[r(e)]}},"0481":function(e,t,n){"use strict";var r=n("b495");e.exports=function(e){return r(e.length)}},"04ff":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},"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,r,i){var o=e+" ";switch(r){case"s":return n||i?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?o+(n||i?"sekúndur":"sekúndum"):o+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?o+(n||i?"mínútur":"mínútum"):n?o+"mínúta":o+"mínútu";case"hh":return t(e)?o+(n||i?"klukkustundir":"klukkustundum"):o+"klukkustund";case"d":return n?"dagur":i?"dag":"degi";case"dd":return t(e)?n?o+"dagar":o+(i?"daga":"dögum"):n?o+"dagur":o+(i?"dag":"degi");case"M":return n?"mánuður":i?"mánuð":"mánuði";case"MM":return t(e)?n?o+"mánuðir":o+(i?"mánuði":"mánuðum"):n?o+"mánuður":o+(i?"mánuð":"mánuði");case"y":return n||i?"ár":"ári";case"yy":return t(e)?o+(n||i?"ár":"árum"):o+(n||i?"ár":"ári")}}var r=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 r}))},"06a2":function(e,t,n){var r,i; /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress * @license MIT */(function(o,a){r=a,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(0,(function(){var e={version:"0.2.0"},t=e.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'
'};function n(e,t,n){return en?n:e}function r(e){return 100*(-1+e)}function i(e,n,i){var o;return o="translate3d"===t.positionUsing?{transform:"translate3d("+r(e)+"%,0,0)"}:"translate"===t.positionUsing?{transform:"translate("+r(e)+"%,0)"}:{"margin-left":r(e)+"%"},o.transition="all "+n+"ms "+i,o}e.configure=function(e){var n,r;for(n in e)r=e[n],void 0!==r&&e.hasOwnProperty(n)&&(t[n]=r);return this},e.status=null,e.set=function(r){var s=e.isStarted();r=n(r,t.minimum,1),e.status=1===r?null:r;var l=e.render(!s),u=l.querySelector(t.barSelector),c=t.speed,d=t.easing;return l.offsetWidth,o((function(n){""===t.positionUsing&&(t.positionUsing=e.getPositioningCSS()),a(u,i(r,c,d)),1===r?(a(l,{transition:"none",opacity:1}),l.offsetWidth,setTimeout((function(){a(l,{transition:"all "+c+"ms linear",opacity:0}),setTimeout((function(){e.remove(),n()}),c)}),c)):setTimeout(n,c)})),this},e.isStarted=function(){return"number"===typeof e.status},e.start=function(){e.status||e.set(0);var n=function(){setTimeout((function(){e.status&&(e.trickle(),n())}),t.trickleSpeed)};return t.trickle&&n(),this},e.done=function(t){return t||e.status?e.inc(.3+.5*Math.random()).set(1):this},e.inc=function(t){var r=e.status;return r?("number"!==typeof t&&(t=(1-r)*n(Math.random()*r,.1,.95)),r=n(r+t,0,.994),e.set(r)):e.start()},e.trickle=function(){return e.inc(Math.random()*t.trickleRate)},function(){var t=0,n=0;e.promise=function(r){return r&&"resolved"!==r.state()?(0===n&&e.start(),t++,n++,r.always((function(){n--,0===n?(t=0,e.done()):e.set((t-n)/t)})),this):this}}(),e.render=function(n){if(e.isRendered())return document.getElementById("nprogress");l(document.documentElement,"nprogress-busy");var i=document.createElement("div");i.id="nprogress",i.innerHTML=t.template;var o,s=i.querySelector(t.barSelector),u=n?"-100":r(e.status||0),c=document.querySelector(t.parent);return a(s,{transition:"all 0 linear",transform:"translate3d("+u+"%,0,0)"}),t.showSpinner||(o=i.querySelector(t.spinnerSelector),o&&d(o)),c!=document.body&&l(c,"nprogress-custom-parent"),c.appendChild(i),i},e.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(t.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&d(e)},e.isRendered=function(){return!!document.getElementById("nprogress")},e.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective"in e?"translate3d":t+"Transform"in e?"translate":"margin"};var o=function(){var e=[];function t(){var n=e.shift();n&&n(t)}return function(n){e.push(n),1==e.length&&t()}}(),a=function(){var e=["Webkit","O","Moz","ms"],t={};function n(e){return e.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function r(t){var n=document.body.style;if(t in n)return t;var r,i=e.length,o=t.charAt(0).toUpperCase()+t.slice(1);while(i--)if(r=e[i]+o,r in n)return r;return t}function i(e){return e=n(e),t[e]||(t[e]=r(e))}function o(e,t,n){t=i(t),e.style[t]=n}return function(e,t){var n,r,i=arguments;if(2==i.length)for(n in t)r=t[n],void 0!==r&&t.hasOwnProperty(n)&&o(e,n,r);else o(e,i[1],i[2])}}();function s(e,t){var n="string"==typeof e?e:c(e);return n.indexOf(" "+t+" ")>=0}function l(e,t){var n=c(e),r=n+t;s(n,t)||(e.className=r.substring(1))}function u(e,t){var n,r=c(e);s(e,t)&&(n=r.replace(" "+t+" "," "),e.className=n.substring(1,n.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function d(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return e}))},"06d4":function(e,t,n){"use strict";var r=n("3f48"),i=n("e067"),o=n("5816"),a=n("7723"),s=n("04ff"),l=n("13b8");function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){u(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return u(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(u(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},"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}))},"07d9":function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("a0d5")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"082b":function(e,t,n){"use strict";t.__esModule=!0;var r=n("09a7"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=i.default||function(e){for(var t=1;t>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[u]+":0",r[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function re(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),d=2*u,f=c.left,h=c.top;a.push(f,h),l=l&&o&&f===o[d]&&h===o[d+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=a,t[r]=n?K(s,a):K(a,s))}function ie(e){return"CANVAS"===e.nodeName.toUpperCase()}var oe=/([&<>"'])/g,ae={"&":"&","<":"<",">":">",'"':""","'":"'"};function se(e){return null==e?"":(e+"").replace(oe,(function(e,t){return ae[t]}))}var le=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ue=[],ce=m["a"].browser.firefox&&+m["a"].browser.version.split(".")[0]<39;function de(e,t,n,r){return n=n||{},r?fe(e,t,n):ce&&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):fe(e,t,n),n}function fe(e,t,n){if(m["a"].domSupported&&e.getBoundingClientRect){var r=t.clientX,i=t.clientY;if(ie(e)){var o=e.getBoundingClientRect();return n.zrX=r-o.left,void(n.zrY=i-o.top)}if(te(ue,e,r,i))return n.zrX=ue[0],void(n.zrY=ue[1])}n.zrX=n.zrY=0}function he(e){return e||window.event}function pe(e,t,n){if(t=he(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var o="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];o&&de(e,o,t,n)}else{de(e,t,t,n);var a=me(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return null==t.which&&void 0!==s&&le.test(t.type)&&(t.which=1&s?1:2&s?3:4&s?2:0),t}function me(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function ge(e,t,n,r){e.addEventListener(t,n,r)}function ve(e,t,n,r){e.removeEventListener(t,n,r)}var ye=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function _e(e){return 2===e.which||3===e.which}var be=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 r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},o=0,a=r.length;o1&&r&&r.length>1){var o=xe(r)/xe(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=we(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}};function ke(){return[1,0,0,1,0,0]}function Se(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Le(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 Te(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=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]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function De(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 Oe(e,t,n,r){void 0===r&&(r=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*c,e[1]=-i*c+s*d,e[2]=o*d+l*c,e[3]=-o*c+d*l,e[4]=d*(a-r[0])+c*(u-r[1])+r[0],e[5]=d*(u-r[1])-c*(a-r[0])+r[1],e}function Ce(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function Ae(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}function Ie(e){var t=ke();return Le(t,e),t}var je=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,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),Ee=je,Ye=Math.min,Pe=Math.max,Ne=new Ee,Re=new Ee,He=new Ee,ze=new Ee,Fe=new Ee,Be=new Ee,We=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=Ye(e.x,this.x),n=Ye(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Pe(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=Pe(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,r=e.height/t.height,i=ke();return De(i,i,[-t.x,-t.y]),Ce(i,i,[n,r]),De(i,i,[e.x,e.y]),i},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=t.x,u=t.x+t.width,c=t.y,d=t.y+t.height,f=!(op&&(p=_,mp&&(p=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,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],o=r[3],a=r[4],s=r[5];return t.x=n.x*i+a,t.y=n.y*o+s,t.width=n.width*i,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))}Ne.x=He.x=n.x,Ne.y=ze.y=n.y,Re.x=ze.x=n.x+n.width,Re.y=He.y=n.y+n.height,Ne.transform(r),ze.transform(r),Re.transform(r),He.transform(r),t.x=Ye(Ne.x,Re.x,He.x,ze.x),t.y=Ye(Ne.y,Re.y,He.y,ze.y);var l=Pe(Ne.x,Re.x,He.x,ze.x),u=Pe(Ne.y,Re.y,He.y,ze.y);t.width=l-t.x,t.height=u-t.y}else t!==n&&e.copy(t,n)},e}(),Ve=We,Ge="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:Ue}}function Ue(){ye(this.event)}var qe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return y(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(q),Xe=function(){function e(e,t){this.x=e,this.y=t}return e}(),Ze=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Ke=new Ve(0,0,0,0),Je=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new Xe(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new qe,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new $(a),a}return y(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(g["each"](Ze,(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,r=tt(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new Xe(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(i,"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 Xe(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 r=e.target;if(!r||!r.silent){var i="on"+t,o=$e(t,e,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)})))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new Xe(e,t);if(et(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Ve(e-s,t-s,a,a),u=r.length-1;u>=0;u--){var c=r[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(Ke.copy(c.getBoundingRect()),c.transform&&Ke.applyTransform(c.transform),Ke.intersect(l)&&o.push(c))}if(o.length)for(var d=4,f=Math.PI/12,h=2*Math.PI,p=0;p=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Qe(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==Ge)){t.target=a;break}}}function tt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}g["each"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(e){Je.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,a=tt(this,i,o);if("mouseup"===e&&a||(n=this.findHover(i,o),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||P(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}}));var nt=Je,rt=32,it=7;function ot(e){var t=0;while(e>=rt)t|=1&e,e>>=1;return e+t}function at(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i=0)i++;return i-t}function st(e,t,n){n--;while(t>>1,i(a,e[o])<0?l=o:s=o+1;var u=r-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 ut(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}a++;while(a>>1);o(e,t[n+c])>0?a=c+1:l=c}return l}function ct(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(ls&&(l=s);var u=a;a=i-l,l=i-u}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(e,t[n+c])<0?l=c:a=c+1}return l}function dt(e,t){var n,r,i=it,o=0,a=[];function s(e,t){n[o]=e,r[o]=t,o+=1}function l(){while(o>1){var e=o-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;c(e)}}function u(){while(o>1){var e=o-2;e>0&&r[e-1]=it||h>=it);if(p)break;m<0&&(m=0),m+=2}if(i=m,i<1&&(i=1),1===r){for(l=0;l=0;l--)e[h+l]=e[f+l];if(0===r){v=!0;break}}if(e[d--]=a[c--],1===--s){v=!0;break}if(g=s-ut(e[u],a,0,s,s-1,t),0!==g){for(d-=g,c-=g,s-=g,h=d+1,f=c+1,l=0;l=it||g>=it);if(v)break;p<0&&(p=0),p+=2}if(i=p,i<1&&(i=1),1===s){for(d-=r,u-=r,h=d+1,f=u+1,l=r-1;l>=0;l--)e[h+l]=e[f+l];e[d]=a[c]}else{if(0===s)throw new Error;for(f=d-(s-1),l=0;l=0;l--)e[h+l]=e[f+l];e[d]=a[c]}else for(f=d-(s-1),l=0;ls&&(l=s),lt(e,n,n+l,n+o,t),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(0!==i);a.forceMergeRuns()}}var ht=1,pt=2,mt=4,gt=!1;function vt(){gt||(gt=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function yt(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var _t,bt=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=yt}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(vt(),u.z=0),isNaN(u.z2)&&(vt(),u.z2=0),isNaN(u.zlevel)&&(vt(),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 f=e.getTextContent();f&&this._updateAndAddDisplayable(f,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(r,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}(),xt=bt;_t=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 wt=_t,Mt={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,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.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-Mt.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*Mt.bounceIn(2*e):.5*Mt.bounceOut(2*e-1)+.5}},kt=Mt,St=Math.pow,Lt=Math.sqrt,Tt=1e-8,Dt=1e-4,Ot=Lt(3),Ct=1/3,At=_(),It=_(),jt=_();function Et(e){return e>-Tt&&eTt||e<-Tt}function Pt(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function Nt(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function Rt(e,t,n,r,i,o){var a=r+3*(t-n)-e,s=3*(n-2*t+e),l=3*(t-e),u=e-i,c=s*s-3*a*l,d=s*l-9*a*u,f=l*l-3*s*u,h=0;if(Et(c)&&Et(d))if(Et(s))o[0]=0;else{var p=-l/s;p>=0&&p<=1&&(o[h++]=p)}else{var m=d*d-4*c*f;if(Et(m)){var g=d/c,v=(p=-s/a+g,-g/2);p>=0&&p<=1&&(o[h++]=p),v>=0&&v<=1&&(o[h++]=v)}else if(m>0){var y=Lt(m),_=c*s+1.5*a*(-d+y),b=c*s+1.5*a*(-d-y);_=_<0?-St(-_,Ct):St(_,Ct),b=b<0?-St(-b,Ct):St(b,Ct);p=(-s-(_+b))/(3*a);p>=0&&p<=1&&(o[h++]=p)}else{var x=(2*c*s-3*a*d)/(2*Lt(c*c*c)),w=Math.acos(x)/3,M=Lt(c),k=Math.cos(w),S=(p=(-s-2*M*k)/(3*a),v=(-s+M*(k+Ot*Math.sin(w)))/(3*a),(-s+M*(k-Ot*Math.sin(w)))/(3*a));p>=0&&p<=1&&(o[h++]=p),v>=0&&v<=1&&(o[h++]=v),S>=0&&S<=1&&(o[h++]=S)}}return h}function Ht(e,t,n,r,i){var o=6*n-12*t+6*e,a=9*t+3*r-3*e-9*n,s=3*t-3*e,l=0;if(Et(a)){if(Yt(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Et(c))i[0]=-o/(2*a);else if(c>0){var d=Lt(c),f=(u=(-o+d)/(2*a),(-o-d)/(2*a));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function zt(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,d=(c-u)*i+u;o[0]=e,o[1]=a,o[2]=u,o[3]=d,o[4]=d,o[5]=c,o[6]=l,o[7]=r}function Ft(e,t,n,r,i,o,a,s,l,u,c){var d,f,h,p,m,g=.005,v=1/0;At[0]=l,At[1]=u;for(var y=0;y<1;y+=.05)It[0]=Pt(e,n,i,a,y),It[1]=Pt(t,r,o,s,y),p=R(At,It),p=0&&p=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Et(c)){u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var d=Lt(c),f=(u=(-a+d)/(2*o),(-a-d)/(2*o));u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function $t(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function Ut(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function qt(e,t,n,r,i,o,a,s,l){var u,c=.005,d=1/0;At[0]=a,At[1]=s;for(var f=0;f<1;f+=.05){It[0]=Wt(e,n,i,f),It[1]=Wt(t,r,o,f);var h=R(At,It);h=0&&h=1?1:Rt(0,r,o,1,e,s)&&Pt(0,i,a,1,s[0])}}}var Jt=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,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%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:kt[e]||Kt(e)},e}(),Qt=Jt,en=n("4aa5"),tn=n("9ed0"),nn=Array.prototype.slice;function rn(e,t,n){return(t-e)*n+e}function on(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.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 r=this.keyframes,i=r.length,o=!1,a=bn,s=t;if(Object(g["isArrayLike"])(t)){var l=hn(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=pn;else if(Object(g["isString"])(t))if(isNaN(+t)){var u=en["parse"](t);u&&(s=u,a=vn)}else a=pn;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:en["parse"](e.color)}})),Object(tn["m"])(t)?a=yn:Object(tn["o"])(t)&&(a=_n),s=c}0===i?this.valType=a:a===this.valType&&a!==bn||(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:kt[n]||Kt(n)),r.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 r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=wn(r),l=xn(r),u=0;u=0;n--)if(l[n].percent<=t)break;n=h(n,u-2)}else{for(n=f;nt)break;n=h(n-1,u-2)}i=l[n+1],r=l[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var m=i.percent-r.percent,v=0===m?1:h((t-r.percent)/m,1);i.easingFunc&&(v=i.easingFunc(v));var y=o?this._additiveValue:d?Mn:e[c];if(!wn(s)&&!d||y||(y=this._additiveValue=[]),this.discrete)e[c]=v<1?r.rawValue:i.rawValue;else if(wn(s))s===mn?on(y,r[a],i[a],v):an(y,r[a],i[a],v);else if(xn(s)){var _=r[a],b=i[a],x=s===yn;e[c]={type:x?"linear":"radial",x:rn(_.x,b.x,v),y:rn(_.y,b.y,v),colorStops:Object(g["map"])(_.colorStops,(function(e,t){var n=b.colorStops[t];return{offset:rn(e.offset,n.offset,v),color:fn(on([],e.color,n.color,v))}})),global:b.global},x?(e[c].x2=rn(_.x2,b.x2,v),e[c].y2=rn(_.y2,b.y2,v)):e[c].r=rn(_.r,b.r,v)}else if(d)on(y,r[a],i[a],v),o||(e[c]=fn(y));else{var w=rn(r[a],i[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,r=this._additiveValue;t===pn?e[n]=e[n]+r:t===vn?(en["parse"](e[n],Mn),sn(Mn,Mn,r,1),e[n]=fn(Mn)):t===mn?sn(e[n],e[n],r,1):t===gn&&ln(e[n],e[n],r,1)},e}(),Sn=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(g["logError"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,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,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,dn(l),r),this._trackKeys.push(a)}s.addKeyframe(e,dn(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var a=o.pop();i.addKeyframe(a.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}(),Ln=Sn;function Tn(){return(new Date).getTime()}var Dn=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 y(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=Tn()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,o=r.step(t,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}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&&(wt(t),!e._paused&&e.update())}this._running=!0,wt(t)},t.prototype.start=function(){this._running||(this._time=Tn(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Tn(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Tn()-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 Ln(e,t.loop);return this.addAnimator(n),n},t}(q),On=Dn,Cn=300,An=m["a"].domSupported,In=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},r=g["map"](e,(function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e}));return{mouse:e,touch:t,pointer:r}}(),jn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},En=!1;function Yn(e){var t=e.pointerType;return"pen"===t||"touch"===t}function Pn(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 Nn(e){e&&(e.zrByTouch=!0)}function Rn(e,t){return pe(e.dom,new zn(e,t),!0)}function Hn(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var zn=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=pe(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=pe(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=pe(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=pe(this.dom,e);var t=e.toElement||e.relatedTarget;Hn(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){En=!0,e=pe(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){En||(e=pe(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=pe(this.dom,e),Nn(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Fn.mousemove.call(this,e),Fn.mousedown.call(this,e)},touchmove:function(e){e=pe(this.dom,e),Nn(e),this.handler.processGesture(e,"change"),Fn.mousemove.call(this,e)},touchend:function(e){e=pe(this.dom,e),Nn(e),this.handler.processGesture(e,"end"),Fn.mouseup.call(this,e),+new Date-+this.__lastTouchMomentrr||e<-rr}var or=[],ar=[],sr=ke(),lr=Math.abs,ur=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 ir(this.rotation)||ir(this.x)||ir(this.y)||ir(this.scaleX-1)||ir(this.scaleY-1)||ir(this.skewX)||ir(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||ke(),t?this.getLocalTransform(n):nr(n),e&&(t?Te(n,e,n):Le(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(nr(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(or);var n=or[0]<0?-1:1,r=or[1]<0?-1:1,i=((or[0]-n)*t+n)/or[0]||0,o=((or[1]-r)*t+r)/or[1]||0;e[0]*=i,e[1]*=i,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||ke(),Ae(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],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ke(),Te(ar,e.invTransform,t),t=ar);var n=this.originX,r=this.originY;(n||r)&&(sr[4]=n,sr[5]=r,Te(ar,t,sr),ar[4]-=n,ar[5]-=r,t=ar),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&F(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&F(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&lr(e[0]-1)>1e-10&&lr(e[3]-1)>1e-10?Math.sqrt(lr(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){dr(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,r=e.originY||0,i=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,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||a||s){var h=n+a,p=r+s;t[4]=-h*i-d*p*o,t[5]=-p*o-f*h*i}else t[4]=t[5]=0;return t[0]=i,t[3]=o,t[1]=f*i,t[2]=d*o,l&&Oe(t,t,l),t[4]+=n+u,t[5]+=r+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}(),cr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dr(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function Mr(e,t,n){var r=t.position||"inside",i=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(r instanceof Array)l+=wr(r[0],n.width),u+=wr(r[1],n.height),c=null,d=null;else switch(r){case"left":l-=i,u+=s,c="right",d="middle";break;case"right":l+=i+a,u+=s,d="middle";break;case"top":l+=a/2,u-=i,c="center",d="bottom";break;case"bottom":l+=a/2,u+=o+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",d="middle";break;case"insideLeft":l+=i,u+=s,d="middle";break;case"insideRight":l+=a-i,u+=s,c="right",d="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=o-i,c="center",d="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=o-i,d="bottom";break;case"insideBottomRight":l+=a-i,u+=o-i,c="right",d="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=d,e}var kr="__zr_normal__",Sr=cr.concat(["ignore"]),Lr=Object(g["reduce"])(cr,(function(e,t){return e[t]=!0,e}),{ignore:!1}),Tr={},Dr=new Ve(0,0,0,0),Or=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 r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[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,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,s=!1;i.parent=r?this:null;var l=!1;if(i.copyTransform(t),null!=n.position){var u=Dr;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Tr,n,u):Mr(Tr,n,u),i.x=Tr.x,i.y=Tr.y,o=Tr.align,a=Tr.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var d=void 0,f=void 0;"center"===c?(d=.5*u.width,f=.5*u.height):(d=wr(c[0],u.width),f=wr(c[1],u.height)),l=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+f+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var p=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;p&&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|=ht,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()?er:Qn},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(en["parse"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(en["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,r=Object(g["keys"])(n),i=0;i0},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(kr,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===kr,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(g["indexOf"])(a,e)>=0)||!t&&1!==a.length){var l;if(this.stateProxy&&!i&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||i){i||this.saveCurrentToNormalState(l);var u=!!(l&&l.hoverLayer||r);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),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ht),l}Object(g["logError"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s0,h);var p=this._textContent,m=this._textGuide;p&&p.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&=~ht)}else this.clearStates()},e.prototype.isSilent=function(){var e=this.silent,t=this.parent;while(!e&&t){if(t.silent){e=!0;break}t=t.parent}return e},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 r=this.currentStates.slice(),i=Object(g["indexOf"])(r,e),o=Object(g["indexOf"])(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=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,r=n.length,i=[],o=0;o0&&n.during&&o[0].during((function(e,t){n.during(t)}));for(var f=0;f0||i.force&&!a.length){var S=void 0,L=void 0,T=void 0;if(s){L={},f&&(S={});for(x=0;x=0&&(n.splice(r,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,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=g["indexOf"](n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover())},e.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*u+a}function ii(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)?ni(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e}function oi(e,t,n){return null==t&&(t=10),t=Math.min(Math.max(0,t),ti),e=(+e).toFixed(t),n?e:+e}function ai(e){return e.sort((function(e,t){return e-t})),e}function si(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 li(e)}function li(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function ui(e,t){var n=Math.log,r=Math.LN10,i=Math.floor(n(e[1]-e[0])/r),o=Math.round(n(Math.abs(t[1]-t[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function ci(e,t,n){if(!e[t])return 0;var r=di(e,n);return r[t]||0}function di(e,t){var n=g["reduce"](e,(function(e,t){return e+(isNaN(t)?0:t)}),0);if(0===n)return[];var r=Math.pow(10,t),i=g["map"](e,(function(e){return(isNaN(e)?0:e)/n*r*100})),o=100*r,a=g["map"](i,(function(e){return Math.floor(e)})),s=g["reduce"](a,(function(e,t){return e+t}),0),l=g["map"](i,(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/r}))}function fi(e,t){var n=Math.max(si(e),si(t)),r=e+t;return n>ti?r:oi(r,n)}var hi=9007199254740991;function pi(e){var t=2*Math.PI;return(e%t+t)%t}function mi(e){return e>-ei&&e=10&&t++,t}function bi(e,t){var n,r=_i(e),i=Math.pow(10,r),o=e/i;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*i,r>=-20?+e.toFixed(r<0?-r:0):e}function xi(e,t){var n=(e.length-1)*t+1,r=Math.floor(n),i=+e[r-1],o=n-r;return o?i+o*(e[r]-i):i}function wi(e){e.sort((function(e,t){return s(e,t,0)?-1:1}));for(var t=-1/0,n=1,r=0;r=0||i&&g["indexOf"](i,s)<0)){var l=n.getShallow(s,t);null!=l&&(o[e[a][0]]=l)}}return o}}var To=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Do=Lo(To),Oo=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Do(this,e,t)},e}(),Co=new hr["a"](50);function Ao(e){if("string"===typeof e){var t=Co.get(e);return t&&t.image}return e}function Io(e,t,n,r,i){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var o=Co.get(e),a={hostEl:n,cb:r,cbPayload:i};return o?(t=o.image,!Eo(t)&&o.pending.push(a)):(t=pr["d"].loadImage(e,jo,jo),t.__zrImageSrc=e,Co.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}return e}return t}function jo(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=a;l++)s-=a;var u=gr(n,t);return u>s&&(n="",u=0),s=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function Ho(e,t,n){var r=n.containerWidth,i=n.font,o=n.contentWidth;if(!r)return e.textLine="",void(e.isTruncated=!1);var a=gr(t,i);if(a<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(a<=o||s>=n.maxIterations){t+=n.ellipsis;break}var l=0===s?zo(t,o,n.ascCharWidth,n.cnCharWidth):a>0?Math.floor(t.length*o/a):0;t=t.substr(0,l),a=gr(t,i)}""===t&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function zo(e,t,n,r){for(var i=0,o=0,a=e.length;op&&c){var m=Math.floor(p/l);d=d||n.length>m,n=n.slice(0,m)}if(e&&a&&null!=f)for(var v=Ro(f,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y={},_=0;_l&&$o(n,e.substring(l,u),t,s),$o(n,r[2],t,s,r[1]),l=Yo.lastIndex}lo){var C=n.lines.length;M>0?(b.tokens=b.tokens.slice(0,M),y(b,w,x),n.lines=n.lines.slice(0,_+1)):n.lines=n.lines.slice(0,_),n.isTruncated=n.isTruncated||n.lines.length0&&p+r.accumWidth>r.width&&(o=t.split("\n"),d=!0),r.accumWidth=p}else{var m=Zo(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=m.accumWidth+h,a=m.linesWidths,o=m.lines}}else o=t.split("\n");for(var g=0;g=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qo=Object(g["reduce"])(",&?/;] ".split(""),(function(e,t){return e[t]=!0,e}),{});function Xo(e){return!Uo(e)||!!qo[e]}function Zo(e,t,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,d=0;dn:i+c+h>n)?c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=f,c=h)):p?(o.push(l),a.push(u),l=f,u=h):(o.push(f),a.push(h)):(c+=h,p?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f))}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+=i),{accumWidth:c,lines:o,linesWidths:a}}var Ko="__zr_style_"+Math.round(10*Math.random()),Jo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Qo={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Jo[Ko]=!0;var ea=["z","z2","invisible"],ta=["invisible"],na=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype._init=function(t){for(var n=Object(g["keys"])(t),r=0;r1e-4)return s[0]=e-n,s[1]=t-r,l[0]=e+n,void(l[1]=t+r);if(fa[0]=ca(i)*n+e,fa[1]=ua(i)*r+t,ha[0]=ca(o)*n+e,ha[1]=ua(o)*r+t,u(s,fa,ha),c(l,fa,ha),i%=da,i<0&&(i+=da),o%=da,o<0&&(o+=da),i>o&&!a?o+=da:ii&&(pa[0]=ca(h)*n+e,pa[1]=ua(h)*r+t,u(s,pa,s),c(l,pa,l))}var wa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ma=[],ka=[],Sa=[],La=[],Ta=[],Da=[],Oa=Math.min,Ca=Math.max,Aa=Math.cos,Ia=Math.sin,ja=Math.abs,Ea=Math.PI,Ya=2*Ea,Pa="undefined"!==typeof Float32Array,Na=[];function Ra(e){var t=Math.round(e/Ea*1e8)/1e8;return t%2*Ea}function Ha(e,t){var n=Ra(e[0]);n<0&&(n+=Ya);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Ya?i=n+Ya:t&&n-i>=Ya?i=n-Ya:!t&&n>i?i=n+(Ya-Ra(n-i)):t&&n0&&(this._ux=ja(n/Kn/e)||0,this._uy=ja(n/Kn/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(wa.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=ja(e-this._xi),r=ja(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(wa.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(wa.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(wa.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),Na[0]=r,Na[1]=i,Ha(Na,o),r=Na[0],i=Na[1];var a=i-r;return this.addData(wa.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=Aa(i)*n+e,this._yi=Ia(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(wa.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(wa.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||!Pa||(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(){Sa[0]=Sa[1]=Ta[0]=Ta[1]=Number.MAX_VALUE,La[0]=La[1]=Da[0]=Da[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,r=0,i=0,o=0;for(e=0;en||ja(y)>r||d===t-1)&&(p=Math.sqrt(v*v+y*y),i=m,o=g);break;case wa.C:var _=e[d++],b=e[d++],x=(m=e[d++],g=e[d++],e[d++]),w=e[d++];p=Bt(i,o,_,b,m,g,x,w,10),i=x,o=w;break;case wa.Q:_=e[d++],b=e[d++],m=e[d++],g=e[d++];p=Xt(i,o,_,b,m,g,10),i=m,o=g;break;case wa.A:var M=e[d++],k=e[d++],S=e[d++],L=e[d++],T=e[d++],D=e[d++],O=D+T;d+=1,h&&(a=Aa(T)*S+M,s=Ia(T)*L+k),p=Ca(S,L)*Oa(Ya,Math.abs(D)),i=Aa(O)*S+M,o=Ia(O)*L+k;break;case wa.R:a=i=e[d++],s=o=e[d++];var C=e[d++],A=e[d++];p=2*C+2*A;break;case wa.Z:v=a-i,y=s-o;p=Math.sqrt(v*v+y*y),i=a,o=s;break}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,s,l,u,c,d,f,h=this.data,p=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,f),b=0),w){case wa.M:n=i=h[x++],r=o=h[x++],e.moveTo(i,o);break;case wa.L:a=h[x++],s=h[x++];var k=ja(a-i),S=ja(s-o);if(k>p||S>m){if(v){var L=l[_++];if(y+L>c){var T=(c-y)/L;e.lineTo(i*(1-T)+a*T,o*(1-T)+s*T);break e}y+=L}e.lineTo(a,s),i=a,o=s,b=0}else{var D=k*k+S*S;D>b&&(d=a,f=s,b=D)}break;case wa.C:var O=h[x++],C=h[x++],A=h[x++],I=h[x++],j=h[x++],E=h[x++];if(v){L=l[_++];if(y+L>c){T=(c-y)/L;zt(i,O,A,j,T,Ma),zt(o,C,I,E,T,ka),e.bezierCurveTo(Ma[1],ka[1],Ma[2],ka[2],Ma[3],ka[3]);break e}y+=L}e.bezierCurveTo(O,C,A,I,j,E),i=j,o=E;break;case wa.Q:O=h[x++],C=h[x++],A=h[x++],I=h[x++];if(v){L=l[_++];if(y+L>c){T=(c-y)/L;Ut(i,O,A,T,Ma),Ut(o,C,I,T,ka),e.quadraticCurveTo(Ma[1],ka[1],Ma[2],ka[2]);break e}y+=L}e.quadraticCurveTo(O,C,A,I),i=A,o=I;break;case wa.A:var Y=h[x++],P=h[x++],N=h[x++],R=h[x++],H=h[x++],z=h[x++],F=h[x++],B=!h[x++],W=N>R?N:R,V=ja(N-R)>.001,G=H+z,$=!1;if(v){L=l[_++];y+L>c&&(G=H+z*(c-y)/L,$=!0),y+=L}if(V&&e.ellipse?e.ellipse(Y,P,N,R,F,H,G,B):e.arc(Y,P,W,H,G,B),$)break e;M&&(n=Aa(H)*N+Y,r=Ia(H)*R+P),i=Aa(G)*N+Y,o=Ia(G)*R+P;break;case wa.R:n=i=h[x],r=o=h[x+1],a=h[x++],s=h[x++];var U=h[x++],q=h[x++];if(v){L=l[_++];if(y+L>c){var X=c-y;e.moveTo(a,s),e.lineTo(a+Oa(X,U),s),X-=U,X>0&&e.lineTo(a+U,s+Oa(X,q)),X-=q,X>0&&e.lineTo(a+Ca(U-X,0),s+q),X-=U,X>0&&e.lineTo(a,s+Ca(q-X,0));break e}y+=L}e.rect(a,s,U,q);break;case wa.Z:if(v){L=l[_++];if(y+L>c){T=(c-y)/L;e.lineTo(i*(1-T)+n*T,o*(1-T)+r*T);break e}y+=L}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=wa,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}(),Fa=za;function Ba(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,u=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+d&&c>r+d&&c>o+d&&c>s+d||ce+d&&u>n+d&&u>i+d&&u>a+d||ut+u&&l>r+u&&l>o+u||le+u&&s>n+u&&s>i+u||sn||c+ui&&(i+=Ua);var f=Math.atan2(l,s);return f<0&&(f+=Ua),f>=r&&f<=i||f+Ua>=r&&f+Ua<=i}function Xa(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var Za=Fa.CMD,Ka=2*Math.PI,Ja=1e-4;function Qa(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>s||u1&&ns(),h=Pt(t,r,o,s,ts[0]),f>1&&(p=Pt(t,r,o,s,ts[1]))),2===f?gt&&s>r&&s>o||s=0&&u<=1){for(var c=0,d=Wt(t,r,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);es[0]=-l,es[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Ka-1e-4){r=0,i=Ka;var c=o?1:-1;return a>=es[0]+e&&a<=es[1]+e?c:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=Ka,i+=Ka);for(var f=0,h=0;h<2;h++){var p=es[h];if(p+e>a){var m=Math.atan2(s,p);c=o?1:-1;m<0&&(m=Ka+m),(m>=r&&m<=i||m+Ka>=r&&m+Ka<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(c=-c),f+=c)}}return f}function as(e,t,n,r,i){for(var o,a,s=e.data,l=e.len(),u=0,c=0,d=0,f=0,h=0,p=0;p1&&(n||(u+=Xa(c,d,f,h,r,i))),g&&(c=s[p],d=s[p+1],f=c,h=d),m){case Za.M:f=s[p++],h=s[p++],c=f,d=h;break;case Za.L:if(n){if(Ba(c,d,s[p],s[p+1],t,r,i))return!0}else u+=Xa(c,d,s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Za.C:if(n){if(Wa(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=rs(c,d,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Za.Q:if(n){if(Va(c,d,s[p++],s[p++],s[p],s[p+1],t,r,i))return!0}else u+=is(c,d,s[p++],s[p++],s[p],s[p+1],r,i)||0;c=s[p++],d=s[p++];break;case Za.A:var v=s[p++],y=s[p++],_=s[p++],b=s[p++],x=s[p++],w=s[p++];p+=1;var M=!!(1-s[p++]);o=Math.cos(x)*_+v,a=Math.sin(x)*b+y,g?(f=o,h=a):u+=Xa(c,d,o,a,r,i);var k=(r-v)*b/_+v;if(n){if(qa(v,y,b,x,x+w,M,t,k,i))return!0}else u+=os(v,y,b,x,x+w,M,k,i);c=Math.cos(x+w)*_+v,d=Math.sin(x+w)*b+y;break;case Za.R:f=c=s[p++],h=d=s[p++];var S=s[p++],L=s[p++];if(o=f+S,a=h+L,n){if(Ba(f,h,o,h,t,r,i)||Ba(o,h,o,a,t,r,i)||Ba(o,a,f,a,t,r,i)||Ba(f,a,f,h,t,r,i))return!0}else u+=Xa(o,h,o,a,r,i),u+=Xa(f,a,f,h,r,i);break;case Za.Z:if(n){if(Ba(c,d,f,h,t,r,i))return!0}else u+=Xa(c,d,f,h,r,i);c=f,d=h;break}}return n||Qa(d,h)||(u+=Xa(c,d,f,h,r,i)||0),0!==u}function ss(e,t,n){return as(e,0,!1,t,n)}function ls(e,t,n,r){return as(e,t,!0,n,r)}var us=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},Jo),cs={style:Object(g["defaults"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Qo.style)},ds=cr.concat(["invisible","culling","z","z2","zlevel","parent"]),fs=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Qn:t>.2?tr:er}if(e)return er}return Qn},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(g["isString"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(en["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 r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&mt)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var 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),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),ls(o,a/s,e,t)))return!0}if(this.hasFill())return ss(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=mt,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&mt)},t.prototype.createStyle=function(e){return Object(g["createObject"])(us,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,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(g["extend"])({},r.shape),Object(g["extend"])(s,n.shape)):(s=Object(g["extend"])({},i?this.shape:r.shape),Object(g["extend"])(s,n.shape)):l&&(s=r.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"])(ps,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=yr(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(aa);ms.prototype.type="tspan";var gs=ms,vs=Object(g["defaults"])({x:0,y:0},Jo),ys={style:Object(g["defaults"])({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Qo.style)};function _s(e){return!!(e&&"string"!==typeof e&&e.width&&e.height)}var bs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return y(t,e),t.prototype.createStyle=function(e){return Object(g["createObject"])(vs,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(null!=n)return n;var r=_s(t.image)?t.image:this.__image;if(!r)return 0;var i="width"===e?"height":"width",o=t[i];return null==o?r[e]:r[e]/r[i]*o},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return ys},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new Ve(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(aa);bs.prototype.type="image";var xs=bs;function ws(e,t){var n,r,i,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=r=i=o=d:d instanceof Array?1===d.length?n=r=i=o=d[0]:2===d.length?(n=i=d[0],r=o=d[1]):3===d.length?(n=d[0],r=o=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],o=d[3]):n=r=i=o=0,n+r>u&&(a=n+r,n*=u/a,r*=u/a),i+o>u&&(a=i+o,i*=u/a,o*=u/a),r+i>c&&(a=r+i,r*=c/a,i*=c/a),n+o>c&&(a=n+o,n*=c/a,o*=c/a),e.moveTo(s+n,l),e.lineTo(s+u-r,l),0!==r&&e.arc(s+u-r,l+r,r,-Math.PI/2,0),e.lineTo(s+u,l+c-i),0!==i&&e.arc(s+u-i,l+c-i,i,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 Ms=Math.round;function ks(e,t,n){if(t){var r=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=r,e.x2=i,e.y1=o,e.y2=a;var s=n&&n.lineWidth;return s?(Ms(2*r)===Ms(2*i)&&(e.x1=e.x2=Ls(r,s,!0)),Ms(2*o)===Ms(2*a)&&(e.y1=e.y2=Ls(o,s,!0)),e):e}}function Ss(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,a=t.height;e.x=r,e.y=i,e.width=o,e.height=a;var s=n&&n.lineWidth;return s?(e.x=Ls(r,s,!0),e.y=Ls(i,s,!0),e.width=Math.max(Ls(r+o,s,!1)-e.x,0===o?0:1),e.height=Math.max(Ls(i+a,s,!1)-e.y,0===a?0:1),e):e}}function Ls(e,t,n){if(!t)return e;var r=Ms(2*e);return(r+Ms(t))%2===0?r/2:(r+(n?1:-1))/2}var Ts=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Ds={},Os=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype.getDefaultShape=function(){return new Ts},t.prototype.buildPath=function(e,t){var n,r,i,o;if(this.subPixelOptimize){var a=Ss(Ds,t,this.style);n=a.x,r=a.y,i=a.width,o=a.height,a.r=t.r,t=a}else n=t.x,r=t.y,i=t.width,o=t.height;t.r?ws(e,t):e.rect(n,r,i,o)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(hs);Os.prototype.type="rect";var Cs=Os,As={fill:"#000"},Is=2,js={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},Qo.style)},Es=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=As,n.attr(t),n}return y(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,L=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),T=i.calculatedLineHeight,D=0;D=0&&(D=b[T],"right"===D.align))this._placeToken(D,e,w,m,L,"right",v),M-=D.width,L-=D.width,T--;S+=(r-(S-p)-(g-L)-M)/2;while(k<=T)D=b[k],this._placeToken(D,e,w,m,S+D.width/2,"center",v),S+=D.width,k++;m+=w}},t.prototype._placeToken=function(e,t,n,r,i,o,a){var s=t.rich[e.styleName]||{};s.text=e.text;var l=e.verticalAlign,u=r+n/2;"top"===l?u=r+e.height/2:"bottom"===l&&(u=r+n-e.height/2);var c=!e.isLineHolder&&Us(s);c&&this._renderBackground(s,t,"right"===o?i-e.width:"center"===o?i-e.width/2:i,u-e.height/2,e.width,e.height);var d=!!s.backgroundColor,f=e.textPadding;f&&(i=Gs(i,o,f),u-=e.height/2-f[0]-e.innerHeight/2);var h=this._getOrCreateChild(gs),p=h.createStyle();h.useStyle(p);var m=this._defaultStyle,v=!1,y=0,_=Vs("fill"in s?s.fill:"fill"in t?t.fill:(v=!0,m.fill)),b=Ws("stroke"in s?s.stroke:"stroke"in t?t.stroke:d||a||m.autoStroke&&!v?null:(y=Is,m.stroke)),x=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=e.font||pr["a"],p.opacity=Object(g["retrieve3"])(s.opacity,t.opacity,1),Hs(p,s),b&&(p.lineWidth=Object(g["retrieve3"])(s.lineWidth,t.lineWidth,y),p.lineDash=Object(g["retrieve2"])(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=b),_&&(p.fill=_);var w=e.contentWidth,M=e.contentHeight;h.setBoundingRect(new Ve(_r(p.x,w,p.textAlign),br(p.y,M,p.textBaseline),w,M))},t.prototype._renderBackground=function(e,t,n,r,i,o){var a,s,l=e.backgroundColor,u=e.borderWidth,c=e.borderColor,d=l&&l.image,f=l&&!d,h=e.borderRadius,p=this;if(f||e.lineHeight||u&&c){a=this._getOrCreateChild(Cs),a.useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=r,m.width=i,m.height=o,m.r=h,a.dirtyShape()}if(f){var v=a.style;v.fill=l||null,v.fillOpacity=Object(g["retrieve2"])(e.fillOpacity,1)}else if(d){s=this._getOrCreateChild(xs),s.onload=function(){p.dirtyStyle()};var y=s.style;y.image=l.image,y.x=n,y.y=r,y.width=i,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 zs(e)&&(t=[e.fontStyle,e.fontWeight,Rs(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(g["trim"])(t)||e.textFont||e.font},t}(aa),Ys={left:!0,right:1,center:1},Ps={top:1,bottom:1,middle:1},Ns=["fontStyle","fontWeight","fontSize","fontFamily"];function Rs(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?pr["c"]+"px":e+"px":e}function Hs(e,t){for(var n=0;n=0,o=!1;if(e instanceof hs){var a=Qs(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(hl(s)||hl(l)){r=r||{};var u=r.style||{};"inherit"===u.fill?(o=!0,r=Object(g["extend"])({},r),u=Object(g["extend"])({},u),u.fill=s):!hl(u.fill)&&hl(s)?(o=!0,r=Object(g["extend"])({},r),u=Object(g["extend"])({},u),u.fill=Object(en["liftColor"])(s)):!hl(u.stroke)&&hl(l)&&(o||(r=Object(g["extend"])({},r),u=Object(g["extend"])({},u)),u.stroke=Object(en["liftColor"])(l)),r.style=u}}if(r&&null==r.z2){o||(r=Object(g["extend"])({},r));var c=e.z2EmphasisLift;r.z2=e.z2+(null!=c?c:al)}return r}function Ll(e,t,n){if(n&&null==n.z2){n=Object(g["extend"])({},n);var r=e.z2SelectLift;n.z2=e.z2+(null!=r?r:sl)}return n}function Tl(e,t,n){var r=Object(g["indexOf"])(e.currentStates,t)>=0,i=e.style.opacity,o=r?null:kl(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:r?i:.1*o.opacity},a),n.style=a),n}function Dl(e,t){var n=this.states[e];if(this.style){if("emphasis"===e)return Sl(this,e,t,n);if("blur"===e)return Tl(this,e,n);if("select"===e)return Ll(this,e,n)}return n}function Ol(e){e.stateProxy=Dl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=Dl),n&&(n.stateProxy=Dl)}function Cl(e,t){!Rl(e,t)&&!e.__highByOuter&&wl(e,ml)}function Al(e,t){!Rl(e,t)&&!e.__highByOuter&&wl(e,gl)}function Il(e,t){e.__highByOuter|=1<<(t||0),wl(e,ml)}function jl(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&wl(e,gl)}function El(e){wl(e,vl)}function Yl(e){wl(e,yl)}function Pl(e){wl(e,_l)}function Nl(e){wl(e,bl)}function Rl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Hl(e){var t=e.getModel(),n=[],r=[];t.eachComponent((function(t,i){var o=el(i),a="series"===t,s=a?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!a&&r.push(s),o.isBlured&&(s.group.traverse((function(e){yl(e)})),a&&n.push(i)),o.isBlured=!1})),Object(g["each"])(r,(function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)}))}function zl(e,t,n,r){var i=r.getModel();function o(e,t){for(var n=0;n0){var o={dataIndex:i,seriesIndex:e.seriesIndex};null!=r&&(o.dataType=r),t.push(o)}}))})),t}function Xl(e,t,n){nu(e,!0),wl(e,Ol),Jl(e,t,n)}function Zl(e){nu(e,!1)}function Kl(e,t,n,r){r?Zl(e):Xl(e,t,n)}function Jl(e,t,n){var r=Xs(e);null!=t?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Ql=["emphasis","blur","select"],eu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function tu(e,t,n,r){n=n||"itemStyle";for(var i=0;i0){var d=c.duration,f=c.delay,h=c.easing,p={duration:d,delay:f||0,easing:h,done:o,force:!!o||!!a,setToFinal:!u,scope:e,during:a};l?t.animateFrom(n,p):t.animateTo(n,p)}else t.stopAnimation(),!l&&t.attr(n),a&&a(1),o&&o()}function fu(e,t,n,r,i,o){du("update",e,t,n,r,i,o)}function hu(e,t,n,r,i,o){du("enter",e,t,n,r,i,o)}function pu(e){if(!e.__zr)return!0;for(var t=0;t=0&&n.push(e)})),n}e.topologicalTravel=function(e,t,r,i){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&&(r.call(i,u,c.originalDeps.slice()),delete l[u]),g["each"](c.successor,d?h:f)}g["each"](l,(function(){var e="";throw new Error(e)}))}function f(e){a[e].entryCount--,0===a[e].entryCount&&s.push(e)}function h(e){l[e]=!0,f(e)}}}function ec(e,t){return g["merge"](g["merge"]({},e,!0),t,!0)}var tc={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},nc={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}},rc="ZH",ic="EN",oc=ic,ac={},sc={},lc=m["a"].domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||oc).toUpperCase();return e.indexOf(rc)>-1?rc:oc}():oc;function uc(e,t){e=e.toUpperCase(),sc[e]=new Xu(t),ac[e]=t}function cc(e){if(Object(g["isString"])(e)){var t=ac[e.toUpperCase()]||{};return e===rc||e===ic?Object(g["clone"])(t):Object(g["merge"])(Object(g["clone"])(t),Object(g["clone"])(ac[oc]),!1)}return Object(g["merge"])(Object(g["clone"])(e),Object(g["clone"])(ac[oc]),!1)}function dc(e){return sc[e]}function fc(){return sc[oc]}uc(ic,tc),uc(rc,nc);var hc=1e3,pc=60*hc,mc=60*pc,gc=24*mc,vc=365*gc,yc={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}"},_c="{yyyy}-{MM}-{dd}",bc={year:"{yyyy}",month:"{yyyy}-{MM}",day:_c,hour:_c+" "+yc.hour,minute:_c+" "+yc.minute,second:_c+" "+yc.second,millisecond:yc.none},xc=["year","month","day","hour","minute","second","millisecond"],wc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Mc(e,t){return e+="","0000".substr(0,t-e.length)+e}function kc(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 Sc(e){return e===kc(e)}function Lc(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Tc(e,t,n,r){var i=vi(e),o=i[Ac(n)](),a=i[Ic(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[jc(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[Ec(n)](),d=(c-1)%12+1,f=i[Yc(n)](),h=i[Pc(n)](),p=i[Nc(n)](),m=c>=12?"pm":"am",g=m.toUpperCase(),v=r instanceof Xu?r:dc(r||lc)||fc(),y=v.getModel("time"),_=y.get("month"),b=y.get("monthAbbr"),x=y.get("dayOfWeek"),w=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,m+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Mc(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,b[a-1]).replace(/{MM}/g,Mc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Mc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,w[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Mc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Mc(d+"",2)).replace(/{h}/g,d+"").replace(/{mm}/g,Mc(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Mc(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Mc(p,3)).replace(/{S}/g,p+"")}function Dc(e,t,n,r,i){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"]({},yc);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 Tc(new Date(e.value),o,i,r)}function Oc(e,t){var n=vi(e),r=n[Ic(t)]()+1,i=n[jc(t)](),o=n[Ec(t)](),a=n[Yc(t)](),s=n[Pc(t)](),l=n[Nc(t)](),u=0===l,c=u&&0===s,d=c&&0===a,f=d&&0===o,h=f&&1===i,p=h&&1===r;return p?"year":h?"month":f?"day":d?"hour":c?"minute":u?"second":"millisecond"}function Cc(e,t,n){var r=g["isNumber"](e)?vi(e):e;switch(t=t||Oc(e,n),t){case"year":return r[Ac(n)]();case"half-year":return r[Ic(n)]()>=6?1:0;case"quarter":return Math.floor((r[Ic(n)]()+1)/4);case"month":return r[Ic(n)]();case"day":return r[jc(n)]();case"half-day":return r[Ec(n)]()/24;case"hour":return r[Ec(n)]();case"minute":return r[Yc(n)]();case"second":return r[Pc(n)]();case"millisecond":return r[Nc(n)]()}}function Ac(e){return e?"getUTCFullYear":"getFullYear"}function Ic(e){return e?"getUTCMonth":"getMonth"}function jc(e){return e?"getUTCDate":"getDate"}function Ec(e){return e?"getUTCHours":"getHours"}function Yc(e){return e?"getUTCMinutes":"getMinutes"}function Pc(e){return e?"getUTCSeconds":"getSeconds"}function Nc(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Rc(e){return e?"setUTCFullYear":"setFullYear"}function Hc(e){return e?"setUTCMonth":"setMonth"}function zc(e){return e?"setUTCDate":"setDate"}function Fc(e){return e?"setUTCHours":"setHours"}function Bc(e){return e?"setUTCMinutes":"setMinutes"}function Wc(e){return e?"setUTCSeconds":"setSeconds"}function Vc(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Gc(e){if(!ki(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 $c(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 Uc=g["normalizeCssArray"];function qc(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(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?vi(e):e;if(!isNaN(+l))return Tc(l,r,n);if(s)return"-"}if("ordinal"===t)return g["isStringSafe"](e)?i(e):g["isNumber"](e)&&o(e)?e+"":"-";var u=Mi(e);return o(u)?Gc(u):g["isStringSafe"](e)?i(e):"boolean"===typeof e?e+"":"-"}var Xc=["a","b","c","d","e","f","g"],Zc=function(e,t){return"{"+e+(null==t?"":t)+"}"};function Kc(e,t,n){g["isArray"](t)||(t=[t]);var r=t.length;if(!r)return"";for(var i=t[0].$vars||[],o=0;o':'';var a=n.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function ed(e,t,n){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=vi(t),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),d=r[i+"Milliseconds"]();return e=e.replace("MM",Mc(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Mc(o%100+"",2)).replace("dd",Mc(s,2)).replace("d",s).replace("hh",Mc(l,2)).replace("h",l).replace("mm",Mc(u,2)).replace("m",u).replace("ss",Mc(c,2)).replace("s",c).replace("SSS",Mc(d,3)),e}function td(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e}function nd(e,t){return t=t||"transparent",g["isString"](e)?e:g["isObject"](e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function rd(e,t){if("_blank"===t||"blank"===t){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var id=g["each"],od=["left","right","top","bottom","width","height"],ad=[["width","left","right"],["height","top","bottom"]];function sd(e,t,n,r,i){var o=0,a=0;null==r&&(r=1/0),null==i&&(i=1/0);var s=0;t.eachChild((function(l,u){var c,d,f=l.getBoundingRect(),h=t.childAt(u+1),p=h&&h.getBoundingRect();if("horizontal"===e){var m=f.width+(p?-p.x+f.x:0);c=o+m,c>r||l.newline?(o=0,c=m,a+=s+n,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(p?-p.y+f.y:0);d=a+g,d>i||l.newline?(o+=s+n,a=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===e?o=c+n:a=d+n)}))}var ld=sd;g["curry"](sd,"vertical"),g["curry"](sd,"horizontal");function ud(e,t,n){var r=t.width,i=t.height,o=ii(e.left,r),a=ii(e.top,i),s=ii(e.right,r),l=ii(e.bottom,i);return(isNaN(o)||isNaN(parseFloat(e.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(e.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),n=Uc(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function cd(e,t,n){n=Uc(n||0);var r=t.width,i=t.height,o=ii(e.left,r),a=ii(e.top,i),s=ii(e.right,r),l=ii(e.bottom,i),u=ii(e.width,r),c=ii(e.height,i),d=n[2]+n[0],f=n[1]+n[3],h=e.aspect;switch(isNaN(u)&&(u=r-s-f-o),isNaN(c)&&(c=i-l-d-a),null!=h&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=.8*r:c=.8*i),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(o)&&(o=r-s-u-f),isNaN(a)&&(a=i-l-c-d),e.left||e.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-f;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-d;break}o=o||0,a=a||0,isNaN(u)&&(u=r-f-o-(s||0)),isNaN(c)&&(c=i-d-a-(l||0));var p=new Ve(o+n[3],a+n[0],u,c);return p.margin=n,p}function dd(e,t,n,r,i,o){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.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 Ve(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=cd(g["defaults"]({width:a.width,height:a.height},t),n,r),f=s?d.x-a.x:0,h=l?d.y-a.y:0;return"raw"===u?(o.x=f,o.y=h):(o.x+=f,o.y+=h),o===e&&e.markRedraw(),!0}function fd(e,t){return null!=e[ad[t][0]]||null!=e[ad[t][1]]&&null!=e[ad[t][2]]}function hd(e){var t=e.layoutMode||e.constructor.layoutMode;return g["isObject"](t)?t:t?{type:t}:null}function pd(e,t,n){var r=n&&n.ignoreSize;!g["isArray"](r)&&(r=[r,r]);var i=a(ad[0],0),o=a(ad[1],1);function a(n,i){var o={},a=0,u={},c=0,d=2;if(id(n,(function(t){u[t]=e[t]})),id(n,(function(e){s(t,e)&&(o[e]=u[e]=t[e]),l(o,e)&&a++,l(u,e)&&c++})),r[i])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 f=0;f=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",r=e+"Id";return oo(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!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}(Xu);function _d(e){var t=[];return g["each"](yd.getClassesByMainType(e),(function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])})),t=g["map"](t,(function(e){return mo(e).main})),"dataset"!==e&&g["indexOf"](t,"dataset")<=0&&t.unshift("dataset"),t}bo(yd,Xu),So(yd),Ju(yd),Qu(yd,_d);var bd=yd,xd="";"undefined"!==typeof navigator&&(xd=navigator.platform||"");var wd="rgba(0, 0, 0, 0.2)",Md={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:wd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:wd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:wd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:wd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:wd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:wd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:xd.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},kd=Object(g["createHashMap"])(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Sd="original",Ld="arrayRows",Td="objectRows",Dd="keyedColumns",Od="typedArray",Cd="unknown",Ad="column",Id="row",jd={Must:1,Might:2,Not:3},Ed=Qi();function Yd(e){Ed(e).datasetMap=Object(g["createHashMap"])()}function Pd(e,t,n){var r={},i=Rd(t);if(!i||!e)return r;var o,a,s=[],l=[],u=t.ecModel,c=Ed(u).datasetMap,d=i.uid+"_"+n.seriesLayoutBy;e=e.slice(),Object(g["each"])(e,(function(t,n){var i=Object(g["isObject"])(t)?t:e[n]={name:t};"ordinal"===i.type&&null==o&&(o=n,a=p(i)),r[i.name]=[]}));var f=c.get(d)||c.set(d,{categoryWayDim:a,valueWayDim:0});function h(e,t,n){for(var r=0;rt)return e[r];return e[n-1]}function Zd(e,t,n,r,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=null!=a&&r?Xd(r,a):n;if(c=c||n,c&&c.length){var d=c[l];return i&&(u[i]=d),s.paletteIdx=(l+1)%c.length,d}}function Kd(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Jd,Qd,ef;"undefined"!==typeof console&&console.warn&&console.log;function tf(e){0}function nf(e){throw new Error(e)}var rf="\0_ec_inner",of=1;var af=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.init=function(e,t,n,r,i,o){r=r||{},this.option=null,this._theme=new Xu(r),this._locale=new Xu(i),this._optionManager=o},t.prototype.setOption=function(e,t,n){var r=df(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,df(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);0,this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(i,t)):ef(this,i),n=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var o=r.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,t))}if(!e||"recreate"===e||"media"===e){var a=r.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,r=this._componentsMap,i=this._componentsCount,o=[],a=Object(g["createHashMap"])(),s=t&&t.replaceMergeMainTypeMap;function l(t){var o=Vd(this,t,Ai(e[t])),a=r.get(t),l=a?s&&s.get(t)?"replaceMerge":"normalMerge":"replaceAll",u=Pi(a,o,l);Xi(u,t,bd),n[t]=null,r.set(t,null),i.set(t,0);var c,d=[],f=[],h=0;Object(g["each"])(u,(function(e,n){var r=e.existing,i=e.newOption;if(i){var o="series"===t,a=bd.getClass(t,e.keyInfo.subType,!o);if(!a)return;if("tooltip"===t){if(c)return void 0;c=!0}if(r&&r.constructor===a)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=Object(g["extend"])({componentIndex:n},e.keyInfo);r=new a(i,this,this,s),Object(g["extend"])(r,s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(d.push(r.option),f.push(r),h++):(d.push(void 0),f.push(void 0))}),this),n[t]=d,r.set(t,f),i.set(t,h),"series"===t&&Jd(this)}Yd(this),Object(g["each"])(e,(function(e,t){null!=e&&(bd.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){bd.hasClass(t)&&!a.get(t)&&(o.push(t),a.set(t,!0))})),bd.topologicalTravel(o,bd.getAllClassMainTypes(),l,this),this._seriesIndices||Jd(this)},t.prototype.getOption=function(){var e=Object(g["clone"])(this.option);return Object(g["each"])(e,(function(t,n){if(bd.hasClass(n)){for(var r=Ai(t),i=r.length,o=!1,a=i-1;a>=0;a--)r[a]&&!Ui(r[a])?o=!0:(r[a]=null,!o&&i--);r.length=i,e[n]=r}})),delete e[rf],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 r=n[t||0];if(r)return r;if(null==t)for(var i=0;i=t:"max"===n?e<=t:e===t}function kf(e,t){return e.join(",")===t.join(",")}var Sf=bf,Lf=g["each"],Tf=g["isObject"],Df=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Of(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Df.length;n=0;m--){var g=e[m];if(s||(f=g.data.rawIndexOf(g.stackedByDimension,d)),f>=0){var v=g.data.getByRawIndex(g.stackResultDimension,f);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&h>=0&&v>0||"samesign"===l&&h<=0&&v<0){h=fi(h,v),p=v;break}}}return r[0]=h,r[1]=p,r}))}))}var Jf,Qf,eh,th,nh,rh=function(){function e(e){this.data=e.data||(e.sourceFormat===Dd?{}:[]),this.sourceFormat=e.sourceFormat||Cd,this.seriesLayoutBy=e.seriesLayoutBy||Ad,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=h)}s[0]=l,s[1]=u}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""}))}},e.prototype.getRawValue=function(e,t){return Sh(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Dh(e){var t,n;return g["isObject"](e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Oh(e){return new Ch(e)}var Ch=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,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(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(r)),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 f=this._dueIndex,h=Math.min(null!=d?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(o||f1&&r>0?s:a}};return o;function a(){return t=e?null:ot},gte:function(e,t){return e>=t}},Ph=function(){function e(e,t){if(!Object(g["isNumber"])(t)){var n="";0,nf(n)}this._opFn=Yh[e],this._rvalFloat=Mi(t)}return e.prototype.evaluate=function(e){return Object(g["isNumber"])(e)?this._opFn(e,this._rvalFloat):this._opFn(Mi(e),this._rvalFloat)},e}(),Nh=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:Mi(e),r=Object(g["isNumber"])(t)?t:Mi(t),i=isNaN(n),o=isNaN(r);if(i&&(n=this._incomparable),o&&(r=this._incomparable),i&&o){var a=Object(g["isString"])(e),s=Object(g["isString"])(t);a&&(n=s?e:0),s&&(r=a?t:0)}return nr?-this._resultLT:0},e}(),Rh=function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=Mi(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=Mi(e)===this._rvalFloat)}return this._isEQ?t:!t},e}();function Hh(e,t){return"eq"===e||"ne"===e?new Rh("eq"===e,t):Object(g["hasOwn"])(Yh,e)?new Ph(e,t):null}var zh=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 Ih(e,t)},e}();function Fh(e,t){var n=new zh,r=e.data,i=n.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==Ad&&nf(a);var s=[],l={},u=e.dimensionsDefine;if(u)Object(g["each"])(u,(function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};if(s.push(r),null!=n){var i="";Object(g["hasOwn"])(l,n)&&nf(i),l[n]=r}}));else for(var c=0;c65535?Qh:ep}function op(){return[1/0,-1/0]}function ap(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function sp(e,t,n,r,i){var o=rp[n||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=s,{start:a,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=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)}}!r.persistent&&r.clean&&r.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;i=o-1}}return-1},e.prototype.indicesOfNearest=function(e,t,n){var r=this._chunks,i=r[e],o=[];if(!i)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=h,s=f,l=0),f===s&&(o[l++]=u))}return o.length=l,o},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i=c&&y<=d||isNaN(y))&&(s[l++]=p),p++}h=!0}else if(2===i){m=f[r[0]];var _=f[r[1]],b=e[r[1]][0],x=e[r[1]][1];for(v=0;v=c&&y<=d||isNaN(y))&&(w>=b&&w<=x||isNaN(w))&&(s[l++]=p),p++}h=!0}}if(!h)if(1===i)for(v=0;v=c&&y<=d||isNaN(y))&&(s[l++]=M)}else for(v=0;ve[L][1])&&(k=!1)}k&&(s[l++]=t.getRawIndex(v))}return lg[1]&&(g[1]=m)}}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,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),f=new(ip(this._rawCount))(Math.min(2*(Math.ceil(l/c)+2),l));f[u++]=d;for(var h=1;hn&&(n=r,i=_))}L>0&&La&&(p=a-u);for(var m=0;mh&&(h=v,f=u+m)}var y=this.getRawIndex(c),_=this.getRawIndex(f);cu-h&&(s=u-h,a.length=s);for(var p=0;pc[1]&&(c[1]=g),d[f++]=v}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,o=this.count();is&&(s=c)}return r=[a,s],this._extent[e]=r,r},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i=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,r){return Ih(e[r],this._dimensions[r])}Kh={arrayRows:e,objectRows:function(e,t,n,r){return Ih(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(null==e.value?e:e.value);return Ih(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),up=lp,cp=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,r=this._getUpstreamSourceManagers(),i=!!r.length;if(fp(n)){var o=n,a=void 0,s=void 0,l=void 0;if(i){var u=r[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)?Od:Sd,t=[];var c=this._getSourceMetaRawOption()||{},d=l&&l.metaRawOption||{},f=Object(g["retrieve2"])(c.seriesLayoutBy,d.seriesLayoutBy)||null,h=Object(g["retrieve2"])(c.sourceHeader,d.sourceHeader),p=Object(g["retrieve2"])(c.dimensions,d.dimensions),m=f!==d.seriesLayoutBy||!!h!==!!d.sourceHeader||p;e=m?[oh(a,{seriesLayoutBy:f,sourceHeader:h,dimensions:p},s)]:[]}else{var v=n;if(i){var y=this._applyTransform(r);e=y.sourceList,t=y.upstreamSignList}else{var _=v.get("source",!0);e=[oh(_,this._getSourceMetaRawOption(),null)],t=[]}}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(null!=i){var o="";1!==e.length&&hp(o)}var a=[],s=[];return Object(g["each"])(e,(function(e){e.prepareSource();var t=e.getSource(i||0),n="";null==i||t||hp(n),a.push(t),s.push(e._getVersionSign())})),r?t=qh(r,a,{datasetIndex:n.componentIndex}):null!=i&&(t=[sh(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=wp(e);n>=t&&(t=n+ +(r&&(!n||bp(e)&&!e.noHeader)))})),t}return 0}function Mp(e,t,n,r){var i=t.noHeader,o=Lp(wp(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 Nh(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,i){var s=t.valueFormatter,l=xp(n)(s?Object(g["extend"])(Object(g["extend"])({},e),{valueFormatter:s}):e,n,i>0?o.html:0,r);null!=l&&a.push(l)}));var d="richText"===e.renderMode?a.join(o.richText):Tp(r,a.join(""),i?n:o.html);if(i)return d;var f=qc(t.header,"ordinal",e.useUTC),h=gp(r,e.renderMode).nameStyle,p=mp(r);return"richText"===e.renderMode?Cp(e,f,h)+o.richText+d:Tp(r,'
'+se(f)+"
"+d,n)}function kp(e,t,n,r){var i=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 qc(e,Object(g["isArray"])(h)?h[t]:h,u)}))};if(!o||!a){var d=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=o?"":qc(l,"ordinal",u),h=t.valueType,p=a?[]:c(t.value,t.dataIndex),m=!s||!o,v=!s&&o,y=gp(r,i),_=y.nameStyle,b=y.valueStyle;return"richText"===i?(s?"":d)+(o?"":Cp(e,f,_))+(a?"":Ap(e,p,m,v,b)):Tp(r,(s?"":d)+(o?"":Dp(f,!s,_))+(a?"":Op(p,m,v,b)),n)}}function Sp(e,t,n,r,i,o){if(e){var a=xp(e),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Lp(e){return{html:vp[e],richText:yp[e]}}function Tp(e,t,n){var r='
',i="margin: "+n+"px 0 0",o=mp(e);return'
'+t+r+"
"}function Dp(e,t,n){var r=t?"margin-left:2px":"";return''+se(e)+""}function Op(e,t,n,r){var i=n?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Object(g["isArray"])(e)?e:[e],''+Object(g["map"])(e,(function(e){return se(e)})).join("  ")+""}function Cp(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function Ap(e,t,n,r,i){var o=[i],a=r?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 Ip(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return nd(r)}function jp(e,t){var n=e.get("padding");return null!=n?n:"richText"===t?[8,10]:10}var Ep=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Si()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r="richText"===n?this._generateStyleName():null,i=Qc({color:t,type:e,renderMode:n,markerId:r});return Object(g["isString"])(i)?i:(this.richTextStyles[r]=i.style,i.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 r=this._generateStyleName();return this.richTextStyles[r]=n,"{"+r+"|"+e+"}"},e}();function Yp(e){var t,n,r,i,o=e.series,a=e.dataIndex,s=e.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,d=o.getRawValue(a),f=Object(g["isArray"])(d),h=Ip(o,a);if(c>1||f&&!c){var p=Pp(d,o,a,u,h);t=p.inlineValues,n=p.inlineValueTypes,r=p.blocks,i=p.inlineValues[0]}else if(c){var m=l.getDimensionInfo(u[0]);i=t=Sh(l,a,u[0]),n=m.type}else i=t=f?d[0]:d;var v=$i(o),y=v&&o.name||"",_=l.getName(a),b=s?y:_;return _p("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[_p("nameValue",{markerType:"item",markerColor:h,name:b,noName:!Object(g["trim"])(b),value:t,valueType:n,dataIndex:a})].concat(r||[])})}function Pp(e,t,n,r,i){var o=t.getData(),a=Object(g["reduce"])(e,(function(e,t,n){var r=o.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&null!=r.displayName}),!1),s=[],l=[],u=[];function c(e,t){var n=o.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(a?u.push(_p("nameValue",{markerType:"subItem",markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),l.push(n.type)))}return r.length?Object(g["each"])(r,(function(e){c(Sh(o,n,e),e)})):Object(g["each"])(e,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}var Np=Qi();function Rp(e,t){return e.getName(t)||e.getId(t)}var Hp="__universalTransitionEnabled",zp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}return p(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Oh({count:Wp,reset:Vp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var r=Np(this).sourceManager=new cp(this);r.prepareSource();var i=this.getInitialData(e,n);$p(i,this),this.dataTask.context.data=i,Np(this).dataBeforeProcessed=i,Fp(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=hd(this),r=n?md(e):{},i=this.subType;bd.hasClass(i)&&(i+="Series"),g["merge"](e,t.getTheme().get(this.subType)),g["merge"](e,this.getDefaultOption()),Ii(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&pd(e,r,n)},t.prototype.mergeOption=function(e,t){e=g["merge"](this.option,e,!0),this.fillDataTextStyle(e.data);var n=hd(this);n&&pd(this.option,e,n);var r=Np(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);$p(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Np(this).dataBeforeProcessed=i,Fp(this),this._initSelectedMapFromData(i)},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 r=this.ecModel,i=Ud.prototype.getColorFromPalette.call(this,e,t,n);return i||(i=r.getColorFromPalette(e,t,n)),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if("series"===r||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return("all"===n||n[Rp(r,e)])&&!r.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Hp])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,o=i.selectedMode,a=t.length;if(o&&a)if("series"===o)i.selectedMap="all";else if("multiple"===o){g["isObject"](i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(e,t)}},t.registerClass=function(e){return bd.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}(bd);function Fp(e){var t=e.name;$i(e)||(e.name=Bp(e)||t)}function Bp(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return g["each"](n,(function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)})),r.join(" ")}function Wp(e){return e.model.getRawData().count()}function Vp(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Gp}function Gp(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function $p(e,t){g["each"](g["concatArray"](e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),(function(n){e.wrapMethod(n,g["curry"](Up,t))}))}function Up(e,t){var n=qp(e);return n&&n.setOutputEnd((t||this).count()),t}function qp(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}g["mixin"](zp,Th),g["mixin"](zp,Ud),bo(zp,bd);var Xp=zp,Zp=function(){function e(){this.group=new Hr,this.uid=Ku("viewComponent")}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();yo(Zp),So(Zp);var Kp=Zp;function Jp(){var e=Qi();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,o=!!n.progressiveRender,a=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return!(i===a&&o===s)&&"reset"}}var Qp=Fa.CMD,em=[[],[],[]],tm=Math.sqrt,nm=Math.atan2;function rm(e,t){if(t){var n,r,i,o,a,s,l=e.data,u=e.len(),c=Qp.M,d=Qp.C,f=Qp.L,h=Qp.R,p=Qp.A,m=Qp.Q;for(i=0,o=0;i1&&(a*=im(p),s*=im(p));var m=(i===o?-1:1)*im((a*a*(s*s)-a*a*(h*h)-s*s*(f*f))/(a*a*(h*h)+s*s*(f*f)))||0,g=m*a*h/s,v=m*-s*f/a,y=(e+n)/2+am(d)*g-om(d)*v,_=(t+r)/2+om(d)*g+am(d)*v,b=cm([1,0],[(f-g)/a,(h-v)/s]),x=[(f-g)/a,(h-v)/s],w=[(-1*f-g)/a,(-1*h-v)/s],M=cm(x,w);if(um(x,w)<=-1&&(M=sm),um(x,w)>=1&&(M=0),M<0){var k=Math.round(M/sm*1e6)/1e6;M=2*sm+k%2*sm}c.addData(u,y,_,a,s,b,M,d,o)}var fm=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,hm=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function pm(e){var t=new Fa;if(!e)return t;var n,r=0,i=0,o=r,a=i,s=Fa.CMD,l=e.match(fm);if(!l)return t;for(var u=0;uC*C+A*A&&(k=L,S=T),{cx:k,cy:S,x0:-c,y0:-d,x1:k*(i/x-1),y1:S*(i/x-1)}}function Fm(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 Bm(e,t){var n,r=Pm(t.r,0),i=Pm(t.r0||0,0),o=r>0,a=i>0;if(o||a){if(o||(r=i,i=0),i>r){var s=r;r=i,i=s}var l=t.startAngle,u=t.endAngle;if(!isNaN(l)&&!isNaN(u)){var c=t.cx,d=t.cy,f=!!t.clockwise,h=Em(u-l),p=h>Om&&h%Om;if(p>Rm&&(h=p),r>Rm)if(h>Om-Rm)e.moveTo(c+r*Am(l),d+r*Cm(l)),e.arc(c,d,r,l,u,!f),i>Rm&&(e.moveTo(c+i*Am(u),d+i*Cm(u)),e.arc(c,d,i,u,l,f));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,k=void 0,S=void 0,L=void 0,T=void 0,D=void 0,O=void 0,C=void 0,A=r*Am(l),I=r*Cm(l),j=i*Am(u),E=i*Cm(u),Y=h>Rm;if(Y){var P=t.cornerRadius;P&&(n=Fm(P),m=n[0],g=n[1],v=n[2],y=n[3]);var N=Em(r-i)/2;if(_=Nm(N,v),b=Nm(N,y),x=Nm(N,m),w=Nm(N,g),S=M=Pm(_,b),L=k=Pm(x,w),(M>Rm||k>Rm)&&(T=r*Am(u),D=r*Cm(u),O=i*Am(l),C=i*Cm(l),hRm){var G=Nm(v,S),$=Nm(y,S),U=zm(O,C,A,I,r,G,f),q=zm(T,D,j,E,r,$,f);e.moveTo(c+U.cx+U.x0,d+U.cy+U.y0),S0&&e.arc(c+U.cx,d+U.cy,G,jm(U.y0,U.x0),jm(U.y1,U.x1),!f),e.arc(c,d,r,jm(U.cy+U.y1,U.cx+U.x1),jm(q.cy+q.y1,q.cx+q.x1),!f),$>0&&e.arc(c+q.cx,d+q.cy,$,jm(q.y1,q.x1),jm(q.y0,q.x0),!f))}else e.moveTo(c+A,d+I),e.arc(c,d,r,l,u,!f);else e.moveTo(c+A,d+I);if(i>Rm&&Y)if(L>Rm){G=Nm(m,L),$=Nm(g,L),U=zm(j,E,T,D,i,-$,f),q=zm(A,I,O,C,i,-G,f);e.lineTo(c+U.cx+U.x0,d+U.cy+U.y0),L0&&e.arc(c+U.cx,d+U.cy,$,jm(U.y0,U.x0),jm(U.y1,U.x1),!f),e.arc(c,d,i,jm(U.cy+U.y1,U.cx+U.x1),jm(q.cy+q.y1,q.cx+q.x1),f),G>0&&e.arc(c+q.cx,d+q.cy,G,jm(q.y1,q.x1),jm(q.y0,q.x0),!f))}else e.lineTo(c+j,d+E),e.arc(c,d,i,u,l,f);else e.lineTo(c+j,d+E)}else e.moveTo(c,d);e.closePath()}}}var Wm=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}(),Vm=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype.getDefaultShape=function(){return new Wm},t.prototype.buildPath=function(e,t){Bm(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(hs);Vm.prototype.type="sector";var Gm=Vm,$m=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Um=function(e){function t(t){return e.call(this,t)||this}return y(t,e),t.prototype.getDefaultShape=function(){return new $m},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(hs);Um.prototype.type="ring";var qm=Um;function Xm(e,t,n,r){var i,o,a,s,l=[],u=[],c=[],d=[];if(r){a=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,h=e.length;f=2){if(r){var o=Xm(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(n?a:a-1);s++){var l=o[2*s],u=o[2*s+1],c=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);s=1;for(var d=i.length;skg[1]){if(a=!1,i)return a;var u=Math.abs(kg[0]-Mg[1]),c=Math.abs(Mg[0]-kg[1]);Math.min(u,c)>r.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Kg(e){return!e.isGroup}function Jg(e){return null!=e.shape}function Qg(e,t,n){if(e&&t){var r=i(e);t.traverse((function(e){if(Kg(e)&&e.anid){var t=r[e.anid];if(t){var i=o(e);e.attr(o(t)),fu(e,i,n,Xs(e).dataIndex)}}}))}function i(e){var t={};return e.traverse((function(e){Kg(e)&&e.anid&&(t[e.anid]=e)})),t}function o(e){var t={x:e.x,y:e.y,rotation:e.rotation};return Jg(e)&&(t.shape=Object(g["extend"])({},e.shape)),t}}function ev(e,t){return Object(g["map"])(e,(function(e){var n=e[0];n=Ig(n,t.x),n=jg(n,t.x+t.width);var r=e[1];return r=Ig(r,t.y),r=jg(r,t.y+t.height),[n,r]}))}function tv(e,t){var n=Ig(e.x,t.x),r=jg(e.x+e.width,t.x+t.width),i=Ig(e.y,t.y),o=jg(e.y+e.height,t.y+t.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function nv(e,t,n){var r=Object(g["extend"])({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return 0===e.indexOf("image://")?(i.image=e.slice(8),Object(g["defaults"])(i,n),new xs(r)):zg(e.replace("path://",""),r,n,"center")}function rv(e,t,n,r,i){for(var o=0,a=i[i.length-1];o1)return!1;var g=ov(h,p,c,d)/f;return!(g<0||g>1)}function ov(e,t,n,r){return e*r-n*t}function av(e){return e<=1e-6&&e>=-1e-6}function sv(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=Object(g["isString"])(t)?{formatter:t}:t,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$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=Xs(e.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Object(g["defaults"])({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function lv(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function uv(e,t){if(e)if(Object(g["isArray"])(e))for(var n=0;n=0?d():c=setTimeout(d,-i),l=r};return f.clear=function(){c&&(clearTimeout(c),c=null)},f.debounceNextCall=function(e){s=e},f}function Mv(e,t,n,r){var i=e[t];if(i){var o=i[_v]||i,a=i[xv],s=i[bv];if(s!==n||a!==r){if(null==n||!r)return e[t]=o;i=e[t]=wv(o,n,"debounce"===r),i[_v]=o,i[xv]=r,i[bv]=n}return i}}function kv(e,t){var n=e[t];n&&n[_v]&&(n.clear&&n.clear(),e[t]=n[_v])}var Sv=Qi(),Lv={itemStyle:Lo(Gu,!0),lineStyle:Lo(Bu,!0)},Tv={lineStyle:"stroke",itemStyle:"fill"};function Dv(e,t){var n=e.visualStyleMapper||Lv[t];return n||(console.warn("Unknown style type '"+t+"'."),Lv.itemStyle)}function Ov(e,t){var n=e.visualDrawType||Tv[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Cv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=e.getModel(r),o=Dv(e,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Ov(e,r),u=a[l],c=Object(g["isFunction"])(u)?u:null,d="auto"===a.fill||"auto"===a.stroke;if(!a[l]||c||d){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=f,n.setVisual("colorFromPalette",!0)),a.fill="auto"===a.fill||Object(g["isFunction"])(a.fill)?f:a.fill,a.stroke="auto"===a.stroke||Object(g["isFunction"])(a.stroke)?f: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 r=e.getDataParams(n),i=Object(g["extend"])({},a);i[l]=c(r),t.setItemVisual(n,"style",i)}}}},Av=new Xu,Iv={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData&&!t.isSeriesFiltered(e)){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",i=Dv(e,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Av.option=n[r];var a=i(Av),s=e.ensureUniqueItemVisual(t,"style");Object(g["extend"])(s,a),Av.option.decal&&(e.setItemVisual(t,"decal",Av.option.decal),Av.option.decal.dirty=!0),o in a&&e.setItemVisual(t,"colorFromPalette",!1)}}:null}}}},jv={performRawSeries:!0,overallReset:function(e){var t=Object(g["createHashMap"])();e.eachSeries((function(e){var n=e.getColorBy();if(!e.isColorBySeries()){var r=e.type+"-"+n,i=t.get(r);i||(i={},t.set(r,i)),Sv(e).scope=i}})),e.eachSeries((function(t){if(!t.isColorBySeries()&&!e.isSeriesFiltered(t)){var n=t.getRawData(),r={},i=t.getData(),o=Sv(t).scope,a=t.visualStyleAccessPath||"itemStyle",s=Ov(t,a);i.each((function(e){var t=i.getRawIndex(e);r[t]=e})),n.each((function(e){var a=r[e],l=i.getItemVisual(a,"colorFromPalette");if(l){var u=i.ensureUniqueItemVisual(a,"style"),c=n.getName(e)||e+"",d=n.count();u[s]=t.getColorFromPalette(c,o,d)}}))}}))}},Ev=Math.PI;function Yv(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 Hr,r=new Cs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,o=new qs({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 Cs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return n.add(a),t.showSpinner&&(i=new pg({shape:{startAngle:-Ev/2,endAngle:-Ev/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:3*Ev/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*Ev/2}).delay(300).start("circularInOut"),n.add(i)),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&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var Pv=function(){function e(e,t,n,r){this._stageTaskMap=Object(g["createHashMap"])(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}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),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex,o=i?n.step:null,a=r&&r.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),r=e.getData(),i=r.count(),o=n.progressiveEnabled&&t.incrementalPrepareRender&&i>=n.threshold,a=e.get("large")&&i>=e.get("largeThreshold"),s="mod"===e.get("progressiveChunkMode")?i: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 r=e.getProgressive(),i=e.uid;n.set(i,{id:i,head:null,tail:null,threshold:e.getProgressiveThreshold(),progressiveEnabled:r&&!(e.preventIncremental&&e.preventIncremental()),blockIndex:-1,step:Math.round(r||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(r){var i=e.get(r.uid)||e.set(r.uid,{}),o="";Object(g["assert"])(!(r.reset&&r.overallReset),o),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)}),this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,o=i.context;o.model=t,o.ecModel=n,o.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},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,r){r=r||{};var i=!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(!r.visualType||r.visualType===e.visualType){var l=o._stageTaskMap.get(e.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var d,f=c.agentStubMap;f.each((function(e){a(r,e)&&(e.dirty(),d=!0)})),d&&c.dirty(),o.updatePayload(c,n);var h=o.getPerformArgs(c,r.block);f.each((function(e){e.perform(h)})),c.perform(h)&&(i=!0)}else u&&u.each((function(s,l){a(r,s)&&s.dirty();var u=o.getPerformArgs(s,r.block);u.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||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,r){var i=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)||Oh({plan:Fv,reset:Bv,count:Gv}));l.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,l)}e.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,r).each(u)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,o=t.overallTask=t.overallTask||Oh({reset:Nv});o.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var a=o.agentStubMap,s=o.agentStubMap=Object(g["createHashMap"])(),l=e.seriesType,u=e.getTargetSeries,c=!0,d=!1,f="";function h(e){var t=e.uid,n=s.set(t,a&&a.get(t)||(d=!0,Oh({reset:Rv,onDirty:zv})));n.context={model:e,overallProgress:c},n.agent=o,n.__block=c,i._pipe(e,n)}Object(g["assert"])(!e.createOnAllSeries,f),l?n.eachRawSeriesByType(l,h):u?u(n,r).each(h):(c=!1,Object(g["each"])(n.getSeries(),h)),d&&o.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return Object(g["isFunction"])(e)&&(e={overallReset:e,seriesType:$v(e)}),e.uid=Ku("stageHandler"),t&&(e.visualType=t),e},e}();function Nv(e){e.overallReset(e.ecModel,e.api,e.payload)}function Rv(e){return e.overallProgress&&Hv}function Hv(){this.agent.dirty(),this.getDownstream().dirty()}function zv(){this.agent&&this.agent.dirty()}function Fv(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function Bv(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ai(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Object(g["map"])(t,(function(e,t){return Vv(t)})):Wv}var Wv=Vv(0);function Vv(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o0&&c===i.length-u.length){var d=i.slice(0,c);"data"!==d&&(t.mainType=d,t[u.toLowerCase()]=e,s=!0)}}a.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)}))}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=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,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(e,t.otherQuery,r,i));function u(e,t,n,r){return null==e[n]||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),sy=["symbol","symbolSize","symbolRotate","symbolOffset"],ly=sy.concat(["symbolKeepAspect"]),uy={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),e.hasSymbolVisual){for(var r={},i={},o=!1,a=0;a=0&&Ey(l)?l:.5;var u=e.createRadialGradient(a,s,0,a,s,l);return u}function Ny(e,t,n){for(var r="radial"===t.type?Py(e,t,n):Yy(e,t,n),i=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 By(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&Fy(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&1!==i&&(n=Object(g["map"])(n,(function(e){return e/i})),r/=i)}return[n,r]}var Wy=new Fa(!0);function Vy(e){var t=e.stroke;return!(null==t||"none"===t||!(e.lineWidth>0))}function Gy(e){return"string"===typeof e&&"none"!==e}function $y(e){var t=e.fill;return null!=t&&"none"!==t}function Uy(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 qy(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 Xy(e,t,n){var r=Io(t.image,t.__image,n);if(Eo(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*g["RADIAN_TO_DEGREE"]),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function Zy(e,t,n,r){var i,o=Vy(n),a=$y(n),s=n.strokePercent,l=s<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var c=t.path||Wy,d=t.__dirty;if(!r){var f=n.fill,h=n.stroke,p=a&&!!f.colorStops,m=o&&!!h.colorStops,g=a&&!!f.image,v=o&&!!h.image,y=void 0,_=void 0,b=void 0,x=void 0,w=void 0;(p||m)&&(w=t.getBoundingRect()),p&&(y=d?Ny(e,f,w):t.__canvasFillGradient,t.__canvasFillGradient=y),m&&(_=d?Ny(e,h,w):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(b=d||!t.__canvasFillPattern?Xy(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=b),v&&(x=d||!t.__canvasStrokePattern?Xy(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=b),p?e.fillStyle=y:g&&(b?e.fillStyle=b:a=!1),m?e.strokeStyle=_:v&&(x?e.strokeStyle=x:o=!1)}var M,k,S=t.getGlobalScale();c.setScale(S[0],S[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=By(t),M=i[0],k=i[1]);var L=!0;(u||d&mt)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),L=!1),c.reset(),t.buildPath(c,t.shape,r),c.toStatic(),t.pathUpdated()),L&&c.rebuildPath(e,l?s:1),M&&(e.setLineDash(M),e.lineDashOffset=k),r||(n.strokeFirst?(o&&qy(e,n),a&&Uy(e,n)):(a&&Uy(e,n),o&&qy(e,n))),M&&e.setLineDash([])}function Ky(e,t,n){var r=t.__image=Io(n.image,t.__image,t,t.onload);if(r&&Eo(r)){var i=n.x||0,o=n.y||0,a=t.getWidth(),s=t.getHeight(),l=r.width/r.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=r.width,s=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,c=n.sy||0;e.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){u=n.sx,c=n.sy;var d=a-u,f=s-c;e.drawImage(r,u,c,d,f,i,o,a,s)}else e.drawImage(r,i,o,a,s)}}function Jy(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||pr["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=By(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(Vy(n)&&e.strokeText(i,n.x,n.y),$y(n)&&e.fillText(i,n.x,n.y)):($y(n)&&e.fillText(i,n.x,n.y),Vy(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var Qy=["shadowBlur","shadowOffsetX","shadowOffsetY"],e_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function t_(e,t,n,r,i){var o=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){f_(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?Jo.opacity:a}(r||t.blend!==n.blend)&&(o||(f_(e,i),o=!0),e.globalCompositeOperation=t.blend||Jo.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[K_])if(this._disposed)Ab(this.id);else{var r,i,o;if(Object(g["isObject"])(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,o=t.transition,t=t.notMerge),this[K_]=!0,!this._model||t){var a=new Sf(this._api),s=this._theme,l=this._model=new ff;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(e,{replaceMerge:i},Yb);var u={seriesTransition:o,optionChanged:!0};if(n)this[J_]={silent:r,updateParams:u},this[K_]=!1,this.getZr().wakeUp();else{try{lb(this),db.update.call(this,null,u)}catch(c){throw this[J_]=null,this[K_]=!1,c}this._ssr||this._zr.flush(),this[J_]=null,this[K_]=!1,mb.call(this,r),gb.call(this,r)}}},t.prototype.setTheme=function(){tf("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||m["a"].hasGlobalWindow&&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,r=[],i=this;Object(g["each"])(t,(function(e){n.eachComponent({mainType:e},(function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return Object(g["each"])(r,(function(e){e.group.ignore=!1})),o}Ab(this.id)},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t="svg"===e.type,n=this.group,r=Math.min,i=Math.max,o=1/0;if(zb[n]){var a=o,s=o,l=-o,u=-o,c=[],d=e&&e.pixelRatio||this.getDevicePixelRatio();Object(g["each"])(Hb,(function(o,d){if(o.group===n){var f=t?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas(Object(g["clone"])(e)),h=o.getDom().getBoundingClientRect();a=r(h.left,a),s=r(h.top,s),l=i(h.right,l),u=i(h.bottom,u),c.push({dom:f,left:h.left,top:h.top})}})),a*=d,s*=d,l*=d,u*=d;var f=l-a,h=u-s,p=pr["d"].createCanvas(),m=$r(p,{renderer:t?"svg":"canvas"});if(m.resize({width:f,height:h}),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 Cs({shape:{x:0,y:0,width:f,height:h},style:{fill:e.connectedBackgroundColor}})),Object(g["each"])(c,(function(e){var t=new xs({style:{x:e.left*d-a,y:e.top*d-s,image:e.dom}});m.add(t)})),m.refreshImmediately(),p.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}Ab(this.id)},t.prototype.convertToPixel=function(e,t){return fb(this,"convertToPixel",e,t)},t.prototype.convertFromPixel=function(e,t){return fb(this,"convertFromPixel",e,t)},t.prototype.containPixel=function(e,t){if(!this._disposed){var n,r=this._model,i=to(r,e);return Object(g["each"])(i,(function(e,r){r.indexOf("Models")>=0&&Object(g["each"])(e,(function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n=n||!!i.containPoint(t);else if("seriesModels"===r){var o=this._chartsMap[e.__viewId];o&&o.containPoint&&(n=n||o.containPoint(t,e))}else 0}),this)}),this),!!n}Ab(this.id)},t.prototype.getVisual=function(e,t){var n=this._model,r=to(n,e,{defaultMainType:"series"}),i=r.seriesModel;var o=i.getData(),a=r.hasOwnProperty("dataIndexInside")?r.dataIndexInside:r.hasOwnProperty("dataIndex")?o.indexOfRawIndex(r.dataIndex):null;return null!=a?dy(o,a,t):fy(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 r,i=e.getModel(),o=n.target,a="globalout"===t;if(a?r={}:o&&vy(o,(function(e){var t=Xs(e);if(t&&null!=t.dataIndex){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,o)||{},!0}if(t.eventData)return r=Object(g["extend"])({},t.eventData),!0}),!0),r){var s=r.componentType,l=r.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",l=r.seriesIndex);var u=s&&null!=l&&i.getComponent(s,l),c=u&&e["series"===u.mainType?"_chartsMap":"_componentsMap"][u.__viewId];0,r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:o,packedEvent:r,model:u,view:c},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)})),Object(g["each"])(jb,(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)})),gy(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?Ab(this.id):this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)Ab(this.id);else{this._disposed=!0;var e=this.getDom();e&&ao(this.getDom(),Wb,"");var t=this,n=t._api,r=t._model;Object(g["each"])(t._componentsViews,(function(e){e.dispose(r,n)})),Object(g["each"])(t._chartsViews,(function(e){e.dispose(r,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 Hb[t.id]}},t.prototype.resize=function(e){if(!this[K_])if(this._disposed)Ab(this.id);else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption("media"),r=e&&e.silent;this[J_]&&(null==r&&(r=this[J_].silent),n=!0,this[J_]=null),this[K_]=!0;try{n&&lb(this),db.update.call(this,{type:"resize",animation:Object(g["extend"])({duration:0},e&&e.animation)})}catch(i){throw this[K_]=!1,i}this[K_]=!1,mb.call(this,r),gb.call(this,r)}}},t.prototype.showLoading=function(e,t){if(this._disposed)Ab(this.id);else if(Object(g["isObject"])(e)&&(t=e,e=""),e=e||"default",this.hideLoading(),Rb[e]){var n=Rb[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?Ab(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=jb[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)Ab(this.id);else if(Object(g["isObject"])(t)||(t={silent:!!t}),Ib[e.type]&&this._model)if(this[K_])this._pendingActions.push(e);else{var n=t.silent;pb.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&m["a"].browser.weChat&&this._throttledZrFlush(),mb.call(this,n),gb.call(this,n)}},t.prototype.updateLabelLayout=function(){D_.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)Ab(this.id);else{var t=e.seriesIndex,n=this.getModel(),r=n.getSeriesByIndex(t);0,r.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=[],r=!1;if(e.eachComponent((function(e,i){var o=i.get("zlevel")||0,a=i.get("z")||0,s=i.getZLevelKey();r=r||!!s,("series"===e?n:t).push({zlevel:o,z:a,idx:i.componentIndex,type:e,key:s})})),r){var i,o,a=t.concat(n);ft(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),r=t.zlevel,a=t.key;null!=i&&(r=Math.max(i,r)),a?(r===i&&a!==o&&r++,o=a):o&&(r===i&&r++,o=""),i=r,n.setZLevel(r)}))}}function n(e){for(var t=[],n=e.currentStates,r=0;rt.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 i(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,r=e.get("zlevel")||0;t.eachRendered((function(e){return a(e,n,r,-1/0),!0}))}}function a(e,t,n,r){var i=e.getTextContent(),o=e.getTextGuideLine(),s=e.isGroup;if(s)for(var l=e.childrenRef(),u=0;u0?{duration:o,delay:r.get("delay"),easing:r.get("easing")}:null;t.eachRendered((function(e){if(e.states&&e.states.emphasis){if(pu(e))return;if(e instanceof hs&&lu(e),e.__dirty){var t=e.prevStates;t&&e.useStates(t)}if(i){e.stateTransition=a;var r=e.getTextContent(),o=e.getTextGuideLine();r&&(r.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&n(e)}}))}lb=function(e){var t=e._scheduler;t.restorePipelines(e._model),t.prepareStageTasks(),ub(e,!0),ub(e,!1),t.plan()},ub=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,o=t?e._componentsMap:e._chartsMap,a=e._zr,s=e._api,l=0;l=0)){lx.push(n);var o=Kv.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function cx(e,t){Rb[e]=t}function dx(e){Object(pr["e"])({createCanvas:e})}function fx(e,t,n){var r=A_("registerMap");r&&r(e,t,n)}function hx(e){var t=A_("getMap");return t&&t(e)}var px=Uh;sx(B_,Cv),sx(G_,Iv),sx(G_,jv),sx(B_,uy),sx(G_,cy),sx(X_,L_),Jb(Xf),Qb(P_,Zf),cx("default",Yv),rx({type:ll,event:ll,update:ll},g["noop"]),rx({type:ul,event:ul,update:ul},g["noop"]),rx({type:cl,event:cl,update:cl},g["noop"]),rx({type:dl,event:dl,update:dl},g["noop"]),rx({type:fl,event:fl,update:fl},g["noop"]),Kb("light",Qv),Kb("dark",oy);var mx={},gx=[],vx={registerPreprocessor:Jb,registerProcessor:Qb,registerPostInit:ex,registerPostUpdate:tx,registerUpdateLifecycle:nx,registerAction:rx,registerCoordinateSystem:ix,registerLayout:ax,registerVisual:sx,registerTransform:px,registerLoading:cx,registerMap:fx,registerImpl:C_,PRIORITY:Z_,ComponentModel:bd,ComponentView:Kp,SeriesModel:Xp,ChartView:yv,registerComponentModel:function(e){bd.registerClass(e)},registerComponentView:function(e){Kp.registerClass(e)},registerSeriesModel:function(e){Xp.registerClass(e)},registerChartView:function(e){yv.registerClass(e)},registerSubTypeDefaulter:function(e,t){bd.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Zr(e,t)}};function yx(e){Object(g["isArray"])(e)?Object(g["each"])(e,(function(e){yx(e)})):Object(g["indexOf"])(gx,e)>=0||(gx.push(e),Object(g["isFunction"])(e)&&(e={install:e}),e.install(vx))}function _x(e){return null==e?0:e.length||1}function bx(e){return e}var xx=function(){function e(e,t,n,r,i,o){this._old=e,this._new=t,this._oldKeyGetter=n||bx,this._newKeyGetter=r||bx,this.context=i,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={},r=new Array(e.length),i=new Array(t.length);this._initIndexMap(e,null,r,"_oldKeyGetter"),this._initIndexMap(t,n,i,"_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(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],o=[];this._initIndexMap(e,n,i,"_oldKeyGetter"),this._initIndexMap(t,r,o,"_newKeyGetter");for(var a=0;a1&&1===d)this._updateManyToOne&&this._updateManyToOne(u,l),r[s]=null;else if(1===c&&d>1)this._updateOneToMany&&this._updateOneToMany(u,l),r[s]=null;else if(1===c&&1===d)this._update&&this._update(u,l),r[s]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(u,l),r[s]=null;else if(c>1)for(var f=0;f1)for(var a=0;a30}var Nx,Rx,Hx,zx,Fx,Bx,Wx,Vx=g["isObject"],Gx=g["map"],$x="undefined"===typeof Int32Array?Array:Int32Array,Ux="e\0\0",qx=-1,Xx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Zx=["_approximateExtent"],Kx=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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r=!1;jx(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n=n||["x","y"];for(var i={},o=[],a={},s=!1,l={},u=0;u=t)){var n=this._store,r=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,a=r.getSource().sourceFormat,s=a===Sd;if(s&&!r.pure)for(var l=[],u=e;u0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||(r=n[e]={});var i=r[t];return null==i&&(i=this.getVisual(t),g["isArray"](i)?i=i.slice():Vx(i)&&(i=g["extend"]({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,Vx(t)?g["extend"](r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){Vx(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;Zs(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,r){n&&e&&e.call(t,n,r)}))},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Gx(this.dimensions,this._getDimInfo,this),this.hostModel)),Fx(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(){Nx=function(e){var t=e._invertedIndicesMap;g["each"](t,(function(n,r){var i=e._dimInfos[r],o=i.ordinalMeta,a=e._store;if(o){n=t[r]=new $x(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),r[t]=s}}}(),e}(),Jx=Kx;function Qx(e,t){return ew(e,t).dimensions}function ew(e,t){ih(e)||(e=ah(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=Object(g["createHashMap"])(),o=[],a=nw(e,n,r,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Px(a),l=r===e.dimensionsDefine,u=l?Yx(e):Ex(r),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,a));for(var d=Object(g["createHashMap"])(c),f=new tp(a),h=0;h0&&(r.name=i+(o-1)),o++,t.set(i,o)}}function nw(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Object(g["each"])(t,(function(e){var t;Object(g["isObject"])(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))})),i}function rw(e,t,n){if(n||t.hasKey(e)){var r=0;while(t.hasKey(e+r))r++;e+=r}return t.set(e,!0),e}var iw=function(){function e(e){this.coordSysDims=[],this.axisMap=Object(g["createHashMap"])(),this.categoryAxisMap=Object(g["createHashMap"])(),this.coordSysName=e}return e}();function ow(e){var t=e.get("coordinateSystem"),n=new iw(t),r=aw[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var aw={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents("xAxis",ro).models[0],o=e.getReferringComponents("yAxis",ro).models[0];t.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),sw(i)&&(r.set("x",i),t.firstCategoryDimIndex=0),sw(o)&&(r.set("y",o),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var i=e.getReferringComponents("singleAxis",ro).models[0];t.coordSysDims=["single"],n.set("single",i),sw(i)&&(r.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents("polar",ro).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),sw(o)&&(r.set("radius",o),t.firstCategoryDimIndex=0),sw(a)&&(r.set("angle",a),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();Object(g["each"])(o.parallelAxisIndex,(function(e,o){var s=i.getComponent("parallelAxis",e),l=a[o];n.set(l,s),sw(s)&&(r.set(l,s),null==t.firstCategoryDimIndex&&(t.firstCategoryDimIndex=o))}))}};function sw(e){return"category"===e.get("type")}function lw(e,t,n){n=n||{};var r,i,o,a=n.byIndex,s=n.stackedCoordDimension;uw(t)?r=t:(i=t.schema,r=i.dimensions,o=t.store);var l,u,c,d,f=!(!e||!e.get("stack"));if(Object(g["each"])(r,(function(e,t){Object(g["isString"])(e)&&(r[t]=e={name:e}),f&&!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 h=u.coordDim,p=u.type,m=0;Object(g["each"])(r,(function(e){e.coordDim===h&&m++}));var v={name:c,coordDim:h,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(o&&(v.storeDimIndex=o.ensureCalculationDimension(d,p),y.storeDimIndex=o.ensureCalculationDimension(c,p)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:d,stackResultDimension:c}}function uw(e){return!jx(e.schema)}function cw(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function dw(e,t){return cw(e,t)?e.getCalculationInfo("stackResultDimension"):t}function fw(e,t){var n,r=e.get("coordinateSystem"),i=yf.get(r);return t&&t.coordSysDims&&(n=g["map"](t.coordSysDims,(function(e){var n={name:e},r=t.axisMap.get(e);if(r){var i=r.get("type");n.type=Lx(i)}return n}))),n||(n=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),n}function hw(e,t,n){var r,i;return n&&g["each"](e,(function(e,o){var a=e.coordDim,s=n.categoryAxisMap.get(a);s&&(null==r&&(r=o),e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),null!=e.otherDims.itemName&&(i=!0)})),i||null==r||(e[r].otherDims.itemName=0),r}function pw(e,t,n){n=n||{};var r,i=t.getSourceManager(),o=!1;e?(o=!0,r=ah(e)):(r=i.getSource(),o=r.sourceFormat===Sd);var a=ow(t),s=fw(t,a),l=n.useEncodeDefaulter,u=g["isFunction"](l)?l:l?g["curry"](Pd,s,t):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},d=ew(r,c),f=hw(d.dimensions,n.createInvertedIndices,a),h=o?null:i.getSharedDataStore(d),p=lw(t,{schema:d,store:h}),m=new Jx(d,t);m.setCalculationInfo(p);var v=null!=f&&mw(r)?function(e,t,n,r){return r===f?n:this.defaultDimValueGetter(e,t,n,r)}:null;return m.hasItemOption=!1,m.initData(o?r:h,null,v),m}function mw(e){if(e.sourceFormat===Sd){var t=gw(e.data||[]);return!g["isArray"](Ei(t))}}function gw(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}();So(yw);var _w=yw,bw=0,xw=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++bw}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&Object(g["map"])(r,ww);return new e({categories:i,needCollect:!i,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 r=this._getOrCreateMap();return t=r.get(e),null==t&&(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||(this._map=Object(g["createHashMap"])(this.categories))},e}();function ww(e){return Object(g["isObject"])(e)&&null!=e.value?e.value:e+""}var Mw=xw;function kw(e){return"interval"===e.type||"log"===e.type}function Sw(e,t,n,r){var i={},o=e[1]-e[0],a=i.interval=bi(o/t,!0);null!=n&&ar&&(a=i.interval=r);var s=i.intervalPrecision=Tw(a),l=i.niceTickExtent=[oi(Math.ceil(e[0]/a)*a,s),oi(Math.floor(e[1]/a)*a,s)];return Ow(l,e),i}function Lw(e){var t=Math.pow(10,_i(e)),n=e/t;return n?2===n?n=3:3===n?n=5:n*=2:n=1,oi(n*t)}function Tw(e){return si(e)+2}function Dw(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function Ow(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Dw(e,0,t),Dw(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Cw(e,t){return e>=t[0]&&e<=t[1]}function Aw(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Iw(e,t){return e*(t[1]-t[0])+t[0]}var jw=function(e){function t(t){var n=e.call(this,t)||this;n.type="ordinal";var r=n.getSetting("ordinalMeta");return r||(r=new Mw({})),Object(g["isArray"])(r)&&(r=new Mw({categories:Object(g["map"])(r,(function(e){return Object(g["isObject"])(e)?e.value:e}))})),n._ordinalMeta=r,n._extent=n.getSetting("extent")||[0,r.categories.length-1],n}return p(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)),Aw(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(Iw(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=[],r=this._ticksByOrdinalNumber=[],i=0,o=this._ordinalMeta.categories.length,a=Math.min(o,t.length);i=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(_w);_w.registerClass(jw);var Ew=jw,Yw=oi,Pw=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 p(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 Aw(e,this._extent)},t.prototype.scale=function(e){return Iw(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=Tw(e)},t.prototype.getTicks=function(e){var t=this._interval,n=this._extent,r=this._niceExtent,i=this._intervalPrecision,o=[];if(!t)return o;var a=1e4;n[0]a)return[]}var l=o.length?o[o.length-1].value:r[1];return n[1]>l&&(e?o.push({value:Yw(l+t,i)}):o.push({value:n[1]})),o},t.prototype.getMinorTicks=function(e){for(var t=this.getTicks(!0),n=[],r=this.getExtent(),i=1;ir[0]&&d0&&(o=null===o?s:Math.min(o,s))}n[r]=o}}return n}function Uw(e){var t=$w(e),n=[];return Object(g["each"])(e,(function(e){var r,i=e.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent();if("category"===o.type)r=o.getBandWidth();else if("value"===o.type||"time"===o.type){var s=o.dim+"_"+o.index,l=t[s],u=Math.abs(a[1]-a[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);r=l?u/d*l:u}else{var f=e.getData();r=Math.abs(a[1]-a[0])/f.count()}var h=ii(e.get("barWidth"),r),p=ii(e.get("barMaxWidth"),r),m=ii(e.get("barMinWidth")||(Qw(e)?.5:1),r),g=e.get("barGap"),v=e.get("barCategoryGap");n.push({bandWidth:r,barWidth:h,barMaxWidth:p,barMinWidth:m,barGap:g,barCategoryGap:v,axisKey:Ww(o),stackId:Bw(e)})})),qw(n)}function qw(e){var t={};Object(g["each"])(e,(function(e,n){var r=e.axisKey,i=e.bandWidth,o=t[r]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;t[r]=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 f=e.barCategoryGap;null!=f&&(o.categoryGap=f)}));var n={};return Object(g["each"])(t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=e.categoryGap;if(null==o){var a=Object(g["keys"])(r).length;o=Math.max(35-4*a,15)+"%"}var s=ii(o,i),l=ii(e.gap,1),u=e.remainedWidth,c=e.autoWidthCount,d=(u-s)/(c+(c-1)*l);d=Math.max(d,0),Object(g["each"])(r,(function(e){var t=e.maxWidth,n=e.minWidth;if(e.width){r=e.width;t&&(r=Math.min(r,t)),n&&(r=Math.max(r,n)),e.width=r,u-=r+l*r,c--}else{var r=d;t&&tr&&(r=n),r!==d&&(e.width=r,u-=r+l*r,c--)}})),d=(u-s)/(c+(c-1)*l),d=Math.max(d,0);var f,h=0;Object(g["each"])(r,(function(e,t){e.width||(e.width=d),f=e,h+=e.width*(1+l)})),f&&(h-=f.width*l);var p=-h/2;Object(g["each"])(r,(function(e,r){n[t][r]=n[t][r]||{bandWidth:i,offset:p,width:e.width},p+=e.width*(1+l)}))})),n}function Xw(e,t,n){if(e&&t){var r=e[Ww(t)];return null!=r&&null!=n?r[Bw(n)]:r}}function Zw(e,t){var n=Gw(e,t),r=Uw(n);Object(g["each"])(n,(function(e){var t=e.getData(),n=e.coordinateSystem,i=n.getBaseAxis(),o=Bw(e),a=r[Ww(i)][o],s=a.offset,l=a.width;t.setLayout({bandWidth:a.bandWidth,offset:s,size:l})}))}function Kw(e){return{seriesType:e,plan:Jp(),reset:function(e){if(Jw(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),o=t.getDimensionIndex(t.mapDimension(i.dim)),a=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get("showBackground",!0),l=t.mapDimension(i.dim),u=t.getCalculationInfo("stackResultDimension"),c=cw(t,l)&&!!t.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),f=eM(r,i),h=Qw(e),p=e.get("barMinHeight")||0,m=u&&t.getDimensionIndex(u),g=t.getLayout("size"),v=t.getLayout("offset");return{progress:function(e,t){var r,i=e.count,l=h&&zw(3*i),u=h&&s&&zw(3*i),y=h&&zw(i),_=n.master.getRect(),b=d?_.width:_.height,x=t.getStore(),w=0;while(null!=(r=e.next())){var M=x.get(c?m:o,r),k=x.get(a,r),S=f,L=void 0;c&&(L=+M-x.get(o,r));var T=void 0,D=void 0,O=void 0,C=void 0;if(d){var A=n.dataToPoint([M,k]);if(c){var I=n.dataToPoint([L,k]);S=I[0]}T=S,D=A[1]+v,O=A[0]-S,C=g,Math.abs(O)0?n:1:n))}var tM=function(e,t,n,r){while(n>>1;e[i][1]n&&(this._approxInterval=n);var o=rM.length,a=Math.min(tM(rM,this._approxInterval,0,o),o-1);this._interval=rM[a][1],this._minLevelUnit=rM[Math.max(a-1,0)][0]},t.prototype.parse=function(e){return Object(g["isNumber"])(e)?e:+vi(e)},t.prototype.contain=function(e){return Cw(this.parse(e),this._extent)},t.prototype.normalize=function(e){return Aw(this.parse(e),this._extent)},t.prototype.scale=function(e){return Iw(e,this._extent)},t.type="time",t}(Nw),rM=[["second",hc],["minute",pc],["hour",mc],["quarter-day",6*mc],["half-day",12*mc],["day",1.2*gc],["half-week",3.5*gc],["week",7*gc],["month",31*gc],["quarter",95*gc],["half-year",vc/2],["year",vc]];function iM(e,t,n,r){var i=vi(t),o=vi(n),a=function(e){return Cc(i,e,r)===Cc(o,e,r)},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")},f=function(){return d()&&a("second")},h=function(){return f()&&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 f();case"millisecond":return h()}}function oM(e,t){return e/=gc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function aM(e){var t=30*gc;return e/=t,e>6?6:e>3?3:e>2?2:1}function sM(e){return e/=mc,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function lM(e,t){return e/=t?pc:hc,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function uM(e){return bi(e,!0)}function cM(e,t,n){var r=new Date(e);switch(kc(t)){case"year":case"month":r[Hc(n)](0);case"day":r[zc(n)](1);case"hour":r[Fc(n)](0);case"minute":r[Bc(n)](0);case"second":r[Wc(n)](0),r[Vc(n)](0)}return r.getTime()}function dM(e,t,n,r){var i=1e4,o=wc,a=0;function s(e,t,n,i,o,a,s){var l=new Date(t),u=t,c=l[i]();while(u1&&0===u&&o.unshift({value:o[0].value-f})}}for(u=0;u=r[0]&&_<=r[1]&&d++)}var b=(r[1]-r[0])/t;if(d>1.5*b&&f>b/1.5)break;if(u.push(v),d>b||e===o[h])break}c=[]}}}var x=Object(g["filter"])(Object(g["map"])(u,(function(e){return Object(g["filter"])(e,(function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd}))})),(function(e){return e.length>0})),w=[],M=x.length-1;for(h=0;h0)r*=10;var o=[oi(vM(t[0]/r)*r),oi(gM(t[1]/r)*r)];this._interval=r,this._niceExtent=o}},t.prototype.calcNiceExtent=function(e){pM.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=_M(e)/_M(this.base),Cw(e,this._extent)},t.prototype.normalize=function(e){return e=_M(e)/_M(this.base),Aw(e,this._extent)},t.prototype.scale=function(e){return e=Iw(e,this._extent),yM(this.base,e)},t.type="log",t}(_w),xM=bM.prototype;function wM(e,t){return mM(e,si(t))}xM.getMinorTicks=pM.getMinorTicks,xM.getLabel=pM.getLabel,_w.registerClass(bM);var MM=bM,kM=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,f=this._determinedMax;return null!=d&&(a=d,l=!0),null!=f&&(s=f,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},e.prototype.modifyDataMinMax=function(e,t){this[LM[e]]=t},e.prototype.setDeterminedMinMax=function(e,t){var n=SM[e];this[n]=t},e.prototype.freeze=function(){this.frozen=!0},e}(),SM={min:"_determinedMin",max:"_determinedMax"},LM={min:"_dataMin",max:"_dataMax"};function TM(e,t,n){var r=e.rawExtentInfo;return r||(r=new kM(e,t,n),e.rawExtentInfo=r,r)}function DM(e,t){return null==t?null:Object(g["eqNaN"])(t)?NaN:e.parse(t)}function OM(e,t){var n=e.type,r=TM(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var i=r.min,o=r.max,a=t.ecModel;if(a&&"time"===n){var s=Gw("bar",a),l=!1;if(g["each"](s,(function(e){l=l||e.getBaseAxis()===t.axis})),l){var u=Uw(s),c=CM(i,o,t,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function CM(e,t,n,r){var i=n.axis.getExtent(),o=Math.abs(i[1]-i[0]),a=Xw(r,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,f=c/d-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function AM(e,t){var n=t,r=OM(e,n),i=r.extent,o=n.get("splitNumber");e instanceof MM&&(e.base=n.get("logBase"));var a=e.type,s=n.get("interval"),l="interval"===a||"time"===a;e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&e.setInterval&&e.setInterval(s)}function IM(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Ew({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new fM({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(_w.getClass(t)||Nw)}}function jM(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function EM(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,r){return e.scale.getFormattedLabel(n,r,t)}}(t):g["isString"](t)?function(t){return function(n){var r=e.scale.getLabel(n),i=t.replace("{value}",null!=r?r:"");return i}}(t):g["isFunction"](t)?function(t){return function(r,i){return null!=n&&(i=r.value-n),t(YM(e,r),i,null!=r.level?{level:r.level}:null)}}(t):function(t){return e.scale.getLabel(t)}}function YM(e,t){return"category"===e.type?e.scale.getLabel(t):t.value}function PM(e){var t=e.model,n=e.scale;if(t.get(["axisLabel","show"])&&!n.isBlank()){var r,i,o=n.getExtent();n instanceof Ew?i=n.count():(r=n.getTicks(),i=r.length);var a,s=e.getLabelModel(),l=EM(e),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=r[1])}))}var BM=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},e.prototype.getCoordSysModel=function(){},e}();function WM(e){return vw(null,e)}var VM={isDimensionStacked:cw,enableDataStack:lw,getStackedDimension:dw};function GM(e,t){var n=t;t instanceof Xu||(n=new Xu(t));var r=IM(n);return r.setExtent(e[0],e[1]),AM(r,n),r}function $M(e){g["mixin"](e,BM)}function UM(e,t){return t=t||{},Su(e,null,null,"normal"!==t.state)}var qM=1e-8;function XM(e,t){return Math.abs(e-t)n&&(e=i,n=a)}if(e)return ek(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],r=[-1/0,-1/0],i=this.geometries;return Object(g["each"])(i,(function(t){"polygon"===t.type?QM(t.exterior,n,r,e):Object(g["each"])(t.points,(function(t){QM(t,n,r,e)}))})),isFinite(n[0])&&isFinite(n[1])&&isFinite(r[0])&&isFinite(r[1])||(n[0]=n[1]=r[0]=r[1]=0),t=new Ve(n[0],n[1],r[0]-n[0],r[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 r=0,i=n.length;r>1^-(1&s),l=l>>1^-(1&l),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function uk(e,t){return e=ak(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,r=e.geometry,i=[];switch(r.type){case"Polygon":var o=r.coordinates;i.push(new nk(o[0],o.slice(1)));break;case"MultiPolygon":g["each"](r.coordinates,(function(e){e[0]&&i.push(new nk(e[0],e.slice(1)))}));break;case"LineString":i.push(new rk([r.coordinates]));break;case"MultiLineString":i.push(new rk(r.coordinates))}var a=new ik(n[t||"name"],i,n.cp);return a.properties=n,a}))}function ck(e,t,n,r,i,o,a,s){var l=new qs({style:{text:e,font:t,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}var dk=Qi();function fk(e,t){var n=g["map"](t,(function(t){return e.scale.parse(t)}));return"time"===e.type&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function hk(e){var t=e.getLabelModel().get("customValues");if(t){var n=EM(e),r=e.scale.getExtent(),i=fk(e,t),o=g["filter"](i,(function(e){return e>=r[0]&&e<=r[1]}));return{labels:g["map"](o,(function(t){var r={value:t};return{formattedLabel:n(r),rawLabel:e.scale.getLabel(r),tickValue:t}}))}}return"category"===e.type?mk(e):yk(e)}function pk(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),i=fk(e,n);return{ticks:g["filter"](i,(function(e){return e>=r[0]&&e<=r[1]}))}}return"category"===e.type?vk(e,t):{ticks:g["map"](e.scale.getTicks(),(function(e){return e.value}))}}function mk(e){var t=e.getLabelModel(),n=gk(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function gk(e,t){var n,r,i=_k(e,"labels"),o=RM(t),a=bk(i,o);return a||(g["isFunction"](o)?n=Lk(e,o):(r="auto"===o?wk(e):o,n=Sk(e,r)),xk(i,o,{labels:n,labelCategoryInterval:r}))}function vk(e,t){var n,r,i=_k(e,"ticks"),o=RM(t),a=bk(i,o);if(a)return a;if(t.get("show")&&!e.scale.isBlank()||(n=[]),g["isFunction"](o))n=Lk(e,o,!0);else if("auto"===o){var s=gk(e,e.getLabelModel());r=s.labelCategoryInterval,n=g["map"](s.labels,(function(e){return e.tickValue}))}else r=o,n=Sk(e,r,!0);return xk(i,o,{ticks:n,tickCategoryInterval:r})}function yk(e){var t=e.scale.getTicks(),n=EM(e);return{labels:g["map"](t,(function(t,r){return{level:t.level,formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tickValue:t.value}}))}}function _k(e,t){return dk(e)[t]||(dk(e)[t]=[])}function bk(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(r)),d=Math.abs(u*Math.sin(r)),f=0,h=0;l<=o[1];l+=s){var p=0,m=0,g=yr(n({value:l}),t.font,"center","top");p=1.3*g.width,m=1.3*g.height,f=Math.max(f,p,7),h=Math.max(h,m,7)}var v=f/c,y=h/d;isNaN(v)&&(v=1/0),isNaN(y)&&(y=1/0);var _=Math.max(0,Math.floor(Math.min(v,y))),b=dk(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 kk(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 Sk(e,t,n){var r=EM(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=i.count();0!==u&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var d=HM(e),f=a.get("showMinLabel")||d,h=a.get("showMaxLabel")||d;f&&u!==o[0]&&m(o[0]);for(var p=u;p<=o[1];p+=l)m(p);function m(e){var t={value:e};s.push(n?e:{formattedLabel:r(t),rawLabel:i.getLabel(t),tickValue:e})}return h&&p-l!==o[1]&&m(o[1]),s}function Lk(e,t,n){var r=e.scale,i=EM(e),o=[];return g["each"](r.getTicks(),(function(e){var a=r.getLabel(e),s=e.value;t(e.value,a)&&o.push(n?s:{formattedLabel:i(e),rawLabel:a,tickValue:s})})),o}var Tk=[0,1],Dk=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]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(e)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(e){return ui(e||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this._extent,r=this.scale;return e=r.normalize(e),this.onBand&&"ordinal"===r.type&&(n=n.slice(),Ok(n,r.count())),ri(e,Tk,n,t)},e.prototype.coordToData=function(e,t){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),Ok(n,r.count()));var i=ri(e,n,Tk,t);return this.scale.scale(i)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){e=e||{};var t=e.tickModel||this.getTickModel(),n=pk(this,t),r=n.ticks,i=Object(g["map"])(r,(function(e){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(e):e),tickValue:e}}),this),o=t.get("alignWithLabel");return Ck(this,i,o,e.clamp),i},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),r=Object(g["map"])(n,(function(e){return Object(g["map"])(e,(function(e){return{coord:this.dataToCoord(e),tickValue:e}}),this)}),this);return r},e.prototype.getViewLabels=function(){return hk(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var e=this._extent,t=this.scale.getExtent(),n=t[1]-t[0]+(this.onBand?1:0);0===n&&(n=1);var r=Math.abs(e[1]-e[0]);return Math.abs(r)/n},e.prototype.calculateCategoryInterval=function(){return Mk(this)},e}();function Ok(e,t){var n=e[1]-e[0],r=t,i=n/r/2;e[0]+=i,e[1]-=i}function Ck(e,t,n,r){var i=t.length;if(e.onBand&&!n&&i){var o,a,s=e.getExtent();if(1===i)t[0].coord=s[0],o=t[1]={coord:s[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-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[i-1].tickValue,o={coord:t[i-1].coord+u*a,tickValue:c[1]+1},t.push(o)}var d=s[0]>s[1];f(t[0].coord,s[0])&&(r?t[0].coord=s[0]:t.shift()),r&&f(s[0],t[0].coord)&&t.unshift({coord:s[0]}),f(s[1],o.coord)&&(r?o.coord=s[1]:t.pop()),r&&f(o.coord,s[1])&&t.push({coord:s[1]})}function f(e,t){return e=oi(e),t=oi(t),d?e>t:ei&&(i+=Pk);var h=Math.atan2(s,a);if(h<0&&(h+=Pk),h>=r&&h<=i||h+Pk>=r&&h+Pk<=i)return l[0]=c,l[1]=d,u-n;var p=n*Math.cos(r)+e,m=n*Math.sin(r)+t,g=n*Math.cos(i)+e,v=n*Math.sin(i)+t,y=(p-a)*(p-a)+(m-s)*(m-s),_=(g-a)*(g-a)+(v-s)*(v-s);return y<_?(l[0]=p,l[1]=m,Math.sqrt(y)):(l[0]=g,l[1]=v,Math.sqrt(_))}function Fk(e,t,n,r,i,o,a,s){var l=i-e,u=o-t,c=n-e,d=r-t,f=Math.sqrt(c*c+d*d);c/=f,d/=f;var h=l*c+u*d,p=h/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=a[0]=e+p*c,g=a[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(g-o)*(g-o))}function Bk(e,t,n,r,i,o,a){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r);var s=e+n,l=t+r,u=a[0]=Math.min(Math.max(i,e),s),c=a[1]=Math.min(Math.max(o,t),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var Wk=[];function Vk(e,t,n){var r=Bk(t.x,t.y,t.width,t.height,e.x,e.y,Wk);return n.set(Wk[0],Wk[1]),r}function Gk(e,t,n){for(var r,i,o=0,a=0,s=0,l=0,u=1/0,c=t.data,d=e.x,f=e.y,h=0;h0){t=t/180*Math.PI,$k.fromArray(e[0]),Uk.fromArray(e[1]),qk.fromArray(e[2]),Ee.sub(Xk,$k,Uk),Ee.sub(Zk,qk,Uk);var n=Xk.len(),r=Zk.len();if(!(n<.001||r<.001)){Xk.scale(1/n),Zk.scale(1/r);var i=Xk.dot(Zk),o=Math.cos(t);if(o1&&Ee.copy(Qk,qk),Qk.toArray(e[1])}}}}function tS(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,$k.fromArray(e[0]),Uk.fromArray(e[1]),qk.fromArray(e[2]),Ee.sub(Xk,Uk,$k),Ee.sub(Zk,qk,Uk);var r=Xk.len(),i=Zk.len();if(!(r<.001||i<.001)){Xk.scale(1/r),Zk.scale(1/i);var o=Xk.dot(t),a=Math.cos(n);if(o=l)Ee.copy(Qk,qk);else{Qk.scaleAndAdd(Zk,s/Math.tan(Math.PI/2-c));var d=qk.x!==Uk.x?(Qk.x-Uk.x)/(qk.x-Uk.x):(Qk.y-Uk.y)/(qk.y-Uk.y);if(isNaN(d))return;d<0?Ee.copy(Qk,Uk):d>1&&Ee.copy(Qk,qk)}Qk.toArray(e[1])}}}}function nS(e,t,n,r){var i="normal"===n,o=i?e:e.ensureState(n);o.ignore=t;var a=r.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?e.useStyle(s):o.style=s}function rS(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=P(r[0],r[1]),o=P(r[1],r[2]);if(!i||!o)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var a=Math.min(i,o)*n,s=z([],r[1],r[0],a/i),l=z([],r[1],r[2],a/o),u=z([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c0&&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&&k(-g),v<0&&k(v),u}function b(){g=y.rect[t]-r,v=i-_.rect[t]-_.rect[n]}function x(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){w(r*n,0,a);var i=r+e;i<0&&M(-i*n,1)}else M(-e*n,1)}}function w(n,r,i){0!==n&&(u=!0);for(var o=r;o0)for(l=0;l0;l--){f=o[l-1]*d;w(-f,l,a)}}}function k(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r0?w(n,0,r+1):w(-n,a-r-1,a),e-=n,e<=0)return}}function lS(e,t,n,r){return sS(e,"x","width",t,n,r)}function uS(e,t,n,r){return sS(e,"y","height",t,n,r)}function cS(e){var t=[];e.sort((function(e,t){return t.priority-e.priority}));var n=new Ve(0,0,0,0);function r(e){if(!e.ignore){var t=e.ensureState("emphasis");null==t.ignore&&(t.ignore=!1)}e.ignore=!0}for(var i=0;i=0&&n.attr(i.oldLayoutSelect),Object(g["indexOf"])(c,"emphasis")>=0&&n.attr(i.oldLayoutEmphasis)),fu(n,l,t,s)}else if(n.attr(l),!Eu(n).valueAnimation){var d=Object(g["retrieve2"])(n.style.opacity,1);n.style.opacity=0,hu(n,{style:{opacity:d}},t,s)}if(i.oldLayout=l,n.states.select){var f=i.oldLayoutSelect={};vS(f,l,yS),vS(f,n.states.select,yS)}if(n.states.emphasis){var h=i.oldLayoutEmphasis={};vS(h,l,yS),vS(h,n.states.emphasis,yS)}Pu(n,s,u,t,t)}if(r&&!r.ignore&&!r.invisible){i=gS(r),o=i.oldLayout;var p={points:r.shape.points};o?(r.attr({shape:o}),fu(r,{shape:p},t)):(r.setShape(p),r.style.strokePercent=0,hu(r,{style:{strokePercent:1}},t)),i.oldLayout=p}},e}(),bS=_S,xS=Qi();function wS(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){var r=xS(t).labelManager;r||(r=xS(t).labelManager=new bS),r.clearLabels()})),e.registerUpdateLifecycle("series:layoutlabels",(function(e,t,n){var r=xS(t).labelManager;n.updatedSeries.forEach((function(e){r.addLabelsOfSeries(t.getViewOfSeriesModel(e))})),r.updateLayoutConfig(t),r.layout(t),r.processLabelsOverall()}))}function MS(e,t,n){var r=pr["d"].createCanvas(),i=t.getWidth(),o=t.getHeight(),a=r.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",r.setAttribute("data-zr-dom-id",e)),r.width=i*n,r.height=o*n,r}yx(wS);var kS=function(e){function t(t,n,r){var i,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,r=r||Kn,"string"===typeof t?i=MS(t,n,r):g["isObject"](t)&&(i=t,t=i.id),o.id=t,o.dom=i;var a=i.style;return a&&(g["disableUserSelect"](i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=r,o}return y(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=MS("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,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ve(0,0,0,0);function u(e){if(e.isFinite()&&!e.isZero())if(0===o.length){var t=new Ve(0,0,0,0);t.copy(e),o.push(t)}else{for(var n=!1,r=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}}n.prevElClipPaths&&d.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var b=f.dpr,x=0;x0&&e>r[0]){for(s=0;se)break;a=n[r[s]]}if(r.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||(t.painter=this)}},e.prototype.eachLayer=function(e,t){for(var n=this._zlevelList,r=0;r0?DS: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),r.__dirty&ht&&!r.__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 r=0;r=RS:-l>=RS),f=l>0?l%RS:l%RS+RS,h=!1;h=!!d||!Object(tn["j"])(c)&&f>=NS===!!u;var p=e+n*PS(o),m=t+r*YS(o);this._start&&this._add("M",p,m);var g=Math.round(i*HS);if(d){var v=1/this._p,y=(u?1:-1)*(RS-v);this._add("A",n,r,g,1,+u,e+n*PS(o+y),t+r*YS(o+y)),v>.01&&this._add("A",n,r,g,0,+u,p,m)}else{var _=e+n*PS(a),b=t+r*YS(a);this._add("A",n,r,g,+h,+u,_,b)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),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,r,i,o,a,s,l){for(var u=[],c=this._p,d=1;d"}function rL(e){return""}function iL(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,o=e.attrs,a=e.text;return nL(i,o)+("style"!==i?se(a):a||"")+(t?""+n+Object(g["map"])(t,(function(e){return r(e)})).join(n)+n:"")+rL(i)}return r(e)}function oL(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(g["map"])(Object(g["keys"])(e),(function(t){return t+i+Object(g["map"])(Object(g["keys"])(e[t]),(function(n){return n+":"+e[t][n]+";"})).join(r)+o})).join(r),s=Object(g["map"])(Object(g["keys"])(t),(function(e){return"@keyframes "+e+i+Object(g["map"])(Object(g["keys"])(t[e]),(function(n){return n+i+Object(g["map"])(Object(g["keys"])(t[e][n]),(function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"})).join(r)+o})).join(r)+o})).join(r);return a||s?[""].join(r):""}function aL(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function sL(e,t,n,r){return tL("svg","root",{width:e,height:t,xmlns:XS,"xmlns:xlink":ZS,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var lL=0;function uL(){return lL++}var cL={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"},dL="transform-origin";function fL(e,t,n){var r=Object(g["extend"])({},e.shape);Object(g["extend"])(r,t),e.buildPath(n,r);var i=new FS;return i.reset(Object(tn["f"])(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function hL(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[dL]=n+"px "+r+"px")}var pL={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function mL(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function gL(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(g["each"])(o,(function(e){var t=aL(n.zrId);t.animation=!0,yL(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(g["keys"])(o),u=l.length;if(u){i=l[u-1];var c=o[i];for(var d in c){var f=c[d];a[d]=a[d]||{d:""},a[d].d+=f.d||""}for(var h in s){var p=s[h].animation;p.indexOf(i)>=0&&(r=p)}}})),r){t.d=!1;var s=mL(a,n);return r.replace(i,s)}}function vL(e){return Object(g["isString"])(e)?cL[e]?"cubic-bezier("+cL[e]+")":Kt(e)?e:"":""}function yL(e,t,n,r){var i=e.animators,o=i.length,a=[];if(e instanceof gg){var s=gL(e,t,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length){var C=mL(c,n);return C+" "+i[0]+" both"}}for(var v in l){s=m(l[v]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+uL();n.cssNodes["."+y]={animation:a.join(",")},t["class"]=y}}function _L(e,t,n){if(!e.ignore)if(e.isSilent()){var r={"pointer-events":"none"};bL(r,t,n,!0)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},o=i.fill;if(!o){var a=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||a;l&&(o=Object(en["liftColor"])(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u/=c}r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),bL(r,t,n,!0)}}function bL(e,t,n,r){var i=JSON.stringify(e),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+uL(),n.cssStyleCache[i]=o,n.cssNodes["."+o+(r?":hover":"")]=e),t["class"]=t["class"]?t["class"]+" "+o:o}var xL=Math.round;function wL(e){return e&&Object(g["isString"])(e.src)}function ML(e){return e&&Object(g["isFunction"])(e.toDataURL)}function kL(e,t,n,r){qS((function(i,o){var a="fill"===i||"stroke"===i;a&&Object(tn["k"])(o)?HL(t,e,i,r):a&&Object(tn["n"])(o)?zL(n,e,i,r):e[i]=o,a&&r.ssr&&"none"===o&&(e["pointer-events"]="visible")}),t,n,!1),RL(n,e,r)}function SL(e,t){var n=Kr(t);n&&(n.each((function(t,n){null!=t&&(e[(QS+n).toLowerCase()]=t+"")})),t.isSilent()&&(e[QS+"silent"]="true"))}function LL(e){return Object(tn["j"])(e[0]-1)&&Object(tn["j"])(e[1])&&Object(tn["j"])(e[2])&&Object(tn["j"])(e[3]-1)}function TL(e){return Object(tn["j"])(e[4])&&Object(tn["j"])(e[5])}function DL(e,t,n){if(t&&(!TL(t)||!LL(t))){var r=n?10:1e4;e.transform=LL(t)?"translate("+xL(t[4]*r)/r+" "+xL(t[5]*r)/r+")":Object(tn["e"])(t)}}function OL(e,t,n){for(var r=e.points,i=[],o=0;ou?(a=null==n[f+1]?null:n[f+1].elm,rT(e,a,n,l,f)):iT(e,t,s,u))}function sT(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(oT(e,t),JL(t.text)?QL(r)&&QL(i)?r!==i&&aT(n,r,i):QL(i)?(QL(e.text)&&qL(n,""),rT(n,null,i,0,i.length-1)):QL(r)?iT(n,r,0,r.length-1):QL(e.text)&&qL(n,""):e.text!==t.text&&(QL(r)&&iT(n,r,0,r.length-1),qL(n,t.text)))}function lT(e,t){if(tT(e,t))sT(e,t);else{var n=e.elm,r=$L(n);nT(t),null!==r&&(WL(r,t.elm,UL(n)),iT(r,[e],0,0))}return t}var uT=0,cT=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=dT("refreshHover"),this.configLayer=dT("configLayer"),this.storage=t,this._opts=n=Object(g["extend"])({},n),this.root=e,this._id="zr"+uT++,this._oldVNode=sL(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=eL("svg");oT(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}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",lT(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return NL(e,aL(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=aL(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var o=[],a=this._bgVNode=fT(n,r,this._backgroundColor,i);a&&o.push(a);var s=e.compress?null:this._mainVNode=tL("g","main",{},[]);this._paintList(t,i,s?s.children:o),s&&o.push(s);var l=Object(g["map"])(Object(g["keys"])(i.defs),(function(e){return i.defs[e]}));if(l.length&&o.push(tL("defs","defs",{},l)),e.animation){var u=oL(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=tL("style","stl",{},[],u);o.push(c)}}return sL(n,r,o,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},iL(this.renderToVNode({animation:Object(g["retrieve2"])(e.cssAnimation,!0),emphasis:Object(g["retrieve2"])(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Object(g["retrieve2"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,l=0,u=0;u=0;p--)if(d&&i&&d[p]===i[p])break;for(var m=h-1;m>p;m--)s--,r=a[s-1];for(var g=p+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}(Xp),gT=mT;function vT(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(1===r){var i=Sh(e,t,n[0]);return null!=i?i+"":null}if(r){for(var o=[],a=0;a=0&&r.push(t[o])}return r.join(" ")}var _T=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.updateData(t,n,r,i),o}return p(t,e),t.prototype._createSymbol=function(e,t,n,r,i){this.removeAll();var o=Ay(e,-1,-1,2,2,null,i);o.attr({z2:100,culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=bT,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(){Il(this.childAt(0))},t.prototype.downplay=function(){jl(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,r,i){this.silent=!1;var o=e.getItemVisual(n,"symbol")||"circle",a=e.hostModel,s=t.getSymbolSize(e,n),l=o!==this._symbolType,u=i&&i.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 f={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(f):fu(d,f,a,n),yu(d)}if(this._updateCommon(e,n,s,r,i),l){d=this.childAt(0);if(!u){f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,hu(d,f,a,n)}}u&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,t,n,r,i){var o,a,s,l,u,c,d,f,h,p=this.childAt(0),m=e.hostModel;if(r&&(o=r.emphasisItemStyle,a=r.blurItemStyle,s=r.selectItemStyle,l=r.focus,u=r.blurScope,d=r.labelStatesModels,f=r.hoverScale,h=r.cursorStyle,c=r.emphasisDisabled),!r||e.hasItemOption){var v=r&&r.itemModel?r.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=ku(v),f=y.getShallow("scale"),h=v.getShallow("cursor")}var _=e.getItemVisual(t,"symbolRotate");p.attr("rotation",(_||0)*Math.PI/180||0);var b=jy(e.getItemVisual(t,"symbolOffset"),n);b&&(p.x=b[0],p.y=b[1]),h&&p.attr("cursor",h);var x=e.getItemVisual(t,"style"),w=x.fill;if(p instanceof xs){var M=p.style;p.useStyle(Object(g["extend"])({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},x))}else p.__isEmptyBrush?p.useStyle(Object(g["extend"])({},x)):p.useStyle(x),p.style.decal=null,p.setColor(w,i&&i.symbolInnerColor),p.style.strokeNoScale=!0;var k=e.getItemVisual(t,"liftZ"),S=this._z2;null!=k?null==S&&(this._z2=p.z2,p.z2+=k):null!=S&&(p.z2=S,this._z2=null);var L=i&&i.useNameLabel;function T(t){return L?e.getName(t):vT(e,t)}Mu(p,d,{labelFetcher:m,labelDataIndex:t,defaultText:T,inheritColor:w,defaultOpacity:x.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var D=p.ensureState("emphasis");D.style=o,p.ensureState("select").style=s,p.ensureState("blur").style=a;var O=null==f||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;D.scaleX=this._sizeX*O,D.scaleY=this._sizeY*O,this.setSymbolScale(1),Kl(this,l,u,c)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=Xs(this).dataIndex,o=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var a=r.getTextContent();a&&mu(a,{style:{opacity:0}},t,{dataIndex:i,removeOpt:o,cb:function(){r.removeTextContent()}})}else r.removeTextContent();mu(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:o})},t.getSymbolSize=function(e,t){return Iy(e.getItemVisual(t,"symbolSize"))},t}(Hr);function bT(e,t){this.parent.drift(e,t)}var xT=_T;function wT(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&"none"!==e.getItemVisual(n,"symbol")}function MT(e){return null==e||Object(g["isObject"])(e)||(e={isIgnore:e}),e||{}}function kT(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:ku(t),cursorStyle:t.get("cursor")}}var ST=function(){function e(e){this.group=new Hr,this._SymbolCtor=e||xT}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=MT(t);var n=this.group,r=e.hostModel,i=this._data,o=this._SymbolCtor,a=t.disableAnimation,s=kT(e),l={disableAnimation:a},u=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add((function(r){var i=u(r);if(wT(e,i,r,t)){var a=new o(e,r,s,l);a.setPosition(i),e.setItemGraphicEl(r,a),n.add(a)}})).update((function(c,d){var f=i.getItemGraphicEl(d),h=u(c);if(wT(e,h,c,t)){var p=e.getItemVisual(c,"symbol")||"circle",m=f&&f.getSymbolType&&f.getSymbolType();if(!f||m&&m!==p)n.remove(f),f=new o(e,c,s,l),f.setPosition(h);else{f.updateData(e,c,s,l);var g={x:h[0],y:h[1]};a?f.attr(g):fu(f,g,r)}n.add(f),e.setItemGraphicEl(c,f)}else n.remove(f)})).remove((function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut((function(){n.remove(t)}),r)})).execute(),this._getSymbolPoint=u,this._data=e},e.prototype.updateLayout=function(){var e=this,t=this._data;t&&t.eachItemGraphicEl((function(t,n){var r=e._getSymbolPoint(n);t.setPosition(r),t.markRedraw()}))},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=kT(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n){function r(e){e.isGroup||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=MT(n);for(var i=e.start;i0?n=r[0]:r[1]<0&&(n=r[1]),n}function OT(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=n.get(e.baseDim,r),a[1-o]=i,t.dataToPoint(a)}function CT(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 AT(e,t,n,r,i,o,a,s){for(var l=CT(e,t),u=[],c=[],d=[],f=[],h=[],p=[],m=[],g=TT(i,t,a),v=e.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_=i||m<0)break;if(ET(v,y)){if(l){m+=o;continue}break}if(m===n)e[o>0?"moveTo":"lineTo"](v,y),d=v,f=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=r||ET(w,M))h=v,p=y;else{L=w-u,T=M-c;var C=v-u,A=w-v,I=y-c,j=M-y,E=void 0,Y=void 0;if("x"===s){E=Math.abs(C),Y=Math.abs(A);var P=L>0?1:-1;h=v-P*E*a,p=y,D=v+P*Y*a,O=y}else if("y"===s){E=Math.abs(I),Y=Math.abs(j);var N=T>0?1:-1;h=v,p=y-N*E*a,D=v,O=y+N*Y*a}else E=Math.sqrt(C*C+I*I),Y=Math.sqrt(A*A+j*j),S=Y/(Y+E),h=v-L*a*(1-S),p=y-T*a*(1-S),D=v+L*a*S,O=y+T*a*S,D=IT(D,jT(w,v)),O=IT(O,jT(M,y)),D=jT(D,IT(w,v)),O=jT(O,IT(M,y)),L=D-v,T=O-y,h=v-L*E/Y,p=y-T*E/Y,h=IT(h,jT(u,v)),p=IT(p,jT(c,y)),h=jT(h,IT(u,v)),p=jT(p,IT(c,y)),L=v-h,T=y-p,D=v+L*Y/E,O=y+T*Y/E}e.bezierCurveTo(d,f,h,p,v,y),d=D,f=O}else e.lineTo(v,y)}u=v,c=y,m+=o}return g}var PT=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),NT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polyline",n}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new PT},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0;i--)if(!ET(n[2*i-2],n[2*i-1]))break;for(;r=0){var y=s?(f-r)*v+r:(d-n)*v+n;return s?[e,y]:[y,e]}n=d,r=f;break;case a.C:d=o[u++],f=o[u++],h=o[u++],p=o[u++],m=o[u++],g=o[u++];var _=s?Rt(n,d,h,m,e,l):Rt(r,f,p,g,e,l);if(_>0)for(var b=0;b<_;b++){var x=l[b];if(x<=1&&x>=0){y=s?Pt(r,f,p,g,x):Pt(n,d,h,m,x);return s?[e,y]:[y,e]}}n=m,r=g;break}}},t}(hs),RT=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t}(PT),HT=function(e){function t(t){var n=e.call(this,t)||this;return n.type="ec-polygon",n}return p(t,e),t.prototype.getDefaultShape=function(){return new RT},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,o=n.length/2,a=t.smoothMonotone;if(t.connectNulls){for(;o>0;o--)if(!ET(n[2*o-2],n[2*o-1]))break;for(;it){r?i.push(a(r,l,t)):n&&i.push(a(n,l,0),a(n,l,t));break}n&&(i.push(a(n,l,0)),n=null),i.push(l),r=l}}return i}function KT(e,t,n){var r=e.getVisual("visualMeta");if(r&&r.length&&e.count()&&"cartesian2d"===t.type){for(var i,o,a=r.length-1;a>=0;a--){var s=e.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,"x"===i||"y"===i){o=r[a];break}}if(o){var l=t.getAxis(i),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 f=ZT(u,"x"===i?n.getWidth():n.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?d[1]?d[1]:u[c-1].color:d[0]?d[0]:u[0].color;var p=10,m=f[0].coord-p,v=f[h-1].coord+p,y=v-m;if(y<.001)return"transparent";g["each"](f,(function(e){e.offset=(e.coord-m)/y})),f.push({offset:h?f[h-1].offset:.5,color:d[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:d[0]||"transparent"});var _=new bg(0,0,0,0,f,!0);return _[i]=m,_[i+"2"]=v,_}}}function JT(e,t,n){var r=e.get("showAllSymbol"),i="auto"===r;if(!r||i){var o=n.getAxesByScale("ordinal")[0];if(o&&(!i||!QT(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 QT(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;ar)return!1;return!0}function eD(e,t){return isNaN(e)||isNaN(t)}function tD(e){for(var t=e.length/2;t>0;t--)if(!eD(e[2*t-2],e[2*t-1]))break;return t-1}function nD(e,t){return[e[2*t],e[2*t+1]]}function rD(e,t,n){for(var r,i,o=e.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=t||r>=t&&i<=t){l=u;break}s=u,r=i}else r=i;return{range:[s,l],t:(t-r)/(i-r)}}function iD(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&"bolder"===e.get(["emphasis","lineStyle","width"])){var E=f.getState("emphasis").style;E.lineWidth=+f.style.lineWidth+1}Xs(f).seriesIndex=e.seriesIndex,Kl(f,A,I,j);var Y=UT(e.get("smooth")),P=e.get("smoothMonotone");if(f.setShape({smooth:Y,smoothMonotone:P,connectNulls:w}),h){var N=o.getCalculationInfo("stackedOnSeries"),R=0;h.useStyle(g["defaults"](s.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:o.getVisual("style").decal})),N&&(R=UT(N.get("smooth"))),h.setShape({smooth:Y,stackedOnSmooth:R,smoothMonotone:P,connectNulls:w}),tu(h,e,"areaStyle"),Xs(h).seriesIndex=e.seriesIndex,Kl(h,A,I,j)}var H=this._changePolyState;o.eachItemGraphicEl((function(e){e&&(e.onHoverStateChange=H)})),this._polyline.onHoverStateChange=H,this._data=o,this._coordSys=r,this._stackedOnPoints=b,this._points=l,this._step=L,this._valueOrigin=y,e.get("triggerLineEvent")&&(this.packEventData(e,f),h&&this.packEventData(e,h))},t.prototype.packEventData=function(e,t){Xs(t).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),o=Ji(i,r);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=i.getLayout("points"),s=i.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 xT(i,o),s.x=l,s.y=u,s.setZ(c,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=c,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else yv.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),o=Ji(i,r);if(this._changePolyState("normal"),null!=o&&o>=0){var a=i.getItemGraphicEl(o);a&&(a.__temp?(i.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else yv.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;Ml(this._polyline,e),t&&Ml(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new NT({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 HT({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,o=t.getBaseAxis(),a=o.inverse;"cartesian2d"===t.type?(r=o.isHorizontal(),i=!1):"polar"===t.type&&(r="angle"===o.dim,i=!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],f=void 0,h=void 0,p=void 0;if(n)if(i){var m=n,v=t.pointToCoord(d);r?(f=m.startAngle,h=m.endAngle,p=-v[1]/180*Math.PI):(f=m.r0,h=m.r,p=v[0])}else{var y=n;r?(f=y.x,h=y.x+y.width,p=e.x):(f=y.y+y.height,h=y.y,p=e.y)}var _=h===f?0:(p-f)/(h-f);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 r=e.getModel("endLabel");if(iD(e)){var i=e.getData(),o=this._polyline,a=i.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||(s=this._endLabel=new qs({z2:200}),s.ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=tD(a);l>=0&&(Mu(o,ku(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:l,defaultText:function(e,t,n){return null!=n?yT(i,n):vT(i,e)},enableTextSetter:!0},aD(r,t)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,o,a){var s=this._endLabel,l=this._polyline;if(s){e<1&&null==r.originalX&&(r.originalX=s.x,r.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,d=c.get("connectNulls"),f=o.get("precision"),h=o.get("distance")||0,p=a.getBaseAxis(),m=p.isHorizontal(),g=p.inverse,v=t.shape,y=g?m?v.x:v.y+v.height:m?v.x+v.width:v.y,_=(m?h:0)*(g?-1:1),b=(m?0:-h)*(g?-1:1),x=m?"x":"y",w=rD(u,y,x),M=w.range,k=M[1]-M[0],S=void 0;if(k>=1){if(k>1&&!d){var L=nD(u,M[0]);s.attr({x:L[0]+_,y:L[1]+b}),i&&(S=c.getRawValue(M[0]))}else{L=l.getPointOn(y,x);L&&s.attr({x:L[0]+_,y:L[1]+b});var T=c.getRawValue(M[0]),D=c.getRawValue(M[1]);i&&(S=co(n,f,T,D,w.t))}r.lastFrameIndex=M[0]}else{var O=1===e||r.lastFrameIndex>0?M[0]:0;L=nD(u,O);i&&(S=c.getRawValue(O)),s.attr({x:L[0]+_,y:L[1]+b})}if(i){var C=Eu(s);"function"===typeof C.setLabelText&&C.setLabelText(S)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,o,a){var s=this._polyline,l=this._polygon,u=e.hostModel,c=AT(this._data,e,this._stackedOnPoints,t,this._coordSys,n,this._valueOrigin,o),d=c.current,f=c.stackedOnCurrent,h=c.next,p=c.stackedOnNext;if(i&&(f=XT(c.stackedOnCurrent,c.current,n,i,a),d=XT(c.current,null,n,i,a),p=XT(c.stackedOnNext,c.next,n,i,a),h=XT(c.next,null,n,i,a)),$T(d,h)>3e3||l&&$T(f,p)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:p})));s.shape.__points=c.current,s.shape.points=d;var m={shape:{points:h}};c.current!==d&&(m.shape.__points=c.next),s.stopAnimation(),fu(s,m,u),l&&(l.setShape({points:d,stackedOnPoints:f}),l.stopAnimation(),fu(l,{shape:{stackedOnPoints:p}},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&&i){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(u[1]-u[0])*(c||1),f=Math.round(a/d);if(isFinite(f)&&f>1){"lttb"===i?e.setData(r.lttbDownSample(r.mapDimension(l.dim),1/f)):"minmax"===i&&e.setData(r.minmaxDownSample(r.mapDimension(l.dim),1/f));var h=void 0;Object(g["isString"])(i)?h=cD[i]:Object(g["isFunction"])(i)&&(h=i),h&&e.setData(r.downSample(r.mapDimension(l.dim),1/f,h,dD))}}}}}function hD(e){e.registerChartView(lD),e.registerSeriesModel(gT),e.registerLayout(uD("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,fD("line"))}var pD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(e,t){return vw(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),o=r.dataToPoint(i);if(n)Object(g["each"])(r.getAxes(),(function(e,n){if("category"===e.type&&null!=t){var r=e.getTicksCoords(),a=e.getTickModel().get("alignWithLabel"),s=i[n],l="x1"===t[n]||"y1"===t[n];if(l&&!a&&(s+=1),r.length<2)return;if(2===r.length)return void(o[n]=e.toGlobalCoord(e.getExtent()[l?1:0]));for(var u=void 0,c=void 0,d=1,f=0;fs){c=(h+u)/2;break}1===f&&(d=p-r[0].tickValue)}null==c&&(u?u&&(c=r[r.length-1].coord):c=r[0].coord),o[n]=e.toGlobalCoord(c)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=r.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}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}(Xp);Xp.registerClass(pD);var mD=pD,gD=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(){return vw(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=ec(mD.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}(mD),vD=gD,yD=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}(),_D=function(e){function t(t){var n=e.call(this,t)||this;return n.type="sausage",n}return p(t,e),t.prototype.getDefaultShape=function(){return new yD},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),o=Math.max(t.r,0),a=.5*(o-i),s=i+a,l=t.startAngle,u=t.endAngle,c=t.clockwise,d=2*Math.PI,f=c?u-lMath.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),e.setTextConfig({rotation:c})}}function MD(e,t,n){return t*Math.sin(e)*(n?-1:1)}function kD(e,t,n){return t*Math.cos(e)*(n?1:-1)}function SD(e,t,n){var r=e.get("borderRadius");if(null==r)return n?{cornerRadius:0}:null;Object(g["isArray"])(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Object(g["map"])(r,(function(e){return wr(e,i)}))}}var LD=Math.max,TD=Math.min;function DD(e,t){var n=e.getArea&&e.getArea();if(WT(e,"cartesian2d")){var r=e.getBaseAxis();if("category"!==r.type||!r.onBand){var i=t.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=2*i):(n.y-=i,n.height+=2*i)}}return n}var OD=function(e){function t(){var n=e.call(this)||this;return n.type=t.type,n._isFirstFrame=!0,n}return p(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get("coordinateSystem");("cartesian2d"===i||"polar"===i)&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},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){uv(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,r){var i,o=this.group,a=e.getData(),s=this._data,l=e.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?i=u.isHorizontal():"polar"===l.type&&(i="angle"===u.dim);var c=e.isAnimationEnabled()?e:null,d=ID(e,l);d&&this._enableRealtimeSort(d,a,n);var f=e.get("clip",!0)||d,h=DD(l,a);o.removeClipPath();var p=e.get("roundCap",!0),m=e.get("showBackground",!0),g=e.getModel("backgroundStyle"),v=g.get("borderRadius")||0,y=[],_=this._backgroundEls,b=r&&r.isInitSort,x=r&&"changeAxisOrder"===r.type;function w(e){var t=RD[l.type](a,e),n=XD(l,i,t);return n.useStyle(g.getItemStyle()),"cartesian2d"===l.type?n.setShape("r",v):n.setShape("cornerRadius",v),y[e]=n,n}a.diff(s).add((function(t){var n=a.getItemModel(t),r=RD[l.type](a,t,n);if(m&&w(t),a.hasValue(t)&&ND[l.type](r)){var s=!1;f&&(s=CD[l.type](h,r));var g=AD[l.type](e,a,t,r,i,c,u.model,!1,p);d&&(g.forceLabelAnimation=!0),FD(g,a,t,n,r,e,i,"polar"===l.type),b?g.attr({shape:r}):d?jD(d,c,g,r,t,i,!1,!1):hu(g,{shape:r},e,t),a.setItemGraphicEl(t,g),o.add(g),g.ignore=s}})).update((function(t,n){var r=a.getItemModel(t),M=RD[l.type](a,t,r);if(m){var k=void 0;0===_.length?k=w(n):(k=_[n],k.useStyle(g.getItemStyle()),"cartesian2d"===l.type?k.setShape("r",v):k.setShape("cornerRadius",v),y[t]=k);var S=RD[l.type](a,t),L=qD(i,S,l);fu(k,{shape:L},c,t)}var T=s.getItemGraphicEl(n);if(a.hasValue(t)&&ND[l.type](M)){var D=!1;if(f&&(D=CD[l.type](h,M),D&&o.remove(T)),T?yu(T):T=AD[l.type](e,a,t,M,i,c,u.model,!!T,p),d&&(T.forceLabelAnimation=!0),x){var O=T.getTextContent();if(O){var C=Eu(O);null!=C.prevValue&&(C.prevValue=C.value)}}else FD(T,a,t,r,M,e,i,"polar"===l.type);b?T.attr({shape:M}):d?jD(d,c,T,M,t,i,!0,x):fu(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&&vu(n,e,t)})).execute();var M=this._backgroundGroup||(this._backgroundGroup=new Hr);M.removeAll();for(var k=0;ko)return!0;o=u}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),o=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=o;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,(function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:r.dim+"Axis",isInitSort:!0,axisId:r.index,sortInfo:i})},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){vu(t,e,Xs(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}(yv),CD={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,o=e.y+e.height,a=LD(t.x,e.x),s=TD(t.x+t.width,i),l=LD(t.y,e.y),u=TD(t.y+t.height,o),c=si?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),r<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 r=t.r;t.r=t.r0,t.r0=r}var i=TD(t.r,e.r),o=LD(t.r0,e.r0);t.r=i,t.r0=o;var a=i-o<0;if(n<0){r=t.r;t.r=t.r0,t.r0=r}return a}},AD={cartesian2d:function(e,t,n,r,i,o,a,s,l){var u=new Cs({shape:Object(g["extend"])({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,d=i?"height":"width";c[d]=0}return u},polar:function(e,t,n,r,i,o,a,s,l){var u=!i&&l?bD:Gm,c=new u({shape:r,z2:1});c.name="item";var d=zD(i);if(c.calculateTextPosition=xD(d,{isRoundCap:u===bD}),o){var f=c.shape,h=i?"r":"endAngle",p={};f[h]=i?r.r0:r.startAngle,p[h]=r[h],(s?fu:hu)(c,{shape:p},o)}return c}};function ID(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&"category"===r.type&&"cartesian2d"===t.type)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function jD(e,t,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?fu:hu)(n,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(a?fu:hu)(n,{shape:u},c,i)}function ED(e,t){for(var n=0;n0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function HD(e){return null!=e.startAngle&&null!=e.endAngle&&e.startAngle===e.endAngle}function zD(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 FD(e,t,n,r,i,o,a,s){var l=t.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=e.shape,c=SD(r.getModel("itemStyle"),u,!0);Object(g["extend"])(u,c),e.setShape(u)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(l);var f=r.getShallow("cursor");f&&e.attr("cursor",f);var h=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=ku(r);Mu(e,p,{labelFetcher:o,labelDataIndex:n,defaultText:vT(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var v=r.get(["label","position"]);e.textConfig.inside="middle"===v||null,wD(e,"outside"===v?h:v,zD(a),r.get(["label","rotate"]))}Yu(m,p,o.getRawValue(n),(function(e){return yT(t,e)}));var y=r.getModel(["emphasis"]);Kl(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),tu(e,r),HD(i)&&(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 BD(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||"none"===n)return 0;var r=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,o)}var WD=function(){function e(){}return e}(),VD=function(e){function t(t){var n=e.call(this,t)||this;return n.type="largeBar",n}return p(t,e),t.prototype.getDefaultShape=function(){return new WD},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=0?n:null}),30,!1);function UD(e,t,n){for(var r=e.baseDimIdx,i=1-r,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 qD(e,t,n){if(WT(n,"cartesian2d")){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}i=n.getArea();var o=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:o.r0,r:e?i.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:2*Math.PI}}function XD(e,t,n){var r="polar"===e.type?Gm:Cs;return new r({shape:qD(t,n,e),silent:!0,z2:0})}var ZD=OD;function KD(e){e.registerChartView(ZD),e.registerSeriesModel(vD),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,g["curry"](Zw,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kw("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,fD("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 JD=2*Math.PI,QD=Math.PI/180;function eO(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function tO(e,t){var n=eO(e,t),r=e.get("center"),i=e.get("radius");g["isArray"](i)||(i=[0,i]);var o,a,s=ii(n.width,t.getWidth()),l=ii(n.height,t.getHeight()),u=Math.min(s,l),c=ii(i[0],u/2),d=ii(i[1],u/2),f=e.coordinateSystem;if(f){var h=f.dataToPoint(r);o=h[0]||0,a=h[1]||0}else g["isArray"](r)||(r=[r,r]),o=ii(r[0],s)+n.x,a=ii(r[1],l)+n.y;return{cx:o,cy:a,r0:c,r:d}}function nO(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.getData(),r=t.mapDimension("value"),i=eO(e,n),o=tO(e,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,c=-e.get("startAngle")*QD,d=e.get("endAngle"),f=e.get("padAngle")*QD;d="auto"===d?c-JD:-d*QD;var h=e.get("minAngle")*QD,p=h+f,m=0;t.each(r,(function(e){!isNaN(e)&&m++}));var g=t.getSum(r),v=Math.PI/(g||m)*2,y=e.get("clockwise"),_=e.get("roseType"),b=e.get("stillShowZeroSum"),x=t.getDataExtent(r);x[0]=0;var w=y?1:-1,M=[c,d],k=w*f/2;Ha(M,!y),c=M[0],d=M[1];var S=rO(e);S.startAngle=c,S.endAngle=d,S.clockwise=y;var L=Math.abs(d-c),T=L,D=0,O=c;if(t.setLayout({viewRect:i,r:l}),t.each(r,(function(e,n){var r;if(isNaN(e))t.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:y,cx:a,cy:s,r0:u,r:_?NaN:l});else{r="area"!==_?0===g&&b?v:e*v:L/m,rr?(o=O+w*r/2,c=o):(o=O+k,c=i-k),t.setItemLayout(n,{angle:r,startAngle:o,endAngle:c,clockwise:y,cx:a,cy:s,r0:u,r:_?ri(e,x,[u,l]):l}),O=i}})),Tn?a:o,c=Math.abs(l.label.y-n);if(c>=u.maxY){var d=l.label.x-t-l.len2*i,f=r+l.len,p=Math.abs(d)e.unconstrainedWidth?null:h:null;r.setStyle("width",p)}var m=r.getBoundingRect();o.width=m.width;var g=(r.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-d)/2}}}function uO(e){return"center"===e.position}function cO(e){var t,n,r=e.getData(),i=[],o=!1,a=(e.get("minShowLabelAngle")||0)*oO,s=r.getLayout("viewRect"),l=r.getLayout("r"),u=s.width,c=s.x,d=s.y,f=s.height;function h(e){e.ignore=!0}function p(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}r.each((function(e){var s=r.getItemGraphicEl(e),d=s.shape,f=s.getTextContent(),m=s.getTextGuideLine(),v=r.getItemModel(e),y=v.getModel("label"),_=y.get("position")||v.get(["emphasis","label","position"]),b=y.get("distanceToLabelLine"),x=y.get("alignTo"),w=ii(y.get("edgeDistance"),u),M=y.get("bleedMargin"),k=v.getModel("labelLine"),S=k.get("length");S=ii(S,u);var L=k.get("length2");if(L=ii(L,u),Math.abs(d.endAngle-d.startAngle)0?"right":"left":I>0?"left":"right"}var F=Math.PI,B=0,W=y.get("rotate");if(Object(g["isNumber"])(W))B=W*(F/180);else if("center"===_)B=0;else if("radial"===W||!0===W){var V=I<0?-A+F:-A;B=V}else if("tangential"===W&&"outside"!==_&&"outer"!==_){var G=Math.atan2(I,j);G<0&&(G=2*F+G);var $=j>0;$&&(G=F+G),B=G-F}if(o=!!B,f.x=T,f.y=D,f.rotation=B,f.setStyle({verticalAlign:"middle"}),E){f.setStyle({align:C});var U=f.states.select;U&&(U.x+=f.x,U.y+=f.y)}else{var q=f.getBoundingRect().clone();q.applyTransform(f.getComputedTransform());var X=(f.style.margin||0)+2.1;q.y-=X/2,q.height+=X,i.push({label:f,labelLine:m,position:_,len:S,len2:L,minTurnAngle:k.get("minTurnAngle"),maxSurfaceAngle:k.get("maxSurfaceAngle"),surfaceNormal:new Ee(I,j),linePoints:O,textAlign:C,labelDistance:b,labelAlignTo:x,edgeDistance:w,bleedMargin:M,rect:q,unconstrainedWidth:q.width,labelStyleWidth:f.style.width})}s.setTextConfig({inside:E})}})),!o&&e.get("avoidLabelOverlap")&&sO(i,t,n,l,u,f,c,d);for(var m=0;m0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u=r.r0}},t.type="pie",t}(yv),hO=fO;function pO(e,t,n){t=Object(g["isArray"])(t)&&{coordDimensions:t}||Object(g["extend"])({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=ew(r,t).dimensions,o=new Jx(i,e);return o.initData(r,n),o}var mO=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}(),gO=mO,vO=Qi(),yO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new gO(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(){return pO(this,{coordDimensions:["value"],encodeDefaulter:g["curry"](Nd,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=vO(n),i=r.seats;if(!i){var o=[];n.each(n.mapDimension("value"),(function(e){o.push(e)})),i=r.seats=di(o,n.hostModel.get("percentPrecision"))}var a=e.prototype.getDataParams.call(this,t);return a.percent=i[t]||0,a.$vars.push("percent"),a},t.prototype._defaultLabelLine=function(e){Ii(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,endAngle:"auto",padAngle:0,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}(Xp),_O=yO;function bO(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf((function(e){var t=n.mapDimension("value"),r=n.get(t,e);return!(Object(g["isNumber"])(r)&&!isNaN(r)&&r<0)}))}}}function xO(e){e.registerChartView(hO),e.registerSeriesModel(_O),py("pie",e.registerAction),e.registerLayout(Object(g["curry"])(nO,"pie")),e.registerProcessor(iO("pie")),e.registerProcessor(bO("pie"))}var wO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){return vw(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}(Xp),MO=wO,kO=4,SO=function(){function e(){}return e}(),LO=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(t,e),t.prototype.getDefaultShape=function(){return new SO},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,t){var n,r=t.points,i=t.size,o=this.symbolProxy,a=o.shape,s=e.getContext?e.getContext():e,l=s&&i[0]=0;s--){var l=2*s,u=r[l]-o/2,c=r[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),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.points,r=t.size,i=r[0],o=r[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}(),DO=TO,OO=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.updateData(r,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,t,n){var r=e.getData(),i=this._updateSymbolDraw(r,e);i.incrementalPrepareUpdate(r),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 r=e.getData();if(this.group.dirty(),!this._finished||r.count()>1e4)return{update:!0};var i=uD("").reset(e,t,n);i.progress&&i.progress({start:0,end:r.count(),count:r.count()},r),this._symbolDraw.updateLayout(r)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){if(e.get("clip",!0)){var t=e.coordinateSystem;return t&&t.getArea&&t.getArea(.1)}},t.prototype._updateSymbolDraw=function(e,t){var n=this._symbolDraw,r=t.pipelineContext,i=r.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new DO:new LT,this._isLargeDraw=i,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}(yv),CO=OO,AO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}(bd),IO=AO,jO=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ro).models[0]},t.type="cartesian2dAxis",t}(bd);g["mixin"](jO,BM);var EO={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,showMinLine:!0,showMaxLine:!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)"]}}},YO=g["merge"]({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},EO),PO=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}}},EO),NO=g["merge"]({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},PO),RO=g["defaults"]({logBase:10},PO),HO={category:YO,value:PO,time:NO,log:RO},zO={value:1,category:1,time:1,log:1};function FO(e,t,n,r){Object(g["each"])(zO,(function(i,o){var a=Object(g["merge"])(Object(g["merge"])({},HO[o],!0),r,!0),s=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t+"Axis."+o,n}return p(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=hd(this),r=n?md(e):{},i=t.getTheme();Object(g["merge"])(e,i.get(o+"Axis")),Object(g["merge"])(e,this.getDefaultOption()),e.type=BO(e),n&&pd(e,r,n)},n.prototype.optionUpdated=function(){var e=this.option;"category"===e.type&&(this.__ordinalMeta=Mw.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",BO)}function BO(e){return e.type||(e.data?"category":"value")}var WO=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}(),VO=WO,GO=["x","y"];function $O(e){return"interval"===e.type||"time"===e.type}var UO=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="cartesian2d",t.dimensions=GO,t}return p(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,t=this.getAxis("y").scale;if($O(e)&&$O(t)){var n=e.getExtent(),r=t.getExtent(),i=this.dataToPoint([n[0],r[0]]),o=this.dataToPoint([n[1],r[1]]),a=n[1]-n[0],s=r[1]-r[0];if(a&&s){var l=(o[0]-i[0])/a,u=(o[1]-i[1])/s,c=i[0]-n[0]*l,d=i[1]-r[0]*u,f=this._transform=[l,0,0,u,c,d];this._invTransform=Ae([],f)}}},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),r=this.dataToPoint(t),i=this.getArea(),o=new Ve(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(o)},t.prototype.dataToPoint=function(e,t,n){n=n||[];var r=e[0],i=e[1];if(this._transform&&null!=r&&isFinite(r)&&null!=i&&isFinite(i))return F(n,e,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(r,t)),n[1]=a.toGlobalCoord(a.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis("x").scale,r=this.getAxis("y").scale,i=n.getExtent(),o=r.getExtent(),a=n.parse(e[0]),s=r.parse(e[1]);return t=t||[],t[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[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 r=this.getAxis("x"),i=this.getAxis("y");return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(e){e=e||0;var t=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,o=Math.max(t[0],t[1])-r+e,a=Math.max(n[0],n[1])-i+e;return new Ve(r,i,o,a)},t}(VO),qO=UO,XO=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.index=0,a.type=i||"value",a.position=o||"bottom",a}return p(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}(Ak),ZO=XO;function KO(e,t,n){n=n||{};var r=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),d=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p="x"===u?[d[2]-h,d[3]+h]:[d[0]-h,d[1]+h];if(a){var m=a.toGlobalCoord(a.dataToCoord(0));p[f.onZero]=Math.max(Math.min(m,p[1]),p[0])}o.position=["y"===u?p[f[l]]:d[0],"x"===u?p[f[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?p[f[s]]-p[f.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 JO(e){return"cartesian2d"===e.get("coordinateSystem")}function QO(e){var t={xAxisModel:null,yAxisModel:null};return g["each"](t,(function(n,r){var i=r.replace(/Model$/,""),o=e.getReferringComponents(i,ro).models[0];t[r]=o})),t}var eC=Math.log;function tC(e,t,n){var r=Nw.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=OM(e,t),u=l.extent,c=l.fixMin,d=l.fixMax;if("log"===e.type){var f=eC(e.base);u=[eC(u[0])/f,eC(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:d});var h=r.getExtent.call(e);c&&(u[0]=h[0]),d&&(u[1]=h[1]);var p=r.getInterval.call(e),m=u[0],g=u[1];if(c&&d)p=(g-m)/a;else if(c){g=u[0]+p*a;while(gu[0]&&isFinite(m)&&isFinite(u[0]))p=Lw(p),m=u[1]-p*a}else{var v=e.getTicks().length-1;v>a&&(p=Lw(p));var y=p*a;g=Math.ceil(u[1]/p)*p,m=oi(g-y),m<0&&u[0]>=0?(m=0,g=oi(y)):g>0&&u[1]<=0&&(g=0,m=-oi(y))}var _=(i[0].value-o[0].value)/s,b=(i[a].value-o[a].value)/s;r.setExtent.call(e,m+p*_,g+p*b),r.setInterval.call(e,p),(_||b)&&r.setNiceExtent.call(e,m+p,g-p)}var nC=function(){function e(e,t,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=GO,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 r(e){var t,n=Object(g["keys"])(e),r=n.length;if(r){for(var i=[],o=r-1;o>=0;o--){var a=+n[o],s=e[a],l=s.model,u=s.scale;kw(u)&&l.get("alignTicks")&&null==l.get("interval")?i.push(s):(AM(u,l),kw(u)&&(t=s))}i.length&&(t||(t=i.pop(),AM(t.scale,t.model)),Object(g["each"])(i,(function(e){tC(e.scale,e.model,t.scale)})))}}this._updateScale(e,this.model),r(n.x),r(n.y);var i={};Object(g["each"])(n.x,(function(e){iC(n,"y",e,i)})),Object(g["each"])(n.y,(function(e){iC(n,"x",e,i)})),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=e.getBoxLayoutParams(),i=!n&&e.get("containLabel"),o=cd(r,{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],r=e.inverse?1:0;e.setExtent(n[r],n[1-r]),aC(e,t?o.x:o.y)}))}s(),i&&(Object(g["each"])(a,(function(e){if(!e.model.get(["axisLabel","inside"])){var t=PM(e);if(t){var n=e.isHorizontal()?"height":"width",r=e.model.get(["axisLabel","margin"]);o[n]-=t[n]+r,"top"===e.position?o.y+=t.height+r:"left"===e.position&&(o.x+=t.width+r)}}})),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 r=0,i=this._coordsList;r0?"top":"bottom",r="center"):mi(o-lC)?(i=n>0?"bottom":"top",r="center"):(i="middle",r=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:r,textVerticalAlign:i}},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}(),cC={axisLine:function(e,t,n,r){var i=t.get(["axisLine","show"]);if("auto"===i&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),i){var o=t.axis.getExtent(),a=r.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 ag({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Gg(d.shape,d.style.lineWidth),d.anid="line",n.add(d);var f=t.get(["axisLine","symbol"]);if(null!=f){var h=t.get(["axisLine","symbolSize"]);Object(g["isString"])(f)&&(f=[f,f]),(Object(g["isString"])(h)||Object(g["isNumber"])(h))&&(h=[h,h]);var p=jy(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],v=h[1];Object(g["each"])([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(t,r){if("none"!==f[r]&&null!=f[r]){var i=Ay(f[r],-m/2,-v/2,m,v,c.stroke,!0),o=t.r+t.offset,a=u?l:s;i.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(i)}}))}}},axisTickLabel:function(e,t,n,r){var i=vC(n,r,t,e),o=_C(n,r,t,e);if(fC(t,o,i),yC(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=aS(Object(g["map"])(o,(function(e){return{label:e,priority:e.z2,defaultAttr:{ignore:e.ignore}}})));cS(a)}},axisName:function(e,t,n,r){var i=Object(g["retrieve"])(e.axisName,t.get("name"));if(i){var o,a,s=t.get("nameLocation"),l=e.nameDirection,u=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),f=d[0]>d[1]?-1:1,h=["start"===s?d[0]-f*c:"end"===s?d[1]+f*c:(d[0]+d[1])/2,mC(s)?e.labelOffset+l*c:0],p=t.get("nameRotate");null!=p&&(p=p*lC/180),mC(s)?o=uC.innerTextLayout(e.rotation,null!=p?p:e.rotation,l):(o=dC(e.rotation,s,p||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 qs({x:h[0],y:h[1],rotation:o.rotation,silent:uC.isLabelSilent(t),style:Su(u,{text:i,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(sv({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var x=uC.makeAxisEventDataBase(t);x.targetType="axisName",x.name=i,Xs(b).eventData=x}r.add(b),b.updateTransform(),n.add(b),b.decomposeTransform()}}};function dC(e,t,n,r){var i,o,a=pi(n-e),s=r[0]>r[1],l="start"===t&&!s||"start"!==t&&s;return mi(a-lC/2)?(o=l?"bottom":"top",i="center"):mi(a-1.5*lC)?(o=l?"top":"bottom",i="center"):(o="middle",i=a<1.5*lC&&a>lC/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function fC(e,t,n){if(!HM(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),i=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],f=n[n.length-2];!1===r?(hC(o),hC(u)):pC(o,a)&&(r?(hC(a),hC(c)):(hC(o),hC(u))),!1===i?(hC(s),hC(d)):pC(l,s)&&(i?(hC(l),hC(f)):(hC(s),hC(d)))}}function hC(e){e&&(e.ignore=!0)}function pC(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(n&&r){var i=Se([]);return Oe(i,i,-e.rotation),n.applyTransform(Te([],i,e.getLocalTransform())),r.applyTransform(Te([],i,t.getLocalTransform())),n.intersect(r)}}function mC(e){return"middle"===e||"center"===e}function gC(e,t,n,r,i){for(var o=[],a=[],s=[],l=0;l=0||e===t}function TC(e){var t=DC(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=r.parse(a));var s=CC(n);null==o&&(i.status=s?"show":"hide");var l=r.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 f=a;null!=d.color&&(f=g["defaults"]({color:d.color},a));var h=g["merge"](g["clone"](d),{boundaryGap:e,splitNumber:t,scale:n,axisLine:r,axisTick:i,axisLabel:o,name:d.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:f,triggerEvent:c},!1);if(g["isString"](l)){var p=h.name;h.name=l.replace("{value}",null!=p?p:"")}else g["isFunction"](l)&&(h.name=l(h.name,h));var m=new Xu(h,null,this.ecModel);return g["mixin"](m,BM.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"}},nA.axisLine),axisLabel:rA(nA.axisLabel,!1),axisTick:rA(nA.axisTick,!1),splitLine:rA(nA.splitLine,!0),splitArea:rA(nA.splitArea,!0),indicator:[]},t}(bd),oA=iA,aA=["axisLine","axisTickLabel","axisName"],sA=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var t=e.coordinateSystem,n=t.getIndicatorAxes(),r=g["map"](n,(function(e){var n=e.model.get("showName")?e.name:"",r=new bC(e.model,{axisName:n,position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r}));g["each"](r,(function(e){g["each"](aA,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 r=e.get("shape"),i=e.getModel("splitLine"),o=e.getModel("splitArea"),a=i.getModel("lineStyle"),s=o.getModel("areaStyle"),l=i.get("show"),u=o.get("show"),c=a.get("color"),d=s.get("color"),f=g["isArray"](c)?c:[c],h=g["isArray"](d)?d:[d],p=[],m=[];if("circle"===r)for(var v=n[0].getTicksCoords(),y=t.cx,_=t.cy,b=0;b3?1.4:i>1?1.2:1.1,l=r>0?s:1/s;xA(this,"zoom","zoomOnMouseWheel",e,{scale:l,originX:o,originY:a,isAvailableBehavior:null})}if(n){var u=Math.abs(r),c=(r>0?1:-1)*(u>3?.4:u>1?.15:.05);xA(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:c,originX:o,originY:a,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){if(!yA(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;xA(this,"zoom",null,e,{scale:t,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t}(q);function xA(e,t,n,r,i){e.pointerChecker&&e.pointerChecker(r,i.originX,i.originY)&&(ye(r.event),wA(e,t,n,r,i))}function wA(e,t,n,r,i){i.isAvailableBehavior=Object(g["bind"])(MA,null,n,r),e.trigger(t,i)}function MA(e,t,n){var r=n[e];return!e||r&&(!Object(g["isString"])(r)||t.event[r+"Key"])}var kA=bA;function SA(e,t,n){var r=e.target;r.x+=t,r.y+=n,r.dirty()}function LA(e,t,n,r){var i=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,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var TA,DA={axisPointer:1,tooltip:1,brush:1};function OA(e,t,n){var r=t.getComponentByElement(e.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!DA.hasOwnProperty(r.mainType)&&i&&i.model!==n}function CA(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 AA={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"},IA=Object(g["keys"])(AA),jA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},EA=Object(g["keys"])(jA),YA=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(e,t){t=t||{};var n=CA(e);this._defsUsePending=[];var r=new Hr;this._root=r;var i=[],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),FA(n,r,null,!0,!1);var l,u,c=n.firstChild;while(c)this._parseNode(c,r,i,null,!1,!1),c=c.nextSibling;if(GA(this._defs,this._defsUsePending),this._defsUsePending=[],o){var d=UA(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=eI(l,{x:0,y:0,width:a,height:s}),!t.ignoreViewBox)){var f=r;r=new Hr,r.add(f),f.scaleX=f.scaleY=u.scale,f.x=u.x,f.y=u.y}return t.ignoreRootClip||null==a||null==s||r.setClipPath(new Cs({shape:{x:0,y:0,width:a,height:s}})),{root:r,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},e.prototype._parseNode=function(e,t,n,r,i,o){var a,s=e.nodeName.toLowerCase(),l=r;if("defs"===s&&(i=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=t;else{if(!i){var u=TA[s];if(u&&Object(g["hasOwn"])(TA,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 r&&n.push({name:r.name,namedFrom:r,svgNodeTagLower:s,el:a});t.add(a)}}var f=PA[s];if(f&&Object(g["hasOwn"])(PA,s)){var h=f.call(this,e),p=e.getAttribute("id");p&&(this._defs[p]=h)}}if(a&&a.isGroup){var m=e.firstChild;while(m)1===m.nodeType?this._parseNode(m,a,n,l,i,o):3===m.nodeType&&o&&this._parseText(m,a),m=m.nextSibling}},e.prototype._parseText=function(e,t){var n=new gs({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});HA(t,n),FA(e,n,this._defsUsePending,!1,!1),BA(n,t);var r=n.style,i=r.fontSize;i&&i<9&&(r.fontSize=9,n.scaleX*=i/9,n.scaleY*=i/9);var o=(r.fontSize||r.fontFamily)&&[r.fontStyle,r.fontWeight,(r.fontSize||12)+"px",r.fontFamily||"sans-serif"].join(" ");r.font=o;var a=n.getBoundingRect();return this._textX+=a.width,t.add(n),n},e.internalField=function(){TA={g:function(e,t){var n=new Hr;return HA(t,n),FA(e,n,this._defsUsePending,!1,!1),n},rect:function(e,t){var n=new Cs;return HA(t,n),FA(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 km;return HA(t,n),FA(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 ag;return HA(t,n),FA(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 Tm;return HA(t,n),FA(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,r=e.getAttribute("points");r&&(n=zA(r));var i=new Qm({shape:{points:n||[]},silent:!0});return HA(t,i),FA(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var n,r=e.getAttribute("points");r&&(n=zA(r));var i=new ng({shape:{points:n||[]},silent:!0});return HA(t,i),FA(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var n=new xs;return HA(t,n),FA(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",r=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(i),this._textY=parseFloat(r)+parseFloat(o);var a=new Hr;return HA(t,a),FA(e,a,this._defsUsePending,!1,!0),a},tspan:function(e,t){var n=e.getAttribute("x"),r=e.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=r&&(this._textY=parseFloat(r));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",a=new Hr;return HA(t,a),FA(e,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),a},path:function(e,t){var n=e.getAttribute("d")||"",r=ym(n);return HA(t,r),FA(e,r,this._defsUsePending,!1,!1),r.silent=!0,r}}}(),e}(),PA={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),n=parseInt(e.getAttribute("y1")||"0",10),r=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),o=new bg(t,n,r,i);return NA(e,o),RA(e,o),o},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),n=parseInt(e.getAttribute("cy")||"0",10),r=parseInt(e.getAttribute("r")||"0",10),i=new wg(t,n,r);return NA(e,i),RA(e,i),i}};function NA(e,t){var n=e.getAttribute("gradientUnits");"userSpaceOnUse"===n&&(t.global=!0)}function RA(e,t){var n=e.firstChild;while(n){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var r=n.getAttribute("offset"),i=void 0;i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};JA(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function HA(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Object(g["defaults"])(t.__inheritedStyle,e.__inheritedStyle))}function zA(e){for(var t=UA(e),n=[],r=0;r0;o-=2){var a=r[o],s=r[o-1],l=UA(a);switch(i=i||ke(),s){case"translate":De(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ce(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Oe(i,i,-parseFloat(l[0])*XA,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*XA);Te(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*XA);Te(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var KA=/([^\s:;]+)\s*:\s*([^:;]+)/g;function JA(e,t,n){var r=e.getAttribute("style");if(r){var i;KA.lastIndex=0;while(null!=(i=KA.exec(r))){var o=i[1],a=Object(g["hasOwn"])(AA,o)?AA[o]:null;a&&(t[a]=i[2]);var s=Object(g["hasOwn"])(jA,o)?jA[o]:null;s&&(n[s]=i[2])}}}function QA(e,t,n){for(var r=0;r0,m={api:n,geo:s,mapOrGeoModel:e,data:a,isVisualEncodedByVisualMap:p,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,r)},e.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=g["createHashMap"](),n=g["createHashMap"](),r=this._regionsGroup,i=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]*i.scaleX+i.x,e[1]*i.scaleY+i.y]}function c(e){for(var t=[],n=!l&&s&&s.project,r=0;r=0)&&(f=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Mu(t,ku(r),{labelFetcher:f,labelDataIndex:d,defaultText:n},h);var p=t.getTextContent();if(p&&(LI(p).ignore=p.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 II(e,t,n,r,i,o){e.data?e.data.setItemGraphicEl(o,t):Xs(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function jI(e,t,n,r,i){e.data||sv({el:t,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function EI(e,t,n,r,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Kl(t,a,o.get("blurScope"),o.get("disabled")),e.isGeo&&iu(t,i,n),a}function YI(e,t,n){var r,i=[];function o(){r=[]}function a(){r.length&&(i.push(r),r=[])}var s=t({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(e,t){isFinite(e)&&isFinite(t)&&r.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}(Xp),zI=HI;function FI(e,t){var n={};return g["each"](e,(function(e){e.each(e.mapDimension("value"),(function(t,r){var i="ec-"+e.getName(r);n[i]=n[i]||[],isNaN(t)||n[i].push(t)}))})),e[0].map(e[0].mapDimension("value"),(function(r,i){for(var o,a="ec-"+e[0].getName(i),s=0,l=1/0,u=-1/0,c=n[a].length,d=0;d1?(h.width=f,h.height=f/_):(h.height=f,h.width=f*_),h.y=d[1]-h.height/2,h.x=d[0]-h.width/2;else{var x=e.getBoxLayoutParams();x.aspect=_,h=cd(x,{width:v,height:y})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function ej(e,t){g["each"](t.get("geoCoord"),(function(t,n){e.addGeoCoord(n,t)}))}var tj=function(){function e(){this.dimensions=XI}return e.prototype.create=function(e,t){var n=[];function r(e){return{nameProperty:e.get("nameProperty"),aspectScale:e.get("aspectScale"),projection:e.get("projection")}}e.eachComponent("geo",(function(e,i){var o=e.get("map"),a=new JI(o+i,o,g["extend"]({nameMap:e.get("nameMap")},r(e)));a.zoomLimit=e.get("scaleLimit"),n.push(a),e.coordinateSystem=a,a.model=e,a.resize=QI,a.resize(e,t)})),e.eachSeries((function(e){var t=e.get("coordinateSystem");if("geo"===t){var r=e.get("geoIndex")||0;e.coordinateSystem=n[r]}}));var i={};return e.eachSeriesByType("map",(function(e){if(!e.getHostGeoModel()){var t=e.getMapType();i[t]=i[t]||[],i[t].push(e)}})),g["each"](i,(function(e,i){var o=g["map"](e,(function(e){return e.get("nameMap")})),a=new JI(i,i,g["extend"]({nameMap:g["mergeAll"](o)},r(e[0])));a.zoomLimit=g["retrieve"].apply(null,g["map"](e,(function(e){return e.get("scaleLimit")}))),n.push(a),a.resize=QI,a.resize(e[0],t),g["each"](e,(function(e){e.coordinateSystem=a,ej(a,e)}))})),n},e.prototype.getFilledRegions=function(e,t,n,r){for(var i=(e||[]).slice(),o=g["createHashMap"](),a=0;a=0;a--){var s=r[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},i.push(s)}}function pj(e,t){var n=e.isExpand?e.children:[],r=e.parentNode.children,i=e.hierNode.i?r[e.hierNode.i-1]:null;if(n.length){_j(e);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-o):e.hierNode.prelim=o}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=bj(e,i,e.parentNode.hierNode.defaultAncestor||r[0],t)}function mj(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function gj(e){return arguments.length?e:Sj}function vj(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function yj(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _j(e){var t=e.children,n=t.length,r=0,i=0;while(--n>=0){var o=t[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function bj(e,t,n,r){if(t){var i=e,o=e,a=o.parentNode.children[0],s=t,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,d=s.hierNode.modifier;while(s=xj(s),o=wj(o),s&&o){i=xj(i),a=wj(a),i.hierNode.ancestor=e;var f=s.hierNode.prelim+d-o.hierNode.prelim-u+r(s,o);f>0&&(kj(Mj(s,e,n),e,f),u+=f,l+=f),d+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!xj(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=d-l),o&&!wj(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=e)}return n}function xj(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function wj(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Mj(e,t,n){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:n}function kj(e,t,n){var r=n/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=r,t.hierNode.shift+=n,t.hierNode.modifier+=n,t.hierNode.prelim+=n,e.hierNode.change+=r}function Sj(e,t){return e.parentNode===t.parentNode?1:2}var Lj=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Tj=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Lj},t.prototype.buildPath=function(e,t){var n=t.childPoints,r=n.length,i=t.parentPoint,o=n[0],a=n[r-1];if(1===r)return e.moveTo(i[0],i[1]),void e.lineTo(o[0],o[1]);var s=t.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=ii(t.forkPosition,1),d=[];d[l]=i[l],d[u]=i[u]+(a[u]-i[u])*c,e.moveTo(i[0],i[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 f=1;f_.x,w||(x-=Math.PI));var k=w?"left":"right",S=s.getModel("label"),L=S.get("rotate"),T=L*(Math.PI/180),D=v.getTextContent();D&&(v.setTextConfig({position:S.get("position")||k,rotation:null==L?-x:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),C="relative"===O?g["concatArray"](a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===O?a.getAncestorsIndices():"descendant"===O?a.getDescendantIndices():null;C&&(Xs(n).focus=C),Aj(i,a,c,n,p,h,m,r),n.__edge&&(n.onHoverStateChange=function(t){if("blur"!==t){var r=a.parentNode&&e.getItemGraphicEl(a.parentNode.dataIndex);r&&r.hoverState===nl||Ml(n.__edge,t)}})}function Aj(e,t,n,r,i,o,a,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),d=e.getOrient(),f=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),m=r.__edge;if("curve"===u)t.parentNode&&t.parentNode!==n&&(m||(m=r.__edge=new dg({shape:Yj(c,d,f,i,i)})),fu(m,{shape:Yj(c,d,f,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=r.height)}this.height=t+1},e.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var t=0,n=this.children,r=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 r=n.getData().tree.root,i=e.targetNode;if(g["isString"](i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}}function Qj(e){var t=[];while(e)e=e.parentNode,e&&t.push(e);return t.reverse()}function eE(e,t){var n=Qj(e);return g["indexOf"](n,t)>=0}function tE(e,t){var n=[];while(e){var r=e.dataIndex;n.push({name:e.name,dataIndex:r,value:t.getRawValue(r)}),e=e.parentNode}return n.reverse(),n}var nE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasSymbolVisual=!0,t.ignoreStyleOnData=!0,t}return p(t,e),t.prototype.getInitialData=function(e){var t={name:e.name,children:e.data},n=e.leaves||{},r=new Xu(n,this,this.ecModel),i=Kj.createTree(t,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t);return n&&n.children.length&&n.isExpand||(e.parentModel=r),e}))}var a=0;i.eachNode("preorder",(function(e){e.depth>a&&(a=e.depth)}));var s=e.expandAndCollapse,l=s&&e.initialTreeDepth>=0?e.initialTreeDepth:a;return i.root.eachNode("preorder",(function(e){var t=e.hostTree.data.getRawDataItem(e.dataIndex);e.isExpand=t&&null!=t.collapsed?!t.collapsed:e.depth<=l})),i.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 r=this.getData().tree,i=r.root.children[0],o=r.getNodeByDataIndex(e),a=o.getValue(),s=o.name;while(o&&o!==i)s=o.parentNode.name+"."+s,o=o.parentNode;return _p("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=tE(r,this),n.collapsed=!r.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}(Xp),rE=nE;function iE(e,t,n){var r,i=[e],o=[];while(r=i.pop())if(o.push(r),r.isExpand){var a=r.children;if(a.length)for(var s=0;s=0;o--)r.push(i[o])}}function aE(e,t){e.eachSeriesByType("tree",(function(e){sE(e,t)}))}function sE(e,t){var n=yj(e,t);e.layoutInfo=n;var r=e.get("layout"),i=0,o=0,a=null;"radial"===r?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=gj((function(e,t){return(e.parentNode===t.parentNode?1:2)/e.depth}))):(i=n.width,o=n.height,a=gj());var s=e.getData().tree.root,l=s.children[0];if(l){hj(s),iE(l,pj,a),s.hierNode.modifier=-l.hierNode.prelim,oE(l,mj);var u=l,c=l,d=l;oE(l,(function(e){var t=e.getLayout().x;tc.getLayout().x&&(c=e),e.depth>d.depth&&(d=e)}));var f=u===c?1:a(u,c)/2,h=f-u.getLayout().x,p=0,m=0,g=0,v=0;if("radial"===r)p=i/(c.getLayout().x+f+h),m=o/(d.depth-1||1),oE(l,(function(e){g=(e.getLayout().x+h)*p,v=(e.depth-1)*m;var t=vj(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+f+h),p=i/(d.depth-1||1),oE(l,(function(e){v=(e.getLayout().x+h)*m,g="LR"===y?(e.depth-1)*p:i-(e.depth-1)*p,e.setLayout({x:g,y:v},!0)}))):"TB"!==y&&"BT"!==y||(p=i/(c.getLayout().x+f+h),m=o/(d.depth-1||1),oE(l,(function(e){g=(e.getLayout().x+h)*p,v="TB"===y?(e.depth-1)*m:o-(e.depth-1)*m,e.setLayout({x:g,y:v},!0)})))}}}function lE(e){e.eachSeriesByType("tree",(function(e){var t=e.getData(),n=t.tree;n.eachNode((function(e){var n=e.getModel(),r=n.getModel("itemStyle").getItemStyle(),i=t.ensureUniqueItemVisual(e.dataIndex,"style");Object(g["extend"])(i,r)}))}))}function uE(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,r=t.getData().tree,i=r.getNodeByDataIndex(n);i.isExpand=!i.isExpand}))})),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},(function(e,t,n){t.eachComponent({mainType:"series",subType:"tree",query:e},(function(t){var r=t.coordinateSystem,i=sj(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}function cE(e){e.registerChartView(Pj),e.registerSeriesModel(rE),e.registerLayout(aE),e.registerVisual(lE),uE(e)}var dE=["treemapZoomToNode","treemapRender","treemapMove"];function fE(e){for(var t=0;t1)n=n.parentNode;var i=qd(e.ecModel,n.name||n.dataIndex+"",r);t.setVisual("decal",i)}))}var pE=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.preventUsingHoverLayer=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};mE(n);var r=e.levels||[],i=this.designatedVisualItemStyle={},o=new Xu({itemStyle:i},this,t);r=e.levels=gE(r,t);var a=g["map"](r||[],(function(e){return new Xu(e,o,t)}),this),s=Kj.createTree(n,this,l);function l(e){e.wrapMethod("getItemModel",(function(e,t){var n=s.getNodeByDataIndex(t),r=n?a[n.depth]:null;return e.parentModel=r||o,e}))}return s.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,t,n){var r=this.getData(),i=this.getRawValue(e),o=r.getName(e);return _p("nameValue",{name:o,value:i})},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treeAncestors=tE(r,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(){hE(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,scaleLimit:null,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}(Xp);function mE(e){var t=0;g["each"](e.children,(function(e){mE(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 gE(e,t){var n=Ai(t.get("color")),r=Ai(t.get(["aria","decal","decals"]));if(n){var i,o;e=e||[],g["each"](e,(function(e){var t=new Xu(e),n=t.get("color"),r=t.get("decal");(t.get(["itemStyle","color"])||n&&"none"!==n)&&(i=!0),(t.get(["itemStyle","decal"])||r&&"none"!==r)&&(o=!0)}));var a=e[0]||(e[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),e}}var vE=pE,yE=8,_E=8,bE=5,xE=function(){function e(e){this.group=new Hr,e.add(this.group)}return e.prototype.render=function(e,t,n,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&n){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,c,l),this._renderContent(e,c,a,s,l,u,r),dd(o,c.pos,c.box)}},e.prototype._prepare=function(e,t,n){for(var r=e;r;r=r.parentNode){var i=Gi(r.getModel().get("name"),""),o=n.getTextRect(i),a=Math.max(o.width+2*yE,t.emptyItemWidth);t.totalWidth+=a+_E,t.renderList.push({node:r,text:i,width:a})}},e.prototype._renderContent=function(e,t,n,r,i,o,a){for(var s=0,l=t.emptyItemWidth,u=e.get(["breadcrumb","height"]),c=ud(t.pos,t.box),d=t.totalWidth,f=t.renderList,h=r.getModel("itemStyle").getItemStyle(),p=f.length-1;p>=0;p--){var m=f[p],v=m.node,y=m.width,_=m.text;d>c.width&&(d-=y-l,y=l,_=null);var b=new Qm({shape:{points:wE(s,0,y,u,p===f.length-1,0===p)},style:Object(g["defaults"])(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new qs({style:Su(i,{text:_})}),textConfig:{position:"inside"},z2:1e4*al,onclick:Object(g["curry"])(a,v)});b.disableLabelAnimation=!0,b.getTextContent().ensureState("emphasis").style=Su(o,{text:_}),b.ensureState("emphasis").style=h,Kl(b,r.get("focus"),r.get("blurScope"),r.get("disabled")),this.group.add(b),ME(b,e,v),s+=y+_E}},e.prototype.remove=function(){this.group.removeAll()},e}();function wE(e,t,n,r,i,o){var a=[[i?e:e-bE,t],[e+n,t],[e+n,t+r],[i?e:e-bE,t+r]];return!o&&a.splice(2,0,[e+n+bE,t+r/2]),!i&&a.push([e,t+r/2]),a}function ME(e,t,n){Xs(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&&tE(n,t)}}var kE=xE,SE=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(e,t,n,r,i){return!this._elExistsMap[e.id]&&(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:t,duration:n,delay:r,easing:i}),!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())},r=0,i=this._storage.length;rOE||Math.abs(e.dy)>OE)){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,r=e.scale;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var a=new Ve(o.x,o.y,o.width,o.height),s=null,l=this._controllerHost;s=l.zoomLimit;var u=l.zoom=l.zoom||1;if(u*=r,s){var c=s.min||0,d=s.max||1/0;u=Math.max(Math.min(d,u),c)}var f=u/l.zoom;l.zoom=u;var h=this.seriesModel.layoutInfo;t-=h.x,n-=h.y;var p=ke();De(p,p,[-t,-n]),Ce(p,p,[f,f]),De(p,p,[t,n]),a.applyTransform(p),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:a.x,y:a.y,width:a.width,height:a.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 r=t.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)t._rootToNode(r);else if("zoomToNode"===n)t._zoomToNode(r);else if("link"===n){var o=i.hostTree.data.getItemModel(i.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&rd(a,s)}}}}}),this)},t.prototype._renderBreadcrumb=function(e,t,n){var r=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 kE(this.group))).render(e,t,n.node,(function(t){"animating"!==r._state&&(eE(e.getViewRoot(),t)?r._rootToNode({node:t}):r._zoomToNode({node:t}))}))},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=HE(),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,r=this.seriesModel.getViewRoot();return r.eachNode({attr:"viewChildren",order:"preorder"},(function(r){var i=this._storage.background[r.getRawIndex()];if(i){var o=i.transformCoordToLocal(e,t),a=i.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:r,offsetX:o[0],offsetY:o[1]}}}),this),n},t.type="treemap",t}(yv);function HE(){return{nodeGroup:[],background:[],content:[]}}function zE(e,t,n,r,i,o,a,s,l,u){if(a){var c=a.getLayout(),d=e.getData(),f=a.getModel();if(d.setItemGraphicEl(a.dataIndex,null),c&&c.isInView){var h=c.width,p=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=f.getModel("itemStyle"),k=f.getModel(["emphasis","itemStyle"]),S=f.getModel(["blur","itemStyle"]),L=f.getModel(["select","itemStyle"]),T=M.get("borderRadius")||0,D=B("nodeGroup",TE);if(D){if(l.add(D),D.x=c.x||0,D.y=c.y||0,D.markRedraw(),NE(D).nodeWidth=h,NE(D).nodeHeight=p,c.isAboveViewRoot)return D;var O=B("background",DE,u,jE);O&&N(D,O,w&&c.upperLabelHeight);var C=f.getModel("emphasis"),A=C.get("focus"),I=C.get("blurScope"),j=C.get("disabled"),E="ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():A;if(w)ru(D)&&nu(D,!1),O&&(nu(O,!j),d.setItemGraphicEl(a.dataIndex,O),Jl(O,E,I));else{var Y=B("content",DE,u,EE);Y&&R(D,Y),O.disableMorphing=!0,O&&ru(O)&&nu(O,!1),nu(D,!j),d.setItemGraphicEl(a.dataIndex,D);var P=f.getShallow("cursor");P&&Y.attr("cursor",P),Jl(D,E,I)}return D}}}function N(t,n,r){var i=Xs(n);if(i.dataIndex=a.dataIndex,i.seriesIndex=e.seriesIndex,n.setShape({x:0,y:0,width:h,height:p,r:T}),v)H(n);else{n.invisible=!1;var o=a.getVisual("style"),s=o.stroke,l=PE(M);l.fill=s;var u=YE(k);u.fill=k.get("borderColor");var c=YE(S);c.fill=S.get("borderColor");var d=YE(L);if(d.fill=L.get("borderColor"),r){var f=h-2*m;z(n,s,o.opacity,{x:m,y:0,width:f,height:x})}else n.removeTextContent();n.setStyle(l),n.ensureState("emphasis").style=u,n.ensureState("blur").style=c,n.ensureState("select").style=d,Ol(n)}t.add(n)}function R(t,n){var r=Xs(n);r.dataIndex=a.dataIndex,r.seriesIndex=e.seriesIndex;var i=Math.max(h-2*m,0),o=Math.max(p-2*m,0);if(n.culling=!0,n.setShape({x:m,y:m,width:i,height:o,r:T}),v)H(n);else{n.invisible=!1;var s=a.getVisual("style"),l=s.fill,u=PE(M);u.fill=l,u.decal=s.decal;var c=YE(k),d=YE(S),f=YE(L);z(n,l,s.opacity,null),n.setStyle(u),n.ensureState("emphasis").style=c,n.ensureState("blur").style=d,n.ensureState("select").style=f,Ol(n)}t.add(n)}function H(e){!e.invisible&&o.push(e)}function z(t,n,r,i){var o=f.getModel(i?AE:CE),s=Gi(f.get("name"),null),l=o.getShallow("show");Mu(t,ku(f,i?AE:CE),{defaultText:l?s:null,inheritColor:n,defaultOpacity:r,labelFetcher:e,labelDataIndex:a.dataIndex});var u=t.getTextContent();if(u){var d=u.style,h=Object(g["normalizeCssArray"])(d.padding||0);i&&(t.setTextConfig({layoutRect:i}),u.disableLabelLayout=!0),u.beforeUpdate=function(){var e=Math.max((i?i.width:t.shape.width)-h[1]-h[3],0),n=Math.max((i?i.height:t.shape.height)-h[0]-h[2],0);d.width===e&&d.height===n||u.setStyle({width:e,height:n})},d.truncateMinChar=2,d.lineOverflow="truncate",F(d,i,c);var p=u.getState("emphasis");F(p?p.style:null,i,c)}}function F(t,n,r){var i=t?t.text:null;if(!n&&r.isLeafRoot&&null!=i){var o=e.get("drillDownIcon",!0);t.text=o?o+" "+i:i}}function B(e,r,o,a){var s=null!=_&&n[e][_],l=i[e];return s?(n[e][_]=null,W(l,s)):v||(s=new r,s instanceof aa&&(s.z2=FE(o,a)),V(l,s)),t[e][y]=s}function W(e,t){var n=e[y]={};t instanceof TE?(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 Hr;if(o&&(!r||"drillDown"===r.direction)){var l=0,u=0,c=i.background[o.getRawIndex()];!r&&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 FE(e,t){return e*IE+t}var BE=RE,WE=g["each"],VE=g["isObject"],GE=-1,$E=function(){function e(t){var n=t.mappingMethod,r=t.type,i=this.option=g["clone"](t);this.type=r,this.mappingMethod=n,this._normalizeData=iY[n];var o=e.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(XE(i),UE(i)):"category"===n?i.categories?qE(i):XE(i,!0):(g["assert"]("linear"!==n||i.dataExtent),XE(i))}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,r){var i,o=g["isArray"](t)?[]:g["isObject"](t)?{}:(i=!0,null);return e.eachVisual(t,(function(e,t){var a=n.call(r,e,t);i?o=a:o[t]=a})),o},e.retrieveVisuals=function(t){var n,r={};return t&&WE(e.visualHandlers,(function(e,i){t.hasOwnProperty(i)&&(r[i]=t[i],n=!0)})),n?r:null},e.prepareVisualTypes=function(e){if(g["isArray"](e))e=e.slice();else{if(!VE(e))return[];var t=[];WE(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 r,i=1/0,o=0,a=t.length;o=0;o--)null==r[o]&&(delete n[t[o]],t.pop())}function XE(e,t){var n=e.visual,r=[];g["isObject"](n)?WE(n,(function(e){r.push(e)})):null!=n&&r.push(n);var i={color:1,symbol:1};t||1!==r.length||i.hasOwnProperty(e.type)||(r[1]=r[0]),rY(e,r)}function ZE(e){return{applyVisual:function(t,n,r){var i=this.mapValueToVisual(t);r("color",e(n("color"),i))},_normalizedToVisual:tY([0,1])}}function KE(e){var t=this.option.visual;return t[Math.round(ri(e,[0,1],[0,t.length-1],!0))]||{}}function JE(e){return function(t,n,r){r(e,this.mapValueToVisual(t))}}function QE(e){var t=this.option.visual;return t[this.option.loop&&e!==GE?e%t.length:e]}function eY(){return this.option.visual[0]}function tY(e){return{linear:function(t){return ri(t,e,this.option.visual,!0)},category:QE,piecewise:function(t,n){var r=nY.call(this,n);return null==r&&(r=ri(t,e,this.option.visual,!0)),r},fixed:eY}}function nY(e){var t=this.option,n=t.pieceList;if(t.hasSpecialVisual){var r=$E.findPieceIndex(e,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function rY(e,t){return e.visual=t,"color"===e.type&&(e.parsedVisual=g["map"](t,(function(e){var t=en["parse"](e);return t||[0,0,0,1]}))),t}var iY={linear:function(e){return ri(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,n=$E.findPieceIndex(e,t,!0);if(null!=n)return ri(n,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?GE:t},fixed:g["noop"]};function oY(e,t,n){return e?t<=n:t=n.length||e===n[e.depth]){var o=vY(i,u,e,t,p,r);cY(e,o,n,r)}}))}else s=fY(u),c.fill=s}}function dY(e,t,n){var r=Object(g["extend"])({},t),i=n.designatedVisualItemStyle;return Object(g["each"])(["color","colorAlpha","colorSaturation"],(function(n){i[n]=t[n];var o=e.get(n);i[n]=null,null!=o&&(r[n]=o)})),r}function fY(e){var t=pY(e,"color");if(t){var n=pY(e,"colorAlpha"),r=pY(e,"colorSaturation");return r&&(t=Object(en["modifyHSL"])(t,null,null,r)),n&&(t=Object(en["modifyAlpha"])(t,n)),t}}function hY(e,t){return null!=t?Object(en["modifyHSL"])(t,null,null,e):null}function pY(e,t){var n=e[t];if(null!=n&&"none"!==n)return n}function mY(e,t,n,r,i,o){if(o&&o.length){var a=gY(t,"color")||null!=i.color&&"none"!==i.color&&(gY(t,"colorAlpha")||gY(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 f=new aY(d);return lY(f).drColorMappingBy=c,f}}}function gY(e,t){var n=e.get(t);return Object(g["isArray"])(n)&&n.length?{name:t,range:n}:null}function vY(e,t,n,r,i,o){var a=Object(g["extend"])({},t);if(i){var s=i.type,l="color"===s&&lY(i).drColorMappingBy,u="index"===l?r:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(e.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var yY=Math.max,_Y=Math.min,bY=g["retrieve"],xY=g["each"],wY=["itemStyle","borderWidth"],MY=["itemStyle","gapWidth"],kY=["upperLabel","show"],SY=["upperLabel","height"],LY={seriesType:"treemap",reset:function(e,t,n,r){var i=n.getWidth(),o=n.getHeight(),a=e.option,s=cd(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=ii(bY(s.width,l[0]),i),c=ii(bY(s.height,l[1]),o),d=r&&r.type,f=["treemapZoomToNode","treemapRootToNode"],h=Jj(r,f,e),p="treemapRender"===d||"treemapMove"===d?r.rootRect:null,m=e.getViewRoot(),v=Qj(m);if("treemapMove"!==d){var y="treemapZoomToNode"===d?EY(e,h,m,u,c):p?[p.width,p.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),TY(m,b,!1,0),x=m.getLayout(),xY(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(YY(s,p,h),!0),e.setLayoutInfo(s),PY(w,new Ve(-s.x,-s.y,i,o),v,m,0)}};function TY(e,t,n,r){var i,o;if(!e.isRemoved()){var a=e.getLayout();i=a.width,o=a.height;var s=e.getModel(),l=s.get(wY),u=s.get(MY)/2,c=NY(s),d=Math.max(l,c),f=l-u,h=d-u;e.setLayout({borderWidth:l,upperHeight:d,upperLabelHeight:c},!0),i=yY(i-2*f,0),o=yY(o-f-h,0);var p=i*o,m=DY(e,s,p,t,n,r);if(m.length){var g={x:f,y:h,width:i,height:o},v=_Y(i,o),y=1/0,_=[];_.area=0;for(var b=0,x=m.length;b=0;l--){var u=i["asc"===r?a-l-1:l].getValue();u/n*ta[1]&&(a[1]=t)}))):a=[NaN,NaN],{sum:r,dataExtent:a}}function IY(e,t,n){for(var r=0,i=1/0,o=0,a=void 0,s=e.length;or&&(r=a));var l=e.area*e.area,u=t*t*n;return l?yY(u*r/l,l/(u*i)):1/0}function jY(e,t,n,r,i){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;(i||c>n[l[a]])&&(c=n[l[a]]);for(var d=0,f=e.length;dhi&&(u=hi),a=o}ur&&(r=t);var o=r%2?r+2:r+3;i=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==r.__position&&"end"!==r.__position){var x=-Math.atan2(v[1],v[0]);u[0].8?"left":c[0]<-.8?"right":"center",f=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":r.x=-c[0]*p+l[0],r.y=-c[1]*m+l[1],d=c[0]>.8?"right":c[0]<-.8?"left":"center",f=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":r.x=p*b+l[0],r.y=l[1]+w,d=v[0]<0?"right":"left",r.originX=-p*b,r.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":r.x=_[0],r.y=_[1]+w,d="center",r.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":r.x=-p*b+u[0],r.y=u[1]+w,d=v[0]>=0?"right":"left",r.originX=p*b,r.originY=-w;break}r.scaleX=r.scaleY=i,r.setStyle({verticalAlign:r.__verticalAlign||f,align:r.__align||d})}}}function M(e,t){var n=e.__specifiedRotation;if(null==n){var r=a.tangentAt(t);e.attr("rotation",(1===t?-1:1)*Math.PI/2-Math.atan2(r[1],r[0]))}else e.attr("rotation",n)}},t}(Hr),OP=DP,CP=function(){function e(e){this.group=new Hr,this._LineCtor=e||OP}return e.prototype.updateData=function(e){var t=this;this._progressiveEls=null;var n=this,r=n.group,i=n._lineData;n._lineData=e,i||r.removeAll();var o=IP(e);e.diff(i).add((function(n){t._doAdd(e,n,o)})).update((function(n,r){t._doUpdate(i,e,r,n,o)})).remove((function(e){r.remove(i.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=IP(e),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t){function n(e){e.isGroup||AP(e)||(e.incremental=!0,e.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var r=e.start;r0}function IP(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:ku(t)}}function jP(e){return isNaN(e[0])||isNaN(e[1])}function EP(e){return e&&!jP(e[0])&&!jP(e[1])}var YP=CP,PP=[],NP=[],RP=[],HP=Wt,zP=R,FP=Math.abs;function BP(e,t,n){for(var r,i=e[0],o=e[1],a=e[2],s=1/0,l=n*n,u=.1,c=.1;c<=.9;c+=.1){PP[0]=HP(i[0],o[0],a[0],c),PP[1]=HP(i[1],o[1],a[1],c);var d=FP(zP(PP,t)-l);d=0?r+=u:r-=u:p>=0?r-=u:r+=u}return r}function WP(e,t){var n=[],r=Ut,i=[[],[],[]],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=[x(l[0]),x(l[1])],l[2]&&l.__original.push(x(l[2])));var d=l.__original;if(null!=l[2]){if(b(i[0],d[0]),b(i[1],d[2]),b(i[2],d[1]),u&&"none"!==u){var f=iP(e.node1),h=BP(i,d[0],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],h,n),i[0][1]=n[3],i[1][1]=n[4]}if(c&&"none"!==c){f=iP(e.node2),h=BP(i,d[1],f*t);r(i[0][0],i[1][0],i[2][0],h,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],h,n),i[1][1]=n[1],i[2][1]=n[2]}b(l[0],i[0]),b(l[1],i[2]),b(l[2],i[1])}else{if(b(o[0],d[0]),b(o[1],d[1]),S(a,o[1],o[0]),E(a,a),u&&"none"!==u){f=iP(e.node1);k(o[0],o[0],a,f*t)}if(c&&"none"!==c){f=iP(e.node2);k(o[1],o[1],a,-f*t)}b(l[0],o[0]),b(l[1],o[1])}}))}function VP(e){return"view"===e.type}var GP=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){var n=new LT,r=new YP,i=this.group;this._controller=new kA(t.getZr()),this._controllerHost={target:i},i.add(n.group),i.add(r.group),this._symbolDraw=n,this._lineDraw=r,this._firstRender=!0},t.prototype.render=function(e,t,n){var r=this,i=e.coordinateSystem;this._model=e;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(VP(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):fu(s,l,e)}WP(e.getGraph(),rP(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,f=e.get(["force","layoutAnimation"]);d&&this._startForceLayoutIteration(d,f);var h=e.get("layout");u.graph.eachNode((function(t){var n=t.dataIndex,i=t.getGraphicEl(),o=t.getModel();if(i){i.off("drag").off("dragend");var a=o.get("draggable");a&&i.on("drag",(function(o){switch(h){case"force":d.warmUp(),!r._layouting&&r._startForceLayoutIteration(d,f),d.setFixed(n),u.setItemLayout(n,[i.x,i.y]);break;case"circular":u.setItemLayout(n,[i.x,i.y]),t.setLayout({fixed:!0},!0),sP(e,"symbolSize",t,[o.offsetX,o.offsetY]),r.updateLayout(e);break;case"none":default:u.setItemLayout(n,[i.x,i.y]),tP(e.getGraph(),e),r.updateLayout(e);break}})).on("dragend",(function(){d&&d.setUnfixed(n)})),i.setDraggable(a,!!o.get("cursor"));var s=o.get(["emphasis","focus"]);"adjacency"===s&&(Xs(i).focus=t.getAdjacentDataIndices())}})),u.graph.eachEdge((function(e){var t=e.getGraphicEl(),n=e.getModel().get(["emphasis","focus"]);t&&"adjacency"===n&&(Xs(t).focus={edge:[e.dataIndex],node:[e.node1.dataIndex,e.node2.dataIndex]})}));var p="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),m=u.getLayout("cx"),g=u.getLayout("cy");u.graph.eachNode((function(e){uP(e,p,m,g)})),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(e,t){var n=this;(function r(){e.step((function(e){n.updateLayout(n._model),(n._layouting=!e)&&(t?n._layoutTimeout=setTimeout(r,16):r())}))})()},t.prototype._updateController=function(e,t,n){var r=this,i=this._controller,o=this._controllerHost,a=this.group;i.setPointerChecker((function(t,r,i){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(r,i)&&!OA(t,n,e)})),VP(e.coordinateSystem)?(i.enable(e.get("roam")),o.zoomLimit=e.get("scaleLimit"),o.zoom=e.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(t){SA(o,t.dx,t.dy),n.dispatchAction({seriesId:e.id,type:"graphRoam",dx:t.dx,dy:t.dy})})).on("zoom",(function(t){LA(o,t.scale,t.originX,t.originY),n.dispatchAction({seriesId:e.id,type:"graphRoam",zoom:t.scale,originX:t.originX,originY:t.originY}),r._updateNodeAndLinkScale(),WP(e.getGraph(),rP(e)),r._lineDraw.updateLayout(),n.updateLabelLayout()}))):i.disable()},t.prototype._updateNodeAndLinkScale=function(){var e=this._model,t=e.getData(),n=rP(e);t.eachItemGraphicEl((function(e,t){e&&e.setSymbolScale(n)}))},t.prototype.updateLayout=function(e){WP(e.getGraph(),rP(e)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(yv),$P=GP;function UP(e){return"_EC_"+e}var qP=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[UP(e)]){var r=new XP(e,t);return r.hostGraph=this,this.nodes.push(r),n[UP(e)]=r,r}},e.prototype.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},e.prototype.getNodeById=function(e){return this._nodesMap[UP(e)]},e.prototype.addEdge=function(e,t,n){var r=this._nodesMap,i=this._edgesMap;if(g["isNumber"](e)&&(e=this.nodes[e]),g["isNumber"](t)&&(t=this.nodes[t]),e instanceof XP||(e=r[UP(e)]),t instanceof XP||(t=r[UP(t)]),e&&t){var o=e.id+"-"+t.id,a=new ZP(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),i[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 XP&&(e=e.id),t instanceof XP&&(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,r=n.length,i=0;i=0&&e.call(t,n[i],i)},e.prototype.eachEdge=function(e,t){for(var n=this.edges,r=n.length,i=0;i=0&&n[i].node1.dataIndex>=0&&n[i].node2.dataIndex>=0&&e.call(t,n[i],i)},e.prototype.breadthFirstTraverse=function(e,t,n,r){if(t instanceof XP||(t=this._nodesMap[UP(t)]),t){for(var i="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}));for(i=0,o=r.length;i=0&&this[e][t].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[e][t].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,n,r)},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"](XP,KP("hostGraph","data")),g["mixin"](ZP,KP("hostGraph","edgeData"));var JP=qP;function QP(e,t,n,r,i){for(var o=new JP(r),a=0;a "+f)),u++)}var h,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)h=vw(e,n);else{var m=yf.get(p),v=m&&m.dimensions||[];g["indexOf"](v,"value")<0&&v.concat(["value"]);var y=ew(e,{coordDimensions:v,encodeDefine:n.getEncode()}).dimensions;h=new Jx(y,n),h.initData(e)}var _=new Jx(["value"],n);return _.initData(l,s),i&&i(h,_),Uj({mainData:h,struct:o,structAttr:"graph",datas:{node:h,edge:_},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var eN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments);var n=this;function r(){return n._categoriesData}this.legendVisualProvider=new gO(r,r),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),Ii(t,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=this;if(r&&n){KY(this);var o=QP(r,n,this,!0,a);return g["each"](o.edges,(function(e){JY(e.node1,e.node2,this,e.dataIndex)}),this),o.data}function a(e,t){e.wrapMethod("getItemModel",(function(e){var t=i._categoriesModels,n=e.getShallow("category"),r=t[n];return r&&(r.parentModel=e.parentModel,e.parentModel=r),e}));var n=Xu.prototype.getModel;function r(e,t){var r=n.call(this,e,t);return r.resolveParentPath=o,r}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=r,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 r=this.getData(),i=this.getDataParams(e,n),o=r.graph.getEdgeByIndex(e),a=r.getName(o.node1.dataIndex),s=r.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),_p("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}var u=Yp({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 Jx(["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}(Xp),tN=eN,nN={type:"graphRoam",event:"graphRoam",update:"none"};function rN(e){e.registerChartView($P),e.registerSeriesModel(tN),e.registerProcessor(HY),e.registerVisual(zY),e.registerVisual(BY),e.registerLayout(nP),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,cP),e.registerLayout(hP),e.registerCoordinateSystem("graphView",{dimensions:UI.dimensions,create:mP}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},g["noop"]),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},g["noop"]),e.registerAction(nN,(function(e,t,n){t.eachComponent({mainType:"series",query:e},(function(t){var r=t.coordinateSystem,i=sj(r,e,void 0,n);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)}))}))}var iN=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),oN=function(e){function t(t){var n=e.call(this,t)||this;return n.type="pointer",n}return p(t,e),t.prototype.getDefaultShape=function(){return new iN},t.prototype.buildPath=function(e,t){var n=Math.cos,r=Math.sin,i=t.r,o=t.width,a=t.angle,s=t.x-n(a)*o*(o>=i/3?1:2),l=t.y-r(a)*o*(o>=i/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+n(a)*o,t.y+r(a)*o),e.lineTo(t.x+n(t.angle)*i,t.y+r(t.angle)*i),e.lineTo(t.x-n(a)*o,t.y-r(a)*o),e.lineTo(s,l)},t}(hs),aN=oN;function sN(e,t){var n=e.get("center"),r=t.getWidth(),i=t.getHeight(),o=Math.min(r,i),a=ii(n[0],t.getWidth()),s=ii(n[1],t.getHeight()),l=ii(e.get("radius"),o/2);return{cx:a,cy:s,r:l}}function lN(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 uN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){this.group.removeAll();var r=e.get(["axisLine","lineStyle","color"]),i=sN(e,n);this._renderMain(e,t,n,r,i),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,t,n,r,i){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?bD:Gm,f=u.get("show"),h=u.getModel("lineStyle"),p=h.get("width"),m=[s,l];Ha(m,!a),s=m[0],l=m[1];for(var v=l-s,y=s,_=[],b=0;f&&b=e&&(0===t?0:r[t-1][0])Math.PI/2&&(H+=Math.PI)):"tangential"===R?H=-S-Math.PI/2:Object(g["isNumber"])(R)&&(H=R*Math.PI/180),0===H?d.add(new qs({style:Su(b,{text:E,x:P,y:N,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:Y}),silent:!0})):d.add(new qs({style:Su(b,{text:E,x:P,y:N,verticalAlign:"middle",align:"center"},{inheritColor:Y}),silent:!0,originX:P,originY:N,rotation:H}))}if(_.get("show")&&A!==x){I=_.get("distance");I=I?I+l:l;for(var z=0;z<=w;z++){u=Math.cos(S),c=Math.sin(S);var F=new ag({shape:{x1:u*(p-I)+f,y1:c*(p-I)+h,x2:u*(p-k-I)+f,y2:c*(p-k-I)+h},silent:!0,style:O});"auto"===O.stroke&&F.setStyle({stroke:r((A+z/w)/x)}),d.add(F),S+=T}S-=T}else S+=L}},t.prototype._renderPointer=function(e,t,n,r,i,o,a,s,l){var u=this.group,c=this._data,d=this._progressEls,f=[],h=e.get(["pointer","show"]),p=e.getModel("progress"),m=p.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 r,o=v.getItemModel(t),a=o.getModel("pointer"),s=ii(a.get("width"),i.r),l=ii(a.get("length"),i.r),u=e.get(["pointer","icon"]),c=a.get("offsetCenter"),d=ii(c[0],i.r),f=ii(c[1],i.r),h=a.get("keepAspect");return r=u?Ay(u,d-s/2,f-l,s,l,null,h):new aN({shape:{angle:-Math.PI/2,width:s,r:l,x:d,y:f}}),r.rotation=-(n+Math.PI/2),r.x=i.cx,r.y=i.cy,r}function k(e,t){var n=p.get("roundCap"),r=n?bD:Gm,a=p.get("overlap"),u=a?p.get("width"):l/v.count(),c=a?i.r-u:i.r-(e+1)*u,d=a?i.r:i.r-e*u,f=new r({shape:{startAngle:o,endAngle:t,cx:i.cx,cy:i.cy,clockwise:s,r0:c,r:d}});return a&&(f.z2=ri(v.get(y,e),[_,b],[100,0],!0)),f}(m||h)&&(v.diff(c).add((function(t){var n=v.get(y,t);if(h){var r=M(t,o);hu(r,{rotation:-((isNaN(+n)?w[0]:ri(n,x,w,!0))+Math.PI/2)},e),u.add(r),v.setItemGraphicEl(t,r)}if(m){var i=k(t,o),a=p.get("clip");hu(i,{shape:{endAngle:ri(n,x,w,a)}},e),u.add(i),Zs(e.seriesIndex,v.dataType,t,i),f[t]=i}})).update((function(t,n){var r=v.get(y,t);if(h){var i=c.getItemGraphicEl(n),a=i?i.rotation:o,s=M(t,a);s.rotation=a,fu(s,{rotation:-((isNaN(+r)?w[0]:ri(r,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,_=k(t,g),b=p.get("clip");fu(_,{shape:{endAngle:ri(r,x,w,b)}},e),u.add(_),Zs(e.seriesIndex,v.dataType,t,_),f[t]=_}})).execute(),v.each((function(e){var t=v.getItemModel(e),n=t.getModel("emphasis"),i=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(h){var s=v.getItemGraphicEl(e),l=v.getItemVisual(e,"style"),u=l.fill;if(s instanceof xs){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",r(ri(v.get(y,e),x,[0,1],!0))),s.z2EmphasisLift=0,tu(s,t),Kl(s,i,o,a)}if(m){var d=f[e];d.useStyle(v.getItemVisual(e,"style")),d.setStyle(t.getModel(["progress","itemStyle"]).getItemStyle()),d.z2EmphasisLift=0,tu(d,t),Kl(d,i,o,a)}})),this._progressEls=f)},t.prototype._renderAnchor=function(e,t){var n=e.getModel("anchor"),r=n.get("show");if(r){var i=n.get("size"),o=n.get("icon"),a=n.get("offsetCenter"),s=n.get("keepAspect"),l=Ay(o,t.cx-i/2+ii(a[0],t.r),t.cy-i/2+ii(a[1],t.r),i,i,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,r,i){var o=this,a=e.getData(),s=a.mapDimension("value"),l=+e.get("min"),u=+e.get("max"),c=new Hr,d=[],f=[],h=e.isAnimationEnabled(),p=e.get(["pointer","showAbove"]);a.diff(this._data).add((function(e){d[e]=new qs({silent:!0}),f[e]=new qs({silent:!0})})).update((function(e,t){d[e]=o._titleEls[t],f[e]=o._detailEls[t]})).execute(),a.each((function(t){var n=a.getItemModel(t),o=a.get(s,t),m=new Hr,g=r(ri(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var y=v.get("offsetCenter"),_=i.cx+ii(y[0],i.r),b=i.cy+ii(y[1],i.r),x=d[t];x.attr({z2:p?0:2,style:Su(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"),k=i.cx+ii(M[0],i.r),S=i.cy+ii(M[1],i.r),L=ii(w.get("width"),i.r),T=ii(w.get("height"),i.r),D=e.get(["progress","show"])?a.getItemVisual(t,"style").fill:g,O=(x=f[t],w.get("formatter"));x.attr({z2:p?0:2,style:Su(w,{x:k,y:S,text:lN(o,O),width:isNaN(L)?null:L,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:D})}),Yu(x,{normal:w},o,(function(e){return lN(e,O)})),h&&Pu(x,t,a,e,{getFormattedLabel:function(e,t,n,r,i,a){return lN(a?a.interpolatedValue:o,O)}}),m.add(x)}c.add(m)})),this.group.add(c),this._titleEls=d,this._detailEls=f},t.type="gauge",t}(yv),cN=uN,dN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.visualStyleAccessPath="itemStyle",n}return p(t,e),t.prototype.getInitialData=function(e,t){return pO(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}(Xp),fN=dN;function hN(e){e.registerChartView(cN),e.registerSeriesModel(fN)}var pN=["itemStyle","opacity"],mN=function(e){function t(t,n){var r=e.call(this)||this,i=r,o=new ng,a=new qs;return i.setTextContent(a),r.setTextGuideLine(o),r.updateData(t,n,!0),r}return p(t,e),t.prototype.updateData=function(e,t,n){var r=this,i=e.hostModel,o=e.getItemModel(t),a=e.getItemLayout(t),s=o.getModel("emphasis"),l=o.get(pN);l=null==l?1:l,n||yu(r),r.useStyle(e.getItemVisual(t,"style")),r.style.lineJoin="round",n?(r.setShape({points:a.points}),r.style.opacity=0,hu(r,{style:{opacity:l}},i,t)):fu(r,{style:{opacity:l},shape:{points:a.points}},i,t),tu(r,o),this._updateLabel(e,t),Kl(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e,t){var n=this,r=this.getTextGuideLine(),i=n.getTextContent(),o=e.hostModel,a=e.getItemModel(t),s=e.getItemLayout(t),l=s.label,u=e.getItemVisual(t,"style"),c=u.fill;Mu(i,ku(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;r.setShape({points:d}),n.textGuideLineConfig={anchor:d?new Ee(d[0][0],d[0][1]):null},fu(i,{style:{x:l.x,y:l.y}},o,t),i.attr({rotation:l.rotation,originX:l.x,originY:l.y,z2:10}),iS(n,oS(a),{stroke:c})},t}(Qm),gN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreLabelLineUpdate=!0,n}return p(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this._data,o=this.group;r.diff(i).add((function(e){var t=new mN(r,e);r.setItemGraphicEl(e,t),o.add(t)})).update((function(e,t){var n=i.getItemGraphicEl(t);n.updateData(r,e),o.add(n),r.setItemGraphicEl(e,n)})).remove((function(t){var n=i.getItemGraphicEl(t);vu(n,e,t)})).execute(),this._data=r},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(yv),vN=gN,yN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new gO(g["bind"](this.getData,this),g["bind"](this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.getInitialData=function(e,t){return pO(this,{coordDimensions:["value"],encodeDefaulter:g["curry"](Nd,this)})},t.prototype._defaultLabelLine=function(e){Ii(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(),r=e.prototype.getDataParams.call(this,t),i=n.mapDimension("value"),o=n.getSum(i);return r.percent=o?+(n.get(i,t)/o*100).toFixed(2):0,r.$vars.push("percent"),r},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}(Xp),_N=yN;function bN(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function xN(e,t){for(var n=e.mapDimension("value"),r=e.mapArray(n,(function(e){return e})),i=[],o="ascending"===t,a=0,s=e.count();aVN)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!this._mouseDownPoint&&UN(this,"mousemove")){var t=this._model,n=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),r=n.behavior;"jump"===r&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===r?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===r?null:{duration:0}})}}};function UN(e,t){var n=e._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===t}var qN=GN,XN=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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}(bd),ZN=XN,KN=function(e){function t(t,n,r,i,o){var a=e.call(this,t,n,r)||this;return a.type=i||"value",a.axisIndex=o,a}return p(t,e),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Ak),JN=KN;function QN(e,t,n,r,i,o){e=e||0;var a=n[1]-n[0];if(null!=i&&(i=tR(i,[0,a])),null!=o&&(o=Math.max(o,null!=i?i:0)),"all"===r){var s=Math.abs(t[1]-t[0]);s=tR(s,[0,a]),i=o=tR(s,[i,o]),r=0}t[0]=tR(t[0],n),t[1]=tR(t[1],n);var l=eR(t,r);t[r]+=e;var u,c=i||0,d=n.slice();return l.sign<0?d[0]+=c:d[1]-=c,t[r]=tR(t[r],d),u=eR(t,r),null!=i&&(u.sign!==l.sign||u.spano&&(t[1-r]=t[r]+u.sign*o),t}function eR(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 tR(e,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,e))}var nR=g["each"],rR=Math.min,iR=Math.max,oR=Math.floor,aR=Math.ceil,sR=oi,lR=Math.PI,uR=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 r=e.dimensions,i=e.parallelAxisIndex;nR(r,(function(e,n){var r=i[n],o=t.getComponent("parallelAxis",r),a=this._axesMap.set(e,new JN(e,IM(o),[0,0],o.get("type"),r)),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,r=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],a=e[i];return o>=n&&o<=n+t.axisLength&&a>=r&&a<=r+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 r=n.getData();nR(this.dimensions,(function(e){var t=this._axesMap.get(e);t.scale.unionExtentFromData(r,r.mapDimension(e)),AM(t.scale,t.model)}),this)}}),this)},e.prototype.resize=function(e,t){this._rect=cd(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,r=["x","y"],i=["width","height"],o=t.get("layout"),a="horizontal"===o?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=cR(t.get("axisExpandWidth"),l),d=cR(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>d&&d>1&&c>0&&s>0,h=t.get("axisExpandWindow");if(h)e=cR(h[1]-h[0],l),h[1]=h[0]+e;else{e=cR(c*(d-1),l);var p=t.get("axisExpandCenter")||oR(u/2);h=[c*p-e/2],h[1]=h[0]+e}var m=(s-e)/(u-d);m<3&&(m=0);var g=[oR(sR(h[0]/c,1))+1,aR(sR(h[1]/c,1))-1],v=m/c*h[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},e.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,n=this.dimensions,r=this._makeLayoutInfo(),i=r.layout;t.each((function(e){var t=[0,r.axisLength],n=e.inverse?1:0;e.setExtent(t[n],t[1-n])})),nR(n,(function(t,n){var o=(r.axisExpandable?fR:dR)(n,r),a={horizontal:{x:o.position,y:r.axisLength},vertical:{x:0,y:o.position}},s={horizontal:lR/2,vertical:0},l=[a[i].x+e.x,a[i].y+e.y],u=s[i],c=ke();Oe(c,c,u),De(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,r){null==n&&(n=0),null==r&&(r=e.count());var i=this._axesMap,o=this.dimensions,a=[],s=[];g["each"](o,(function(t){a.push(e.mapDimension(t)),s.push(i.get(t).model)}));for(var l=this.hasAxisBrushed(),u=n;ui*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),a*=t.axisExpandWidth/u,a?QN(a,r,o,"all"):l="none";else{var f=r[1]-r[0],h=o[1]*s/f;r=[iR(0,h-f/2)],r[1]=rR(o[1],r[0]+f),r[0]=r[1]-f}return{axisExpandWindow:r,behavior:l}},e}();function cR(e,t){return rR(iR(e,t[0]),t[1])}function dR(e,t){var n=t.layoutLength/(t.axisCount-1);return{position:n*e,axisNameAvailableWidth:n,axisLabelShow:!0}}function fR(e,t){var n,r,i=t.layoutLength,o=t.axisExpandWidth,a=t.axisCount,s=t.axisCollapseWidth,l=t.winInnerIndices,u=s,c=!1;return e=0;n--)ai(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 r=0,i=t.length;rkR}function WR(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function VR(e,t,n,r){var i=new Hr;return i.add(new Cs({name:"main",style:qR(n),silent:!0,draggable:!0,cursor:"move",drift:Object(g["curry"])(QR,e,t,i,["n","s","w","e"]),ondragend:Object(g["curry"])(FR,t,{isEnd:!0})})),Object(g["each"])(r,(function(n){i.add(new Cs({name:n.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Object(g["curry"])(QR,e,t,i,n),ondragend:Object(g["curry"])(FR,t,{isEnd:!0})}))})),i}function GR(e,t,n,r){var i=r.brushStyle.lineWidth||0,o=xR(i,SR),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],d=n[1][1],f=c-o+i/2,h=d-o+i/2,p=c-a,m=d-s,g=p+i,v=m+i;UR(e,t,"main",a,s,p,m),r.transformable&&(UR(e,t,"w",l,u,o,v),UR(e,t,"e",f,u,o,v),UR(e,t,"n",l,u,g,o),UR(e,t,"s",l,h,g,o),UR(e,t,"nw",l,u,o,o),UR(e,t,"ne",f,u,o,o),UR(e,t,"sw",l,h,o,o),UR(e,t,"se",f,h,o,o))}function $R(e,t){var n=t.__brushOption,r=n.transformable,i=t.childAt(0);i.useStyle(qR(n)),i.attr({silent:!r,cursor:r?"move":"default"}),Object(g["each"])([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],(function(n){var i=t.childOfName(n.join("")),o=1===n.length?KR(e,n[0]):JR(e,n);i&&i.attr({silent:!r,invisible:!r,cursor:r?DR[o]+"-resize":null})}))}function UR(e,t,n,r,i,o,a){var s=t.childOfName(n);s&&s.setShape(rH(nH(e,t,[[r,i],[r+o,i+a]])))}function qR(e){return Object(g["defaults"])({strokeNoScale:!0},e.brushStyle)}function XR(e,t,n,r){var i=[bR(e,n),bR(t,r)],o=[xR(e,n),xR(t,r)];return[[i[0],o[0]],[i[1],o[1]]]}function ZR(e){return qg(e.group)}function KR(e,t){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=Zg(n[t],ZR(e));return r[i]}function JR(e,t){var n=[KR(e,t[0]),KR(e,t[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}function QR(e,t,n,r,i,o){var a=n.__brushOption,s=e.toRectRange(a.range),l=tH(t,i,o);Object(g["each"])(r,(function(e){var t=TR[e];s[t[0]][t[1]]+=l[t[0]]})),a.range=e.fromRectRange(XR(s[0][0],s[1][0],s[0][1],s[1][1])),PR(t,n),FR(t,{isEnd:!1})}function eH(e,t,n,r){var i=t.__brushOption.range,o=tH(e,n,r);Object(g["each"])(i,(function(e){e[0]+=o[0],e[1]+=o[1]})),PR(e,t),FR(e,{isEnd:!1})}function tH(e,t,n){var r=e.group,i=r.transformCoordToLocal(t,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function nH(e,t,n){var r=HR(e,t);return r&&r!==_R?r.clipPath(n,e._transform):Object(g["clone"])(n)}function rH(e){var t=bR(e[0][0],e[1][0]),n=bR(e[0][1],e[1][1]),r=xR(e[0][0],e[1][0]),i=xR(e[0][1],e[1][1]);return{x:t,y:n,width:r-t,height:i-n}}function iH(e,t,n){if(e._brushType&&!dH(e,t.offsetX,t.offsetY)){var r=e._zr,i=e._covers,o=RR(e,t,n);if(!e._dragging)for(var a=0;ar.getWidth()||n<0||n>r.getHeight()}var fH={lineX:hH(0),lineY:hH(1),rect:{createCover:function(e,t){function n(e){return e}return VR({toRectRange:n,fromRectRange:n},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=WR(e);return XR(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,n,r){GR(e,t,n,r)},updateCommon:$R,contain:aH},polygon:{createCover:function(e,t){var n=new Hr;return n.add(new ng({name:"main",style:qR(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"])(eH,e,t),ondragend:Object(g["curry"])(FR,e,{isEnd:!0})}))},updateCoverShape:function(e,t,n,r){t.childAt(0).setShape({points:nH(e,t,n)})},updateCommon:$R,contain:aH}};function hH(e){return{createCover:function(t,n){return VR({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=WR(t),r=bR(n[0][e],n[1][e]),i=xR(n[0][e],n[1][e]);return[r,i]},updateCoverShape:function(t,n,r,i){var o,a=HR(t,n);if(a!==_R&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(e);else{var s=t._zr;o=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[r,o];e&&l.reverse(),GR(t,n,l,i)},updateCommon:$R,contain:aH}}var pH=AR;function mH(e){return e=yH(e),function(t){return ev(t,e)}}function gH(e,t){return e=yH(e),function(n){var r=null!=t?t:n,i=r?e.width:e.height,o=r?e.x:e.y;return[o,o+(i||0)]}}function vH(e,t,n){var r=yH(e);return function(e,i){return r.contain(i[0],i[1])&&!OA(e,t,n)}}function yH(e){return Ve.create(e)}var _H=["axisLine","axisTickLabel","axisName"],bH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t,n){e.prototype.init.apply(this,arguments),(this._brushController=new pH(n.getZr())).on("brush",g["bind"](this._onBrush,this))},t.prototype.render=function(e,t,n,r){if(!xH(e,t,r)){this.axisModel=e,this.api=n,this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Hr,this.group.add(this._axisGroup),e.get("show")){var o=MH(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),f=new bC(e,d);g["each"](_H,f.add,f),this._axisGroup.add(f.getGroup()),this._refreshBrushController(d,s,e,o,l,n),Qg(i,this._axisGroup,e)}}},t.prototype._refreshBrushController=function(e,t,n,r,i,o){var a=n.axis.getExtent(),s=a[1]-a[0],l=Math.min(30,.1*Math.abs(s)),u=Ve.create({x:a[0],y:-i/2,width:s,height:i});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:mH(u),isTargetByCursor:vH(u,o,r),getLinearBrushOtherExtent:gH(u,0)}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(wH(n))},t.prototype._onBrush=function(e){var t=e.areas,n=this.axisModel,r=n.axis,i=g["map"](t,(function(e){return[r.coordToData(e.range[0],!0),r.coordToData(e.range[1],!0)]}));(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:i})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(Kp);function xH(e,t,n){return n&&"axisAreaSelect"===n.type&&t.findComponents({mainType:"parallelAxis",query:n})[0]===e}function wH(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 MH(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var kH=bH,SH={type:"axisAreaSelect",event:"axisAreaSelected"};function LH(e){e.registerAction(SH,(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 TH={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function DH(e){e.registerComponentView(qN),e.registerComponentModel(ZN),e.registerCoordinateSystem("parallel",gR),e.registerPreprocessor(FN),e.registerComponentModel(yR),e.registerComponentView(kH),FO(e,"parallel",yR,TH),LH(e)}function OH(e){yx(DH),e.registerChartView(jN),e.registerSeriesModel(NN),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,zN)}var CH=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}(),AH=function(e){function t(t){return e.call(this,t)||this}return p(t,e),t.prototype.getDefaultShape=function(){return new CH},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(){Il(this)},t.prototype.downplay=function(){jl(this)},t}(hs),IH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._focusAdjacencyDisabled=!1,n}return p(t,e),t.prototype.render=function(e,t,n){var r=this,i=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,i.eachEdge((function(t){var n=new AH,r=Xs(n);r.dataIndex=t.dataIndex,r.seriesIndex=e.seriesIndex,r.dataType="edge";var i,a,u,f,h,p,m,v,y=t.getModel(),_=y.getModel("lineStyle"),b=_.get("curveness"),x=t.node1.getLayout(),w=t.node1.getModel(),M=w.get("localX"),k=w.get("localY"),S=t.node2.getLayout(),L=t.node2.getModel(),T=L.get("localX"),D=L.get("localY"),O=t.getLayout();n.shape.extent=Math.max(1,O.dy),n.shape.orient=d,"vertical"===d?(i=(null!=M?M*s:x.x)+O.sy,a=(null!=k?k*l:x.y)+x.dy,u=(null!=T?T*s:S.x)+O.ty,f=null!=D?D*l:S.y,h=i,p=a*(1-b)+f*b,m=u,v=a*b+f*(1-b)):(i=(null!=M?M*s:x.x)+x.dx,a=(null!=k?k*l:x.y)+O.sy,u=null!=T?T*s:S.x,f=(null!=D?D*l:S.y)+O.ty,h=i*(1-b)+u*b,p=a,m=i*b+u*(1-b),v=f),n.setShape({x1:i,y1:a,x2:u,y2:f,cpx1:h,cpy1:p,cpx2:m,cpy2:v}),n.useStyle(_.getItemStyle()),jH(n.style,d,t);var C=""+y.get("value"),A=ku(y,"edgeLabel");Mu(n,A,{labelFetcher:{getFormattedLabel:function(t,n,r,i,o,a){return e.getFormattedLabel(t,n,"edge",i,Object(g["retrieve3"])(o,A.normal&&A.normal.get("formatter"),C),a)}},labelDataIndex:t.dataIndex,defaultText:C}),n.setTextConfig({position:"inside"});var I=y.getModel("emphasis");tu(n,y,"lineStyle",(function(e){var n=e.getItemStyle();return jH(n,d,t),n})),o.add(n),c.setItemGraphicEl(t.dataIndex,n);var j=I.get("focus");Kl(n,"adjacency"===j?t.getAdjacentDataIndices():"trajectory"===j?t.getTrajectoryDataIndices():j,I.get("blurScope"),I.get("disabled"))})),i.eachNode((function(t){var n=t.getLayout(),r=t.getModel(),i=r.get("localX"),a=r.get("localY"),c=r.getModel("emphasis"),d=r.get(["itemStyle","borderRadius"])||0,f=new Cs({shape:{x:null!=i?i*s:n.x,y:null!=a?a*l:n.y,width:n.dx,height:n.dy,r:d},style:r.getModel("itemStyle").getItemStyle(),z2:10});Mu(f,ku(r),{labelFetcher:{getFormattedLabel:function(t,n){return e.getFormattedLabel(t,n,"node")}},labelDataIndex:t.dataIndex,defaultText:t.id}),f.disableLabelAnimation=!0,f.setStyle("fill",t.getVisual("color")),f.setStyle("decal",t.getVisual("style").decal),tu(f,r),o.add(f),u.setItemGraphicEl(t.dataIndex,f),Xs(f).dataType="node";var h=c.get("focus");Kl(f,"adjacency"===h?t.getAdjacentDataIndices():"trajectory"===h?t.getTrajectoryDataIndices():h,c.get("blurScope"),c.get("disabled"))})),u.eachItemGraphicEl((function(t,i){var o=u.getItemModel(i);o.get("draggable")&&(t.drift=function(t,o){r._focusAdjacencyDisabled=!0,this.shape.x+=t,this.shape.y+=o,this.dirty(),n.dispatchAction({type:"dragNode",seriesId:e.id,dataIndex:u.getRawIndex(i),localX:this.shape.x/s,localY:this.shape.y/l})},t.ondragend=function(){r._focusAdjacencyDisabled=!1},t.draggable=!0,t.cursor="move")})),!this._data&&e.isAnimationEnabled()&&o.setClipPath(EH(o.getBoundingRect(),e,(function(){o.removeClipPath()}))),this._data=e.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(yv);function jH(e,t,n){switch(e.fill){case"source":e.fill=n.node1.getVisual("color"),e.decal=n.node1.getVisual("style").decal;break;case"target":e.fill=n.node2.getVisual("color"),e.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Object(g["isString"])(r)&&Object(g["isString"])(i)&&(e.fill=new bg(0,0,+("horizontal"===t),+("vertical"===t),[{color:r,offset:0},{color:i,offset:1}]))}}function EH(e,t,n){var r=new Cs({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return hu(r,{shape:{width:e.width+20}},t,n),r}var YH=IH,PH=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n=e.edges||e.links||[],r=e.data||e.nodes||[],i=e.levels||[];this.levelModels=[];for(var o=this.levelModels,a=0;a=0&&(o[i[a].depth]=new Xu(i[a],this,t));var s=QP(r,n,this,!0,l);return s.data;function l(e,t){e.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getData().getItemLayout(t);if(r){var i=r.depth,o=n.levelModels[i];o&&(e.parentModel=o)}return e})),t.wrapMethod("getItemModel",(function(e,t){var n=e.parentModel,r=n.getGraph().getEdgeByIndex(t),i=r.node1.getLayout();if(i){var o=i.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,r=n[e];r.localX=t[0],r.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 r(e){return isNaN(e)||null==e}if("edge"===n){var i=this.getDataParams(e,n),o=i.data,a=i.value,s=o.source+" -- "+o.target;return _p("nameValue",{name:s,value:a,noValue:r(a)})}var l=this.getGraph().getNodeByIndex(e),u=l.getLayout().value,c=this.getDataParams(e,n).data.name;return _p("nameValue",{name:null!=c?c+"":null,value:u,noValue:r(u)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(t,n){var r=e.prototype.getDataParams.call(this,t,n);if(null==r.value&&"node"===n){var i=this.getGraph().getNodeByIndex(t),o=i.getLayout().value;r.value=o}return r},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},edgeLabel:{show:!1,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}(Xp),NH=PH;function RH(e,t){e.eachSeriesByType("sankey",(function(e){var n=e.get("nodeWidth"),r=e.get("nodeGap"),i=HH(e,t);e.layoutInfo=i;var o=i.width,a=i.height,s=e.getGraph(),l=s.nodes,u=s.edges;FH(l);var c=g["filter"](l,(function(e){return 0===e.getLayout().value})),d=0!==c.length?0:e.get("layoutIterations"),f=e.get("orient"),h=e.get("nodeAlign");zH(l,u,n,r,o,a,d,f,h)}))}function HH(e,t){return cd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function zH(e,t,n,r,i,o,a,s,l){BH(e,t,n,i,o,s,l),UH(e,t,o,i,r,a,s),az(e,s)}function FH(e){g["each"](e,(function(e){var t=iz(e.outEdges,rz),n=iz(e.inEdges,rz),r=e.getValue()||0,i=Math.max(t,n,r);e.setLayout({value:i},!0)}))}function BH(e,t,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],d=0,f=0;f=0;v&&g.depth>h&&(h=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?h:d-1;a&&"left"!==a&&VH(e,a,o,M);var k="vertical"===o?(i-n)/M:(r-n)/M;$H(e,k,o)}function WH(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return null!=t.depth&&t.depth>=0}function VH(e,t,n,r){if("right"===t){var i=[],o=e,a=0;while(o.length){for(var s=0;s0;o--)l*=.99,KH(s,l,a),ZH(s,i,n,r,a),oz(s,l,a),ZH(s,i,n,r,a)}function qH(e,t){var n=[],r="vertical"===t?"y":"x",i=uo(e,(function(e){return e.getLayout()[r]}));return i.keys.sort((function(e,t){return e-t})),g["each"](i.keys,(function(e){n.push(i.buckets.get(e))})),n}function XH(e,t,n,r,i,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?(r-(t-1)*i)/s:(n-(t-1)*i)/s;l0&&(a=s.getLayout()[o]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[d]+t;var h="vertical"===i?r:n;if(l=u-t-h,l>0){a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a;for(f=c-2;f>=0;--f)s=e[f],l=s.getLayout()[o]+s.getLayout()[d]+t-u,l>0&&(a=s.getLayout()[o]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}}))}function KH(e,t,n){g["each"](e.slice().reverse(),(function(e){g["each"](e,(function(e){if(e.outEdges.length){var r=iz(e.outEdges,JH,n)/iz(e.outEdges,rz);if(isNaN(r)){var i=e.outEdges.length;r=i?iz(e.outEdges,QH,n)/i:0}if("vertical"===n){var o=e.getLayout().x+(r-nz(e,n))*t;e.setLayout({x:o},!0)}else{var a=e.getLayout().y+(r-nz(e,n))*t;e.setLayout({y:a},!0)}}}))}))}function JH(e,t){return nz(e.node2,t)*e.getValue()}function QH(e,t){return nz(e.node2,t)}function ez(e,t){return nz(e.node1,t)*e.getValue()}function tz(e,t){return nz(e.node1,t)}function nz(e,t){return"vertical"===t?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function rz(e){return e.getValue()}function iz(e,t,n){var r=0,i=e.length,o=-1;while(++oo&&(o=t)})),g["each"](n,(function(t){var n=new aY({type:"color",mappingMethod:"linear",dataExtent:[i,o],visual:e.get("color")}),r=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",r),t.setVisual("style",{fill:r}))}))}r.length&&g["each"](r,(function(e){var t=e.getModel().get("lineStyle");e.setVisual("style",t)}))}))}function lz(e){e.registerChartView(YH),e.registerSeriesModel(NH),e.registerLayout(RH),e.registerVisual(sz),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 uz=function(){function e(){}return e.prototype._hasEncodeRule=function(e){var t=this.getEncode();return t&&null!=t.get(e)},e.prototype.getInitialData=function(e,t){var n,r,i=t.getComponent("xAxis",this.get("xAxisIndex")),o=t.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type");"category"===a?(e.layout="horizontal",n=i.getOrdinalMeta(),r=!this._hasEncodeRule("x")):"category"===s?(e.layout="vertical",n=o.getOrdinalMeta(),r=!this._hasEncodeRule("y")):e.layout=e.layout||"horizontal";var l=["x","y"],u="horizontal"===e.layout?0:1,c=this._baseAxisDim=l[u],d=l[1-u],f=[i,o],h=f[u].get("type"),p=f[1-u].get("type"),m=e.data;if(m&&r){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:Lx(h),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:Lx(p),dimsDef:y.slice()}];return pO(this,{coordDimensions:_,dimensionsCount:y.length+1,encodeDefaulter:g["curry"](Pd,_,this)})},e.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},e}(),cz=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 p(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}(Xp);Object(g["mixin"])(cz,uz,!0);var dz=cz,fz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this.group,o=this._data;this._data||i.removeAll();var a="horizontal"===e.get("layout")?1:0;r.diff(o).add((function(e){if(r.hasValue(e)){var t=r.getItemLayout(e),n=mz(t,r,e,a,!0);r.setItemGraphicEl(e,n),i.add(n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(r.hasValue(e)){var s=r.getItemLayout(e);n?(yu(n),gz(s,n,r,e)):n=mz(s,r,e,a),i.add(n),r.setItemGraphicEl(e,n)}else i.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&i.remove(t)})).execute(),this._data=r},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}(yv),hz=function(){function e(){}return e}(),pz=function(e){function t(t){var n=e.call(this,t)||this;return n.type="boxplotBoxPath",n}return p(t,e),t.prototype.getDefaultShape=function(){return new hz},t.prototype.buildPath=function(e,t){var n=t.points,r=0;for(e.moveTo(n[r][0],n[r][1]),r++;r<4;r++)e.lineTo(n[r][0],n[r][1]);for(e.closePath();rm){var x=[y,b];r.push(x)}}}return{boxData:n,outliers:r}}var Sz={type:"echarts:boxplot",transform:function(e){var t=e.upstream;if(t.sourceFormat!==Ld){var n="";0,nf(n)}var r=kz(t.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:r.boxData},{data:r.outliers}]}};function Lz(e){e.registerSeriesModel(dz),e.registerChartView(yz),e.registerLayout(bz),e.registerTransform(Sz)}var Tz=["itemStyle","borderColor"],Dz=["itemStyle","borderColor0"],Oz=["itemStyle","borderColorDoji"],Cz=["itemStyle","color"],Az=["itemStyle","color0"];function Iz(e,t){return t.get(e>0?Cz:Az)}function jz(e,t){return t.get(0===e?Oz:e>0?Tz:Dz)}var Ez={seriesType:"candlestick",plan:Jp(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var n=e.pipelineContext.large;return!n&&{progress:function(e,t){var n;while(null!=(n=e.next())){var r=t.getItemModel(n),i=t.getItemLayout(n).sign,o=r.getItemStyle();o.fill=Iz(i,r),o.stroke=jz(i,r)||o.fill;var a=t.ensureUniqueItemVisual(n,"style");Object(g["extend"])(a,o)}}}}}},Yz=Ez,Pz=["color","borderColor"],Nz=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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,r){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,t):this._incrementalRenderNormal(e,t)},t.prototype.eachRendered=function(e){uv(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,r=this.group,i=t.getLayout("isSimpleBox"),o=e.get("clip",!0),a=e.coordinateSystem,s=a.getArea&&a.getArea();this._data||r.removeAll(),t.diff(n).add((function(n){if(t.hasValue(n)){var a=t.getItemLayout(n);if(o&&Fz(s,a))return;var l=zz(a,n,!0);hu(l,{shape:{points:a.ends}},e,n),Bz(l,t,n,i),r.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&&Fz(s,c)?r.remove(u):(u?(fu(u,{shape:{points:c.ends}},e,a),yu(u)):u=zz(c,a),Bz(u,t,a,i),r.add(u),t.setItemGraphicEl(a,u))}else r.remove(u)})).remove((function(e){var t=n.getItemGraphicEl(e);t&&r.remove(t)})).execute(),this._data=t},t.prototype._renderLarge=function(e){this._clear(),$z(e,this.group);var t=e.get("clip",!0)?BT(e.coordinateSystem,!1,e):null;t?this.group.setClipPath(t):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,t){var n,r=t.getData(),i=r.getLayout("isSimpleBox");while(null!=(n=e.next())){var o=r.getItemLayout(n),a=zz(o,n);Bz(a,r,n,i),a.incremental=!0,this.group.add(a),this._progressiveEls.push(a)}},t.prototype._incrementalRenderLarge=function(e,t){$z(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}(yv),Rz=function(){function e(){}return e}(),Hz=function(e){function t(t){var n=e.call(this,t)||this;return n.type="normalCandlestickBox",n}return p(t,e),t.prototype.getDefaultShape=function(){return new Rz},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}(hs);function zz(e,t,n){var r=e.ends;return new Hz({shape:{points:n?Wz(r,e):r},z2:100})}function Fz(e,t){for(var n=!0,r=0;rm?x[o]:b[o],ends:k,brushRect:O(g,v,h)})}function T(e,n){var r=[];return r[i]=n,r[o]=e,isNaN(n)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function D(e,t,n){var o=t.slice(),a=t.slice();o[i]=Ug(o[i]+r/2,1,!1),a[i]=Ug(a[i]-r/2,1,!0),n?e.push(o,a):e.push(a,o)}function O(e,t,n){var a=T(e,n),s=T(t,n);return a[i]-=r/2,s[i]-=r/2,{x:a[0],y:a[1],width:o?r:s[0]-a[0],height:o?s[1]-a[1]:r}}function C(e){return e[i]=Ug(e[i],1),e}}function p(n,r){var a,l,h=zw(4*n.count),p=0,m=[],g=[],v=r.getStore(),y=!!e.get(["itemStyle","borderColorDoji"]);while(null!=(l=n.next())){var _=v.get(s,l),b=v.get(u,l),x=v.get(c,l),w=v.get(d,l),M=v.get(f,l);isNaN(_)||isNaN(w)||isNaN(M)?(h[p++]=NaN,p+=3):(h[p++]=Qz(v,l,b,x,c,y),m[i]=_,m[o]=w,a=t.dataToPoint(m,null,g),h[p++]=a?a[0]:NaN,h[p++]=a?a[1]:NaN,m[o]=M,a=t.dataToPoint(m,null,g),h[p++]=a?a[1]:NaN)}r.setLayout("largePoints",h)}}};function Qz(e,t,n,r,i,o){var a;return a=n>r?-1:n0?e.get(i,t-1)<=r?1:-1:1,a}function eF(e,t){var n,r=e.getBaseAxis(),i="category"===r.type?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),o=ii(Object(g["retrieve2"])(e.get("barMaxWidth"),i),i),a=ii(Object(g["retrieve2"])(e.get("barMinWidth"),1),i),s=e.get("barWidth");return null!=s?ii(s,i):Math.max(Math.min(i/2,o),a)}var tF=Jz;function nF(e){e.registerChartView(qz),e.registerSeriesModel(Zz),e.registerPreprocessor(Kz),e.registerVisual(Yz),e.registerLayout(tF)}function rF(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 iF=function(e){function t(t,n){var r=e.call(this)||this,i=new xT(t,n),o=new Hr;return r.add(i),r.add(o),r.updateData(t,n),r}return p(t,e),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var t=e.symbolType,n=e.color,r=e.rippleNumber,i=this.childAt(1),o=0;o0&&(o=this._getLineLength(r)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){r.stopAnimation();var c=void 0;c=g["isFunction"](u)?u(n):u,r.__t>0&&(c=-o*r.__t),this._animateSymbol(r,o,c,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},t.prototype._animateSymbol=function(e,t,n,r,i){if(t>0){e.__t=0;var o=this,a=e.animate("",r).when(i?2*t:t,{__t:i?2:1}).delay(n).during((function(){o._updateSymbolPosition(e)}));r||a.done((function(){o.remove(e)})),a.start()}},t.prototype._getLineLength=function(e){return P(e.__p1,e.__cp1)+P(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,r=e.__cp1,i=e.__t<1?e.__t:2-e.__t,o=[e.x,e.y],a=o.slice(),s=Wt,l=Vt;o[0]=s(t[0],r[0],n[0],i),o[1]=s(t[1],r[1],n[1],i);var u=e.__t<1?l(t[0],r[0],n[0],i):l(n[0],r[0],t[0],1-i),c=e.__t<1?l(t[1],r[1],n[1],i):l(n[1],r[1],t[1],1-i);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(r[o]<=t)break;o=Math.min(o,i-2)}else{for(o=a;ot)break;o=Math.min(o-1,i-2)}var l=(t-r[o])/(r[o+1]-r[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],f=e.__t<1?c[1]-u[1]:u[1]-c[1];e.rotation=-Math.atan2(f,d)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=t,e.ignore=!1}},t}(fF),gF=mF,vF=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),yF=function(e){function t(t){var n=e.call(this,t)||this;return n._off=0,n.hoverDataIdx=-1,n}return p(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 vF},t.prototype.buildPath=function(e,t){var n,r=t.segs,i=t.curveness;if(t.polyline)for(n=this._off;n0){e.moveTo(r[n++],r[n++]);for(var a=1;a0){var d=(s+u)/2-(l-c)*i,f=(l+c)/2-(u-s)*i;e.quadraticCurveTo(d,f,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,r=n.segs,i=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=r[s++],c=r[s++],d=1;d0){var p=(u+f)/2-(c-h)*i,m=(c+h)/2-(f-u)*i;if(Va(u,c,p,m,f,h,o,e,t))return a}else if(Ba(u,c,f,h,o,e,t))return a;a++}return-1},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect();if(e=n[0],t=n[1],r.contain(e,t)){var i=this.hoverDataIdx=this.findDataIndex(e,t);return i>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var t=this.shape,n=t.segs,r=1/0,i=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}(),bF=_F,xF={seriesType:"lines",plan:Jp(),reset:function(e){var t=e.coordinateSystem;if(t){var n=e.get("polyline"),r=e.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(r);var u=e.get("clip",!0)&&BT(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 r=e.getData(),i=this._updateLineDraw(r,e);i.incrementalPrepareUpdate(r),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 r=e.getData(),i=e.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var o=wF.reset(e,t,n);o.progress&&o.progress({start:0,end:r.count(),count:r.count()},r),this._lineDraw.updateLayout(),this._clearLayer(n)},t.prototype._updateLineDraw=function(e,t){var n=this._lineDraw,r=this._showEffect(t),i=!!t.get("polyline"),o=t.pipelineContext,a=o.large;return n&&r===this._hasEffet&&i===this._isPolyline&&a===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=a?new bF:new YP(i?r?gF:pF:r?fF:OP),this._hasEffet=r,this._isPolyline=i,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}(yv),kF=MF,SF="undefined"===typeof Uint32Array?Array:Uint32Array,LF="undefined"===typeof Float64Array?Array:Float64Array;function TF(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 DF=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 p(t,e),t.prototype.init=function(t){t.data=t.data||[],TF(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(TF(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],r=this._flatCoordsOffset[2*e+1],i=0;i ")})},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}(Xp),OF=DF;function CF(e){return e instanceof Array||(e=[e,e]),e}var AF={seriesType:"lines",reset:function(e){var t=CF(e.get("symbol")),n=CF(e.get("symbolSize")),r=e.getData();function i(e,t){var n=e.getItemModel(t),r=CF(n.getShallow("symbol",!0)),i=CF(n.getShallow("symbolSize",!0));r[0]&&e.setItemVisual(t,"fromSymbol",r[0]),r[1]&&e.setItemVisual(t,"toSymbol",r[1]),i[0]&&e.setItemVisual(t,"fromSymbolSize",i[0]),i[1]&&e.setItemVisual(t,"toSymbolSize",i[1])}return r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]),{dataEach:r.hasItemOption?i:null}}},IF=AF;function jF(e){e.registerChartView(kF),e.registerSeriesModel(OF),e.registerLayout(wF),e.registerVisual(IF)}var EF=256,YF=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=pr["d"].createCanvas();this.canvas=e}return e.prototype.update=function(e,t,n,r,i,o){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,d=c.getContext("2d"),f=e.length;c.width=t,c.height=n;for(var h=0;h0){var T=o(y)?s:l;y>0&&(y=y*S+M),b[x++]=T[L],b[x++]=T[L+1],b[x++]=T[L+2],b[x++]=T[L+3]*y*256}else x+=4}return d.putImageData(_,0,0),c},e.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=pr["d"].createCanvas()),t=this.pointSize+this.blurSize,n=2*t;e.width=n,e.height=n;var r=e.getContext("2d");return r.clearRect(0,0,n,n),r.shadowOffsetX=n,r.shadowBlur=this.blurSize,r.shadowColor="#000",r.beginPath(),r.arc(-t,t,this.pointSize,0,2*Math.PI,!0),r.closePath(),r.fill(),e},e.prototype._getGradient=function(e,t){for(var n=this._gradientPixels,r=n[t]||(n[t]=new Uint8ClampedArray(1024)),i=[0,0,0,0],o=0,a=0;a<256;a++)e[t](a/255,!0,i),r[o++]=i[0],r[o++]=i[1],r[o++]=i[2],r[o++]=i[3];return r},e}(),PF=YF;function NF(e,t,n){var r=e[1]-e[0];t=g["map"](t,(function(t){return{interval:[(t.interval[0]-e[0])/r,(t.interval[1]-e[0])/r]}}));var i=t.length,o=0;return function(e){var r;for(r=o;r=0;r--){a=t[r].interval;if(a[0]<=e&&e<=a[1]){o=r;break}}return r>=0&&r=t[0]&&e<=t[1]}}function HF(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var zF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r;t.eachComponent("visualMap",(function(t){t.eachTargetSeries((function(n){n===e&&(r=t)}))})),this._progressiveEls=null,this.group.removeAll();var i=e.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(e,n,0,e.getData().count()):HF(i)&&this._renderOnGeo(i,e,r,n)},t.prototype.incrementalPrepareRender=function(e,t,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,t,n,r){var i=t.coordinateSystem;i&&(HF(i)?this.render(t,n,r):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(t,r,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){uv(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,t,n,r,i){var o,a,s,l,u=e.coordinateSystem,c=WT(u,"cartesian2d");if(c){var d=u.getAxis("x"),f=u.getAxis("y");0,o=d.getBandWidth()+.5,a=f.getBandWidth()+.5,s=d.scale.getExtent(),l=f.scale.getExtent()}for(var h=this.group,p=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"]),_=ku(e),b=e.getModel("emphasis"),x=b.get("focus"),w=b.get("blurScope"),M=b.get("disabled"),k=c?[p.mapDimension("x"),p.mapDimension("y"),p.mapDimension("value")]:[p.mapDimension("time"),p.mapDimension("value")],S=n;Ss[1]||Ol[1])continue;var C=u.dataToPoint([D,O]);L=new Cs({shape:{x:C[0]-o/2,y:C[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(p.get(k[1],S)))continue;L=new Cs({z2:1,shape:u.dataToRect([p.get(k[0],S)]).contentShape,style:T})}if(p.hasItemOption){var A=p.getItemModel(S),I=A.getModel("emphasis");m=I.getModel("itemStyle").getItemStyle(),g=A.getModel(["blur","itemStyle"]).getItemStyle(),v=A.getModel(["select","itemStyle"]).getItemStyle(),y=A.get(["itemStyle","borderRadius"]),x=I.get("focus"),w=I.get("blurScope"),M=I.get("disabled"),_=ku(A)}L.shape.r=y;var j=e.getRawValue(S),E="-";j&&null!=j[2]&&(E=j[2]+""),Mu(L,_,{labelFetcher:e,labelDataIndex:S,defaultOpacity:T.opacity,defaultText:E}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=g,L.ensureState("select").style=v,Kl(L,x,w,M),L.incremental=i,i&&(L.states.emphasis.hoverLayer=!0),h.add(L),p.setItemGraphicEl(S,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,t,n,r){var i=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=t.getData(),s=this._hmLayer||this._hmLayer||new PF;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),f=Math.min(l.width+l.x,r.getWidth()),h=Math.min(l.height+l.y,r.getHeight()),p=f-c,m=h-d,g=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(g,(function(t,n,r){var i=e.dataToPoint([t,n]);return i[0]-=c,i[1]-=d,i.push(r),i})),y=n.getExtent(),_="visualMap.continuous"===n.type?RF(y,n.option.range):NF(y,n.getPieceList(),n.option.selected);s.update(v,p,m,i.color.getNormalizer(),{inRange:i.color.getColorMapper(),outOfRange:o.color.getColorMapper()},_);var b=new xs({style:{width:p,height:m,x:c,y:d,image:s.canvas},silent:!0});this.group.add(b)},t.type="heatmap",t}(yv),FF=zF,BF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.getInitialData=function(e,t){return vw(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=yf.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}(Xp),WF=BF;function VF(e){e.registerChartView(FF),e.registerSeriesModel(WF)}var GF=["itemStyle","borderWidth"],$F=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],UF=new km,qF=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=this.group,i=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:$F[+l],categoryDim:$F[1-+l]};i.diff(o).add((function(e){if(i.hasValue(e)){var t=aB(i,e),n=XF(i,e,t,c),o=uB(i,c,n);i.setItemGraphicEl(e,o),r.add(o),mB(o,c,n)}})).update((function(e,t){var n=o.getItemGraphicEl(t);if(i.hasValue(e)){var a=aB(i,e),s=XF(i,e,a,c),l=fB(i,s);n&&l!==n.__pictorialShapeStr&&(r.remove(n),i.setItemGraphicEl(e,null),n=null),n?cB(n,c,s):n=uB(i,c,s,!0),i.setItemGraphicEl(e,n),n.__pictorialSymbolMeta=s,r.add(n),mB(n,c,s)}else r.remove(n)})).remove((function(e){var t=o.getItemGraphicEl(e);t&&dB(o,e,t.__pictorialSymbolMeta.animationModel,t)})).execute();var d=e.get("clip",!0)?BT(e.coordinateSystem,!1,e):null;return d?r.setClipPath(d):r.removeClipPath(),this._data=i,this.group},t.prototype.remove=function(e,t){var n=this.group,r=this._data;e.get("animation")?r&&r.eachItemGraphicEl((function(t){dB(r,Xs(t).dataIndex,e,t)})):n.removeAll()},t.type="pictorialBar",t}(yv);function XF(e,t,n,r){var i=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(),f={dataIndex:t,layout:i,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};ZF(n,o,i,r,f),JF(e,t,i,o,a,f.boundingLength,f.pxSign,c,r,f),QF(n,f.symbolScale,u,r,f);var h=f.symbolSize,p=jy(n.get("symbolOffset"),h);return eB(n,h,i,o,a,p,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,r,f),f}function ZF(e,t,n,r,i){var o,a=r.valueDim,s=e.get("symbolBoundingData"),l=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),u=l.toGlobalCoord(l.dataToCoord(0)),c=1-+(n[a.wh]<=0);if(g["isArray"](s)){var d=[KF(l,s[0])-u,KF(l,s[1])-u];d[1]=0?1:-1:o>0?1:-1}function KF(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function JF(e,t,n,r,i,o,a,s,l,u){var c,d=l.valueDim,f=l.categoryDim,h=Math.abs(n[f.wh]),p=e.getItemVisual(t,"symbolSize");c=g["isArray"](p)?p.slice():null==p?["100%","100%"]:[p,p],c[f.index]=ii(c[f.index],h),c[d.index]=ii(c[d.index],r?h: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 QF(e,t,n,r,i){var o=e.get(GF)||0;o&&(UF.attr({scaleX:t[0],scaleY:t[1],rotation:n}),UF.updateTransform(),o/=UF.getLineScale(),o*=t[r.valueDim.index]),i.valueLineWidth=o||0}function eB(e,t,n,r,i,o,a,s,l,u,c,d){var f=c.categoryDim,h=c.valueDim,p=d.pxSign,m=Math.max(t[h.index]+s,0),v=m;if(r){var y=Math.abs(l),_=g["retrieve"](e.get("symbolMargin"),"15%")+"",b=!1;_.lastIndexOf("!")===_.length-1&&(b=!0,_=_.slice(0,_.length-1));var x=ii(_,t[h.index]),w=Math.max(m+2*x,0),M=b?0:2*x,k=ki(r),S=k?r:gB((y+M)/w),L=y-S*m;x=L/2/(b?S:Math.max(S-1,1)),w=m+2*x,M=b?0:2*x,k||"fixed"===r||(S=u?gB((Math.abs(u)+M)/w):0),v=S*w-M,d.repeatTimes=S,d.symbolMargin=x}var T=p*(v/2),D=d.pathPosition=[];D[f.index]=n[f.wh]/2,D[h.index]="start"===a?T:"end"===a?l-T:l/2,o&&(D[0]+=o[0],D[1]+=o[1]);var O=d.bundlePosition=[];O[f.index]=n[f.xy],O[h.index]=n[h.xy];var C=d.barRectShape=g["extend"]({},n);C[h.wh]=p*Math.max(Math.abs(n[h.wh]),Math.abs(D[h.index]+T)),C[f.wh]=n[f.wh];var A=d.clipShape={};A[f.xy]=-n[f.xy],A[f.wh]=c.ecSize[f.wh],A[h.xy]=0,A[h.wh]=n[h.wh]}function tB(e){var t=e.symbolPatternSize,n=Ay(e.symbolType,-t/2,-t/2,t,t);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function nB(e,t,n,r){var i=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(hB(e,(function(e){e.__pictorialAnimationIndex=c,e.__pictorialRepeatTimes=u,c0:r<0)&&(i=u-1-e),t[l.index]=d*(i-u/2+.5)+s[l.index],{x:t[0],y:t[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function rB(e,t,n,r){var i=e.__pictorialBundle,o=e.__pictorialMainPath;o?pB(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=e.__pictorialMainPath=tB(n),i.add(o),pB(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,r))}function iB(e,t,n){var r=g["extend"]({},t.barRectShape),i=e.__pictorialBarRect;i?pB(i,null,{shape:r},t,n):(i=e.__pictorialBarRect=new Cs({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function oB(e,t,n,r){if(n.symbolClip){var i=e.__pictorialClipPath,o=g["extend"]({},n.clipShape),s=t.valueDim,l=n.animationModel,u=n.dataIndex;if(i)fu(i,{shape:o},l,u);else{o[s.wh]=0,i=new Cs({shape:o}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var c={};c[s.wh]=n.clipShape[s.wh],a[r?"updateProps":"initProps"](i,{shape:c},l,u)}}}function aB(e,t){var n=e.getItemModel(t);return n.getAnimationDelayParams=sB,n.isAnimationEnabled=lB,n}function sB(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function lB(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function uB(e,t,n,r){var i=new Hr,o=new Hr;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?nB(i,t,n):rB(i,t,n),iB(i,n,r),oB(i,t,n,r),i.__pictorialShapeStr=fB(e,n),i.__pictorialSymbolMeta=n,i}function cB(e,t,n){var r=n.animationModel,i=n.dataIndex,o=e.__pictorialBundle;fu(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?nB(e,t,n,!0):rB(e,t,n,!0),iB(e,n,!0),oB(e,t,n,!0)}function dB(e,t,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];hB(r,(function(e){o.push(e)})),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),g["each"](o,(function(e){mu(e,{scaleX:0,scaleY:0},n,t,(function(){r.parent&&r.parent.remove(r)}))})),e.setItemGraphicEl(t,null)}function fB(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function hB(e,t,n){g["each"](e.__pictorialBundle.children(),(function(r){r!==e.__pictorialBarRect&&t.call(n,r)}))}function pB(e,t,n,r,i,o){t&&e.attr(t),r.symbolClip&&!i?n&&e.attr(n):n&&a[i?"updateProps":"initProps"](e,n,r.animationModel,r.dataIndex,o)}function mB(e,t,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),d=o.get("blurScope"),f=o.get("scale");hB(e,(function(e){if(e instanceof xs){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 r=e.ensureState("emphasis");r.style=a,f&&(r.scaleX=1.1*e.scaleX,r.scaleY=1.1*e.scaleY),e.ensureState("blur").style=s,e.ensureState("select").style=l,u&&(e.cursor=u),e.z2=n.z2}));var h=t.valueDim.posDesc[+(n.boundingLength>0)],p=e.__pictorialBarRect;p.ignoreClip=!0,Mu(p,ku(i),{labelFetcher:t.seriesModel,labelDataIndex:r,defaultText:vT(t.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),Kl(e,c,d,o.get("disabled"))}function gB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var vB=qF,yB=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 p(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=ec(mD.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%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(mD),_B=yB;function bB(e){e.registerChartView(vB),e.registerSeriesModel(_B),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Object(g["curry"])(Zw,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Kw("pictorialBar"))}var xB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._layers=[],n}return p(t,e),t.prototype.render=function(e,t,n){var r=e.getData(),i=this,o=this.group,a=e.getLayerSeries(),s=r.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 wx(this._layersSeries||[],a,c,c),f=[];function h(t,n,s){var l=i._layers;if("remove"!==t){for(var u,c,d=[],h=[],p=a[n].indices,m=0;mo&&(o=s),r.push(s)}for(var u=0;uo&&(o=d)}return{y0:i,max:o}}function CB(e){e.registerChartView(MB),e.registerSeriesModel(LB),e.registerLayout(TB),e.registerProcessor(iO("themeRiver"))}var AB=2,IB=4,jB=function(e){function t(t,n,r,i){var o=e.call(this)||this;o.z2=AB,o.textConfig={inside:!0},Xs(o).seriesIndex=n.seriesIndex;var a=new qs({z2:IB,silent:t.getModel().get(["label","silent"])});return o.setTextContent(a),o.updateData(!0,t,n,r,i),o}return p(t,e),t.prototype.updateData=function(e,t,n,r,i){this.node=t,t.piece=this,n=n||this._seriesModel,r=r||this._ecModel;var o=this;Xs(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=b_(d,i));var f=SD(a.getModel("itemStyle"),u,!0);g["extend"](u,f),g["each"](il,(function(e){var t=o.ensureState(e),n=a.getModel([e,"itemStyle"]);t.style=n.getItemStyle();var r=SD(n,u);r&&(t.shape=r)})),e?(o.setShape(u),o.shape.r=l.r0,hu(o,{shape:{r:l.r}},n,t.dataIndex)):(fu(o,{shape:u},n),yu(o)),o.useStyle(c),this._updateLabel(n);var h=a.getShallow("cursor");h&&o.attr("cursor",h),this._seriesModel=n||this._seriesModel,this._ecModel=r||this._ecModel;var p=s.get("focus"),m="relative"===p?g["concatArray"](t.getAncestorsIndices(),t.getDescendantIndices()):"ancestor"===p?t.getAncestorsIndices():"descendant"===p?t.getDescendantIndices():p;Kl(this,m,s.get("blurScope"),s.get("disabled"))},t.prototype._updateLabel=function(e){var t=this,n=this.node.getModel(),r=n.getModel("label"),i=this.node.getLayout(),o=i.endAngle-i.startAngle,a=(i.startAngle+i.endAngle)/2,s=Math.cos(a),l=Math.sin(a),u=this,c=u.getTextContent(),d=this.node.dataIndex,f=r.get("minAngle")/180*Math.PI,h=r.get("show")&&!(null!=f&&Math.abs(o)L&&!mi(D-L)&&D0?(i.virtualPiece?i.virtualPiece.updateData(!1,r,e,t,n):(i.virtualPiece=new EB(r,e,t,n),l.add(i.virtualPiece)),o.piece.off("click"),i.virtualPiece.on("click",(function(e){i._rootToNode(o.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}f(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,r=e.seriesModel.getViewRoot();r.eachNode((function(r){if(!n&&r.piece&&r.piece===t.target){var i=r.getModel().get("nodeClick");if("rootToNode"===i)e._rootToNode(r);else if("link"===i){var o=r.getModel(),a=o.get("link");if(a){var s=o.get("target",!0)||"_blank";rd(a,s)}}n=!0}}))}))},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:YB,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,t){var n=t.getData(),r=n.getItemLayout(0);if(r){var i=e[0]-r.cx,o=e[1]-r.cy,a=Math.sqrt(i*i+o*o);return a<=r.r&&a>=r.r0}},t.type="sunburst",t}(yv),zB=HB,FB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.ignoreStyleOnData=!0,n}return p(t,e),t.prototype.getInitialData=function(e,t){var n={name:e.name,children:e.data};BB(n);var r=this._levelModels=g["map"](e.levels||[],(function(e){return new Xu(e,this,t)}),this),i=Kj.createTree(n,this,o);function o(e){e.wrapMethod("getItemModel",(function(e,t){var n=i.getNodeByDataIndex(t),o=r[n.depth];return o&&(e.parentModel=o),e}))}return i.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(t){var n=e.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(t);return n.treePathInfo=tE(r,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(){hE(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}(Xp);function BB(e){var t=0;g["each"](e.children,(function(e){BB(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 WB=FB,VB=Math.PI/180;function GB(e,t,n){t.eachSeriesByType(e,(function(e){var t=e.get("center"),r=e.get("radius");g["isArray"](r)||(r=[0,r]),g["isArray"](t)||(t=[t,t]);var i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o),s=ii(t[0],i),l=ii(t[1],o),u=ii(r[0],a/2),c=ii(r[1],a/2),d=-e.get("startAngle")*VB,f=e.get("minAngle")*VB,h=e.getData().tree.root,p=e.getViewRoot(),m=p.depth,v=e.get("sort");null!=v&&$B(p,v);var y=0;g["each"](p.children,(function(e){!isNaN(e.getValue())&&y++}));var _=p.getValue(),b=Math.PI/(_||y)*2,x=p.depth>0,w=p.height-(x?-1:1),M=(c-u)/(w||1),k=e.get("clockwise"),S=e.get("stillShowZeroSum"),L=k?1:-1,T=function(t,n){if(t){var r=n;if(t!==h){var i=t.getValue(),o=0===_&&S?b:i*b;o1)i=i.parentNode;var o=n.getColorFromPalette(i.name||i.dataIndex+"",t);return e.depth>1&&Object(g["isString"])(o)&&(o=Object(en["lift"])(o,(e.depth-1)/(r-1)*.5)),o}e.eachSeriesByType("sunburst",(function(e){var t=e.getData(),r=t.tree;r.eachNode((function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle();a.fill||(a.fill=n(i,e,r.root.height));var s=t.ensureUniqueItemVisual(i.dataIndex,"style");Object(g["extend"])(s,a)}))}))}function XB(e){e.registerChartView(zB),e.registerSeriesModel(WB),e.registerLayout(Object(g["curry"])(GB,"sunburst")),e.registerProcessor(Object(g["curry"])(iO,"sunburst")),e.registerVisual(qB),RB(e)}var ZB={color:"fill",borderColor:"stroke"},KB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},JB=Qi(),QB=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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 vw(null,this)},t.prototype.getDataParams=function(t,n,r){var i=e.prototype.getDataParams.call(this,t,n);return r&&(i.info=JB(r).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Xp),eW=QB;function tW(e,t){return t=t||[0,0],g["map"](["x","y"],(function(n,r){var i=this.getAxis(n),o=t[r],a=e[r]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))}),this)}function nW(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"](tW,e)}}}function rW(e,t){return t=t||[0,0],g["map"]([0,1],(function(n){var r=t[n],i=e[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=t[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function iW(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"](rW,e)}}}function oW(e,t){var n=this.getAxis(),r=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function aW(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"])(oW,e)}}}function sW(e,t){return t=t||[0,0],g["map"](["Radius","Angle"],(function(n,r){var i="get"+n+"Axis",o=this[i](),a=t[r],s=e[r]/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 lW(e){var t=e.getRadiusAxis(),n=e.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:r[1],r0:r[0]},api:{coord:function(r){var i=t.dataToRadius(r[0]),o=n.dataToAngle(r[1]),a=e.coordToPoint([i,o]);return a.push(i,o*Math.PI/180),a},size:g["bind"](sW,e)}}}function uW(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 cW(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&"tspan"!==t&&("text"===t||Object(g["hasOwn"])(e,"text")))}function dW(e,t,n){var r,i,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),i={type:"text",style:o,silent:!0},r={};var s=Object(g["hasOwn"])(a,"textPosition");n?r.position=s?a.textPosition:"inside":s&&(r.position=a.textPosition),Object(g["hasOwn"])(a,"textPosition")&&(r.position=a.textPosition),Object(g["hasOwn"])(a,"textOffset")&&(r.offset=a.textOffset),Object(g["hasOwn"])(a,"textRotation")&&(r.rotation=a.textRotation),Object(g["hasOwn"])(a,"textDistance")&&(r.distance=a.textDistance)}return fW(o,e),Object(g["each"])(o.rich,(function(e){fW(e,e)})),{textConfig:r,textContent:i}}function fW(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 hW(e,t,n){var r=e;r.textPosition=r.textPosition||n.position||"inside",null!=n.offset&&(r.textOffset=n.offset),null!=n.rotation&&(r.textRotation=n.rotation),null!=n.distance&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=e.fill||"#000";pW(r,t);var a=null==r.textFill;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),null==r.textStrokeWidth&&(r.textStrokeWidth=2)):(a&&(r.textFill=e.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=t.text,r.rich=t.rich,Object(g["each"])(t.rich,(function(e){pW(e,e)})),r}function pW(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 mW={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},gW=Object(g["keys"])(mW),vW=(Object(g["reduce"])(cr,(function(e,t){return e[t]=1,e}),{}),cr.join(", "),["","style","shape","extra"]),yW=Qi();function _W(e,t,n,r,i){var o=e+"Animation",a=cu(e,r,i)||{},s=yW(t).userDuring;return a.duration>0&&(a.during=s?Object(g["bind"])(OW,{el:t,userDuring:s}):null,a.setToFinal=!0,a.scope=e),Object(g["extend"])(a,n[o]),a}function bW(e,t,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=yW(e),u=t.style;l.userDuring=t.during;var c={},d={};if(jW(e,t,d),AW("shape",t,d),AW("extra",t,d),!o&&s&&(IW(e,t,c),CW("shape",e,t,c),CW("extra",e,t,c),EW(e,t,u,c)),d.style=u,kW(e,d,a),LW(e,t),s)if(o){var f={};Object(g["each"])(vW,(function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(f[e]=f[e]||{}),Object(g["extend"])(e?f[e]:f,n.enterFrom))}));var h=_W("enter",e,t,n,i);h.duration>0&&e.animateFrom(f,h)}else SW(e,t,i||0,n,c);xW(e,t),u?e.dirty():e.markRedraw()}function xW(e,t){for(var n=yW(e).leaveToProps,r=0;r0&&e.animateFrom(i,o)}}function LW(e,t){Object(g["hasOwn"])(t,"silent")&&(e.silent=t.silent),Object(g["hasOwn"])(t,"ignore")&&(e.ignore=t.ignore),e instanceof aa&&Object(g["hasOwn"])(t,"invisible")&&(e.invisible=t.invisible),e instanceof hs&&Object(g["hasOwn"])(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var TW={},DW={setTransform:function(e,t){return TW.el[e]=t,this},getTransform:function(e){return TW.el[e]},setShape:function(e,t){var n=TW.el,r=n.shape||(n.shape={});return r[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=TW.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=TW.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=TW.el.style;if(t)return t[e]},setExtra:function(e,t){var n=TW.el.extra||(TW.el.extra={});return n[e]=t,this},getExtra:function(e){var t=TW.el.extra;if(t)return t[e]}};function OW(){var e=this,t=e.el;if(t){var n=yW(t).userDuring,r=e.userDuring;n===r?(TW.el=t,r(DW)):e.el=e.userDuring=null}}function CW(e,t,n,r){var i=n[e];if(i){var o,a=t[e];if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[e]={}),MW(l))Object(g["extend"])(o,a);else for(var u=Ai(l),c=0;c=0){!o&&(o=r[e]={});var h=Object(g["keys"])(a);for(c=0;c=0)){var f=e.getAnimationStyleProps(),h=f?f.style:null;if(h){!i&&(i=r.style={});var p=Object(g["keys"])(n);for(u=0;u=0?t.getStore().get(i,n):void 0}var o=t.get(r.name,n),a=r&&r.ordinalMeta;return a?a.categories[o]:o}function M(n,r){null==r&&(r=s);var i=t.getItemVisual(r,"style"),o=i&&i.fill,a=i&&i.opacity,l=_(r,FW).getItemStyle();null!=o&&(l.fill=o),null!=a&&(l.opacity=a);var u={inheritColor:Object(g["isString"])(o)?o:"#000"},c=b(r,FW),d=Su(c,null,u,!1,!0);d.text=c.getShallow("show")?Object(g["retrieve2"])(e.getFormattedLabel(r,FW),vT(t,r)):null;var f=Lu(c,u,!1);return L(n,l),l=hW(l,d,f),n&&S(l,n),l.legacy=!0,l}function k(n,r){null==r&&(r=s);var i=_(r,zW).getItemStyle(),o=b(r,zW),a=Su(o,null,null,!0,!0);a.text=o.getShallow("show")?Object(g["retrieve3"])(e.getFormattedLabel(r,zW),e.getFormattedLabel(r,FW),vT(t,r)):null;var l=Lu(o,null,!0);return L(n,i),i=hW(i,a,l),n&&S(i,n),i.legacy=!0,i}function S(e,t){for(var n in t)Object(g["hasOwn"])(t,n)&&(e[n]=t[n])}function L(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"])(ZB,e)){var r=t.getItemVisual(n,"style");return r?r[ZB[e]]:null}if(Object(g["hasOwn"])(KB,e))return t.getItemVisual(n,e)}function D(e){if("cartesian2d"===o.type){var t=o.getBaseAxis();return Vw(Object(g["defaults"])({axis:t},e))}}function O(){return n.getCurrentSeriesIndices()}function C(e){return ju(e,n)}}function lV(e){var t={};return Object(g["each"])(e.dimensions,(function(n){var r=e.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=t[i]=t[i]||[];o[r.coordDimIndex]=e.getDimensionIndex(n)}})),t}function uV(e,t,n,r,i,o,a){if(r){var s=cV(e,t,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Kl(s,r.focus,r.blurScope,r.emphasisDisabled),s}o.remove(t)}function cV(e,t,n,r,i,o){var a=-1,s=t;t&&dV(t,r,i)&&(a=Object(g["indexOf"])(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=nV(r),s&&QW(s,u)),!1===r.morph?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),XW.normal.cfg=XW.normal.conOpt=XW.emphasis.cfg=XW.emphasis.conOpt=XW.blur.cfg=XW.blur.conOpt=XW.select.cfg=XW.select.conOpt=null,XW.isLegacy=!1,hV(u,n,r,i,l,XW),fV(u,n,r,i,l),rV(e,u,n,r,XW,i,l),Object(g["hasOwn"])(r,"info")&&(JB(u).info=r.info);for(var c=0;c=0?o.replaceAt(u,a):o.add(u),u}function dV(e,t,n){var r=JB(e),i=t.type,o=t.shape,a=t.style;return n.isUniversalTransitionEnabled()||null!=i&&i!==r.customGraphicType||"path"===i&&kV(o)&&MV(o)!==r.customPathData||"image"===i&&Object(g["hasOwn"])(a,"image")&&a.image!==r.customImagePath}function fV(e,t,n,r,i){var o=n.clipPath;if(!1===o)e&&e.getClipPath()&&e.removeClipPath();else if(o){var a=e.getClipPath();a&&dV(a,o,r)&&(a=null),a||(a=nV(o),e.setClipPath(a)),rV(null,a,t,o,null,r,i)}}function hV(e,t,n,r,i,o){if(!e.isGroup){pV(n,null,o),pV(n,zW,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=nV(a),e.setTextContent(c)),rV(null,c,t,a,null,r,i);for(var d=a&&a.style,f=0;f=c;h--){var p=t.childAt(h);yV(t,p,i)}}}function yV(e,t,n){t&&wW(t,JB(e).option,n)}function _V(e){new wx(e.oldChildren,e.newChildren,bV,bV,e).add(xV).update(xV).remove(wV).execute()}function bV(e,t){var n=e&&e.name;return null!=n?n:qW+t}function xV(e,t){var n=this.context,r=null!=e?n.newChildren[e]:null,i=null!=t?n.oldChildren[t]:null;cV(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function wV(e){var t=this.context,n=t.oldChildren[e];n&&wW(n,JB(n).option,t.seriesModel)}function MV(e){return e&&(e.pathData||e.d)}function kV(e){return e&&(Object(g["hasOwn"])(e,"pathData")||Object(g["hasOwn"])(e,"d"))}function SV(e){e.registerChartView(tV),e.registerSeriesModel(eW)}var LV=Qi(),TV=g["clone"],DV=g["bind"],OV=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get("value"),o=t.get("status");if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==o){this._lastValue=i,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,i,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"](CV,t,c);this.updatePointerEl(a,l,d),this.updateLabelEl(a,l,d,t)}else a=this._group=new Hr,this.createPointerEl(a,l,e,t),this.createLabelEl(a,l,e,t),n.getZr().add(a);EV(a,t,!0),this._renderHandle(i)}},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"),r=e.axis,i="category"===r.type,o=t.get("snap");if(!o&&!i)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(i&&r.getBandWidth()>a)return!0;if(o){var s=DC(e).seriesDataCount,l=r.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var o=LV(e).pointerEl=new a[i.type](TV(t.pointer));e.add(o)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=LV(e).labelEl=new qs(TV(t.label));e.add(i),IV(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=LV(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=LV(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),IV(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=nv(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(e){ye(e.event)},onmousedown:DV(this._onHandleDragMove,this,0,0),drift:DV(this._onHandleDragMove,this),ondragend:DV(this._onHandleDragEnd,this)}),r.add(i)),EV(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");g["isArray"](s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Mv(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){CV(this._axisPointerModel,!t&&this._moveAnimation,this._handle,jV(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(jV(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(jV(r)),LV(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,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),kv(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 CV(e,t,n,r){AV(LV(n).lastProp,r)||(LV(n).lastProp=r,t?fu(n,r,e):(n.stopAnimation(),n.attr(r)))}function AV(e,t){if(g["isObject"](e)&&g["isObject"](t)){var n=!0;return g["each"](t,(function(t,r){n=n&&AV(e[r],t)})),!!n}return e===t}function IV(e,t){e[t.get(["label","show"])?"show":"hide"]()}function jV(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function EV(e,t,n){var r=t.get("z"),i=t.get("zlevel");e&&e.traverse((function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i),e.silent=n)}))}var YV=OV;function PV(e){var t,n=e.get("type"),r=e.getModel(n+"Style");return"line"===n?(t=r.getLineStyle(),t.fill=null):"shadow"===n&&(t=r.getAreaStyle(),t.stroke=null),t}function NV(e,t,n,r,i){var o=n.get("value"),a=HV(o,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Uc(s.get("padding")||0),u=s.getFont(),c=yr(a,u),d=i.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=i.align;"right"===p&&(d[0]-=f),"center"===p&&(d[0]-=f/2);var m=i.verticalAlign;"bottom"===m&&(d[1]-=h),"middle"===m&&(d[1]-=h/2),RV(d,f,h,r);var g=s.get("backgroundColor");g&&"auto"!==g||(g=t.get(["axisLine","lineStyle","color"])),e.label={x:d[0],y:d[1],style:Su(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function RV(e,t,n,r){var i=r.getWidth(),o=r.getHeight();e[0]=Math.min(e[0]+t,i)-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 HV(e,t,n,r,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:YM(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};g["each"](r,(function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)})),g["isString"](a)?o=a.replace("{value}",o):g["isFunction"](a)&&(o=a(s))}return o}function zV(e,t,n){var r=ke();return Oe(r,r,n.rotation),De(r,r,n.position),Xg([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function FV(e,t,n,r,i,o){var a=bC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),NV(t,r,i,o,{position:zV(r.axis,e,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function BV(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function WV(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}function VV(e,t,n,r,i,o){return{cx:e,cy:t,r0:n,r:r,startAngle:i,endAngle:o,clockwise:!0}}var GV=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.grid,s=r.get("type"),l=$V(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(t,!0));if(s&&"none"!==s){var c=PV(r),d=UV[s](o,u,l);d.style=c,e.graphicKey=d.type,e.pointer=d}var f=KO(a.model,n);FV(t,e,f,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=KO(t.axis.grid.model,t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=zV(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.grid,a=i.getGlobalExtent(!0),s=$V(o,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.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 f=[{verticalAlign:"middle"},{align:"center"}];return{x:u[0],y:u[1],rotation:e.rotation,cursorPoint:d,tooltipOption:f[l]}},t}(YV);function $V(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var UV={line:function(e,t,n){var r=BV([t,n[0]],[t,n[1]],qV(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:WV([t-r/2,n[0]],[r,i],qV(e))}}};function qV(e){return"x"===e.dim?0:1}var XV=GV,ZV=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(bd),KV=ZV,JV=Qi(),QV=g["each"];function eG(e,t,n){if(!m["a"].node){var r=t.getZr();JV(r).records||(JV(r).records={}),tG(r,t);var i=JV(r).records[e]||(JV(r).records[e]={});i.handler=n}}function tG(e,t){function n(n,r){e.on(n,(function(n){var i=oG(t);QV(JV(e).records,(function(e){e&&r(e,n,i.dispatchAction)})),nG(i.pendings,t)}))}JV(e).initialized||(JV(e).initialized=!0,n("click",g["curry"](iG,"click")),n("mousemove",g["curry"](iG,"mousemove")),n("globalout",rG))}function nG(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function rG(e,t,n){e.handler("leave",null,n)}function iG(e,t,n,r){t.handler(e,n,r)}function oG(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function aG(e,t){if(!m["a"].node){var n=t.getZr(),r=(JV(n).records||{})[e];r&&(JV(n).records[e]=null)}}var sG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent("tooltip"),i=e.get("triggerOn")||r&&r.get("triggerOn")||"mousemove|click";eG("axisPointer",n,(function(e,t,n){"none"!==i&&("leave"===e||i.indexOf(e)>=0)&&n({type:"updateAxisPointer",currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})}))},t.prototype.remove=function(e,t){aG("axisPointer",t)},t.prototype.dispose=function(e,t){aG("axisPointer",t)},t.type="axisPointer",t}(Kp),lG=sG;function uG(e,t){var n,r=[],i=e.seriesIndex;if(null==i||!(n=t.getSeriesByIndex(i)))return{point:[]};var o=n.getData(),a=Ji(o,e);if(null==a||a<0||g["isArray"](a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),d=c.dim,f=u.dim,h="x"===d||"radius"===d?1:0,p=o.mapDimension(f),m=[];m[h]=o.get(p,a),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(m)||[]}else r=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),r=[v.x+v.width/2,v.y+v.height/2]}return{point:r,el:s}}var cG=Qi();function dG(e,t,n){var r=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||Object(g["bind"])(n.dispatchAction,n),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){xG(i)&&(i=uG({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=xG(i),u=o.axesInfo,c=s.axesInfo,d="leave"===r||xG(i),f={},h={},p={list:[],map:{}},m={showPointer:Object(g["curry"])(pG,h),showTooltip:Object(g["curry"])(mG,p)};Object(g["each"])(s.coordSysMap,(function(e,t){var n=l||e.containPoint(i);Object(g["each"])(s.coordSysAxesInfo[t],(function(e,t){var r=e.axis,o=_G(u,e);if(!d&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=r.pointToData(i)),null!=a&&fG(e,a,m,!1,f)}}))}));var v={};return Object(g["each"])(c,(function(e,t){var n=e.linkGroup;n&&!h[t]&&Object(g["each"])(n.axesInfo,(function(t,r){var i=h[r];if(t!==e&&i){var o=i.value;n.mapper&&(o=e.axis.scale.parse(n.mapper(o,bG(t),bG(e)))),v[e.key]=o}}))})),Object(g["each"])(v,(function(e,t){fG(c[t],e,m,!0,f)})),gG(h,c,f),vG(p,i,e,a),yG(c,a,n),f}}function fG(e,t,n,r,i){var o=e.axis;if(!o.scale.isBlank()&&o.containData(t))if(e.involveSeries){var a=hG(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Object(g["extend"])(i,s[0]),!r&&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 hG(e,t){var n=t.axis,r=n.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return Object(g["each"])(t.seriesModels,(function(t,l){var u,c,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);c=f.dataIndices,u=f.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 h=e-u,p=Math.abs(h);p<=a&&((p=0&&s<0)&&(a=p,s=h,i=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:i}}function pG(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function mG(e,t,n,r){var i=n.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var l=t.coordSys.model,u=AC(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:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function gG(e,t,n){var r=n.axesInfo=[];Object(g["each"])(t,(function(t,n){var i=t.axisPointerModel.option,o=e[n];o?(!t.useHandle&&(i.status="show"),i.value=o.value,i.seriesDataIndices=(o.payloadBatch||[]).slice()):!t.useHandle&&(i.status="hide"),"show"===i.status&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})}))}function vG(e,t,n,r){if(!xG(t)&&e.list.length){var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}else r({type:"hideTip"})}function yG(e,t,n){var r=n.getZr(),i="axisPointerLastHighlights",o=cG(r)[i]||{},a=cG(r)[i]={};Object(g["each"])(e,(function(e,t){var n=e.axisPointerModel.option;"show"===n.status&&e.triggerEmphasis&&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 _G(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function bG(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function xG(e){return!e||null==e[0]||isNaN(e[0])||null==e[1]||isNaN(e[1])}function wG(e){EC.registerAxisPointerClass("CartesianAxisPointer",XV),e.registerComponentModel(KV),e.registerComponentView(lG),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=xC(e,t)})),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},dG)}function MG(e){yx($C),yx(wG)}var kG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.makeElOption=function(e,t,n,r,i){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=r.get("type");if(c&&"none"!==c){var d=PV(r),f=LG[c](o,a,u,l);f.style=d,e.graphicKey=f.type,e.pointer=f}var h=r.get(["label","margin"]),p=SG(t,n,r,a,h);NV(e,n,r,i,p)},t}(YV);function SG(e,t,n,r,i){var o=t.axis,a=o.dataToCoord(e),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l,u,c,d=r.getRadiusAxis().getExtent();if("radius"===o.dim){var f=ke();Oe(f,f,s),De(f,f,[r.cx,r.cy]),l=Xg([a,-i],f);var h=t.getModel("axisLabel").get("rotate")||0,p=bC.innerTextLayout(s,h*Math.PI/180,-1);u=p.textAlign,c=p.textVerticalAlign}else{var m=d[1];l=r.coordToPoint([m+i,a]);var g=r.cx,v=r.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 LG={line:function(e,t,n,r){return"angle"===e.dim?{type:"Line",shape:BV(t.coordToPoint([r[0],n]),t.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r:n}}},shadow:function(e,t,n,r){var i=Math.max(1,e.getBandWidth()),o=Math.PI/180;return"angle"===e.dim?{type:"Sector",shape:VV(t.cx,t.cy,r[0],r[1],(-n-i/2)*o,(i/2-n)*o)}:{type:"Sector",shape:VV(t.cx,t.cy,n-i/2,n+i/2,0,2*Math.PI)}}},TG=kG,DG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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}(bd),OG=DG,CG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ro).models[0]},t.type="polarAxis",t}(bd);g["mixin"](CG,BM);var AG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="angleAxis",t}(CG),IG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="radiusAxis",t}(CG),jG=function(e){function t(t,n){return e.call(this,"radius",t,n)||this}return p(t,e),t.prototype.pointToData=function(e,t){return this.polar.pointToData(e,t)["radius"===this.dim?0:1]},t}(Ak);jG.prototype.dataToRadius=Ak.prototype.dataToCoord,jG.prototype.radiusToData=Ak.prototype.coordToData;var EG=jG,YG=Qi(),PG=function(e){function t(t,n){return e.call(this,"angle",t,n||[0,360])||this}return p(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,r=n.getExtent(),i=n.count();if(r[1]-r[0]<1)return 0;var o=r[0],a=e.dataToCoord(o+1)-e.dataToCoord(o),s=Math.abs(a),l=yr(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)),f=YG(e.model),h=f.lastAutoInterval,p=f.lastTickCount;return null!=h&&null!=p&&Math.abs(h-d)<=1&&Math.abs(p-i)<=1&&h>d?d=h:(f.lastTickCount=i,f.lastAutoInterval=d),d},t}(Ak);PG.prototype.dataToAngle=Ak.prototype.dataToCoord,PG.prototype.angleToData=Ak.prototype.coordToData;var NG=PG,RG=["radius","angle"],HG=function(){function e(e){this.dimensions=RG,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new EG,this._angleAxis=new NG,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,r=this._radiusAxis;return n.scale.type===e&&t.push(n),r.scale.type===e&&t.push(r),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,r=this.getAngleAxis(),i=r.getExtent(),o=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);r.inverse?o=a-360:a=o+360;var s=Math.sqrt(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,r=Math.cos(n)*t+this.cx,i=-Math.sin(n)*t+this.cy;return[r,i]},e.prototype.getArea=function(){var e=this.getAngleAxis(),t=this.getRadiusAxis(),n=t.getExtent().slice();n[0]>n[1]&&n.reverse();var r=e.getExtent(),i=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-r[0]*i,endAngle:-r[1]*i,clockwise:e.inverse,contain:function(e,t){var n=e-this.cx,r=t-this.cy,i=n*n+r*r,a=this.r,s=this.r0;return a!==s&&i-o<=a*a&&i+o>=s*s}}},e.prototype.convertToPixel=function(e,t,n){var r=zG(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=zG(t);return r===this?this.pointToData(n):null},e}();function zG(e){var t=e.seriesModel,n=e.polarModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var FG=HG;function BG(e,t,n){var r=t.get("center"),i=n.getWidth(),o=n.getHeight();e.cx=ii(r[0],i),e.cy=ii(r[1],o);var a=e.getRadiusAxis(),s=Math.min(i,o)/2,l=t.get("radius");null==l?l=[0,"100%"]:g["isArray"](l)||(l=[0,l]);var u=[ii(l[0],s),ii(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function WG(e,t){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries((function(e){if(e.coordinateSystem===n){var t=e.getData();g["each"](zM(t,"radius"),(function(e){i.scale.unionExtentFromData(t,e)})),g["each"](zM(t,"angle"),(function(e){r.scale.unionExtentFromData(t,e)}))}})),AM(r.scale,r.model),AM(i.scale,i.model),"category"===r.type&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function VG(e){return"angleAxis"===e.mainType}function GG(e,t){var n;if(e.type=t.get("type"),e.scale=IM(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,e.inverse=t.get("inverse"),VG(t)){e.inverse=e.inverse!==t.get("clockwise");var r=t.get("startAngle"),i=null!==(n=t.get("endAngle"))&&void 0!==n?n:r+(e.inverse?-360:360);e.setExtent(r,i)}t.axis=e,e.model=t}var $G={dimensions:RG,create:function(e,t){var n=[];return e.eachComponent("polar",(function(e,r){var i=new FG(r+"");i.update=WG;var o=i.getRadiusAxis(),a=i.getAngleAxis(),s=e.findAxisModel("radiusAxis"),l=e.findAxisModel("angleAxis");GG(o,s),GG(a,l),BG(i,e,t),n.push(i),e.coordinateSystem=i,i.model=e})),e.eachSeries((function(e){if("polar"===e.get("coordinateSystem")){var t=e.getReferringComponents("polar",ro).models[0];0,e.coordinateSystem=t.coordinateSystem}})),n}},UG=$G,qG=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function XG(e,t,n){t[1]>t[0]&&(t=t.slice().reverse());var r=e.coordToPoint([t[0],n]),i=e.coordToPoint([t[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function ZG(e){var t=e.getRadiusAxis();return t.inverse?0:1}function KG(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 JG=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass="PolarAxisPointer",n}return p(t,e),t.prototype.render=function(e,t){if(this.group.removeAll(),e.get("show")){var n=e.axis,r=n.polar,i=r.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=g["map"](n.getViewLabels(),(function(e){e=g["clone"](e);var t=n.scale,r="ordinal"===t.type?t.getRawOrdinalNumber(e.tickValue):e.tickValue;return e.coord=n.dataToCoord(r),e}));KG(s),KG(o),g["each"](qG,(function(t){!e.get([t,"show"])||n.scale.isBlank()&&"axisLine"!==t||QG[t](this.group,e,r,o,a,i,s)}),this)}},t.type="angleAxis",t}(EC),QG={axisLine:function(e,t,n,r,i,o){var s,l=t.getModel(["axisLine","lineStyle"]),u=n.getAngleAxis(),c=Math.PI/180,d=u.getExtent(),f=ZG(n),h=f?0:1,p=360===Math.abs(d[1]-d[0])?"Circle":"Arc";s=0===o[h]?new a[p]({shape:{cx:n.cx,cy:n.cy,r:o[f],startAngle:-d[0]*c,endAngle:-d[1]*c,clockwise:u.inverse},style:l.getLineStyle(),z2:1,silent:!0}):new qm({shape:{cx:n.cx,cy:n.cy,r:o[f],r0:o[h]},style:l.getLineStyle(),z2:1,silent:!0}),s.style.fill=null,e.add(s)},axisTick:function(e,t,n,r,i,o){var a=t.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[ZG(n)],u=g["map"](r,(function(e){return new ag({shape:XG(n,[l,l+s],e.coord)})}));e.add(Wg(u,{style:g["defaults"](a.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,n,r,i,o){if(i.length){for(var a=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[ZG(n)],c=[],d=0;dp?"left":"right",y=Math.abs(h[1]-m)/f<.3?"middle":h[1]>m?"top":"bottom";if(s&&s[d]){var _=s[d];g["isObject"](_)&&_.textStyle&&(a=new Xu(_.textStyle,l,l.ecModel))}var b=new qs({silent:bC.isLabelSilent(t),style:Su(a,{x:h[0],y:h[1],fill:a.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:r.formattedLabel,align:v,verticalAlign:y})});if(e.add(b),c){var x=bC.makeAxisEventDataBase(t);x.targetType="axisLabel",x.value=r.rawLabel,Xs(b).eventData=x}}),this)},splitLine:function(e,t,n,r,i,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",D=w;y&&(r[s][L]||(r[s][L]={p:w,n:w}),D=r[s][L][T]);var O=void 0,C=void 0,A=void 0,I=void 0;if("radius"===d.dim){var j=d.dataToCoord(S)-w,E=o.dataToCoord(L);Math.abs(j)=I})}}}))}function c$(e){var t={};g["each"](e,(function(e,n){var r=e.getData(),i=e.coordinateSystem,o=i.getBaseAxis(),a=l$(i,o),s=o.getExtent(),l="category"===o.type?o.getBandWidth():Math.abs(s[1]-s[0])/r.count(),u=t[a]||{bandWidth:l,remainedWidth:l,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},c=u.stacks;t[a]=u;var d=s$(e);c[d]||u.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var f=ii(e.get("barWidth"),l),h=ii(e.get("barMaxWidth"),l),p=e.get("barGap"),m=e.get("barCategoryGap");f&&!c[d].width&&(f=Math.min(u.remainedWidth,f),c[d].width=f,u.remainedWidth-=f),h&&(c[d].maxWidth=h),null!=p&&(u.gap=p),null!=m&&(u.categoryGap=m)}));var n={};return g["each"](t,(function(e,t){n[t]={};var r=e.stacks,i=e.bandWidth,o=ii(e.categoryGap,i),a=ii(e.gap,1),s=e.remainedWidth,l=e.autoWidthCount,u=(s-o)/(l+(l-1)*a);u=Math.max(u,0),g["each"](r,(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(),r=[],i="horizontal"===t.orient?0:1;return e instanceof Array&&(e=e[0]),r[i]=t.toGlobalCoord(t.dataToCoord(+e)),r[1-i]=0===i?n.y+n.height/2:n.x+n.width/2,r},e.prototype.convertToPixel=function(e,t,n){var r=D$(t);return r===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(e,t,n){var r=D$(t);return r===this?this.pointToData(n):null},e}();function D$(e){var t=e.seriesModel,n=e.singleAxisModel;return n&&n.coordinateSystem||t&&t.coordinateSystem}var O$=T$;function C$(e,t){var n=[];return e.eachComponent("singleAxis",(function(r,i){var o=new O$(r,e,t);o.name="single_"+i,o.resize(r,t),r.coordinateSystem=o,n.push(o)})),e.eachSeries((function(e){if("singleAxis"===e.get("coordinateSystem")){var t=e.getReferringComponents("singleAxis",ro).models[0];e.coordinateSystem=t&&t.coordinateSystem}})),n}var A$={create:C$,dimensions:L$},I$=A$,j$=["x","y"],E$=["width","height"],Y$=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var o=n.axis,a=o.coordinateSystem,s=R$(a,1-N$(o)),l=a.dataToPoint(t)[0],u=r.get("type");if(u&&"none"!==u){var c=PV(r),d=P$[u](o,l,s);d.style=c,e.graphicKey=d.type,e.pointer=d}var f=g$(n);FV(t,e,f,n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=g$(t,{labelInside:!1});r.labelMargin=n.get(["handle","margin"]);var i=zV(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,o=i.coordinateSystem,a=N$(i),s=R$(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=R$(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}(YV),P$={line:function(e,t,n){var r=BV([t,n[0]],[t,n[1]],N$(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=e.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:WV([t-r/2,n[0]],[r,i],N$(e))}}};function N$(e){return e.isHorizontal()?0:1}function R$(e,t){var n=e.getRect();return[n[j$[t]],n[j$[t]]+n[E$[t]]]}var H$=Y$,z$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="single",t}(Kp);function F$(e){yx(wG),EC.registerAxisPointerClass("SingleAxisPointer",H$),e.registerComponentView(z$),e.registerComponentView(x$),e.registerComponentModel(M$),FO(e,"single",M$,M$.defaultOption),e.registerCoordinateSystem("single",I$)}var B$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(t,n,r){var i=md(t);e.prototype.init.apply(this,arguments),W$(t,i)},t.prototype.mergeOption=function(t){e.prototype.mergeOption.apply(this,arguments),W$(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}(bd);function W$(e,t){var n,r=e.cellSize;n=g["isArray"](r)?r:e.cellSize=[r,r],1===n.length&&(n[1]=n[0]);var i=g["map"]([0,1],(function(e){return fd(t,e)&&(n[e]="auto"),null!=n[e]&&"auto"!==n[e]}));pd(e,t,{type:"box",ignoreSize:i})}var V$=B$,G$=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){var r=this.group;r.removeAll();var i=e.coordinateSystem,o=i.getRangeInfo(),a=i.getOrient(),s=t.getLocaleModel();this._renderDayRect(e,o,r),this._renderLines(e,o,a,r),this._renderYearText(e,o,a,r),this._renderMonthText(e,s,a,r),this._renderWeekText(e,s,o,a,r)},t.prototype._renderDayRect=function(e,t,n){for(var r=e.coordinateSystem,i=e.getModel("itemStyle").getItemStyle(),o=r.getCellWidth(),a=r.getCellHeight(),s=t.start.time;s<=t.end.time;s=r.getNextNDay(s,1).time){var l=r.dataToRect([s],!1).tl,u=new Cs({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:i});n.add(u)}},t.prototype._renderLines=function(e,t,n,r){var i=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++){f(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 f(t){i._firstDayOfMonth.push(o.getDateInfo(t)),i._firstDayPoints.push(o.dataToRect([t],!1).tl);var l=i._getLinePointsOfOneWeek(e,t,n);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,r)}f(o.getNextNDay(t.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,n),a,r),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,n),a,r)},t.prototype._getEdgesPoints=function(e,t,n){var r=[e[0].slice(),e[e.length-1].slice()],i="horizontal"===n?0:1;return r[0][i]=r[0][i]-t/2,r[1][i]=r[1][i]+t/2,r},t.prototype._drawSplitline=function(e,t,n){var r=new ng({z2:20,shape:{points:e},style:t});n.add(r)},t.prototype._getLinePointsOfOneWeek=function(e,t,n){for(var r=e.coordinateSystem,i=r.getDateInfo(t),o=[],a=0;a<7;a++){var s=r.getNextNDay(i.time,a),l=r.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?Jc(e,t):Object(g["isFunction"])(e)?e(t):t.nameMap},t.prototype._yearTextPositionControl=function(e,t,n,r,i){var o=t[0],a=t[1],s=["center","bottom"];"bottom"===r?(a+=i,s=["center","top"]):"left"===r?o-=i:"right"===r?(o+=i,s=["center","top"]):a-=i;var l=0;return"left"!==r&&"right"!==r||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},t.prototype._renderYearText=function(e,t,n,r){var i=e.getModel("yearLabel");if(i.get("show")){var o=i.get("margin"),a=i.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]},f=t.start.y;+t.end.y>+t.start.y&&(f=f+"-"+t.end.y);var h=i.get("formatter"),p={start:t.start.y,end:t.end.y,nameMap:f},m=this._formatterLabel(h,p),g=new qs({z2:30,style:Su(i,{text:m}),silent:i.get("silent")});g.attr(this._yearTextPositionControl(g,d[a],n,a,o)),r.add(g)}},t.prototype._monthTextPositionControl=function(e,t,n,r,i){var o="left",a="top",s=e[0],l=e[1];return"horizontal"===n?(l+=i,t&&(o="center"),"start"===r&&(a="bottom")):(s+=i,t&&(a="middle"),"start"===r&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},t.prototype._renderMonthText=function(e,t,n,r){var i=e.getModel("monthLabel");if(i.get("show")){var o=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];o&&!Object(g["isString"])(o)||(o&&(t=dc(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 f="center"===l,h=i.get("silent"),p=0;p=r.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 r=Math.floor(n[1].time/U$)-Math.floor(n[0].time/U$)+1,i=new Date(n[0].time),o=i.getDate(),a=n[1].date.getDate();i.setDate(o+r-1);var s=i.getDate();if(s!==a){var l=i.getTime()-n[1].time>0?1:-1;while((s=i.getDate())!==a&&(i.getTime()-n[1].time)*l>0)r-=l,i.setDate(s-l)}var u=Math.floor((r+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:r,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},e.prototype._getDateByWeeksAndDay=function(e,t,n){var r=this._getRangeInfo(n);if(e>r.weeks||0===e&&tr.lweek)return null;var i=7*(e-1)-r.fweek+t,o=new Date(r.start.time);return o.setDate(+r.start.d+i),this.getDateInfo(o)},e.create=function(t,n){var r=[];return t.eachComponent("calendar",(function(i){var o=new e(i,t,n);r.push(o),i.coordinateSystem=o})),t.eachSeries((function(e){"calendar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("calendarIndex")||0])})),r},e.dimensions=["time","value"],e}();function X$(e){var t=e.calendarModel,n=e.seriesModel,r=t?t.coordinateSystem:n?n.coordinateSystem:null;return r}var Z$=q$;function K$(e){e.registerComponentModel(V$),e.registerComponentView($$),e.registerCoordinateSystem("calendar",Z$)}function J$(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),null==t.parentId){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}function Q$(e,t){var n;return g["each"](t,(function(t){null!=e[t]&&"auto"!==e[t]&&(n=!0)})),n}function eU(e,t,n){var r=g["extend"]({},n),i=e[t],o=n.$action||"merge";"merge"===o?i?(g["merge"](i,r,!0),pd(i,r,{ignoreSize:!0}),gd(n,i),rU(n,i),rU(n,i,"shape"),rU(n,i,"style"),rU(n,i,"extra"),n.clipPath=i.clipPath):e[t]=r:"replace"===o?e[t]=r:"remove"===o&&i&&(e[t]=null)}var tU=["transition","enterFrom","leaveTo"],nU=tU.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function rU(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?tU:nU,i=0;i=0;l--){u=n[l],c=Gi(u.id,null),d=null!=c?i.get(c):null;if(d){f=d.parent,m=sU(f);var v=f===r?{width:o,height:a}:{width:m.width,height:m.height},y={},_=dd(d,u,v,null,{hv:u.hv,boundingMode:u.bounding},y);if(!sU(d).isNew&&_){for(var b=u.transition,x={},w=0;w=0)?x[M]=k:d[M]=k}fu(d,x,e,0)}else d.attr(y)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each((function(n){dU(n,sU(n).option,t,e._lastGraphicModel)})),this._elMap=g["createHashMap"]()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Kp);function uU(e){var t=g["hasOwn"](aU,e)?aU[e]:Hg(e);var n=new t({});return sU(n).type=e,n}function cU(e,t,n,r){var i=uU(n);return t.add(i),r.set(e,i),sU(i).id=e,sU(i).isNew=!0,i}function dU(e,t,n,r){var i=e&&e.parent;i&&("group"===e.type&&e.traverse((function(e){dU(e,t,n,r)})),wW(e,t,r),n.removeKey(sU(e).id))}function fU(e,t,n,r){e.isGroup||g["each"]([["cursor",aa.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],(function(n){var r=n[0];g["hasOwn"](t,r)?e[r]=g["retrieve2"](t[r],n[1]):null==e[r]&&(e[r]=n[1])})),g["each"](g["keys"](t),(function(n){if(0===n.indexOf("on")){var r=t[n];e[n]=g["isFunction"](r)?r:null}})),g["hasOwn"](t,"draggable")&&(e.draggable=t.draggable),null!=t.name&&(e.name=t.name),null!=t.id&&(e.id=t.id)}function hU(e){return e=g["extend"]({},e),g["each"](["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(od),(function(t){delete e[t]})),e}function pU(e,t,n){var r=Xs(e).eventData;e.silent||e.ignore||r||(r=Xs(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}function mU(e){e.registerComponentModel(oU),e.registerComponentView(lU),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 gU=["x","y","radius","angle","single"],vU=["cartesian2d","polar","singleAxis"];function yU(e){var t=e.get("coordinateSystem");return Object(g["indexOf"])(vU,t)>=0}function _U(e){return e+"Axis"}function bU(e,t){var n,r=Object(g["createHashMap"])(),i=[],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),i.push(e),u(e)}function l(e){var t=!1;return e.eachTargetAxis((function(e,n){var i=r.get(e);i&&i[n]&&(t=!0)})),t}function u(e){e.eachTargetAxis((function(e,t){(r.get(e)||r.set(e,[]))[t]=!0}))}return i}function xU(e){var t=e.ecModel,n={infoList:[],infoMap:Object(g["createHashMap"])()};return e.eachTargetAxis((function(e,r){var i=t.getComponent(_U(e),r);if(i){var o=i.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(i)}}})),n}var wU=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}(),MU=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 p(t,e),t.prototype.init=function(e,t,n){var r=kU(e);this.settledOption=r,this.mergeDefaultAndTheme(e,n),this._doInit(r)},t.prototype.mergeOption=function(e){var t=kU(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,r){"value"===this._rangePropMode[r]&&(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"])(gU,(function(n){var r=this.getReferringComponents(_U(n),io);if(r.specified){t=!0;var i=new wU;Object(g["each"])(r.models,(function(e){i.add(e.componentIndex)})),e.set(n,i)}}),this),t},t.prototype._fillAutoTargetAxisByOrient=function(e,t){var n=this.ecModel,r=!0;if(r){var i="vertical"===t?"y":"x",o=n.findComponents({mainType:i+"Axis"});a(o,i)}if(r){o=n.findComponents({mainType:"singleAxis",filter:function(e){return e.get("orient",!0)===t}});a(o,"single")}function a(t,n){var i=t[0];if(i){var o=new wU;if(o.add(i.componentIndex),e.set(n,o),r=!1,"x"===n||"y"===n){var a=i.getReferringComponents("grid",ro).models[0];a&&Object(g["each"])(t,(function(e){i.componentIndex!==e.componentIndex&&a===e.getReferringComponents("grid",ro).models[0]&&o.add(e.componentIndex)}))}}}r&&Object(g["each"])(gU,(function(t){if(r){var i=n.findComponents({mainType:_U(t),filter:function(e){return"category"===e.get("type",!0)}});if(i[0]){var o=new wU;o.add(i[0].componentIndex),e.set(t,o),r=!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(r,i){var o=null!=e[r[0]],a=null!=e[r[1]];o&&!a?t[i]="percent":!o&&a?t[i]="value":n?t[i]=n[i]:o&&(t[i]="percent")}))},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis((function(t,n){null==e&&(e=this.ecModel.getComponent(_U(t),n))}),this),e},t.prototype.eachTargetAxis=function(e,t){this._targetAxisInfoMap.each((function(n,r){Object(g["each"])(n.indexList,(function(n){e.call(t,r,n)}))}))},t.prototype.getAxisProxy=function(e,t){var n=this.getAxisModel(e,t);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,t){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[t])return this.ecModel.getComponent(_U(e),t)},t.prototype.setRawRange=function(e){var t=this.option,n=this.settledOption;Object(g["each"])([["start","startValue"],["end","endValue"]],(function(r){null==e[r[0]]&&null==e[r[1]]||(t[r[0]]=n[r[0]]=e[r[0]],t[r[1]]=n[r[1]]=e[r[1]])}),this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var t=this.option;Object(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(),r=0;ro[1];if(c&&!d&&!f)return!0;c&&(i=!0),d&&(t=!0),f&&(n=!0)}return i&&t&&n}))}else IU(r,(function(n){if("empty"===i)e.setData(t=t.map(n,(function(e){return a(e)?e:NaN})));else{var r={};r[n]=o,t.selectRange(r)}}));IU(r,(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;IU(["min","max"],(function(r){var i=t.get(r+"Span"),o=t.get(r+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?i=ri(n[0]+o,n,[0,100],!0):null!=i&&(o=ri(i,[0,100],n,!0)-n[0]),e[r+"Span"]=i,e[r+"ValueSpan"]=o}),this)},e.prototype._setAxisModel=function(){var e=this.getAxisModel(),t=this._percentWindow,n=this._valueWindow;if(t){var r=ui(n,[0,500]);r=Math.min(r,20);var i=e.axis.scale.rawExtentInfo;0!==t[0]&&i.setDeterminedMinMax("min",+n[0].toFixed(r)),100!==t[1]&&i.setDeterminedMinMax("max",+n[1].toFixed(r)),i.freeze()}},e}();function YU(e,t,n){var r=[1/0,-1/0];IU(n,(function(e){FM(r,e.getData(),t)}));var i=e.getAxisModel(),o=TM(i.axis.scale,i,r).calculate();return[o.min,o.max]}var PU=EU,NU={getTargetSeries:function(e){function t(t){e.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(r,i){var o=e.getComponent(_U(r),i);t(r,i,o,n)}))}))}t((function(e,t,n,r){n.__dzAxisProxy=null}));var n=[];t((function(t,r,i,o){i.__dzAxisProxy||(i.__dzAxisProxy=new PU(t,r,o,e),n.push(i.__dzAxisProxy))}));var r=Object(g["createHashMap"])();return Object(g["each"])(n,(function(e){Object(g["each"])(e.getTargetSeriesModels(),(function(e){r.set(e.uid,e)}))})),r},overallReset:function(e,t){e.eachComponent("dataZoom",(function(e){e.eachTargetAxis((function(t,n){e.getAxisProxy(t,n).reset(e)})),e.eachTargetAxis((function(n,r){e.getAxisProxy(n,r).filterData(e,t)}))})),e.eachComponent("dataZoom",(function(e){var t=e.findRepresentativeAxisProxy();if(t){var n=t.getDataPercentWindow(),r=t.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:r[0],endValue:r[1]})}}))}},RU=NU;function HU(e){e.registerAction("dataZoom",(function(e,t){var n=bU(t,e);Object(g["each"])(n,(function(t){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})}))}))}var zU=!1;function FU(e){zU||(zU=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,RU),HU(e),e.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function BU(e){e.registerComponentModel(TU),e.registerComponentView(AU),FU(e)}var WU=function(){function e(){}return e}(),VU={};function GU(e,t){VU[e]=t}function $U(e){return VU[e]}var UU=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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 r=$U(n);r&&(r.getDefaultOption&&(r.defaultOption=r.getDefaultOption(t)),g["merge"](e,r.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}(bd),qU=UU;function XU(e,t,n){var r=t.getBoxLayoutParams(),i=t.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=cd(r,o,i);ld(t.get("orient"),e,t.get("itemGap"),a.width,a.height),dd(e,r,o,i)}function ZU(e,t){var n=Uc(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Cs({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:r,silent:!0,z2:-1}),e}var KU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(e,t,n,r){var i=this.group;if(i.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 wx(this._featureNames||[],u).add(c).update(c).remove(g["curry"](c,null)).execute(),this._featureNames=u,XU(i,e,n),i.add(ZU(i.getBoundingRect(),e)),a||i.eachChild((function(e){var t=e.__title,r=e.ensureState("emphasis"),a=r.textConfig||(r.textConfig={}),s=e.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!g["isFunction"](l)&&t){var u=l.style||(l.style={}),c=yr(t,qs.makeFont(u)),d=e.x+i.x,f=e.y+i.y+o,h=!1;f+c.height>n.getHeight()&&(a.position="top",h=!0);var p=h?-5-c.height:o+10;d+c.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):d-c.width/2<0&&(a.position=[0,p],u.align="left")}}))}function c(i,o){var a,c=u[i],f=u[o],h=s[c],p=new Xu(h,e,e.ecModel);if(r&&null!=r.newTitle&&r.featureName===c&&(h.title=r.newTitle),c&&!f){if(JU(c))a={onclick:p.option.onclick,featureName:c};else{var m=$U(c);if(!m)return;a=new m}l[c]=a}else if(a=l[f],!a)return;a.uid=Ku("toolbox-feature"),a.model=p,a.ecModel=t,a.api=n;var g=a instanceof WU;c||!f?!p.get("show")||g&&a.unusable?g&&a.remove&&a.remove(t,n):(d(p,a,c),p.setIconStatus=function(e,t){var n=this.option,r=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[e]=t,r[e]&&("emphasis"===t?Il:jl)(r[e])},a instanceof WU&&a.render&&a.render(p,t,n,r)):g&&a.dispose&&a.dispose(t,n)}function d(r,s,l){var u,c,d=r.getModel("iconStyle"),f=r.getModel(["emphasis","iconStyle"]),h=s instanceof WU&&s.getIcons?s.getIcons():r.get("icon"),p=r.get("title")||{};g["isString"](h)?(u={},u[l]=h):u=h,g["isString"](p)?(c={},c[l]=p):c=p;var m=r.iconPaths={};g["each"](u,(function(l,u){var h=nv(l,{},{x:-o/2,y:-o/2,width:o,height:o});h.setStyle(d.getItemStyle());var p=h.ensureState("emphasis");p.style=f.getItemStyle();var v=new qs({style:{text:c[u],align:f.get("textAlign"),borderRadius:f.get("textBorderRadius"),padding:f.get("textPadding"),fill:null,font:ju({fontStyle:f.get("textFontStyle"),fontFamily:f.get("textFontFamily"),fontSize:f.get("textFontSize"),fontWeight:f.get("textFontWeight")},t)},ignore:!0});h.setTextContent(v),sv({el:h,componentModel:e,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var t=f.getItemStyle(),r=a?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";v.setStyle({fill:f.get("textFill")||t.fill||t.stroke||"#000",backgroundColor:f.get("textBackgroundColor")}),h.setTextConfig({position:f.get("textPosition")||r}),v.ignore=!e.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==r.get(["iconStatus",u])&&n.leaveEmphasis(this),v.hide()})),("emphasis"===r.get(["iconStatus",u])?Il:jl)(h),i.add(h),h.on("click",g["bind"](s.onclick,s,t,n,u)),m[u]=h}))}},t.prototype.updateView=function(e,t,n,r){g["each"](this._features,(function(e){e instanceof WU&&e.updateView&&e.updateView(e.model,t,n,r)}))},t.prototype.remove=function(e,t){g["each"](this._features,(function(n){n instanceof WU&&n.remove&&n.remove(e,t)})),this.group.removeAll()},t.prototype.dispose=function(e,t){g["each"](this._features,(function(n){n instanceof WU&&n.dispose&&n.dispose(e,t)}))},t.type="toolbox",t}(Kp);function JU(e){return 0===e.indexOf("my")}var QU=KU,eq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.onclick=function(e,t){var n=this.model,r=n.get("name")||e.get("title.0.text")||"echarts",i="svg"===t.getZr().painter.getType(),o=i?"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("function"!==typeof MouseEvent||!s.newEdge&&(s.ie||s.edge))if(window.navigator.msSaveOrOpenBlob||i){var l=a.split(","),u=l[0].indexOf("base64")>-1,c=i?decodeURIComponent(l[1]):l[1];u&&(c=window.atob(c));var d=r+"."+o;if(window.navigator.msSaveOrOpenBlob){var f=c.length,h=new Uint8Array(f);while(f--)h[f]=c.charCodeAt(f);var p=new Blob([h]);window.navigator.msSaveOrOpenBlob(p,d)}else{var g=document.createElement("iframe");document.body.appendChild(g);var v=g.contentWindow,y=v.document;y.open("image/svg+xml","replace"),y.write(c),y.close(),v.focus(),y.execCommand("SaveAs",!0,d),document.body.removeChild(g)}}else{var _=n.get("lang"),b='',x=window.open();x.document.write(b),x.document.title=r}else{var w=document.createElement("a");w.download=r+"."+o,w.target="_blank",w.href=a;var M=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});w.dispatchEvent(M)}},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}(WU),tq=eq,nq="__ec_magicType_stack__",rq=[["line","bar"],["stack"]],iq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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 r=this.model,i=r.get(["seriesIndex",n]);if(oq[n]){var o,a={series:[]},s=function(e){var t=e.subType,i=e.id,o=oq[n](t,i,e,r);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,ro).models[0],f=d.componentIndex;a[c]=a[c]||[];for(var h=0;h<=f;h++)a[c][f]=a[c][f]||{};a[c][f].boundaryGap="bar"===n}}};g["each"](rq,(function(e){g["indexOf"](e,n)>=0&&g["each"](e,(function(e){r.setIconStatus(e,"normal")}))})),r.setIconStatus(n,"emphasis"),e.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},s);var l=n;"stack"===n&&(o=g["merge"]({stack:r.option.title.tiled,tiled:r.option.title.stack},r.option.title),"emphasis"!==r.get(["iconStatus",n])&&(l="tiled")),t.dispatchAction({type:"changeMagicType",currentType:l,newOption:a,newTitle:o,featureName:"magicType"})}},t}(WU),oq={line:function(e,t,n,r){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")},r.get(["option","line"])||{},!0)},bar:function(e,t,n,r){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")},r.get(["option","bar"])||{},!0)},stack:function(e,t,n,r){var i=n.get("stack")===nq;if("line"===e||"bar"===e)return r.setIconStatus("stack",i?"normal":"emphasis"),g["merge"]({id:t,stack:i?"":nq},r.get(["option","stack"])||{},!0)}};rx({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(e,t){t.mergeOption(e.newOption)}));var aq=iq,sq=new Array(60).join("-"),lq="\t";function uq(e){var t={},n=[],r=[];return e.eachRawSeries((function(e){var i=e.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)n.push(e);else{var o=i.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;t[a]||(t[a]={categoryAxis:o,valueAxis:i.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),t[a].series.push(e)}else n.push(e)}})),{seriesGroupByCategoryAxis:t,other:n,meta:r}}function cq(e){var t=[];return g["each"](e,(function(e,n){var r=e.categoryAxis,i=e.valueAxis,o=i.dim,a=[" "].concat(g["map"](e.series,(function(e){return e.name}))),s=[r.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(lq)],u=0;u=0)return!0}var mq=new RegExp("["+lq+"]+","g");function gq(e){for(var t=e.split(/\n+/g),n=hq(t.shift()).split(mq),r=[],i=g["map"](n,(function(e){return{name:e,data:[]}})),o=0;o=0;i--){var o=n[i];if(o[r])break}if(i<0){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:r})[0];if(a){var s=a.getPercentRange();n[0][r]={dataZoomId:r,start:s[0],end:s[1]}}}})),n.push(t)}function Sq(e){var t=Dq(e),n=t[t.length-1];t.length>1&&t.pop();var r={};return wq(n,(function(e,n){for(var i=t.length-1;i>=0;i--)if(e=t[i][n],e){r[n]=e;break}})),r}function Lq(e){Mq(e).snapshots=null}function Tq(e){return Dq(e).length}function Dq(e){var t=Mq(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var Oq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(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}(WU);rx({type:"restore",event:"restore",update:"prepareAndUpdate"},(function(e,t){t.resetOption("recreate")}));var Cq=Oq,Aq=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],Iq=function(){function e(e,t,n){var r=this;this._targetInfoList=[];var i=Eq(t,e);Object(g["each"])(Yq,(function(e,t){(!n||!n.include||Object(g["indexOf"])(n.include,t)>=0)&&e(i,r._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 r=Rq[e.brushType](0,n,t);e.__rangeOffset={offset:zq[e.brushType](r.values,e.range,[1,1]),xyMinMax:r.xyMinMax}}})),e},e.prototype.matchOutputRanges=function(e,t,n){Object(g["each"])(e,(function(e){var r=this.findTargetInfo(e,t);r&&!0!==r&&Object(g["each"])(r.coordSyses,(function(r){var i=Rq[e.brushType](1,r,e.range,!0);n(e,i.values,r,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 r=Rq[e.brushType](0,n.coordSys,e.coordRange),i=e.__rangeOffset;e.range=i?zq[e.brushType](r.values,i.offset,Bq(r.xyMinMax,i.xyMinMax)):r.values}}),this)},e.prototype.makePanelOpts=function(e,t){return Object(g["map"])(this._targetInfoList,(function(n){var r=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:t?t(n):null,clipPath:mH(r),isTargetByCursor:vH(r,e,n.coordSysModel),getLinearBrushOtherExtent:gH(r)}}))},e.prototype.controlSeries=function(e,t,n){var r=this.findTargetInfo(e,n);return!0===r||r&&Object(g["indexOf"])(r.coordSyses,t.coordinateSystem)>=0},e.prototype.findTargetInfo=function(e,t){for(var n=this._targetInfoList,r=Eq(t,e),i=0;ie[1]&&e.reverse(),e}function Eq(e,t){return to(e,t,{includeMainTypes:Aq})}var Yq={grid:function(e,t){var n=e.xAxisModels,r=e.yAxisModels,i=e.gridModels,o=Object(g["createHashMap"])(),a={},s={};(n||r||i)&&(Object(g["each"])(n,(function(e){var t=e.axis.grid.model;o.set(t.id,t),a[t.id]=!0})),Object(g["each"])(r,(function(e){var t=e.axis.grid.model;o.set(t.id,t),s[t.id]=!0})),Object(g["each"])(i,(function(e){o.set(e.id,e),a[e.id]=!0,s[e.id]=!0})),o.each((function(e){var i=e.coordinateSystem,o=[];Object(g["each"])(i.getCartesians(),(function(e,t){(Object(g["indexOf"])(n,e.getAxis("x").model)>=0||Object(g["indexOf"])(r,e.getAxis("y").model)>=0)&&o.push(e)})),t.push({panelId:"grid--"+e.id,gridModel:e,coordSysModel:e,coordSys:o[0],coordSyses:o,getPanelRect:Nq.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:Nq.geo})}))}},Pq=[function(e,t){var n=e.xAxisModel,r=e.yAxisModel,i=e.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===t.gridModel},function(e,t){var n=e.geoModel;return n&&n===t.geoModel}],Nq={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(qg(e)),t}},Rq={lineX:Object(g["curry"])(Hq,0),lineY:Object(g["curry"])(Hq,1),rect:function(e,t,n,r){var i=e?t.pointToData([n[0][0],n[1][0]],r):t.dataToPoint([n[0][0],n[1][0]],r),o=e?t.pointToData([n[0][1],n[1][1]],r):t.dataToPoint([n[0][1],n[1][1]],r),a=[jq([i[0],o[0]]),jq([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(e,t,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=Object(g["map"])(n,(function(n){var o=e?t.pointToData(n,r):t.dataToPoint(n,r);return i[0][0]=Math.min(i[0][0],o[0]),i[1][0]=Math.min(i[1][0],o[1]),i[0][1]=Math.max(i[0][1],o[0]),i[1][1]=Math.max(i[1][1],o[1]),o}));return{values:o,xyMinMax:i}}};function Hq(e,t,n,r){var i=n.getAxis(["x","y"][e]),o=jq(Object(g["map"])([0,1],(function(e){return t?i.coordToData(i.toLocalCoord(r[e]),!0):i.toGlobalCoord(i.dataToCoord(r[e]))}))),a=[];return a[e]=o,a[1-e]=[NaN,NaN],{values:o,xyMinMax:a}}var zq={lineX:Object(g["curry"])(Fq,0),lineY:Object(g["curry"])(Fq,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,r){return[e[0]-n[0]*t[r][0],e[1]-n[1]*t[r][1]]}))}};function Fq(e,t,n,r){return[t[0]-r[e]*n[0],t[1]-r[e]*n[1]]}function Bq(e,t){var n=Wq(e),r=Wq(t),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function Wq(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var Vq=Iq,Gq=g["each"],$q=qi("toolbox-dataZoom_"),Uq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(e,t,n,r){this._brushController||(this._brushController=new pH(n.getZr()),this._brushController.on("brush",g["bind"](this._onBrush,this)).mount()),Kq(e,t,this,r,n),Zq(e,t)},t.prototype.onclick=function(e,t,n){qq[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={},r=this.ecModel;this._brushController.updateCovers([]);var i=new Vq(Xq(this.model),r,{include:["grid"]});i.matchOutputRanges(t,r,(function(e,t,n){if("cartesian2d"===n.type){var r=e.brushType;"rect"===r?(o("x",n,t[0]),o("y",n,t[1])):o({lineX:"x",lineY:"y"}[r],n,t)}})),kq(r,n),this._dispatchZoomAction(n)}function o(e,t,i){var o=t.getAxis(e),s=o.model,l=a(e,s,r),u=l.findRepresentativeAxisProxy(s).getMinMaxSpan();null==u.minValueSpan&&null==u.maxValueSpan||(i=QN(0,i.slice(),o.scale.getExtent(),0,u.minValueSpan,u.maxValueSpan)),l&&(n[l.id]={dataZoomId:l.id,startValue:i[0],endValue:i[1]})}function a(e,t,n){var r;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){var i=n.getAxisModel(e,t.componentIndex);i&&(r=n)})),r}},t.prototype._dispatchZoomAction=function(e){var t=[];Gq(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}(WU),qq={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(Sq(this.ecModel))}};function Xq(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 Zq(e,t){e.setIconStatus("back",Tq(t)>1?"emphasis":"normal")}function Kq(e,t,n,r,i){var o=n._isZoomActive;r&&"takeGlobalCursor"===r.type&&(o="dataZoomSelect"===r.key&&r.dataZoomSelectActive),n._isZoomActive=o,e.setIconStatus("zoom",o?"emphasis":"normal");var a=new Vq(Xq(e),t,{include:["grid"]}),s=a.makePanelOpts(i,(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()})}Wd("dataZoom",(function(e){var t=e.getComponent("toolbox",0),n=["feature","dataZoom"];if(t&&null!=t.get(n)){var r=t.getModel(n),i=[],o=Xq(r),a=to(e,o);return Gq(a.xAxisModels,(function(e){return s(e,"xAxis","xAxisIndex")})),Gq(a.yAxisModels,(function(e){return s(e,"yAxis","yAxisIndex")})),i}function s(e,t,n){var o=e.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:$q+t+o};a[n]=o,i.push(a)}}));var Jq=Uq;function Qq(e){e.registerComponentModel(qU),e.registerComponentView(QU),GU("saveAsImage",tq),GU("magicType",aq),GU("dataView",xq),GU("dataZoom",Jq),GU("restore",Cq),yx(BU)}var eX=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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}(bd),tX=eX;function nX(e){var t=e.get("confine");return null!=t?!!t:"richText"===e.get("renderMode")}function rX(e){if(m["a"].domSupported)for(var t=document.documentElement.style,n=0,r=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+i,f=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),h=Math.round(100*((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-d)/2))/100;l+=";"+a+":-"+h+"px";var p=t+" solid "+i+"px;",m=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+p,"border-right:"+p,"background-color:"+r+";"];return'
'}function hX(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,i="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,i+=m["a"].transformSupported?","+uX+r:",left"+r+",top"+r),lX+":"+i}function pX(e,t,n){var r=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!m["a"].transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=m["a"].transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+uX+":"+a+";":[["top",0],["left",0],[iX,a]]}function mX(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var i=Object(g["retrieve2"])(e.get("lineHeight"),Math.round(3*n/2));n&&t.push("line-height:"+i+"px");var o=e.get("textShadowColor"),a=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return o&&a&&t.push("text-shadow:"+s+"px "+l+"px "+a+"px "+o),Object(g["each"])(["decoration","align"],(function(n){var r=e.get(n);r&&t.push("text-"+n+":"+r)})),t.join(";")}function gX(e,t,n){var r=[],i=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=jp(e,"html"),f=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+f),t&&i&&r.push(hX(i,n)),o&&r.push("background-color:"+o),Object(g["each"])(["width","color","radius"],(function(t){var n="border-"+t,i=$c(n),o=e.get(i);null!=o&&r.push(n+":"+o+("color"===t?"":"px"))})),r.push(mX(c)),null!=d&&r.push("padding:"+Uc(d).join("px ")+"px"),r.join(";")+";"}function vX(e,t,n,r,i){var o=t&&t.painter;if(n){var a=o&&o.getViewportRoot();a&&ee(e,a,n,r,i)}else{e[0]=r,e[1]=i;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 yX=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,m["a"].wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,o=i&&(Object(g["isString"])(i)?document.querySelector(i):Object(g["isDom"])(i)?i:Object(g["isFunction"])(i)&&i(e.getDom()));vX(this._styleCoord,r,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(n),this._api=e,this._container=o;var a=this;n.onmouseenter=function(){a._enterable&&(clearTimeout(a._hideTimeout),a._show=!0),a._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!a._enterable){var t=r.handler,n=r.painter.getViewportRoot();pe(n,e,!0),t.dispatch("mousemove",e)}},n.onmouseleave=function(){a._inContent=!1,a._enterable&&a._show&&a.hideLater(a._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=sX(t,"position"),r=t.style;"absolute"!==r.position&&"absolute"!==n&&(r.position="relative")}var i=e.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=e.get("className")||""},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=cX+gX(e,!this._firstShow,this._longHide)+pX(i[0],i[1],!0)+"border-color:"+nd(t)+";"+(e.get("extraCssText")||"")+";pointer-events:"+(this._enterable?"auto":"none"):r.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var o=this.el;if(null!=e){var a="";if(Object(g["isString"])(i)&&"item"===n.get("trigger")&&!nX(n)&&(a=fX(n,r,i)),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,r):"leave"===e&&this._hide(r))}),this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==r&&"click"!==r){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!m["a"].node&&n.getDom()){var i=DX(r,n);this._ticket="";var o=r.dataByCoordSys,a=jX(r,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:r.position,positionDefault:"bottom"},i)}else if(r.tooltip&&null!=r.x&&null!=r.y){var l=SX;l.x=r.x,l.y=r.y,l.update(),Xs(l).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:l},i)}else if(o)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:o,tooltipOption:r.tooltipOption},i);else if(null!=r.seriesIndex){if(this._manuallyAxisShowTip(e,t,n,r))return;var u=uG(r,t),c=u.point[0],d=u.point[1];null!=c&&null!=d&&this._tryShow({offsetX:c,offsetY:d,target:u.el,position:r.position,positionDefault:"bottom"},i)}else null!=r.x&&null!=r.y&&(n.dispatchAction({type:"updateAxisPointer",x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,r.from!==this.uid&&this._hide(DX(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,o=r.dataIndex,a=t.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=o&&null!=a){var s=t.getSeriesByIndex(i);if(s){var l=s.getData(),u=TX([l.getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel);if("axis"===u.get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:o,position:r.position}),!0}}},t.prototype._tryShow=function(e,t){var n=e.target,r=this._tooltipModel;if(r){this._lastX=e.offsetX,this._lastY=e.offsetY;var i=e.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,e);else if(n){var o,a,s=Xs(n);if("legend"===s.ssrType)return;this._lastDataByCoordSys=null,vy(n,(function(e){return null!=Xs(e).dataIndex?(o=e,!0):null!=Xs(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,r=this._tooltipModel,i=[t.offsetX,t.offsetY],o=TX([t.tooltipOption],r),a=this._renderMode,s=[],l=_p("section",{blocks:[],noHeader:!0}),u=[],c=new Ep;Object(g["each"])(e,(function(e){Object(g["each"])(e.dataByAxis,(function(e){var t=n.getComponent(e.axisDim+"Axis",e.axisIndex),i=e.value;if(t&&null!=i){var o=HV(i,t.axis,n,e.seriesDataIndices,e.valueLabelOpt),d=_p("section",{header:o,noHeader:!Object(g["trim"])(o),sortBlocks:!0,blocks:[]});l.blocks.push(d),Object(g["each"])(e.seriesDataIndices,(function(l){var f=n.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,p=f.getDataParams(h);if(!(p.dataIndex<0)){p.axisDim=e.axisDim,p.axisIndex=e.axisIndex,p.axisType=e.axisType,p.axisId=e.axisId,p.axisValue=YM(t.axis,{value:i}),p.axisValueLabel=o,p.marker=c.makeTooltipMarker("item",nd(p.color),a);var m=Dh(f.formatTooltip(h,!0,null)),v=m.frag;if(v){var y=TX([f],r).get("valueFormatter");d.blocks.push(y?Object(g["extend"])({valueFormatter:y},v):v)}m.text&&u.push(m.text),s.push(p)}}))}}))})),l.blocks.reverse(),u.reverse();var d=t.position,f=o.get("order"),h=Sp(l,c,a,f,n.get("useUTC"),o.get("textStyle"));h&&u.unshift(h);var p="richText"===a?"\n\n":"
",m=u.join(p);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(o,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(o,m,s,Math.random()+"",i[0],i[1],d,null,c)}))},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=Xs(t),o=i.seriesIndex,a=r.getSeriesByIndex(o),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),d=this._renderMode,f=e.positionDefault,h=TX([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,f?{position:f}:null),p=h.get("trigger");if(null==p||"item"===p){var m=s.getDataParams(l,u),v=new Ep;m.marker=v.makeTooltipMarker("item",nd(m.color),d);var y=Dh(s.formatTooltip(l,!1,u)),_=h.get("order"),b=h.get("valueFormatter"),x=y.frag,w=x?Sp(b?Object(g["extend"])({valueFormatter:b},x):x,v,d,_,r.get("useUTC"),h.get("textStyle")):y.text,M="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,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 r="html"===this._renderMode,i=Xs(t),o=i.tooltipConfig,a=o.option||{},s=a.encodeHTMLContent;if(Object(g["isString"])(a)){var l=a;a={content:l,formatter:l},s=!0}s&&r&&a.content&&(a=Object(g["clone"])(a),a.content=se(a.content));var u=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:a.content});var d=e.positionDefault,f=TX(u,this._tooltipModel,d?{position:d}:null),h=f.get("content"),p=Math.random()+"",m=new Ep;this._showOrMove(f,(function(){var n=Object(g["clone"])(f.get("formatterParams")||{});this._showTooltipContent(f,h,n,p,e.offsetX,e.offsetY,e.position,t,m)})),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,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,f=this._getNearestPoint([i,o],n,e.get("trigger"),e.get("borderColor")),h=f.color;if(c)if(Object(g["isString"])(c)){var p=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=Tc(m.axisValue,d,p)),d=Kc(d,n,!0)}else if(Object(g["isFunction"])(c)){var y=Object(g["bind"])((function(t,r){t===this._ticket&&(u.setContent(r,l,e,h,a),this._updatePosition(e,a,i,o,u,n,s))}),this);this._ticket=r,d=c(n,r,y)}else d=c;u.setContent(d,l,e,h,a),u.show(e,h),this._updatePosition(e,a,i,o,u,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r){return"axis"===n||Object(g["isArray"])(t)?{color:r||("html"===this._renderMode?"#fff":"none")}:Object(g["isArray"])(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,o,a){var s=this._api.getWidth(),l=this._api.getHeight();t=t||e.get("position");var u=i.getSize(),c=e.get("align"),d=e.get("verticalAlign"),f=a&&a.getBoundingRect().clone();if(a&&f.applyTransform(a.transform),Object(g["isFunction"])(t)&&(t=t([n,r],o,i.el,f,{viewSize:[s,l],contentSize:u.slice()})),Object(g["isArray"])(t))n=ii(t[0],s),r=ii(t[1],l);else if(Object(g["isObject"])(t)){var h=t;h.width=u[0],h.height=u[1];var p=cd(h,{width:s,height:l});n=p.x,r=p.y,c=null,d=null}else if(Object(g["isString"])(t)&&a){var m=AX(t,f,u,e.get("borderWidth"));n=m[0],r=m[1]}else{m=OX(n,r,i,s,l,c?null:20,d?null:20);n=m[0],r=m[1]}if(c&&(n-=IX(c)?u[0]/2:"right"===c?u[0]:0),d&&(r-=IX(d)?u[1]/2:"bottom"===d?u[1]:0),nX(e)){m=CX(n,r,i,s,l);n=m[0],r=m[1]}i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&Object(g["each"])(n,(function(n,o){var a=n.dataByAxis||[],s=e[o]||{},l=s.dataByAxis||[];i=i&&a.length===l.length,i&&Object(g["each"])(a,(function(e,n){var o=l[n]||{},a=e.seriesDataIndices||[],s=o.seriesDataIndices||[];i=i&&e.value===o.value&&e.axisType===o.axisType&&e.axisId===o.axisId&&a.length===s.length,i&&Object(g["each"])(a,(function(e,t){var n=s[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex})),r&&Object(g["each"])(e.seriesDataIndices,(function(e){var n=e.seriesIndex,o=t[n],a=r[n];o&&a&&a.data!==o.data&&(i=!1)}))}))})),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},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()&&(kv(this,"_updatePosition"),this._tooltipContent.dispose(),aG("itemTooltip",t))},t.type="tooltip",t}(Kp);function TX(e,t,n){var r,i=t.ecModel;n?(r=new Xu(n,i,i),r=new Xu(t.option,r,i)):r=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof Xu&&(a=a.get("tooltip",!0)),Object(g["isString"])(a)&&(a={formatter:a}),a&&(r=new Xu(a,r,i)))}return r}function DX(e,t){return e.dispatchAction||Object(g["bind"])(t.dispatchAction,t)}function OX(e,t,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(e+l+o+2>r?e-=l+o:e+=o),null!=a&&(t+u+a>i?t-=u+a:t+=a),[e,t]}function CX(e,t,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,r)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function AX(e,t,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-o/2;break;case"top":s=t.x+u/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+a;break;case"left":s=t.x-i-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 IX(e){return"center"===e||"middle"===e}function jX(e,t,n){var r=no(e).queryOptionMap,i=r.keys()[0];if(i&&"series"!==i){var o=oo(t,i,r.get(i),{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=Xs(t).tooltipConfig;if(n&&n.name===e.name)return s=t,!0})),s?{componentMainType:i,componentIndex:a.componentIndex,el:s}:void 0}}}var EX=LX;function YX(e){yx(wG),e.registerComponentModel(tX),e.registerComponentView(EX),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},g["noop"]),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},g["noop"])}var PX=["rect","polygon","keep","clear"];function NX(e,t){var n=Ai(e?e.brush:[]);if(n.length){var r=[];g["each"](n,(function(e){var t=e.hasOwnProperty("toolbox")?e.toolbox:[];t instanceof Array&&(r=r.concat(t))}));var i=e&&e.toolbox;g["isArray"](i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),RX(s),t&&!s.length&&s.push.apply(s,PX)}}function RX(e){var t={};g["each"](e,(function(e){t[e]=1})),e.length=0,g["each"](t,(function(t,n){e.push(n)}))}var HX=g["each"];function zX(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!0}function FX(e,t,n){var r={};return HX(t,(function(t){var o=r[t]=i();HX(e[t],(function(e,r){if(aY.isValidType(r)){var i={type:r,visual:e};n&&n(i,t),o[r]=new aY(i),"opacity"===r&&(i=g["clone"](i),i.type="colorAlpha",o.__hidden.__alphaForOpacity=new aY(i))}}))})),r;function i(){var e=function(){};e.prototype.__hidden=e.prototype;var t=new e;return t}}function BX(e,t,n){var r;g["each"](n,(function(e){t.hasOwnProperty(e)&&zX(t[e])&&(r=!0)})),r&&g["each"](n,(function(n){t.hasOwnProperty(n)&&zX(t[n])?e[n]=g["clone"](t[n]):delete e[n]}))}function WX(e,t,n,r,i,o){var a,s={};function l(e){return dy(n,a,e)}function u(e,t){hy(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 f=r.call(i,e),h=t[f],p=s[f],m=0,g=p.length;mt[0][1]&&(t[0][1]=o[0]),o[1]t[1][1]&&(t[1][1]=o[1])}return t&&oZ(t)}};function oZ(e){return new Ve(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var aZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(e,t){this.ecModel=e,this.api=t,this.model,(this._brushController=new pH(t.getZr())).on("brush",g["bind"](this._onBrush,this)).mount()},t.prototype.render=function(e,t,n,r){this.model=e,this._updateController(e,t,n,r)},t.prototype.updateTransform=function(e,t,n,r){JX(t),this._updateController(e,t,n,r)},t.prototype.updateVisual=function(e,t,n,r){this.updateTransform(e,t,n,r)},t.prototype.updateView=function(e,t,n,r){this._updateController(e,t,n,r)},t.prototype._updateController=function(e,t,n,r){(!r||r.$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}(Kp),sZ=aZ,lZ="#ddd",uZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.areas=[],n.brushOption={},n}return p(t,e),t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&BX(n,e,["inBrush","outOfBrush"]);var r=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:lZ},r.hasOwnProperty("liftZ")||(r.liftZ=5)},t.prototype.setAreas=function(e){e&&(this.areas=g["map"](e,(function(e){return cZ(this.option,e)}),this))},t.prototype.setBrushOption=function(e){this.brushOption=cZ(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}(bd);function cZ(e,t){return g["merge"]({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Xu(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var dZ=uZ,fZ=["rect","polygon","lineX","lineY","keep","clear"],hZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),t.prototype.render=function(e,t,n){var r,i,o;t.eachComponent({mainType:"brush"},(function(e){r=e.brushType,i=e.brushOption.brushMode||"single",o=o||!!e.areas.length})),this._brushType=r,this._brushMode=i,g["each"](e.get("type",!0),(function(t){e.setIconStatus(t,("keep"===t?"multiple"===i:"clear"===t?o:t===r)?"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 r=this._brushType,i=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?r:r!==n&&n,brushMode:"keep"===n?"multiple"===i?"single":"multiple":i}})},t.getDefaultOption=function(e){var t={show:!0,type:fZ.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}(WU),pZ=hZ;function mZ(e){e.registerComponentView(sZ),e.registerComponentModel(dZ),e.registerPreprocessor(NX),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,QX),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"]),GU("brush",pZ)}var gZ=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 p(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}(bd),vZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get("show")){var r=this.group,i=e.getModel("textStyle"),o=e.getModel("subtextStyle"),a=e.get("textAlign"),s=g["retrieve2"](e.get("textBaseline"),e.get("textVerticalAlign")),l=new qs({style:Su(i,{text:e.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=e.get("subtext"),d=new qs({style:Su(o,{text:c,fill:o.getTextColor(),y:u.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),f=e.get("link"),h=e.get("sublink"),p=e.get("triggerEvent",!0);l.silent=!f&&!p,d.silent=!h&&!p,f&&l.on("click",(function(){rd(f,"_"+e.get("target"))})),h&&d.on("click",(function(){rd(h,"_"+e.get("subtarget"))})),Xs(l).eventData=Xs(d).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,r.add(l),c&&r.add(d);var m=r.getBoundingRect(),v=e.getBoxLayoutParams();v.width=m.width,v.height=m.height;var y=cd(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"),r.x=y.x,r.y=y.y,r.markRedraw();var _={align:a,verticalAlign:s};l.setStyle(_),d.setStyle(_),m=r.getBoundingRect();var b=y.margin,x=e.getItemStyle(["color","opacity"]);x.fill=e.get("backgroundColor");var w=new Cs({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});r.add(w)}},t.type="title",t}(Kp);function yZ(e){e.registerComponentModel(gZ),e.registerComponentView(vZ)}var _Z=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode="box",n}return p(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||[],r=t.axisType,i=this._names=[];"category"===r?(e=[],Object(g["each"])(n,(function(t,n){var r,o=Gi(Ei(t),"");Object(g["isObject"])(t)?(r=Object(g["clone"])(t),r.value=n):r=n,e.push(r),i.push(o)}))):e=n;var o={category:"ordinal",time:"time",value:"number"}[r]||"number",a=this._data=new Jx([{name:"value",type:o}],this);a.initData(e,i)},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}(bd),bZ=_Z,xZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="timeline.slider",t.defaultOption=ec(bZ.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}(bZ);Object(g["mixin"])(xZ,Th.prototype);var wZ=xZ,MZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="timeline",t}(Kp),kZ=MZ,SZ=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r)||this;return o.type=i||"value",o}return p(t,e),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Ak),LZ=SZ,TZ=Math.PI,DZ=Qi(),OZ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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 r=this._layout(e,n),i=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(r,e);e.formatTooltip=function(e){var t=a.scale.getLabel({value:e});return _p("nameValue",{noName:!0,value:t})},Object(g["each"])(["AxisLine","AxisTick","Control","CurrentPointer"],(function(t){this["_render"+t](r,i,a,e)}),this),this._renderAxisLabel(r,o,a,e),this._position(r,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,r=e.get(["label","position"]),i=e.get("orient"),o=AZ(e,t);n=null==r||"auto"===r?"horizontal"===i?o.y+o.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},d={horizontal:0,vertical:TZ/2},f="vertical"===i?o.height:o.width,h=e.getModel("controlStyle"),p=h.get("show",!0),m=p?h.get("itemSize"):0,v=p?h.get("itemGap"):0,y=m+v,_=e.get(["label","rotate"])||0;_=_*TZ/180;var b=h.get("position",!0),x=p&&h.get("showPlayBtn",!0),w=p&&h.get("showPrevBtn",!0),M=p&&h.get("showNextBtn",!0),k=0,S=f;"left"===b||"bottom"===b?(x&&(a=[0,0],k+=y),w&&(s=[k,0],k+=y),M&&(l=[S-m,0],S-=y)):(x&&(a=[S-m,0],S-=y),w&&(s=[0,0],k+=y),M&&(l=[S-m,0],S-=y));var L=[k,S];return e.get("inverse")&&L.reverse(),{viewRect:o,mainLength:f,orient:i,rotation:d[i],labelRotation:_,labelPosOpt:n,labelAlign:e.get(["label","align"])||u[i],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||c[i],playPosition:a,prevBtnPosition:s,nextBtnPosition:l,axisExtent:L,controlSize:m,controlGap:v}},t.prototype._position=function(e,t){var n=this._mainGroup,r=this._labelGroup,i=e.viewRect;if("vertical"===e.orient){var o=ke(),a=i.x,s=i.y+i.height;De(o,o,[-a,-s]),Oe(o,o,-TZ/2),De(o,o,[a,s]),i=i.clone(),i.applyTransform(o)}var l=v(i),u=v(n.getBoundingRect()),c=v(r.getBoundingRect()),d=[n.x,n.y],f=[r.x,r.y];f[0]=d[0]=l[0][0];var h=e.labelPosOpt;if(null==h||Object(g["isString"])(h)){var p="+"===h?0:1;y(d,u,l,1,p),y(f,c,l,1,1-p)}else{p=h>=0?0:1;y(d,u,l,1,p),f[1]=d[1]+h}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,r,i){e[r]+=n[r][i]-t[r][i]}n.setPosition(d),r.setPosition(f),n.rotation=r.rotation=e.rotation,m(n),m(r)},t.prototype._createAxis=function(e,t){var n=t.getData(),r=t.get("axisType"),i=CZ(t,r);i.getTicks=function(){return n.mapArray(["value"],(function(e){return{value:e}}))};var o=n.getDataExtent("value");i.setExtent(o[0],o[1]),i.calcNiceTicks();var a=new LZ("value",i,e.axisExtent,r);return a.model=t,a},t.prototype._createGroup=function(e){var t=this[e]=new Hr;return this.group.add(t),t},t.prototype._renderAxisLine=function(e,t,n,r){var i=n.getExtent();if(r.get(["lineStyle","show"])){var o=new ag({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Object(g["extend"])({lineCap:"round"},r.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});t.add(o);var a=this._progressLine=new ag({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:Object(g["defaults"])({lineCap:"round",lineWidth:o.style.lineWidth},r.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});t.add(a)}},t.prototype._renderAxisTick=function(e,t,n,r){var i=this,o=r.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"])(i._changeTimeline,i,e.value)},f=jZ(s,l,t,d);f.ensureState("emphasis").style=u.getItemStyle(),f.ensureState("progress").style=c.getItemStyle(),Xl(f);var h=Xs(f);s.get("tooltip")?(h.dataIndex=e.value,h.dataModel=r):h.dataIndex=h.dataModel=null,i._tickSymbols.push(f)}))},t.prototype._renderAxisLabel=function(e,t,n,r){var i=this,o=n.getLabelModel();if(o.get("show")){var a=r.getData(),s=n.getViewLabels();this._tickLabels=[],Object(g["each"])(s,(function(r){var o=r.tickValue,s=a.getItemModel(o),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),d=n.dataToCoord(r.tickValue),f=new qs({x:d,y:0,rotation:e.labelRotation-e.rotation,onclick:Object(g["bind"])(i._changeTimeline,i,o),silent:!1,style:Su(l,{text:r.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});f.ensureState("emphasis").style=Su(u),f.ensureState("progress").style=Su(c),t.add(f),Xl(f),DZ(f).dataIndex=o,i._tickLabels.push(f)}))}},t.prototype._renderControl=function(e,t,n,r){var i=e.controlSize,o=e.rotation,a=r.getModel("controlStyle").getItemStyle(),s=r.getModel(["emphasis","controlStyle"]).getItemStyle(),l=r.getPlayState(),u=r.get("inverse",!0);function c(e,n,l,u){if(e){var c=wr(Object(g["retrieve2"])(r.get(["controlStyle",n+"BtnSize"]),i),i),d=[0,-c/2,c,c],f=IZ(r,n+"Icon",d,{x:e[0],y:e[1],originX:i/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});f.ensureState("emphasis").style=s,t.add(f),Xl(f)}}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,r){var i=r.getData(),o=r.getCurrentIndex(),a=i.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),EZ(e,s._progressLine,o,n,r,!0)},onUpdate:function(e){EZ(e,s._progressLine,o,n,r)}};this._currentPointer=jZ(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],r=this._axis,i=ai(r.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(f)),[a,d]}var JZ={min:Object(g["curry"])(KZ,"min"),max:Object(g["curry"])(KZ,"max"),average:Object(g["curry"])(KZ,"average"),median:Object(g["curry"])(KZ,"median")};function QZ(e,t){if(t){var n=e.getData(),r=e.coordinateSystem,i=r&&r.dimensions;if(!ZZ(t)&&!Object(g["isArray"])(t.coord)&&Object(g["isArray"])(i)){var o=eK(t,n,r,e);if(t=Object(g["clone"])(t),t.type&&JZ[t.type]&&o.baseAxis&&o.valueAxis){var a=Object(g["indexOf"])(i,o.baseAxis.dim),s=Object(g["indexOf"])(i,o.valueAxis.dim),l=JZ[t.type](n,o.baseDataDim,o.valueDataDim,a,s);t.coord=l[0],t.value=l[1]}else t.coord=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis]}if(null!=t.coord&&Object(g["isArray"])(i))for(var u=t.coord,c=0;c<2;c++)JZ[u[c]]&&(u[c]=oK(n,n.mapDimension(i[c]),u[c]));else t.coord=[];return t}}function eK(e,t,n,r){var i={};return null!=e.valueIndex||null!=e.valueDim?(i.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=n.getAxis(tK(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function tK(e,t){var n=e.getData().getDimensionInfo(t);return n&&n.coordDim}function nK(e,t){return!(e&&e.containData&&t.coord&&!XZ(t))||e.containData(t.coord)}function rK(e,t,n){return!(e&&e.containZone&&t.coord&&n.coord&&!XZ(t)&&!XZ(n))||e.containZone(t.coord,n.coord)}function iK(e,t){return e?function(e,n,r,i){var o=i<2?e.coord&&e.coord[i]:e.value;return Ih(o,t[i])}:function(e,n,r,i){return Ih(e.value,t[i])}}function oK(e,t,n){if("average"===n){var r=0,i=0;return e.each(t,(function(e,t){isNaN(e)||(r+=e,i++)})),r/i}return"median"===n?e.getMedian(t):e.getDataExtent(t)["max"===n?1:0]}var aK=Qi(),sK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.init=function(){this.markerGroupMap=Object(g["createHashMap"])()},t.prototype.render=function(e,t,n){var r=this,i=this.markerGroupMap;i.each((function(e){aK(e).keep=!1})),t.eachSeries((function(e){var i=$Z.getMarkerModelFromSeries(e,r.type);i&&r.renderSeries(e,i,t,n)})),i.each((function(e){!aK(e).keep&&r.group.remove(e.group)}))},t.prototype.markKeep=function(e){aK(e).keep=!0},t.prototype.toggleBlurSeries=function(e,t){var n=this;Object(g["each"])(e,(function(e){var r=$Z.getMarkerModelFromSeries(e,n.type);if(r){var i=r.getData();i.eachItemGraphicEl((function(e){e&&(t?El(e):Yl(e))}))}}))},t.type="marker",t}(Kp),lK=sK;function uK(e,t,n){var r=t.coordinateSystem;e.each((function(i){var o,a=e.getItemModel(i),s=ii(a.get("x"),n.getWidth()),l=ii(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(r){var u=e.get(r.dimensions[0],i),c=e.get(r.dimensions[1],i);o=r.dataToPoint([u,c])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)}))}var cK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=$Z.getMarkerModelFromSeries(e,"markPoint");t&&(uK(t.getData(),e,n),this.markerGroupMap.get(e.id).updateLayout())}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new LT),u=dK(i,e,t);t.setData(u),uK(t.getData(),e,r),u.each((function(e){var n=u.getItemModel(e),r=n.getShallow("symbol"),i=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(Object(g["isFunction"])(r)||Object(g["isFunction"])(i)||Object(g["isFunction"])(o)||Object(g["isFunction"])(s)){var c=t.getRawValue(e),d=t.getDataParams(e);Object(g["isFunction"])(r)&&(r=r(c,d)),Object(g["isFunction"])(i)&&(i=i(c,d)),Object(g["isFunction"])(o)&&(o=o(c,d)),Object(g["isFunction"])(s)&&(s=s(c,d))}var f=n.getModel("itemStyle").getItemStyle(),h=fy(a,"color");f.fill||(f.fill=h),u.setItemVisual(e,{symbol:r,symbolSize:i,symbolRotate:o,symbolOffset:s,symbolKeepAspect:l,style:f})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(e){e.traverse((function(e){Xs(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markPoint",t}(lK);function dK(e,t,n){var r;r=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 i=new Jx(r,n),o=Object(g["map"])(n.get("data"),Object(g["curry"])(QZ,t));e&&(o=Object(g["filter"])(o,Object(g["curry"])(nK,e)));var a=iK(!!e,r);return i.initData(o,null,a),i}var fK=cK;function hK(e){e.registerComponentModel(qZ),e.registerComponentView(fK),e.registerPreprocessor((function(e){BZ(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})}))}var pK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}($Z),mK=pK,gK=Qi(),vK=function(e,t,n,r){var i,o=e.getData();if(Object(g["isArray"])(r))i=r;else{var a=r.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=r.xAxis||null!=r.yAxis){var s=void 0,l=void 0;if(null!=r.yAxis||null!=r.xAxis)s=t.getAxis(null!=r.yAxis?"y":"x"),l=Object(g["retrieve"])(r.yAxis,r.xAxis);else{var u=eK(r,o,t,e);s=u.valueAxis;var c=dw(o,u.valueDataDim);l=oK(o,c,a)}var d="x"===s.dim?0:1,f=1-d,h=Object(g["clone"])(r),p={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,p.coord[f]=1/0;var m=n.get("precision");m>=0&&Object(g["isNumber"])(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[d]=p.coord[d]=l,i=[h,p,{type:a,valueIndex:r.valueIndex,value:l}]}else i=[]}var v=[QZ(e,i[0]),QZ(e,i[1]),Object(g["extend"])({},i[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 yK(e){return!isNaN(e)&&!isFinite(e)}function _K(e,t,n,r){var i=1-e,o=r.dimensions[e];return yK(t[i])&&yK(n[i])&&t[e]===n[e]&&r.getAxis(o).containData(t[e])}function bK(e,t){if("cartesian2d"===e.type){var n=t[0].coord,r=t[1].coord;if(n&&r&&(_K(1,n,r,e)||_K(0,n,r,e)))return!0}return nK(e,t[0])&&nK(e,t[1])}function xK(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=ii(s.get("x"),i.getWidth()),u=ii(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition)o=r.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,d=e.get(c[0],t),f=e.get(c[1],t);o=a.dataToPoint([d,f])}if(WT(a,"cartesian2d")){var h=a.getAxis("x"),p=a.getAxis("y");c=a.dimensions;yK(e.get(c[0],t))?o[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):yK(e.get(c[1],t))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];e.setItemLayout(t,o)}var wK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=$Z.getMarkerModelFromSeries(e,"markLine");if(t){var r=t.getData(),i=gK(t).from,o=gK(t).to;i.each((function(t){xK(i,t,!0,e,n),xK(o,t,!1,e,n)})),r.each((function(e){r.setItemLayout(e,[i.getItemLayout(e),o.getItemLayout(e)])})),this.markerGroupMap.get(e.id).updateLayout()}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new YP);this.group.add(l.group);var u=MK(i,e,t),c=u.from,d=u.to,f=u.line;gK(t).from=c,gK(t).to=d,t.setData(f);var h=t.get("symbol"),p=t.get("symbolSize"),m=t.get("symbolRotate"),v=t.get("symbolOffset");function y(t,n,i){var o=t.getItemModel(n);xK(t,n,i,e,r);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=fy(a,"color")),t.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:Object(g["retrieve2"])(o.get("symbolOffset",!0),v[i?0:1]),symbolRotate:Object(g["retrieve2"])(o.get("symbolRotate",!0),m[i?0:1]),symbolSize:Object(g["retrieve2"])(o.get("symbolSize"),p[i?0:1]),symbol:Object(g["retrieve2"])(o.get("symbol",!0),h[i?0:1]),style:s})}Object(g["isArray"])(h)||(h=[h,h]),Object(g["isArray"])(p)||(p=[p,p]),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)})),f.each((function(e){var t=f.getItemModel(e).getModel("lineStyle").getLineStyle();f.setItemLayout(e,[c.getItemLayout(e),d.getItemLayout(e)]),null==t.stroke&&(t.stroke=c.getItemVisual(e,"style").fill),f.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(f),u.line.eachItemGraphicEl((function(e){Xs(e).dataModel=t,e.traverse((function(e){Xs(e).dataModel=t}))})),this.markKeep(l),l.group.silent=t.get("silent")||e.get("silent")},t.type="markLine",t}(lK);function MK(e,t,n){var r;r=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 i=new Jx(r,n),o=new Jx(r,n),a=new Jx([],n),s=Object(g["map"])(n.get("data"),Object(g["curry"])(vK,t,e,n));e&&(s=Object(g["filter"])(s,Object(g["curry"])(bK,e)));var l=iK(!!e,r);return i.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:i,to:o,line:a}}var kK=wK;function SK(e){e.registerComponentModel(mK),e.registerComponentView(kK),e.registerPreprocessor((function(e){BZ(e.series,"markLine")&&(e.markLine=e.markLine||{})}))}var LK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.createMarkerModelFromSeries=function(e,n,r){return new t(e,n,r)},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}($Z),TK=LK,DK=Qi(),OK=function(e,t,n,r){var i=r[0],o=r[1];if(i&&o){var a=QZ(e,i),s=QZ(e,o),l=a.coord,u=s.coord;l[0]=Object(g["retrieve"])(l[0],-1/0),l[1]=Object(g["retrieve"])(l[1],-1/0),u[0]=Object(g["retrieve"])(u[0],1/0),u[1]=Object(g["retrieve"])(u[1],1/0);var c=Object(g["mergeAll"])([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function CK(e){return!isNaN(e)&&!isFinite(e)}function AK(e,t,n,r){var i=1-e;return CK(t[i])&&CK(n[i])}function IK(e,t){var n=t.coord[0],r=t.coord[1],i={coord:n,x:t.x0,y:t.y0},o={coord:r,x:t.x1,y:t.y1};return WT(e,"cartesian2d")?!(!n||!r||!AK(1,n,r,e)&&!AK(0,n,r,e))||rK(e,i,o):nK(e,i)||nK(e,o)}function jK(e,t,n,r,i){var o,a=r.coordinateSystem,s=e.getItemModel(t),l=ii(s.get(n[0]),i.getWidth()),u=ii(s.get(n[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(r.getMarkerPosition){var c=e.getValues(["x0","y0"],t),d=e.getValues(["x1","y1"],t),f=a.clampData(c),h=a.clampData(d),p=[];"x0"===n[0]?p[0]=f[0]>h[0]?d[0]:c[0]:p[0]=f[0]>h[0]?c[0]:d[0],"y0"===n[1]?p[1]=f[1]>h[1]?d[1]:c[1]:p[1]=f[1]>h[1]?c[1]:d[1],o=r.getMarkerPosition(p,n,!0)}else{var m=e.get(n[0],t),g=e.get(n[1],t),v=[m,g];a.clampData&&a.clampData(v,v),o=a.dataToPoint(v,!0)}if(WT(a,"cartesian2d")){var y=a.getAxis("x"),_=a.getAxis("y");m=e.get(n[0],t),g=e.get(n[1],t);CK(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):CK(g)&&(o[1]=_.toGlobalCoord(_.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var EK=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],YK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.updateTransform=function(e,t,n){t.eachSeries((function(e){var t=$Z.getMarkerModelFromSeries(e,"markArea");if(t){var r=t.getData();r.each((function(t){var i=Object(g["map"])(EK,(function(i){return jK(r,t,i,e,n)}));r.setItemLayout(t,i);var o=r.getItemGraphicEl(t);o.setShape("points",i)}))}}),this)},t.prototype.renderSeries=function(e,t,n,r){var i=e.coordinateSystem,o=e.id,a=e.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new Hr});this.group.add(l.group),this.markKeep(l);var u=PK(i,e,t);t.setData(u),u.each((function(t){var n=Object(g["map"])(EK,(function(n){return jK(u,t,n,e,r)})),o=i.getAxis("x").scale,s=i.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),d=[o.parse(u.get("x0",t)),o.parse(u.get("x1",t))],f=[s.parse(u.get("y0",t)),s.parse(u.get("y1",t))];ai(d),ai(f);var h=!(l[0]>d[1]||l[1]f[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}(bd),FK=zK,BK=g["curry"],WK=g["each"],VK=Hr,GK=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return p(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new VK),this.group.add(this._selectorGroup=new VK),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 r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var i=e.get("align"),o=e.get("orient");i&&"auto"!==i||(i="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(i,e,t,n,a,o,s);var l=e.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},c=e.get("padding"),d=cd(l,u,c),f=this.layoutInner(e,i,d,r,a,s),h=cd(g["defaults"]({width:f.width,height:f.height},l),u,c);this.group.x=h.x-f.x,this.group.y=h.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=ZU(f,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,r,i,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)})),WK(t.getData(),(function(i,o){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var d=new VK;return d.newline=!0,void s.add(d)}var f=n.getSeriesByName(a)[0];if(!l.get(a)){if(f){var h=f.getData(),p=h.getVisual("legendLineStyle")||{},m=h.getVisual("legendIcon"),v=h.getVisual("style"),y=this._createItem(f,a,o,i,t,e,p,v,m,u,r);y.on("click",BK(qK,a,null,r,c)).on("mouseover",BK(ZK,f.name,null,r,c)).on("mouseout",BK(KK,f.name,null,r,c)),n.ssr&&y.eachChild((function(e){var t=Xs(e);t.seriesIndex=f.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}else n.eachRawSeries((function(s){if(!l.get(a)&&s.legendVisualProvider){var d=s.legendVisualProvider;if(!d.containName(a))return;var f=d.indexOfName(a),h=d.getItemVisual(f,"style"),p=d.getItemVisual(f,"legendIcon"),m=Object(en["parse"])(h.fill);m&&0===m[3]&&(m[3]=.2,h=g["extend"](g["extend"]({},h),{fill:Object(en["stringify"])(m,"rgba")}));var v=this._createItem(s,a,o,i,t,e,{},h,p,u,r);v.on("click",BK(qK,null,a,r,c)).on("mouseover",BK(ZK,null,a,r,c)).on("mouseout",BK(KK,null,a,r,c)),n.ssr&&v.eachChild((function(e){var t=Xs(e);t.seriesIndex=s.seriesIndex,t.dataIndex=o,t.ssrType="legend"})),l.set(a,!0)}}),this);0}}),this),i&&this._createSelector(i,t,r,o,a)},t.prototype._createSelector=function(e,t,n,r,i){var o=this.getSelectorGroup();WK(e,(function(e){var r=e.type,i=new qs({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===r?"legendAllSelect":"legendInverseSelect",legendId:t.id})}});o.add(i);var a=t.getModel("selectorLabel"),s=t.getModel(["emphasis","selectorLabel"]);Mu(i,{normal:a,emphasis:s},{defaultText:e.title}),Xl(i)}))},t.prototype._createItem=function(e,t,n,r,i,o,a,s,l,u,c){var d=e.visualDrawType,f=i.get("itemWidth"),h=i.get("itemHeight"),p=i.isSelected(t),m=r.get("symbolRotate"),v=r.get("symbolKeepAspect"),y=r.get("icon");l=y||l||"roundRect";var _=$K(l,r,a,s,d,p,c),b=new VK,x=r.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(UK({itemWidth:f,itemHeight:h,icon:l,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:h,icon:l,iconRotate:m,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:v}));var M="left"===o?f+5:-5,k=o,S=i.get("formatter"),L=t;g["isString"](S)&&S?L=S.replace("{name}",null!=t?t:""):g["isFunction"](S)&&(L=S(t));var T=p?x.getTextColor():r.get("inactiveColor");b.add(new qs({style:Su(x,{text:L,x:M,y:h/2,fill:T,align:k,verticalAlign:"middle"},{inheritColor:T})}));var D=new Cs({shape:b.getBoundingRect(),style:{fill:"transparent"}}),O=r.getModel("tooltip");return O.get("show")&&sv({el:D,componentModel:i,itemName:t,itemTooltipOption:O.option}),b.add(D),b.eachChild((function(e){e.silent=!0})),D.silent=!u,this.getContentGroup().add(b),Xl(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,o){var a=this.getContentGroup(),s=this.getSelectorGroup();ld(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(),i){ld("horizontal",s,e.get("selectorItemGap",!0));var c=s.getBoundingRect(),d=[-c.x,-c.y],f=e.get("selectorButtonGap",!0),h=e.getOrient().index,p=0===h?"width":"height",m=0===h?"height":"width",g=0===h?"y":"x";"end"===o?d[h]+=l[p]+f:u[h]+=c[p]+f,d[1-h]+=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[p]=l[p]+f+c[p],v[m]=Math.max(l[m],c[m]),v[g]=Math.min(0,c[g]+d[1-h]),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}(Kp);function $K(e,t,n,r,i,o,a){function s(e,t){"auto"===e.lineWidth&&(e.lineWidth=t.lineWidth>0?2:0),WK(e,(function(n,r){"inherit"===e[r]&&(e[r]=t[r])}))}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?b_(d,a):r.decal,"inherit"===u.fill&&(u.fill=r[i]),"inherit"===u.stroke&&(u.stroke=r[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?r:n).opacity),s(u,r);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,n),"auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===h.stroke&&(h.stroke=r.fill),!o){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth="auto"===p?r.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function UK(e){var t=e.icon||"roundRect",n=Ay(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 qK(e,t,n,r){KK(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:null!=e?e:t}),ZK(e,t,n,r)}function XK(e){var t,n=e.getZr().storage.getDisplayList(),r=0,i=n.length;while(rn[i],p=[-d.x,-d.y];t||(p[r]=l[s]);var m=[0,0],v=[-f.x,-f.y],y=g["retrieve2"](e.get("pageButtonGap",!0),e.get("itemGap",!0));if(h){var _=e.get("pageButtonPosition",!0);"end"===_?v[r]+=n[i]-f[i]:m[r]+=f[i]+y}v[1-r]+=d[o]/2-f[o]/2,l.setPosition(p),u.setPosition(m),c.setPosition(v);var b={x:0,y:0};if(b[i]=h?n[i]:d[i],b[o]=Math.max(d[o],f[o]),b[a]=Math.min(0,f[a]+v[1-r]),u.__rectSize=n[i],h){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-y,0),x[o]=b[o],u.setClipPath(new Cs({shape:x})),u.__rectSize=x[i]}else c.eachChild((function(e){e.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(e);return null!=w.pageIndex&&fu(l,{x:w.contentPosition[0],y:w.contentPosition[1]},h?e:null),this._updatePageInfoView(e,w),b},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];null!=r&&n.dispatchAction({type:"legendScroll",scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;g["each"](["pagePrev","pageNext"],(function(r){var i=r+"DataIndex",o=null!=t[i],a=n.childOfName(r);a&&(a.setStyle("fill",o?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),a.cursor=o?"pointer":"default")}));var r=n.childOfName("pageText"),i=e.get("pageFormatter"),o=t.pageIndex,a=null!=o?o+1:0,s=t.pageCount;r&&i&&r.setStyle("text",g["isString"](i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get("scrollDataIndex",!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,o=lJ[i],a=uJ[i],s=this._findTargetItemIndex(t),l=n.children(),u=l[s],c=l.length,d=c?1:0,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return f;var h=y(u);f.contentPosition[i]=-h.s;for(var p=s+1,m=h,g=h,v=null;p<=c;++p)v=y(l[p]),(!v&&g.e>m.s+r||v&&!_(v,m.s))&&(m=g.i>m.i?g:v,m&&(null==f.pageNextDataIndex&&(f.pageNextDataIndex=m.i),++f.pageCount)),g=v;for(p=s-1,m=h,g=h,v=null;p>=-1;--p)v=y(l[p]),v&&_(g,v.s)||!(m.i=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var t,n,r=this.getContentGroup();return r.eachChild((function(r,i){var o=r.__legendDataIndex;null==n&&null!=o&&(n=i),o===e&&(t=i)})),null!=t?t:n},t.type="legend.scroll",t}(JK),dJ=cJ;function fJ(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 hJ(e){yx(rJ),e.registerComponentModel(aJ),e.registerComponentView(dJ),fJ(e)}function pJ(e){yx(rJ),yx(hJ)}var mJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="dataZoom.inside",t.defaultOption=ec(SU.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(SU),gJ=mJ,vJ=Qi();function yJ(e,t,n){vJ(e).coordSysRecordMap.each((function(e){var r=e.dataZoomInfoMap.get(t.uid);r&&(r.getRange=n)}))}function _J(e,t){for(var n=vJ(e).coordSysRecordMap,r=n.keys(),i=0;ir[n+t]&&(t=a),i=i&&o.get("preventDefaultMouseMove",!0)})),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function SJ(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,(function(e,t){var n=vJ(t),r=n.coordSysRecordMap||(n.coordSysRecordMap=Object(g["createHashMap"])());r.each((function(e){e.dataZoomInfoMap=null})),e.eachComponent({mainType:"dataZoom",subType:"inside"},(function(e){var n=xU(e);Object(g["each"])(n.infoList,(function(n){var i=n.model.uid,o=r.get(i)||r.set(i,xJ(t,n.model)),a=o.dataZoomInfoMap||(o.dataZoomInfoMap=Object(g["createHashMap"])());a.set(e.uid,{dzReferCoordSysInfo:n,model:e,getRange:null})}))})),r.each((function(e){var t,n=e.controller,i=e.dataZoomInfoMap;if(i){var o=i.keys()[0];null!=o&&(t=i.get(o))}if(t){var a=kJ(i);n.enable(a.controlType,a.opt),n.setPointerChecker(e.containsPoint),Mv(e,"dispatchAction",t.model.get("throttle",!0),"fixRate")}else bJ(r,e)}))}))}var LJ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="dataZoom.inside",t}return p(t,e),t.prototype.render=function(t,n,r){e.prototype.render.apply(this,arguments),t.noTarget()?this._clear():(this.range=t.getPercentRange(),yJ(r,t,{pan:Object(g["bind"])(TJ.pan,this),zoom:Object(g["bind"])(TJ.zoom,this),scrollMove:Object(g["bind"])(TJ.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_J(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(OU),TJ={zoom:function(e,t,n,r){var i=this.range,o=i.slice(),a=e.axisModels[0];if(a){var s=OJ[t](null,[r.originX,r.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/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return QN(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1]?o:void 0}},pan:DJ((function(e,t,n,r,i,o){var a=OJ[r]([o.oldX,o.oldY],[o.newX,o.newY],t,i,n);return a.signal*(e[1]-e[0])*a.pixel/a.pixelLength})),scrollMove:DJ((function(e,t,n,r,i,o){var a=OJ[r]([0,0],[o.scrollDelta,o.scrollDelta],t,i,n);return a.signal*(e[1]-e[0])*o.scrollDelta}))};function DJ(e){return function(t,n,r,i){var o=this.range,a=o.slice(),s=t.axisModels[0];if(s){var l=e(a,s,t,n,r,i);return QN(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}}var OJ={grid:function(e,t,n,r,i){var o=n.axis,a={},s=i.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,r,i){var o=n.axis,a={},s=i.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,r,i){var o=n.axis,a=i.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}},CJ=LJ;function AJ(e){FU(e),e.registerComponentModel(gJ),e.registerComponentView(CJ),SJ(e)}var IJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ec(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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(SU),jJ=IJ,EJ=Cs,YJ=7,PJ=1,NJ=30,RJ=7,HJ="horizontal",zJ="vertical",FJ=5,BJ=["line","bar","candlestick","scatter"],WJ={easing:"cubicOut",duration:100,delay:0},VJ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._displayables={},n}return p(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,r,i){if(e.prototype.render.apply(this,arguments),Mv(this,"_dispatchZoomAction",t.get("throttle"),"fixRate"),this._orient=t.getOrient(),!1!==t.get("show")){if(t.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.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(){kv(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 Hr;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"),r=n?RJ:0,i=this._findCoordRect(),o={width:t.getWidth(),height:t.getHeight()},a=this._orient===HJ?{right:o.width-i.x-i.width,top:o.height-NJ-YJ-r,width:i.width,height:NJ}:{right:YJ,top:i.y,width:NJ,height:i.height},s=md(e.option);Object(g["each"])(["right","top","width","height"],(function(e){"ph"===s[e]&&(s[e]=a[e])}));var l=cd(s,o);this._location={x:l.x,y:l.y},this._size=[l.width,l.height],this._orient===zJ&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,t=this._location,n=this._orient,r=this.dataZoomModel.getFirstTargetAxisModel(),i=r&&r.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==HJ||i?n===HJ&&i?{scaleY:a?1:-1,scaleX:-1}:n!==zJ||i?{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,r=e.get("brushSelect");n.add(new EJ({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var i=new EJ({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();r?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(i)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var t=this._size,n=this._shadowSize||[],r=e.series,i=r.getRawData(),o=r.getShadowDim&&r.getShadowDim(),a=o&&i.getDimensionInfo(o)?r.getShadowDim():e.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||t[0]!==n[0]||t[1]!==n[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var d,f=[0,t[1]],h=[0,t[0]],p=[[t[0],0],[0,0]],m=[],g=h[1]/(i.count()-1),v=0,y=Math.round(i.count()/t[0]);i.each([a],(function(e,t){if(y>0&&t%y)v+=g;else{var n=null==e||isNaN(e)||""===e,r=n?0:ri(e,u,f,!0);n&&!d&&t?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!n&&d&&(p.push([v,0]),m.push([v,0])),p.push([v,r]),m.push([v,r]),v+=g,d=n}})),s=this._shadowPolygonPts=p,l=this._shadowPolylinePts=m}this._shadowData=i,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 Hr,r=new Qm({shape:{points:s},segmentIgnoreThreshold:1,style:t.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new ng({shape:{points:l},segmentIgnoreThreshold:1,style:t.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(r),n.add(i),n}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(!1!==t){var n,r=this.ecModel;return e.eachTargetAxis((function(i,o){var a=e.getAxisProxy(i,o).getTargetSeriesModels();Object(g["each"])(a,(function(e){if(!n&&!(!0!==t&&Object(g["indexOf"])(BJ,e.get("type"))<0)){var a,s=r.getComponent(_U(i),o).axis,l=GJ(i),u=e.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=e.getData().mapDimension(l),n={thisAxis:s,series:e,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},t.prototype._renderHandle=function(){var e=this.group,t=this._displayables,n=t.handles=[null,null],r=t.handleLabels=[null,null],i=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 EJ({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new EJ({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:PJ,fill:"rgba(0,0,0,0)"}})),Object(g["each"])([0,1],(function(t){var o=a.get("handleIcon");!Dy[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=Ay(o,-1,0,2,2,null,!0);s.attr({cursor:$J(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=ii(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(),Xl(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(n[t]=s);var d=a.getModel("textStyle"),f=a.get("handleLabel")||{},h=f.show||!1;e.add(r[t]=new qs({silent:!0,invisible:!h,style:Su(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 f=ii(a.get("moveHandleSize"),o[1]),h=t.moveHandle=new Cs({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:f}}),p=.8*f,m=t.moveHandleIcon=Ay(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=o[1]+f/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(o[1]/2,Math.max(f,10));d=t.moveZone=new Cs({invisible:!0,shape:{y:o[1]-v,height:f+v}}),d.on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(m),i.add(d)}d.attr({draggable:!0,cursor:$J(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=[ri(e[0],[0,100],t,!0),ri(e[1],[0,100],t,!0)]},t.prototype._updateInterval=function(e,t){var n=this.dataZoomModel,r=this._handleEnds,i=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];QN(t,r,i,n.get("zoomLock")?"all":e,null!=o.minSpan?ri(o.minSpan,a,i,!0):null,null!=o.maxSpan?ri(o.maxSpan,a,i,!0):null);var s=this._range,l=this._range=ai([ri(r[0],i,a,!0),ri(r[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},t.prototype._updateView=function(e){var t=this._displayables,n=this._handleEnds,r=ai(n.slice()),i=this._size;Object(g["each"])([0,1],(function(e){var r=t.handles[e],o=this._handleHeight;r.attr({scaleX:o/2,scaleY:o/2,x:n[e]+(e?-1:1),y:i[1]/2-o/2})}),this),t.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]});var o={x:r[0],width:r[1]-r[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,r[0],r[1],i[0]],l=0;lt[0]||n[1]<0||n[1]>t[1])){var r=this._handleEnds,i=(r[0]+r[1])/2,o=this._updateInterval("all",n[0]-i);this._updateView(),o&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var t=e.offsetX,n=e.offsetY;this._brushStart=new Ee(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,r=+new Date;if(!(r-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),o=[0,100];this._range=ai([ri(n.x,i,o,!0),ri(n.x+n.width,i,o,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(ye(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,t){var n=this._displayables,r=this.dataZoomModel,i=n.brushRect;i||(i=n.brushRect=new EJ({silent:!0,style:r.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.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),i.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?WJ:null,start:t[0],end:t[1]})},t.prototype._findCoordRect=function(){var e,t=xU(this.dataZoomModel).infoList;if(!e&&t.length){var n=t[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e},t.type="dataZoom.slider",t}(OU);function GJ(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function $J(e){return"vertical"===e?"ns-resize":"ew-resize"}var UJ=VJ;function qJ(e){e.registerComponentModel(jJ),e.registerComponentView(UJ),FU(e)}function XJ(e){yx(AJ),yx(qJ)}var ZJ={get:function(e,t,n){var r=g["clone"]((KJ[e]||{})[t]);return n&&g["isArray"](r)?r[r.length-1]:r}},KJ={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]}},JJ=ZJ,QJ=aY.mapVisual,eQ=aY.eachVisual,tQ=g["isArray"],nQ=g["each"],rQ=ai,iQ=ri,oQ=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 p(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,t){var n=this.option;!t&&BX(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=FX(this.option.controller,t,e),this.targetVisuals=FX(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=Ai(e),t},t.prototype.eachTargetSeries=function(e,t){g["each"](this.getTargetSeriesIndices(),(function(n){var r=this.ecModel.getSeriesByIndex(n);r&&e.call(t,r)}),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 r,i=this.option,o=i.precision,a=this.dataBound,s=i.formatter;n=n||["<",">"],g["isArray"](e)&&(e=e.slice(),r=!0);var l=t?e:r?[u(e[0]),u(e[1])]:u(e);return g["isString"](s)?s.replace("{value}",r?l[0]:l).replace("{value2}",r?l[1]:l):g["isFunction"](s)?r?s(e[0],e[1]):s(e):r?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=rQ([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,r=n.length-1;r>=0;r--){var i=n[r],o=e.getDimensionInfo(i);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},r=t.target||(t.target={}),i=t.controller||(t.controller={});g["merge"](r,n),g["merge"](i,n);var o=this.isCategory();function a(n){tQ(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 r=e[t],i=e[n];r&&!i&&(i=e[n]={},nQ(r,(function(e,t){if(aY.isValidType(t)){var n=JJ.get(t,"inactive",o);null!=n&&(i[t]=n,"color"!==t||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}function l(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,n=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,r=this.get("inactiveColor"),i=this.getItemSymbol(),a=i||"roundRect";nQ(this.stateList,(function(i){var s=this.itemSize,l=e[i];l||(l=e[i]={color:o?r:[r]}),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=QJ(l.symbol,(function(e){return"none"===e?a:e}));var u=l.symbolSize;if(null!=u){var c=-1/0;eQ(u,(function(e){e>c&&(c=e)})),l.symbolSize=QJ(u,(function(e){return iQ(e,[0,c],[0,s[0]],!0)}))}}),this)}a.call(this,r),a.call(this,i),s.call(this,r,"inRange","outOfRange"),l.call(this,i)},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}(bd),aQ=oQ,sQ=[20,140],lQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(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]=sQ[0]),(null==t[1]||isNaN(t[1]))&&(t[1]=sQ[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=ai((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 r=[],i=n.getData();i.each(this.getDataDimensionIndex(i),(function(t,n){e[0]<=t&&t<=e[1]&&r.push(n)}),this),t.push({seriesId:n.id,dataIndex:r})}),this),t},t.prototype.getVisualMeta=function(e){var t=uQ(this,"outOfRange",this.getExtent()),n=uQ(this,"inRange",this.option.range.slice()),r=[];function i(t,n){r.push({value:t,color:e(t,n)})}for(var o=0,a=0,s=n.length,l=t.length;ae[1])break;r.push({color:this.getControllerVisual(a,"color",t),offset:o/n})}return r.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),r},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 Hr("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,r=this.visualMapModel,i=n.handleThumbs,o=n.handleLabels,a=r.itemSize,s=r.getExtent(),l=this._applyTransform("left",n.mainGroup);vQ([0,1],(function(u){var c=i[u];c.setStyle("fill",t.handlesColor[u]),c.y=e[u];var d=gQ(e[u],[0,a[1]],s,!0),f=this.getControllerVisual(d,"symbolSize");c.scaleX=c.scaleY=f/a[0],c.x=a[0]-f/2;var h=Xg(n.handleLabelPoints[u],qg(c,this.group));if("horizontal"===this._orient){var p="left"===l||"top"===l?(a[0]-f)/2:(a[0]-f)/-2;h[1]+=p}o[u].setStyle({x:h[0],y:h[1],text:r.formatValueText(this._dataInterval[u]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},t.prototype._showIndicator=function(e,t,n,r){var i=this.visualMapModel,o=i.getExtent(),a=i.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),f=this.getControllerVisual(e,"symbolSize"),h=gQ(e,o,s,!0),p=a[0]-f/2,m={x:u.x,y:u.y};u.y=h,u.x=p;var g=Xg(l.indicatorLabelPoint,qg(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||"")+i.formatValueText(t),verticalAlign:b?y:"middle",align:b?"center":y});var x={x:p,y:h,style:{fill:d}},w={style:{x:g[0],y:g[1]}};if(i.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 k=this._shapes.handleLabels;if(k)for(var S=0;Si[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||SQ(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var f=Ki(c,d);this._dispatchHighDown("downplay",mQ(f[0],n)),this._dispatchHighDown("highlight",mQ(f[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var t;if(vy(e.target,(function(e){var n=Xs(e);if(null!=n.dataIndex)return t=n,!0}),!0),t){var n=this.ecModel.getSeriesByIndex(t.seriesIndex),r=this.visualMapModel;if(r.isTargetSeries(n)){var i=n.getData(t.dataType),o=i.getStore().get(r.getDataDimensionIndex(i),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&&(i.dimension=o,r.push(i))}})),e.getData().setVisual("visualMeta",r)}}];function AQ(e,t,n,r){for(var i=t.targetVisuals[r],o=aY.prepareVisualTypes(i),a={color:fy(e.getData(),"color")},s=0,l=o.length;s0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})),e.registerAction(DQ,OQ),Object(g["each"])(CQ,(function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)})),e.registerPreprocessor(jQ))}function NQ(e){e.registerComponentModel(cQ),e.registerComponentView(TQ),PQ(e)}var RQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n._pieceList=[],n}return p(t,e),t.prototype.optionUpdated=function(t,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var r=this._mode=this._determineMode();this._pieceList=[],HQ[this._mode].call(this,this._pieceList),this._resetSelected(t,n);var i=this.option.categories;this.resetVisual((function(e,t){"categories"===r?(e.mappingMethod="category",e.categories=g["clone"](i)):(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={},r=aY.listVisualTypes(),i=this.isCategory();function o(e,t,n){return e&&e[t]&&e[t].hasOwnProperty(n)}g["each"](t.pieces,(function(e){g["each"](r,(function(t){e.hasOwnProperty(t)&&(n[t]=1)}))})),g["each"](n,(function(e,n){var r=!1;g["each"](this.stateList,(function(e){r=r||o(t,e,n)||o(t.target,e,n)}),this),!r&&g["each"](this.stateList,(function(e){(t[e]||(t[e]={}))[n]=JJ.get(n,"inRange"===e?"active":"inactive",i)}))}),this),e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,t){var n=this.option,r=this._pieceList,i=(t?n:e).selected||{};if(n.selected=i,g["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i.hasOwnProperty(n)||(i[n]=!0)}),this),"single"===n.selectedMode){var o=!1;g["each"](r,(function(e,t){var n=this.getSelectedMapKey(e);i[n]&&(o?i[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=aY.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(r){var i=[],o=r.getData();o.each(this.getDataDimensionIndex(o),(function(t,r){var o=aY.findPieceIndex(t,n);o===e&&i.push(r)}),this),t.push({seriesId:r.id,dataIndex:i})}),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=["",""],r=this,i=this._pieceList.slice();if(i.length){var o=i[0].interval[0];o!==-1/0&&i.unshift({interval:[-1/0,o]}),o=i[i.length-1].interval[1],o!==1/0&&i.push({interval:[o,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return g["each"](i,(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(i,o){var a=r.getRepresentValue({interval:i});o||(o=r.getValueState(a));var s=e(a,o);i[0]===-1/0?n[0]=s:i[1]===1/0?n[1]=s:t.push({value:i[0],color:s},{value:i[1],color:s})}},t.type="visualMap.piecewise",t.defaultOption=ec(aQ.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}(aQ),HQ={splitNumber:function(e){var t=this.option,n=Math.min(t.precision,20),r=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;var o=(r[1]-r[0])/i;while(+o.toFixed(n)!==o&&n<5)n++;t.precision=n,o=+o.toFixed(n),t.minOpen&&e.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,n)}),this)}};function zQ(e,t){var n=e.inverse;("vertical"===e.orient?!n:n)&&t.reverse()}var FQ=RQ,BQ=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n.type=t.type,n}return p(t,e),t.prototype.doRender=function(){var e=this.group;e.removeAll();var t=this.visualMapModel,n=t.get("textGap"),r=t.textStyleModel,i=r.getFont(),o=r.getTextColor(),a=this._getItemAlign(),s=t.itemSize,l=this._getViewData(),u=l.endsText,c=g["retrieve"](t.get("showLabel",!0),!u),d=!t.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,a),g["each"](l.viewPieceList,(function(r){var l=r.piece,u=new Hr;u.onclick=g["bind"](this._onItemClick,this,l),this._enableHoverLink(u,r.indexInModelPieceList);var f=t.getRepresentValue(l);if(this._createItemSymbol(u,f,[0,0,s[0],s[1]],d),c){var h=this.visualMapModel.getValueState(f);u.add(new qs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:o,opacity:"outOfRange"===h?.5:1},silent:d}))}e.add(u)}),this),u&&this._renderEndsText(e,u[1],s,c,a),ld(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 r("highlight")})).on("mouseout",(function(){return r("downplay")}));var r=function(e){var r=n.visualMapModel;r.option.hoverLink&&n.api.dispatchAction({type:e,batch:mQ(r.findTargetDataIndices(t),r)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return pQ(e,this.api,e.itemSize);var n=t.align;return n&&"auto"!==n||(n="left"),n},t.prototype._renderEndsText=function(e,t,n,r,i){if(t){var o=new Hr,a=this.visualMapModel.textStyleModel;o.add(new qs({style:Su(a,{x:r?"right"===i?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:r?i:"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"),r=e.get("orient"),i=e.get("inverse");return("horizontal"===r?i:!i)?t.reverse():n&&(n=n.slice().reverse()),{viewPieceList:t,endsText:n}},t.prototype._createItemSymbol=function(e,t,n,r){var i=Ay(this.getControllerVisual(t,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(t,"color"));i.silent=r,e.add(i)},t.prototype._onItemClick=function(e){var t=this.visualMapModel,n=t.option,r=n.selectedMode;if(r){var i=g["clone"](n.selected),o=t.getSelectedMapKey(e);"single"===r||!0===r?(i[o]=!0,g["each"](i,(function(e,t){i[t]=t===o}))):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},t.type="visualMap.piecewise",t}(fQ),WQ=BQ;function VQ(e){e.registerComponentModel(FQ),e.registerComponentView(WQ),PQ(e)}function GQ(e){yx(NQ),yx(VQ)}var $Q={label:{enabled:!0},decal:{show:!1}},UQ=Qi(),qQ={};function XQ(e,t){var n=e.getModel("aria");if(n.get("enabled")){var r=g["clone"]($Q);g["merge"](r.label,e.getLocaleModel().get("aria"),!1),g["merge"](n.option,r,!1),i(),o()}function i(){var t=n.getModel("decal"),r=t.get("show");if(r){var i=g["createHashMap"]();e.eachSeries((function(e){if(!e.isColorBySeries()){var t=i.get(e.type);t||(t={},i.set(e.type,t)),UQ(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 r=qd(t.ecModel,t.name,qQ,e.getSeriesCount()),i=n.getVisual("decal");n.setVisual("decal",u(i,r))}else{var o=t.getRawData(),a={},s=UQ(t).scope;n.each((function(e){var t=n.getRawIndex(e);a[t]=e}));var l=o.count();o.each((function(e){var r=a[e],i=o.getName(e)||e+"",c=qd(t.ecModel,i,s,l),d=n.getItemVisual(r,"decal");n.setItemVisual(r,"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 r=t.getZr().dom;if(r){var i=e.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=g["defaults"](o.option,i),o.get("enabled"))if(r.setAttribute("role","img"),o.get("description"))r.setAttribute("aria-label",o.get("description"));else{var u,c=e.getSeriesCount(),d=o.get(["data","maxCount"])||10,f=o.get(["series","maxCount"])||10,h=Math.min(c,f);if(!(c<1)){var p=s();if(p){var m=o.get(["general","withTitle"]);u=a(m,{title:p})}else u=o.get(["general","withoutTitle"]);var v=[],y=c>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]);u+=a(y,{seriesCount:c}),e.eachSeries((function(e,t){if(t1?o.get(["series","multiple",i]):o.get(["series","single",i]),n=a(n,{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:l(e.subType)});var s=e.getData();if(s.count()>d){var u=o.get(["data","partialData"]);n+=a(u,{displayCnt:d})}else n+=o.get(["data","allData"]);for(var f=o.get(["data","separator","middle"]),p=o.get(["data","separator","end"]),m=o.get(["data","excludeDimensionId"]),y=[],_=0;_":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},QQ=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,nf(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}(),e0=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),t0=function(){function e(){}return e.prototype.evaluate=function(){for(var e=this.children,t=0;t2&&l.push(t),t=[e,n]}function p(e,n,r,i){_0(e,r)&&_0(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,u=nk:T2&&l.push(t),l}function x0(e,t,n,r,i,o,a,s,l,u){if(_0(e,n)&&_0(t,r)&&_0(i,a)&&_0(o,s))l.push(a,s);else{var c=2/u,d=c*c,f=a-e,h=s-t,p=Math.sqrt(f*f+h*h);f/=p,h/=p;var m=n-e,g=r-t,v=i-a,y=o-s,_=m*m+g*g,b=v*v+y*y;if(_=0&&k=0)l.push(a,s);else{var S=[],L=[];zt(e,n,i,a,.5,S),zt(t,r,o,s,.5,L),x0(S[0],L[0],S[1],L[1],S[2],L[2],S[3],L[3],l,u),x0(S[4],L[4],S[5],L[5],S[6],L[6],S[7],L[7],l,u)}}}}function w0(e,t){var n=b0(e),r=[];t=t||1;for(var i=0;i0)for(u=0;uMath.abs(u),d=M0([l,u],c?0:1,t),f=(c?s:u)/d.length,h=0;hi,a=M0([r,i],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,f=0;f1?null:new Ee(m*l+e,m*u+t)}function D0(e,t,n){var r=new Ee;Ee.sub(r,n,t),r.normalize();var i=new Ee;Ee.sub(i,e,t);var o=i.dot(r);return o}function O0(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function C0(e,t,n){for(var r=e.length,i=[],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),C0(t,u,c)}function I0(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);I0(e,o[0],i,r),I0(e,o[1],n-i,r)}return r}function j0(e,t){for(var n=[],r=0;r0)for(var x=r/n,w=-r/2;w<=r/2;w+=x){var M=Math.sin(w),k=Math.cos(w),S=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 J0(e){var t=1/0,n=1/0,r=-1/0,i=-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),r=Math.max(s,r),i=Math.max(l,i),[s,l]})),a=Object(g["map"])(o,(function(o,a){return{cp:o,z:K0(o[0],o[1],t,n,r,i),path:e[a]}}));return a.sort((function(e,t){return e.z-t.z})).map((function(e){return e.path}))}function Q0(e){return P0(e.path,e.count)}function e1(){return{fromIndividuals:[],toIndividuals:[],count:0}}function t1(e,t,n){var r=[];function i(e){for(var t=0;t=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var o1={clone:function(e){for(var t=[],n=1-Math.pow(1-e.path.style.opacity,1/e.count),r=0;r0){var s,l,u=r.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);r1(e)&&(s=e,l=t),r1(t)&&(s=t,l=e);for(var d=s?s===e:e.length>t.length,f=s?i1(l,s):i1(d?t:e,[d?e:t]),h=0,p=0;pl1))for(var i=n.getIndices(),o=0;o0&&i.group.traverse((function(e){e instanceof hs&&!e.animators.length&&e.animateFrom({style:{opacity:0}},o)}))}))}function M1(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function k1(e){return Object(g["isArray"])(e)?e.sort().join(","):e}function S1(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function L1(e,t){var n=Object(g["createHashMap"])(),r=Object(g["createHashMap"])(),i=Object(g["createHashMap"])();return Object(g["each"])(e.oldSeries,(function(t,n){var o=e.oldDataGroupIds[n],a=e.oldData[n],s=M1(t),l=k1(s);r.set(l,{dataGroupId:o,data:a}),Object(g["isArray"])(s)&&Object(g["each"])(s,(function(e){i.set(e,{key:l,dataGroupId:o,data:a})}))})),Object(g["each"])(t.updatedSeries,(function(e){if(e.isUniversalTransitionEnabled()&&e.isAnimationEnabled()){var t=e.get("dataGroupId"),o=e.getData(),a=M1(e),s=k1(a),l=r.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:S1(l.data),data:l.data}],newSeries:[{dataGroupId:t,divide:S1(o),data:o}]});else if(Object(g["isArray"])(a)){0;var u=[];Object(g["each"])(a,(function(e){var t=r.get(e);t.data&&u.push({dataGroupId:t.dataGroupId,divide:S1(t.data),data:t.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:t,data:o,divide:S1(o)}]})}else{var c=i.get(a);if(c){var d=n.get(c.key);d||(d={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:S1(c.data)}],newSeries:[]},n.set(c.key,d)),d.newSeries.push({dataGroupId:t,data:o,divide:S1(o)})}}}})),n}function T1(e,t){for(var n=0;n=0&&i.push({dataGroupId:t.oldDataGroupIds[n],data:t.oldData[n],divide:S1(t.oldData[n]),groupIdDim:e.dimension})})),Object(g["each"])(Ai(e.to),(function(e){var r=T1(n.updatedSeries,e);if(r>=0){var i=n.updatedSeries[r].getData();o.push({dataGroupId:t.oldDataGroupIds[r],data:i,divide:S1(i),groupIdDim:e.dimension})}})),i.length>0&&o.length>0&&w1(i,o,r)}function O1(e){e.registerUpdateLifecycle("series:beforeupdate",(function(e,t,n){Object(g["each"])(Ai(n.seriesTransition),(function(e){Object(g["each"])(Ai(e.to),(function(e){for(var t=n.updatedSeries,r=0;r12?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}))},"0cb1":function(e,t,n){"use strict";var r=n("3e36"),i=n("7a25"),o=n("4e41"),a=n("abdf").f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||a(t,e,{value:o.f(e)})}},"0d9f":function(e,t,n){"use strict";var r=n("d331").PROPER,i=n("ef30"),o=n("157c"),a=n("2a3e"),s=n("72df"),l=n("1b03"),u="toString",c=RegExp.prototype,d=c[u],f=s((function(){return"/a/b"!==d.call({source:"a",flags:"b"})})),h=r&&d.name!==u;(f||h)&&i(c,u,(function(){var e=o(this),t=a(e.source),n=a(l(e));return"/"+t+"/"+n}),{unsafe:!0})},"0dc7":function(e,t,n){"use strict";var r=TypeError,i=9007199254740991;e.exports=function(e){if(e>i)throw r("Maximum allowed index exceeded");return e}},"0df6":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"0e39":function(e,t,n){"use strict";var r=n("7a25"),i=n("3ce8"),o=n("37d1"),a=n("332c"),s=n("802e"),l=a("IE_PROTO"),u=Object,c=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=o(e);if(r(t,l))return t[l];var n=t.constructor;return i(n)&&t instanceof n?n.prototype:t instanceof u?c:null}},"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 r=e%10,i=e%100-r,o=e>=100?100:null;return e+(t[r]||t[i]||t[o])}},week:{dow:1,doy:7}});return n}))},"0e93":function(e,t,n){"use strict";e.exports=!1},"0eef":function(e,t,n){t.f=n("e1cb")},"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}))},"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}))},1015:function(e,t,n){var r=n("032a"),i=n("d060"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("362d")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"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}))},"11a3":function(e,t,n){n("28c0"),n("9149"),e.exports=n("0eef").f("iterator")},"11ed":function(e,t,n){"use strict";var r=n("6b1d"),i=n("37d1"),o=n("9a0f"),a=n("9616"),s=n("0481"),l=n("5231"),u=n("0dc7"),c=n("6a86"),d=n("dac6"),f=n("653f"),h=n("189b"),p=h("splice"),m=Math.max,g=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,h,p,v,y,_=i(this),b=s(_),x=o(e,b),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=b-x):(n=w-2,r=g(m(a(t),0),b-x)),u(b+n-r),h=c(_,r),p=0;pb-r+n;p--)f(_,p-1)}else if(n>r)for(p=b-r;p>x;p--)v=p+r-1,y=p+n-1,v in _?_[y]=_[v]:f(_,y);for(p=0;p=4096)t+=12,n/=4096;while(n>=2)t+=1,n/=2;return t},v=function(e,t,n){var r=-1,i=n;while(++r<6)i+=t*e[r],e[r]=i%1e7,i=d(i/1e7)},y=function(e,t){var n=6,r=0;while(--n>=0)r+=e[n],e[n]=d(r/t),r=r%t*1e7},_=function(e){var t=6,n="";while(--t>=0)if(""!==n||0===t||0!==e[t]){var r=c(e[t]);n=""===n?r:n+f("0",7-r.length)+r}return n},b=l((function(){return"0.000"!==p(8e-5,3)||"1"!==p(.9,0)||"1.25"!==p(1.255,2)||"1000000000000000128"!==p(0xde0b6b3a7640080,0)}))||!l((function(){p({})}));r({target:"Number",proto:!0,forced:b},{toFixed:function(e){var t,n,r,i,s=a(this),l=o(e),d=[0,0,0,0,0,0],p="",b="0";if(l<0||l>20)throw new u("Incorrect fraction digits");if(s!==s)return"NaN";if(s<=-1e21||s>=1e21)return c(s);if(s<0&&(p="-",s=-s),s>1e-21)if(t=g(s*m(2,69,1))-69,n=t<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,t=52-t,t>0){v(d,0,n),r=l;while(r>=7)v(d,1e7,0),r-=7;v(d,m(10,r,1),0),r=t-1;while(r>=23)y(d,1<<23),r-=23;y(d,1<0?(i=b.length,b=p+(i<=l?"0."+f("0",l-i)+b:h(b,0,i-l)+"."+h(b,i-l))):b=p+b,b}})},"130d":function(e,t,n){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"13b8":function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},"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,r,i){var o,a=t.words[r];return 1===r.length?"y"===r&&n?"једна година":i||n?a[0]:a[1]:(o=t.correctGrammaticalCase(e,a),"yy"===r&&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}))},1408:function(e,t,n){"use strict";var r=n("e4be"),i=n("c8a4"),o=n("2ee2"),a=n("debc");e.exports=function(e){if(e.length<1||"function"!==typeof e[0])throw new i("a function is required");return a(r,o,e)}},1415:function(e,t,n){var r=n("d060").document;e.exports=r&&r.documentElement},"153a":function(e,t,n){"use strict";var r=n("6b1d"),i=n("b9b8"),o=n("0e93");r({target:"Iterator",proto:!0,real:!0,forced:o},{map:i})},1543:function(e,t,n){"use strict";var r=n("72df"),i=n("58b6"),o=i.RegExp;e.exports=r((function(){var e=o("(?b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$c")}))},"157c":function(e,t,n){"use strict";var r=n("7526"),i=String,o=TypeError;e.exports=function(e){if(r(e))return e;throw new o(i(e)+" is not an object")}},1586:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"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}))},"16d1":function(e,t,n){"use strict";var r=n("6b1d"),i=n("d4cb"),o=n("a03e"),a=n("378c"),s=n("185a"),l=n("dac6");r({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){var t,n,r=a(e),i=s.f,u=o(r),c={},d=0;while(u.length>d)n=i(r,t=u[d++]),void 0!==n&&l(c,t,n);return c}})},1702:function(e,t,n){"use strict";var r=n("abdf").f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},"174d":function(e,t,n){"use strict";var r=n("d4cb"),i=n("70b7"),o=n("b546"),a=n("72df"),s=n("0c47"),l=n("2402"),u=n("e129"),c=n("37d1"),d=n("83a6"),f=Object.assign,h=Object.defineProperty,p=i([].concat);e.exports=!f||a((function(){if(r&&1!==f({b:1},f(h({},"a",{enumerable:!0,get:function(){h(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol("assign detection"),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!==f({},e)[n]||s(f({},t)).join("")!==i}))?function(e,t){var n=c(e),i=arguments.length,a=1,f=l.f,h=u.f;while(i>a){var m,g=d(arguments[a++]),v=f?p(s(g),f(g)):s(g),y=v.length,_=0;while(y>_)m=v[_++],r&&!o(h,g,m)||(n[m]=g[m])}return n}:f},"185a":function(e,t,n){"use strict";var r=n("d4cb"),i=n("b546"),o=n("e129"),a=n("9618"),s=n("378c"),l=n("feca"),u=n("7a25"),c=n("7c3f"),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=l(t),c)try{return d(e,t)}catch(n){}if(u(e,t))return a(!i(o.f,e,t),e[t])}},"189b":function(e,t,n){"use strict";var r=n("72df"),i=n("7d53"),o=n("c14a"),a=i("species");e.exports=function(e){return o>=51||!r((function(){var t=[],n=t.constructor={};return n[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},"18c8":function(e,t){t.f={}.propertyIsEnumerable},"18ef":function(e,t,n){"use strict";var r=n("70b7"),i=n("63d3");e.exports=function(e,t,n){try{return r(i(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(o){}}},1982:function(e,t,n){"use strict";var r=n("b546"),i=n("82e8"),o=n("5b12"),a=n("2b95"),s=n("7d53"),l=n("cdcd"),u=n("60de"),c=n("ff89").IteratorPrototype,d=n("67b1"),f=n("aaba"),h=s("toStringTag"),p="IteratorHelper",m="WrapForValidIterator",g=l.set,v=function(e){var t=l.getterFor(e?m:p);return a(i(c),{next:function(){var n=t(this);if(e)return n.nextHandler();if(n.done)return d(void 0,!0);try{var r=n.nextHandler();return n.returnHandlerResult?r:d(r,n.done)}catch(i){throw n.done=!0,i}},return:function(){var n=t(this),i=n.iterator;if(n.done=!0,e){var o=u(i,"return");return o?r(o,i):d(void 0,!0)}if(n.inner)try{f(n.inner.iterator,"normal")}catch(a){return f(i,"throw",a)}return i&&f(i,"normal"),d(void 0,!0)}})},y=v(!0),_=v(!1);o(_,h,"Iterator Helper"),e.exports=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?m:p,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,g(this,i)};return r.prototype=t?y:_,r}},"1a62":function(e,t,n){"use strict";(function(e){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var r=n("7443"),i=n("d53c"),o=n("e041");function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function _(e){return+e!=e&&(e=0),u.alloc(+e)}function b(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return Z(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return I(this,t,n);case"ascii":return Y(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return A(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function w(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function M(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:k(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):k(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var d=!0,f=0;fi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&u)<<6|63&o,l>127&&(c=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(c=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(c=l))}null===c?(c=65533,d=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=d}return E(r)}t.Buffer=u,t.SlowBuffer=_,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return c(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return f(null,e,t,n)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),d=0;di)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return S(this,e,t,n);case"utf8":case"utf-8":return L(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return D(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function E(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function F(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function B(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function W(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function V(e,t,n,r,o){return o||W(e,t,n,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,n,r,23,4),n+4}function G(e,t,n,r,o){return o||W(e,t,n,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||H(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||H(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||H(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||H(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||H(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||H(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||H(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||H(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||H(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||H(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||H(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||H(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||H(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||H(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||H(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||H(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;z(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):F(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):F(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):B(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);z(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);z(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):F(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):F(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):B(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):B(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return V(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return V(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return G(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return G(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Q(e){return r.toByteArray(U(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("7d15"))},"1ad2":function(e,t,n){"use strict";var r=n("6b1d"),i=n("b578"),o=n("63d3"),a=n("157c"),s=n("ac30");r({target:"Iterator",proto:!0,real:!0},{find:function(e){a(this),o(e);var t=s(this),n=0;return i(t,(function(t,r){if(e(t,n++))return r(t)}),{IS_RECORD:!0,INTERRUPTED:!0}).result}})},"1b03":function(e,t,n){"use strict";var r=n("b546"),i=n("7a25"),o=n("fb9b"),a=n("abfd"),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||i(e,"flags")||!o(s,e)?t:r(a,e)}},"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}))},"1ce9":function(e,t,n){"use strict";e.exports=Math.max},"1cef":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("8423"),n("33ef"),n("868d"),n("ef1f"),n("2aa5"),n("dee9"),n("0d9f"),n("f3b8");var r=n("9446");function i(e,t){if(e){if("string"==typeof e)return Object(r["a"])(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r["a"])(e,t):void 0}}},"1cfd":function(e,t,n){(function(e,t){t(n("c1df"))})(0,(function(e){"use strict"; //! moment.js locale configuration var t={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(t,i,o,a){var s=n(t),l=r[e][n(t)];return 2===s&&(l=l[i?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:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("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";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;rc)if(u=s[c++],u!==u)return!0}else for(;l>c;c++)if((e||c in s)&&s[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"1f7d":function(e,t,n){"use strict";var r=n("4734");if(r)try{r([],"length")}catch(i){r=null}e.exports=r},"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,r){var i={ss:n?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:n?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:n?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"};return"m"===r?n?"хвіліна":"хвіліну":"h"===r?n?"гадзіна":"гадзіну":e+" "+t(i[r],+e)}var r=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 r}))},2007:function(e,t,n){"use strict";var r=n("6b1d"),i=n("174d");r({target:"Object",stat:!0,arity:2,forced:Object.assign!==i},{assign: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}))},"20e0":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},2117:function(e,t,n){"use strict";var r=n("5712"),i=n("63d3"),o=n("43f8"),a=r(r.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},2151:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},2284:function(e,t,n){"use strict";var r=Object.defineProperty||!1;if(r)try{r({},"a",{value:1})}catch(i){r=!1}e.exports=r},"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}))},"23fd":function(e,t,n){"use strict";var r=n("d060"),i=n("4177"),o=n("5a19"),a=n("d497"),s=n("8533"),l=n("5b17").KEY,u=n("9332"),c=n("1015"),d=n("cbcc"),f=n("2151"),h=n("e1cb"),p=n("0eef"),m=n("d4ef"),g=n("2aa57"),v=n("c3b1"),y=n("dd48"),_=n("355b"),b=n("b733"),x=n("e68c"),w=n("b4a7"),M=n("d601"),k=n("8357"),S=n("a42d"),L=n("827b"),T=n("2e84"),D=n("d906"),O=n("d1fe"),C=L.f,A=D.f,I=S.f,j=r.Symbol,E=r.JSON,Y=E&&E.stringify,P="prototype",N=h("_hidden"),R=h("toPrimitive"),H={}.propertyIsEnumerable,z=c("symbol-registry"),F=c("symbols"),B=c("op-symbols"),W=Object[P],V="function"==typeof j&&!!T.f,G=r.QObject,$=!G||!G[P]||!G[P].findChild,U=o&&u((function(){return 7!=k(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=C(W,t);r&&delete W[t],A(e,t,n),r&&e!==W&&A(W,t,r)}:A,q=function(e){var t=F[e]=k(j[P]);return t._k=e,t},X=V&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},Z=function(e,t,n){return e===W&&Z(B,t,n),y(e),t=w(t,!0),y(n),i(F,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=k(n,{enumerable:M(0,!1)})):(i(e,N)||A(e,N,M(1,{})),e[N][t]=!0),U(e,t,n)):A(e,t,n)},K=function(e,t){y(e);var n,r=g(t=x(t)),i=0,o=r.length;while(o>i)Z(e,n=r[i++],t[n]);return e},J=function(e,t){return void 0===t?k(e):K(k(e),t)},Q=function(e){var t=H.call(this,e=w(e,!0));return!(this===W&&i(F,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,N)&&this[N][e])||t)},ee=function(e,t){if(e=x(e),t=w(t,!0),e!==W||!i(F,t)||i(B,t)){var n=C(e,t);return!n||!i(F,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},te=function(e){var t,n=I(x(e)),r=[],o=0;while(n.length>o)i(F,t=n[o++])||t==N||t==l||r.push(t);return r},ne=function(e){var t,n=e===W,r=I(n?B:x(e)),o=[],a=0;while(r.length>a)!i(F,t=r[a++])||n&&!i(W,t)||o.push(F[t]);return o};V||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(B,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),U(this,e,M(1,n))};return o&&$&&U(W,e,{configurable:!0,set:t}),q(e)},s(j[P],"toString",(function(){return this._k})),L.f=ee,D.f=Z,n("4e17").f=S.f=te,n("18c8").f=Q,T.f=ne,o&&!n("362d")&&s(W,"propertyIsEnumerable",Q,!0),p.f=function(e){return q(h(e))}),a(a.G+a.W+a.F*!V,{Symbol:j});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)h(re[ie++]);for(var oe=O(h.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!V,"Symbol",{for:function(e){return i(z,e+="")?z[e]:z[e]=j(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in z)if(z[t]===e)return t},useSetter:function(){$=!0},useSimple:function(){$=!1}}),a(a.S+a.F*!V,"Object",{create:J,defineProperty:Z,defineProperties:K,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))}}),E&&a(a.S+a.F*(!V||u((function(){var e=j();return"[null]"!=Y([e])||"{}"!=Y({a:e})||"{}"!=Y(Object(e))}))),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[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}),r[1]=t,Y.apply(E,r)}}),j[P][R]||n("c4e3")(j[P],R,j[P].valueOf),d(j,"Symbol"),d(Math,"Math",!0),d(r.JSON,"JSON",!0)},2402:function(e,t,n){"use strict";t.f=Object.getOwnPropertySymbols},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"},r=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"],i=e.defineLocale("ku",{months:r,monthsShort:r,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 i}))},2435:function(e,t,n){"use strict";var r,i,o,a,s=n("58b6"),l=n("d54f"),u=n("2117"),c=n("3ce8"),d=n("7a25"),f=n("72df"),h=n("9324"),p=n("de02"),m=n("f2bf"),g=n("ae5d"),v=n("e24c"),y=n("c23a"),_=s.setImmediate,b=s.clearImmediate,x=s.process,w=s.Dispatch,M=s.Function,k=s.MessageChannel,S=s.String,L=0,T={},D="onreadystatechange";f((function(){r=s.location}));var O=function(e){if(d(T,e)){var t=T[e];delete T[e],t()}},C=function(e){return function(){O(e)}},A=function(e){O(e.data)},I=function(e){s.postMessage(S(e),r.protocol+"//"+r.host)};_&&b||(_=function(e){g(arguments.length,1);var t=c(e)?e:M(e),n=p(arguments,1);return T[++L]=function(){l(t,void 0,n)},i(L),L},b=function(e){delete T[e]},y?i=function(e){x.nextTick(C(e))}:w&&w.now?i=function(e){w.now(C(e))}:k&&!v?(o=new k,a=o.port2,o.port1.onmessage=A,i=u(a.postMessage,a)):s.addEventListener&&c(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!f(I)?(i=I,s.addEventListener("message",A,!1)):i=D in m("script")?function(e){h.appendChild(m("script"))[D]=function(){h.removeChild(this),O(e)}}:function(e){setTimeout(C(e),0)}),e.exports={set:_,clear:b}},2444:function(e,t,n){"use strict";(function(t){var r=n("c532"),i=n("c8af"),o=n("387f"),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function l(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof t&&"[object process]"===Object.prototype.toString.call(t))&&(e=n("b50d")),e}function u(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(i){if("SyntaxError"!==i.name)throw i}return(n||JSON.stringify)(e)}var c={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:l(),transformRequest:[function(e,t){return i(t,"Accept"),i(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(s(t,"application/json"),u(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(s){if(a){if("SyntaxError"===s.name)throw o(s,this,"E_JSON_PARSE");throw s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(a)})),e.exports=c}).call(this,n("07d9"))},"244f":function(e,t){ /*! * Determine if an object is a Buffer * * @author Feross Aboukhadijeh * @license MIT */ e.exports=function(e){return null!=e&&null!=e.constructor&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},2514:function(e,t,n){"use strict";var r=n("157c"),i=n("aaba");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},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,r){switch(n){case"m":return t?"jedna minuta":r?"jednu minutu":"jedne minute"}}function n(e,t,n){var r=e+" ";switch(n){case"ss":return r+=1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi",r;case"mm":return r+=1===e?"minuta":2===e||3===e||4===e?"minute":"minuta",r;case"h":return"jedan sat";case"hh":return r+=1===e?"sat":2===e||3===e||4===e?"sata":"sati",r;case"dd":return r+=1===e?"dan":"dana",r;case"MM":return r+=1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci",r;case"yy":return r+=1===e?"godina":2===e||3===e||4===e?"godine":"godina",r}}var r=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:n,m:t,mm:n,h:n,hh:n,d:"dan",dd:n,M:"mjesec",MM:n,y:"godinu",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}});return r}))},2618:function(e,t,n){"use strict";var r=n("6b1d"),i=n("baa5").start,o=n("da9a");r({target:"String",proto:!0,forced:o},{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"26cd":function(e,t,n){"use strict";var r=n("e552");e.exports=/ipad|iphone|ipod/i.test(r)&&"undefined"!=typeof Pebble},"26d3":function(e,t,n){"use strict";n("4172"),n("8071"),n("52e2"),n("36b3"),n("0244"),n("27c8")},"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,r){return t?"kelios sekundės":r?"kelių sekundžių":"kelias sekundes"}function r(e,t,n,r){return t?o(n)[0]:r?o(n)[1]:o(n)[2]}function i(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+r(e,t,n[0],a):t?s+(i(e)?o(n)[1]:o(n)[0]):a?s+o(n)[1]:s+(i(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:r,mm:a,h:r,hh:a,d:r,dd:a,M:r,MM:a,y:r,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}});return s}))},"275a":function(e,t,n){"use strict";var r=n("1586");function i(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var e,t=new i((function(t){e=t}));return{token:t,cancel:e}},e.exports=i},"27c8":function(e,t,n){"use strict";var r=n("6b1d"),i=n("5428"),o=n("0e93"),a=n("367f"),s=n("f297").CONSTRUCTOR,l=n("9c36"),u=i("Promise"),c=o&&!s;r({target:"Promise",stat:!0,forced:o||s},{resolve:function(e){return l(c&&this===u?a:this,e)}})},"28c0":function(e,t,n){"use strict";var r=n("9c7b")(!0);n("9e78")(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=r(t,n),this._i+=e.length,{value:e,done:!1})}))},"28eb":function(e,t,n){"use strict";var r=n("6b1d"),i=n("98f3").left,o=n("7f8a"),a=n("c14a"),s=n("c23a"),l=!s&&a>79&&a<83,u=l||!o("reduce");r({target:"Array",proto:!0,forced:u},{reduce:function(e){var t=arguments.length;return i(this,e,t,t>1?arguments[1]:void 0)}})},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}))},2928:function(e,t){e.exports={}},"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,r){var i=t.words[r];return 1===r.length?n?i[0]:i[1]:e+" "+t.correctGrammaticalCase(e,i)}},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}))},"2a1b":function(e,t,n){(function(t){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=s&&l&&"function"===typeof l.get?l.get:null,c=s&&Set.prototype.forEach,d="function"===typeof WeakMap&&WeakMap.prototype,f=d?WeakMap.prototype.has:null,h="function"===typeof WeakSet&&WeakSet.prototype,p=h?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,g=m?WeakRef.prototype.deref:null,v=Boolean.prototype.valueOf,y=Object.prototype.toString,_=Function.prototype.toString,b=String.prototype.match,x=String.prototype.slice,w=String.prototype.replace,M=String.prototype.toUpperCase,k=String.prototype.toLowerCase,S=RegExp.prototype.test,L=Array.prototype.concat,T=Array.prototype.join,D=Array.prototype.slice,O=Math.floor,C="function"===typeof BigInt?BigInt.prototype.valueOf:null,A=Object.getOwnPropertySymbols,I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"===typeof Symbol&&"object"===typeof Symbol.iterator,E="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,Y=Object.prototype.propertyIsEnumerable,P=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function N(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var i=String(r),o=x.call(t,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(t,n,"$&_")}var R=n(1),H=R.custom,z=Q(H)?H:null,F={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function W(e,t,n){var r=n.quoteStyle||t,i=F[r];return i+e+i}function V(e){return w.call(String(e),/"/g,""")}function G(e){return!E||!("object"===typeof e&&(E in e||"undefined"!==typeof e[E]))}function $(e){return"[object Array]"===re(e)&&G(e)}function U(e){return"[object Date]"===re(e)&&G(e)}function q(e){return"[object RegExp]"===re(e)&&G(e)}function X(e){return"[object Error]"===re(e)&&G(e)}function Z(e){return"[object String]"===re(e)&&G(e)}function K(e){return"[object Number]"===re(e)&&G(e)}function J(e){return"[object Boolean]"===re(e)&&G(e)}function Q(e){if(j)return e&&"object"===typeof e&&e instanceof Symbol;if("symbol"===typeof e)return!0;if(!e||"object"!==typeof e||!I)return!1;try{return I.call(e),!0}catch(t){}return!1}function ee(e){if(!e||"object"!==typeof e||!C)return!1;try{return C.call(e),!0}catch(t){}return!1}e.exports=function e(n,r,i,s){var l=r||{};if(ne(l,"quoteStyle")&&!ne(F,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ne(l,"maxStringLength")&&("number"===typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var d=!ne(l,"customInspect")||l.customInspect;if("boolean"!==typeof d&&"symbol"!==d)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ne(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ne(l,"numericSeparator")&&"boolean"!==typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=l.numericSeparator;if("undefined"===typeof n)return"undefined";if(null===n)return"null";if("boolean"===typeof n)return n?"true":"false";if("string"===typeof n)return fe(n,l);if("number"===typeof n){if(0===n)return 1/0/n>0?"0":"-0";var h=String(n);return f?N(n,h):h}if("bigint"===typeof n){var p=String(n)+"n";return f?N(n,p):p}var m="undefined"===typeof l.depth?5:l.depth;if("undefined"===typeof i&&(i=0),i>=m&&m>0&&"object"===typeof n)return $(n)?"[Array]":"[Object]";var g=ye(l,i);if("undefined"===typeof s)s=[];else if(oe(s,n)>=0)return"[Circular]";function y(t,n,r){if(n&&(s=D.call(s),s.push(n)),r){var o={depth:l.depth};return ne(l,"quoteStyle")&&(o.quoteStyle=l.quoteStyle),e(t,o,i+1,s)}return e(t,l,i+1,s)}if("function"===typeof n&&!q(n)){var _=ie(n),b=be(n,y);return"[Function"+(_?": "+_:" (anonymous)")+"]"+(b.length>0?" { "+T.call(b,", ")+" }":"")}if(Q(n)){var M=j?w.call(String(n),/^(Symbol\(.*\))_[^)]*$/,"$1"):I.call(n);return"object"!==typeof n||j?M:pe(M)}if(de(n)){for(var S="<"+k.call(String(n.nodeName)),O=n.attributes||[],A=0;A",S}if($(n)){if(0===n.length)return"[]";var H=be(n,y);return g&&!ve(H)?"["+_e(H,g)+"]":"[ "+T.call(H,", ")+" ]"}if(X(n)){var B=be(n,y);return"cause"in Error.prototype||!("cause"in n)||Y.call(n,"cause")?0===B.length?"["+String(n)+"]":"{ ["+String(n)+"] "+T.call(B,", ")+" }":"{ ["+String(n)+"] "+T.call(L.call("[cause]: "+y(n.cause),B),", ")+" }"}if("object"===typeof n&&d){if(z&&"function"===typeof n[z]&&R)return R(n,{depth:m-i});if("symbol"!==d&&"function"===typeof n.inspect)return n.inspect()}if(ae(n)){var G=[];return a&&a.call(n,(function(e,t){G.push(y(t,n,!0)+" => "+y(e,n))})),ge("Map",o.call(n),G,g)}if(ue(n)){var te=[];return c&&c.call(n,(function(e){te.push(y(e,n))})),ge("Set",u.call(n),te,g)}if(se(n))return me("WeakMap");if(ce(n))return me("WeakSet");if(le(n))return me("WeakRef");if(K(n))return pe(y(Number(n)));if(ee(n))return pe(y(C.call(n)));if(J(n))return pe(v.call(n));if(Z(n))return pe(y(String(n)));if("undefined"!==typeof window&&n===window)return"{ [object Window] }";if("undefined"!==typeof globalThis&&n===globalThis||"undefined"!==typeof t&&n===t)return"{ [object globalThis] }";if(!U(n)&&!q(n)){var he=be(n,y),xe=P?P(n)===Object.prototype:n instanceof Object||n.constructor===Object,we=n instanceof Object?"":"null prototype",Me=!xe&&E&&Object(n)===n&&E in n?x.call(re(n),8,-1):we?"Object":"",ke=xe||"function"!==typeof n.constructor?"":n.constructor.name?n.constructor.name+" ":"",Se=ke+(Me||we?"["+T.call(L.call([],Me||[],we||[]),": ")+"] ":"");return 0===he.length?Se+"{}":g?Se+"{"+_e(he,g)+"}":Se+"{ "+T.call(he,", ")+" }"}return String(n)};var te=Object.prototype.hasOwnProperty||function(e){return e in this};function ne(e,t){return te.call(e,t)}function re(e){return y.call(e)}function ie(e){if(e.name)return e.name;var t=b.call(_.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function oe(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return fe(x.call(e,0,t.maxStringLength),t)+r}var i=B[t.quoteStyle||"single"];i.lastIndex=0;var o=w.call(w.call(e,i,"\\$1"),/[\x00-\x1f]/g,he);return W(o,"single",t)}function he(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+M.call(t.toString(16))}function pe(e){return"Object("+e+")"}function me(e){return e+" { ? }"}function ge(e,t,n,r){var i=r?_e(n,r):T.call(n,", ");return e+" ("+t+") {"+i+"}"}function ve(e){for(var t=0;t=0)return!1;return!0}function ye(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"===typeof e.indent&&e.indent>0))return null;n=T.call(Array(e.indent+1)," ")}return{base:n,prev:T.call(Array(t+1),n)}}function _e(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+T.call(e,","+n)+"\n"+t.prev}function be(e,t){var n=$(e),r=[];if(n){r.length=e.length;for(var i=0;iu)l.call(e,a=s[u++])&&t.push(a)}return t}},"2b0e":function(e,t,n){"use strict";n.r(t),function(e){n.d(t,"EffectScope",(function(){return rr})),n.d(t,"computed",(function(){return cr})),n.d(t,"customRef",(function(){return Ue})),n.d(t,"default",(function(){return Zi})),n.d(t,"defineComponent",(function(){return Qr})),n.d(t,"del",(function(){return ci})),n.d(t,"effectScope",(function(){return ir})),n.d(t,"getCurrentInstance",(function(){return ge})),n.d(t,"getCurrentScope",(function(){return ar})),n.d(t,"h",(function(){return xr})),n.d(t,"inject",(function(){return gt})),n.d(t,"isProxy",(function(){return Ne})),n.d(t,"isReactive",(function(){return Ee})),n.d(t,"isReadonly",(function(){return Pe})),n.d(t,"isRef",(function(){return Fe})),n.d(t,"isShallow",(function(){return Ye})),n.d(t,"markRaw",(function(){return He})),n.d(t,"mergeDefaults",(function(){return gn})),n.d(t,"nextTick",(function(){return Yr})),n.d(t,"onActivated",(function(){return Ur})),n.d(t,"onBeforeMount",(function(){return zr})),n.d(t,"onBeforeUnmount",(function(){return Vr})),n.d(t,"onBeforeUpdate",(function(){return Br})),n.d(t,"onDeactivated",(function(){return qr})),n.d(t,"onErrorCaptured",(function(){return $r})),n.d(t,"onMounted",(function(){return Fr})),n.d(t,"onRenderTracked",(function(){return Zr})),n.d(t,"onRenderTriggered",(function(){return Kr})),n.d(t,"onScopeDispose",(function(){return sr})),n.d(t,"onServerPrefetch",(function(){return Xr})),n.d(t,"onUnmounted",(function(){return Gr})),n.d(t,"onUpdated",(function(){return Wr})),n.d(t,"provide",(function(){return mt})),n.d(t,"reactive",(function(){return Ae})),n.d(t,"readonly",(function(){return Je})),n.d(t,"ref",(function(){return Be})),n.d(t,"set",(function(){return ui})),n.d(t,"shallowReactive",(function(){return Ie})),n.d(t,"shallowReadonly",(function(){return tt})),n.d(t,"shallowRef",(function(){return We})),n.d(t,"toRaw",(function(){return Re})),n.d(t,"toRef",(function(){return Xe})),n.d(t,"toRefs",(function(){return qe})),n.d(t,"triggerRef",(function(){return Ge})),n.d(t,"unref",(function(){return $e})),n.d(t,"useAttrs",(function(){return pn})),n.d(t,"useCssModule",(function(){return Pr})),n.d(t,"useCssVars",(function(){return Nr})),n.d(t,"useSlots",(function(){return hn})),n.d(t,"version",(function(){return Jr})),n.d(t,"watch",(function(){return _r})),n.d(t,"watchEffect",(function(){return mr})),n.d(t,"watchPostEffect",(function(){return gr})),n.d(t,"watchSyncEffect",(function(){return vr})); /*! * Vue.js v2.7.0 * (c) 2014-2022 Evan You * Released under the MIT License. */ var r=Object.freeze({}),i=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 f=Object.prototype.toString;function h(e){return"[object Object]"===f.call(e)}function p(e){return"[object RegExp]"===f.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)||h(e)&&e.toString===f?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),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var w=Object.prototype.hasOwnProperty;function M(e,t){return w.call(e,t)}function k(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var S=/-(\w)/g,L=k((function(e){return e.replace(S,(function(e,t){return t?t.toUpperCase():""}))})),T=k((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),D=/\B([A-Z])/g,O=k((function(e){return e.replace(D,"-$1").toLowerCase()}));function C(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n}function A(e,t){return e.bind(t)}var I=Function.prototype.bind?A:C;function j(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function E(e,t){for(var n in t)e[n]=t[n];return e}function Y(e){for(var t={},n=0;n0,re=ee&&ee.indexOf("edge/")>0;ee&&ee.indexOf("android");var ie=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(Ks){}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 fe(e){return"function"===typeof e&&/native code/.test(e.toString())}var he,pe="undefined"!==typeof Symbol&&fe(Symbol)&&"undefined"!==typeof Reflect&&fe(Reflect.ownKeys);he="undefined"!==typeof Set&&fe(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=P,_e=0,be=function(){function e(){this.id=_e++,this.subs=[]}return e.prototype.addSub=function(e){this.subs.push(e)},e.prototype.removeSub=function(e){x(this.subs,e)},e.prototype.depend=function(t){e.target&&e.target.addDep(this)},e.prototype.notify=function(e){var t=this.subs.slice();for(var n=0,r=t.length;n0&&(r=pt(r,"".concat(t||"","_").concat(n)),ht(r[0])&&ht(c)&&(d[l]=Le(c.text+r[0].text),r.shift()),d.push.apply(d,r)):u(r)?ht(c)?d[l]=Le(c.text+r):""!==r&&d.push(Le(r)):ht(r)&&ht(c)?d[l]=Le(c.text+r.text):(s(e._isVList)&&a(r.tag)&&o(r.key)&&a(t)&&(r.key="__vlist".concat(t,"_").concat(n,"__")),d.push(r)));return d}function mt(e,t){if(me){var n=me._provided,r=me.$parent&&me.$parent._provided;r===n&&(n=me._provided=Object.create(r)),n[e]=t}else 0}function gt(e,t,n){void 0===n&&(n=!1);var r=me;if(r){var i=r.$parent&&r.$parent._provided;if(i&&e in i)return i[e];if(arguments.length>1)return n&&c(t)?t.call(r):t}else 0}function vt(e){var t=e.$options.provide;if(t){var n=c(t)?t.call(e):t;if(!d(n))return;var r=pe?Reflect.ownKeys(n):Object.keys(n);ve(e);for(var i=0;i0,s=t?!!t.$stable:!a,l=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==r&&l===i.$key&&!a&&!i.$hasNormal)return i;for(var u in o={},t)t[u]&&"$"!==u[0]&&(o[u]=kt(e,n,u,t[u]))}else o={};for(var c in n)c in o||(o[c]=St(n,c));return t&&Object.isExtensible(t)&&(t._normalized=o),X(o,"$stable",s),X(o,"$key",l),X(o,"$hasNormal",a),o}function kt(e,t,n,r){var o=function(){var t=me;ve(e);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!i(n)?[n]:ft(n);var o=n&&n[0];return ve(t),n&&(!o||1===n.length&&o.isComment&&!wt(o))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:o,enumerable:!0,configurable:!0}),o}function St(e,t){return function(){return e[t]}}function Lt(e,t){var n,r,o,s,l=null;if(i(e)||"string"===typeof e)for(l=new Array(e.length),n=0,r=e.length;n1?j(n):n;for(var r=j(arguments,1),i='event handler for "'.concat(e,'"'),o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Zn=function(){return Kn.now()})}function Jn(){var e,t;for(Xn=Zn(),Gn=!0,Fn.sort((function(e,t){return e.id-t.id})),$n=0;$n$n&&Fn[n].id>e.id)n--;Fn.splice(n+1,0,e)}else Fn.push(e);Vn||(Vn=!0,Yr(Jn))}}var rr=function(){function e(e){void 0===e&&(e=!1),this.active=!0,this.effects=[],this.cleanups=[],!e&&qn&&(this.parent=qn,this.index=(qn.scopes||(qn.scopes=[])).push(this)-1)}return e.prototype.run=function(e){if(this.active){var t=qn;try{return qn=this,e()}finally{qn=t}}else 0},e.prototype.on=function(){qn=this},e.prototype.off=function(){qn=this.parent},e.prototype.stop=function(e){if(this.active){var t=void 0,n=void 0;for(t=0,n=this.effects.length;t-1)if(o&&!M(i,"default"))a=!1;else if(""===a||a===O(e)){var l=Oi(String,i.type);(l<0||s-1)return this;var n=j(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 Ji(e){e.mixin=function(e){return this.options=wi(this.options,e),this}}function Qi(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name;var a=function(e){this._init(e)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=t++,a.options=wi(n.options,e),a["super"]=n,a.options.props&&eo(a),a.options.computed&&to(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,V.forEach((function(e){a[e]=n[e]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=E({},a.options),i[r]=a,a}}function eo(e){var t=e.options.props;for(var n in t)Ai(e.prototype,"_props",n)}function to(e){var t=e.options.computed;for(var n in t)Ri(e.prototype,n,t[n])}function no(e){V.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&h(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 ro(e){return e&&(e.Ctor.options.name||e.tag)}function io(e,t){return i(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!p(e)&&e.test(t)}function oo(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!t(s)&&ao(n,o,r,i)}}}function ao(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,x(n,t)}$i(Zi),Vi(Zi),Cn(Zi),En(Zi),bn(Zi);var so=[String,RegExp,Array],lo={name:"keep-alive",abstract:!0,props:{include:so,exclude:so,max:[String,Number]},methods:{cacheVNode:function(){var e=this,t=e.cache,n=e.keys,r=e.vnodeToCache,i=e.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;t[i]={name:ro(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&ao(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)ao(this.cache,e,this.keys)},mounted:function(){var e=this;this.cacheVNode(),this.$watch("include",(function(t){oo(e,(function(e){return io(t,e)}))})),this.$watch("exclude",(function(t){oo(e,(function(e){return!io(t,e)}))}))},updated:function(){this.cacheVNode()},render:function(){var e=this.$slots.default,t=kn(e),n=t&&t.componentOptions;if(n){var r=ro(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!io(o,r))||a&&r&&io(a,r))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]}},uo={KeepAlive:lo};function co(e){var t={get:function(){return $}};Object.defineProperty(e,"config",t),e.util={warn:ye,extend:E,mergeOptions:wi,defineReactive:li},e.set=ui,e.delete=ci,e.nextTick=Yr,e.observable=function(e){return si(e),e},e.options=Object.create(null),V.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,E(e.options.components,uo),Ki(e),Ji(e),Qi(e),no(e)}co(Zi),Object.defineProperty(Zi.prototype,"$isServer",{get:ce}),Object.defineProperty(Zi.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Zi,"FunctionalRenderContext",{value:Ft}),Zi.version=Jr;var fo=_("style,class"),ho=_("input,textarea,option,select,progress"),po=function(e,t,n){return"value"===n&&ho(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},mo=_("contenteditable,draggable,spellcheck"),go=_("events,caret,typing,plaintext-only"),vo=function(e,t){return wo(t)||"false"===t?"false":"contenteditable"===e&&go(t)?t:"true"},yo=_("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"),_o="http://www.w3.org/1999/xlink",bo=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},xo=function(e){return bo(e)?e.slice(6,e.length):""},wo=function(e){return null==e||!1===e};function Mo(e){var t=e.data,n=e,r=e;while(a(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(t=ko(r.data,t));while(a(n=n.parent))n&&n.data&&(t=ko(t,n.data));return So(t.staticClass,t.class)}function ko(e,t){return{staticClass:Lo(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function So(e,t){return a(e)||a(t)?Lo(e,To(t)):""}function Lo(e,t){return e?t?e+" "+t:e:t||""}function To(e){return Array.isArray(e)?Do(e):d(e)?Oo(e):"string"===typeof e?e:""}function Do(e){for(var t,n="",r=0,i=e.length;r-1?Yo[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Yo[e]=/HTMLUnknownElement/.test(t.toString())}var No=_("text,number,password,search,email,tel,url");function Ro(e){if("string"===typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}function Ho(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 zo(e,t){return document.createElementNS(Co[e],t)}function Fo(e){return document.createTextNode(e)}function Bo(e){return document.createComment(e)}function Wo(e,t,n){e.insertBefore(t,n)}function Vo(e,t){e.removeChild(t)}function Go(e,t){e.appendChild(t)}function $o(e){return e.parentNode}function Uo(e){return e.nextSibling}function qo(e){return e.tagName}function Xo(e,t){e.textContent=t}function Zo(e,t){e.setAttribute(t,"")}var Ko=Object.freeze({__proto__:null,createElement:Ho,createElementNS:zo,createTextNode:Fo,createComment:Bo,insertBefore:Wo,removeChild:Vo,appendChild:Go,parentNode:$o,nextSibling:Uo,tagName:qo,setTextContent:Xo,setStyleScope:Zo}),Jo={create:function(e,t){Qo(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Qo(e,!0),Qo(t))},destroy:function(e){Qo(e,!0)}};function Qo(e,t){var n=e.data.ref;if(a(n)){var r=e.context,o=e.componentInstance||e.elm,s=t?null:o,l=t?void 0:o;if(c(n))Mr(n,r,[s],r,"template ref function");else{var u=e.data.refInFor,d="string"===typeof n||"number"===typeof n,f=Fe(n),h=r.$refs;if(d||f)if(u){var p=d?h[n]:n.value;t?i(p)&&x(p,o):i(p)?p.includes(o)||p.push(o):d?(h[n]=[o],ea(r,n,h[n])):n.value=[o]}else if(d){if(t&&h[n]!==o)return;h[n]=l,ea(r,n,s)}else if(f){if(t&&n.value!==o)return;n.value=s}else 0}}}function ea(e,t,n){var r=e._setupState;r&&M(r,t)&&(Fe(r[t])?r[t].value=n:r[t]=n)}var ta=new ke("",{},[]),na=["create","activate","update","remove","destroy"];function ra(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)&&ia(e,t)||s(e.isAsyncPlaceholder)&&o(t.asyncFactory.error))}function ia(e,t){if("input"!==e.tag)return!0;var n,r=a(n=e.data)&&a(n=n.attrs)&&n.type,i=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===i||No(r)&&No(i)}function oa(e,t,n){var r,i,o={};for(r=t;r<=n;++r)i=e[r].key,a(i)&&(o[i]=r);return o}function aa(e){var t,n,r={},l=e.modules,c=e.nodeOps;for(t=0;tm?(d=o(n[y+1])?null:n[y+1].elm,k(e,d,n,h,y,r)):h>y&&L(t,f,m)}function O(e,t,n,r){for(var i=n;i-1?va(e,t,n):yo(t)?wo(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):mo(t)?e.setAttribute(t,vo(t,n)):bo(t)?wo(n)?e.removeAttributeNS(_o,xo(t)):e.setAttributeNS(_o,t,n):va(e,t,n)}function va(e,t,n){if(wo(n))e.removeAttribute(t);else{if(te&&!ne&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var ya={create:ma,update:ma};function _a(e,t){var n=t.elm,r=t.data,i=e.data;if(!(o(r.staticClass)&&o(r.class)&&(o(i)||o(i.staticClass)&&o(i.class)))){var s=Mo(t),l=n._transitionClasses;a(l)&&(s=Lo(s,To(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var ba,xa={create:_a,update:_a},wa="__r",Ma="__c";function ka(e){if(a(e[wa])){var t=te?"change":"input";e[t]=[].concat(e[wa],e[t]||[]),delete e[wa]}a(e[Ma])&&(e.change=[].concat(e[Ma],e.change||[]),delete e[Ma])}function Sa(e,t,n){var r=ba;return function i(){var o=t.apply(null,arguments);null!==o&&Da(e,i,n,r)}}var La=Tr&&!(ae&&Number(ae[1])<=53);function Ta(e,t,n,r){if(La){var i=Xn,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}ba.addEventListener(e,t,le?{capture:n,passive:r}:n)}function Da(e,t,n,r){(r||ba).removeEventListener(e,t._wrapper||t,n)}function Oa(e,t){if(!o(e.data.on)||!o(t.data.on)){var n=t.data.on||{},r=e.data.on||{};ba=t.elm||e.elm,ka(n),st(n,r,Ta,Da,Sa,t.context),ba=void 0}}var Ca,Aa={create:Oa,update:Oa,destroy:function(e){return Oa(e,ta)}};function Ia(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,i=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=E({},u)),l)n in u||(i[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===l[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var c=o(r)?"":String(r);ja(i,c)&&(i.value=c)}else if("innerHTML"===n&&Io(i.tagName)&&o(i.innerHTML)){Ca=Ca||document.createElement("div"),Ca.innerHTML="".concat(r,"");var d=Ca.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(d.firstChild)i.appendChild(d.firstChild)}else if(r!==l[n])try{i[n]=r}catch(Ks){}}}}function ja(e,t){return!e.composing&&("OPTION"===e.tagName||Ea(e,t)||Ya(e,t))}function Ea(e,t){var n=!0;try{n=document.activeElement!==e}catch(Ks){}return n&&e.value!==t}function Ya(e,t){var n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return y(n)!==y(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}var Pa={create:Ia,update:Ia},Na=k((function(e){var t={},n=/;(?![^(]*\))/g,r=/:(.+)/;return e.split(n).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function Ra(e){var t=Ha(e.style);return e.staticStyle?E(e.staticStyle,t):t}function Ha(e){return Array.isArray(e)?Y(e):"string"===typeof e?Na(e):e}function za(e,t){var n,r={};if(t){var i=e;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Ra(i.data))&&E(r,n)}(n=Ra(e.data))&&E(r,n);var o=e;while(o=o.parent)o.data&&(n=Ra(o.data))&&E(r,n);return r}var Fa,Ba=/^--/,Wa=/\s*!important$/,Va=function(e,t,n){if(Ba.test(t))e.style.setProperty(t,n);else if(Wa.test(n))e.style.setProperty(O(t),n.replace(Wa,""),"important");else{var r=$a(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(Xa).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 Ka(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(Xa).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")||""," "),r=" "+t+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function Ja(e){if(e){if("object"===typeof e){var t={};return!1!==e.css&&E(t,Qa(e.name||"v")),E(t,e),t}return"string"===typeof e?Qa(e):void 0}}var Qa=k((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")}})),es=Q&&!ne,ts="transition",ns="animation",rs="transition",is="transitionend",os="animation",as="animationend";es&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(rs="WebkitTransition",is="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(os="WebkitAnimation",as="webkitAnimationEnd"));var ss=Q?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function ls(e){ss((function(){ss(e)}))}function us(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),Za(e,t))}function cs(e,t){e._transitionClasses&&x(e._transitionClasses,t),Ka(e,t)}function ds(e,t,n){var r=hs(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ts?is:as,l=0,u=function(){e.removeEventListener(s,c),n()},c=function(t){t.target===e&&++l>=a&&u()};setTimeout((function(){l0&&(n=ts,c=a,d=o.length):t===ns?u>0&&(n=ns,c=u,d=l.length):(c=Math.max(a,u),n=c>0?a>u?ts:ns:null,d=n?n===ts?o.length:l.length:0);var f=n===ts&&fs.test(r[rs+"Property"]);return{type:n,timeout:c,propCount:d,hasTransform:f}}function ps(e,t){while(e.length1}function bs(e,t){!0!==t.data.show&&gs(t)}var xs=Q?{create:bs,activate:bs,remove:function(e,t){!0!==e.data.show?vs(e,t):t()}}:{},ws=[ya,xa,Aa,Pa,qa,xs],Ms=ws.concat(pa),ks=aa({nodeOps:Ko,modules:Ms});ne&&document.addEventListener("selectionchange",(function(){var e=document.activeElement;e&&e.vmodel&&Is(e,"input")}));var Ss={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?lt(n,"postpatch",(function(){Ss.componentUpdated(e,t,n)})):Ls(e,t,n.context),e._vOptions=[].map.call(e.options,Os)):("textarea"===n.tag||No(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Cs),e.addEventListener("compositionend",As),e.addEventListener("change",As),ne&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ls(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Os);if(i.some((function(e,t){return!H(e,r[t])}))){var o=e.multiple?t.value.some((function(e){return Ds(e,i)})):t.value!==t.oldValue&&Ds(t.value,i);o&&Is(e,"change")}}}};function Ls(e,t,n){Ts(e,t,n),(te||re)&&setTimeout((function(){Ts(e,t,n)}),0)}function Ts(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,l=e.options.length;s-1,a.selected!==o&&(a.selected=o);else if(H(Os(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ds(e,t){return t.every((function(t){return!H(t,e)}))}function Os(e){return"_value"in e?e._value:e.value}function Cs(e){e.target.composing=!0}function As(e){e.target.composing&&(e.target.composing=!1,Is(e.target,"input"))}function Is(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function js(e){return!e.componentInstance||e.data&&e.data.transition?e:js(e.componentInstance._vnode)}var Es={bind:function(e,t,n){var r=t.value;n=js(n);var i=n.data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,gs(n,(function(){e.style.display=o}))):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value,i=t.oldValue;if(!r!==!i){n=js(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?gs(n,(function(){e.style.display=e.__vOriginalDisplay})):vs(n,(function(){e.style.display="none"}))):e.style.display=r?e.__vOriginalDisplay:"none"}},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}},Ys={model:Ss,show:Es},Ps={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 Ns(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ns(kn(t.children)):e}function Rs(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var r in i)t[L(r)]=i[r];return t}function Hs(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}function zs(e){while(e=e.parent)if(e.data.transition)return!0}function Fs(e,t){return t.key===e.key&&t.tag===e.tag}var Bs=function(e){return e.tag||wt(e)},Ws=function(e){return"show"===e.name},Vs={name:"transition",props:Ps,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(Bs),n.length)){0;var r=this.mode;0;var i=n[0];if(zs(this.$vnode))return i;var o=Ns(i);if(!o)return i;if(this._leaving)return Hs(e,i);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=Rs(this),l=this._vnode,c=Ns(l);if(o.data.directives&&o.data.directives.some(Ws)&&(o.data.show=!0),c&&c.data&&!Fs(o,c)&&!wt(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var d=c.data.transition=E({},s);if("out-in"===r)return this._leaving=!0,lt(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),Hs(e,i);if("in-out"===r){if(wt(o))return l;var f,h=function(){f()};lt(s,"afterEnter",h),lt(s,"enterCancelled",h),lt(d,"delayLeave",(function(e){f=e}))}}return i}}},Gs=E({tag:String,moveClass:String},Ps);delete Gs.mode;var $s={props:Gs,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=In(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Rs(this),s=0;s=20?"ste":"de")},week:{dow:1,doy:4}});return t}))},"2c3f":function(e,t,n){var r=n("e68c"),i=n("2d70"),o=n("2ff4");e.exports=function(e){return function(t,n,a){var s,l=r(t),u=i(l.length),c=o(a,u);if(e&&n!=n){while(u>c)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((e||c in l)&&l[c]===n)return e||c||0;return!e&&-1}}},"2cc1":function(e,t,n){(function(t,n){e.exports=n()})(0,(function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),o=/Edge\/(\d+)/.exec(e),a=r||i||o,s=a&&(r?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(e),u=l&&/Qt\/\d+\.\d+/.test(e),c=!o&&/Chrome\/(\d+)/.exec(e),d=c&&+c[1],f=/Opera\//.test(e),h=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),m=/PhantomJS/.test(e),g=h&&(/Mobile\/\w+/.test(e)||navigator.maxTouchPoints>2),v=/Android/.test(e),y=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),_=g||/Mac/.test(t),b=/\bCrOS\b/.test(e),x=/win/i.test(t),w=f&&e.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var M=_&&(u||f&&(null==w||w<12.11)),k=n||a&&s>=9;function S(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L,T=function(e,t){var n=e.className,r=S(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function D(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function O(e,t){return D(e).appendChild(t)}function C(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return a+(t-o);a+=s-o,a+=n-a%n,o=s+1}}g?P=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:a&&(P=function(e){try{e.select()}catch(t){}});var V=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};function G(e,t){for(var n=0;n=t)return r+Math.min(a,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var J=[""];function Q(e){while(J.length<=e)J.push(ee(J)+" ");return J[e]}function ee(e){return e[e.length-1]}function te(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||oe.test(e))}function se(e,t){return t?!!(t.source.indexOf("\\w")>-1&&ae(e))||t.test(e):ae(e)}function le(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ue=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function ce(e){return e.charCodeAt(0)>=768&&ue.test(e)}function de(e,t,n){while((n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function he(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var pe=null;function me(e,t,n){var r;pe=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&"before"==n?r=i:pe=i),o.from==t&&(o.from!=o.to&&"before"!=n?r=i:pe=i)}return null!=r?r:pe}var ge=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(n){return n<=247?e.charAt(n):1424<=n&&n<=1524?"R":1536<=n&&n<=1785?t.charAt(n-1536):1774<=n&&n<=2220?"r":8192<=n&&n<=8203?"w":8204==n?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,a=/[Lb1n]/,s=/[1n]/;function l(e,t,n){this.level=e,this.from=t,this.to=n}return function(e,t){var u="ltr"==t?"L":"R";if(0==e.length||"ltr"==t&&!r.test(e))return!1;for(var c=e.length,d=[],f=0;f-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function we(e,t){var n=be(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function Le(e){e.prototype.on=function(e,t){_e(this,e,t)},e.prototype.off=function(e,t){xe(this,e,t)}}function Te(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function De(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Oe(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){Te(e),De(e)}function Ae(e){return e.target||e.srcElement}function Ie(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),_&&e.ctrlKey&&1==t&&(t=3),t}var je,Ee,Ye=function(){if(a&&s<9)return!1;var e=C("div");return"draggable"in e||"dragDrop"in e}();function Pe(e){if(null==je){var t=C("span","​");O(e,C("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(je=t.offsetWidth<=1&&t.offsetHeight>2&&!(a&&s<8))}var n=je?C("span","​"):C("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=Ee)return Ee;var t=O(e,document.createTextNode("AخA")),n=L(t,0,1).getBoundingClientRect(),r=L(t,1,2).getBoundingClientRect();return D(e),!(!n||n.left==n.right)&&(Ee=r.right-n.right<3)}var Re=3!="\n\nb".split(/\n/).length?function(e){var t=0,n=[],r=e.length;while(t<=r){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(n.push(o.slice(0,a)),t+=a+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},He=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(t){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(n){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},ze=function(){var e=C("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),Fe=null;function Be(e){if(null!=Fe)return Fe;var t=O(e,C("span","x")),n=t.getBoundingClientRect(),r=L(t,0,1).getBoundingClientRect();return Fe=Math.abs(n.left-r.left)>1}var We={},Ve={};function Ge(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),We[e]=t}function $e(e,t){Ve[e]=t}function Ue(e){if("string"==typeof e&&Ve.hasOwnProperty(e))e=Ve[e];else if(e&&"string"==typeof e.name&&Ve.hasOwnProperty(e.name)){var t=Ve[e.name];"string"==typeof t&&(t={name:t}),e=ie(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ue("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ue("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function qe(e,t){t=Ue(t);var n=We[t.name];if(!n)return qe(e,"text/plain");var r=n(e,t);if(Xe.hasOwnProperty(t.name)){var i=Xe[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}var Xe={};function Ze(e,t){var n=Xe.hasOwnProperty(e)?Xe[e]:Xe[e]={};B(t,n)}function Ke(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function Je(e,t){var n;while(e.innerMode){if(n=e.innerMode(t),!n||n.mode==e)break;t=n.state,e=n.mode}return n||{mode:e,state:t}}function Qe(e,t,n){return!e.startState||e.startState(t,n)}var et=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function tt(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");var n=e;while(!n.lines)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?ut(n,tt(e,n).text.length):vt(t,tt(e,t.line).text.length)}function vt(e,t){var n=e.ch;return null==n||n>t?ut(e.line,t):n<0?ut(e.line,0):e}function yt(e,t){for(var n=[],r=0;r=this.string.length},et.prototype.sol=function(){return this.pos==this.lineStart},et.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},et.prototype.next=function(){if(this.post},et.prototype.eatSpace=function(){var e=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>e},et.prototype.skipToEnd=function(){this.pos=this.string.length},et.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},et.prototype.backUp=function(e){this.pos-=e},et.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var i=function(e){return n?e.toLowerCase():e},o=this.string.substr(this.pos,e.length);if(i(o)==i(e))return!1!==t&&(this.pos+=e.length),!0},et.prototype.current=function(){return this.string.slice(this.start,this.pos)},et.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},et.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},et.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var _t=function(e,t){this.state=e,this.lookAhead=t},bt=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function xt(e,t,n,r){var i=[e.state.modeGen],o={};Ct(e,t.text,e.doc.mode,n,(function(e,t){return i.push(e,t)}),o,r);for(var a=n.state,s=function(r){n.baseTokens=i;var s=e.state.overlays[r],l=1,u=0;n.state=!0,Ct(e,t.text,s.mode,n,(function(e,t){var n=l;while(ue&&i.splice(l,1,e,i[l+1],r),l+=2,u=Math.min(e,r)}if(t)if(s.opaque)i.splice(n,l-n,e,"overlay "+t),l=n+2;else for(;ne.options.maxHighlightLength&&Ke(e.doc.mode,r.state),o=xt(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function Mt(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new bt(r,!0,t);var o=At(e,t,n),a=o>r.first&&tt(r,o-1).stateAfter,s=a?bt.fromSaved(r,a,o):new bt(r,Qe(r.mode),o);return r.iter(o,t,(function(n){kt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=i.viewFrom&&rt.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}bt.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},bt.prototype.baseToken=function(e){if(!this.baseTokens)return null;while(this.baseTokens[this.baseTokenPos]<=e)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},bt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},bt.fromSaved=function(e,t,n){return t instanceof _t?new bt(e,Ke(e.mode,t.state),n,t.lookAhead):new bt(e,Ke(e.mode,t),n)},bt.prototype.save=function(e){var t=!1!==e?Ke(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _t(t,this.maxLookAhead):t};var Tt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function Dt(e,t,n,r){var i,o=e.doc,a=o.mode;t=gt(o,t);var s,l=tt(o,t.line),u=Mt(e,t.line,n),c=new et(l.text,e.options.tabSize,u);r&&(s=[]);while((r||c.pose.options.maxHighlightLength?(s=!1,a&&kt(e,t,r,d.pos),d.pos=t.length,l=null):l=Ot(Lt(n,d,r.state,f),o),f){var h=f[0].name;h&&(l="m-"+(l?h+" "+l:h))}if(!s||c!=l){while(ua;--s){if(s<=o.first)return o.first;var l=tt(o,s-1),u=l.stateAfter;if(u&&(!n||s+(u instanceof _t?u.lookAhead:0)<=o.modeFrontier))return s;var c=W(l.text,null,e.options.tabSize);(null==i||r>c)&&(i=s-1,r=c)}return i}function It(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=tt(e,r).stateAfter;if(i&&(!(i instanceof _t)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Nt(a,o.from,l?null:o.to))}}return r}function Bt(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(s||o.from==t&&"bookmark"==a.type&&(!n||o.marker.insertLeft)){var l=null==o.from||(a.inclusiveLeft?o.from<=t:o.from0&&s)for(var b=0;b0)){var c=[l,1],d=ct(u.from,s.from),f=ct(u.to,s.to);(d<0||!a.inclusiveLeft&&!d)&&c.push({from:u.from,to:s.from}),(f>0||!a.inclusiveRight&&!f)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}function $t(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!n||Zt(n,o.marker)<0)&&(n=o.marker)}return n}function tn(e,t,n,r,i){var o=tt(e,t),a=Et&&o.markedSpans;if(a)for(var s=0;s=0&&d<=0||c<=0&&d>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(u.to,n)>=0:ct(u.to,n)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ct(u.from,r)<=0:ct(u.from,r)<0)))return!0}}}function nn(e){var t;while(t=Jt(e))e=t.find(-1,!0).line;return e}function rn(e){var t;while(t=Qt(e))e=t.find(1,!0).line;return e}function on(e){var t,n;while(t=Qt(e))e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function an(e,t){var n=tt(e,t),r=nn(n);return n==r?t:ot(r)}function sn(e,t){if(t>e.lastLine())return t;var n,r=tt(e,t);if(!ln(e,r))return t;while(n=Qt(r))r=n.find(1,!0).line;return ot(r)+1}function ln(e,t){var n=Et&&t.markedSpans;if(n)for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var hn=function(e,t,n){this.text=e,Ut(this,t),this.height=n?n(this):1};function pn(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),$t(e),Ut(e,n);var i=r?r(e):1;i!=e.height&&it(e,i)}function mn(e){e.parent=null,$t(e)}hn.prototype.lineNo=function(){return ot(this)},Le(hn);var gn={},vn={};function yn(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?vn:gn;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function _n(e,t){var n=A("span",null,null,l?"padding-right: .1px":null),r={pre:A("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,a=void 0;r.pos=0,r.addToken=xn,Ne(e.display.measure)&&(a=ve(o,e.doc.direction))&&(r.addToken=Mn(r.addToken,a)),r.map=[];var s=t!=e.display.externalMeasured&&ot(o);Sn(o,r,wt(e,o,s)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=Y(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=Y(o.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(Pe(e.display.measure))),0==i?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(l){var u=r.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return we(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=Y(r.pre.className,r.textClass||"")),r}function bn(e){var t=C("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function xn(e,t,n,r,i,o,l){if(t){var u,c=e.splitSpaces?wn(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){u=document.createDocumentFragment();var h=0;while(1){d.lastIndex=h;var p=d.exec(t),m=p?p.index-h:t.length-h;if(m){var g=document.createTextNode(c.slice(h,h+m));a&&s<9?u.appendChild(C("span",[g])):u.appendChild(g),e.map.push(e.pos,e.pos+m,g),e.col+=m,e.pos+=m}if(!p)break;h+=m+1;var v=void 0;if("\t"==p[0]){var y=e.cm.options.tabSize,_=y-e.col%y;v=u.appendChild(C("span",Q(_),"cm-tab")),v.setAttribute("role","presentation"),v.setAttribute("cm-text","\t"),e.col+=_}else"\r"==p[0]||"\n"==p[0]?(v=u.appendChild(C("span","\r"==p[0]?"␍":"␤","cm-invalidchar")),v.setAttribute("cm-text",p[0]),e.col+=1):(v=e.cm.options.specialCharPlaceholder(p[0]),v.setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(C("span",[v])):u.appendChild(v),e.col+=1);e.map.push(e.pos,e.pos+1,v),e.pos++}}else e.col+=t.length,u=document.createTextNode(c),e.map.push(e.pos,e.pos+t.length,u),a&&s<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==c.charCodeAt(t.length-1),n||r||i||f||o||l){var b=n||"";r&&(b+=r),i&&(b+=i);var x=C("span",[u],b,o);if(l)for(var w in l)l.hasOwnProperty(w)&&"style"!=w&&"class"!=w&&x.setAttribute(w,l[w]);return e.content.appendChild(x)}e.content.appendChild(u)}}function wn(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&d.from<=u)break;if(d.to>=c)return e(n,r,i,o,a,s,l);e(n,r.slice(0,d.to-u),i,o,null,s,l),o=null,r=r.slice(d.to-u),u=d.to}}}function kn(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Sn(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(r)for(var a,s,l,u,c,d,f,h=i.length,p=0,m=1,g="",v=0;;){if(v==p){l=u=c=s="",f=null,d=null,v=1/0;for(var y=[],_=void 0,b=0;bp||w.collapsed&&x.to==p&&x.from==p)){if(null!=x.to&&x.to!=p&&v>x.to&&(v=x.to,u=""),w.className&&(l+=" "+w.className),w.css&&(s=(s?s+";":"")+w.css),w.startStyle&&x.from==p&&(c+=" "+w.startStyle),w.endStyle&&x.to==v&&(_||(_=[])).push(w.endStyle,x.to),w.title&&((f||(f={})).title=w.title),w.attributes)for(var M in w.attributes)(f||(f={}))[M]=w.attributes[M];w.collapsed&&(!d||Zt(d.marker,w)<0)&&(d=x)}else x.from>p&&v>x.from&&(v=x.from)}if(_)for(var k=0;k<_.length;k+=2)_[k+1]==v&&(u+=" "+_[k]);if(!d||d.from==p)for(var S=0;S=h)break;var L=Math.min(h,v);while(1){if(g){var T=p+g.length;if(!d){var D=T>L?g.slice(0,L-p):g;t.addToken(t,D,a?a+l:l,c,p+D.length==v?u:"",s,f)}if(T>=L){g=g.slice(L-p),p=L;break}p=T,c=""}g=i.slice(o,o=n[m++]),a=yn(n[m++],t.cm.options)}}else for(var O=1;O2&&o.push((l.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function nr(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function rr(e,t){t=nn(t);var n=ot(t),r=e.display.externalMeasured=new Ln(e.doc,t,n);r.lineN=n;var i=r.built=_n(e,r);return r.text=i.pre,O(e.display.lineMeasure,i.pre),r}function ir(e,t,n,r){return sr(e,ar(e,t),n,r)}function or(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=l-s,i=o-1,t>=l&&(a="right")),null!=i){if(r=e[u+2],s==l&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==i)while(u&&e[u-2]==e[u-3]&&e[u-1].insertLeft)r=e[2+(u-=3)],a="left";if("right"==n&&i==l-s)while(u=0;i--)if((n=e[i]).left!=n.right)break;return n}function fr(e,t,n,r){var i,o=cr(t.map,n,r),l=o.node,u=o.start,c=o.end,d=o.collapse;if(3==l.nodeType){for(var f=0;f<4;f++){while(u&&ce(t.line.text.charAt(o.coverStart+u)))--u;while(o.coverStart+c0&&(d=r="right"),i=e.options.lineWrapping&&(h=l.getClientRects()).length>1?h["right"==r?h.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+Er(e.display),top:p.top,bottom:p.bottom}:ur}for(var m=i.top-t.rect.top,g=i.bottom-t.rect.top,v=(m+g)/2,y=t.view.measure.heights,_=0;_=r.text.length?(l=r.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(e,t,n){var r=s[t],i=1==r.level;return a(n?e-1:e,i!=n)}var d=me(s,l,u),f=pe,h=c(l,d,"before"==u);return null!=f&&(h.other=c(l,f,"before"!=u)),h}function kr(e,t){var n=0;t=gt(e.doc,t),e.options.lineWrapping||(n=Er(e.display)*t.ch);var r=tt(e.doc,t.line),i=cn(r)+Xn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Sr(e,t,n,r,i){var o=ut(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Lr(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Sr(r.first,0,null,-1,-1);var i=at(r,n),o=r.first+r.size-1;if(i>o)return Sr(r.first+r.size-1,tt(r,o).text.length,null,1,1);t<0&&(t=0);for(var a=tt(r,i);;){var s=Cr(e,a,i,t,n),l=en(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=tt(r,i=u.line)}}function Tr(e,t,n,r){r-=_r(t);var i=t.text.length,o=fe((function(t){return sr(e,n,t-1).bottom<=r}),i,0);return i=fe((function(t){return sr(e,n,t).top>r}),o,i),{begin:o,end:i}}function Dr(e,t,n,r){n||(n=ar(e,t));var i=br(e,t,sr(e,n,r),"line").top;return Tr(e,t,n,i)}function Or(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function Cr(e,t,n,r,i){i-=cn(t);var o=ar(e,t),a=_r(t),s=0,l=t.text.length,u=!0,c=ve(t,e.doc.direction);if(c){var d=(e.options.lineWrapping?Ir:Ar)(e,t,n,o,c,r,i);u=1!=d.level,s=u?d.from:d.to-1,l=u?d.to:d.from-1}var f,h,p=null,m=null,g=fe((function(t){var n=sr(e,o,t);return n.top+=a,n.bottom+=a,!!Or(n,r,i,!1)&&(n.top<=i&&n.left<=r&&(p=t,m=n),!0)}),s,l),v=!1;if(m){var y=r-m.left=b.bottom?1:0}return g=de(t.text,g,1),Sr(n,g,h,v,r-f)}function Ar(e,t,n,r,i,o,a){var s=fe((function(s){var l=i[s],u=1!=l.level;return Or(Mr(e,ut(n,u?l.to:l.from,u?"before":"after"),"line",t,r),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=Mr(e,ut(n,u?l.from:l.to,u?"after":"before"),"line",t,r);Or(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function Ir(e,t,n,r,i,o,a){var s=Tr(e,t,r,a),l=s.begin,u=s.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var c=null,d=null,f=0;f=u||h.to<=l)){var p=1!=h.level,m=sr(e,r,p?Math.min(u,h.to)-1:Math.max(l,h.from)).right,g=mg)&&(c=h,d=g)}}return c||(c=i[i.length-1]),c.fromu&&(c={from:c.from,to:u,level:c.level}),c}function jr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==lr){lr=C("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)lr.appendChild(document.createTextNode("x")),lr.appendChild(C("br"));lr.appendChild(document.createTextNode("x"))}O(e.measure,lr);var n=lr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),D(e.measure),n||1}function Er(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=C("span","xxxxxxxxxx"),n=C("pre",[t],"CodeMirror-line-like");O(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Yr(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=e.display.gutterSpecs[a].className;n[s]=o.offsetLeft+o.clientLeft+i,r[s]=o.clientWidth}return{fixedPos:Pr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Pr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Nr(e){var t=jr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Er(e.display)-3);return function(i){if(ln(e.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a0&&(l=tt(e.doc,u.line).text).length==u.ch){var c=W(l,l.length,e.options.tabSize)-l.length;u=ut(u.line,Math.max(0,Math.round((o-Kn(e.display).left)/Er(e.display))-c))}return u}function zr(e,t){if(t>=e.display.viewTo)return null;if(t-=e.display.viewFrom,t<0)return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Et&&an(e.doc,t)i.viewFrom?Wr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)Wr(e);else if(t<=i.viewFrom){var o=Vr(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):Wr(e)}else if(n>=i.viewTo){var a=Vr(e,t,t,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):Wr(e)}else{var s=Vr(e,t,t,-1),l=Vr(e,n,n+r,1);s&&l?(i.view=i.view.slice(0,s.index).concat(Tn(e,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=r):Wr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[zr(e,t)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==G(a,n)&&a.push(n)}}}function Wr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Vr(e,t,n,r){var i,o=zr(e,t),a=e.display.view;if(!Et||n==e.doc.first+e.doc.size)return{index:o,lineN:n};for(var s=e.display.viewFrom,l=0;l0){if(o==a.length-1)return null;i=s+a[o].size-t,o++}else i=s-t;t+=i,n+=i}while(an(e.doc,n)!=n){if(o==(r<0?0:a.length-1))return null;n+=r*a[o-(r<0?1:0)].size,o+=r}return{index:o,lineN:n}}function Gr(e,t,n){var r=e.display,i=r.view;0==i.length||t>=r.viewTo||n<=r.viewFrom?(r.view=Tn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=Tn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,zr(e,n)))),r.viewTo=n}function $r(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||l.to().line0?a:e.defaultCharWidth())+"px"}if(r.other){var s=n.appendChild(C("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));s.style.display="",s.style.left=r.other.left+"px",s.style.top=r.other.top+"px",s.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function Zr(e,t){return e.top-t.top||e.left-t.left}function Kr(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),a=Kn(e.display),s=a.left,l=Math.max(r.sizerWidth,Qn(e)-r.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),o.appendChild(C("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?l-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var o,a,d=tt(i,t),f=d.text.length;function h(n,r){return wr(e,ut(t,n),"div",d,r)}function p(t,n,r){var i=Dr(e,d,null,t),o="ltr"==n==("after"==r)?"left":"right",a="after"==r?i.begin:i.end-(/\s/.test(d.text.charAt(i.end-1))?2:1);return h(a,o)[o]}var m=ve(d,i.direction);return he(m,n||0,null==r?f:r,(function(e,t,i,d){var g="ltr"==i,v=h(e,g?"left":"right"),y=h(t-1,g?"right":"left"),_=null==n&&0==e,b=null==r&&t==f,x=0==d,w=!m||d==m.length-1;if(y.top-v.top<=3){var M=(u?_:b)&&x,k=(u?b:_)&&w,S=M?s:(g?v:y).left,L=k?l:(g?y:v).right;c(S,v.top,L-S,v.bottom)}else{var T,D,O,C;g?(T=u&&_&&x?s:v.left,D=u?l:p(e,i,"before"),O=u?s:p(t,i,"after"),C=u&&b&&w?l:y.right):(T=u?p(e,i,"before"):s,D=!u&&_&&x?l:v.right,O=!u&&b&&w?s:y.left,C=u?p(t,i,"after"):l),c(T,v.top,D-T,v.bottom),v.bottom0?t.blinker=setInterval((function(){e.hasFocus()||ni(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Qr(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ti(e))}function ei(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ni(e))}),100)}function ti(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(we(e,"focus",e,t),e.state.focused=!0,E(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),l&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Jr(e))}function ni(e,t){e.state.delayingBlurEvent||(e.state.focused&&(we(e,"blur",e,t),e.state.focused=!1,T(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function ri(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var v=Math.ceil(f/Er(e.display));v>e.display.maxLineLength&&(e.display.maxLineLength=v,e.display.maxLine=u.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function ii(e){if(e.widgets)for(var t=0;t=a&&(o=at(t,cn(tt(t,l))-e.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function ai(e,t){if(!Me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),null!=i&&!m){var a=C("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Xn(e.display))+"px;\n height: "+(t.bottom-t.top+Jn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function si(e,t,n,r){var i;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==t.sticky?ut(t.line,t.ch+1,"before"):t,t=t.ch?ut(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var a=!1,s=Mr(e,t),l=n&&n!=t?Mr(e,n):s;i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-r,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+r};var u=ui(e,i),c=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=u.scrollTop&&(gi(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(yi(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(a=!0)),!a)break}return i}function li(e,t){var n=ui(e,t);null!=n.scrollTop&&gi(e,n.scrollTop),null!=n.scrollLeft&&yi(e,n.scrollLeft)}function ui(e,t){var n=e.display,r=jr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,o=er(e),a={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Zn(n),l=t.tops-r;if(t.topi+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(a.scrollTop=c)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,h=Qn(e)-n.gutters.offsetWidth,p=t.right-t.left>h;return p&&(t.right=t.left+h),t.left<10?a.scrollLeft=0:t.lefth+f-3&&(a.scrollLeft=t.right+(p?0:10)-h),a}function ci(e,t){null!=t&&(pi(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function di(e){pi(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function fi(e,t,n){null==t&&null==n||pi(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function hi(e,t){pi(e),e.curOp.scrollToPos=t}function pi(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=kr(e,t.from),r=kr(e,t.to);mi(e,n,r,t.margin)}}function mi(e,t,n,r){var i=ui(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});fi(e,i.scrollLeft,i.scrollTop)}function gi(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||Ui(e,{top:t}),vi(e,t,!0),n&&Ui(e),Hi(e,100))}function vi(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function yi(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Ki(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function _i(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Zn(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+Jn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var bi=function(e,t,n){this.cm=n;var r=this.vert=C("div",[C("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=C("div",[C("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),_e(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),_e(i,"scroll",(function(){i.clientWidth&&t(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bi.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},bi.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bi.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bi.prototype.zeroWidthHack=function(){var e=_&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new V,this.disableVert=new V},bi.prototype.enableZeroWidthBar=function(e,t,n){function r(){var i=e.getBoundingClientRect(),o="vert"==n?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}e.style.visibility="",t.set(1e3,r)},bi.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var xi=function(){};function wi(e,t){t||(t=_i(e));var n=e.display.barWidth,r=e.display.barHeight;Mi(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&ri(e),Mi(e,_i(e)),n=e.display.barWidth,r=e.display.barHeight}function Mi(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}xi.prototype.update=function(){return{bottom:0,right:0}},xi.prototype.setScrollLeft=function(){},xi.prototype.setScrollTop=function(){},xi.prototype.clear=function(){};var ki={native:bi,null:xi};function Si(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&T(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ki[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),_e(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?yi(e,t):gi(e,t)}),e),e.display.scrollbars.addClass&&E(e.display.wrapper,e.display.scrollbars.addClass)}var Li=0;function Ti(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Li,markArrays:null},On(e.curOp)}function Di(e){var t=e.curOp;t&&An(t,(function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new Fi(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Ai(e){e.updatedDisplay=e.mustUpdate&&Gi(e.cm,e.update)}function Ii(e){var t=e.cm,n=t.display;e.updatedDisplay&&ri(t),e.barMeasure=_i(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=ir(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+Jn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Qn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ji(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=Mt(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(o){if(r.line>=e.display.viewFrom){var a=o.styles,s=o.text.length>e.options.maxHighlightLength?Ke(t.mode,r.state):null,l=xt(e,o,r,!0);s&&(r.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var d=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),f=0;!d&&fn)return Hi(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Yi(e,(function(){for(var t=0;t=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==$r(e))return!1;Ji(e)&&(Wr(e),t.dims=Yr(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),a=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroma&&n.viewTo-a<20&&(a=Math.min(i,n.viewTo)),Et&&(o=an(e.doc,o),a=sn(e.doc,a));var s=o!=n.viewFrom||a!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;Gr(e,o,a),n.viewOffset=cn(tt(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var l=$r(e);if(!s&&0==l&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=Wi(e);return l>4&&(n.lineDiv.style.display="none"),qi(e,n.updateLineNumbers,t.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,Vi(u),D(n.cursorDiv),D(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,s&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,Hi(e,400)),n.updateLineNumbers=null,!0}function $i(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Qn(e))r&&(t.visible=oi(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Zn(e.display)-er(e),n.top)}),t.visible=oi(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!Gi(e,t))break;ri(e);var i=_i(e);Ur(e),wi(e,i),Zi(e,i),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new Fi(e,t);if(Gi(e,n)){ri(e),$i(e,n);var r=_i(e);Ur(e),wi(e,r),Zi(e,r),n.finish()}}function qi(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,a=o.firstChild;function s(t){var n=t.nextSibling;return l&&_&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var u=r.view,c=r.viewFrom,d=0;d-1&&(h=!1),Yn(e,f,c,n)),h&&(D(f.lineNumber),f.lineNumber.appendChild(document.createTextNode(lt(e.options,c)))),a=f.node.nextSibling}else{var p=Wn(e,f,c,n);o.insertBefore(p,a)}c+=f.size}while(a)a=s(a)}function Xi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",jn(e,"gutterChanged",e)}function Zi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Jn(e)+"px"}function Ki(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=Pr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",a=0;a=105&&(o.wrapper.style.clipPath="inset(0px)"),o.wrapper.setAttribute("translate","no"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||n&&y||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=Qi(i.gutters,i.lineNumbers),eo(o),r.init(o)}Fi.prototype.signal=function(e,t){Se(e,t)&&this.events.push(arguments)},Fi.prototype.finish=function(){for(var e=0;eu.clientWidth,p=u.scrollHeight>u.clientHeight;if(i&&h||o&&p){if(o&&_&&l)e:for(var m=t.target,g=s.view;m!=u;m=m.parentNode)for(var v=0;v=0&&ct(e,r.to())<=0)return n}return-1};var uo=function(e,t){this.anchor=e,this.head=t};function co(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort((function(e,t){return ct(e.from(),t.from())})),n=G(t,i);for(var o=1;o0:l>=0){var u=pt(s.from(),a.from()),c=ht(s.to(),a.to()),d=s.empty()?a.from()==a.head:s.from()==s.head;o<=n&&--n,t.splice(--o,2,new uo(d?c:u,d?u:c))}}return new lo(t,n)}function fo(e,t){return new lo([new uo(e,t||e)],0)}function ho(e){return e.text?ut(e.from.line+e.text.length-1,ee(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function po(e,t){if(ct(e,t.from)<0)return e;if(ct(e,t.to)<=0)return ho(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=ho(t).ch-t.to.ch),ut(n,r)}function mo(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,p-1),e.insert(s.line+1,v)}jn(e,"change",e,t)}function wo(e,t,n){function r(e,i,o){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),ee(e.done)):void 0}function Co(e,t,n,r){var i=e.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&i.lastModTime>s-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(o=Oo(i,i.lastOp==r)))a=ee(o.changes),0==ct(t.from,t.to)&&0==ct(t.from,a.to)?a.to=ho(t):o.changes.push(To(e,t));else{var l=ee(i.done);l&&l.ranges||jo(e.sel,i.done),o={changes:[To(e,t)],generation:i.generation},i.done.push(o);while(i.done.length>i.undoDepth)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||we(e,"historyAdded")}function Ao(e,t,n,r){var i=t.charAt(0);return"*"==i||"+"==i&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Io(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Ao(e,o,ee(i.done),t))?i.done[i.done.length-1]=t:jo(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&!1!==r.clearRedo&&Do(i.undone)}function jo(e,t){var n=ee(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Eo(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=n.markedSpans),++o}))}function Yo(e){if(!e)return null;for(var t,n=0;n-1&&(ee(s)[d]=u[d],delete u[d])}}}return r}function Ho(e,t,n,r){if(r){var i=e.anchor;if(n){var o=ct(t,i)<0;o!=ct(n,i)<0?(i=t,t=n):o!=ct(t,n)<0&&(t=n)}return new uo(i,t)}return new uo(n||t,t)}function zo(e,t,n,r,i){null==i&&(i=e.cm&&(e.cm.display.shift||e.extend)),$o(e,new lo([Ho(e.sel.primary(),t,n,i)],0),r)}function Fo(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:s.to>t.ch))){if(i&&(we(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(n){var d=l.find(r<0?1:-1),f=void 0;if((r<0?c:u)&&(d=Qo(e,d,-r,d&&d.line==t.line?o:null)),d&&d.line==t.line&&(f=ct(d,n))&&(r<0?f<0:f>0))return Ko(e,d,t,r,i)}var h=l.find(r<0?-1:1);return(r<0?u:c)&&(h=Qo(e,h,r,h.line==t.line?o:null)),h?Ko(e,h,t,r,i):null}}return t}function Jo(e,t,n,r,i){var o=r||1,a=Ko(e,t,n,o,i)||!i&&Ko(e,t,n,o,!0)||Ko(e,t,n,-o,i)||!i&&Ko(e,t,n,-o,!0);return a||(e.cantEdit=!0,ut(e.first,0))}function Qo(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?gt(e,ut(t.line-1)):null:n>0&&t.ch==(r||tt(e,t.line)).text.length?t.line=0;--i)ra(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else ra(e,t)}}function ra(e,t){if(1!=t.text.length||""!=t.text[0]||0!=ct(t.from,t.to)){var n=mo(e,t);Co(e,t,n,e.cm?e.cm.curOp.id:NaN),aa(e,t,n,Wt(e,t));var r=[];wo(e,(function(e,n){n||-1!=G(r,e.history)||(da(e.history,t),r.push(e.history)),aa(e,t,null,Wt(e,t))}))}}function ia(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var i,o=e.history,a=e.sel,s="undo"==t?o.done:o.undone,l="undo"==t?o.undone:o.done,u=0;u=0;--h){var p=f(h);if(p)return p.v}}}}function oa(e,t){if(0!=t&&(e.first+=t,e.sel=new lo(te(e.sel.ranges,(function(e){return new uo(ut(e.anchor.line+t,e.anchor.ch),ut(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){Fr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:ut(o,tt(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=nt(e,t.from,t.to),n||(n=mo(e,t)),e.cm?sa(e.cm,t,r):xo(e,t,r),Uo(e,n,q),e.cantEdit&&Jo(e,ut(e.firstLine(),0))&&(e.cantEdit=!1)}}function sa(e,t,n){var r=e.doc,i=e.display,o=t.from,a=t.to,s=!1,l=o.line;e.options.lineWrapping||(l=ot(nn(tt(r,o.line))),r.iter(l,a.line+1,(function(e){if(e==i.maxLine)return s=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ke(e),xo(r,t,n,Nr(e)),e.options.lineWrapping||(r.iter(l,o.line+t.text.length,(function(e){var t=dn(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)})),s&&(e.curOp.updateMaxLine=!0)),It(r,o.line),Hi(e,400);var u=t.text.length-(a.line-o.line)-1;t.full?Fr(e):o.line!=a.line||1!=t.text.length||bo(e.doc,t)?Fr(e,o.line,a.line+1,u):Br(e,o.line,"text");var c=Se(e,"changes"),d=Se(e,"change");if(d||c){var f={from:o,to:a,text:t.text,removed:t.removed,origin:t.origin};d&&jn(e,"change",e,f),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}function la(e,t,n,r,i){var o;r||(r=n),ct(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),"string"==typeof t&&(t=e.splitLines(t)),na(e,{from:n,to:r,text:t,origin:i})}function ua(e,t,n,r){n1||!(this.children[0]instanceof ha))){var s=[];this.collapse(s),this.children=[new ha(s)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var a=i.lines.length%25+25,s=a;s10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=A("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(tn(e,t.line,t,n,o)||t.line!=n.line&&tn(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}o.addToHistory&&Co(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var s,l=t.line,u=e.cm;if(e.iter(l,n.line+1,(function(r){u&&o.collapsed&&!u.options.lineWrapping&&nn(r)==u.display.maxLine&&(s=!0),o.collapsed&&l!=t.line&&it(r,0),zt(r,new Nt(o,l==t.line?t.ch:null,l==n.line?n.ch:null),e.cm&&e.cm.curOp),++l})),o.collapsed&&e.iter(t.line,n.line+1,(function(t){ln(e,t)&&it(t,0)})),o.clearOnEnter&&_e(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(Yt(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++ya,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)Fr(u,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=t.line;c<=n.line;c++)Br(u,c,"text");o.atomic&&Xo(u.doc),jn(u,"markerAdded",u,o)}return o}_a.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Ti(e),Se(this,"clear")){var n=this.find();n&&jn(this,"clear",n.from,n.to)}for(var r=null,i=null,o=0;oe.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=c,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&Fr(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Xo(e.doc)),e&&jn(e,"markerCleared",e,this,r,i),t&&Di(e),this.parent&&this.parent.clear()}},_a.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var i=0;i=0;l--)na(this,r[l]);s?Go(this,s):this.cm&&di(this.cm)})),undo:Ri((function(){ia(this,"undo")})),redo:Ri((function(){ia(this,"redo")})),undoSelection:Ri((function(){ia(this,"undo",!0)})),redoSelection:Ri((function(){ia(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=gt(this,e),t=gt(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s=l.to||null==l.from&&i!=e.line||null!=l.from&&i==t.line&&l.from>=t.ch||n&&!n(l.marker)||r.push(l.marker.parent||l.marker)}++i})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n})),gt(this,ut(n,t))},indexFromPos:function(e){e=gt(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),Uo(t.doc,fo(n,n)),f)for(var h=0;h=0;t--)la(e.doc,"",r[t].from,r[t].to,"+delete");di(e)}))}function Ka(e,t,n){var r=de(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Ja(e,t,n){var r=Ka(e,t.ch,n);return null==r?null:new ut(t.line,r,n<0?"after":"before")}function Qa(e,t,n,r,i){if(e){"rtl"==t.doc.direction&&(i=-i);var o=ve(n,t.doc.direction);if(o){var a,s=i<0?ee(o):o[0],l=i<0==(1==s.level),u=l?"after":"before";if(s.level>0||"rtl"==t.doc.direction){var c=ar(t,n);a=i<0?n.text.length-1:0;var d=sr(t,c,a).top;a=fe((function(e){return sr(t,c,e).top==d}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==u&&(a=Ka(n,a,1))}else a=i<0?s.to:s.from;return new ut(r,a,u)}}return new ut(r,i<0?n.text.length:0,i<0?"before":"after")}function es(e,t,n,r){var i=ve(t,e.doc.direction);if(!i)return Ja(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=me(i,n.ch,n.sticky),a=i[o];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&f>=c.begin)){var h=d?"before":"after";return new ut(n.line,f,h)}}var p=function(e,t,r){for(var o=function(e,t){return t?new ut(n.line,l(e,1),"before"):new ut(n.line,e,"after")};e>=0&&e0==(1!=a.level),u=s?r.begin:l(r.end,-1);if(a.from<=u&&u0?c.end:l(c.begin,-1);return null==g||r>0&&g==t.text.length||(m=p(r>0?0:i.length-1,r,u(g)),!m)?null:m}Ba.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ba.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ba.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ba.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ba["default"]=_?Ba.macDefault:Ba.pcDefault;var ts={selectAll:ea,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),q)},killLine:function(e){return Za(e,(function(t){if(t.empty()){var n=tt(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new ut(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),ut(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var a=tt(e.doc,i.line-1).text;a&&(i=new ut(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),ut(i.line-1,a.length-1),i,"+transpose"))}n.push(new uo(i,i))}e.setSelections(n)}))},newlineAndIndent:function(e){return Yi(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r-1&&(ct((i=s.ranges[i]).from(),t)<0||t.xRel>0)&&(ct(i.to(),t)>0||t.xRel<0)?Ls(e,r,t,o):Ds(e,r,t,o)}function Ls(e,t,n,r){var i=e.display,o=!1,u=Pi(e,(function(t){l&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ei(e)),xe(i.wrapper.ownerDocument,"mouseup",u),xe(i.wrapper.ownerDocument,"mousemove",c),xe(i.scroller,"dragstart",d),xe(i.scroller,"drop",u),o||(Te(t),r.addNew||zo(e.doc,n,null,null,r.extend),l&&!h||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return o=!0};l&&(i.scroller.draggable=!0),e.state.draggingText=u,u.copy=!r.moveOnDrag,_e(i.wrapper.ownerDocument,"mouseup",u),_e(i.wrapper.ownerDocument,"mousemove",c),_e(i.scroller,"dragstart",d),_e(i.scroller,"drop",u),e.state.delayingBlurEvent=!0,setTimeout((function(){return i.input.focus()}),20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Ts(e,t,n){if("char"==n)return new uo(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new uo(ut(t.line,0),gt(e.doc,ut(t.line+1,0)));var r=n(e,t);return new uo(r.from,r.to)}function Ds(e,t,n,r){a&&ei(e);var i=e.display,o=e.doc;Te(t);var s,l,u=o.sel,c=u.ranges;if(r.addNew&&!r.extend?(l=o.sel.contains(n),s=l>-1?c[l]:new uo(n,n)):(s=o.sel.primary(),l=o.sel.primIndex),"rectangle"==r.unit)r.addNew||(s=new uo(n,n)),n=Hr(e,t,!0,!0),l=-1;else{var d=Ts(e,n,r.unit);s=r.extend?Ho(s,d.anchor,d.head,r.extend):d}r.addNew?-1==l?(l=c.length,$o(o,co(e,c.concat([s]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?($o(o,co(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),u=o.sel):Bo(o,l,s,X):(l=0,$o(o,new lo([s],0),X),u=o.sel);var f=n;function h(t){if(0!=ct(f,t))if(f=t,"rectangle"==r.unit){for(var i=[],a=e.options.tabSize,c=W(tt(o,n.line).text,n.ch,a),d=W(tt(o,t.line).text,t.ch,a),h=Math.min(c,d),p=Math.max(c,d),m=Math.min(n.line,t.line),g=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=g;m++){var v=tt(o,m).text,y=K(v,h,a);h==p?i.push(new uo(ut(m,y),ut(m,y))):v.length>y&&i.push(new uo(ut(m,y),ut(m,K(v,p,a))))}i.length||i.push(new uo(n,n)),$o(o,co(e,u.ranges.slice(0,l).concat(i),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var _,b=s,x=Ts(e,t,r.unit),w=b.anchor;ct(x.anchor,w)>0?(_=x.head,w=pt(b.from(),x.anchor)):(_=x.anchor,w=ht(b.to(),x.head));var M=u.ranges.slice(0);M[l]=Os(e,new uo(gt(o,w),_)),$o(o,co(e,M,l),X)}}var p=i.wrapper.getBoundingClientRect(),m=0;function g(t){var n=++m,a=Hr(e,t,!0,"rectangle"==r.unit);if(a)if(0!=ct(a,f)){e.curOp.focus=j(R(e)),h(a);var s=oi(i,o);(a.line>=s.to||a.linep.bottom?20:0;l&&setTimeout(Pi(e,(function(){m==n&&(i.scroller.scrollTop+=l,g(t))})),50)}}function v(t){e.state.selectingText=!1,m=1/0,t&&(Te(t),i.input.focus()),xe(i.wrapper.ownerDocument,"mousemove",y),xe(i.wrapper.ownerDocument,"mouseup",_),o.history.lastSelOrigin=null}var y=Pi(e,(function(e){0!==e.buttons&&Ie(e)?g(e):v(e)})),_=Pi(e,v);e.state.selectingText=_,_e(i.wrapper.ownerDocument,"mousemove",y),_e(i.wrapper.ownerDocument,"mouseup",_)}function Os(e,t){var n=t.anchor,r=t.head,i=tt(e.doc,n.line);if(0==ct(n,r)&&n.sticky==r.sticky)return t;var o=ve(i);if(!o)return t;var a=me(o,n.ch,n.sticky),s=o[a];if(s.from!=n.ch&&s.to!=n.ch)return t;var l,u=a+(s.from==n.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return t;if(r.line!=n.line)l=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var c=me(o,r.ch,r.sticky),d=c-a||(r.ch-n.ch)*(1==s.level?-1:1);l=c==u-1||c==u?d<0:d>0}var f=o[u+(l?-1:0)],h=l==(1==f.level),p=h?f.from:f.to,m=h?"after":"before";return n.ch==p&&n.sticky==m?t:new uo(new ut(n.line,p,m),r)}function Cs(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch(f){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Te(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!Se(e,n))return Oe(t);o-=s.top-a.viewOffset;for(var l=0;l=i){var c=at(e.doc,o),d=e.display.gutterSpecs[l];return we(e,n,e,c,d.className,t),Oe(t)}}}function As(e,t){return Cs(e,t,"gutterClick",!0)}function Is(e,t){qn(e.display,t)||js(e,t)||Me(e,t,"contextmenu")||k||e.display.input.onContextMenu(t)}function js(e,t){return!!Se(e,"gutterContextMenu")&&Cs(e,t,"gutterContextMenu",!1)}function Es(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gr(e)}bs.prototype.compare=function(e,t,n){return this.time+_s>e&&0==ct(t,this.pos)&&n==this.button};var Ys={toString:function(){return"CodeMirror.Init"}},Ps={},Ns={};function Rs(e){var t=e.optionHandlers;function n(n,r,i,o){e.defaults[n]=r,i&&(t[n]=o?function(e,t,n){n!=Ys&&i(e,t,n)}:i)}e.defineOption=n,e.Init=Ys,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,yo(e)}),!0),n("indentUnit",2,yo,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){_o(e),gr(e),Fr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,n.push(ut(r,o))}r++}));for(var i=n.length-1;i>=0;i--)la(e.doc,t,n[i],ut(n[i].line,n[i].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ys&&e.refresh()})),n("specialCharPlaceholder",bn,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Es(e),to(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Xa(t),i=n!=Ys&&Xa(n);i&&i.detach&&i.detach(e,r),r.attach&&r.attach(e,i||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,zs,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=Qi(t,e.options.lineNumbers),to(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?Pr(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return wi(e)}),!0),n("scrollbarStyle","native",(function(e){Si(e),wi(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=Qi(e.options.gutters,t),to(e)}),!0),n("firstLineNumber",1,to,!0),n("lineNumberFormatter",(function(e){return e}),to,!0),n("showCursorWhenSelecting",!1,Ur,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(ni(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,Hs),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,Ur,!0),n("singleCursorHeightPerLine",!0,Ur,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,_o,!0),n("addModeClass",!1,_o,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,_o,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}function Hs(e,t,n){var r=n&&n!=Ys;if(!t!=!r){var i=e.display.dragFunctions,o=t?_e:xe;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function zs(e){e.options.lineWrapping?(E(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(T(e.display.wrapper,"CodeMirror-wrap"),fn(e)),Rr(e),Fr(e),gr(e),setTimeout((function(){return wi(e)}),100)}function Fs(e,t){var n=this;if(!(this instanceof Fs))return new Fs(e,t);this.options=t=t?B(t):{},B(Ps,t,!1);var r=t.value;"string"==typeof r?r=new Ta(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Fs.inputStyles[t.inputStyle](this),o=this.display=new no(e,r,i,t);for(var u in o.wrapper.CodeMirror=this,Es(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Si(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new V,keySeq:null,specialChars:null},t.autofocus&&!y&&o.input.focus(),a&&s<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),Bs(this),Ya(),Ti(this),this.curOp.forceUpdate=!0,Mo(this,r),t.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&ti(n)}),20):ni(this),Ns)Ns.hasOwnProperty(u)&&Ns[u](this,t[u],Ys);Ji(this),t.finishInit&&t.finishInit(this);for(var c=0;c400}_e(t.scroller,"touchstart",(function(i){if(!Me(e,i)&&!o(i)&&!As(e,i)){t.input.ensurePolled(),clearTimeout(n);var a=+new Date;t.activeTouch={start:a,moved:!1,prev:a-r.end<=300?r:null},1==i.touches.length&&(t.activeTouch.left=i.touches[0].pageX,t.activeTouch.top=i.touches[0].pageY)}})),_e(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),_e(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!qn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,a=e.coordsChar(t.activeTouch,"page");o=!r.prev||l(r,r.prev)?new uo(a,a):!r.prev.prev||l(r,r.prev.prev)?e.findWordAt(a):new uo(ut(a.line,0),gt(e.doc,ut(a.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),Te(n)}i()})),_e(t.scroller,"touchcancel",i),_e(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(gi(e,t.scroller.scrollTop),yi(e,t.scroller.scrollLeft,!0),we(e,"scroll",e))})),_e(t.scroller,"mousewheel",(function(t){return so(e,t)})),_e(t.scroller,"DOMMouseScroll",(function(t){return so(e,t)})),_e(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){Me(e,t)||Ce(t)},over:function(t){Me(e,t)||(Aa(e,t),Ce(t))},start:function(t){return Ca(e,t)},drop:Pi(e,Oa),leave:function(t){Me(e,t)||Ia(e)}};var u=t.input.getField();_e(u,"keyup",(function(t){return ms.call(e,t)})),_e(u,"keydown",Pi(e,hs)),_e(u,"keypress",Pi(e,gs)),_e(u,"focus",(function(t){return ti(e,t)})),_e(u,"blur",(function(t){return ni(e,t)}))}Fs.defaults=Ps,Fs.optionHandlers=Ns;var Ws=[];function Vs(e,t,n,r){var i,o=e.doc;null==n&&(n="add"),"smart"==n&&(o.mode.indent?i=Mt(e,t).state:n="prev");var a=e.options.tabSize,s=tt(o,t),l=W(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&(u=o.mode.indent(i,s.text.slice(c.length),s.text),u==U||u>150)){if(!r)return;n="prev"}}else u=0,n="not";"prev"==n?u=t>o.first?W(tt(o,t-1).text,null,a):0:"add"==n?u=l+e.options.indentUnit:"subtract"==n?u=l-e.options.indentUnit:"number"==typeof n&&(u=l+n),u=Math.max(0,u);var d="",f=0;if(e.options.indentWithTabs)for(var h=Math.floor(u/a);h;--h)f+=a,d+="\t";if(fa,l=Re(t),u=null;if(s&&r.ranges.length>1)if(Gs&&Gs.text.join("\n")==t){if(r.ranges.length%Gs.text.length==0){u=[];for(var c=0;c=0;f--){var h=r.ranges[f],p=h.from(),m=h.to();h.empty()&&(n&&n>0?p=ut(p.line,p.ch-n):e.state.overwrite&&!s?m=ut(m.line,Math.min(tt(o,m.line).text.length,m.ch+ee(l).length)):s&&Gs&&Gs.lineWise&&Gs.text.join("\n")==l.join("\n")&&(p=m=ut(p.line,0)));var g={from:p,to:m,text:u?u[f%u.length]:l,origin:i||(s?"paste":e.state.cutIncoming>a?"cut":"+input")};na(e.doc,g),jn(e,"inputRead",e,g)}t&&!s&&Xs(e,t),di(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function qs(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||!t.hasFocus()||Yi(t,(function(){return Us(t,n,0,null,"paste")})),!0}function Xs(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s-1){a=Vs(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(tt(e.doc,i.head.line).text.slice(0,i.head.ch))&&(a=Vs(e,i.head.line,"smart"));a&&jn(e,"electricInput",e,i.head.line)}}}function Zs(e){for(var t=[],n=[],r=0;rn&&(Vs(this,i.head.line,e,!0),n=i.head.line,r==this.doc.sel.primIndex&&di(this));else{var o=i.from(),a=i.to(),s=Math.max(n,o.line);n=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l0&&Bo(this.doc,r,new uo(o,u[r].to()),q)}}})),getTokenAt:function(e,t){return Dt(this,e,t)},getLineTokens:function(e,t){return Dt(this,ut(e),t,!0)},getTokenTypeAt:function(e){e=gt(this.doc,e);var t,n=wt(this,tt(this.doc,e.line)),r=0,i=(n.length-1)/2,o=e.ch;if(0==o)t=n[2];else for(;;){var a=r+i>>1;if((a?n[2*a-1]:0)>=o)i=a;else{if(!(n[2*a+1]o&&(e=o,i=!0),r=tt(this.doc,e)}else r=e;return br(this,r,{top:0,left:0},t||"page",n||i).top+(i?this.doc.height-cn(r):0)},defaultTextHeight:function(){return jr(this.display)},defaultCharWidth:function(){return Er(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,i){var o=this.display;e=Mr(this,gt(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var l=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>l)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=l&&(a=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&li(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:Ni(hs),triggerOnKeyPress:Ni(gs),triggerOnKeyUp:ms,triggerOnMouseDown:Ni(ws),execCommand:function(e){if(ts.hasOwnProperty(e))return ts[e].call(null,this)},triggerElectric:Ni((function(e){Xs(this,e)})),findPosH:function(e,t,n,r){var i=1;t<0&&(i=-1,t=-t);for(var o=gt(this.doc,e),a=0;a0&&s(n.charAt(r-1)))--r;while(i.5||this.options.lineWrapping)&&Rr(this),we(this,"refresh",this)})),swapDoc:Ni((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),Mo(this,e),gr(this),this.display.input.reset(),fi(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,jn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Le(e),e.registerHelper=function(t,r,i){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=i},e.registerGlobalHelper=function(t,r,i,o){e.registerHelper(t,r,o),n[t]._global.push({pred:i,val:o})}}function el(e,t,n,r,i){var o=t,a=n,s=tt(e,t.line),l=i&&"rtl"==e.direction?-n:n;function u(){var n=t.line+l;return!(n=e.first+e.size)&&(t=new ut(n,t.ch,t.sticky),s=tt(e,n))}function c(o){var a;if("codepoint"==r){var c=s.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(c))a=null;else{var d=n>0?c>=55296&&c<56320:c>=56320&&c<57343;a=new ut(t.line,Math.max(0,Math.min(s.text.length,t.ch+n*(d?2:1))),-n)}}else a=i?es(e.cm,s,t,n):Ja(s,t,n);if(null==a){if(o||!u())return!1;t=Qa(i,e.cm,s,t.line,l)}else t=a;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var d=null,f="group"==r,h=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;;p=!1){if(n<0&&!c(!p))break;var m=s.text.charAt(t.ch)||"\n",g=se(m,h)?"w":f&&"\n"==m?"n":!f||/\s/.test(m)?null:"p";if(!f||p||g||(g="s"),d&&d!=g){n<0&&(n=1,c(),t.sticky="after");break}if(g&&(d=g),n>0&&!c(!p))break}var v=Jo(e,t,o,a,!0);return dt(o,v)&&(v.hitSide=!0),v}function tl(e,t,n,r){var i,o,a=e.doc,s=t.left;if("page"==r){var l=Math.min(e.display.wrapper.clientHeight,z(e).innerHeight||a(e).documentElement.clientHeight),u=Math.max(l-.5*jr(e.display),3);i=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(i=n>0?t.bottom+3:t.top-3);for(;;){if(o=Lr(e,s,i),!o.outside)break;if(n<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*n}return o}var nl=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new V,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function rl(e,t){var n=or(e,t.line);if(!n||n.hidden)return null;var r=tt(e.doc,t.line),i=nr(n,r,t.line),o=ve(r,e.doc.direction),a="left";if(o){var s=me(o,t.ch);a=s%2?"right":"left"}var l=cr(i.map,t.ch,a);return l.offset="right"==l.collapse?l.end:l.start,l}function il(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ol(e,t){return t&&(e.bad=!0),e}function al(e,t,n,r,i){var o="",a=!1,s=e.doc.lineSeparator(),l=!1;function u(e){return function(t){return t.id==e}}function c(){a&&(o+=s,l&&(o+=s),a=l=!1)}function d(e){e&&(c(),o+=e)}function f(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void d(n);var o,h=t.getAttribute("cm-marker");if(h){var p=e.findMarks(ut(r,0),ut(i+1,0),u(+h));return void(p.length&&(o=p[0].find(0))&&d(nt(e.doc,o.from,o.to).join(s)))}if("false"==t.getAttribute("contenteditable"))return;var m=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;m&&c();for(var g=0;g=t.display.viewTo||o.line=t.display.viewFrom&&rl(t,i)||{node:l[0].measure.map[2],offset:0},c=o.liner.firstLine()&&(a=ut(a.line-1,tt(r.doc,a.line-1).length)),s.ch==tt(r.doc,s.line).text.length&&s.linei.viewTo-1)return!1;a.line==i.viewFrom||0==(e=zr(r,a.line))?(t=ot(i.view[0].line),n=i.view[0].node):(t=ot(i.view[e].line),n=i.view[e-1].node.nextSibling);var l,u,c=zr(r,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=ot(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!n)return!1;var d=r.doc.splitLines(al(r,n,u,t,l)),f=nt(r.doc,ut(t,0),ut(l,tt(r.doc,l).text.length));while(d.length>1&&f.length>1)if(ee(d)==ee(f))d.pop(),f.pop(),l--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}var h=0,p=0,m=d[0],g=f[0],v=Math.min(m.length,g.length);while(ha.ch&&y.charCodeAt(y.length-p-1)==_.charCodeAt(_.length-p-1))h--,p++;d[d.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),d[0]=d[0].slice(h).replace(/\u200b+$/,"");var x=ut(t,h),w=ut(l,f.length?ee(f).length-p:0);return d.length>1||d[0]||ct(x,w)?(la(r.doc,d,x,w,"+input"),!0):void 0},nl.prototype.ensurePolled=function(){this.forceCompositionEnd()},nl.prototype.reset=function(){this.forceCompositionEnd()},nl.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},nl.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},nl.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||Yi(this.cm,(function(){return Fr(e.cm)}))},nl.prototype.setUneditable=function(e){e.contentEditable="false"},nl.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Pi(this.cm,Us)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},nl.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},nl.prototype.onContextMenu=function(){},nl.prototype.resetPosition=function(){},nl.prototype.needsContentAttribute=!0;var ul=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new V,this.hasSelection=!1,this.composing=null,this.resetting=!1};function cl(e,t){if(t=t?B(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=j(H(e));t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=s.getValue()}var i;if(e.form&&(_e(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var a=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=a}}catch(l){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(xe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=i))}},e.style.display="none";var s=Fs((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return s}function dl(e){e.off=xe,e.on=_e,e.wheelEventPixels=ao,e.Doc=Ta,e.splitLines=Re,e.countColumn=W,e.findColumn=K,e.isWordChar=ae,e.Pass=U,e.signal=we,e.Line=hn,e.changeEnd=ho,e.scrollbarModel=ki,e.Pos=ut,e.cmpPos=ct,e.modes=We,e.mimeModes=Ve,e.resolveMode=Ue,e.getMode=qe,e.modeExtensions=Xe,e.extendMode=Ze,e.copyState=Ke,e.startState=Qe,e.innerMode=Je,e.commands=ts,e.keyMap=Ba,e.keyName=qa,e.isModifierKey=$a,e.lookupKey=Ga,e.normalizeKeyMap=Va,e.StringStream=et,e.SharedTextMarker=xa,e.TextMarker=_a,e.LineWidget=ma,e.e_preventDefault=Te,e.e_stopPropagation=De,e.e_stop=Ce,e.addClass=E,e.contains=I,e.rmClass=T,e.keyNames=Ra}ul.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var i=this.textarea;function o(e){if(!Me(r,e)){if(r.somethingSelected())$s({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Zs(r);$s({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,q):(n.prevInput="",i.value=t.text.join("\n"),P(i))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(i.style.width="0px"),_e(i,"input",(function(){a&&s>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),_e(i,"paste",(function(e){Me(r,e)||qs(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),_e(i,"cut",o),_e(i,"copy",o),_e(e.scroller,"paste",(function(t){if(!qn(e,t)&&!Me(r,t)){if(!i.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var o=new Event("paste");o.clipboardData=t.clipboardData,i.dispatchEvent(o)}})),_e(e.lineSpace,"selectstart",(function(t){qn(e,t)||Te(t)})),_e(i,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),_e(i,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},ul.prototype.createField=function(e){this.wrapper=Js(),this.textarea=this.wrapper.firstChild;var t=this.cm.options;Ks(this.textarea,t.spellcheck,t.autocorrect,t.autocapitalize)},ul.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},ul.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=qr(e);if(e.options.moveInputWithCursor){var i=Mr(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+a.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+a.left-o.left))}return r},ul.prototype.showSelection=function(e){var t=this.cm,n=t.display;O(n.cursorDiv,e.cursors),O(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},ul.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null));this.resetting=!1}},ul.prototype.getField=function(){return this.textarea},ul.prototype.supportsTouch=function(){return!1},ul.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||j(H(this.textarea))!=this.textarea))try{this.textarea.focus()}catch(e){}},ul.prototype.blur=function(){this.textarea.blur()},ul.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ul.prototype.receivedFocus=function(){this.slowPoll()},ul.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},ul.prototype.fastPoll=function(){var e=!1,t=this;function n(){var r=t.poll();r||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}t.pollingFast=!0,t.polling.set(20,n)},ul.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||He(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||_&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||r||(r="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}var l=0,u=Math.min(r.length,i.length);while(l1e3||i.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},ul.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ul.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},ul.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=Hr(n,e),u=r.scroller.scrollTop;if(o&&!f){var c=n.options.resetSelectionOnContextMenu;c&&-1==n.doc.sel.contains(o)&&Pi(n,$o)(n.doc,fo(o),q);var d,h=i.style.cssText,p=t.wrapper.style.cssText,m=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-m.top-5)+"px; left: "+(e.clientX-m.left-5)+"px;\n z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(d=i.ownerDocument.defaultView.scrollY),r.input.focus(),l&&i.ownerDocument.defaultView.scrollTo(null,d),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=y,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),a&&s>=9&&v(),k){Ce(e);var g=function(){xe(window,"mouseup",g),setTimeout(y,20)};_e(window,"mouseup",g)}else setTimeout(y,50)}function v(){if(null!=i.selectionStart){var e=n.somethingSelected(),o="​"+(e?i.value:"");i.value="⇚",i.value=o,t.prevInput=e?"":"​",i.selectionStart=1,i.selectionEnd=o.length,r.selForContextMenu=n.doc.sel}}function y(){if(t.contextMenuPending==y&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,i.style.cssText=h,a&&s<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var e=0,o=function(){r.selForContextMenu==n.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==t.prevInput?Pi(n,ea)(n):e++<10?r.detectingSelectAll=setTimeout(o,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(o,200)}}},ul.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},ul.prototype.setUneditable=function(){},ul.prototype.needsContentAttribute=!1,Rs(Fs),Qs(Fs);var fl="iter insert remove copy getEditor constructor".split(" ");for(var hl in Ta.prototype)Ta.prototype.hasOwnProperty(hl)&&G(fl,hl)<0&&(Fs.prototype[hl]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ta.prototype[hl]));return Le(Ta),Fs.inputStyles={textarea:ul,contenteditable:nl},Fs.defineMode=function(e){Fs.defaults.mode||"null"==e||(Fs.defaults.mode=e),Ge.apply(this,arguments)},Fs.defineMIME=$e,Fs.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),Fs.defineMIME("text/plain","null"),Fs.defineExtension=function(e,t){Fs.prototype[e]=t},Fs.defineDocExtension=function(e,t){Ta.prototype[e]=t},Fs.fromTextArea=cl,dl(Fs),Fs.version="5.65.19",Fs}))},"2ce5":function(e,t,n){"use strict";var r=n("70b7"),i=n("72df"),o=n("3ce8"),a=n("7a25"),s=n("d4cb"),l=n("d331").CONFIGURABLE,u=n("df6f"),c=n("cdcd"),d=c.enforce,f=c.get,h=String,p=Object.defineProperty,m=r("".slice),g=r("".replace),v=r([].join),y=s&&!i((function(){return 8!==p((function(){}),"length",{value:8}).length})),_=String(String).split("String"),b=e.exports=function(e,t,n){"Symbol("===m(h(t),0,7)&&(t="["+g(h(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!a(e,"name")||l&&e.name!==t)&&(s?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&a(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(i){}var r=d(e);return a(r,"source")||(r.source=v(_,"string"==typeof t?t:"")),e};Function.prototype.toString=b((function(){return o(this)&&f(this).source||u(this)}),"toString")},"2d4c":function(e,t,n){"use strict";var r=n("6b1d"),i=n("c1a2");r({target:"Object",stat:!0},{setPrototypeOf:i})},"2d6d":function(e,t,n){"use strict";var r=n("6b1d"),i=n("d054").filter,o=n("189b"),a=o("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"2d70":function(e,t,n){var r=n("349f"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2da1":function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),c?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=u.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),D="undefined"!==typeof WeakMap?new WeakMap:new n,O=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new T(t,n,this);D.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){O.prototype[e]=function(){var t;return(t=D.get(this))[e].apply(t,arguments)}}));var C=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:O}();t["default"]=C}.call(this,n("7d15"))},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"2e84":function(e,t){t.f=Object.getOwnPropertySymbols},"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}))},"2ea2":function(e,t,n){"use strict";n("c998")},"2ee2":function(e,t,n){"use strict";e.exports=Function.prototype.call},"2f62":function(e,t,n){"use strict"; /** * vuex v3.1.0 * (c) 2019 Evan You * @license MIT */ function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){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)}}n.d(t,"b",(function(){return A}));var i="undefined"!==typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)})))}function a(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function s(e){return null!==e&&"object"===typeof e}function l(e){return e&&"function"===typeof e.then}var u=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)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},u.prototype.addChild=function(e,t){this._children[e]=t},u.prototype.removeChild=function(e){delete this._children[e]},u.prototype.getChild=function(e){return this._children[e]},u.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)},u.prototype.forEachChild=function(e){a(this._children,e)},u.prototype.forEachGetter=function(e){this._rawModule.getters&&a(this._rawModule.getters,e)},u.prototype.forEachAction=function(e){this._rawModule.actions&&a(this._rawModule.actions,e)},u.prototype.forEachMutation=function(e){this._rawModule.mutations&&a(this._rawModule.mutations,e)},Object.defineProperties(u.prototype,c);var d=function(e){this.register([],e,!1)};function f(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;f(e.concat(r),t.getChild(r),n.modules[r])}}d.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},d.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},d.prototype.update=function(e){f([],this.root,e)},d.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new u(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&a(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},d.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];t.getChild(n).runtime&&t.removeChild(n)};var h;var p=function(e){var t=this;void 0===e&&(e={}),!h&&"undefined"!==typeof window&&window.Vue&&D(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new d(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new h;var i=this,a=this,s=a.dispatch,l=a.commit;this.dispatch=function(e,t){return s.call(i,e,t)},this.commit=function(e,t,n){return l.call(i,e,t,n)},this.strict=r;var u=this._modules.root.state;_(this,u,[],this._modules.root),y(this,u),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:h.config.devtools;c&&o(this)},m={state:{configurable:!0}};function g(e,t){return t.indexOf(e)<0&&t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function v(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;_(e,n,[],e._modules.root,!0),y(e,n,t)}function y(e,t,n){var r=e._vm;e.getters={};var i=e._wrappedGetters,o={};a(i,(function(t,n){o[n]=function(){return t(e)},Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=h.config.silent;h.config.silent=!0,e._vm=new h({data:{$$state:t},computed:o}),h.config.silent=s,e.strict&&S(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),h.nextTick((function(){return r.$destroy()})))}function _(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a]=r),!o&&!i){var s=L(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){h.set(s,l,r.state)}))}var u=r.context=b(e,a,n);r.forEachMutation((function(t,n){var r=a+n;w(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;M(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;k(e,r,t,u)})),r.forEachChild((function(r,o){_(e,t,n.concat(o),r,i)}))}function b(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;return s&&s.root||(l=t+l),e.dispatch(l,a)},commit:r?e.commit:function(n,r,i){var o=T(n,r,i),a=o.payload,s=o.options,l=o.type;s&&s.root||(l=t+l),e.commit(l,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return x(e,t)}},state:{get:function(){return L(e.state,n)}}}),i}function x(e,t){var n={},r=t.length;return Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),n}function w(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function M(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t,i){var o=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t,i);return l(o)||(o=Promise.resolve(o)),e._devtoolHook?o.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):o}))}function k(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function S(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function L(e,t){return t.length?t.reduce((function(e,t){return e[t]}),e):e}function T(e,t,n){return s(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function D(e){h&&e===h||(h=e,r(h))}m.state.get=function(){return this._vm._data.$$state},m.state.set=function(e){0},p.prototype.commit=function(e,t,n){var r=this,i=T(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),l=this._mutations[o];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.forEach((function(e){return e(s,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=T(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.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 l.then((function(e){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}return e}))}},p.prototype.subscribe=function(e){return g(e,this._subscribers)},p.prototype.subscribeAction=function(e){var t="function"===typeof e?{before:e}:e;return g(t,this._actionSubscribers)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),_(this,this.state,e,this._modules.get(e),n.preserveState),y(this,this.state)},p.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));h.delete(n,e[e.length-1])})),v(this)},p.prototype.hotUpdate=function(e){this._modules.update(e),v(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,m);var O=Y((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=P(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),C=Y((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=P(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),A=Y((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||P(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),I=Y((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=P(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),j=function(e){return{mapState:O.bind(null,e),mapGetters:A.bind(null,e),mapMutations:C.bind(null,e),mapActions:I.bind(null,e)}};function E(e){return 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 Y(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function P(e,t,n){var r=e._modulesNamespaceMap[n];return r}var N={Store:p,install:D,version:"3.1.0",mapState:O,mapMutations:C,mapGetters:A,mapActions:I,createNamespacedHelpers:j};t["a"]=N},"2f6a":function(e,t,n){"use strict";var r=n("72df"),i=n("58b6"),o=i.RegExp,a=r((function(){var e=o("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),s=a||r((function(){return!o("a","y").sticky})),l=a||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!==e.exec("str")}));e.exports={BROKEN_CARET:l,MISSED_STICKY:s,UNSUPPORTED_Y:a}},"2ff4":function(e,t,n){var r=n("349f"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"30c6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("0c08");function i(e,t){for(var n=0;n")}));a("replace",(function(e,t,n){var o=O?"$":"$0";return[function(e,n){var r=p(this),o=c(e)?void 0:g(e,b);return o?i(o,e,r,n):i(t,h(r),e,n)},function(e,i){var a=l(this),s=h(e);if("string"==typeof i&&-1===S(i,o)&&-1===S(i,"$<")){var c=n(t,a,s,i);if(c.done)return c.value}var p=u(i);p||(i=h(i));var g,_=a.global;_&&(g=a.unicode,a.lastIndex=0);var b,D=[];while(1){if(b=y(a,s),null===b)break;if(k(D,b),!_)break;var O=h(b[0]);""===O&&(a.lastIndex=m(s,f(a.lastIndex),g))}for(var C="",A=0,I=0;I=A&&(C+=L(s,A,Y)+j,A=Y+E.length)}return C+L(s,A)}]}),!C||!D||O)},"332c":function(e,t,n){"use strict";var r=n("4cdd"),i=n("1d8a"),o=r("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},"338e":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e}},"33ef":function(e,t,n){"use strict";var r=n("6b1d"),i=n("c6de"),o=n("c42f"),a=n("7526"),s=n("9a0f"),l=n("0481"),u=n("378c"),c=n("dac6"),d=n("7d53"),f=n("189b"),h=n("de02"),p=f("slice"),m=d("species"),g=Array,v=Math.max;r({target:"Array",proto:!0,forced:!p},{slice:function(e,t){var n,r,d,f=u(this),p=l(f),y=s(e,p),_=s(void 0===t?p:t,p);if(i(f)&&(n=f.constructor,o(n)&&(n===g||i(n.prototype))?n=void 0:a(n)&&(n=n[m],null===n&&(n=void 0)),n===g||void 0===n))return h(f,y,_);for(r=new(void 0===n?g:n)(v(_-y,0)),d=0;y<_;y++,d++)y in f&&c(r,d,f[y]);return r.length=d,r}})},"33f7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.buildVueDompurifyHTMLDirective=void 0;var r=n("a366"),i=n("a366");Object.defineProperty(t,"buildVueDompurifyHTMLDirective",{enumerable:!0,get:function(){return i.buildDirective}}),t.default={install:function(e,t,n){void 0===t&&(t={}),void 0===n&&(n=r.defaultDOMPurifyInstanceBuilder),e.directive("dompurify-html",(0,r.buildDirective)(t,n))}}},"349f":function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},"355b":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"355ba":function(e,t,n){"use strict";var r=n("b552"),i=n("aff9"),o=n("ecdb"),a=n("b5f1"),s=n("b297"),l=i.add,u=i.has,c=i.remove;e.exports=function(e){var t=r(this),n=a(e).getIterator(),i=o(t);return s(n,(function(e){u(t,e)?c(i,e):l(i,e)})),i}},"35bc":function(e,t,n){"use strict";var r=n("6b1d"),i=n("58b6"),o=n("b546"),a=n("70b7"),s=n("0e93"),l=n("d4cb"),u=n("cd51"),c=n("72df"),d=n("7a25"),f=n("fb9b"),h=n("157c"),p=n("378c"),m=n("feca"),g=n("2a3e"),v=n("9618"),y=n("82e8"),_=n("0c47"),b=n("65d0"),x=n("ee58"),w=n("2402"),M=n("185a"),k=n("abdf"),S=n("b99b"),L=n("e129"),T=n("ef30"),D=n("cf87"),O=n("4cdd"),C=n("332c"),A=n("d687"),I=n("1d8a"),j=n("7d53"),E=n("4e41"),Y=n("0cb1"),P=n("6367"),N=n("fa46"),R=n("cdcd"),H=n("d054").forEach,z=C("hidden"),F="Symbol",B="prototype",W=R.set,V=R.getterFor(F),G=Object[B],$=i.Symbol,U=$&&$[B],q=i.RangeError,X=i.TypeError,Z=i.QObject,K=M.f,J=k.f,Q=x.f,ee=L.f,te=a([].push),ne=O("symbols"),re=O("op-symbols"),ie=O("wks"),oe=!Z||!Z[B]||!Z[B].findChild,ae=function(e,t,n){var r=K(G,t);r&&delete G[t],J(e,t,n),r&&e!==G&&J(G,t,r)},se=l&&c((function(){return 7!==y(J({},"a",{get:function(){return J(this,"a",{value:7}).a}})).a}))?ae:J,le=function(e,t){var n=ne[e]=y(U);return W(n,{type:F,tag:e,description:t}),l||(n.description=t),n},ue=function(e,t,n){e===G&&ue(re,t,n),h(e);var r=m(t);return h(n),d(ne,r)?(n.enumerable?(d(e,z)&&e[z][r]&&(e[z][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,z)||J(e,z,v(1,y(null))),e[z][r]=!0),se(e,r,n)):J(e,r,n)},ce=function(e,t){h(e);var n=p(t),r=_(n).concat(me(n));return H(r,(function(t){l&&!o(fe,n,t)||ue(e,t,n[t])})),e},de=function(e,t){return void 0===t?y(e):ce(y(e),t)},fe=function(e){var t=m(e),n=o(ee,this,t);return!(this===G&&d(ne,t)&&!d(re,t))&&(!(n||!d(this,t)||!d(ne,t)||d(this,z)&&this[z][t])||n)},he=function(e,t){var n=p(e),r=m(t);if(n!==G||!d(ne,r)||d(re,r)){var i=K(n,r);return!i||!d(ne,r)||d(n,z)&&n[z][r]||(i.enumerable=!0),i}},pe=function(e){var t=Q(p(e)),n=[];return H(t,(function(e){d(ne,e)||d(A,e)||te(n,e)})),n},me=function(e){var t=e===G,n=Q(t?re:p(e)),r=[];return H(n,(function(e){!d(ne,e)||t&&!d(G,e)||te(r,ne[e])})),r};u||($=function(){if(f(U,this))throw new X("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=I(e),n=function(e){var r=void 0===this?i:this;r===G&&o(n,re,e),d(r,z)&&d(r[z],t)&&(r[z][t]=!1);var a=v(1,e);try{se(r,t,a)}catch(s){if(!(s instanceof q))throw s;ae(r,t,a)}};return l&&oe&&se(G,t,{configurable:!0,set:n}),le(t,e)},U=$[B],T(U,"toString",(function(){return V(this).tag})),T($,"withoutSetter",(function(e){return le(I(e),e)})),L.f=fe,k.f=ue,S.f=ce,M.f=he,b.f=x.f=pe,w.f=me,E.f=function(e){return le(j(e),e)},l&&(D(U,"description",{configurable:!0,get:function(){return V(this).description}}),s||T(G,"propertyIsEnumerable",fe,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:$}),H(_(ie),(function(e){Y(e)})),r({target:F,stat:!0,forced:!u},{useSetter:function(){oe=!0},useSimple:function(){oe=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!l},{create:de,defineProperty:ue,defineProperties:ce,getOwnPropertyDescriptor:he}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:pe}),P(),N($,F),A[z]=!0},"362a":function(e,t,n){"use strict";var r=n("18ef"),i=n("aff9");e.exports=r(i.proto,"size","get")||function(e){return e.size}},"362d":function(e,t){e.exports=!0},"367f":function(e,t,n){"use strict";var r=n("58b6");e.exports=r.Promise},"36aa":function(module,exports,__webpack_require__){!function(e,t){module.exports=t()}(0,(function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=68)}([function(e,t,n){"use strict";function r(e){return Object.prototype.toString.call(e)}function i(e){return"[object String]"===r(e)}function o(e,t){return x.call(e,t)}function a(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}function s(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function l(e){return!(e>=55296&&e<=57343)&&!(e>=64976&&e<=65007)&&65535!=(65535&e)&&65534!=(65535&e)&&!(e>=0&&e<=8)&&11!==e&&!(e>=14&&e<=31)&&!(e>=127&&e<=159)&&!(e>1114111)}function u(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function c(e,t){var n=0;return o(L,t)?L[t]:35===t.charCodeAt(0)&&S.test(t)&&(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10),l(n))?u(n):e}function d(e){return e.indexOf("\\")<0?e:e.replace(w,"$1")}function f(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(k,(function(e,t,n){return t||c(e,n)}))}function h(e){return O[e]}function p(e){return T.test(e)?e.replace(D,h):e}function m(e){return e.replace(C,"\\$&")}function g(e){switch(e){case 9:case 32:return!0}return!1}function v(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function y(e){return A.test(e)}function _(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function b(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}var x=Object.prototype.hasOwnProperty,w=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,M=/&([a-z#][a-z0-9]{1,31});/gi,k=new RegExp(w.source+"|"+M.source,"gi"),S=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,L=n(52),T=/[&<>"]/,D=/[&<>"]/g,O={"&":"&","<":"<",">":">",'"':"""},C=/[.?*+^$[\]\\(){}|-]/g,A=n(34);t.lib={},t.lib.mdurl=n(56),t.lib.ucmicro=n(196),t.assign=a,t.isString=i,t.has=o,t.unescapeMd=d,t.unescapeAll=f,t.isValidEntityCode=l,t.fromCodePoint=u,t.escapeHtml=p,t.arrayReplaceAt=s,t.isSpace=g,t.isWhiteSpace=v,t.isMdAsciiPunct=_,t.isPunctChar=y,t.escapeRE=m,t.normalizeReference=b},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){e.exports=!n(11)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(5),i=n(13);e.exports=n(3)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(9),i=n(42),o=n(28),a=Object.defineProperty;t.f=n(3)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var r=n(88),i=n(19);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(26)("wks"),i=n(14),o=n(1).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(8);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){function n(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);return[n].concat(i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}))).concat([o]).join("\n")}return[n].join("\n")}function r(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i0?r:n)(e)}},function(e,t,n){var r=n(8);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(1),i=n(10),o=n(12),a=n(30),s=n(5).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(7)},function(e,t,n){function r(e,t){return new o(t).process(e)}var i=n(50),o=n(111);for(var a in t=e.exports=r,t.FilterCSS=o,i)t[a]=i[a];"undefined"!=typeof window&&(window.filterCSS=e.exports)},function(e,t,n){"use strict";function r(){this.__rules__=[],this.__cache__=null}r.prototype.__find__=function(e){for(var t=0;t=0&&(n=this.attrs[t][1]),n},r.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},e.exports=r},function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},function(e,t){e.exports={indexOf:function(e,t){var n,r;if(Array.prototype.indexOf)return e.indexOf(t);for(n=0,r=e.length;n0)return n[0].addEventListener("load",(function(){t()})),void t();var r=document.createElement("script"),i=document.getElementsByTagName("head")[0];r.type="text/javascript",r.charset="UTF-8",r.src=e,r.addEventListener?r.addEventListener("load",(function(){t()}),!1):r.attachEvent&&r.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&t()})),i.appendChild(r)}function u(e,t,n){if("function"!=typeof t&&(t=function(){}),document.querySelectorAll("link[href='"+e+"']").length>0)t();else{if(n){var r=document.querySelectorAll("link#"+n);if(r.length)return void(r[0].href=e)}var i=document.createElement("link"),o=document.getElementsByTagName("head")[0];i.rel="stylesheet",i.href=e,n&&(i.id=n),i.addEventListener?i.addEventListener("load",(function(){t()}),!1):i.attachEvent&&i.attachEvent("onreadystatechange",(function(){"loaded"===window.event.srcElement.readyState&&t()})),o.appendChild(i)}}Object.defineProperty(t,"__esModule",{value:!0}),t.loadScript=l,t.loadLink=u;var c=(t.insertTextAtCaret=function(e,t,n){var r=t.prefix,i=t.subfix,a=t.str;if(t.type,e.focus(),o(e)){var l=e.selectionStart,u=e.selectionEnd,c=e.value;l===u?(e.value=c.substring(0,l)+r+a+i+c.substring(u,c.length),e.selectionStart=l+r.length,e.selectionEnd=l+(a.length+r.length)):c.substring(l-r.length,l)===r&&c.substring(u,u+i.length)===i&&s(r,i,c,l,u)?(e.value=c.substring(0,l-r.length)+c.substring(l,u)+c.substring(u+i.length,c.length),e.selectionStart=l-r.length,e.selectionEnd=u-r.length):(e.value=c.substring(0,l)+r+c.substring(l,u)+i+c.substring(u,c.length),e.selectionStart=l+r.length,e.selectionEnd=l+(u-l+r.length))}else alert("Error: Browser version is too low");n.d_value=e.value,e.focus()},{prefix:"```",subfix:"\n```\n",defaultLanguageText:"language"});t.insertCodeBlock=function(e){var t=e.getTextareaDom();if(o(t)){var n=c.defaultLanguageText,s=t.selectionStart,l=t.selectionEnd,u=t.value;if(s===l)r(n,"",t);else if(a(t))i(t);else{var d=u.substring(s,l);r("",d,t)}e.d_value=t.value,t.focus()}else alert("Error: Browser version is too low")},t.insertOl=function(e){var t=e.getTextareaDom();if(o(t)){var n=t.selectionStart,r=t.selectionEnd,i=t.value;if(n===r)t.value=i.substring(0,n)+"1. "+i.substring(r,i.length),t.selectionEnd=t.selectionStart=n+3;else{for(var a=n;a>0&&"\n"!==i.substring(a-1,a);)a--;for(var s=i.substring(a,r),l=s.split("\n"),u=0;u0&&"\n"!==i.substring(a-1,a);)a--;for(var s=r;s0&&"\n"!==i.substring(a-1,a);)a--;var s=i.substring(a,r),l=s.replace(/\n/g,"\n- ");l="- "+l,t.value=i.substring(0,a)+l+i.substring(r,i.length),t.selectionStart=a,t.selectionEnd=r+l.length-s.length}}else alert("Error: Browser version is too low");e.d_value=t.value,t.focus()},t.insertTab=function(e,t){t=t?new Array(t).fill(" ").join(""):"\t";var n=e.getTextareaDom();if(o(n)){var r=n.selectionStart,i=n.selectionEnd,a=n.value,s=a.substring(0,r).split("\n").pop();if(s.match(/^\s*[0-9]+\.\s+\S*/)){var l=s.replace(/(\d+)/,1);n.value=a.substring(0,r-l.length)+t+l+a.substring(i,a.length)}else s.match(/^\s*-\s+\S*/)?n.value=a.substring(0,r-s.length)+t+s+a.substring(i,a.length):n.value=a.substring(0,r)+t+a.substring(i,a.length);n.selectionStart=n.selectionEnd=r+t.length}else alert("Error: Browser version is too low");e.d_value=n.value,n.focus()},t.unInsertTab=function(e,t){var n=new RegExp(t?"\\s{"+t+"}":"\t");console.log("regTab:",n);var r=e.getTextareaDom();if(o(r)){var i=r.selectionStart,a=r.selectionEnd,s=r.value,l=s.substring(0,i).split("\n").pop();l.search(n)>=0&&(r.value=s.substring(0,i-l.length)+l.replace(n,"")+s.substring(a,s.length),r.selectionStart=r.selectionEnd=i-(t||1))}else alert("Error: Browser version is too low");e.d_value=r.value,r.focus()},t.insertEnter=function(e,t){var n=e.getTextareaDom();if(o(n)){var r=n.selectionStart,i=n.selectionEnd,a=n.value,s=a.substring(0,r).split("\n").pop(),l=s.match(/^\s*(?:[0-9]+\.|-)\s+\S+/);if(l){t.preventDefault();var u=l.shift().match(/^\s*(?:[0-9]+\.|-)\s/).shift();if(u.search(/-/)>=0)n.value=a.substring(0,r)+"\n"+u+a.substring(i,a.length),n.selectionStart=n.selectionEnd=r+u.length+1;else{var c=u.replace(/(\d+)/,parseInt(u)+1);n.value=a.substring(0,r)+"\n"+c+a.substring(i,a.length),n.selectionStart=n.selectionEnd=r+c.length+1}}else{var d=s.match(/^\s*(?:[0-9]+\.|-)\s+$/);if(d){t.preventDefault();var f=d.shift().length;n.value=a.substring(0,r-f)+"\n"+a.substring(i,a.length),n.selectionStart=n.selectionEnd=r-f}}}else alert("Error: Browser version is too low");e.d_value=n.value,n.focus()},t.getNavigation=function(e,t){var n=void 0;n=e.$refs.navigationContent,n.innerHTML=e.d_render;var r=n.children;if(r.length)for(var i=0;i=0&&n.scrollHeight!==t.edit_scroll_height&&n.scrollHeight-n.offsetHeight-n.scrollTop<=30&&(t.$refs.vNoteEdit.scrollTop=n.scrollHeight-n.offsetHeight,r=1),t.edit_scroll_height=n.scrollHeight,t.$refs.vShowContent.scrollHeight>t.$refs.vShowContent.offsetHeight&&(t.$refs.vShowContent.scrollTop=(t.$refs.vShowContent.scrollHeight-t.$refs.vShowContent.offsetHeight)*r)},t.fullscreenchange=function(e){e.$el.addEventListener("fullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1),e.$el.addEventListener("mozfullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1),e.$el.addEventListener("webkitfullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1),e.$el.addEventListener("msfullscreenchange",(function(t){e.$toolbar_right_read_change_status()}),!1)},t.windowResize=function(e){function t(){e.$el.clientWidth>768?e.s_subfield=e.subfield:e.s_subfield=!1}t(),window.addEventListener("resize",t)},t.ImagePreviewListener=function(e){e.$refs.vShowContent.addEventListener("click",(function(t){t=t||window.event;var n=t.srcElement?t.srcElement:t.target;"IMG"===n.tagName&&(null!=e.imageClick?e.imageClick(n):e.d_preview_imgsrc=n.src)}))}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(8),i=n(1).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(1),i=n(10),o=n(85),a=n(4),s=n(2),l=function(e,t,n){var u,c,d,f=e&l.F,h=e&l.G,p=e&l.S,m=e&l.P,g=e&l.B,v=e&l.W,y=h?i:i[t]||(i[t]={}),_=y.prototype,b=h?r:p?r[t]:(r[t]||{}).prototype;for(u in h&&(n=t),n)(c=!f&&b&&void 0!==b[u])&&s(y,u)||(d=c?b[u]:n[u],y[u]=h&&"function"!=typeof b[u]?n[u]:g&&c?o(d,r):v&&b[u]==d?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(d):m&&"function"==typeof d?o(Function.call,d):d,m&&((y.virtual||(y.virtual={}))[u]=d,e&l.R&&_&&!_[u]&&a(_,u,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){e.exports=!n(3)&&!n(11)((function(){return 7!=Object.defineProperty(n(40)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,n){"use strict";var r=n(12),i=n(41),o=n(48),a=n(4),s=n(21),l=n(90),u=n(24),c=n(96),d=n(7)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,p,m,g,v){l(n,t,p);var y,_,b,x=function(e){if(!f&&e in S)return S[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},w=t+" Iterator",M="values"==m,k=!1,S=e.prototype,L=S[d]||S["@@iterator"]||m&&S[m],T=L||x(m),D=m?M?x("entries"):T:void 0,O="Array"==t&&S.entries||L;if(O&&(b=c(O.call(new e)))!==Object.prototype&&b.next&&(u(b,w,!0),r||"function"==typeof b[d]||a(b,d,h)),M&&L&&"values"!==L.name&&(k=!0,T=function(){return L.call(this)}),r&&!v||!f&&!k&&S[d]||a(S,d,T),s[t]=T,s[w]=h,m)if(y={values:M?T:x("values"),keys:g?T:x("keys"),entries:D},v)for(_ in y)_ in S||o(S,_,y[_]);else i(i.P+i.F*(f||k),t,y);return y}},function(e,t,n){var r=n(9),i=n(93),o=n(20),a=n(25)("IE_PROTO"),s=function(){},l=function(){var e,t=n(40)("iframe"),r=o.length;for(t.style.display="none",n(87).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("